/* ==========================================================================
   COMPONENTS.CSS — shared, reusable UI used across multiple pages.
   Requires variables.css, typography.css, utilities.css.
   ========================================================================== */

/* ---------- Brand mark ---------- */
.brand{ display:flex; align-items:center; gap:12px; }
.brand__mark{ width:38px; height:38px; flex-shrink:0; }
.brand__word{ font-family:var(--font-label); font-size:0.98rem; letter-spacing:0.08em; text-transform:uppercase; line-height:1.15; }
.brand__word span{ color:var(--green-deep); }
.brand__word small{ display:block; font-size:0.6rem; letter-spacing:0.18em; color:var(--graphite); font-family:var(--font-label); margin-top:2px; }

/* ---------- Header ---------- */
.site-header{
  position:fixed; top:0; left:0; right:0; z-index:50;
  padding:26px 0;
  transition:padding .4s var(--ease), background .4s var(--ease), border-color .4s var(--ease),
    backdrop-filter .4s var(--ease), -webkit-backdrop-filter .4s var(--ease);
  border-bottom:1px solid transparent;
}
.site-header.is-scrolled{
  padding:16px 0;
  background:rgba(247,246,241,0.92);
  -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px);
  border-bottom-color:var(--paper-line);
}
.site-header .wrap{ display:flex; align-items:center; justify-content:space-between; gap:24px; }

.main-nav{ display:none; }
.main-nav ul{ display:flex; gap:24px; align-items:center; }
@media (min-width:1180px){ .main-nav ul{ gap:38px; } }
.main-nav a{
  font-family:var(--font-label); font-size:0.86rem; letter-spacing:0.03em;
  position:relative; padding-bottom:4px;
  transition:color .25s var(--ease);
}
.main-nav a::after{
  content:''; position:absolute; left:0; right:100%; bottom:0; height:1px; background:var(--green);
  transition:right .35s var(--ease);
}
.main-nav a:hover{ color:var(--green-deep); }
.main-nav a:hover::after, .main-nav a.is-active::after{ right:0; }
.main-nav a.is-active{ color:var(--green-deep); }
@media (min-width:980px){ .main-nav{ display:block; } }

/* ---------- Services mega-menu ---------- */
.nav-has-mega{ display:flex; align-items:center; gap:2px; position:relative; }
.mega-toggle{ width:20px; height:20px; display:none; align-items:center; justify-content:center; color:var(--graphite); }
.mega-toggle svg{ transition:transform .3s var(--ease); }
.mega-toggle[aria-expanded="true"] svg{ transform:rotate(180deg); }
@media (min-width:980px){ .mega-toggle{ display:inline-flex; } }

.mega-menu{
  position:fixed; left:50%; top:76px; transform:translateX(-50%) translateY(8px) scale(0.98);
  width:min(1140px, 94vw);
  background:var(--paper); border:1px solid var(--paper-line); 
  border-radius:12px; box-shadow:0 24px 60px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.03);
  padding:42px 48px 34px;
  display:grid; grid-template-columns:repeat(3,1fr); column-gap:40px; row-gap:38px;
  opacity:0; pointer-events:none; visibility:hidden;
  transition:opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
  z-index:55;
}
.mega-menu::before {
  content:''; position:absolute; left:0; right:0; top:-20px; height:20px; z-index:-1;
}
@media (min-width:1300px){ .mega-menu{ grid-template-columns:repeat(6,1fr); column-gap:36px; } }
.site-header.is-scrolled ~ .mega-menu, .site-header.is-scrolled .mega-menu{ top:62px; }

.mega-menu.is-open{
  opacity:1; visibility:visible; pointer-events:auto;
  transform:translateX(-50%) translateY(0) scale(1);
  transition:opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear 0s;
}

.mega-col{ display:flex; flex-direction:column; }
.mega-col__label{
  display:flex; align-items:flex-end; min-height:30px;
  font-family:var(--font-label); font-weight:600; font-size:0.7rem; letter-spacing:0.1em; text-transform:uppercase;
  color:var(--green-deep); margin-bottom:18px; padding-bottom:12px; border-bottom:1px solid var(--paper-line);
}
.mega-col ul{ display:flex; flex-direction:column; gap:14px; }
.mega-col ul:hover a { opacity:0.55; }
.mega-col a{
  display:inline-flex; align-items:center; font-size:0.92rem; font-weight:500; color:var(--ink-soft); line-height:1.4;
  transition:color .2s var(--ease), opacity .2s var(--ease);
}
.mega-col a:hover{ color:var(--ink); opacity:1 !important; }

