/* ═══════════════════════════════════════════════════════════════════════════
   CLICKBROWN — Main stylesheet
   Extracted + deduplicated from all 9 page mockups
   Brand: forest green #1B4332 · warm gold #C9A84C · off-white #FAF7F2
   Font: Sora (300-800)
═══════════════════════════════════════════════════════════════════════════ */

:root {
  --green:      #1B4332;
  --green-dk:   #0F2A1F;
  --green-md:   #2D6A4F;
  --green-lt:   #40916C;
  --green-tint: #F0F7F4;
  --green-mid:  #D8EDE4;
  --gold:       #C9A84C;
  --gold-dk:    #A07C28;
  --gold-lt:    #E8CC7A;
  --gold-tint:  #FBF6E9;
  --off-white:  #FAF7F2;
  --white:      #FFFFFF;
  --charcoal:   #1A1A1A;
  --slate:      #374151;
  --muted:      #6b7280;
  --border:     #E5E7EB;
  --border-g:   #D8EDE4;
  --sans: 'Sora', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.12);
  --shadow-g:  0 8px 40px rgba(27,67,50,.14);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green); text-decoration: none; }
ul, ol { list-style: none; }

/* ─── Containers ─── */
.wrap         { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 1.5rem; }
.wrap-wide    { width: 100%; max-width: 1080px; margin-inline: auto; padding-inline: 1.5rem; }
.wrap-narrow  { width: 100%; max-width: 760px;  margin-inline: auto; padding-inline: 1.5rem; }
.wrap-article { width: 100%; max-width: 680px;  margin-inline: auto; padding-inline: 1.5rem; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--sans); font-size: .9375rem; font-weight: 700;
  line-height: 1; padding: .875rem 2rem; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer;
  transition: all .18s ease; white-space: nowrap; text-decoration: none;
  letter-spacing: -.01em;
}
.btn-primary { background: var(--green); color: #fff; border-color: var(--green); }
.btn-primary:hover { background: var(--green-dk); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(27,67,50,.3); }
.btn-gold { background: var(--gold); color: var(--charcoal); border-color: var(--gold); font-weight: 800; }
.btn-gold:hover { background: var(--gold-dk); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,168,76,.35); }
.btn-outline { background: transparent; color: var(--green); border-color: var(--green-mid); }
.btn-outline:hover { background: var(--green-tint); border-color: var(--green); transform: translateY(-2px); }
.btn-sm { padding: .5625rem 1.25rem; font-size: .8125rem; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--sans); font-size: .8125rem; font-weight: 600;
  padding: .5rem 1.125rem; border-radius: 999px;
  border: 1.5px solid var(--border-g); color: var(--green);
  background: transparent; cursor: pointer; transition: all .18s;
  text-decoration: none;
}
.btn-ghost:hover { background: var(--green-tint); }

/* ─── Labels & badges ─── */
.label {
  display: inline-flex; align-items: center; gap: .375rem;
  font-size: .625rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: .35rem .875rem;
  border-radius: 999px; background: var(--green-tint);
  color: var(--green-dk); border: 1px solid var(--green-mid);
  margin-bottom: .875rem;
}

/* ═══ HEADER ═══ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: 68px;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 1rem;
}
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.logo-mark { width: 32px; height: 32px; }
.logo-mark svg { width: 32px; height: 32px; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-word { font-size: 1.0625rem; font-weight: 800; letter-spacing: -.04em; }
.logo-click { color: var(--green); }
.logo-brown { color: var(--gold-dk); }
.logo-sub { font-size: .5625rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-top: 2px; display: block; }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a { font-size: .875rem; font-weight: 600; color: var(--slate); transition: color .15s; }
.nav a:hover, .nav a.active { color: var(--green); }
.header-actions { display: flex; align-items: center; gap: .75rem; }

/* Hamburger toggle (mobile only) */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  background: transparent; border: 1.5px solid var(--border);
  border-radius: 10px; cursor: pointer;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 4px;
  padding: 0;
  transition: border-color .15s, background .15s;
}
.nav-toggle:hover { border-color: var(--green-mid); background: var(--green-tint); }
.nav-toggle-bar {
  display: block; width: 18px; height: 2px;
  background: var(--charcoal); border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
  transform-origin: center;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile nav panel — full-viewport overlay with its own header */
.mobile-nav {
  position: fixed; inset: 0;
  background: var(--white);
  z-index: 200; /* above sticky header (z:100) and bottom action bar (z:90) */
  display: flex;
  flex-direction: column;
}
.mobile-nav[hidden] { display: none; }

/* Top bar inside the menu — logo on left, X close on right */
.mobile-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 1.5rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.mobile-nav-close {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: var(--charcoal);
  cursor: pointer;
  transition: background .15s, border-color .15s;
  padding: 0;
}
.mobile-nav-close:hover { background: var(--green-tint); border-color: var(--green-mid); }

.mobile-nav-inner {
  display: flex; flex-direction: column;
  padding: 1.25rem 1.25rem 2rem;
  gap: 0;
  flex: 1;
  overflow-y: auto; /* menu scrolls independently if content is long */
  -webkit-overflow-scrolling: touch;
}
.mobile-nav-list {
  display: flex; flex-direction: column;
  gap: .625rem;
  list-style: none;
  padding: 0; margin: 0;
}
.mobile-nav-list a {
  display: block;
  padding: 1.0625rem 1.25rem;
  font-size: 1.0625rem; font-weight: 600;
  color: var(--charcoal);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  transition: background .15s, border-color .15s, color .15s;
  text-decoration: none;
}
.mobile-nav-list a:hover {
  background: var(--green-tint);
  border-color: var(--green-mid);
}
.mobile-nav-list a.active,
.mobile-nav-list a[aria-current="page"] {
  background: var(--green-tint);
  border-color: var(--green-mid);
  color: var(--green);
}
.mobile-nav-cta {
  display: flex; flex-direction: column; gap: .75rem;
  margin-top: 1.25rem;
}
.mobile-nav-cta .btn,
.mobile-nav-cta .btn-ghost {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  padding: 1rem 1.5rem;
  font-size: 1rem;
}
body.cb-nav-open { overflow: hidden; }

/* Mobile sticky action bar — visible on ≤900px only */
.mobile-action-bar { display: none; }
@media (max-width: 900px) {
  .mobile-action-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    padding: .625rem .75rem calc(.625rem + env(safe-area-inset-bottom)) .75rem;
    display: flex;
    gap: .5rem;
    z-index: 90;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
  }
  .mobile-action-bar .btn {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: .8125rem 1rem;
    font-size: .875rem;
    white-space: nowrap;
  }
  /* Add bottom padding so content doesn't get hidden behind the bar */
  body { padding-bottom: 76px; }
  /* Hide the action bar when the mobile menu is open (CTAs duplicated inside) */
  body.cb-nav-open .mobile-action-bar { display: none; }
}

