﻿/* ============================================================
   TerraTek Engineering Group, PSC
   Official Brand Stylesheet: April 2026
   Colors sourced from logo: #016A37 / #FBB445
   Typography: Cambria (titles) / Calibri (body)
   ============================================================ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Official TerraTek palette */
  --green:      #016A37;   /* Core Green: headers, titles, primary */
  --green-dark: #004422;   /* Deep Green: emphasis, footer, dividers */
  --gold:       #FBB445;   /* Gold: accents, callouts, footer bar */
  --cream:      #F4F1E8;   /* Cream: page/section backgrounds */
  --text:       #1A1A1A;   /* Body text: never pure black */
  --text-sec:   #4A4A4A;   /* Secondary text: captions, footers */
  --rule:       #C9C3B2;   /* Dividers inside cream areas */
  --white:      #FFFFFF;

  /* Derived utilities */
  --green-lt:   #e6f2ec;
  --gold-lt:    #fff8ec;

  --radius:    8px;
  --shadow:    0 4px 24px rgba(0,68,34,.10);
  --shadow-md: 0 8px 40px rgba(0,68,34,.16);
  --transition: .25s ease;
  --max-w:     1180px;
  --section:   88px 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Calibri', 'Carlito', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

/* ── Focus states: WCAG 2.4.7 ── */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Cambria', Georgia, serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--green);
}
h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.05rem, 2vw, 1.3rem); }
h4 { font-size: 1rem; }

p { color: var(--text-sec); }

.section-label {
  display: inline-block;
  font-family: 'Calibri', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-family: 'Calibri', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(1,106,55,.30);
}
.btn-gold {
  background: var(--gold);
  color: var(--text);   /* near-black on gold: WCAG passes at 9.71 */
  border-color: var(--gold);
  font-weight: 700;
}
.btn-gold:hover {
  background: #e8a230;
  border-color: #e8a230;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(251,180,69,.40);
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.55);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.10);
  border-color: var(--white);
}
.btn-outline-green {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn-outline-green:hover {
  background: var(--green);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(1,106,55,.20);
}

/* ============================================================
   NAVBAR: split nav with raised center logo badge
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  /* No border-bottom here: handled by padding + badge overflow */
  border-bottom: 1px solid rgba(0,0,0,.08);
  transition: box-shadow var(--transition);
  /* CRITICAL: allow the badge to pop above the bar */
  overflow: visible;
}
.navbar.scrolled { box-shadow: var(--shadow); }

.navbar-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 90px;
  position: relative;
}

/* ── Left nav group ── */
.nav-left {
  grid-column: 1;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

/* ── Right nav group ── */
.nav-right {
  grid-column: 3;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

/* ── Shared link styles (left & right) ── */
.nav-left a,
.nav-right a {
  padding: 10px 18px;
  border-radius: 6px;
  font-family: 'Calibri', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-sec);
  transition: var(--transition);
  white-space: nowrap;
}
.nav-left a:hover,   .nav-left a.active,
.nav-right a:hover,  .nav-right a.active {
  color: var(--green);
  background: var(--green-lt);
}
.nav-right .nav-cta a {
  background: var(--green);
  color: var(--white);
  padding: 9px 20px;
  border-radius: 6px;
}
.nav-right .nav-cta a:hover { background: var(--green-dark); }

/* ── Logo (left side) ── */
.navbar-logo {
  order: -1;              /* force to far left regardless of DOM order */
  margin-right: auto;     /* push all nav links to the right */
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-badge img {
  height: 78px;
  width: auto;
  display: block;
}

.navbar-logo .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.navbar-logo .brand-name {
  font-family: 'Cambria', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green);
}
.navbar-logo .brand-sub {
  font-family: 'Calibri', sans-serif;
  font-size: .68rem;
  font-weight: 700;
  color: var(--text-sec);
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ── Mobile toggle ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hidden combined mobile menu ── */
.nav-mobile {
  display: none;  /* shown only on mobile via media query */
  list-style: none;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: var(--green);
  padding-top: var(--navbar-h, 90px);
  overflow: hidden;
}
/* ── Split layout: content left, full-bleed photo right ── */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(92vh - var(--navbar-h, 90px));
}
.hero-panel {
  background: var(--green);
  display: flex;
  align-items: center;
  padding: 48px 0;
}
.hero-panel-inner {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 clamp(28px, 5vw, 72px);
  display: flex;
  flex-direction: column;
}
.hero-content { max-width: 100%; }
.hero h1 { font-size: clamp(1.9rem, 3vw, 3.1rem); line-height: 1.12; }
.hero-tagline { font-family: 'Cambria', Georgia, serif; }
.hero-media {
  position: relative;
  min-height: 320px;
}

/* ── Hero Slideshow (full-bleed, no rounded corners) ── */
.hero-slideshow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;              /* square corners */
  overflow: hidden;
  box-shadow: none;              /* no gold ring, no drop shadow */
  background: var(--green-dark);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .75s ease;
}
.slide.active { opacity: 1; }

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Per-slide crop focus: set --focus on the img to pick the subject.
     Higher % shifts the photo left, revealing more of its right side. */
  object-position: var(--focus, center);
  display: block;
}

/* Stack the split on smaller screens */
@media (max-width: 860px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-panel { padding: 40px 0; }
  .hero-panel-inner { max-width: 640px; }
  .hero-media { min-height: 300px; }
}

/* Prev / Next arrows */
.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0,0,0,.38);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  backdrop-filter: blur(4px);
}
.slide-arrow:hover { background: var(--gold); color: var(--text); }
.slide-prev { left: 12px; }
.slide-next { right: 12px; }