.mega-menu__foot{
  grid-column:1/-1; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:18px;
  padding-top:28px; margin-top:4px; border-top:1px solid var(--paper-line);
}
.mega-menu__foot span{
  font-family:var(--font-display); font-size:1.05rem; font-style:italic; color:var(--ink-soft); line-height:1.3;
}
.mega-menu__foot em{ color:var(--green-deep); font-style:italic; }
.mega-menu__all{
  display:inline-flex; align-items:center; gap:8px; flex-shrink:0;
  font-family:var(--font-label); font-size:0.78rem; letter-spacing:0.08em; text-transform:uppercase; color:var(--ink);
  border:1px solid var(--paper-line); padding:10px 20px; border-radius:4px;
  transition:border-color .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.mega-menu__all svg{ transition:transform .3s var(--ease); }
.mega-menu__all:hover{ background:var(--green-deep); border-color:var(--green-deep); color:var(--paper) !important; }
.mega-menu__all:hover svg{ transform:translateX(3px); }

.header-actions{ display:flex; align-items:center; gap:20px; position:relative; z-index:46; }
.header-phone{ display:none; font-family:var(--font-label); font-size:0.86rem; letter-spacing:0.02em; align-items:center; gap:8px; }
@media (min-width:1220px){ .header-phone{ display:inline-flex; } }
.header-phone svg{ width:15px; height:15px; color:var(--green); }
.header-cta{ display:none; }
@media (min-width:980px){ .header-cta{ display:inline-flex; padding:13px 24px; } }

.menu-toggle{ display:flex; flex-direction:column; gap:5px; width:26px; padding:6px 0; }
@media (min-width:980px){ .menu-toggle{ display:none; } }
.menu-toggle span{
  height:2px; border-radius:1px; background:var(--ink); width:100%;
  transition:transform .35s var(--ease), opacity .25s var(--ease), background-color .25s var(--ease);
}
/* Open state always sits over the dark full-screen mobile-nav overlay
   (see .mobile-nav below), so the icon is forced to paper — never relies
   on whatever the header's own background happens to be. */
.menu-toggle.is-open span{ background:var(--paper); }
.menu-toggle.is-open span:nth-child(1){ transform:translateY(6px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2){ opacity:0; }
.menu-toggle.is-open span:nth-child(3){ transform:translateY(-6px) rotate(-45deg); }

/* ---------- Mobile nav ---------- */
.mobile-nav{
  position:fixed; inset:0; background:var(--ink); color:var(--paper); z-index:45;
  display:flex; flex-direction:column; justify-content:flex-start; padding:var(--edge); overflow-y:auto;
  transform:translateY(-100%); transition:transform .5s var(--ease), visibility 0s linear .5s;
  visibility:hidden; pointer-events:none;
}
@media (min-width:980px){ .mobile-nav{ display:none !important; } }
.mobile-nav.is-open{ transform:translateY(0); visibility:visible; pointer-events:auto; transition:transform .5s var(--ease), visibility 0s linear 0s; }
.mobile-nav ul{ display:flex; flex-direction:column; gap:20px; margin-bottom:44px; }
.mobile-nav a{ font-family:var(--font-display); font-size:2rem; font-weight:500; }
.mobile-nav a.is-active{ color:var(--green); }
.mobile-nav__foot{ display:flex; flex-direction:column; gap:16px; align-items:stretch; }
.mobile-nav__foot a.header-phone{ display:inline-flex; color:var(--paper); }
.mobile-nav__foot .btn{ justify-content:center; }

/* ---------- Breadcrumbs ---------- */
.breadcrumb{
  font-family:var(--font-label); font-size:0.75rem; letter-spacing:0.1em;
  text-transform:uppercase; margin-bottom:28px; margin-top:20px;
  position: absolute; top: 110px; left: 0; right: 0; z-index: 10;
  display: flex; justify-content: center; width: 100%;
}
.breadcrumb a{ color:var(--graphite); transition:color .25s; }
.breadcrumb a:hover{ color:var(--green-deep); }
.breadcrumb span[aria-current]{ color:var(--ink-soft); }
.breadcrumb .sep{ color:var(--paper-line); margin: 0 8px; }

.site--dark .breadcrumb { color:rgba(255,255,255,0.5); }
.site--dark .breadcrumb a{ color:rgba(255,255,255,0.7); }
.site--dark .breadcrumb a:hover{ color:var(--white); }
.site--dark .breadcrumb span[aria-current]{ color:var(--white); }


/* ---------- Media placeholder (CMS-connected image slots) ---------- */
.media-frame{ position:relative; overflow:hidden; background:var(--paper-deep); border:1px solid var(--paper-line); }
.media-placeholder{
  position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:14px; text-align:center; padding:24px;
  background:
    repeating-linear-gradient(135deg, transparent, transparent 11px, rgba(21,21,15,0.035) 11px, rgba(21,21,15,0.035) 12px),
    var(--paper-deep);
  border:1px dashed var(--paper-line);
}
.media-placeholder svg{ width:34px; height:34px; color:var(--graphite); opacity:.6; }
.media-placeholder__label{ font-family:var(--font-label); font-size:0.72rem; letter-spacing:0.12em; text-transform:uppercase; color:var(--graphite); }
.media-placeholder__label b{ color:var(--ink-soft); display:block; font-size:0.78rem; margin-bottom:4px; letter-spacing:0.1em; }
.media-placeholder.is-round{ border-radius:50%; }
.media-frame.is-round{ border-radius:50%; }
.media-real{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.media-real.is-round{ border-radius:50%; }

/* ---------- Old-way / our-way comparison ---------- */
.compare{ display:grid; gap:1px; background:var(--paper-line); border:1px solid var(--paper-line); }
@media (min-width:768px){ .compare{ grid-template-columns:1fr 1fr; } }
.compare__col{ background:var(--paper); padding:32px 24px; }
@media (min-width:640px){ .compare__col{ padding:44px 40px; } }
.compare__col--brand{ background:var(--ink); color:var(--paper); }
.compare__label{ font-family:var(--font-label); font-size:0.78rem; letter-spacing:0.14em; text-transform:uppercase; color:var(--graphite); margin-bottom:24px; display:block; }
.compare__col--brand .compare__label{ color:var(--green); }
.compare__list li{ display:flex; gap:14px; padding:14px 0; border-top:1px solid var(--paper-line); font-size:0.98rem; color:var(--ink-soft); }
.compare__col--brand .compare__list li{ border-color:rgba(247,246,241,0.14); color:rgba(247,246,241,0.86); }
.compare__list li:first-child{ border-top:none; }
.compare__list svg{ width:16px; height:16px; flex-shrink:0; margin-top:3px; }
.compare__col--brand .compare__list svg{ color:var(--green); }
.compare__col:not(.compare__col--brand) .compare__list svg{ color:var(--graphite); }

/* ---------- Pillars / offering cards ---------- */
.pillars{ display:grid; gap:1px; background:var(--paper-line); border:1px solid var(--paper-line); }
@media (min-width:860px){ .pillars{ grid-template-columns:repeat(3,1fr); } }
.pillar{ background:var(--paper); padding:46px 40px; transition:background .4s var(--ease); }
/* Tablet: 3 columns start at the same 860px width where .pillar's fixed
   padding leaves almost no room for the icon/heading/copy inside — tightened
   just for that window, back to full padding at 1024px+ where there's
   enough width per column again. */
@media (min-width:860px) and (max-width:1023px){ .pillar{ padding:30px 24px; } }
.pillar:hover{ background:var(--white); }
.pillar__icon{ width:42px; height:42px; color:var(--green-deep); margin-bottom:28px; }
.pillar h3{ margin-bottom:16px; }
.pillar p{ color:var(--graphite); font-size:0.98rem; margin-bottom:24px; }
.pillar__list{ display:flex; flex-direction:column; gap:9px; }
.pillar__list li{ font-size:0.88rem; color:var(--ink-soft); padding-left:16px; position:relative; }
.pillar__list li::before{ content:''; position:absolute; left:0; top:9px; width:6px; height:1px; background:var(--green); }
.pillar__list a{ color:inherit; text-decoration:none; transition:color .25s var(--ease); }
.pillar__list a:hover{ color:var(--green-deep); text-decoration:underline; }

/* ---------- Numbered process ---------- */
.process{ display:grid; gap:24px; }
@media (min-width:860px){ .process{ grid-template-columns:repeat(4,1fr); gap:36px; } }
/* Tablet: 4 columns of shared .step padding (36px 32px, below) left barely
   over 100px of actual content width per card at 860-1023px — this is the
   most cramped of the shared grids since it's the only 4-column one. Doesn't
   touch .process--three (service pages), which has its own tighter-but-less-
   severe tablet override in service-page.css. */
@media (min-width:860px) and (max-width:1023px){ .process:not(.process--three) .step{ padding:22px 18px; } }
.step{
  padding:36px 32px;
  border-radius:12px;
  border:1px solid var(--paper-line);
  background:var(--paper);
  transition:transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.step:hover{
  transform:translateY(-6px);
  box-shadow:0 12px 30px rgba(0,0,0,0.04);
  border-color:var(--green-deep);
}

.section--deep .step {
  background: rgba(15, 15, 10, 0.45);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.06);
}
.section--deep .step:hover {
  border-color: rgba(163, 255, 71, 0.3);
  background: rgba(15, 15, 10, 0.7);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

.step__num{ font-family:var(--font-display); font-size:2.8rem; color:var(--green); margin-bottom:20px; font-weight:600; line-height:1; }
.step h3{ font-size:1.15rem; margin-bottom:12px; font-weight:600; color:var(--ink); }
.step p{ font-size:0.96rem; color:var(--graphite); line-height:1.6; margin:0; }

.section--deep .step h3 { color:var(--paper); }
.section--deep .step p { color:rgba(255,255,255,0.75); }

/* ---------- Why-us / feature grid ---------- */
.why-grid{ display:grid; gap:1px; background:var(--paper-line); border:1px solid var(--paper-line); margin-top:56px; }
@media (min-width:700px){ .why-grid{ grid-template-columns:repeat(2,1fr); } }
@media (min-width:1080px){ .why-grid{ grid-template-columns:repeat(3,1fr); } }
.why-item{ background:var(--paper); padding:28px 22px; }
@media (min-width:640px){ .why-item{ padding:34px 32px; } }
.why-item svg{ width:26px; height:26px; color:var(--green-deep); margin-bottom:18px; }
.why-item h3{ font-size:1.05rem; margin-bottom:10px; }
.why-item p{ font-size:0.9rem; color:var(--graphite); }

/* ---------- Testimonial / quote cards ---------- */
.quote-row{ display:grid; gap:40px; }
@media (min-width:860px){ .quote-row{ grid-template-columns:repeat(3,1fr); gap:1px; background:var(--paper-line); border:1px solid var(--paper-line); } }
.quote-card{ background:var(--paper); padding:32px 24px; display:flex; flex-direction:column; gap:22px; }
@media (min-width:640px){ .quote-card{ padding:40px 34px; } }
@media (min-width:860px) and (max-width:1023px){ .quote-card{ padding:26px 22px; } }
.quote-card svg.mark{ width:30px; height:22px; color:var(--green); }
.quote-card p.q{ font-family:var(--font-display); font-size:1.18rem; line-height:1.45; font-style:italic; color:var(--ink); }
.quote-card__who{ display:flex; align-items:center; gap:14px; margin-top:auto; padding-top:6px; }
.quote-card__who .media-frame{ width:48px; height:48px; aspect-ratio:1; flex-shrink:0; }
.quote-card__who .media-placeholder svg{ width:16px; height:16px; }
.quote-card__who strong{ display:block; font-size:0.9rem; }
.quote-card__who span{ display:block; font-size:0.8rem; color:var(--graphite); }

/* ---------- Industry / tag marquee ---------- */
.marquee{ overflow:hidden; border-top:1px solid var(--paper-line); border-bottom:1px solid var(--paper-line); padding:30px 0; }
.marquee__track{ display:flex; gap:0; width:max-content; }
.marquee__track span{
  font-family:var(--font-display); font-style:italic; font-size:clamp(1.4rem,1.1rem + 1.4vw,2.2rem);
  color:var(--ink-soft); padding:0 34px; white-space:nowrap; display:inline-flex; align-items:center; gap:34px;
}
.marquee__track span::after{ content:'—'; color:var(--green-deep); font-style:normal; }

/* ---------- Closing CTA banner (reused as the final section on most pages) ---------- */
.final-cta{ text-align:center; }
.final-cta h2{ max-width:20ch; margin-inline:auto; margin-bottom:24px; }
.final-cta .lead{ margin-inline:auto; text-align:center; margin-bottom:44px; }
.final-cta__ctas{ display:flex; flex-direction:column; align-items:stretch; gap:14px; }
@media (min-width:480px){ .final-cta__ctas{ flex-direction:row; align-items:center; flex-wrap:wrap; justify-content:center; gap:18px; } }
.final-cta__ctas .btn{ justify-content:center; }

/* ---------- Footer ---------- */
.site-footer{ background:var(--ink); color:rgba(247,246,241,0.82); padding-top:100px; }
.footer-top{ display:grid; gap:48px; padding-bottom:70px; border-bottom:1px solid rgba(247,246,241,0.14); }
@media (min-width:640px){ .footer-top{ grid-template-columns:1fr 1fr; } }
/* Held off from 900px to 1080px: the 5-column split has 3 narrow (0.8-0.9fr)
   link columns that were measuring under 120px wide through most of the
   tablet range — the 2-column tier above reads more comfortably there. */
@media (min-width:1080px){ .footer-top{ grid-template-columns:1.2fr 0.8fr 0.8fr 0.9fr 0.9fr; gap:32px; } }
.footer-brand .brand__word{ color:var(--paper); }
.footer-brand .brand__word span{ color:var(--green); }
.footer-brand p{ margin-top:20px; font-size:0.92rem; max-width:32ch; color:rgba(247,246,241,0.6); }
.footer-col__heading{ font-family:var(--font-label); font-size:0.78rem; letter-spacing:0.14em; text-transform:uppercase; color:rgba(247,246,241,0.5); margin-bottom:20px; }
.footer-col ul{ display:flex; flex-direction:column; gap:12px; }
.footer-col a{ font-size:0.94rem; transition:color .3s; }
.footer-col a:hover{ color:var(--green); }
.footer-col .phone{ display:flex; align-items:center; gap:10px; font-family:var(--font-label); }
.footer-col .phone svg{ width:15px; height:15px; color:var(--green); }
.footer-bottom{ display:flex; flex-wrap:wrap; gap:16px; justify-content:space-between; align-items:center; padding:32px 0; font-size:0.82rem; color:rgba(247,246,241,0.45); }
.footer-bottom nav{ display:flex; flex-wrap:wrap; gap:10px 24px; }

/* ---------- Service category module (services.php) ---------- */
.service-category__head{ max-width:680px; margin-bottom:44px; }
.service-grid{ display:grid; gap:20px; }
@media (min-width:640px){ .service-grid{ grid-template-columns:repeat(2,1fr); } }
@media (min-width:980px){ .service-grid{ grid-template-columns:repeat(3,1fr); } }
.service-chip{
  background:var(--paper); padding:32px 32px; display:flex; flex-direction:column; gap:12px;
  border-radius:2px; border:1px solid var(--paper-line);
  position:relative; overflow:hidden;
  transition:all .4s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-chip::before{
  content:''; position:absolute; top:0; left:0; right:0; height:3px;
  background:var(--green); transform:scaleX(0); transform-origin:left;
  transition:transform .4s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-chip:hover{ 
  background:var(--white); transform:translateY(-6px);
  box-shadow:0 14px 40px rgba(21, 21, 15, 0.08); border-color:transparent;
}
.service-chip:hover::before{ transform:scaleX(1); }
.service-chip__name{
  font-family:var(--font-display); font-size:1.15rem; font-weight:600; color:var(--ink);
  display:flex; align-items:center; justify-content:space-between; gap:10px;
}
.service-chip__name svg{ width:18px; height:18px; flex-shrink:0; color:var(--green); transition:transform .4s cubic-bezier(0.16, 1, 0.3, 1); }
.service-chip:hover .service-chip__name svg{ transform:translateX(6px); }
.service-chip__desc{ font-size:0.9rem; color:var(--graphite); line-height:1.6; }

/* ---------- Stat card (research-backed callouts) ---------- */
.stat-strip{ display:grid; gap:24px; margin-top:40px; }
@media (min-width:700px){ .stat-strip{ grid-template-columns:repeat(2,1fr); } }
.stat-card{ 
  background:var(--paper); padding:36px 30px; display:flex; flex-direction:column; gap:10px;
  align-items:center; text-align:center;
  border-radius:2px; border:1px solid var(--paper-line);
  position:relative; overflow:hidden;
  transition:all .4s cubic-bezier(0.16, 1, 0.3, 1);
}
.stat-card:hover {
  transform: translateY(-4px); box-shadow: 0 12px 36px rgba(21, 21, 15, 0.08); border-color: transparent;
}
.stat-card::after {
  content:''; position:absolute; bottom:0; left:0; width:100%; height:3px;
  background:var(--green); transform:scaleX(0); transform-origin:center;
  transition:transform .4s cubic-bezier(0.16, 1, 0.3, 1);
}
.stat-card:hover::after { transform:scaleX(1); }
.stat-card__num{ font-family:var(--font-display); font-size:2.8rem; color:var(--green-deep); font-weight:600; line-height:1; margin-bottom:6px; }
.stat-card__text{ font-size:0.95rem; color:var(--ink-soft); line-height:1.6; max-width:42ch; margin:0 auto; }
.stat-card__source{ font-size:0.75rem; color:var(--graphite); letter-spacing:0.04em; text-transform:uppercase; margin-top:4px; }

/* ---------- FAQ (native <details>, animated, no JS) ---------- */
.faq{ max-width:820px; }
@media (min-width: 980px) { .faq{ margin-inline:auto; } }
.faq-item{ 
  border:1px solid var(--paper-line); 
  border-radius:12px; 
  margin-bottom:16px; 
  background:var(--paper);
  transition:border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.faq-item:hover{ border-color:var(--green-deep); box-shadow:0 6px 16px rgba(0,0,0,0.03); }
.faq-item[open]{ border-color:var(--green-deep); box-shadow:0 8px 24px rgba(0,0,0,0.04); }

.faq-item summary{
  list-style:none; cursor:pointer; padding:24px 32px; position:relative;
  font-family:var(--font-display); font-size:1.1rem; font-weight:600; color:var(--ink);
  display:flex; align-items:center; justify-content:space-between; gap:20px;
  transition:color .25s var(--ease);
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item[open] summary{ color:var(--green-deep); }

.faq-item summary::after{
  content:'+'; flex-shrink:0; font-size:1.4rem; font-weight:400; color:var(--ink-soft);
  transition:transform .25s var(--ease), color .25s var(--ease);
}
.faq-item[open] summary::after{ content:'\2212'; transform:rotate(180deg); color:var(--green-deep); }

.faq-item[open] p { animation:faqOpen .28s var(--ease) forwards; }
@keyframes faqOpen {
  0% { opacity:0; max-height:0; overflow:hidden; padding:0 32px 0; }
  100% { opacity:1; max-height:600px; overflow:hidden; padding:0 32px 24px; }
}
.faq-item p{ padding:0 32px 24px; max-width:68ch; color:var(--graphite); font-size:1rem; line-height:1.65; margin:0; }

/* ---------- Floating CTA (shared, every page, mobile only) ----------
   Rounded, floating, glass pill, clearly separated from the bottom edge
   and both side edges so it reads as an object lifted above the page,
   not a toolbar docked to it. */
.mobile-cta-bar{
  position:fixed; inset:auto 16px max(16px, calc(16px + env(safe-area-inset-bottom, 0px)));
  z-index:40;
  display:flex; align-items:stretch; gap:0;
  background:rgba(92,143,34,.94);
  -webkit-backdrop-filter:blur(14px) saturate(160%);
  backdrop-filter:blur(14px) saturate(160%);
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.14);
  box-shadow: 0 22px 44px -12px rgba(92,143,34,.55),
              0 8px 20px -6px rgba(0,0,0,.28),
              inset 0 1px 0 rgba(255,255,255,.22);
  padding:0; overflow:hidden;
  animation:cta-float-in .75s var(--ease-reveal) .4s both;
  transition:box-shadow .3s var(--ease), transform .3s var(--ease);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))){
  .mobile-cta-bar{ background:var(--green); }
}
@media (min-width:760px){ .mobile-cta-bar{ display:none; } }
@media (prefers-reduced-motion: reduce){ .mobile-cta-bar{ animation:none; } }
@media (hover:hover){
  .mobile-cta-bar:hover{
    transform:translateY(-2px);
    box-shadow: 0 26px 52px -12px rgba(92,143,34,.65), 0 10px 24px -6px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.26);
  }
}
.mobile-cta-bar:active{ transform:scale(0.985); }
@keyframes cta-float-in{
  from{ opacity:0; transform:translateY(30px) scale(0.94); }
  to{ opacity:1; transform:translateY(0) scale(1); }
}
.mobile-cta-bar__call{
  display:flex; align-items:center; justify-content:center; gap:8px;
  padding:16px 20px; color:#fff; font-family:var(--font-label); font-size:0.75rem; font-weight:700;
  background:rgba(0,0,0,.15); border-right:1px solid rgba(255,255,255,0.1);
  transition:background .2s var(--ease), transform .15s var(--ease);
}
.mobile-cta-bar__call:active{ background:rgba(0,0,0,.25); transform:scale(0.96); }
.mobile-cta-bar__call svg{ width:16px; height:16px; color:#fff; flex-shrink:0; }
.mobile-cta-bar__book{
  flex:1; display:flex; align-items:center; justify-content:center;
  font-weight:800; font-size:15.5px; letter-spacing:-.005em;
  color:#fff; background:transparent; padding:16px 20px;
  transition:background .25s var(--ease), transform .15s var(--ease);
}
.mobile-cta-bar__book:active{ background:rgba(255,255,255,.08); transform:scale(0.98); }
body{ padding-bottom:0; }
@media (max-width:759px){ body{ padding-bottom:calc(104px + env(safe-area-inset-bottom, 0px)); } }

.review-filters{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom:40px; }
.review-filter{
  padding:9px 18px; border:1px solid var(--paper-line); font-family:var(--font-label); font-size:0.8rem;
  color:var(--ink-soft); transition:border-color .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.review-filter:hover{ border-color:var(--green); }
.review-filter.is-active{ background:var(--ink); border-color:var(--ink); color:var(--paper); }
.filter-empty-msg{ text-align:center; padding:40px 0; color:var(--graphite); font-size:0.95rem; }

/* ---------- Floating-label form field (shared: contact.php, audit.php) ---------- */
.field{ position:relative; margin-bottom:28px; }
.field input, .field textarea, .field select{
  width:100%; background:transparent; border:none; border-bottom:1px solid var(--paper-line);
  padding:14px 0 10px; font-family:var(--font-body); font-size:1rem; color:var(--ink);
  transition:border-color .3s var(--ease); border-radius:0; appearance:none;
}
.field textarea{ resize:vertical; min-height:120px; line-height:1.5; }
.field input:focus, .field textarea:focus, .field select:focus{ outline:none; border-bottom-color:var(--green-deep); }
.field label{
  position:absolute; left:0; top:14px; font-size:1rem; color:var(--graphite); pointer-events:none;
  transition:top .25s var(--ease), font-size .25s var(--ease), color .25s var(--ease), letter-spacing .25s var(--ease);
}
.field input:focus ~ label, .field input:not(:placeholder-shown) ~ label,
.field textarea:focus ~ label, .field textarea:not(:placeholder-shown) ~ label{
  top:-8px; font-size:0.7rem; letter-spacing:0.1em; text-transform:uppercase; color:var(--green-deep);
}
.field-row{ display:grid; gap:0 24px; }
@media (min-width:640px){ .field-row{ grid-template-columns:1fr 1fr; } }

.form-status{ font-size:0.88rem; margin-top:14px; min-height:1.2em; color:var(--green-deep); }
.form-status.is-error{ color:#A3402A; }
.form-trust-note{ display:block; font-size:0.8rem; color:var(--graphite); margin-top:12px; }

/* ---------- Numbered mini-steps (shared: contact.php, audit.php) ---------- */
.contact-steps{ display:flex; flex-direction:column; gap:16px; list-style:none; }
.contact-steps li{ display:flex; gap:14px; font-size:0.92rem; color:var(--ink-soft); line-height:1.5; }
.contact-steps li span{ font-family:var(--font-display); font-weight:600; color:var(--green-deep); flex-shrink:0; }

/* ---------- Quick Answer (AEO callout: shared between service pages and articles) ---------- */
.quick-answer{
  max-width:720px; background:var(--paper); border:1px solid var(--paper-line);
  padding:32px 36px; border-radius:4px;
  box-shadow:0 8px 30px rgba(0,0,0,0.03);
}
.quick-answer__label{
  display:block; font-family:var(--font-label); font-size:0.75rem; letter-spacing:0.12em; text-transform:uppercase;
  color:var(--green-deep); margin-bottom:12px;
}
.quick-answer p{ font-size:1.05rem; color:var(--ink-soft); line-height:1.6; }

/* ---------- Popup (includes/popup.php) ---------- */
.growth-popup{
  position:fixed; right:24px; bottom:24px; z-index:60; max-width:340px;
  background:var(--paper); border:1px solid var(--paper-line); box-shadow:0 20px 50px rgba(21,21,15,0.16);
  padding:26px 26px 24px; transform:translateY(140%); opacity:0; transition:transform .6s var(--ease), opacity .6s var(--ease);
}
@media (max-width:759px){ .growth-popup{ right:16px; left:16px; bottom:76px; max-width:none; } }
.growth-popup.is-visible{ transform:translateY(0); opacity:1; }
.growth-popup__close{ position:absolute; top:12px; right:12px; width:26px; height:26px; display:flex; align-items:center; justify-content:center; color:var(--graphite); }
.growth-popup__close:hover{ color:var(--ink); }
.growth-popup h4{ margin-bottom:8px; padding-right:20px; }
.growth-popup p{ font-size:0.88rem; color:var(--graphite); margin-bottom:16px; }
.growth-popup .btn{ width:100%; justify-content:center; padding:13px 20px; }

/* ---------- Modal (includes/modals.php) ---------- */
.site-modal{ position:fixed; inset:0; z-index:70; display:none; align-items:center; justify-content:center; padding:24px; }
.site-modal.is-open{ display:flex; }
.site-modal__backdrop{ position:absolute; inset:0; background:rgba(21,21,15,0.7); }
.site-modal__panel{ position:relative; background:var(--paper); max-width:640px; width:100%; max-height:86vh; overflow-y:auto; padding:44px; border:1px solid var(--paper-line); }
.site-modal__close{ position:absolute; top:18px; right:18px; width:32px; height:32px; display:flex; align-items:center; justify-content:center; color:var(--graphite); }
.site-modal__close:hover{ color:var(--ink); }

/* ---------- Dark Header overrides (used when hero background is dark) */
.site-header--dark:not(.is-scrolled):not(.is-hovered) .brand__word { color:var(--paper); }
.site-header--dark:not(.is-scrolled):not(.is-hovered) .brand__word small { color:rgba(247,246,241,0.7); }
.site-header--dark:not(.is-scrolled):not(.is-hovered) .brand__mark path[stroke='currentColor'] { stroke:var(--paper); }
.site-header--dark:not(.is-scrolled):not(.is-hovered) .main-nav > ul > li > a { color:var(--paper); }
.site-header--dark:not(.is-scrolled):not(.is-hovered) .mega-toggle { color:var(--paper); }
.site-header--dark:not(.is-scrolled):not(.is-hovered) .header-phone { color:var(--paper); }
.site-header--dark:not(.is-scrolled):not(.is-hovered) .menu-toggle span { background:var(--paper); }

/* Ensure header phone doesn't wrap on desktop and cramp layout */
.header-phone { white-space: nowrap; flex-shrink: 0; }
.site-header .wrap { max-width: 1800px; } /* Expand header to match full width site */


/* Full Site Dark Theme Override */
.site--dark { color: var(--paper) !important; }
.site--dark h1, .site--dark h2, .site--dark h3, .site--dark h4, .site--dark h5, .site--dark h6, .site--dark p, .site--dark li, .site--dark span, .site--dark summary { color: inherit; }
.site--dark .section { background: transparent !important; }
.site--dark .compare, .site--dark .pillars, .site--dark .why-grid, .site--dark .quote-row, .site--dark .marquee, .site--dark .stat-strip { background: transparent !important; border-color: rgba(255,255,255,0.1) !important; }
.site--dark .compare__col, .site--dark .pillar, .site--dark .why-item, .site--dark .quote-card, .site--dark .stat-card, .site--dark .service-chip { background: rgba(15, 15, 10, 0.45) !important; backdrop-filter: blur(14px) !important; border: 1px solid rgba(255,255,255,0.06) !important; }
.site--dark .service-chip:hover { background: rgba(15, 15, 10, 0.7) !important; }
.site--dark .service-chip__name, .site--dark .service-chip__desc { color: var(--paper) !important; }
.site--dark .compare__col--brand { background: rgba(92, 143, 34, 0.15) !important; }
.site--dark .stat-card {
  background: rgba(21, 28, 16, 0.6) !important;
  backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(163, 255, 71, 0.12) !important;
}
.site--dark .stat-card:hover {
  background: rgba(21, 28, 16, 0.85) !important;
  border-color: rgba(163, 255, 71, 0.25) !important;
  box-shadow: 0 12px 30px rgba(0,0,0,0.5) !important;
}
.site--dark .stat-card__num { color: var(--green) !important; }
.site--dark .stat-card__text { color: var(--paper) !important; }
.site--dark .stat-card__source { color: rgba(247, 246, 241, 0.5) !important; }
.site--dark svg { color: inherit; }
.site--dark .pillar__icon { color: #a3ff47 !important; }
.site--dark .eyebrow { border-color: rgba(255,255,255,0.2) !important; color: rgba(255,255,255,0.8) !important; }
.site--dark .compare__label { color: #a3ff47 !important; }
.site--dark .trust-bar { border-color: rgba(255,255,255,0.1) !important; }
.site--dark .accent-italic { color: #a3ff47 !important; text-shadow: 0 0 24px rgba(163, 255, 71, 0.4); }
.site--dark .marquee__track span { color: rgba(255,255,255,0.9); }
.site--dark .btn-ghost { color: var(--paper); border-color: rgba(255,255,255,0.3); }
.site--dark .btn-ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.site--dark .quote-card p.q { color: var(--white) !important; }
.site--dark .quick-answer {
  background: rgba(21, 28, 16, 0.6) !important;
  backdrop-filter: blur(16px) !important;
  border-color: rgba(163, 255, 71, 0.12) !important;
}
.site--dark .quick-answer__label { color: var(--green) !important; }
.site--dark .quick-answer p { color: var(--paper) !important; }
.site--dark .quote-card__who strong { color: var(--white) !important; }
.site--dark .quote-card__who span { color: rgba(255,255,255,0.7) !important; }

/* FAQ Dark Mode Overrides */
.site--dark .faq-item {
  background: rgba(15, 15, 10, 0.45) !important;
  backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
}
.site--dark .faq-item:hover { border-color: rgba(163, 255, 71, 0.25) !important; }
.site--dark .faq-item[open] {
  background: rgba(15, 15, 10, 0.75) !important;
  border-color: rgba(163, 255, 71, 0.4) !important;
}
.site--dark .faq-item summary { color: var(--paper) !important; }
.site--dark .faq-item[open] summary { color: #a3ff47 !important; }
.site--dark .faq-item summary::after { color: rgba(255,255,255,0.3) !important; }
.site--dark .faq-item[open] summary::after { color: #a3ff47 !important; }
.site--dark .faq-item p { color: rgba(255,255,255,0.75) !important; }

/* Force dark text inside popups, modals, and mega menu since they have a light paper background */
.site--dark .mega-col__label { color: var(--green-deep) !important; }
.site--dark .mega-menu__foot span { color: var(--ink-soft) !important; }
.site--dark .growth-popup, .site--dark .growth-popup h4, .site--dark .growth-popup p { color: var(--ink) !important; }
.site--dark .site-modal__panel, .site--dark .site-modal__panel h1, .site--dark .site-modal__panel h2, .site--dark .site-modal__panel h3, .site--dark .site-modal__panel h4, .site--dark .site-modal__panel p, .site--dark .site-modal__panel span, .site--dark .site-modal__panel label, .site--dark .site-modal__panel div { color: var(--ink) !important; }

/* Translucent Footer for Dark Theme to show global video background */
.site--dark .site-header.is-scrolled { background: rgba(10, 10, 10, 0.7); border-bottom-color: rgba(255,255,255,0.08); }
.site--dark .site-footer { background: rgba(10, 10, 10, 0.4); backdrop-filter: blur(20px); border-top: 1px solid rgba(255,255,255,0.08); }