/* ═══ BREADCRUMB ═══ */
.breadcrumb { padding: .875rem 0; border-bottom: 1px solid var(--border); background: var(--off-white); }
.breadcrumb-inner { display: flex; align-items: center; gap: .5rem; font-size: .8125rem; color: var(--muted); flex-wrap: wrap; }
.breadcrumb-inner a { color: var(--green); font-weight: 500; }
.breadcrumb-inner a:hover { text-decoration: underline; }
.bc-sep { color: var(--border); }

/* ═══ HERO — light variant (homepage) ═══ */
.hero {
  background: var(--white);
  padding-block: 88px 80px;
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 560px; height: 560px; border-radius: 50%;
  background: var(--green-tint); z-index: 0; pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: -80px; right: 180px;
  width: 280px; height: 280px; border-radius: 50%;
  background: var(--gold-tint); z-index: 0; pointer-events: none;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 420px;
  gap: 64px; align-items: center;
  position: relative; z-index: 1;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .625rem;
  font-size: .625rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--green);
  background: var(--green-tint); border: 1px solid var(--green-mid);
  border-radius: 999px; padding: .4375rem 1rem; margin-bottom: 1.25rem;
}
.eyebrow-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,76,.5); }
  60%      { box-shadow: 0 0 0 6px rgba(201,168,76,0); }
}
.hero h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 800; letter-spacing: -.04em; line-height: 1.05;
  color: var(--charcoal); margin-bottom: 1.25rem;
}
.hero h1 em { font-style: normal; color: var(--green); }
.hero-lead {
  font-size: 1.0625rem; color: var(--muted); line-height: 1.75;
  margin-bottom: 1.625rem; max-width: 480px;
}
.hero-sub {
  font-size: .875rem; color: var(--muted); line-height: 1.65;
  margin-bottom: 2rem; max-width: 460px;
  padding: .875rem 1.125rem; background: var(--green-tint);
  border-left: 3px solid var(--green); border-radius: 0 8px 8px 0;
}
.hero-btns { display: flex; gap: .875rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4,1fr);
  border-top: 1px solid var(--border); padding-top: 2rem; gap: 0;
}
.hero-stat { padding-right: 1.25rem; border-right: 1px solid var(--border); }
.hero-stat:last-child { border-right: none; padding-right: 0; }
.hero-stat:not(:first-child) { padding-left: 1.25rem; }
.stat-n { display: block; font-size: 1.875rem; font-weight: 800; color: var(--green); letter-spacing: -.05em; line-height: 1; }
.stat-l { display: block; font-size: .625rem; color: var(--muted); margin-top: .375rem; font-weight: 500; line-height: 1.4; }

/* Hero photo card */
.hero-photo-card {
  background: var(--off-white); border: 1.5px solid var(--border);
  border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow-g);
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.photo-placeholder {
  height: 340px; background: linear-gradient(135deg, #e8f0ec 0%, #d4e6da 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; border-bottom: 1px solid var(--green-mid);
  position: relative;
}
.photo-placeholder-av {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--green); display: flex; align-items: center;
  justify-content: center; font-size: 2rem; font-weight: 800;
  color: #fff; font-style: italic; letter-spacing: -.05em;
}
.photo-placeholder img { width: 100%; height: 100%; object-fit: cover; }
.photo-placeholder-lbl { font-size: .75rem; font-weight: 600; color: var(--green-md); letter-spacing: .05em; text-transform: uppercase; }
.photo-loc {
  position: absolute; bottom: 12px; left: 12px;
  display: flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,.92); border-radius: 999px;
  padding: 5px 10px; font-size: .5625rem; font-weight: 700; color: var(--green);
}
.photo-loc-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.photo-foot { padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; }
.photo-foot-name { font-size: .8125rem; font-weight: 700; color: var(--charcoal); display: block; }
.photo-foot-role { font-size: .625rem; color: var(--muted); }
.photo-foot-tag {
  font-size: .5625rem; font-weight: 700; color: var(--green);
  background: var(--green-tint); padding: 3px 8px;
  border-radius: 999px; border: .5px solid var(--green-mid);
}

/* ═══ HERO — narrow variant (about, contact, archives) ═══ */
.hero-narrow {
  padding-block: 72px 56px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.hero-narrow h1 {
  font-size: clamp(1.875rem, 4vw, 2.875rem);
  font-weight: 800; letter-spacing: -.04em; line-height: 1.1;
  color: var(--charcoal); margin-bottom: 1.25rem;
}

/* ═══ HERO — dark variant (service detail) ═══ */
.svc-hero {
  background: var(--green-dk);
  padding-block: 80px 72px;
  position: relative; overflow: hidden;
}
.svc-hero::before {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 480px; height: 480px; border-radius: 50%;
  background: rgba(201,168,76,.06); pointer-events: none;
}
.svc-hero::after {
  content: ''; position: absolute; bottom: -60px; left: -60px;
  width: 260px; height: 260px; border-radius: 50%;
  background: rgba(255,255,255,.03); pointer-events: none;
}
.svc-hero-inner { position: relative; z-index: 1; max-width: 680px; }
.svc-hero h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 800; letter-spacing: -.04em; line-height: 1.05;
  color: #fff; margin-bottom: 1rem;
}
.svc-hero h1 em { font-style: normal; color: var(--gold); }
.svc-hero p { font-size: 1.125rem; color: rgba(255,255,255,.65); max-width: 560px; line-height: 1.7; margin-bottom: 2rem; }
.svc-hero .hero-eyebrow {
  color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.12);
}

/* ═══ TRUST STRIP — stacked layout (label → cards → checkmarks) ═══ */
.trust-strip { background: var(--off-white); border-bottom: 1px solid var(--border); padding: 3rem 0 2.5rem; }
.trust-strip-inner {
  display: flex; flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}
