/* ========================================================================== */
/*  SmartLaw — premium law firm styles                                         */
/*  Locked palette: Forest · Accent #b8965a · Playfair Display × Inter         */
/* ========================================================================== */

:root {
  --bg: #f3efe7;
  --surface: #ffffff;
  --ink: #16241c;
  --muted: #4a5b50;
  --line: #16241c;
  --invert-bg: #16241c;
  --invert-ink: #f3efe7;
  --accent: #b8965a;
  --font-display: 'Playfair Display', 'Cormorant Garamond', serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --container: min(1320px, 100% - 64px);
  --topbar-h: 116px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 116px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: var(--container); margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border: 1px solid var(--ink);
  background: transparent;
  font: 500 13.5px/1 var(--font-body);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  transition: background .25s ease, color .25s ease, transform .2s ease;
  border-radius: 0;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn--primary { background: var(--ink); color: var(--bg); }
.btn--primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--ghost { background: transparent; }
.btn--sm { padding: 11px 16px; font-size: 12px; }
.btn--lg { padding: 17px 28px; font-size: 14px; }

/* ---------- Topbar ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.topbar-utility { background: var(--invert-bg); color: var(--invert-ink); font-size: 12px; letter-spacing: 0.04em; }
.utility-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; opacity: 0.85; }
.utility-dot { opacity: 0.5; }
.utility-spacer { flex: 1; }
.utility-status { display: inline-flex; align-items: center; gap: 8px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #6cd28a; box-shadow: 0 0 0 3px color-mix(in srgb, #6cd28a 25%, transparent); }

.topbar-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; padding: 22px 0; }
.topbar--scrolled .topbar-row { padding: 14px 0; }

.wordmark { display: inline-flex; align-items: center; gap: 12px; }
.wordmark-text { display: flex; flex-direction: column; line-height: 1; }
.wordmark-name { font: 600 15px/1 var(--font-body); letter-spacing: 0.18em; color: var(--ink); }
.wordmark-sub { font: 400 10.5px/1 var(--font-body); letter-spacing: 0.18em; color: var(--muted); margin-top: 5px; text-transform: uppercase; }

.nav { display: flex; gap: 36px; justify-content: center; }
.nav a {
  font: 500 13.5px/1 var(--font-body);
  letter-spacing: 0.02em;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}
.nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px; background: var(--accent); transition: width .25s ease; }
.nav a:hover::after { width: 100%; }

.topbar-tail { display: flex; align-items: center; gap: 18px; }

.langswitch { display: inline-flex; border: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); border-radius: 999px; padding: 3px; position: relative; }
.langswitch button {
  border: 0; background: transparent; padding: 6px 11px; cursor: pointer;
  font: 600 11px/1 var(--font-body); letter-spacing: 0.1em; color: var(--muted);
  border-radius: 999px;
  transition: color .35s ease;
  position: relative;
  z-index: 1;
}
.langswitch button:hover { color: var(--ink); }
.langswitch button.is-active { color: var(--bg); }
.langswitch button.is-active::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--ink);
  border-radius: 999px;
  z-index: -1;
  animation: langPillIn .35s cubic-bezier(.4,.0,.2,1);
}
@keyframes langPillIn {
  0%   { transform: scale(0.6); opacity: 0; }
  60%  { transform: scale(1.06); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* Language content transition */
.lang-stage { transition: opacity .22s ease, transform .35s cubic-bezier(.4,.0,.2,1), filter .25s ease; }
.lang-stage--out { opacity: 0; transform: translateY(6px); filter: blur(2px); }
.lang-stage--in  { animation: langStageIn .42s cubic-bezier(.2,.7,.2,1) both; }
@keyframes langStageIn {
  from { opacity: 0; transform: translateY(8px); filter: blur(2px); }
  to   { opacity: 1; transform: translateY(0);   filter: blur(0); }
}

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 80px;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  grid-template-rows: auto auto auto auto auto;
  column-gap: 64px;
  row-gap: 28px;
  align-items: start;
}
.hero-eyebrow {
  grid-column: 1 / -1;
  display: inline-flex; align-items: center; gap: 14px;
  font: 500 12px/1 var(--font-body); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}
.rule { display: inline-block; width: 38px; height: 1px; background: currentColor; }