/* Dot indicators */
.slide-dots {
  position: absolute;
  bottom: 14px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 10;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.45);
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), transform var(--transition);
}
.dot.active {
  background: var(--gold);
  transform: scale(1.3);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  border-radius: 999px;
  padding: 5px 16px;
  font-family: 'Calibri', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  color: var(--text);   /* near-black: WCAG 9.71 on gold */
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero h1 {
  font-family: 'Cambria', Georgia, serif;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -.01em;
}
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p {
  font-family: 'Calibri', sans-serif;
  color: rgba(255,255,255,.82);
  font-size: 1.1rem;
  max-width: 540px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: nowrap; }
.hero-actions .btn { padding: 15px 26px; font-size: 1.05rem; white-space: nowrap; }

.hero-stats {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 0;
  margin-top: 56px;
  border-top: 1px solid rgba(255,255,255,.15);
}
.hero-stat {
  padding: 30px 21px 23px 0;
  margin-right: 21px;
  border-right: 1px solid rgba(255,255,255,.12);
}
.hero-stat:last-child { border-right: none; margin-right: 0; }
.hero-stat-num {
  display: block;
  font-family: 'Cambria', Georgia, serif;
  font-size: 2.65rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.hero-stat-num sup { font-size: 1.5rem; color: var(--gold); vertical-align: super; }
.hero-stat-label {
  font-family: 'Calibri', sans-serif;
  font-size: 1.01rem;
  color: rgba(255,255,255,.65);
  font-weight: 600;
  margin-top: 7px;
}
.hero-milestone {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  margin-bottom: 15px;
  padding: 9px 18px 9px 14px;
  background: rgba(251,180,69,.13);
  border: 1px solid rgba(251,180,69,.45);
  border-radius: 8px;
  font-family: 'Calibri', sans-serif;
  font-size: .97rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .02em;
}
.hero-milestone-star {
  font-size: 1.15rem;
  color: var(--gold);
  line-height: 1;
}
/* When placed under the slideshow (right column) */
.hero-milestone-below {
  margin-top: 18px;
  margin-bottom: 0;
  width: 100%;
  justify-content: center;
  text-align: center;
}

/* ── Slide captions ── */
.slide-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 18px;
  background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0));
  color: var(--white);
  font-family: 'Calibri', sans-serif;
  font-size: .82rem;
  line-height: 1.35;
  z-index: 2;
  pointer-events: none;
}

/* ── CTA phone link ── */
.cta-phone {
  margin-top: 14px;
  /* The sentence used to sit entirely inside the <a>. Now that two numbers
     are linked separately, the surrounding words need the same size. */
  font-size: .9rem;
}
.cta-phone a {
  color: var(--gold);
  font-weight: 700;
  font-size: inherit;
  text-decoration: none;
}
.cta-phone a:hover {
  text-decoration: underline;
}

/* ── Google Maps embed ── */
.map-embed {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0,0,0,.08);
}

/* ── Agency grid ── */
.agency-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 56px;
  margin-top: 48px;
  align-items: center;
  justify-content: center;
}
.agency-card {
  display: flex;
  align-items: center;
  justify-content: center;
}
.agency-logo-wrap {
  width: 240px;
  height: 144px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.agency-logo {
  max-width: 240px;
  max-height: 144px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.agency-logo-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  width: 240px;
  height: 144px;
  background: var(--green-lt);
  border-radius: 8px;
  font-family: 'Cambria', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: .04em;
}
.agency-name {
  font-family: 'Cambria', Georgia, serif;
  font-size: .92rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}
.agency-abbr {
  font-family: 'Calibri', sans-serif;
  font-size: .78rem;
  font-weight: 600;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section       { padding: var(--section); }
.et-cover-section { padding-bottom: 44px; }
.et-cover-section + .section { padding-top: 44px; }
.section-cream { background: var(--cream); }
.section-dark  { background: var(--green-dark); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,.72); }

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 52px;
}
.section-header p { font-size: 1rem; margin-top: 14px; }

/* Gold rule accent */
.section-rule {
  width: 44px; height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 14px auto 0;
}

/* ── Service Cards ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(278px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  min-height: 220px;
}
.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  opacity: 0;
  transition: var(--transition);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-card:hover::after { opacity: 1; }

/* ── Photo Service Cards (hover-reveal) ── */
.service-card.photo-card {
  padding: 0;
  border: none;
  min-height: 300px;
  background: var(--green-dark);
  cursor: pointer;
}
.service-card.photo-card::after { display: none; }
.service-card.photo-card:hover { transform: none; box-shadow: 0 16px 48px rgba(0,0,0,.3); }

.photo-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .55s ease;
}
.photo-card:hover .photo-card-bg { transform: scale(1.07); }

.photo-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 300px;
  padding: 32px 28px;
  background: linear-gradient(
    to top,
    rgba(0,40,20,.95) 0%,
    rgba(0,40,20,.75) 50%,
    rgba(0,40,20,.35) 100%
  );
  transition: background .4s ease;
}
.photo-card:hover .photo-card-content {
  background: linear-gradient(
    to top,
    rgba(0,40,20,.98) 0%,
    rgba(0,40,20,.88) 60%,
    rgba(0,40,20,.55) 100%
  );
}

/* Title */
.photo-card h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 12px;
}

/* Description: always visible */
.photo-card-desc {
  color: rgba(255,255,255,.92);
  font-size: 1.15rem;
  line-height: 1.6;
  margin: 0;
}

/* "Learn more": also revealed on hover, moving upward */
.photo-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-family: 'Calibri', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .02em;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(14px);
  transition: opacity .4s ease .05s, transform .4s ease .05s, max-height .45s ease;
}
.photo-card:hover .photo-card-link {
  max-height: 40px;
  opacity: 1;
  transform: translateY(0);
}

/* ══════════ SERVICES: BENTO GRID ══════════ */
.bento{
  display:grid;
  gap:1.25rem;
  grid-template-columns:repeat(4, 1fr);
  grid-auto-rows:minmax(240px, auto);
  margin-top:44px;
  grid-template-areas:
    "feat feat env  cult"
    "feat feat eng  eng"
    "perm perm insp insp";
}
.bento-item{
  position:relative;
  display:flex;
  border-radius:var(--radius);
  overflow:hidden;
  isolation:isolate;
  color:var(--white);
  text-decoration:none;
  box-shadow:var(--shadow);
  transition:transform .35s ease, box-shadow .35s ease;
}
.bento-item--feature{ grid-area:feat; }
.bento-item--env { grid-area:env;  }
.bento-item--cult{ grid-area:cult; }
.bento-item--eng { grid-area:eng;  }
.bento-item--perm{ grid-area:perm; }
.bento-item--insp{ grid-area:insp; }

.bento-bg{
  position:absolute; inset:0; z-index:-2;
  background-size:cover;
  background-position:center;
  transition:transform .6s ease;
}
.bento-item::after{
  content:"";
  position:absolute; inset:0; z-index:-1;
  background:linear-gradient(180deg,
    rgba(0,40,20,.15) 0%,
    rgba(0,40,20,.55) 55%,
    rgba(0,40,20,.90) 100%);
  transition:background .35s ease;
}
.bento-item:hover,
.bento-item:focus-visible{
  transform:translateY(-4px);
  box-shadow:var(--shadow-md);
}
.bento-item:hover .bento-bg,
.bento-item:focus-visible .bento-bg{ transform:scale(1.06); }
.bento-item:hover::after,
.bento-item:focus-visible::after{
  background:linear-gradient(180deg,
    rgba(0,40,20,.30) 0%,
    rgba(0,40,20,.65) 55%,
    rgba(0,40,20,.94) 100%);
}
.bento-item:focus-visible{
  outline:3px solid var(--gold);
  outline-offset:3px;
}