.trust-label {
  font-size: .6875rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--muted);
  text-align: center;
}
.trust-logos { display: flex; gap: 1rem; align-items: center; }
.trust-logo {
  display: flex; align-items: center; gap: .625rem;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 8px; padding: .625rem 1rem; transition: border-color .2s;
}
.trust-logo:hover { border-color: var(--green-mid); }
.tl-icon {
  width: 32px; height: 32px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: .75rem; font-weight: 700;
}

/* Trust-logos GRID — columns driven by --trust-cols Customizer value */
.trust-logos {
  display: grid !important;
  grid-template-columns: repeat(var(--trust-cols, 3), minmax(0, 1fr));
  gap: 1.25rem;
  width: 100%;
  max-width: 960px;
}

/* Trust-logo CARD — logo is the dominant visual, sub text below */
.trust-logo-card {
  display: flex; flex-direction: column;
  align-items: center; gap: .75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem 1.25rem;
  min-width: 0;
  transition: border-color .2s, transform .15s, box-shadow .2s;
  text-decoration: none;
  color: inherit;
}
.trust-logo-card:hover {
  border-color: var(--green-mid);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.trust-logo-img {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 64px;
  overflow: hidden;
}
.trust-logo-img img {
  max-width: 100%;
  max-height: 64px;
  width: auto; height: auto;
  object-fit: contain;
}
.trust-logo-fallback {
  font-size: 1.125rem; font-weight: 800;
  color: var(--green); letter-spacing: -.02em;
}
.trust-logo-sub {
  font-size: .6875rem; font-weight: 600;
  color: var(--muted);
  text-align: center; line-height: 1.3;
  letter-spacing: .02em;
}

/* CTA card — dashed border, distinct from real client cards */
.trust-logo-cta {
  background: var(--green-tint);
  border-style: dashed;
  border-color: var(--green-mid);
  cursor: pointer;
}
.trust-logo-cta:hover {
  background: var(--white);
  border-color: var(--green);
  border-style: solid;
}
.trust-cta-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s;
}
.trust-logo-cta:hover .trust-cta-icon {
  transform: scale(1.08) rotate(90deg);
}
.trust-logo-cta-label {
  font-size: .9375rem; font-weight: 800;
  color: var(--green);
  letter-spacing: -.02em;
}
.tl-info strong { display: block; font-size: .75rem; font-weight: 700; color: var(--charcoal); }
.tl-info span { font-size: .625rem; color: var(--muted); }
.trust-divider { display: none; } /* no longer needed in stacked layout */
.trust-items {
  display: flex; gap: 2rem;
  justify-content: center; flex-wrap: wrap;
  padding-top: .5rem;
  border-top: 1px solid var(--border);
  width: 100%; max-width: 720px;
  margin-top: .25rem;
  padding-top: 1.5rem;
}
.trust-item {
  display: flex; align-items: center; gap: .5rem;
  font-size: .8125rem; font-weight: 600; color: var(--slate);
}
.trust-check { width: 15px; height: 15px; flex-shrink: 0; }

/* ═══ SECTIONS ═══ */
.section { padding-block: 88px; }
.section--tint       { background: var(--off-white); }
.section--green-tint { background: var(--green-tint); }
.section--dark       { background: var(--charcoal); }
.section--green      { background: var(--green); }
.section-hd { text-align: center; max-width: 640px; margin-inline: auto; margin-bottom: 3.5rem; }
.section-hd h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800; letter-spacing: -.04em; line-height: 1.1;
  color: var(--charcoal); margin-bottom: .875rem;
}
.section-hd h2.light { color: var(--white); }
.section-hd p { font-size: 1.0625rem; color: var(--muted); line-height: 1.7; }
.section-hd p.light { color: rgba(255,255,255,.65); }

/* ═══ SERVICES (3-card grid on homepage) ═══ */
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.5rem; }
.svc-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 20px; padding: 2rem;
  display: flex; flex-direction: column; gap: 1rem;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  position: relative; overflow: hidden;
  text-decoration: none; color: inherit;
}
.svc-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--green), var(--gold));
  transform: scaleX(0); transition: transform .25s; transform-origin: left;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--green-mid); }
.svc-card:hover::before { transform: scaleX(1); }
.svc-icon {
  width: 52px; height: 52px; background: var(--green); border-radius: 14px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.svc-icon svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 1.75; }
.svc-card h3 { font-size: 1.125rem; font-weight: 700; color: var(--charcoal); letter-spacing: -.02em; }
.svc-card p { font-size: .9375rem; color: var(--muted); line-height: 1.65; flex: 1; }
.svc-tags { display: flex; flex-wrap: wrap; gap: .375rem; margin-top: auto; }
.svc-tag {
  font-size: .5625rem; font-weight: 700; padding: .25rem .625rem;
  border-radius: 999px; background: var(--green-tint);
  color: var(--green-dk); border: .5px solid var(--green-mid);
  letter-spacing: .04em; text-transform: uppercase;
}
.svc-link { font-size: .875rem; font-weight: 700; color: var(--green); margin-top: .5rem; }

/* ═══ INCLUDES GRID (service detail) ═══ */
.includes-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.25rem; margin-top: 3rem; }
.include-tile {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 16px; padding: 1.75rem;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  position: relative; overflow: hidden;
}
.include-tile::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--green), var(--gold));
  transform: scaleX(0); transition: transform .25s; transform-origin: left;
}
.include-tile:hover { border-color: var(--green-mid); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.include-tile:hover::before { transform: scaleX(1); }
.tile-icon {
  width: 48px; height: 48px; background: var(--green); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem;
}
.tile-icon svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 1.75; }
.include-tile h3 { font-size: 1rem; font-weight: 700; color: var(--charcoal); margin-bottom: .5rem; letter-spacing: -.02em; }
.include-tile p { font-size: .875rem; color: var(--muted); line-height: 1.65; margin: 0; }