.hero-title {
  grid-column: 1 / 2;
  font: 400 clamp(48px, 6.4vw, 96px)/0.98 var(--font-display);
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}
.hero-line { display: block; }
.hero-line em {
  font-style: italic;
  color: var(--accent);
  font-feature-settings: "swsh" 1, "calt" 1;
}

.hero-image-wrap {
  grid-column: 2 / 3;
  grid-row: 2 / span 4;
  position: relative;
  align-self: stretch;
}
.hero-image {
  width: 100%;
  aspect-ratio: 4/5;
  background-size: cover;
  background-position: center;
  filter: grayscale(0.15) contrast(1.05);
}
.hero-image-meta {
  position: absolute; left: 0; bottom: -36px;
  display: flex; align-items: baseline; gap: 14px;
  font: 500 11px/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.hero-image-meta .num { font: 400 36px/1 var(--font-display); color: var(--ink); letter-spacing: 0; }
.hero-badge {
  position: absolute; left: -28px; top: 28px;
  background: var(--bg);
  border: 1px solid var(--ink);
  padding: 14px 18px;
  display: flex; align-items: center; gap: 14px;
}
.badge-num { font: 500 28px/1 var(--font-display); color: var(--ink); }
.badge-lbl { font: 400 10.5px/1.3 var(--font-body); color: var(--muted); letter-spacing: 0.06em; max-width: 130px; text-transform: uppercase; }

.hero-lede {
  grid-column: 1 / 2;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 56ch;
  margin: 6px 0 0;
}
.hero-cta { grid-column: 1 / 2; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta {
  grid-column: 1 / 2;
  display: flex; flex-wrap: wrap; gap: 12px;
  font: 500 11.5px/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  padding-top: 22px;
  border-top: 1px solid color-mix(in srgb, var(--ink) 15%, transparent);
}
.meta-dot { opacity: 0.4; }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--ink);
  color: var(--bg);
  border-block: 1px solid var(--ink);
  overflow: hidden;
  padding: 22px 0;
}
.marquee-track {
  display: flex; gap: 56px;
  animation: marquee 50s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.marquee-item { font: 400 28px/1 var(--font-display); letter-spacing: 0.01em; display: inline-flex; align-items: center; gap: 56px; }
.marquee-item:not(:last-child)::after { content: ""; }
.marquee-glyph { color: var(--accent); font-size: 16px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.333%); }
}