.bento-body{
  position:relative;
  margin-top:auto;
  padding:1.6rem;
  display:flex;
  flex-direction:column;
  gap:.6rem;
}
.bento-item h3{
  color:var(--white);
  margin:0;
  font-size:1.3rem;
  line-height:1.2;
}
.bento-item--feature h3{ font-size:2rem; }

.bento-desc{
  margin:0;
  font-size:.98rem;
  line-height:1.55;
  color:rgba(255,255,255,.92);
}
.bento-item--feature .bento-desc{ font-size:1.05rem; }

.bento-tag{
  align-self:flex-start;
  background:var(--gold);
  color:var(--green-dark);
  font-weight:700;
  font-size:.72rem;
  letter-spacing:.03em;
  text-transform:uppercase;
  padding:.35rem .7rem;
  border-radius:999px;
  line-height:1.2;
}
.bento-cta{
  margin-top:.15rem;
  font-weight:700;
  font-size:.92rem;
  color:var(--gold);
}

@media (max-width:900px){
  .bento{
    grid-template-columns:repeat(2, 1fr);
    grid-template-areas:
      "feat feat"
      "env  cult"
      "eng  eng"
      "perm insp";
  }
}
@media (max-width:560px){
  .bento{
    grid-template-columns:1fr;
    grid-auto-rows:minmax(220px, auto);
    grid-template-areas:
      "feat" "env" "cult" "eng" "perm" "insp";
  }
  .bento-item h3{ font-size:1.25rem; }
  .bento-item--feature h3{ font-size:1.7rem; }
}
@media (prefers-reduced-motion:reduce){
  .bento-item,
  .bento-bg,
  .bento-item::after{ transition:none; }
  .bento-item:hover,
  .bento-item:focus-visible{ transform:none; }
  .bento-item:hover .bento-bg,
  .bento-item:focus-visible .bento-bg{ transform:none; }
}

.service-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--green-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-family: 'Cambria', Georgia, serif;
  font-size: .88rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: .04em;
  border: 1.5px solid rgba(1,106,55,.15);
  overflow: hidden;
}
/* 3-character service codes need smaller font to fit */
.service-icon.icon-sm { font-size: .72rem; }
.service-card h3 { margin-bottom: 10px; }
.service-card p  { font-size: .9rem; line-height: 1.65; }

/* ── Language Toggle (EN/ES) ── */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 64px;            /* fixed width: switching language never shifts layout */
  box-sizing: border-box;
  background: transparent;
  border: 1.5px solid var(--rule);
  border-radius: 999px;
  padding: 6px 0;
  cursor: pointer;
  font-family: 'Calibri', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1;
  transition: border-color var(--transition);
}
.lang-toggle:hover { border-color: var(--green); }
.lang-toggle .lang-en,
.lang-toggle .lang-es { color: var(--text-sec); transition: color .2s ease; }
.lang-toggle .lang-en.active,
.lang-toggle .lang-es.active { color: var(--green); }
.lang-toggle .lang-sep { color: var(--rule); }
.navbar.scrolled .lang-toggle { border-color: var(--rule); }

/* Desktop: pin the toggle to the far right so it never unbalances the nav links */
.lang-toggle-desktop {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}
@media (max-width: 768px) { .lang-toggle-desktop { display: none; } }
/* In the mobile dropdown, present it as a centered row */
.lang-toggle-mobile-wrap { display: flex; justify-content: center; padding: 6px 0; }
@media (min-width: 769px) { .lang-toggle-mobile-wrap { display: none; } }

/* ── Credentials Strip: surface key trust signals ── */
.cred-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 44px;
}
.cred-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  border-top: 3px solid var(--gold);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.cred-icon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cambria', Georgia, serif;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .02em;
}
.cred-item-text { display: flex; flex-direction: column; line-height: 1.3; }
.cred-item-text strong {
  font-family: 'Cambria', Georgia, serif;
  color: var(--green);
  font-size: .95rem;
}
.cred-item-text span {
  font-family: 'Calibri', sans-serif;
  color: var(--text-sec);
  font-size: .8rem;
}

/* ── Service Finder: pick a category, carry it to the contact form ── */
.service-finder-section { background: var(--white); }
.finder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  max-width: 460px;
  margin: 0 auto;
}
.finder-chip {
  display: block;
  background: var(--white);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-family: 'Cambria', Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--green);
  transition: var(--transition);
}
.finder-chip:hover {
  border-color: transparent;
  border-left-color: var(--green);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* Brief highlight when the contact form arrives pre-filled from the finder */
.field-prefilled {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 6px;
  animation: prefilledPulse 1.2s ease;
}
@keyframes prefilledPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(251,180,69,0); }
  30%      { box-shadow: 0 0 0 6px rgba(251,180,69,.28); }
}

/* ── Stat Cards: gold left-rule per brand spec ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px 28px 28px;
  border-left: 6px solid var(--gold);
  box-shadow: var(--shadow);
}
.stat-card .num {
  font-family: 'Cambria', Georgia, serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}
.stat-card .num sup { font-size: 1.3rem; color: var(--green); }
.stat-card .lbl {
  font-family: 'Calibri', sans-serif;
  font-size: .88rem;
  color: var(--text-sec);
  margin-top: 6px;
  line-height: 1.4;
}

/* ── Feature list ── */
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: 'Calibri', sans-serif;
  font-size: .95rem;
  color: var(--text-sec);
}
.feature-list li::before {
  content: '✓';
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--green-lt);
  color: var(--green);
  font-size: .72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 3px;
}

/* ── Split layout ── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse > *:first-child { order: 2; }
.split.reverse > *:last-child  { order: 1; }

.split-visual {
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  position: relative;
}
.split-visual::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gold);
  z-index: 2;
}
.split-visual-inner { text-align: center; }
.split-visual-text  {
  font-family: 'Cambria', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.5;
}

/* Photo version of split-visual: no padding, image fills the frame */
.split-visual-photo {
  padding: 0;
  min-height: 400px;
  position: relative;
  overflow: hidden;
}
.split-visual-photo::before { display: none;}
.split-visual-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Contact item icon: text label style */
.contact-item-icon {
  width: 42px; height: 42px;
  border-radius: 9px;
  background: var(--green-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cambria', Georgia, serif;
  font-size: .7rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: .04em;
  flex-shrink: 0;
  border: 1.5px solid rgba(1,106,55,.15);
}

/* Footer contact label pill */
.footer-contact-label {
  font-family: 'Calibri', sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  min-width: 38px;
  padding-top: 2px;
}

/* ── Team Cards ── */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(256px, 1fr)); gap: 24px; }
.team-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: var(--transition);
}
.team-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.team-avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cambria', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 18px;
}
.team-card .role {
  font-family: 'Calibri', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 6px;
}
.team-card h3 { font-size: 1rem; margin-bottom: 10px; }
.team-card p  { font-size: .88rem; line-height: 1.6; }

