/* Estimate Consultants — shared theme (ivory / obsidian / champagne gold).
   Loaded by every main-site page AFTER Tailwind. Edit colors here once. */
:root{--ec-ink:#17181B;--ec-ivory:#F5F3EE;--ec-obs:#0B0B0C;--ec-gold:#C5A46D;--ec-gold-d:#7A5C26;--ec-sand:#F1E8D6;--ec-line:#D9D5CB}
html{-webkit-text-size-adjust:100%;font-size:106.25%} /* 17px base: everything in rem grows ~6% */
/* Cormorant has a small x-height; font-size-adjust evens it out against the body font */
.font-serif{font-size-adjust:.5}
/* Tailwind's smallest sizes were too small in Archivo */
.text-xs{font-size:.8125rem!important;line-height:1.25rem!important}
.text-sm{font-size:.9375rem!important;line-height:1.5rem!important}
.text-base{font-size:1.0625rem!important}
.text-\[10px\]{font-size:11px!important}.text-\[8px\]{font-size:9.5px!important}
body{background-color:var(--ec-ivory)!important;color:var(--ec-ink);-webkit-font-smoothing:antialiased}
/* Headings: Cormorant is lighter/smaller-looking than the old Cinzel, so size and weight up a touch */
.font-serif{font-weight:600!important;letter-spacing:.005em}
h1.font-serif{font-weight:600!important;line-height:1.22!important}
h2.font-serif,h3.font-serif{font-weight:600!important;line-height:1.2!important}
/* Buttons: obsidian primary, gold on hover accents */
.bg-brand-gold{background-color:var(--ec-gold)!important;color:#17130B}
.hover\:bg-brand-goldHover:hover{background-color:#D2B47F!important}
a.bg-brand-blue,button.bg-brand-blue,a.bg-brand-gold,button.bg-brand-gold{letter-spacing:.08em;border-radius:.375rem!important}
::selection{background:var(--ec-gold);color:#17130B}
/* Cards & inputs: crisp hairlines, softer shadow */
.shadow-sm,.shadow-md,.shadow-lg,.shadow-xl{--tw-shadow-color:rgba(23,24,27,.18)}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--ec-gold-d)!important;box-shadow:0 0 0 4px rgba(197,164,109,.25)!important}
:focus-visible{outline:2px solid var(--ec-gold-d);outline-offset:2px}
/* Big call-to-action bars that used a blue→orange gradient */
.bg-gradient-to-r.from-brand-blue{background-image:linear-gradient(90deg,#0B0B0C,#232326 60%,#4A3B1F)!important;color:#F5F3EE}

/* --- Fixes after first live look --- */
/* Gold text: dark gold on light backgrounds (readable), champagne on dark ones */
.text-brand-gold,.hover\:text-brand-gold:hover,.group-hover\:text-brand-gold{color:#7A5C26!important}
.bg-slate-900 .text-brand-gold,footer .text-brand-gold,.bg-brand-dark .text-brand-gold{color:#C5A46D!important}
.bg-brand-gold,.bg-brand-gold *{color:#17130B!important}
/* Header: keep nav links and the wordmark on one line */
header nav a{white-space:nowrap}
header nav{gap:1.5rem!important}
header .font-serif.uppercase{letter-spacing:.06em!important;overflow:visible!important;text-overflow:clip!important}
header .truncate{overflow:visible}
header img{background:transparent}

/* --- Primary buttons: solid obsidian, light text, quiet hover (no gradient, glow or lift) --- */
.bg-brand-blue,a.bg-slate-900,button.bg-slate-900,.md\:bg-brand-blue{
  background-color:#17181B!important;background-image:none!important;
  border-color:#17181B!important;color:#F5F3EE!important;
  box-shadow:none!important;transition:background-color .15s ease}
.bg-brand-blue *,a.bg-slate-900 *,button.bg-slate-900 *{color:#F5F3EE!important}
.bg-brand-blue i,a.bg-slate-900 i,button.bg-slate-900 i{color:#C5A46D!important}
.bg-brand-blue:hover,a.bg-slate-900:hover,button.bg-slate-900:hover,
.hover\:bg-brand-blueHover:hover,.md\:hover\:bg-brand-blueHover:hover{
  background-color:#2C2D31!important;background-image:none!important;transform:none;box-shadow:none!important}
.bg-brand-gold{background-image:none!important;box-shadow:none!important}
a.bg-brand-gold,button.bg-brand-gold{background-color:#17181B!important;border-color:#17181B!important;color:#F5F3EE!important}
a.bg-brand-gold *,button.bg-brand-gold *{color:#F5F3EE!important}
a.bg-brand-gold:hover,button.bg-brand-gold:hover{background-color:#2C2D31!important}
div.bg-brand-blue,span.bg-brand-blue{background-color:#C5A46D!important;border-color:#C5A46D!important}
.bg-gradient-to-r.from-brand-blue{background-image:none!important;background-color:#17181B!important}
.bg-gradient-to-r.from-brand-blue *{color:#F5F3EE!important}
@media (max-width:639px){header a[href="/"] .font-serif.uppercase{font-size:min(3.2vw,15px)!important;letter-spacing:.02em!important}header a[href="/"] .truncate span+span{font-size:min(1.85vw,8px)!important;letter-spacing:.06em!important}}
@media (max-width:379px){header a[href="/"] img{height:1.75rem!important}header a[href="/"]{gap:.375rem!important}header a[href="/"] .font-serif.uppercase{font-size:2.95vw!important;letter-spacing:0!important}header a[href="/"] .truncate span+span{font-size:1.7vw!important;letter-spacing:.04em!important}header .shrink-0.flex.items-center{gap:.25rem!important}}
@media (min-width:640px) and (max-width:767px){header a[href="/"] .font-serif.uppercase{font-size:13px!important;letter-spacing:.03em!important}header a[href="/"] .truncate span+span{font-size:7.5px!important;letter-spacing:.08em!important}}

/* Video facade: poster + play button, loads YouTube only on click */
.ec-video{position:relative;display:block;width:216px;aspect-ratio:9/16;flex-shrink:0;border-radius:1rem;overflow:hidden;border:2px solid #C5A46D;box-shadow:0 10px 25px rgba(0,0,0,.15);background:#17130B;padding:0;cursor:pointer}
.ec-video img{width:100%;height:100%;object-fit:cover;display:block}
.ec-video .ec-play{position:absolute;left:50%;top:50%;width:68px;height:68px;margin:-34px 0 0 -34px;border-radius:50%;background:rgba(23,19,11,.85);box-shadow:0 4px 14px rgba(0,0,0,.3)}
.ec-video .ec-play::after{content:"";position:absolute;left:27px;top:20px;border-style:solid;border-width:14px 0 14px 22px;border-color:transparent transparent transparent #C5A46D}
.ec-video:hover .ec-play{background:#17130B}
.ec-video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}

/* "As seen on" press banner (under each page's header). Transparent: the image's white blends into whatever is behind it. */
.ec-seen{background:transparent;border:0;padding:1.5rem 1rem 1rem;text-align:center}
.ec-seen img{display:block;width:100%;max-width:34rem;height:auto;margin:0 auto}
/* "As seen on" banner inside a hero (transparent image) */
.ec-seen-hero{margin:0 auto 1rem;max-width:34rem}
.ec-seen-hero img{display:block;width:100%;height:auto}
.ec-span-all{grid-column:1/-1}
.ec-span-all.ec-seen-hero{margin:0 auto}

/* Press page link lists */
.ec-press-feats{display:grid;grid-template-columns:repeat(auto-fit,minmax(13rem,1fr));gap:.9rem}
.ec-press-feat{display:block;background:#fff;border:1px solid var(--ec-line);border-radius:1rem;padding:1.1rem 1.2rem;box-shadow:0 1px 3px rgba(0,0,0,.06);transition:border-color .15s}
.ec-press-feat:hover{border-color:var(--ec-gold)}
.ec-press-feat strong{display:block;font-family:"Cormorant Garamond",serif;font-size:1.35rem;color:var(--ec-ink)}
.ec-press-feat span{display:block;font-size:.8125rem;color:#64748b;margin-top:.15rem}
.ec-press-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(14rem,1fr));gap:.6rem}
.ec-press-grid a{display:block;background:#fff;border:1px solid var(--ec-line);border-radius:.75rem;padding:.7rem .9rem;font-size:.9rem;font-weight:500;color:var(--ec-ink);transition:border-color .15s,color .15s}
.ec-press-grid a:hover{border-color:var(--ec-gold);color:var(--ec-gold-d)}

/* Mobile menu: taller than the screen? scroll the menu itself, not the page behind it */
#mobileMenu{max-height:calc(100vh - 7.5rem);max-height:calc(100dvh - 7.5rem);overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