/* ═══ WHEN-YOU-NEED-THIS section (service detail) ═══ */
.when-section { padding-block: 88px; background: var(--off-white); }
.when-inner { display: grid; grid-template-columns: 1fr 380px; gap: 80px; align-items: start; }
.when-prose h2 { font-size: clamp(1.625rem, 3vw, 2.25rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.1; color: var(--charcoal); margin-bottom: 1.5rem; }
.when-prose h2 em { font-style: normal; color: var(--green); }
.when-prose p { font-size: 1rem; color: var(--muted); line-height: 1.85; margin-bottom: 1.25rem; }
.when-prose p:last-child { margin-bottom: 0; }
.when-prose p strong { color: var(--charcoal); font-weight: 700; }
.when-sidebar { position: sticky; top: 88px; }
.sidebar-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 20px; padding: 1.75rem; margin-bottom: 1.25rem;
}
.sidebar-card h4 { font-size: .9375rem; font-weight: 700; color: var(--charcoal); margin-bottom: 1rem; letter-spacing: -.01em; }
.sidebar-card p { font-size: .875rem; color: var(--muted); line-height: 1.65; margin-bottom: 1rem; }
.sc-stat {
  display: flex; align-items: center; gap: .875rem;
  padding: .875rem; background: var(--green-tint); border-radius: 10px;
  border: 1px solid var(--green-mid); margin-bottom: .625rem;
}
.sc-stat:last-of-type { margin-bottom: 0; }
.sc-n { font-size: 1.375rem; font-weight: 800; color: var(--green); letter-spacing: -.04em; line-height: 1; min-width: 56px; }
.sc-l { font-size: .8125rem; color: var(--slate); font-weight: 500; line-height: 1.4; }

/* ═══ WHAT-YOU-GET (service detail) ═══ */
.get-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.get-list { display: flex; flex-direction: column; gap: .875rem; }
.get-item {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.125rem 1.25rem; background: var(--white);
  border: 1.5px solid var(--border); border-radius: 12px;
  transition: border-color .2s;
}
.get-item:hover { border-color: var(--green-mid); }
.get-check {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--green); display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; margin-top: 1px;
}
.get-check svg { width: 11px; height: 11px; stroke: #fff; fill: none; stroke-width: 3; }
.get-text strong { display: block; font-size: .9375rem; font-weight: 700; color: var(--charcoal); margin-bottom: .2rem; }
.get-text span { font-size: .875rem; color: var(--muted); line-height: 1.5; }
.get-cta-block {
  background: var(--green); border-radius: 20px; padding: 2rem;
  position: sticky; top: 88px; color: #fff;
}
.get-cta-block h3 { font-size: 1.25rem; font-weight: 800; letter-spacing: -.03em; color: #fff; margin-bottom: .75rem; }
.get-cta-block p { font-size: .9375rem; color: rgba(255,255,255,.7); margin-bottom: 1.5rem; line-height: 1.65; }
.price-line { font-size: .875rem; font-weight: 700; color: var(--gold-lt); margin-bottom: 1.25rem; display: flex; align-items: center; gap: .5rem; }

/* ═══ TOOLS chips ═══ */
.tools-grid { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; justify-content: center; }
.tool-chip {
  display: flex; align-items: center; gap: .625rem;
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 10px; padding: .75rem 1.25rem;
  transition: border-color .2s, transform .15s;
}
.tool-chip:hover { border-color: var(--green-mid); transform: translateY(-2px); }
.tool-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.tool-chip span { font-size: .875rem; font-weight: 600; color: var(--charcoal); }
.tool-chip small { font-size: .6875rem; color: var(--muted); margin-left: .25rem; }

/* ═══ CASE STUDIES ═══ */
.cases-grid   { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.5rem; }
.cases-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2.5rem; }
.case-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 20px; overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex; flex-direction: column;
}
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--green-mid); }
.case-img {
  height: 180px; background: var(--green-tint);
  border-bottom: 1px solid var(--green-mid);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.case-img-inner {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; width: 100%; height: 100%; padding: 20px;
}
.case-img img { width: 100%; height: 100%; object-fit: cover; }
.case-metric { font-size: 2.5rem; font-weight: 800; color: var(--green); letter-spacing: -.05em; line-height: 1; }
.case-metric-big { font-size: 2.75rem; font-weight: 800; color: var(--green); letter-spacing: -.05em; line-height: 1; text-align: center; }
.case-metric-label,
.case-metric-sub  { font-size: .625rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--green-md); text-align: center; margin-top: .375rem; }
.case-tag-badge,
.case-badge {
  position: absolute; top: 12px; left: 12px;
  font-size: .5625rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; padding: 3px 8px; border-radius: 999px;
  background: var(--green); color: #fff;
}

/* "Built for [Client]" overlay — sits on top of case-img */
.case-built-for {
  position: absolute; top: 12px; left: 12px;
  display: inline-flex; align-items: center;
  font-size: .6875rem; font-weight: 700;
  letter-spacing: .01em;
  padding: .375rem .75rem;
  border-radius: 999px;
  background: rgba(15, 42, 31, 0.92);  /* dark green, semi-transparent */
  color: #fff;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  max-width: calc(100% - 24px);
  z-index: 2;
}

/* Pagination — numbered with active state */
.cb-pagination {
  display: flex; justify-content: center; align-items: center;
  gap: .375rem; flex-wrap: wrap;
  margin-top: 3.5rem;
}
.cb-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px;
  padding: 0 .75rem;
  font-size: .875rem; font-weight: 700;
  color: var(--charcoal);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  transition: all .18s;
}
.cb-pagination .page-numbers:hover {
  background: var(--green-tint);
  border-color: var(--green-mid);
  color: var(--green);
  transform: translateY(-1px);
}
.cb-pagination .page-numbers.current {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  cursor: default;
}
.cb-pagination .page-numbers.current:hover {
  background: var(--green);
  transform: none;
}
.cb-pagination .page-numbers.dots {
  border: none;
  background: transparent;
  cursor: default;
  color: var(--muted);
}
.cb-pagination .page-numbers.dots:hover {
  background: transparent;
  transform: none;
}
.case-body  { padding: 1.5rem; }
.case-client{ font-size: .6875rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; margin-bottom: .5rem; }
.case-card h3 { font-size: 1.0625rem; font-weight: 700; color: var(--charcoal); margin-bottom: .625rem; line-height: 1.3; letter-spacing: -.02em; }
.case-card p  { font-size: .875rem; color: var(--muted); line-height: 1.65; margin-bottom: 1rem; }
.case-link    { font-size: .875rem; font-weight: 700; color: var(--green); }
.view-all     { display: block; text-align: center; margin-top: 2rem; font-size: 1rem; font-weight: 700; color: var(--green); }

