/* v51 — Yellow Nav with Logo Halo — v39-8 with a dark drop-shadow halo on the logo so it reads on the yellow nav. */
/* Florida's Choice Contracting — Coastal Bright (v13)
   Brightens v12 by lightening hero overlay, flipping dark sections to light,
   intensifying accent color, and removing photo-darkening overlays.
   Adds scroll-reveal motion via IntersectionObserver (see site.js). */
:root {
  --teal-900: #008248;   /* v27 — lifted ~10 percentage points in HSL lightness from #062930 */
  --teal-800: #000000;   /* v27 — proportionally lifted from #082F38 */
  --teal-700: #008248;   /* v27 — slight lift from #0E4F5C for sectional consistency */
  --teal-600: #358D40;   /* v27 — lift from #136573 */
  --teal-300: #358D40;   /* NEW v13 — bright coastal teal for accents */
  --teal-100: #FAF8F0;
  --teal-50:  #F5F2EA;   /* NEW v13 — barely-tinted teal for light backgrounds */
  --sand-500: #C9A572;
  --sand-400: #D9B98C;
  --sand-200: #E9D7B0;
  --sand-100: #FAF8F0;
  --paper:   #FAF8F0;
  --paper-2: #FCFBF5;    /* NEW v13 — even brighter paper for big light slabs */
  --ink:     #000000;
  --muted:   #4A4A4A;
  --rule:    #DDD8C9;
  --accent:  #008248;   /* v17 — passes WCAG AA 4.5:1 for white text on accent button bg
                          (E8742E from v13 was 3.01:1 — too light). Still vibrant terracotta.  */
  --accent-2:#000000;   /* v17 — darker hover state */
  --accent-bright: #FFCC00; /* v17 — kept the v13 brightness for decorative-only uses
                               (bullet dots, dividers, hover-effect highlights on dark bgs). */
  --accent-soft:#FFF6CC;/* pastel accent wash for callouts */
  --shadow:  0 24px 60px -20px rgba(8, 47, 56, 0.18);
  --shadow-lift: 0 18px 40px -16px rgba(8, 47, 56, 0.28);
  --serif:   'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;  /* brand display face — Montserrat is technically sans-serif but the token is the heading/display role, kept for code compat */
  --sans:    'PT Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;     /* brand body face */
  /* Numeric content (phones, license numbers) uses --sans + font-variant-numeric: tabular-nums.
     Saves a third font load while keeping digits aligned. */
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: #ededed; color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body { font-size: 17px; line-height: 1.55; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.container { width: min(1240px, calc(100% - 64px)); margin: 0 auto; }
.container--narrow { width: min(880px, calc(100% - 64px)); }

/* type */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: clamp(40px, 5.6vw, 80px); line-height: 1.02; letter-spacing: -0.025em; }
h2 { font-size: clamp(30px, 3.4vw, 48px); line-height: 1.08; letter-spacing: -0.02em; }
h3 { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.18; }
.eyebrow { font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal-700); }
.eyebrow--light { color: var(--sand-200); }
.hero .eyebrow { font-size: 17px; }   /* hero eyebrow bumped 14 -> 16 per client */
.lede { font-family: var(--serif); font-size: clamp(20px, 2vw, 28px); line-height: 1.4; color: var(--muted); font-weight: 400; }
.fineprint { font-size: 15px; color: var(--muted); }
.divider { width: 56px; height: 2px; background: var(--accent); border: 0; margin: 28px 0; }

/* nav */
.nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 40px; color: #fff;
  height: 130px; box-sizing: border-box;
  background: var(--teal-900);
}
.nav--inverted { color: var(--ink); position: static; padding: 22px 40px; border-bottom: 1px solid var(--rule); background: #ededed; height: 130px; }
.nav-brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--serif); font-size: 21px; letter-spacing: 0.02em;
  flex-shrink: 0;          /* never let the brand compress when the nav is tight */
}
.nav-brand img.nav-brand-logo {
  height: 96px; width: auto; display: block;
  max-width: none;         /* override global img { max-width: 100% } so the logo never squishes */
  flex-shrink: 0;
}
.nav-brand-mark { width: 38px; height: 38px; border-radius: 6px; }
.nav-links { display: flex; gap: 68px; font-size: 18px; letter-spacing: 0.04em; font-weight: 700; }  /* bold top menu — PT Sans 700, sized so the loaded face still reads at the larger of the two flash states */
.nav-links a { padding: 10px 4px; transition: color 0.15s ease; font-style: normal; font-weight: 700; }