/* Featured (principal) team card: photo + bio side by side, stacks on small screens */
.team-card--featured {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: start;
  padding: 36px;
  border-left: 6px solid var(--gold);
}
.team-card--featured .team-photo { width: 220px; margin-bottom: 0; }
@media (max-width: 640px) {
  .team-card--featured { grid-template-columns: 1fr; padding: 24px; }
  .team-card--featured .team-photo { width: 100%; max-width: 220px; }
}

/* Expertise tags */
.expertise-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag {
  background: var(--green-lt);
  color: var(--green);
  border: 1px solid rgba(1,106,55,.18);
  border-radius: 999px;
  padding: 5px 14px;
  font-family: 'Calibri', sans-serif;
  font-size: .8rem;
  font-weight: 700;
}

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(120deg, var(--green-dark), var(--green));
  border-radius: 12px;
  padding: 56px 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gold);
}
.cta-banner h2 { color: var(--white); margin-bottom: 10px; }
.cta-banner p  { color: rgba(255,255,255,.72); max-width: 460px; }

/* ── Service Detail Cards ── */
.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 28px;
}
.service-detail-card {
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--rule);
  background: var(--white);
  transition: var(--transition);
}
.service-detail-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.service-detail-card h3 {
  font-size: 1.05rem;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--green-lt);
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--green);
}
.service-detail-card h3 span { font-size: 1.2rem; }
.service-detail-card ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.service-detail-card ul li {
  font-family: 'Calibri', sans-serif;
  font-size: .9rem;
  color: var(--text-sec);
  padding-left: 16px;
  position: relative;
}
.service-detail-card ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--green);
  font-size: 1rem;
  font-weight: 700;
}

/* ── Contact Form ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 60px; align-items: start; }
.contact-info-block { display: flex; flex-direction: column; gap: 24px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
/* .contact-item-icon defined in split-visual block above */
.contact-item h4 {
  font-family: 'Calibri', sans-serif;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 3px;
}
.contact-item p {
  font-family: 'Calibri', sans-serif;
  font-size: .92rem;
  color: var(--text-sec);
  line-height: 1.55;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--gold);  /* callout block: gold top rule */
  border-radius: 0 0 12px 12px;
  padding: 44px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-group label {
  font-family: 'Calibri', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: .03em;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--rule);
  border-radius: var(--radius);
  font-family: 'Calibri', sans-serif;
  font-size: .92rem;
  color: var(--text);
  background: var(--cream);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-color: var(--green);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 116px; }
.form-group select   { cursor: pointer; }

/* ── Mission block ── */
.mission-block {
  background: var(--green);
  border-top: 4px solid var(--gold);
  border-radius: 0 0 12px 12px;
  padding: 52px 60px;
  position: relative;
  overflow: hidden;
}
.mission-block::before {
  content: '"';
  position: absolute;
  top: -32px; left: 28px;
  font-family: 'Cambria', Georgia, serif;
  font-size: 14rem;
  color: rgba(255,255,255,.05);
  line-height: 1;
}
.mission-block p {
  font-family: 'Calibri', sans-serif;
  font-size: 1.15rem;
  line-height: 1.8;
  color: rgba(255,255,255,.9);
  position: relative;
  font-style: italic;
  max-width: 780px;
}
.mission-block .mission-attr {
  margin-top: 22px;
  font-family: 'Calibri', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  color: rgba(255,255,255,.5);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-style: normal;
}

/* ── Page Hero ── */
.page-hero {
  background: var(--green);
  /* 70px bar + 42px badge overhang + breathing room */
  padding: 130px 0 20px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 56px 56px;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gold);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Calibri', sans-serif;
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 18px;
}
.page-hero .breadcrumb a { color: rgba(255,255,255,.65); }
.page-hero .breadcrumb a:hover { color: var(--white); }
.page-hero .breadcrumb span { color: rgba(255,255,255,.3); }
.page-hero h1 { color: var(--white); margin-bottom: 14px; }
.page-hero p  {
  font-family: 'Calibri', sans-serif;
  color: rgba(255,255,255,.75);
  font-size: 1.05rem;
  max-width: 560px;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer { background: var(--green-dark); color: rgba(255,255,255,.65); }

.footer-main { padding: 60px 0 48px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-logo-wrap { margin-bottom: 14px; }
.footer-logo-wrap img {
  height: 84px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .85;
}
.footer-brand-name {
  font-family: 'Cambria', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2px;
}
.footer-brand-sub {
  font-family: 'Calibri', sans-serif;
  font-size: .66rem;
  color: var(--gold);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 14px;
}
.footer-brand p {
  font-family: 'Calibri', sans-serif;
  font-size: .88rem;
  line-height: 1.65;
  color: rgba(255,255,255,.5);
}

.footer-col h4 {
  font-family: 'Calibri', sans-serif;
  color: var(--white);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-links a {
  font-family: 'Calibri', sans-serif;
  font-size: .88rem;
  color: rgba(255,255,255,.5);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: 'Calibri', sans-serif;
  font-size: .88rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 11px;
}
.footer-contact-item strong { color: rgba(255,255,255,.8); }

.social-links { display: flex; gap: 8px; margin-top: 18px; }
.social-link {
  width: 34px; height: 34px;
  border-radius: 7px;
  background: rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Calibri', sans-serif;
  font-size: .85rem;
  font-weight: 700;
  color: rgba(255,255,255,.5);
  transition: var(--transition);
}
.social-link:hover { background: var(--green); color: var(--white); }

/* Gold footer bar: credential line in near-black (WCAG 9.71) */
.footer-bar { background: var(--gold); padding: 13px 0; }
.footer-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bar p,
.footer-bar a,
.footer-bar span {
  font-family: 'Calibri', sans-serif;
  font-size: .82rem;
  color: var(--text);   /* #1A1A1A on gold: passes at 9.71 ratio */
  font-weight: 600;
}
.footer-bar a:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════════════════
   ── Contact Page ──
   Targeted enhancements for contact-us.html
   Gold accent bar, premium info column, upgraded form card,
   and faint decorative circle behind the info column.
   ══════════════════════════════════════════════════════════════ */

/* Gold top-border accent bar: full-width rule below the hero */
.contact-section-accent {
  width: 100%;
  height: 4px;
  background: var(--gold);
  display: block;
}

/* Contact section wrapper: relative for the decorative circle */
.contact-section-wrap {
  position: relative;
  overflow: hidden;
}

/* Decorative faint green circle behind info column */
.contact-section-wrap::before {
  content: '';
  position: absolute;
  top: -160px;
  left: -200px;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.04;
  z-index: 0;
  pointer-events: none;
}

/* Ensure all direct children of the container sit above the circle */
.contact-section-wrap .container {
  position: relative;
  z-index: 1;
}

/* ── Contact grid: more breathing room ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  align-items: start;
}

/* ── Info column: gold left-border anchor ── */
.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-left: 20px;
  border-left: 4px solid var(--gold);
  position: relative;
  z-index: 1;
}

/* ── Contact item row: premium card-row style ── */
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

/* Icon box: 44×44 green square with white label */
.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 9px;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cambria', Georgia, serif;
  font-size: .65rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .04em;
  flex-shrink: 0;
  border: none;
  box-shadow: 0 2px 8px rgba(1,106,55,.22);
}

/* Label above value */
.contact-item h4 {
  font-family: 'Cambria', Georgia, serif;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 3px;
}

.contact-item p {
  font-family: 'Calibri', sans-serif;
  font-size: .93rem;
  color: var(--text-sec);
  line-height: 1.6;
}

/* ── Form card: gold top-rule, upgraded spacing & inputs ── */
.form-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--gold);
  border-radius: 0 0 12px 12px;
  padding: 44px;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}