/* ═══ ABOUT / WHY ME ═══ */
.about-inner { display: grid; grid-template-columns: 400px 1fr; gap: 80px; align-items: center; }
.about-photo {
  background: var(--green-tint); border-radius: 20px;
  border: 1.5px solid var(--green-mid);
  height: 480px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  position: sticky; top: 88px; overflow: hidden;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo-av {
  width: 100px; height: 100px; border-radius: 50%;
  background: var(--green); display: flex; align-items: center;
  justify-content: center; font-size: 2.5rem; font-weight: 800;
  color: #fff; font-style: italic;
}
.about-photo-lbl  { font-size: .75rem; font-weight: 600; color: var(--green-md); letter-spacing: .05em; text-transform: uppercase; }
.about-photo-name { font-size: 1rem; font-weight: 700; color: var(--green); }
.about-photo-role { font-size: .75rem; color: var(--muted); }
.about-photo-loc {
  display: flex; align-items: center; gap: 5px;
  font-size: .75rem; font-weight: 600; color: var(--green);
  background: var(--white); padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--green-mid); margin-top: 4px;
}
.about-content h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.1; color: var(--charcoal); margin-bottom: 1.25rem; }
.about-content h2 em { font-style: normal; color: var(--green); }
.about-content p { font-size: 1rem; color: var(--muted); line-height: 1.8; margin-bottom: 1.25rem; }
.about-proof { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; margin-top: 2rem; }
.ap-item { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 1.25rem; border-left: 3px solid var(--gold); }
.ap-n { display: block; font-size: 1.75rem; font-weight: 800; color: var(--green); letter-spacing: -.04em; line-height: 1; margin-bottom: .25rem; }
.ap-l { font-size: .75rem; font-weight: 700; color: var(--charcoal); display: block; margin-bottom: .25rem; }
.ap-d { font-size: .6875rem; color: var(--muted); line-height: 1.5; }
.about-skills { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.skill-tag { font-size: .6875rem; font-weight: 700; padding: .375rem .875rem; border-radius: 999px; background: var(--green-tint); color: var(--green-dk); border: 1px solid var(--green-mid); }

/* ═══ PROCESS ═══ */
.process-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.25rem; counter-reset: step; }
.process-step {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 16px; padding: 1.75rem 1.5rem;
  position: relative; border-left: 3px solid var(--gold);
  counter-increment: step;
  transition: transform .2s, box-shadow .2s;
}
.process-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.process-step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; top: 1rem; right: 1.25rem;
  font-size: 1.5rem; font-weight: 800; color: var(--green-mid);
  letter-spacing: -.04em; line-height: 1;
}
.step-icon {
  width: 44px; height: 44px; background: var(--green-tint);
  border-radius: 12px; display: flex; align-items: center;
  justify-content: center; margin-bottom: 1rem;
}
.step-icon svg { width: 20px; height: 20px; stroke: var(--green); fill: none; stroke-width: 2; }
.process-step h4 { font-size: 1rem; font-weight: 700; color: var(--charcoal); margin-bottom: .5rem; }
.process-step p  { font-size: .875rem; color: var(--muted); line-height: 1.6; }

/* ═══ TESTIMONIAL (large green section) ═══ */
.testimonial-inner { max-width: 800px; margin-inline: auto; text-align: center; }
.testimonial-quote {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 500; color: var(--white); line-height: 1.6;
  font-style: italic; margin-bottom: 2rem; letter-spacing: -.01em;
  position: relative;
}
.testimonial-quote::before {
  content: '\201C'; font-size: 5rem; color: var(--gold); line-height: 0;
  vertical-align: -.5em; margin-right: .125em; font-style: normal; font-weight: 800;
}
.testimonial-quote::after {
  content: '\201D'; font-size: 5rem; color: var(--gold); line-height: 0;
  vertical-align: -.5em; margin-left: .125em; font-style: normal; font-weight: 800;
}
.testimonial-attr { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.ta-av {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.15); display: flex; align-items: center;
  justify-content: center; font-size: 1.125rem; font-weight: 700;
  color: #fff; border: 2px solid rgba(255,255,255,.3);
}
.ta-name { font-size: .9375rem; font-weight: 700; color: #fff; display: block; text-align: left; }
.ta-role { font-size: .8125rem; color: rgba(255,255,255,.55); display: block; text-align: left; }
.ta-logo {
  margin-left: auto; display: flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.1); padding: .5rem 1rem; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.15);
}
.ta-logo span { font-size: .75rem; font-weight: 700; color: rgba(255,255,255,.8); }
.star-row { display: flex; gap: 3px; justify-content: center; margin-bottom: 1.5rem; }
.star { width: 18px; height: 18px; fill: var(--gold); }

/* ═══ ARTICLE / POST ═══ */
.article-hero { padding-block: 72px 56px; border-bottom: 1px solid var(--border); }
.post-cat {
  display: inline-flex; font-size: .625rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  padding: .35rem .875rem; border-radius: 999px;
  background: var(--green-tint); color: var(--green-dk);
  border: 1px solid var(--green-mid); margin-bottom: 1.125rem;
}
.article-hero h1 {
  font-size: clamp(1.875rem, 4vw, 2.875rem);
  font-weight: 800; letter-spacing: -.04em; line-height: 1.1;
  color: var(--charcoal); margin-bottom: 1.25rem;
}
.post-meta { display: flex; align-items: center; gap: .875rem; flex-wrap: wrap; }
.meta-av {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--green); display: flex; align-items: center;
  justify-content: center; font-size: .875rem; font-weight: 800;
  color: #fff; font-style: italic; flex-shrink: 0;
}
.meta-name   { font-size: .9375rem; font-weight: 700; color: var(--charcoal); display: block; }
.meta-detail { font-size: .8125rem; color: var(--muted); display: block; }
.meta-divider{ width: 1px; height: 28px; background: var(--border); flex-shrink: 0; }
.meta-item   { font-size: .8125rem; color: var(--muted); }