/* ---------- Stats ---------- */
.stats { padding: 72px 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat { display: flex; flex-direction: column; gap: 8px; padding-left: 22px; border-left: 1px solid var(--ink); }
.stat-num { font: 400 clamp(44px, 5vw, 72px)/1 var(--font-display); color: var(--ink); letter-spacing: -0.02em; }
.stat-lbl { font: 500 12px/1.2 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* ---------- Section heads ---------- */
.section { padding: 110px 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-eyebrow { display: inline-flex; align-items: center; gap: 14px; font: 500 12px/1 var(--font-body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.section-title { font: 400 clamp(36px, 4.4vw, 64px)/1.05 var(--font-display); letter-spacing: -0.015em; margin: 0; color: var(--ink); }
.section-lede { font-size: 17px; line-height: 1.6; color: var(--muted); margin: 18px 0 0; max-width: 60ch; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}
.service-card {
  position: relative;
  padding: 36px 28px 80px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: transparent;
  transition: background .3s ease, color .3s ease;
  outline: none;
  cursor: pointer;
}
.service-card.is-active { background: var(--ink); color: var(--bg); }
.service-card.is-active .service-num,
.service-card.is-active .service-desc { color: color-mix(in srgb, var(--bg) 75%, transparent); }
.service-num { font: 500 11px/1 var(--font-body); letter-spacing: 0.16em; color: var(--muted); margin-bottom: 28px; }
.service-title { font: 400 26px/1.1 var(--font-display); margin: 0 0 12px; letter-spacing: -0.01em; }
.service-desc { font-size: 14.5px; line-height: 1.55; color: var(--muted); margin: 0; }
.service-arrow { position: absolute; right: 24px; bottom: 24px; opacity: 0.5; transition: opacity .3s ease, transform .3s ease; }
.service-card.is-active .service-arrow { opacity: 1; color: var(--accent); transform: translateX(4px); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 80px; align-items: start; }
.about-image { position: relative; aspect-ratio: 4/5; overflow: hidden; }
.about-image img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.1); }
.about-image-tag { position: absolute; left: 0; bottom: 0; background: var(--bg); padding: 14px 22px; font: 500 11.5px/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); }
.about-text { font-size: 17px; line-height: 1.7; color: var(--ink); margin: 0 0 18px; max-width: 56ch; }
.about-text + .about-text { color: var(--muted); }
.pillars { margin-top: 48px; display: grid; gap: 24px; }
.pillar { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding-top: 22px; border-top: 1px solid color-mix(in srgb, var(--ink) 15%, transparent); }
.pillar-num { font: 500 11px/1 var(--font-body); letter-spacing: 0.18em; color: var(--accent); padding-top: 4px; }
.pillar h4 { font: 500 17px/1.2 var(--font-body); margin: 0 0 6px; letter-spacing: 0.01em; }
.pillar p { font-size: 14.5px; line-height: 1.55; color: var(--muted); margin: 0; }

/* ---------- Approach (dark) ---------- */
.approach--dark { background: var(--invert-bg); color: var(--invert-ink); border-color: var(--invert-bg); }
.approach--dark .section-title,
.approach--dark .section-eyebrow { color: var(--invert-ink); }
.approach--dark .section-eyebrow { opacity: 0.7; }
.approach-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 24px; }
.step { padding-top: 26px; }
.step-head { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.step-num { font: 400 32px/1 var(--font-display); color: var(--accent); }
.step-rule { flex: 1; height: 1px; background: color-mix(in srgb, var(--invert-ink) 35%, transparent); }
.step-title { font: 400 28px/1.1 var(--font-display); margin: 0 0 12px; letter-spacing: -0.01em; }
.step-desc { font-size: 15px; line-height: 1.6; color: color-mix(in srgb, var(--invert-ink) 70%, transparent); margin: 0; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.member { display: flex; flex-direction: column; gap: 18px; }
.member-photo { aspect-ratio: 3/4; background-size: cover; background-position: center; filter: grayscale(0.4) contrast(1.05); }
.member-num { font: 500 11px/1 var(--font-body); letter-spacing: 0.18em; color: var(--accent); margin-bottom: 6px; }
.member-name { font: 400 28px/1.1 var(--font-display); margin: 0 0 6px; letter-spacing: -0.01em; }
.member-role { font: 500 12px/1.2 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.member-bio { font-size: 14.5px; line-height: 1.6; color: var(--muted); margin: 0; }

/* ---------- Insights ---------- */
.insights-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 56px; flex-wrap: wrap; }
.insights-head .section-head { margin-bottom: 0; }
.insights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.insight { position: relative; padding: 36px 28px 80px 0; border-bottom: 1px solid var(--ink); cursor: pointer; transition: background .25s ease; }
.insight + .insight { padding-left: 28px; border-left: 1px solid var(--ink); }
.insight:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); }
.insight-meta { display: flex; align-items: center; gap: 10px; font: 500 11.5px/1 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 24px; }
.insight-tag { background: var(--accent); color: #fff; padding: 5px 9px; }
.insight-title { font: 400 26px/1.2 var(--font-display); margin: 0; letter-spacing: -0.01em; max-width: 24ch; }
.insight-arrow { position: absolute; right: 24px; bottom: 24px; opacity: 0.5; }
.insight:hover .insight-arrow { opacity: 1; color: var(--accent); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 80px; align-items: start; }
.contact-lede { font-size: 17px; line-height: 1.6; color: var(--muted); margin: 0 0 36px; }
.contact-details { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.contact-item { padding-top: 16px; border-top: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); }
.contact-label { font: 500 11px/1 var(--font-body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.contact-value { font-size: 15.5px; line-height: 1.5; color: var(--ink); }
.contact-value--muted { color: var(--muted); font-size: 14px; }

.contact-form { background: var(--surface); padding: 40px; border: 1px solid var(--ink); display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: flex; flex-direction: column; gap: 8px; }
.contact-form label > span { font: 500 11px/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.contact-form input,
.contact-form textarea {
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  padding: 10px 0;
  font: 400 16px/1.4 var(--font-body);
  color: var(--ink);
  outline: none;
  border-radius: 0;
  font-family: var(--font-body);
}
.contact-form input:focus,
.contact-form textarea:focus { border-bottom-color: var(--accent); }

/* Custom select */
.cselect { position: relative; display: flex; flex-direction: column; gap: 8px; }
.cselect-label { font: 500 11px/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.cselect-trigger {
  display: flex; align-items: center; justify-content: space-between;
  border: 0; border-bottom: 1px solid var(--ink);
  background: transparent;
  padding: 10px 0;
  font: 400 16px/1.4 var(--font-body);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: border-color .2s ease;
  font-family: var(--font-body);
}
.cselect-trigger.is-empty { color: var(--muted); }
.cselect.is-open .cselect-trigger,
.cselect-trigger:hover { border-bottom-color: var(--accent); }
.cselect-chev { transition: transform .25s ease; opacity: 0.7; }
.cselect.is-open .cselect-chev { transform: rotate(180deg); opacity: 1; color: var(--accent); }

.cselect-menu {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--surface);
  border: 1px solid var(--ink);
  list-style: none; margin: 0; padding: 6px;
  z-index: 30;
  box-shadow: 0 18px 40px -16px color-mix(in srgb, var(--ink) 35%, transparent);
  animation: cselectIn .18s ease;
  max-height: 280px; overflow-y: auto;
}
@keyframes cselectIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.cselect-menu li {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px;
  font: 400 15px/1.3 var(--font-body);
  color: var(--ink);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.cselect-menu li:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.cselect-bullet { width: 6px; height: 6px; border-radius: 50%; background: transparent; border: 1px solid color-mix(in srgb, var(--ink) 35%, transparent); flex: none; transition: background .15s ease, border-color .15s ease; }
.cselect-menu li:hover .cselect-bullet { border-color: var(--accent); }
.cselect-menu li.is-selected { color: var(--accent); }
.cselect-menu li.is-selected .cselect-bullet { background: var(--accent); border-color: var(--accent); }
.contact-form textarea { resize: vertical; min-height: 96px; }
.form-textarea { margin-top: 4px; }
.contact-form .btn { align-self: flex-start; margin-top: 8px; }
.form-note { font-size: 12px; color: var(--muted); margin: 4px 0 0; line-height: 1.5; }

/* ---------- Footer ---------- */
.footer { background: var(--invert-bg); color: var(--invert-ink); padding: 80px 0 32px; }
.footer .wordmark-name,
.footer .wordmark-sub { color: var(--invert-ink); }
.footer .wordmark-sub { color: color-mix(in srgb, var(--invert-ink) 60%, transparent); }
.footer-top { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; padding-bottom: 60px; border-bottom: 1px solid color-mix(in srgb, var(--invert-ink) 18%, transparent); }
.footer-tagline { font: 400 22px/1.3 var(--font-display); margin: 24px 0 0; max-width: 30ch; color: color-mix(in srgb, var(--invert-ink) 80%, transparent); }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.footer-cols h5 { font: 500 11px/1 var(--font-body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin: 0 0 20px; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-cols a, .footer-cols li { font-size: 14px; color: color-mix(in srgb, var(--invert-ink) 80%, transparent); }
.footer-cols a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding-top: 28px; font-size: 12px; letter-spacing: 0.08em; color: color-mix(in srgb, var(--invert-ink) 55%, transparent); }

/* ---------- Hamburger + Mobile menu ---------- */
.hamburger {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px;
  transition: background .2s ease, border-color .2s ease;
}
.hamburger:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); border-color: var(--ink); }
.hamburger span {
  display: block;
  width: 16px; height: 1.5px;
  background: var(--ink);
  transition: transform .25s ease, opacity .2s ease;
  transform-origin: center;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--bg);
  border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  padding: 20px 0 28px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .25s ease, transform .25s ease;
  box-shadow: 0 24px 40px -20px color-mix(in srgb, var(--ink) 25%, transparent);
}
.mobile-menu.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.mobile-menu-inner { display: flex; flex-direction: column; gap: 0; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  font: 500 16px/1 var(--font-body);
  letter-spacing: 0.02em;
  color: var(--ink);
  padding: 16px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
}
.mobile-menu nav a:active,
.mobile-menu nav a:hover { color: var(--accent); }
.mobile-menu .mobile-menu-tail {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.mobile-menu .btn { flex: 1; justify-content: center; min-width: 160px; }

@media (min-width: 981px) {
  .hamburger, .mobile-menu { display: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  :root { --container: min(1320px, 100% - 48px); }
}

@media (max-width: 980px) {
  /* Topbar: swap nav for hamburger, hide desktop CTA */
  .nav { display: none; }
  .topbar-row { grid-template-columns: 1fr auto; padding: 16px 0; gap: 16px; }
  .topbar--scrolled .topbar-row { padding: 12px 0; }
  .cta-desktop { display: none; }
  .hamburger { display: inline-flex; }

  /* Utility row: drop the address, keep phone and status */
  .utility-row { gap: 8px; }
  .utility-address, .utility-address-dot { display: none; }

  /* Sections + hero scale down */
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 40px; }
  .hero { padding: 48px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; column-gap: 0; row-gap: 22px; }
  .hero-image-wrap { grid-column: 1 / -1; grid-row: auto; margin-top: 8px; }
  .hero-image { aspect-ratio: 16/10; }
  .hero-badge { left: auto; right: 16px; top: 16px; }
  .hero-image-meta { position: static; margin-top: 22px; }
  .hero-image-meta .num { font-size: 28px; }

  /* Stats / Services / About / Approach / Team / Insights / Contact / Footer */
  .stats { padding: 56px 0; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card { padding: 28px 22px 64px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .approach-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .team-grid { grid-template-columns: 1fr; gap: 48px; }
  .insights-grid { grid-template-columns: 1fr; }
  .insight { padding: 28px 22px 64px 0; }
  .insight + .insight { padding-left: 0; border-left: 0; }
  .insights-head { margin-bottom: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-form { padding: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-details { grid-template-columns: 1fr 1fr; }
  .footer { padding: 56px 0 28px; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; padding-bottom: 40px; }
}

@media (max-width: 768px) {
  :root { --container: min(1320px, 100% - 32px); }

  .utility-row { font-size: 11px; padding: 7px 0; }

  /* Hero on small tablet/large phone */
  .hero-title { font-size: clamp(40px, 9vw, 72px); }
  .hero-cta { width: 100%; gap: 10px; }
  .hero-cta .btn { flex: 1; min-width: 0; justify-content: center; }
  .hero-meta { gap: 10px; font-size: 11px; }

  /* Services + Approach: 2 → 1 */
  .services-grid { grid-template-columns: 1fr; }
  .approach-grid { grid-template-columns: 1fr; gap: 32px; }

  /* Footer cols 3 → 2 */
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 28px; }

  /* Contact details stack */
  .contact-details { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  :root { --container: min(1320px, 100% - 24px); }

  .section { padding: 64px 0; }
  .stats { padding: 48px 0; }
  .section-head { margin-bottom: 32px; }

  /* Hero badge tighter */
  .hero-badge { padding: 10px 14px; gap: 10px; top: 12px; right: 12px; }
  .badge-num { font-size: 22px; }
  .badge-lbl { font-size: 9.5px; max-width: 110px; }
  .hero-image-meta .num { font-size: 24px; }

  /* Marquee tighter */
  .marquee { padding: 16px 0; }
  .marquee-item { font-size: 22px; gap: 36px; }
  .marquee-track { gap: 36px; }

  /* Section titles smaller */
  .section-title { font-size: clamp(30px, 7vw, 44px); }

  /* Forms + footer */
  .contact-form { padding: 24px 18px; }
  .footer-cols { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
  .footer { padding: 48px 0 24px; }

  /* Mobile menu */
  .mobile-menu { padding: 16px 0 24px; }
  .mobile-menu .mobile-menu-tail { flex-direction: column; align-items: stretch; }
  .mobile-menu .btn { width: 100%; }

  /* Pillars: shrink num column */
  .pillar { grid-template-columns: 40px 1fr; gap: 14px; }
}

@media (max-width: 480px) {
  /* Stats 2 → 1 on small phones */
  .stats-row { grid-template-columns: 1fr; gap: 18px; }

  /* Drop the phone block from utility row, keep status */
  .utility-phone, .utility-phone-dot { display: none; }
  .utility-row { font-size: 10.5px; }
  .utility-status { margin-left: auto; }

  /* Hero typography min */
  .hero-title { font-size: clamp(34px, 10.5vw, 60px); line-height: 1.02; }
  .hero-lede { font-size: 15.5px; }

  /* Tighter container padding */
  .container { width: min(1320px, 100% - 24px); }

  /* Step head numerals smaller */
  .step-num { font-size: 26px; }
  .step-title { font-size: 24px; }

  /* Footer tagline tighter */
  .footer-tagline { font-size: 19px; }
}