/* Input / select / textarea: increased padding */
.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 16px;
  border: 1.5px solid var(--rule);
  border-radius: var(--radius);
  font-family: 'Calibri', sans-serif;
  font-size: .93rem;
  color: var(--text);
  background: var(--cream);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}

/* Select: match input styling exactly */
.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23016A37' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

/* Focus state: gold outline + green border */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-color: var(--green);
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(1,106,55,.08);
}

/* Submit button: full width, generous padding */
.contact-submit-btn {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 1.05rem;
  letter-spacing: .02em;
}

/* Reassurance line below button */
.contact-reassurance {
  font-family: 'Calibri', sans-serif;
  font-size: .82rem;
  color: var(--text-sec);
  text-align: center;
  margin-top: 12px;
}

/* ── Responsive overrides for contact page ── */
@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-info-block {
    padding-left: 16px;
  }
  .contact-section-wrap::before {
    top: -80px;
    left: -120px;
    width: 420px;
    height: 420px;
  }
}

@media (max-width: 768px) {
  .form-card {
    padding: 28px 20px;
  }
  .contact-info-block {
    padding-left: 14px;
  }
}

/* ══════════════════════════════════════════════════════════════
   END Contact Page
   ══════════════════════════════════════════════════════════════ */

/* ── Services Tab Bar ── */
.services-tabs {
  background: var(--white);
  border-bottom: 2px solid var(--rule);
  position: sticky;
  top: 70px;
  z-index: 90;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.services-tab-nav {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.services-tab-nav::-webkit-scrollbar { display: none; }
.services-tab {
  font-family: 'Calibri', sans-serif;
  font-size: .92rem;
  font-weight: 700;
  color: var(--text-sec);
  padding: 17px 30px;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  letter-spacing: .03em;
}
.services-tab:hover { color: var(--green); }
.services-tab.active { color: var(--green); border-bottom-color: var(--gold); }

/* ── Category Section ── */
.category-section { background: var(--white);
 }
.category-section.section-cream { background: var(--cream); }



.category-banner {
  height: 300px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.category-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,44,22,.9) 0%, rgba(0,44,22,.35) 55%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding-bottom: 36px;
}
.category-banner-overlay .container { width: 100%; }
.category-label {
  display: block;
  font-family: 'Calibri', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.category-banner-overlay h2 { color: var(--white); margin: 0; }

.category-tiles-wrap { padding-top: 52px; padding-bottom: 80px; }

/* ── Service Tiles ── */
.service-tiles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-tile {
  background: var(--white);
  border-left: 4px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 24px 24px 24px 22px;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}
.category-section.section-cream .service-tile { background: var(--white); }
.service-tile:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.service-tile h3 {
  font-size: 1rem;
  color: var(--green);
  margin-bottom: 9px;
}
.service-tile p {
  font-family: 'Calibri', sans-serif;
  font-size: .9rem;
  color: var(--text-sec);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 1024px) {
  .service-tiles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .service-tiles-grid { grid-template-columns: 1fr; }
  .category-banner { height: 220px; }
  .services-tab { padding: 14px 18px; font-size: .84rem; }
  .category-tiles-wrap { padding-top: 36px; padding-bottom: 52px; }
}

/* ── LinkedIn tag pill (team cards) ── */
.tag-linkedin {
  background: #0A66C2;
  color: #fff;
  border-color: #0A66C2;
  text-decoration: none;
  transition: background var(--transition);
}
.tag-linkedin:hover { background: #004182; border-color: #004182; }

/* ── LinkedIn button (contact page) ── */
.linkedin-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  background: var(--green);
  color: var(--white);
  border-radius: 8px;
  font-family: 'Calibri', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  transition: background var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 10px rgba(1,106,55,.2);
}
.linkedin-btn:hover { background: var(--green-dark); box-shadow: 0 4px 16px rgba(1,106,55,.3); }
.linkedin-icon {
  font-family: 'Cambria', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--white);
}

/* ── HQ photo banner (about page) ── */
.hq-photo-banner {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
}
.hq-photo-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hq-photo-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 22px 36px;
  background: linear-gradient(to top, rgba(0,44,22,.88), transparent);
  color: var(--white);
  font-family: 'Cambria', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .02em;
}

/* ── Team member photo placeholders ── */
.team-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 16px;
  background: var(--green-lt);
  border: none;
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.team-photo.team-photo-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-family: 'Calibri', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  text-align: center;
  padding: 12px;
}
.team-photo.team-photo-empty::after {
  content: 'Photo coming soon';
}