.featured-image { padding-block: 0; background: var(--white); }
.feat-img-wrap {
  height: 480px;
  background: linear-gradient(135deg, var(--green-tint) 0%, var(--green-mid) 60%, #c5ddd1 100%);
  position: relative; display: flex; align-items: center; justify-content: center;
  border-top: 1px solid var(--green-mid); border-bottom: 1px solid var(--green-mid);
  overflow: hidden;
}
.feat-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.feat-img-inner { text-align: center; padding: 2rem; }
.feat-img-inner svg { opacity: .3; margin-bottom: 1rem; }
.feat-img-inner p { font-size: .875rem; font-weight: 600; color: var(--green-md); letter-spacing: .04em; text-transform: uppercase; }

.article-body { padding-block: 72px; }

/* Case study 2-col body — prose + sticky CTA sidebar */
.case-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 4rem;
  align-items: start;
}
.case-body-side {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.case-side-cta {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.case-side-cta .case-side-cta-eyebrow {
  font-size: .625rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--green); margin-bottom: .5rem;
}
.case-side-cta h3 {
  font-size: 1.125rem; font-weight: 800;
  color: var(--charcoal); margin-bottom: .625rem;
  letter-spacing: -.02em; line-height: 1.25;
}
.case-side-cta p {
  font-size: .8125rem; color: var(--muted);
  line-height: 1.55; margin-bottom: 1.25rem;
}
.case-side-stack {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
}
.case-side-stack .case-side-cta-eyebrow {
  font-size: .625rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); margin-bottom: .75rem;
}
.case-side-chips {
  display: flex; flex-wrap: wrap; gap: .375rem;
}
.case-side-chips .skill-tag { font-size: .625rem; padding: .25rem .625rem; }

@media (max-width: 1024px) {
  .case-body-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .case-body-side {
    position: static;
    max-width: 480px;
    margin-inline: auto;
    width: 100%;
  }
}
.prose { font-size: 1.0625rem; color: var(--slate); line-height: 1.85; }
.prose h2 {
  font-size: 1.5rem; font-weight: 800; letter-spacing: -.04em;
  color: var(--charcoal); margin-top: 3rem; margin-bottom: 1rem;
  line-height: 1.15; padding-top: 1.5rem; border-top: 1px solid var(--border);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.prose h3 { font-size: 1.125rem; font-weight: 700; letter-spacing: -.02em; color: var(--charcoal); margin-top: 2rem; margin-bottom: .75rem; line-height: 1.3; }
.prose p { margin-bottom: 1.375rem; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--charcoal); font-weight: 700; }
.prose a { color: var(--green); text-decoration: underline; text-decoration-color: rgba(27,67,50,.3); }
.prose a:hover { text-decoration-color: var(--green); }
/* Prose lists — use absolute-positioned markers (NOT flex) so inline elements
   like <code>, <strong>, <a> flow naturally without each becoming a flex column. */