/* C5 — Services dropdown submenu (desktop: hover/focus reveal) */
.nav-item { display: inline-flex; align-items: center; }
.nav-item--has-sub { position: relative; }
.nav-item-row { display: inline-flex; align-items: center; gap: 6px; }
.nav-sub-caret {
  background: none; border: 0; margin: 0; padding: 4px; cursor: pointer;
  color: inherit; display: inline-flex; align-items: center; line-height: 0;
}
.nav-sub-caret svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.nav-submenu {
  list-style: none; margin: 0; padding: 10px 0;
  position: absolute; top: calc(100% + 14px); left: -16px; min-width: 280px;
  background: #fff; border: 1px solid var(--rule); border-radius: 10px;
  box-shadow: 0 22px 50px -20px rgba(0,0,0,0.40);
  display: none; z-index: 40;
}
.nav-submenu::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.nav-item--has-sub:hover > .nav-submenu,
.nav-item--has-sub:focus-within > .nav-submenu,
.nav-item--has-sub.is-open > .nav-submenu { display: block; }
.nav-item--has-sub:hover .nav-sub-caret svg,
.nav-item--has-sub.is-open .nav-sub-caret svg { transform: rotate(180deg); }
.nav-submenu li { margin: 0; }
.nav-submenu a {
  display: block; padding: 9px 22px; font-size: 16px; font-weight: 600;
  letter-spacing: 0.02em; color: var(--ink); white-space: nowrap; border: 0;
  transition: background 0.12s ease, color 0.12s ease;
}
.nav-submenu a:hover { background: #f4f1e8; color: var(--accent); }

/* C3 — compact Service Areas list (bottom of Projects) */
.service-areas-compact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.service-areas-compact h4 { font-size: 18px; margin-bottom: 10px; }
.service-areas-compact p { color: var(--muted); line-height: 1.95; font-size: 18px; }
@media (max-width: 720px) { .service-areas-compact { grid-template-columns: 1fr; gap: 26px; } }

/* D4/D5 — About value boxes: square 2x2 light cards, tighter whitespace */
.pillars.about-values { grid-template-columns: repeat(2, 1fr); gap: 28px; }
.pillars.about-values .pillar { min-height: 0; padding: 34px; gap: 12px; box-shadow: 0 12px 32px -20px rgba(0,0,0,0.25); }
.pillars.about-values .pillar p { color: var(--muted); font-size: 17px; line-height: 1.65; }
/* /services listing rows: scope list + "View service detail" were tiny — match the home pillar sizes */
.svc-row .pillar-link { font-size: 18px; }
/* Keep the green fill-up hover (client likes it) but force the text white so it's readable on the dark-green fill. */
.pillars.about-values .pillar:hover,
.pillars.about-values .pillar:hover h3,
.pillars.about-values .pillar:hover p { color: #fff !important; }
@media (max-width: 720px) { .pillars.about-values { grid-template-columns: 1fr; } }

/* E6 — self-service gallery editor (counter model + floating toggle) */
.gallery-edit-fab {
  position: fixed; right: 22px; bottom: 90px; z-index: 50;   /* lifted above the proof watermark pill */
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 15px;
  padding: 13px 20px; border-radius: 999px; text-decoration: none;
  box-shadow: 0 14px 32px -10px rgba(0,0,0,0.45);
}
.gallery-edit-fab svg { width: 19px; height: 19px; }
.gallery-edit-fab:hover { filter: brightness(1.08); }
.gallery-edit-fab.is-active { background: #333; }

.gallery-editor-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: #fff; border: 1px solid var(--rule); border-radius: 10px; padding: 16px 20px; margin-bottom: 20px; position: sticky; top: 8px; z-index: 6; }
.gallery-editor-bar p { font-size: 15px; color: var(--muted); margin: 0; max-width: 62ch; }
.gallery-editor-actions { display: flex; align-items: center; gap: 14px; }
.gallery-editor-status { font-size: 15px; font-weight: 700; }
.gallery-editor-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.gallery-editor-item { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--rule); border-radius: 10px; padding: 12px; }
.gallery-editor-item img { width: 120px; height: 80px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.gallery-editor-meta { flex: 1; font-size: 15px; color: var(--ink); line-height: 1.5; }
.gallery-editor-ctrls { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.gallery-editor-ctrls button { cursor: pointer; border: 1px solid var(--rule); background: #f4f1e8; color: var(--ink); border-radius: 8px; padding: 8px 12px; font-size: 15px; font-weight: 700; line-height: 1; }
.gallery-editor-ctrls button:hover { border-color: var(--accent); color: var(--accent); }
.gallery-editor-num { min-width: 38px; text-align: center; font-weight: 800; font-size: 18px; color: var(--ink); }
.gallery-editor-state { min-width: 56px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; color: var(--teal-700); }
.gallery-editor-item.is-hidden { opacity: 0.55; }
.gallery-editor-item.is-hidden img { filter: grayscale(1); }
.gallery-editor-item.is-hidden .gallery-editor-num { color: var(--muted); }
.gallery-editor-item.is-hidden .gallery-editor-state { color: #b00020; }
@media (max-width: 640px) {
  .gallery-editor-item { flex-wrap: wrap; }
  .gallery-editor-item img { width: 88px; height: 60px; }
  .gallery-editor-meta { flex: 1 1 100%; order: 3; }
  .gallery-edit-fab { right: 14px; bottom: 84px; padding: 11px 16px; font-size: 15px; }
}

/* Nav three-zone balance: brand (left) | centered menu | CTA-zone — keeps the menu centered
   and the "Get Project Guidance" button right after it (empty space on the far right). */
.nav-actions { display: flex; align-items: center; }
@media (min-width: 1024px) {
  .nav-brand   { flex: 1 1 0; }
  .nav-actions { flex: 1 1 0; justify-content: flex-start; padding-left: 44px; }
}
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 600; padding: 10px 18px;
  border: 1px solid currentColor; border-radius: 999px;
  flex-shrink: 0;          /* never compress the CTA either */
  white-space: nowrap;
}

/* hero — solid teal nav band on top, photo below */
.hero {
  position: relative; min-height: 820px; color: #fff; overflow: hidden;
  background-color: #3a3a3a;   /* B2 — neutral gray behind slides (was green --teal-900) */
}
.hero-bg { position: absolute; left: 0; right: 0; top: 130px; bottom: 0; z-index: 0; overflow: hidden; background: #3a3a3a; }

/* v15 — rotating hero slideshow.
   Four photos cross-fade. Each is visible 6s + 1s crossfades on either side = 8s in cycle.
   Total cycle: 32s (= 8 × 4). Each photo also runs its own ~16s Ken Burns
   (so the motion is visible during its 7-8s window).  */
.hero-bg .hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
  animation: hero-fade 32s linear infinite, hero-pan 16s ease-in-out infinite alternate;
  will-change: opacity, transform;
}
.hero-bg .hero-slide--1 { animation-delay:  0s,  0s; }
.hero-bg .hero-slide--2 { animation-delay:  8s, -8s; }
.hero-bg .hero-slide--3 { animation-delay: 16s, -16s; }
.hero-bg .hero-slide--4 { animation-delay: 24s, -24s; }

@keyframes hero-fade {
  0%   { opacity: 0; }
  3%   { opacity: 1; }
  22%  { opacity: 1; }
  28%  { opacity: 0; }
  100% { opacity: 0; }
}

/* Bigger, more video-like motion than v13.
   1.0 → 1.14 scale, perceptible drift. 16s cycle, ease-in-out, alternates so it's continuous. */
@keyframes hero-pan {
  from { transform: scale(1.0)   translate3d(0, 0, 0); }
  to   { transform: scale(1.14)  translate3d(-2.5%, -1.6%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg .hero-slide { animation: none; opacity: 0; }
  .hero-bg .hero-slide--1 { opacity: 1; }   /* show only the first photo, no motion */
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  /* v41 — softer scrim so the homepage feels brighter/more vibrant per client
     request. We keep the left-side gradient for text legibility but pull
     every stop down by roughly 40%. The keyframe cycle's max is also lower
     so bright tower slides still let the photo's color through. Text shadow
     on .hero h1/.hero-sub/.eyebrow--light is the secondary belt for contrast. */
  background:
    linear-gradient(95deg,
      rgba(6, 41, 48,0.36) 0%,
      rgba(6, 41, 48,0.25) 28%,
      rgba(6, 41, 48,0.07) 54%,
      rgba(6, 41, 48,0)    72%),
    linear-gradient(180deg, rgba(6, 41, 48,0.13) 0%, rgba(6, 41, 48,0.03) 38%, rgba(6, 41, 48,0.09) 70%, rgba(6, 41, 48,0.30) 100%);
  animation: hero-scrim-cycle 32s linear infinite;
  will-change: opacity;
}
@keyframes hero-scrim-cycle {
  /* Softer cycle range — slide 1 (aerial) at 0.30, slides 2–4 (bright towers)
     at 0.62. Down from the v38 0.55→1.0 range; client wanted the photo to
     show more original color and brightness. */
  0%   { opacity: 0.22; }
  18%  { opacity: 0.22; }
  25%  { opacity: 0.48; }
  97%  { opacity: 0.48; }
  100% { opacity: 0.22; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg::after { animation: none; opacity: 1; }
}
.hero-inner { position: relative; z-index: 1; padding: 230px 0 110px; }
/* v38 — soft text-shadow as belt-and-suspenders against bright slide backgrounds. */
.hero h1, .hero-sub, .hero .eyebrow--light {
  text-shadow: 0 2px 16px rgba(6, 41, 48, 0.55), 0 1px 4px rgba(6, 41, 48, 0.55);
}
.hero h1 { color: #fff; max-width: 16ch; margin-bottom: 32px; font-weight: 400; }
.hero h1 em { font-style: normal; color: #358D40; font-weight: 600; } /* logo silhouette green; 600 = middle ground (was 300 light, briefly 700 bold) per client */
.hero-sub { max-width: 56ch; font-size: 18px; color: var(--sand-100); line-height: 1.55; margin-bottom: 40px; }
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px; border-radius: 999px; font-weight: 600; font-size: 16px; letter-spacing: 0.02em;
  background: var(--accent); color: #fff; border: 1px solid var(--accent); cursor: pointer; transition: background 0.2s ease;
}
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); text-decoration: none; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn--ghost:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn--ink { background: var(--teal-700); border-color: var(--teal-700); }
.btn--ink:hover { background: var(--teal-800); border-color: var(--teal-800); }
.btn-arrow { width: 18px; height: 18px; }
.phone {
  font-family: var(--sans); font-size: 24px; color: #fff; opacity: 1;
  font-variant-numeric: tabular-nums; letter-spacing: 0.02em; font-weight: 700;
  display: inline-flex; align-items: baseline; gap: 10px;
  text-decoration: none;
  text-shadow: 0 2px 18px rgba(6, 41, 48, 0.45);
  transition: color 0.2s ease;
}
a.phone:hover { text-decoration: none; opacity: 0.85; }
.phone strong {
  color: var(--sand-200);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* hero trust strip */
.trust-strip {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  background: rgba(6, 41, 48,0.55); backdrop-filter: blur(8px);
  border-top: 1px solid rgba(233,215,176,0.15);
  padding: 18px 0; color: var(--sand-100); font-size: 15px; letter-spacing: 0.16em; text-transform: uppercase;
}
.trust-strip-inner { display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.trust-strip-inner span { display: inline-flex; align-items: center; gap: 10px; }
.trust-strip-inner span::before { content: ""; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }

/* sections */
section { padding: 120px 0; }
section.tight { padding: 80px 0; }
.section-head { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: end; margin-bottom: 72px; }
.section-head .lede { margin-top: 12px; }

/* three pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
/* v41 — 5-card layout: 3 across the top row + 2 centered on the second row.
   Implemented as a 6-col grid where each card spans 2 cols; cards 4 and 5
   start at col 2 and col 4 so they're centered under the first 3. The same
   responsive collapse (1023 → 1 col) at the bottom of this file applies. */
.pillars--five { grid-template-columns: repeat(6, 1fr); }
.pillars--five > .pillar { grid-column: span 2; }
.pillars--five > .pillar:nth-child(4) { grid-column: 2 / span 2; }
.pillars--five > .pillar:nth-child(5) { grid-column: 4 / span 2; }
.pillar {
  position: relative; background: #fff; border: 1px solid var(--rule); border-radius: 4px;
  padding: 36px; display: flex; flex-direction: column; gap: 20px; min-height: 360px;
}
.pillar-icon { width: 56px; height: 56px; }
.pillar h3 { font-size: 24px; }
.pillar-list { font-size: 18px; color: var(--muted); line-height: 1.7; }
.pillar-list li { list-style: none; padding-left: 18px; position: relative; font-size: 18px; }   /* global: all .pillar-list li are 18px (beats per-page inline <ul> sizes) */
.pillar-list li::before { content: ""; position: absolute; left: 0; top: 11px; width: 8px; height: 1px; background: var(--accent); }
.pillar-link { margin-top: auto; font-weight: 600; font-size: 15px; color: var(--teal-700); display: inline-flex; align-items: center; gap: 8px; }
/* Home service pillars: "Learn more" link size (list size is now global 18px) */
article.pillar .pillar-link { font-size: 18px; }

/* feature row (40-year recert) — v13 brightened: sand background, ink text */
.feature {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: center;
  background: #fff; color: var(--ink); padding: 88px; border-radius: 6px;
  box-shadow: var(--shadow);
  border: 1px solid var(--rule);
}
.feature h2 { color: var(--ink); }
.feature .lede { color: var(--muted); }
.feature .eyebrow--light { color: var(--teal-700); }  /* v17 — accent on sand-100 was 2.56:1 (fail AA) */
.feature-photo { position: relative; aspect-ratio: 4/5; overflow: hidden; border-radius: 4px; box-shadow: var(--shadow); }
.feature-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.feature:hover .feature-photo img { transform: scale(1.03); }

/* projects strip — v13: photos at full vibrancy, hover lift + zoom */
.projects-strip { display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: 280px 280px; gap: 16px; }
.project-card {
  position: relative; overflow: hidden; border-radius: 6px; background: var(--teal-900); cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.project-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
  /* v13 — full opacity, no dimming */
}
.project-card:hover img { transform: scale(1.06); }
.project-card-meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  /* v20 — gradient pushed harder: text sits on near-opaque dark teal even when the
     photo behind has dominant white/light areas (e.g. white building facades). */
  padding: 70px 24px 22px;
  background: linear-gradient(180deg,
    rgba(6, 41, 48, 0)    0%,
    rgba(6, 41, 48, 0.55) 22%,
    rgba(6, 41, 48, 0.92) 50%,
    rgba(6, 41, 48, 0.98) 100%);
  color: #fff;
}
.project-card-meta h4 {
  /* v21 — actual fix: global `h4 { color: var(--ink); }` was overriding the parent
     `.project-card-meta { color: #fff }`, so the H4 was rendering in dark ink
     (effectively invisible) since v1. Explicit white here closes the inheritance hole. */
  color: #fff;
  font-family: var(--serif); font-size: 21px; font-weight: 500; letter-spacing: -0.01em;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.7),
    0 0 8px  rgba(0, 0, 0, 0.35);
}
.project-card-meta p {
  font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--sand-200); margin-top: 4px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
  /* Safety net: if a card's meta string is too long for its width, truncate
     at a 2-line boundary with a real ellipsis instead of breaking mid-word. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.project-card--lg { grid-column: span 3; grid-row: span 2; }
.project-card--md { grid-column: span 3; }
.project-card--sm { grid-column: span 2; }

/* testimonials — v13: bright teal-50 background, ink text */
.testimonials { background: #e1e1e1; color: var(--ink); }
.testimonials h2 { color: var(--ink); }
.testimonials .eyebrow--light { color: var(--teal-700); }  /* v17 — accent on teal-50 was 2.73:1 (fail AA) */
.testimonials .lede { color: var(--muted) !important; }
.testimonial-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.testimonial-grid--two { grid-template-columns: 1fr 1fr; gap: 24px; }
.testimonial {
  /* v24 — base card: white bg + slide-up accent bar on hover for ALL testimonials */
  position: relative; overflow: hidden; isolation: isolate;
  padding: 32px; border: 1px solid var(--rule); border-radius: 6px;
  display: flex; flex-direction: column; gap: 18px;
  background: #fff; color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
/* v24 — slide-up accent bar on hover, applied to base .testimonial (was only --featured/--card) */
.testimonial::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: var(--accent); transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.4s cubic-bezier(0.45, 0.05, 0.2, 1);
}
.testimonial:hover::before { transform: scaleY(1); }
.testimonial blockquote { color: var(--ink); }
/* v24 — featured uses white bg now (was sand-100) so all 3 cards in a row look unified.
   Distinguishing features are the larger blockquote and the eyebrow weight. */
.testimonial--featured { background: #fff; color: var(--ink); border-color: var(--rule); }
.testimonial--featured .testimonial-attr { color: var(--muted); }
/* Light variant — sand background, dark ink (used on light page sections) */
.testimonial--light { background: var(--sand-100); color: var(--ink); border-color: var(--sand-200); }
.testimonial--light .testimonial-attr { color: var(--muted); }
.testimonial--light blockquote { color: var(--ink); }
/* Card variant — white card on sand backdrop */
.testimonial--card { background: #fff; color: var(--ink); border-color: var(--rule); }
.testimonial--card .testimonial-attr { color: var(--muted); }
.testimonial--card blockquote { color: var(--ink); }

.testimonial blockquote { font-family: var(--serif); font-size: 21px; line-height: 1.45; font-weight: 400; }
.testimonial--featured blockquote { font-size: 24px; }
.testimonial-attr { font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: auto; }
.testimonial-attr strong { display: block; font-weight: 600; letter-spacing: 0.05em; text-transform: none; font-size: 15px; margin-bottom: 4px; color: var(--ink); }

/* service-area map placeholder */
.area-block { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.area-cities { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; font-family: var(--serif); font-size: 21px; line-height: 1.4; color: var(--ink); }
.area-cities li { list-style: none; padding: 10px 0; border-bottom: 1px solid var(--rule); }

/* coast diagram */
.coast-diagram { position: relative; aspect-ratio: 3/4; background: var(--teal-100); border-radius: 4px; overflow: hidden; }

/* CTA strip */
.cta-strip { background: #e1e1e1; padding: 80px 0; text-align: center; }
.cta-strip h2 { max-width: 22ch; margin: 0 auto 12px; }
.cta-strip .lede { max-width: 60ch; margin: 0 auto 32px; color: var(--muted); }

/* footer — v13 brightened: sand wash with deep teal text + subtle teal accent strip on top */
.footer { background: #e1e1e1; color: var(--ink); padding: 80px 0 32px; border-top: 4px solid var(--accent); }
.footer h4 { font-family: var(--sans); font-size: 21px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-700); font-weight: 700; margin-bottom: 24px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.footer-grid a { display: block; padding: 6px 0; font-size: 17px; color: var(--ink); opacity: 0.92; font-style: normal; }
.footer-grid a:hover { color: var(--accent); opacity: 1; }
.footer-brand p { font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 36ch; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 28px; border-top: 1px solid var(--rule); font-size: 17px; color: var(--muted); }

/* WATERMARK — proof identifier on every mockup page */
.proof-watermark {
  position: fixed; right: 24px; bottom: 24px; z-index: 100;
  display: flex; align-items: center; gap: 10px;
  padding: 6px 16px 6px 6px;
  background: rgba(6, 41, 48, 0.92); color: #fff;
  border-radius: 999px; box-shadow: 0 12px 28px rgba(6, 41, 48,0.35);
  font-family: var(--sans); font-size: 15px; letter-spacing: 0.2em; text-transform: uppercase;
  pointer-events: none;
}
.proof-watermark img { width: 40px; height: 40px; object-fit: contain; }
.proof-watermark strong { color: var(--accent); font-weight: 700; letter-spacing: 0.16em; }
.proof-watermark span { color: var(--sand-200); }

/* Footer logo — sits directly on dark teal, no card */
.footer-logo-card { display: inline-block; margin-bottom: 24px; }
.footer-logo-card img { height: 184px; width: auto; display: block; }

/* ============ INTERIOR PAGE STYLES ============ */
/* v13 — interior page hero: bright teal-50 background, ink text, accent breadcrumb dot */
.page-hero {
  background: #e1e1e1;
  color: var(--ink); padding: 140px 0 100px; position: relative; overflow: hidden;
  border-bottom: 1px solid #d6d6d6;
}
.page-hero h1 { color: var(--ink); max-width: 18ch; }
.page-hero .breadcrumb { font-size: 15px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal-700); margin-bottom: 24px; font-weight: 600; }
.page-hero .breadcrumb a { color: var(--teal-700); opacity: 0.75; }
.page-hero .breadcrumb a:hover { color: var(--accent); opacity: 1; }
.page-hero .lede { color: var(--muted); margin-top: 28px; max-width: 60ch; }

/* services overview */
.svc-list { display: grid; grid-template-columns: 1fr; gap: 80px; }
.svc-row { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: center; }
.svc-row--reverse { grid-template-columns: 1.1fr 1fr; }
.svc-row--reverse .svc-row-photo { order: 2; }
.svc-row--reverse .svc-row-text { order: 1; }
.svc-row-photo {
  position: relative; display: block;
  aspect-ratio: 4/3; border-radius: 4px; overflow: hidden;
  background: var(--teal-100);
}
.svc-row-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.svc-row:hover .svc-row-photo img { transform: scale(1.03); }
/* Linked photo variant — used on /services index where each photo links to its detail page. */
a.svc-row-photo--linked { text-decoration: none; cursor: pointer; }
a.svc-row-photo--linked:hover { text-decoration: none; }
.svc-row-text h3 { font-size: clamp(30px, 3.4vw, 48px); }
.svc-row-text h3 a { color: inherit; text-decoration: none; }
.svc-row-text h3 a:hover { color: var(--accent); text-decoration: none; }
.svc-row-text .lede { font-size: 18px; margin-top: 20px; }

/* project detail */
.project-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 56px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.project-meta dt { font-size: 15px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.project-meta dd { font-family: var(--serif); font-size: 21px; }
.project-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.project-gallery .span-2 { grid-column: span 2; }
.project-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 4px; }

/* Version banner — injected at <body> top by head.php's inline JS when the
   visitor is on an older claude-version than the latest. Hard-coded brand
   greens/yellows so the banner stays readable across token-swap themes. */
.version-banner {
  background: #008248;
  color: #fff;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.45;
  padding: 11px 0;
  text-align: center;
  position: relative;
  z-index: 100;
  border-bottom: 2px solid #006e3d;
}
.version-banner .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.version-banner-text strong { font-weight: 700; letter-spacing: 0.04em; }
.version-banner-link {
  color: #FFCC00;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 4px 12px;
  border-radius: 3px;
  transition: background 0.18s ease, color 0.18s ease;
}
.version-banner-link:hover {
  background: #FFCC00;
  color: #000;
  text-decoration: none;
}
@media (max-width: 640px) {
  .version-banner { font-size: 12px; padding: 10px 0; }
  .version-banner .container { gap: 8px; }
}

/* Recent work list — heroless projects below the photo grid */
.recent-projects-section { padding-top: 56px; padding-bottom: 80px; background: #e1e1e1; }
.recent-projects { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--rule); }
.recent-projects li { border-bottom: 1px solid var(--rule); }
.recent-projects li a {
  display: block;
  padding: 30px 24px;
  text-decoration: none;
  color: var(--ink);
  transition: background-color 0.18s ease, padding-left 0.18s ease;
}
.recent-projects li a:hover { background: var(--paper); padding-left: 40px; }
.recent-projects-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.recent-projects-head h4 { font-family: var(--serif); font-size: 24px; margin: 0; color: var(--ink); }
.recent-projects-meta { font-family: var(--sans); font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.recent-projects-summary { font-size: 18px; line-height: 1.6; color: var(--muted); margin: 8px 0 0; max-width: 72ch; }
.recent-projects-scope { font-size: 18px; color: var(--ink); margin: 10px 0 0; opacity: 0.7; font-style: italic; }
@media (max-width: 640px) {
  .recent-projects-head { flex-direction: column; gap: 4px; }
  .recent-projects li a { padding: 22px 16px; }
  .recent-projects li a:hover { padding-left: 28px; }
}

/* Heroless detail page — placeholder where the .detail-hero img would be.
   Use hard-coded warm cream so it stays visually correct across brand-color
   theme swaps (some themes remap --sand-100 to a saturated color). */
.detail-placeholder {
  background: #F5ECD8;
  padding: 80px 0;
  text-align: center;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.detail-placeholder .eyebrow { color: #895521; margin-bottom: 12px; }
.detail-placeholder p:last-child { color: #5C5648; font-size: 17px; max-width: 60ch; margin: 0 auto; line-height: 1.6; }
.detail-placeholder::after { display: none; }

/* project video embed (YouTube shorts = vertical, regular = horizontal) */
.project-video { margin: 0 auto; max-width: 360px; }
.project-video--horizontal { max-width: 880px; }
.project-video-frame { position: relative; width: 100%; aspect-ratio: 9 / 16; background: #000; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); }
.project-video--horizontal .project-video-frame { aspect-ratio: 16 / 9; }
.project-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.project-video figcaption { margin-top: 14px; font-size: 15px; color: var(--muted); text-align: center; line-height: 1.5; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; }
.contact-form { background: #fff; padding: 48px; border: 1px solid var(--rule); border-radius: 6px; box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.field label { font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.field label .req { color: #C0392B; margin-left: 2px; } /* warm brick red — harmonizes with the brand's earthy palette without clashing */
.field input, .field select, .field textarea {
  padding: 14px 16px; border: 1px solid var(--rule); border-radius: 4px;
  font-family: var(--sans); font-size: 17px; background: var(--paper); color: var(--ink);
}
.field textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.contact-aside h3 { margin-bottom: 24px; }
.contact-aside .info-block { padding: 24px 0; border-bottom: 1px solid var(--rule); }
.contact-aside .info-block:last-child { border-bottom: 0; }
.contact-aside dt { font-size: 15px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.contact-aside dd { font-family: var(--serif); font-size: 21px; line-height: 1.4; }
.contact-aside dd a { color: inherit; }

/* ============ MOBILE NAV TOGGLE ============ */
/* Hamburger button — hidden by default on desktop, shown at <=1023px. */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent; border: 0; padding: 0; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 6px;
  position: relative; z-index: 12;
  color: inherit;
}
.nav-toggle-bar {
  display: block; width: 26px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.18s ease;
  transform-origin: center;
}
[data-mobile-nav].is-open .nav-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
[data-mobile-nav].is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
[data-mobile-nav].is-open .nav-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile-only CTA inside the menu (desktop hides it) */
.nav-cta--mobile { display: none; }

/* Lock body scroll when the menu is open */
html.is-nav-open, html.is-nav-open body { overflow: hidden; }

/* ============ RESPONSIVE BREAKPOINTS ============ */

/* Tablet & below (≤1023px) — collapse nav into burger menu */
@media (max-width: 1023px) {
  .nav, .nav--inverted { padding: 16px 24px; height: auto; min-height: 96px; position: relative; }
  .nav-brand img.nav-brand-logo { height: 64px; max-width: none; }

  .nav-toggle { display: inline-flex; }
  .nav-cta--desktop { display: none; }
  .nav-cta--mobile  { display: inline-flex; margin-top: 16px; align-self: flex-start; }

  /* Slide-down panel */
  .nav-links {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: var(--teal-900); color: #fff;
    flex-direction: column; gap: 0;
    padding: 90px 32px 24px; /* tighter top so first item sits closer to nav band; less bottom slack so all items fit without scrolling */
    transform: translateY(-100%); transition: transform 0.32s cubic-bezier(0.7, 0, 0.3, 1);
    z-index: 10;
    overflow-y: auto;
    align-items: flex-start;
  }
  [data-mobile-nav].is-open .nav-links { transform: translateY(0); }
  .nav-links a {
    color: #fff; font-family: var(--serif); font-size: 24px; font-weight: 400; letter-spacing: -0.01em;
    padding: 7px 0; width: 100%; /* tighter vertical rhythm so all menu items fit without scroll */
    border-bottom: 1px solid rgba(233,215,176,0.18);
  }
  .nav-links a[style*="accent"] { color: var(--accent) !important; }

  /* C5 — Services dropdown on mobile: inline, expand via caret (not hover) */
  .nav-item--has-sub { display: block; width: 100%; }
  .nav-item-row {
    display: flex; align-items: center; justify-content: space-between; width: 100%;
    border-bottom: 1px solid rgba(233,215,176,0.18);
  }
  .nav-item-row a { border-bottom: 0; flex: 1 1 auto; }
  .nav-sub-caret { color: #fff; padding: 10px 4px; }
  .nav-sub-caret svg { width: 24px; height: 24px; }
  .nav-item--has-sub:hover > .nav-submenu,
  .nav-item--has-sub:focus-within > .nav-submenu { display: none; }   /* touch: don't open on hover */
  .nav-submenu {
    position: static; left: auto; top: auto; min-width: 0;
    background: transparent; border: 0; border-radius: 0; box-shadow: none;
    padding: 4px 0 10px;
  }
  .nav-submenu::before { display: none; }
  .nav-item--has-sub.is-open > .nav-submenu { display: block; }
  .nav-submenu a {
    color: #fff; font-family: var(--serif); font-size: 21px; font-weight: 400;
    padding: 6px 0 6px 18px; white-space: normal;
  }
  .nav-submenu a:hover { background: transparent; color: #FFCC00; }
  .nav-cta--mobile {
    margin-top: 16px; padding: 16px 0;
    color: #FFCC00 !important; background: transparent !important;
    border: 0 !important; border-radius: 0 !important; outline: none !important; box-shadow: none !important;
    justify-content: flex-start; /* aligned like the other menu links */
  }
  /* Arrow uses stroke=currentColor; force yellow + a bit larger so it
     matches the bigger menu-text scale. */
  .nav-cta--mobile .btn-arrow {
    color: #FFCC00;
    width: 26px;
    height: 26px;
  }

  /* Layout: collapse two-column heads + service rows */
  .section-head { grid-template-columns: 1fr; gap: 28px; }
  .pillars { grid-template-columns: 1fr; }
  /* v41 — 5-card variant: collapse the staggered span overrides so every
     card stacks vertically on tablet/mobile. */
  .pillars--five { grid-template-columns: 1fr; }
  .pillars--five > .pillar,
  .pillars--five > .pillar:nth-child(4),
  .pillars--five > .pillar:nth-child(5) { grid-column: auto; }
  .feature { grid-template-columns: 1fr; padding: 56px 32px; gap: 40px; }
  .feature-photo { aspect-ratio: 16/9; }
  .area-block { grid-template-columns: 1fr; gap: 40px; }
  /* Service-areas county tiles: 3-up on desktop is illegible on mobile —
     stack them vertically so each card has full width. */
  body .county-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
  .svc-row, .svc-row--reverse { grid-template-columns: 1fr !important; gap: 32px; }
  .svc-row--reverse .svc-row-photo { order: 0; }
  .svc-row--reverse .svc-row-text  { order: 0; }
  .testimonial-grid,
  .testimonial-grid--two { grid-template-columns: 1fr; gap: 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .area-cities { grid-template-columns: 1fr; gap: 0; }

  /* Projects strip → 2-column flowing grid */
  .projects-strip { grid-template-columns: 1fr 1fr; grid-template-rows: auto; gap: 12px; }
  .project-card,
  .project-card--lg, .project-card--md, .project-card--sm {
    grid-column: span 1 !important; grid-row: auto !important;
    aspect-ratio: 4/3;
  }

  .project-meta { grid-template-columns: 1fr 1fr; gap: 24px; padding: 32px 0; }

  /* Hero proportions */
  .hero { min-height: 600px; }
  .hero-inner { padding: 140px 0 80px; }
  .hero h1 { font-size: clamp(36px, 8vw, 56px); }
  .hero-sub { font-size: 17px; }
  .hero-bg { top: 96px; }   /* matches reduced nav height */

  section { padding: 72px 0; }
  section.tight { padding: 56px 0; }
  .container { width: calc(100% - 48px); }

  /* Trust strip flows below the hero content on smaller screens
     instead of overlaying it (which was covering the orange CTA).
     position:relative + z-index keeps it ABOVE the absolutely-positioned
     hero-bg photo (which was burying the text per CSS stacking rules). */
  .trust-strip {
    position: relative; z-index: 2;
    padding: 22px 24px; font-size: 15px; letter-spacing: 0.14em;
    background: var(--teal-900); color: #fff;
    border-top: 1px solid rgba(233,215,176,0.2);
    backdrop-filter: none;
  }
  .trust-strip-inner { flex-wrap: wrap; gap: 14px 22px; justify-content: center; }
  .trust-strip-inner span { color: #fff; white-space: nowrap; } /* keep each phrase intact so "COAST" doesn't orphan onto its own line on ≤307px screens */

  /* Now that the trust strip is no longer absolute, the hero shouldn't try to
     reserve space for it via min-height — let content drive height. */
  .hero { min-height: auto; }
  .hero-inner { padding-bottom: 56px; }
}

/* Phone (≤640px) — collapse further */
@media (max-width: 640px) {
  .nav { padding: 14px 18px; min-height: 80px; }
  .nav-brand img.nav-brand-logo { height: 52px; max-width: none; }
  .hero-bg { top: 80px; }
  .hero-inner { padding: 110px 0 64px; }
  .hero h1 { font-size: clamp(32px, 9vw, 44px); }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 16px; }
  .btn { width: 100%; justify-content: center; }
  .hero .btn { width: auto; }

  .container { width: calc(100% - 32px); }

  .feature { padding: 40px 24px; }
  .testimonial { padding: 28px; }
  .testimonial blockquote { font-size: 18px; }
  .testimonial--featured blockquote { font-size: 21px; }

  .footer { padding: 56px 0 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
  .footer-logo-card img { height: 136px; }

  /* Hard-clamp the form to the viewport (minus container side padding) so
     no min-content child can ever push it past the viewport edge. Slightly
     more left padding gives labels + inputs visual room from the form edge. */
  .contact-form { padding: 24px 14px 24px 24px; box-sizing: border-box; max-width: calc(100vw - 32px); min-width: 0; overflow: hidden; }
  /* Inputs inherit a minimum width from their `size` attribute (default 20
     ≈ 280px). On narrow phones this forces the form wider than the viewport.
     min-width:0 on the inputs *and* their parent .field/.field-row lets them
     actually shrink below their intrinsic min. The calc(100% - 20px) gives
     them a small inner buffer so on Android with larger system fonts the
     widest <select>'s intrinsic min-content can't push the form over the
     viewport edge. */
  .field, .field-row, .contact-grid { min-width: 0; }
  .field input, .field select, .field textarea {
    box-sizing: border-box;
    width: calc(100% - 20px);
    max-width: calc(100% - 20px);
    min-width: 0;
  }
  /* Reset for very-narrow breakpoint — drop form right padding further but
     keep the visible left edge so labels still have breathing room. */
  @media (max-width: 360px) {
    .contact-form { padding: 20px 10px 20px 18px; }
  }
  /* Page-hero on contact page sets inline padding-bottom: 80px, and the
     following <section> sets inline padding-top: 100px — combined that's
     180px of empty space above the form on mobile. Override both. */
  body .page-hero { padding-bottom: 32px !important; }
  body .contact-section { padding-top: 24px !important; }

  .projects-strip { grid-template-columns: 1fr; }
  .project-card, .project-card--lg, .project-card--md, .project-card--sm { aspect-ratio: 16/10; }

  .project-meta { grid-template-columns: 1fr; gap: 20px; }
  .project-meta dd { font-size: 18px; }

  .pillar { padding: 28px; min-height: auto; }
  .area-cities { font-size: 18px; }
  .area-cities li { padding: 8px 0; }

  /* Watermark gets out of the way on phones */
  .proof-watermark { right: 12px; bottom: 12px; padding: 4px 12px 4px 4px; font-size: 12px; }
  .proof-watermark img { width: 28px; height: 28px; }
}

/* Avoid horizontal overflow on any image-heavy section */
img, picture, svg, video { max-width: 100%; }
section, header, footer { overflow-x: hidden; }

/* ============ v13 — SCROLL-REVEAL MOTION ============ */
/* Elements with .reveal start hidden + offset; .is-visible (added by JS) animates them in. */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
/* Stagger variants — child elements animate in sequence */
.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.15s; opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.25s; opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.35s; opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.45s; opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.55s; opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(n+7) { transition-delay: 0.65s; opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
}

/* Smooth scroll for anchor jumps */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ============ v14 — TYPOGRAPHY CONSOLIDATION ============ */
/* License numbers, phone digits etc. — use Inter tabular-nums instead of a separate mono font. */
.lic-num {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--teal-700);
}

/* ============ v14 — HERO H1 CHARACTER FADE-IN (typewriter) ============ */
/* JS wraps each character in <span class="char">; CSS staggers them via --i. */
.hero h1 .word { display: inline-block; white-space: nowrap; } /* keeps words from breaking between their inline-block chars */
.hero h1 .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
  animation: char-in 0.55s cubic-bezier(0.2, 0.7, 0.25, 1) forwards;
  animation-delay: calc(var(--i, 0) * 28ms + 200ms);
}
.hero h1 .char--space { width: 0.28em; }
@keyframes char-in {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero h1 .char { opacity: 1; transform: none; animation: none; }
}

/* ============ v14 — FILL-FROM-BOTTOM HOVER ON CARDS ============ */
/* Adds a colored panel that slides up from the bottom on hover, inverting card text.
   Apply via .card-fill-up — service pillars + service-area tiles already use .pillar. */
.pillar {
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform 0.35s ease, box-shadow 0.35s ease, color 0.35s ease;
}
.pillar::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 100%; background: var(--teal-700); z-index: -1;
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.45, 0.05, 0.2, 1);
}
.pillar:hover { color: #fff; transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.pillar:hover::before { transform: translateY(0); }
.pillar:hover h3,
.pillar:hover .pillar-list,
.pillar:hover .pillar-list li,
.pillar:hover .eyebrow,
.pillar:hover p { color: rgba(255,255,255,0.95); }
.pillar:hover .pillar-list li::before { background: var(--accent-bright); }  /* v22 — bright accent reads on dark teal hover */
.pillar:hover .pillar-link { color: #fff; }                                    /* v22 — was var(--accent), 1.79:1 fail on teal-700 */
.pillar:hover .pillar-icon { filter: brightness(0) invert(1); }

@media (prefers-reduced-motion: reduce) {
  .pillar::before { transition: none; }
}

/* Featured-testimonial card and white "card" testimonials get a subtler accent fill */
/* v24 — these duplicate rules are kept for backward-compat; base .testimonial::before
   already covers all three variants. Left in case any page-specific overrides need them. */
.testimonial--featured,
.testimonial--card {
  position: relative; overflow: hidden; isolation: isolate;
}
.testimonial--featured::before,
.testimonial--card::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: var(--accent); transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.4s cubic-bezier(0.45, 0.05, 0.2, 1);
}
.testimonial--featured:hover::before,
.testimonial--card:hover::before { transform: scaleY(1); }

/* ============ v18 — SHINE SWEEP ON IMAGE HOVER ============ */
/* Diagonal white-gradient highlight that sweeps across photos on hover.
   Pure CSS, ::after pseudo-element. Pairs with the existing lift + zoom
   on .project-card / .feature / .svc-row — does not replace them.
   z-index 1 keeps it above the img but below positioned text overlays. */

.project-card,
.feature-photo,
.svc-row-photo,
.testimonials .feature-photo {
  /* Ensure the parent has position context (most already do, but redundant is fine) */
  position: relative;
}

.project-card::after,
.feature-photo::after,
.svc-row-photo::after,
.process-phase-photo::after {
  content: "";
  position: absolute;
  top: 0; left: -75%; width: 50%; height: 100%;
  background: linear-gradient(
    105deg,
    rgba(255,255,255,0)   0%,
    rgba(255,255,255,0)   30%,
    rgba(255,255,255,0.55) 50%,
    rgba(255,255,255,0)   70%,
    rgba(255,255,255,0)   100%
  );
  transform: skewX(-22deg);
  pointer-events: none;
  opacity: 0;
  z-index: 1;
}

.project-card:hover::after,
.feature:hover .feature-photo::after,
.feature-photo:hover::after,
.svc-row:hover .svc-row-photo::after,
.svc-row-photo:hover::after,
.process-phase:hover .process-phase-photo::after,
.process-phase-photo:hover::after {
  animation: shine-sweep 1.05s cubic-bezier(0.25, 0.6, 0.3, 1) forwards;
}

@keyframes shine-sweep {
  0%   { left: -75%; opacity: 0; }
  18%  { opacity: 1; }
  82%  { opacity: 1; }
  100% { left: 130%; opacity: 0; }
}

/* Keep the project card text overlay on top of the shine layer */
.project-card-meta { z-index: 2; }

@media (prefers-reduced-motion: reduce) {
  .project-card:hover::after,
  .feature:hover .feature-photo::after,
  .feature-photo:hover::after,
  .svc-row:hover .svc-row-photo::after,
  .svc-row-photo:hover::after,
  .process-phase:hover .process-phase-photo::after,
  .process-phase-photo:hover::after { animation: none; opacity: 0; }
}

/* ============ v41 — ADDITIONAL GC SERVICES ============ */
.gc-services-section { background: #dbdbdb; padding: 96px 0; }
.gc-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.gc-services-grid li {
  position: relative;
  padding: 14px 0 14px 28px;
  font-family: var(--sans);
  font-size: 18px;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  line-height: 1.4;
}
.gc-services-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 14px;
  height: 1px;
  background: var(--accent);
}
.gc-partners { margin-top: 64px; max-width: 720px; }
.gc-partners h3 {
  font-size: 21px;
  color: var(--ink);
  margin-bottom: 8px;
}
.gc-partners .lede { font-size: 17px; margin-bottom: 18px; }
.gc-partners-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}
.gc-partners-list li {
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-700);
  background: #fff;
  border: 1px solid var(--rule);
  padding: 8px 14px;
  border-radius: 999px;
}

/* ============ v41 — CERTIFICATIONS, TRAINING & PARTNERSHIPS ============ */
.certifications { background: #dbdbdb; padding: 96px 0; }
.certifications-head { max-width: 880px; margin-bottom: 56px; }
.certifications-head .eyebrow { color: var(--accent); margin-bottom: 12px; }
.certifications-head h2 { font-size: clamp(30px, 3.4vw, 48px); max-width: 28ch; }
.certifications-head .lede { font-size: clamp(20px, 2vw, 28px); margin-top: 16px; max-width: 60ch; }

.certifications-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cert-tile {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.cert-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--teal-300);
}
.cert-logo {
  width: 80px;
  height: 80px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cert-logo img { max-width: 64px; max-height: 64px; object-fit: contain; }
.cert-logo-placeholder {
  width: 14px; height: 14px; border-radius: 50%; background: var(--rule);
  font-size: 0;
}
.cert-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  margin: 0;
}
.cert-sub {
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin: 0;
}

@media (max-width: 1023px) {
  .gc-services-grid { grid-template-columns: repeat(2, 1fr); }
  .certifications-grid { grid-template-columns: repeat(2, 1fr); }
  .gc-services-section, .certifications { padding: 72px 0; }
}
@media (max-width: 640px) {
  .gc-services-grid { grid-template-columns: 1fr; gap: 0; }
  .certifications-grid { grid-template-columns: 1fr; }
}

/* ============ v22 — SERVICES INDEX TWEAKS ============ */
/* Service-pillar variant — non-fill-up hover (uses the same .pillar styles but customized) */
.pillar.pillar--service { color: var(--ink); }
.pillar.pillar--service h3 { color: var(--ink); }
.pillar.pillar--service .pillar-link { color: var(--teal-700); }
/* Inherits .pillar:hover behavior (fill-up + invert) since fill-up is part of .pillar */

/* select with a placeholder option styled muted */
.field select option[value=""] { color: var(--muted); }
.field select:has(option[value=""]:checked) { color: var(--muted); font-style: italic; }

/* ============ v25 — DETAIL HERO (project + service pages) ============ */
/* Full-bleed photo replacing the v24 dark-teal-framed hero. The photo takes the
   full viewport width, no container constraint, no border-radius. */
.detail-hero {
  position: relative; overflow: hidden;
  margin: 0 0 100px 0;
  background: var(--teal-900);
}
.detail-hero img {
  display: block;
  width: 100%; height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

/* Page-load shine sweep — same gradient + skew as the .project-card hover shine,
   but auto-runs once 0.4s after page-ready. */
.detail-hero::after {
  content: "";
  position: absolute;
  top: 0; left: -75%; width: 55%; height: 100%;
  background: linear-gradient(
    105deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0) 30%,
    rgba(255,255,255,0.50) 50%,
    rgba(255,255,255,0) 70%,
    rgba(255,255,255,0) 100%
  );
  transform: skewX(-22deg);
  pointer-events: none;
  opacity: 0;
  animation: detail-hero-shine 1.6s cubic-bezier(0.25, 0.6, 0.3, 1) 0.4s forwards;
}

@keyframes detail-hero-shine {
  0%   { left: -75%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: 130%; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .detail-hero::after { animation: none; opacity: 0; }
}

@media (max-width: 1023px) {
  .detail-hero { margin-bottom: 64px; }
  .detail-hero img { aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
  .detail-hero { margin-bottom: 48px; }
  .detail-hero img { aspect-ratio: 4 / 3; }
}

/* ============ v25 — PAGE HERO FADE-IN (titles + subtitles) ============ */
/* Detail pages and interior pages: breadcrumb / H1 / lede fade up on page load. */
.page-hero .breadcrumb,
.page-hero h1,
.page-hero .lede {
  opacity: 0;
  transform: translateY(18px);
  animation: page-hero-fade 0.75s cubic-bezier(0.2, 0.7, 0.25, 1) forwards;
}
.page-hero .breadcrumb { animation-delay: 0.10s; }
.page-hero h1         { animation-delay: 0.22s; }
.page-hero .lede      { animation-delay: 0.45s; }

@keyframes page-hero-fade {
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .page-hero .breadcrumb,
  .page-hero h1,
  .page-hero .lede { opacity: 1; transform: none; animation: none; }
}

/* v25 — footer policy links */
.footer-policy a { color: var(--ink); opacity: 0.75; transition: opacity 0.2s, color 0.2s; }
.footer-policy a:hover { color: var(--accent); opacity: 1; }

/* Policy/sitemap pages — grid responsive */
@media (max-width: 1023px) {
  .sitemap-grid, .sitemap-grid-foot { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 640px) {
  .sitemap-grid, .sitemap-grid-foot { grid-template-columns: 1fr !important; gap: 32px !important; }
}

/* ============ v26 — PAGE FLASH (load-in wow effect) ============ */
/* A solid white veil that covers the viewport on initial paint then fades out.
   Provides a "curtain rises" feel on the home page. */
.page-flash {
  position: fixed; inset: 0; z-index: 9999;
  background: #fff;
  pointer-events: none;
  animation: page-flash-fade 0.85s cubic-bezier(0.4, 0, 0.6, 1) forwards;
}
@keyframes page-flash-fade {
  0%   { opacity: 1; }
  35%  { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .page-flash { display: none; }
}

/* ============ v26 — HOME HERO SHINE ON LOAD ============ */
/* Adds the same diagonal-sweep shine used elsewhere, fired once on page load,
   right after the curtain-flash clears. Lives on .hero--shine so other heroes
   (interior page-hero, etc.) don't accidentally get it. */
.hero--shine .hero-bg::before {
  content: "";
  position: absolute;
  top: 0; left: -75%; width: 55%; height: 100%;
  background: linear-gradient(
    105deg,
    rgba(255,255,255,0)    0%,
    rgba(255,255,255,0)    30%,
    rgba(255,255,255,0.45) 50%,
    rgba(255,255,255,0)    70%,
    rgba(255,255,255,0)    100%
  );
  transform: skewX(-22deg);
  pointer-events: none;
  z-index: 2;     /* above the photo + the gradient overlay */
  opacity: 0;
  animation: hero-shine-sweep 1.6s cubic-bezier(0.25, 0.6, 0.3, 1) 0.85s forwards;
}
@keyframes hero-shine-sweep {
  0%   { left: -75%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: 130%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero--shine .hero-bg::before { animation: none; opacity: 0; }
}

/* v30 — testimonials grid: 3-column for the property-managers section */
.testimonial-grid--three { grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 1023px) {
  .testimonial-grid--three { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (max-width: 640px) {
  .testimonial-grid--three { grid-template-columns: 1fr; gap: 16px; }
}

/* ============ v31 — TESTIMONIALS CAROUSEL ============ */
.testimonials-carousel { overflow: hidden; }
.testimonials-carousel .carousel-track {
  display: flex;
  transition: transform 0.65s cubic-bezier(0.25, 0.6, 0.3, 1);
  will-change: transform;
}
.testimonials-carousel .carousel-slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding: 4px;  /* allows hover lift to render without clipping */
}
@media (max-width: 1023px) {
  .testimonials-carousel .carousel-slide { grid-template-columns: 1fr 1fr; gap: 18px; }
}
@media (max-width: 640px) {
  .testimonials-carousel .carousel-slide { grid-template-columns: 1fr; gap: 16px; }
}
.testimonials-carousel .carousel-bullets {
  display: flex; justify-content: center; gap: 12px; margin-top: 36px;
}
.testimonials-carousel .carousel-bullet {
  /* v33 — outlined-dot pattern for the now-light teal-50 testimonials section.
     Idle: transparent fill + thick teal-700 ring, fully visible against teal-50 bg.
     Hover: filled dark teal. Active: filled accent with the same ring as anchor. */
  width: 14px; height: 14px; border-radius: 50%;
  background: transparent;
  border: 2px solid var(--teal-700);
  padding: 0;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.6) inset;
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.testimonials-carousel .carousel-bullet:hover { background: var(--teal-700); box-shadow: none; transform: scale(1.18); }
.testimonials-carousel .carousel-bullet.is-active { background: var(--accent); border-color: var(--accent); box-shadow: none; transform: scale(1.3); }
.testimonials-carousel .carousel-bullet:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .testimonials-carousel .carousel-track { transition: none; }
}

/* ============ v34 — PROJECT GALLERY (multi-photo) ============ */
/* Used on project detail pages in the new "additional views" section.
   Already styled by .project-gallery from the original mockups; expand here. */
.project-gallery {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
.project-gallery img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 4px;
  transition: transform 0.5s ease, opacity 0.3s ease;
  box-shadow: var(--shadow);
}
.project-gallery img:hover { transform: scale(1.02); }
.project-gallery .span-2 { grid-column: span 2; aspect-ratio: 16/8; }
@media (max-width: 640px) {
  .project-gallery { grid-template-columns: 1fr; gap: 12px; }
  .project-gallery .span-2 { grid-column: span 1; aspect-ratio: 4/3; }
}

/* ============ v34 — PROCESS PAGE TIMELINE ============ */
.process-timeline { display: flex; flex-direction: column; gap: 80px; }
.process-phase {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.process-phase--reverse { grid-template-columns: 1fr 1fr; }
.process-phase--reverse .process-phase-photo { order: 2; }
.process-phase--reverse .process-phase-text  { order: 1; }
.process-phase-photo {
  position: relative; aspect-ratio: 4/3; overflow: hidden;
  border-radius: 6px; box-shadow: var(--shadow);
  background: var(--teal-100);
}
.process-phase-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.process-phase:hover .process-phase-photo img { transform: scale(1.04); }
.process-phase-text h3 { font-size: clamp(30px, 3.4vw, 48px); margin-top: 8px; }
.process-phase-text .eyebrow { font-weight: 700; color: var(--accent); letter-spacing: 0.18em; }

@media (max-width: 1023px) {
  .process-phase, .process-phase--reverse { grid-template-columns: 1fr; gap: 28px; }
  .process-phase--reverse .process-phase-photo { order: 0; }
  .process-phase--reverse .process-phase-text  { order: 0; }
  .process-timeline { gap: 56px; }
}

/* ============ v37 — PROCESS PHOTO PLACEHOLDER ============ */
/* Used when client photos are not yet available. Coastal Bright look — sand bg,
   teal accents, camera glyph. Designed to feel intentional, not "broken image". */
.process-phase-photo--placeholder::after { display: none; }  /* no shine on the empty placeholder (same convention as .detail-placeholder) */
.process-phase-photo--placeholder {
  background: linear-gradient(135deg, var(--sand-200) 0%, var(--sand-100) 100%);
  border: 1px dashed rgba(16, 62, 72, 0.22);
  box-shadow: none;
  display: flex; align-items: center; justify-content: center;
}
.phase-placeholder {
  text-align: center; padding: 32px 28px; max-width: 320px;
}
.phase-placeholder-icon {
  width: 56px; height: 56px; color: var(--teal-700);
  opacity: 0.55; margin: 0 auto 16px;
}
.phase-placeholder-eyebrow {
  font-family: var(--sans);
  font-size: 15px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 8px;
}
.phase-placeholder-caption {
  font-family: var(--serif);
  font-size: 17px; line-height: 1.4;
  color: var(--ink);
  margin: 0 0 14px;
}
.phase-placeholder-note {
  font-family: var(--sans);
  font-size: 15px; font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid rgba(16, 62, 72, 0.14);
}

/* ============ v37 — CAPTIONED PROJECT GALLERY ============ */
/* Used when gallery_captions is provided in projects.json. */
.project-gallery--captioned {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.project-gallery--captioned .gallery-figure {
  margin: 0;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.project-gallery--captioned .gallery-figure:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(16, 62, 72, 0.16);
}
.project-gallery--captioned img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  display: block;
}
.project-gallery--captioned figcaption {
  font-family: var(--sans);
  font-size: 15px; line-height: 1.55;
  color: var(--ink);
  padding: 18px 20px 22px;
  border-top: 2px solid var(--accent);
}
@media (max-width: 1023px) {
  .project-gallery--captioned { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (max-width: 640px) {
  .project-gallery--captioned { grid-template-columns: 1fr; gap: 16px; }
}


/* Yellow band on every nav variant (home + inverted on inner pages).
   .nav-cta border uses currentColor, so setting text to black handles
   button borders automatically. */
.nav, .nav--inverted {
  background: #FFCC00;
  color: #000000;
}
.nav .nav-cta:hover, .nav--inverted .nav-cta:hover {
  background: #000000;
  color: #FFCC00;
}
/* Hide the inverted nav's underline rule — it would print a thin line below
   the yellow band that home doesn't have. transparent keeps geometry intact. */
.nav--inverted { border-bottom-color: transparent; }
/* Active-nav on yellow: green --accent fails contrast; black matches inactive
   text. Brown (4.1:1 on yellow, AA Large) gives a clearly distinguishable
   active signal. Applied on .nav, .nav--inverted, AND the .nav-cta--desktop
   button which inherits the same active inline-style on /contact. */
.nav-links a[style*="accent"],
.nav-cta[style*="accent"] {
  color: #895521 !important;
  border-color: #895521 !important;
}
/* Logo bursts out the bottom of the yellow band. With the logo enlarged and
   overflowing onto the page content below, the yellow-on-yellow contrast
   issue resolves itself — the bottom portion of the logo sits on the page
   bg (photo on home, light cream on inner pages), so no halo is needed.
   Scale + transform-origin: left top keeps the logo's top edge inside the
   nav band and extends only downward. Nav layout/sibling positions are
   unchanged because the transform doesn't reflow. */
/* Nav must establish a stacking context above the following <header.page-hero>
   (which has overflow:hidden). Without position+z-index here, the page-hero's
   solid background paints over the logo's overflow on inner pages. */
.nav, .nav--inverted { overflow: visible; position: relative; z-index: 50; }
/* Logo scaled and overflowing the yellow band — no pseudo-element shadow.
   The masked-pseudo approach was creating alignment edge cases that weren't
   worth the visual gain; the logo's transparent bg + scale alone reads
   cleanly on the yellow nav and the page below. */
.nav-brand { min-width: 220px; }
.nav .nav-brand-logo,
.nav--inverted .nav-brand-logo {
  /* translate(0,-1px) is applied AFTER scale (rightmost-first in CSS transform
     list), so it nudges the logo exactly 1px upward in pixel space. The
     tablet/mobile media queries below override transform without the
     translate, so this nudge stays desktop-only. */
  transform: translate(0, -1px) scale(2.07);
  transform-origin: left top;
  filter: none;
}
@media (max-width: 1023px) {
  .nav-brand { min-width: 165px; }
  .nav .nav-brand-logo,
  .nav--inverted .nav-brand-logo {
    transform: translate(0, -3px) scale(2.25);
  }
}
@media (max-width: 640px) {
  .nav-brand { min-width: 135px; }
  .nav .nav-brand-logo,
  .nav--inverted .nav-brand-logo {
    /* 6px shorter than the original scale 2.43 → 52*2.43 - 6 = 120 → new scale
       = 120/52 = 2.308. Width auto-shrinks proportionally (aspect preserved). */
    transform: translate(0, -3px) scale(2.308);
  }
}
.pillar::before { background: #008248; }
.hero h1 em { color: #FFCC00; }


/* Brand-yellow text on hover for every solid button. */
.btn:not(.btn--ghost):hover {
  background: #000000;
  border-color: #000000;
  color: #FFCC00;
}
.btn:not(.btn--ghost):hover .btn-arrow { color: #FFCC00; }
/* Pillar hover: "Learn more" link + arrow render in brand yellow on the
   colored fill. The arrow uses stroke=currentColor so it inherits. */
.pillar:hover .pillar-link { color: #FFCC00; }
.pillar:hover .pillar-link .btn-arrow { color: #FFCC00; }

/* ============ PROJECT "OVERVIEW" LAYOUT (pilot — client docx 2026-06-09) ============
   Boxed main image + About-Project / Let's-Talk sidebar instead of the full-bleed hero.
   Opt-in per project via "layout": "overview" in projects.json. */
.overview-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 36px; align-items: stretch; }
.overview-media { margin: 0; position: relative; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); background: var(--teal-100); }
.overview-media img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; display: block; }
.overview-aside { display: flex; flex-direction: column; gap: 24px; }
.about-project-card { background: #fff; border: 1px solid var(--rule); border-radius: 6px; padding: 26px 28px; box-shadow: 0 12px 32px -20px rgba(0,0,0,0.25); }
.about-project-card dl { margin: 16px 0 0; display: grid; gap: 13px; }
.about-project-card dt { font-family: var(--sans); font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.about-project-card dd { font-size: 18px; font-weight: 600; color: var(--ink); margin: 2px 0 0; }
.lets-talk-card { background: var(--accent); color: #fff; border-radius: 6px; padding: 26px 28px; }
.lets-talk-title { font-family: var(--serif); font-size: 24px; font-weight: 500; color: #fff; }
.lets-talk-card > p:not(.lets-talk-title) { color: rgba(255,255,255,0.92); font-size: 17px; line-height: 1.6; margin-top: 10px; }
.lets-talk-contact { display: grid; gap: 4px; margin-top: 16px; }
.lets-talk-contact a { color: #fff; font-weight: 700; font-size: 18px; }
.lets-talk-contact a:hover { color: var(--accent-bright); }
.lets-talk-card .btn { margin-top: 20px; background: #fff; color: var(--ink); border-color: #fff; }
.lets-talk-card .btn:hover { background: var(--accent-bright); border-color: var(--accent-bright); color: var(--ink); }
/* reduced-size gallery tiles for the overview layout */
.project-gallery--compact { grid-template-columns: repeat(3, 1fr); }
.project-gallery--compact .span-2 { grid-column: span 1; aspect-ratio: 4/3; }
@media (max-width: 960px) { .overview-grid { grid-template-columns: 1fr; } .overview-media img { min-height: 280px; } }
@media (max-width: 720px) { .project-gallery--compact { grid-template-columns: 1fr; } }

/* Founder photo placeholder (About) — reserved blank slot until Javier's professional photo arrives (client 2026-06-19) */
.svc-row-photo--coming {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--sand-200) 0%, var(--sand-100) 100%);
  border: 1px dashed rgba(16, 62, 72, 0.22); box-shadow: none;
}
.svc-row-photo--coming span {
  font-family: var(--sans); font-size: 15px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted); text-align: center; line-height: 1.5;
}