@media (max-width: 768px) {
  .hq-photo-banner { height: 260px; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse > * { order: unset; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cta-banner { padding: 44px 36px; }
  /* Hero split stacks at the 860px breakpoint; slideshow stays full-bleed here */
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }

  /* Hide split nav groups; show only toggle */
  .nav-left, .nav-right { display: none; }
  .nav-toggle { display: flex; grid-column: 3; justify-self: end; }

  /* Let the wide simplified logo breathe: no cramped box on mobile */
  .logo-badge {
    width: auto;
    height: auto;
    margin-top: 0;
    border: none;
    box-shadow: none;
    background: transparent;
  }
  .logo-badge img { height: 46px; }
  .navbar-logo .brand-text { display: none; }

  /* Mobile dropdown menu */
  .nav-mobile {
    display: none;
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 20px;
    gap: 4px;
    border-bottom: 3px solid var(--gold);
    box-shadow: var(--shadow-md);
    z-index: 999;
  }
  .nav-mobile.open { display: flex; }
  .nav-mobile a {
    padding: 12px 14px;
    width: 100%;
    border-radius: 6px;
    font-family: 'Calibri', sans-serif;
    font-size: .95rem;
    font-weight: 600;
    color: var(--text-sec);
    transition: var(--transition);
  }
  .nav-mobile a:hover, .nav-mobile a.active {
    color: var(--green);
    background: var(--green-lt);
  }
  .nav-mobile .nav-cta a {
    background: var(--green);
    color: var(--white);
    display: block;
    text-align: center;
    border-radius: 6px;
  }
  .nav-mobile .nav-cta a:hover { background: var(--green-dark); }

  .hero-stats { flex-direction: column; }
  .hero-stat {
    padding: 14px 0;
    margin-right: 0;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .hero-stat:last-child { border-bottom: none; }

  .form-row { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; text-align: center; padding: 36px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bar-inner { flex-direction: column; text-align: center; }
  .mission-block { padding: 36px 28px; }
  .form-card { padding: 28px 20px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  /* brand-text already hidden on mobile via the 768px breakpoint */
}

/* ══════════════════════════════════════════════════════════════
   Blog Article Layout
   ══════════════════════════════════════════════════════════════ */

.blog-article-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 56px 0 88px;
}
.blog-article-header { margin-bottom: 36px; }
.blog-article-category {
  display: inline-block;
  background: var(--gold);
  color: var(--text);
  font-family: 'Calibri', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
}
.blog-article-header h1 {
  font-size: clamp(1.65rem, 3.5vw, 2.4rem);
  margin-bottom: 16px;
  line-height: 1.2;
}
.blog-article-meta {
  font-family: 'Calibri', sans-serif;
  font-size: .88rem;
  color: var(--text-sec);
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.blog-article-meta span { display: flex; align-items: center; gap: 6px; }

.blog-article-hero {
  width: 100%;
  aspect-ratio: 16 / 7;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 48px;
  box-shadow: var(--shadow-md);
}
.blog-article-hero img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.blog-article-body h2 {
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  margin: 44px 0 14px;
  padding-top: 8px;
  border-top: 2px solid var(--rule);
}
.blog-article-body h3 {
  font-size: 1.1rem;
  margin: 28px 0 10px;
  color: var(--green);
}
.blog-article-body p {
  font-size: 1rem;
  line-height: 1.82;
  margin-bottom: 18px;
  color: var(--text-sec);
}
.blog-article-body ul,
.blog-article-body ol {
  padding-left: 20px;
  margin-bottom: 20px;
}
.blog-article-body li {
  font-family: 'Calibri', sans-serif;
  font-size: .97rem;
  color: var(--text-sec);
  line-height: 1.7;
  margin-bottom: 7px;
}
.blog-article-body strong { color: var(--text); }

.blog-callout {
  background: var(--green-lt);
  border-left: 4px solid var(--green);
  border-radius: 0 8px 8px 0;
  padding: 20px 26px;
  margin: 30px 0;
}
.blog-callout p {
  margin: 0;
  font-size: .95rem;
  color: var(--text) !important;
}

.blog-article-cta {
  background: var(--green);
  border-radius: 12px;
  padding: 40px 44px;
  margin-top: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  border-top: 4px solid var(--gold);
}
.blog-article-cta h3 { color: var(--white); margin: 0 0 8px; font-size: 1.15rem; }
.blog-article-cta p { color: rgba(255,255,255,.78); margin: 0; font-size: .93rem; }

@media (max-width: 768px) {
  .blog-article-wrap { padding: 36px 0 60px; }
  .blog-article-cta { padding: 28px 24px; flex-direction: column; }
  .blog-article-body h2 { font-size: 1.2rem; margin-top: 32px; }
}

/* ── Woman-Owned Business Badge ── */
.wob-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--gold-lt);
  border: 1.5px solid var(--gold);
  border-radius: 24px;
  padding: 6px 16px 6px 10px;
  font-family: 'Calibri', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: .02em;
  white-space: nowrap;
}
.wob-badge-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}
/* Dark version for footer */
.wob-badge-dark {
  background: rgba(251,180,69,.12);
  border-color: rgba(251,180,69,.5);
  color: rgba(255,255,255,.85);
}
.wob-badge-dark .wob-badge-icon { background: var(--gold); color: #1a1a1a; }

/* ══════════════════════════════════════════════════════════════
   SNF-Inspired Split Layout: Services Page
   ══════════════════════════════════════════════════════════════ */

/* ── Category split: text + photo ── */
.category-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 72px 0;
}
.category-split.reverse { direction: rtl; }
.category-split.reverse > * { direction: ltr; }

.category-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.category-text h2 {
  margin: 10px 0 18px;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
}
.category-text > p {
  margin-bottom: 28px;
  font-size: 1rem;
  line-height: 1.75;
}

/* ── Service bullet list ── */
.svc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 20px;
  row-gap: 0;
}
.svc-list li {
  font-family: 'Calibri', sans-serif;
  font-size: .93rem;
  color: var(--text-sec);
  padding: 7px 0 7px 18px;
  border-bottom: 1px solid var(--rule);
  position: relative;
  line-height: 1.4;
}
.svc-list li:last-child { border-bottom: none; }
.svc-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

/* ── Category photo ── */
.category-photo {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-md);
}
.category-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .6s ease;
}
.category-photo:hover img { transform: scale(1.03); }

/* ── Divider between sections ── */
.category-divider {
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--green), var(--gold), var(--green));
  opacity: .25;
}

/* ── Responsive: stack at tablet ── */
@media (max-width: 900px) {
  .category-split {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 52px 0;
  }
  .category-split.reverse { direction: ltr; }
  .svc-list { grid-template-columns: 1fr; }
  .category-photo { max-width: 560px; }
}

@media (max-width: 600px) {
  .category-split { padding: 40px 0; }
  .svc-list li { font-size: .88rem; }
}

/* ══════════════════════════════════════════════════════════════
   Blog Page
   ══════════════════════════════════════════════════════════════ */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.blog-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--green-lt);
}
.blog-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.blog-card:hover .blog-card-thumb img { transform: scale(1.05); }
.blog-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card-meta {
  font-family: 'Calibri', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.blog-card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 12px;
  line-height: 1.35;
}
.blog-card-body p {
  font-size: .9rem;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 20px;
}
.blog-card-link {
  font-family: 'Calibri', sans-serif;
  font-size: .88rem;
  font-weight: 700;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}
.blog-card-link:hover { color: var(--green-dark); }