.prose ul, .prose ol {
  margin-bottom: 1.375rem;
  padding-left: 0;
  list-style: none;
}
.prose ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: .5rem;
  color: var(--slate);
}
.prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .7em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.prose ol { counter-reset: ol-count; }
.prose ol li {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: .75rem;
  color: var(--slate);
  counter-increment: ol-count;
}
.prose ol li::before {
  content: counter(ol-count);
  position: absolute;
  left: 0;
  top: .15em;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: .6875rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.prose blockquote {
  border-left: 4px solid var(--gold); background: var(--gold-tint);
  border-radius: 0 12px 12px 0; padding: 1.375rem 1.625rem;
  margin-block: 2rem; position: relative;
}
.prose blockquote::before {
  content: '\201C'; font-size: 3.5rem; color: var(--gold); line-height: 0;
  vertical-align: -.35em; margin-right: .125em; font-style: normal; font-weight: 800;
}
.prose blockquote p { color: var(--charcoal); font-style: italic; font-size: 1.0625rem; margin: 0; line-height: 1.7; }
.prose blockquote cite { display: block; font-size: .8125rem; font-weight: 600; color: var(--gold-dk); font-style: normal; margin-top: .875rem; }
.prose pre {
  background: var(--charcoal); border-radius: 14px;
  padding: 1.5rem 1.75rem; margin-block: 2rem; overflow-x: auto;
  border: 1px solid rgba(255,255,255,.06);
}
.prose pre code { font-family: 'Fira Code', Consolas, monospace; font-size: .875rem; line-height: 1.75; color: #e2e8f0; background: none; padding: 0; }
.prose code {
  font-family: 'Fira Code', Consolas, monospace; font-size: .875em;
  background: var(--green-tint); color: var(--green-dk);
  padding: .15rem .4rem; border-radius: 4px; border: 0.5px solid var(--green-mid);
}
.prose pre code { color: inherit; }
.tok-comment { color: #64748b; }
.tok-key     { color: var(--gold); }
.tok-val     { color: #86efac; }
.tok-fn      { color: #93c5fd; }
.tok-str     { color: #fca5a5; }
.tok-kw      { color: #c4b5fd; }
/* Embedded case-study / prose screenshots: never upscale past native size.
   Inline styles on the <figure>/<img> force width:100% which blurs small
   source images. fit-content + width:auto!important keeps them crisp:
   downscale on small screens (sharp), never upscale (blurry). */
.prose figure {
  width: fit-content !important;
  max-width: 100% !important;
  margin-inline: auto !important;
}
.prose figure img {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
}

.inline-img { margin-block: 2.5rem; }
.inline-img-wrap {
  height: 320px;
  background: linear-gradient(135deg, var(--green-tint), var(--green-mid));
  border-radius: 14px; border: 1.5px solid var(--green-mid);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.inline-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.inline-img-caption { text-align: center; font-size: .8125rem; color: var(--muted); margin-top: .75rem; font-style: italic; }

/* Inline callout (inside articles) */
.callout {
  background: var(--green-tint); border: 1px solid var(--green-mid);
  border-left: 4px solid var(--green); border-radius: 0 12px 12px 0;
  padding: 1.25rem 1.5rem; margin-block: 2rem;
}
.callout-head { display: flex; align-items: center; gap: .5rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--green-dk); margin-bottom: .625rem; }
.callout p { font-size: .9375rem; color: var(--green-dk); margin: 0; line-height: 1.65; }

/* Author card after article */
.author-card { margin-top: 3.5rem; padding-top: 2.5rem; border-top: 2px solid var(--border); }
.author-inner { display: flex; align-items: flex-start; gap: 1.5rem; }
.author-av {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--green); display: flex; align-items: center;
  justify-content: center; font-size: 1.75rem; font-weight: 800;
  color: #fff; font-style: italic; flex-shrink: 0; border: 3px solid var(--green-mid);
}
.author-name { font-size: 1.125rem; font-weight: 700; color: var(--charcoal); display: block; margin-bottom: .25rem; }
.author-role { font-size: .875rem; color: var(--green); font-weight: 600; display: block; margin-bottom: .75rem; }
.author-bio  { font-size: .9375rem; color: var(--muted); line-height: 1.7; margin-bottom: 1rem; }

/* ═══ RELATED POSTS GRID ═══ */
.related-section { padding-block: 80px; background: var(--off-white); border-top: 1px solid var(--border); }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.25rem; margin-top: 2.5rem; }
.blog-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 16px; overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--green-mid); }
.blog-card-top { height: 3px; background: linear-gradient(90deg, var(--green), var(--gold)); }
.blog-img-sm { height: 140px; display: flex; align-items: center; justify-content: center; padding: 1.25rem; border-bottom: 1px solid var(--border); overflow: hidden; }
.blog-img-sm img { width: 100%; height: 100%; object-fit: cover; }
.blog-img-ico { width: 44px; height: 44px; background: var(--green-tint); border-radius: 11px; display: flex; align-items: center; justify-content: center; }
.blog-img-ico svg { width: 20px; height: 20px; stroke: var(--green); fill: none; stroke-width: 1.75; }
.blog-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.blog-cat-pill { font-size: .5rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: var(--green-mid); color: var(--green-dk); padding: .2rem .5rem; border-radius: 999px; display: inline-block; margin-bottom: .625rem; align-self: flex-start; }
.blog-card h3 { font-size: .9375rem; font-weight: 700; color: var(--charcoal); line-height: 1.3; margin-bottom: .625rem; letter-spacing: -.02em; flex: 1; }
.blog-meta-sm { display: flex; gap: .5rem; font-size: .75rem; color: var(--muted); margin-bottom: .875rem; }
.blog-link { font-size: .8125rem; font-weight: 700; color: var(--green); margin-top: auto; }

/* ═══ NEWSLETTER STRIP ═══ */
.newsletter-strip {
  background: var(--gold-tint);
  border-top: 1px solid rgba(201,168,76,.3);
  border-bottom: 1px solid rgba(201,168,76,.3);
  padding-block: 56px;
}
.nl-inner { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; max-width: 800px; margin-inline: auto; }
.nl-text h3 { font-size: 1.375rem; font-weight: 800; letter-spacing: -.03em; color: var(--charcoal); margin-bottom: .5rem; }
.nl-text p  { font-size: .9375rem; color: var(--muted); margin: 0; }
.nl-form    { display: flex; gap: .75rem; }
.nl-input {
  padding: .8125rem 1.25rem; font-size: .9375rem; color: var(--charcoal);
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 999px; font-family: var(--sans); width: 280px; transition: border-color .2s;
}
.nl-input:focus { outline: none; border-color: var(--green); }

/* ═══ FINAL CTA SECTION (green) ═══ */
.cta-section { background: var(--green); padding-block: 100px; text-align: center; position: relative; overflow: hidden; }
.cta-section::before {
  content: ''; position: absolute; top: -120px; right: -120px;
  width: 480px; height: 480px; border-radius: 50%;
  background: rgba(201,168,76,.08); pointer-events: none;
}
.cta-section::after {
  content: ''; position: absolute; bottom: -80px; left: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: rgba(255,255,255,.04); pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; max-width: 640px; margin-inline: auto; }
.cta-pill {
  display: inline-block; font-size: .625rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; padding: .375rem .875rem;
  border-radius: 999px; background: rgba(201,168,76,.2); color: var(--gold-lt);
  border: 1px solid rgba(201,168,76,.35); margin-bottom: 1.25rem;
}
.cta-section h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.04em; color: #fff; margin-bottom: 1rem; line-height: 1.05; }
.cta-section p  { font-size: 1.0625rem; color: rgba(255,255,255,.7); max-width: 460px; margin: 0 auto 2.5rem; line-height: 1.7; }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.cta-note { font-size: .75rem; color: rgba(255,255,255,.35); margin-top: 1.25rem; }

/* ═══ FOOTER ═══ */
.site-footer { background: #0A1810; border-top: 3px solid var(--gold); padding: 56px 0 28px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-logo { display: flex; align-items: center; gap: 9px; text-decoration: none; margin-bottom: .875rem; }
.footer-tagline { font-size: .875rem; color: rgba(255,255,255,.4); line-height: 1.7; margin-bottom: .625rem; }
.footer-loc { display: flex; align-items: center; gap: .375rem; font-size: .75rem; color: rgba(255,255,255,.3); }
.footer-col h5 {
  font-size: .5625rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: rgba(255,255,255,.25); margin-bottom: .875rem;
}

/* Footer collapsibles — desktop: always shown, no toggle marker */
.footer-collapsible { width: 100%; }
.footer-collapsible > summary {
  list-style: none;
  display: block;
  cursor: default;
}
.footer-collapsible > summary::-webkit-details-marker { display: none; }
.footer-collapsible > summary::marker { display: none; }
.footer-collapsible > summary h5 { margin-bottom: .875rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-col a { font-size: .875rem; color: rgba(255,255,255,.5); font-weight: 500; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-cta p { font-size: .875rem; color: rgba(255,255,255,.4); margin-bottom: .875rem; line-height: 1.65; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06); padding-top: 1.25rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: .75rem;
}
.footer-bottom p, .footer-bottom a { font-size: .75rem; color: rgba(255,255,255,.25); font-weight: 500; }
.footer-bottom a:hover { color: rgba(255,255,255,.65); }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
  .hero-inner       { grid-template-columns: 1fr; }
  .hero-photo-card  { max-width: 420px; }
  .about-inner      { grid-template-columns: 1fr; gap: 3rem; }
  .about-photo      { position: static; height: 280px; }
  .footer-inner     { grid-template-columns: 1fr 1fr; }
  .process-grid     { grid-template-columns: 1fr 1fr; }
  .when-inner,
  .get-inner        { grid-template-columns: 1fr; }
  .when-sidebar,
  .get-cta-block    { position: static; }
  .includes-grid    { grid-template-columns: 1fr 1fr; }
  .cases-grid-2     { grid-template-columns: 1fr; }
  .related-grid     { grid-template-columns: 1fr 1fr; }
  /* Trust strip: cap at 2 columns on tablets (regardless of Customizer 3-5) */
  .trust-logos { grid-template-columns: repeat(min(var(--trust-cols, 3), 2), minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  /* Hide desktop nav and CTAs, show hamburger */
  .nav, .header-actions { display: none; }
  .nav-toggle { display: inline-flex; }
  /* Logo subtitle stays visible — looks better in the header */
  .logo-sub { display: block; }
}
/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE FIXES — overrides for inline grids and section padding
═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Catch-all: force inline 2-col grids to stack */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  /* 3-col inline grids → 1 col */
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns:repeat(3, 1fr)"],
  [style*="grid-template-columns:repeat(3,minmax(0,1fr))"] {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  /* 4-col inline grids → 2 col */
  [style*="grid-template-columns:repeat(4,1fr)"],
  [style*="grid-template-columns:repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.25rem !important;
  }
  /* Case-study hero "1fr 320px" → stack */
  [style*="grid-template-columns:1fr 320px"] {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  /* Service-detail hero "1fr 380px" → stack (when-section sidebar) */
  [style*="grid-template-columns:1fr 380px"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  /* Reset any "order: 2" reversal — keep natural flow on mobile */
  [style*="order:2"], [style*="order: 2"] {
    order: unset !important;
  }
  [style*="order:1"], [style*="order: 1"] {
    order: unset !important;
  }

  /* Reduce side padding to give content more breathing room on small screens */
  .wrap, .wrap-wide { padding-inline: 1.125rem; }
  .wrap-narrow, .wrap-article { padding-inline: 1.125rem; }

  /* Reduce excessive section padding on mobile (was 88px → 56px) */
  .section { padding-block: 56px; }
  .when-section, .includes-section, .related-section { padding-block: 56px; }
  .article-body { padding-block: 48px; }
  .article-hero { padding-block: 48px 32px; }
  .cta-section { padding-block: 64px; }
  .hero-narrow { padding-block: 48px 32px; }

  /* Reduce inline padding on cards/blocks */
  .sidebar-card, .get-cta-block { padding: 1.5rem; }
  .svc-card, .case-card { padding: 1.5rem; }
  .case-body, .blog-body { padding: 1.25rem; }

  /* Trust strip — full-width stacking, no awkward wrapping */
  .trust-strip-inner {
    gap: 1rem !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }
  /* Mobile: always 1 column regardless of Customizer setting */
  .trust-logos {
    grid-template-columns: 1fr !important;
    width: 100% !important;
    gap: .625rem !important;
  }
  .trust-logo-card {
    width: 100% !important;
    min-width: 0 !important;
  }
  .trust-divider { display: none !important; }
  .trust-items {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: .75rem !important;
    width: 100% !important;
    padding-top: .5rem;
  }
  .trust-item {
    font-size: .875rem !important;
    width: auto;
  }

  /* Hero stats — align cells properly, even row heights */
  .hero-stats {
    align-items: start !important;
    row-gap: 1.5rem !important;
    column-gap: 1rem !important;
    padding-top: 1.5rem !important;
  }
  .hero-stat {
    padding: 0 !important;
    border: none !important;
    display: flex !important;
    flex-direction: column !important;
    gap: .25rem;
  }
  .hero-stats .stat-n {
    font-size: 1.625rem !important;
    line-height: 1.1;
  }
  .hero-stats .stat-l {
    font-size: .6875rem !important;
    line-height: 1.4;
    color: var(--muted);
  }

  /* Ensure images and embeds never overflow */
  img, video, iframe, embed, object { max-width: 100%; height: auto; }

  /* Code blocks: enable horizontal scroll inside, never break layout */
  pre { max-width: 100%; overflow-x: auto; word-wrap: normal; }

  /* Tables in content: scroll horizontally inside their container */
  .prose table { display: block; overflow-x: auto; }

  /* Section headings — reduce margin */
  .section-hd { margin-bottom: 2rem; }
}

@media (max-width: 768px) {
  /* Footer collapsibles — mobile: enable accordion behaviour */
  .footer-collapsible > summary {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }
  .footer-collapsible > summary h5 {
    margin-bottom: 0;
    color: rgba(255,255,255,.55);
  }
  .footer-collapsible > summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: rgba(255,255,255,.4);
    line-height: 1;
    transition: transform .2s ease;
    margin-left: 1rem;
  }
  .footer-collapsible[open] > summary::after {
    content: '−';
  }
  .footer-collapsible[open] > summary {
    border-bottom-color: rgba(255,255,255,.12);
  }
  .footer-collapsible[open] > summary h5 {
    color: rgba(255,255,255,.85);
  }
  /* Padding for content when expanded */
  .footer-collapsible[open] ul,
  .footer-collapsible[open] p {
    padding-top: 1rem;
  }
  .footer-col { margin-bottom: 0; }
  .footer-inner { gap: 0 !important; }

  .hero { padding-block: 56px 48px; }
  .hero h1 { font-size: 2rem; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stat  { border-right: none; padding: .5rem 0; }
  .services-grid, .cases-grid, .related-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .trust-logos  { flex-direction: column; align-items: flex-start; }
  .trust-divider{ display: none; }
  .about-proof  { grid-template-columns: 1fr; }
  .cta-btns     { flex-direction: column; align-items: center; }
  .nl-inner     { grid-template-columns: 1fr; }
  .nl-form      { flex-direction: column; }
  .nl-input     { width: 100%; }
  .feat-img-wrap{ height: 300px; }
  .author-inner { flex-direction: column; align-items: flex-start; }
  .includes-grid{ grid-template-columns: 1fr; }
  .hero-btns    { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   FINAL MOBILE OVERRIDES — end-of-file high-specificity fixes
   Wider breakpoint (900px) to catch tablets too.
═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .trust-strip .trust-strip-inner {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 1rem !important;
  }
  .trust-strip .trust-logos {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: .625rem !important;
  }
  .trust-strip .trust-divider {
    display: none !important;
  }
  .trust-strip .trust-items {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100% !important;
    gap: .75rem !important;
    padding-top: .25rem !important;
  }
  .trust-strip .trust-item {
    width: auto !important;
    font-size: .875rem !important;
    flex: none !important;
  }

  /* Hero stats — uniform alignment, no orphaned text wrapping */
  .hero .hero-stats {
    grid-template-columns: 1fr 1fr !important;
    align-items: start !important;
    row-gap: 1.5rem !important;
    column-gap: 1rem !important;
  }
  .hero .hero-stat {
    padding: 0 !important;
    border: none !important;
  }
  .hero .stat-n { font-size: 1.625rem !important; }
  .hero .stat-l { font-size: .6875rem !important; }

  /* Header MUST stay sticky on mobile (was broken by overflow-x:hidden previously) */
  .site-header {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
  }
  /* Body and html must NOT have overflow set on the vertical axis or sticky breaks */
  html, body {
    overflow-x: clip; /* clip is sticky-safe; hidden breaks sticky on iOS */
  }
}