.blog-empty {
  text-align: center;
  padding: 80px 24px;
  background: var(--green-lt);
  border-radius: 12px;
  border: 2px dashed var(--rule);
}
.blog-empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  color: var(--green);
  font-family: 'Cambria', Georgia, serif;
  font-weight: 700;
}
.blog-empty h3 { font-size: 1.3rem; margin-bottom: 12px; }
.blog-empty p { max-width: 480px; margin: 0 auto; }

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PROJECTS: filterable grid
   ============================================================ */

/* ── Filter controls ── */
.project-filters {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 44px;
}
.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.filter-group-label {
  font-family: 'Calibri', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
  margin-right: 6px;
  min-width: 118px;
}
.filter-btn {
  background: var(--white);
  color: var(--text-sec);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 7px 18px;
  font-family: 'Calibri', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.filter-btn:hover {
  border-color: var(--green);
  color: var(--green);
}
.filter-btn.active {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

/* ── Project grid ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.project-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.project-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: transparent;
}
.project-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.project-name {
  font-family: 'Cambria', Georgia, serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--green);
}
.project-year {
  font-family: 'Calibri', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  color: var(--text-sec);
  text-align: right;
  white-space: nowrap;
  flex-shrink: 0;
}
.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Client-type badge: solid, distinct per type */
.client-badge {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 12px;
  font-family: 'Calibri', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--white);
}
.client-badge.client-municipal        { background: var(--green); }
.client-badge.client-private          { background: var(--gold); color: var(--text); }
.client-badge.client-federal          { background: var(--green-dark); }

/* Service category tag: reuses the green pill look */
.category-tag {
  display: inline-block;
  background: var(--green-lt);
  color: var(--green);
  border: 1px solid rgba(1,106,55,.18);
  border-radius: 999px;
  padding: 4px 12px;
  font-family: 'Calibri', sans-serif;
  font-size: .72rem;
  font-weight: 700;
}
.project-outcome {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-sec);
}

/* Empty state when a filter combination has no matches */
.projects-empty {
  display: none;
  text-align: center;
  padding: 48px 0;
  color: var(--text-sec);
  font-family: 'Calibri', sans-serif;
}
.projects-empty.show { display: block; }

@media (max-width: 600px) {
  .projects-grid { grid-template-columns: 1fr; }
  .filter-group-label { min-width: 100%; margin-bottom: 2px; }
}
.page-hero + .section { padding-top: 40px; }
/* ── Agency / Trusted-by strip ── */
.agency-strip {
  background: var(--white);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 18px 0;
}
.agency-strip-label {
  text-align: center;
  font-family: 'Calibri', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-sec);
  margin-bottom: 12px;
}
.agency-logos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.agency-logos img {
  height: 90px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: .55;
  transition: filter .3s ease, opacity .3s ease;
}
.agency-logos img:hover { filter: grayscale(0%); opacity: 1; }

/* Section immediately after the agency strip */
.agency-strip + .section { padding-top: 10px; }

/* ── Client Logo Strip: auto-scroll marquee ── */
.clients-strip {
  padding: 36px 0;
  background: var(--cream);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
.clients-strip-label {
  text-align: center;
  font-family: 'Calibri', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-sec);
  margin-bottom: 24px;
}
.clients-track-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.clients-track {
  display: flex;
  align-items: center;
  gap: 60px;
  width: max-content;
  animation: clientsScroll 34s linear infinite;
}
.clients-track:hover { animation-play-state: paused; }
.clients-track img {
  height: 56px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: .5;
  transition: filter .3s ease, opacity .3s ease;
  flex-shrink: 0;
}
.clients-track img:hover { filter: grayscale(0%); opacity: 1; }
@keyframes clientsScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Client Logos Grid ── */
.clients-section { background: var(--cream); }
.clients-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-auto-rows: 150px;
  grid-auto-flow: dense;
  gap: 20px;
  margin-top: 44px;
}
.client-logo-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 22px 30px;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
  text-decoration: none;
  overflow: hidden;
}
.client-logo-cell--wide { grid-column: span 2; }
.client-logo-cell--lg { padding: 6px 12px; }
.client-logo-cell:hover {
  box-shadow: var(--shadow);
  border-color: var(--gold);
  transform: translateY(-2px);
}
.client-logo-cell img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
@media (max-width: 1024px) {
  .clients-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 140px; }
}
@media (max-width: 768px) {
  .clients-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 120px; gap: 14px; }
  .client-logo-cell { padding: 18px 16px; }
}
@media (max-width: 480px) {
  .clients-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 110px; }
}


/* ============================================================
   TerraTek — design layer (Redesign - Preserve, approved v0)
   Appended last so it refines the rules above by cascade order.
   Covers: type scale, vertical rhythm, gold-as-accent, font
   fallbacks, radius consolidation. Applies to every page.
   Rollback point: commit 3d6aa0c.
   ============================================================ */

:root{
  /* Brand font first, then a decent fallback. Cambria and Calibri do not
     exist on macOS or iOS, where the browser was dropping to Times and
     Arial. The brand font itself is NOT changed: that decision is Nivia's
     and the Lora + Source Sans 3 proposal is still unapproved. */
  --tt-serif: Cambria, Georgia, 'Iowan Old Style', 'Palatino Linotype', serif;
  --tt-sans:  Calibri, Carlito, 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', sans-serif;

  /* 8pt vertical rhythm */
  --space-section: 96px;
  --space-section-md: 64px;
  --space-section-sm: 48px;
}

/* ─────────── 1. Typography scale ───────────
   Was: h1 43 / h2 35 / h3-feature 32 / body 17.6  (h1 only 2.45x body,
   and h2 vs h3 collapsed). Now a clean ramp: 17.6 → 21 → 28 → 40 → 72. */

.hero h1{
  font-size: clamp(2.75rem, 5.5vw, 4.5rem);   /* 44 → 72px, 4.1x body */
  line-height: 1.04;
  letter-spacing: -.022em;
  text-wrap: balance;
}

/* Option 2: white type, thick gold underline. Gold stays an accent. */
.hero h1 em{
  color: var(--white);
  font-style: normal;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat;
  background-size: 100% .13em;
  background-position: 0 90%;
  padding-bottom: .05em;
}

.section h2,
.section-header h2,
.split h2,
.cta-banner h2{
  font-size: clamp(1.9rem, 2.8vw, 2.5rem);    /* → 40px */
  line-height: 1.15;
  letter-spacing: -.012em;
  text-wrap: balance;
}

.bento-item h3{ font-size: 1.3125rem; line-height: 1.25; }              /* 21px */
.bento .bento-item--feature h3{ font-size: 1.75rem; line-height: 1.2; } /* 32 → 28, stops competing with h2 */

/* The eyebrow was 12px and nearly invisible. Green, never gold. */
.section-label{
  font-size: .8125rem;      /* 13px */
  letter-spacing: .14em;
  color: var(--green);
}

p, .bento-desc, .hero p{ text-wrap: pretty; }

/* Page heroes on every non-home page. Same compression existed here:
   h1 was a flat 48px against a 35px h2. Secondary to the home hero. */
.page-hero h1{
  font-size: clamp(2.25rem, 4vw, 3.25rem);   /* 36 → 52px */
  line-height: 1.08;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.page-hero p{ font-size: 1.0625rem; max-width: 62ch; }

/* Blog articles: long-form needs its own, calmer ramp. */
.blog-article-header h1{
  font-size: clamp(2rem, 3.6vw, 3rem);       /* was 38.4px */
  line-height: 1.12;
  letter-spacing: -.018em;
  text-wrap: balance;
}
.blog-article-body h2{
  font-size: clamp(1.5rem, 2.2vw, 1.875rem); /* was 24.8px */
  line-height: 1.2;
  margin-top: 2em;
}
.blog-article-body h3{ font-size: 1.25rem; line-height: 1.3; }
.blog-article-body p,
.blog-article-body li{ font-size: 1.0625rem; line-height: 1.7; }

/* ─────────── 2. Gold becomes an accent, never readable text ───────────
   Brand standard: "El dorado es color de superficie y de acento, nunca
   de texto." Two of these also failed WCAG AA outright. */

/* Bento "Learn more": white type, short gold rule that extends on hover. */
.bento-cta{
  color: var(--white);
  background-image: linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat;
  background-size: 1.75em .14em;
  background-position: 0 100%;
  padding-bottom: .4em;
  transition: background-size .35s cubic-bezier(.2,.7,.3,1);
}
.bento-item:hover .bento-cta,
.bento-item:focus-visible .bento-cta{ background-size: 100% .14em; }

/* Milestone badge: was gold-on-green at 3.7:1 (needs 4.5). Now white. */
.hero-milestone{
  color: var(--white);
  border-color: rgba(251,180,69,.55);
}
.hero-milestone span:not(.hero-milestone-star){ color: var(--white); }
.hero-milestone-star{ color: var(--gold); }   /* ornament, carries no reading load */

/* CTA phone link: was gold at 14.4px over a green gradient, dipping to
   3.76:1. Now white with a gold underline. */
.cta-phone a{
  color: var(--white);
  background-image: linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat;
  background-size: 100% .1em;
  background-position: 0 100%;
  padding-bottom: .12em;
  transition: background-size .25s ease;
}
.cta-phone a:hover{ background-size: 100% .32em; color: var(--white); }

/* Footer micro-labels: gold passed contrast here, but the rule is absolute. */
.footer-contact-label{ color: rgba(255,255,255,.72); }
.footer-brand-sub{ color: rgba(255,255,255,.82); }

/* Blog card meta was gold on white: 1.79:1, a real AA failure. */
.blog-card-meta{ color: var(--text-sec); }

/* Service-page CTA phone link. Was an inline gold style the cascade
   could not reach; the markup now carries this class instead. */
.cta-phone-link{
  color: var(--white);
  font-weight: 700;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat;
  background-size: 100% .1em;
  background-position: 0 100%;
  padding-bottom: .12em;
  transition: background-size .25s ease;
}
.cta-phone-link:hover{ background-size: 100% .32em; color: var(--white); }

/* ─────────── 3. Vertical rhythm on an 8pt grid ───────────
   Was 10 / 18 / 44 / 88 with no scale. */
.section{ padding-top: var(--space-section); padding-bottom: var(--space-section); }
#services-overview{ padding-top: var(--space-section); }
.section.et-cover-section{ padding-bottom: var(--space-section); }
/* style.css line 603 pins this pair to 44px; same specificity, loaded later. */
.et-cover-section + .section{ padding-top: var(--space-section); }

/* ─────────── 4. Font fallbacks applied ───────────
   Same families, better degradation. Also evicts the stray Arial. */
body, .btn, .nav-left a, .nav-right a, .nav-mobile a,
.bento-desc, .bento-cta, .section-label, .hero p,
.hero-stat-label, .footer-links a, .slide-arrow{
  font-family: var(--tt-sans);
}
h1, h2, h3, h4,
.hero-stat-num, .footer-brand-name, .hero-tagline{
  font-family: var(--tt-serif);
}

/* ─────────── 5. Radius consolidation (8 / 999 / 50% only) ───────────
   Seven different radii were in play. */
.btn, .nav-right .nav-cta a, .nav-mobile .nav-cta a,
.nav-left a, .nav-right a{ border-radius: 8px; }
.hero-milestone{ border-radius: 8px; }

/* ─────────── Responsive ─────────── */
@media (max-width: 1024px){
  .section{ padding-top: var(--space-section-md); padding-bottom: var(--space-section-md); }
  #services-overview,
  .et-cover-section + .section{ padding-top: var(--space-section-md); }
  .section.et-cover-section{ padding-bottom: var(--space-section-md); }
}
@media (max-width: 640px){
  .section{ padding-top: var(--space-section-sm); padding-bottom: var(--space-section-sm); }
  #services-overview,
  .et-cover-section + .section{ padding-top: var(--space-section-sm); }
  .section.et-cover-section{ padding-bottom: var(--space-section-sm); }
  .hero h1{ line-height: 1.1; }
}

@media (prefers-reduced-motion: reduce){
  .bento-cta, .cta-phone a{ transition: none; }
}


/* ── Page hero over a photograph (About Us) ──
   Replaces the separate green band + photo banner with one unit.
   Only this variant changes; the plain .page-hero on other pages is
   untouched. */
.page-hero--photo{
  padding: 130px 0 0;            /* same navbar clearance as .page-hero */
  min-height: 540px;
  display: flex;
  align-items: flex-end;
  background: var(--green-dark); /* shows while the photo decodes */
}
.page-hero--photo::before{ display: none; }   /* drop the grid texture over a photo */
.page-hero__img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  z-index: 0;
}
/* Legibility wash: text sits on the ~90% end of the ramp. */
.page-hero--photo::after{
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top,
    rgba(0,44,22,.92) 0%,
    rgba(0,44,22,.62) 38%,
    rgba(0,44,22,.18) 72%,
    rgba(0,44,22,.05) 100%);
}
.page-hero__content{
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: 52px;
}
.page-hero__eyebrow{
  display: block;
  font-family: var(--tt-sans);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  margin-bottom: 10px;
}
.page-hero--photo .breadcrumb{ margin-bottom: 18px; }

@media (max-width: 860px){
  .page-hero--photo{ min-height: 420px; }
  .page-hero__content{ padding-bottom: 40px; }
}
@media (max-width: 480px){
  .page-hero--photo{ min-height: 360px; }
}
