/* =================================================================
   Vivace.ma — Shared Stylesheet
   Design system: Clay.com-inspired, adapted for North African warmth
   ================================================================= */

/* ----------------------------- TOKENS ---------------------------- */
:root {
  /* Colors */
  --canvas: #fffaf0;
  --ink: #0a0a0a;
  --body: #3a3a3a;
  --muted: #6a6a6a;
  --surface-soft: #faf5e8;
  --surface-card: #f5f0e0;
  --brand-terracotta: #c94a2b;
  --brand-ochre: #e8b94a;
  --brand-midnight: #0a1a2a;
  --brand-lavender: #b8a4ed;
  --brand-sage: #7aab8a;
  --on-dark: #ffffff;
  --hairline: #e5e5e5;

  /* Radius scale */
  --r-6: 6px;
  --r-8: 8px;
  --r-12: 12px;
  --r-16: 16px;
  --r-24: 24px;
  --r-full: 9999px;

  /* Spacing scale (4px base) */
  --s-4: 4px;
  --s-8: 8px;
  --s-12: 12px;
  --s-16: 16px;
  --s-24: 24px;
  --s-32: 32px;
  --s-48: 48px;
  --s-96: 96px;

  /* Layout */
  --maxw: 1280px;
  --section-pad: 96px;

  /* Type family */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ----------------------------- RESET ----------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--body);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--ink); font-weight: 600; }
p { margin: 0; }

/* ------------------------ TYPOGRAPHY HELPERS --------------------- */
.display-xl { font-weight: 700; font-size: 72px; line-height: 1; letter-spacing: -2.5px; color: var(--ink); }
.display-lg { font-weight: 700; font-size: 56px; line-height: 1.05; letter-spacing: -2px; color: var(--ink); }
.display-md { font-weight: 600; font-size: 40px; line-height: 1.1; letter-spacing: -1px; color: var(--ink); }
.display-sm { font-weight: 600; font-size: 32px; line-height: 1.15; letter-spacing: -0.5px; color: var(--ink); }
.title-lg  { font-weight: 600; font-size: 24px; line-height: 1.3; color: var(--ink); }
.body-md   { font-weight: 400; font-size: 16px; line-height: 1.55; }
.body-sm   { font-weight: 400; font-size: 14px; line-height: 1.55; }
.caption {
  font-weight: 600; font-size: 12px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--muted);
}

/* ----------------------------- LAYOUT ---------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--s-24);
}

.section { padding-block: var(--section-pad); }
.section-tight { padding-block: var(--s-48); }

.section-head { max-width: 720px; margin-bottom: var(--s-48); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .caption { display: block; margin-bottom: var(--s-16); color: var(--brand-terracotta); }
.section-head p { margin-top: var(--s-16); color: var(--body); font-size: 18px; }

.eyebrow {
  display: inline-block;
  font-weight: 600; font-size: 12px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--brand-terracotta);
  margin-bottom: var(--s-16);
}

/* ----------------------------- BUTTONS --------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--s-8);
  font-weight: 600; font-size: 14px;
  padding: 14px 24px; border-radius: var(--r-full);
  border: 1px solid transparent; transition: transform .15s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid var(--brand-ochre); outline-offset: 2px; }
.btn-primary { background: var(--ink); color: var(--on-dark); }
.btn-primary:hover { background: var(--brand-terracotta); transform: translateY(-1px); }
.btn-terracotta { background: var(--brand-terracotta); color: var(--on-dark); }
.btn-terracotta:hover { background: #b03d20; transform: translateY(-1px); }
.btn-light { background: var(--on-dark); color: var(--ink); border-color: var(--hairline); }
.btn-light:hover { background: var(--surface-card); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { color: var(--brand-terracotta); }

.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 14px; color: var(--ink);
  transition: gap .15s ease, color .2s ease;
}
.text-link:hover { gap: 10px; color: var(--brand-terracotta); }
.text-link:focus-visible { outline: 3px solid var(--brand-ochre); outline-offset: 3px; border-radius: 4px; }

/* ------------------------------ NAV ------------------------------ */
.nav-wrap {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 250, 240, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand {
  font-weight: 700; font-size: 20px; letter-spacing: -0.5px; color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px;
}
.brand .dot { color: var(--brand-terracotta); }
.brand svg { width: 22px; height: 22px; }

.nav-links {
  display: flex; align-items: center; gap: var(--s-32);
}
.nav-links a {
  font-weight: 500; font-size: 15px; color: var(--body);
  transition: color .2s ease; position: relative;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: var(--brand-terracotta); border-radius: 2px;
}
.nav-links a:focus-visible { outline: 3px solid var(--brand-ochre); outline-offset: 4px; border-radius: 4px; }

.nav-right { display: flex; align-items: center; gap: var(--s-16); }

/* Mobile nav (checkbox hack) */
.nav-toggle { display: none; }
.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  width: 44px; height: 44px; align-items: center; justify-content: center;
  border: 1px solid var(--hairline); border-radius: var(--r-8); background: transparent;
}
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }

/* --------------------------- HERO ------------------------------- */
.hero { position: relative; overflow: hidden; padding-block: 88px 96px; }
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--s-48);
  align-items: center;
}
.hero h1 { margin-bottom: var(--s-24); }
.hero .lead { font-size: 19px; color: var(--body); max-width: 540px; margin-bottom: var(--s-32); }
.hero-actions { display: flex; align-items: center; gap: var(--s-24); flex-wrap: wrap; }

/* Zellige decorative accent */
.zellige-accent {
  position: absolute; pointer-events: none; opacity: 0.06; z-index: 0;
}
.zellige-accent.tr { top: -80px; right: -120px; width: 520px; height: 520px; }
.zellige-accent.bl { bottom: -100px; left: -120px; width: 460px; height: 460px; }
.hero-grid, .cta-inner { position: relative; z-index: 1; }

/* Stat card cluster (hero right) */
.stat-cluster { display: grid; gap: var(--s-16); }
.stat-card {
  background: var(--surface-card); border-radius: var(--r-16);
  padding: var(--s-24); border: 1px solid var(--hairline);
}
.stat-card:nth-child(1) { background: var(--brand-terracotta); color: var(--on-dark); border-color: transparent; transform: rotate(-1deg); }
.stat-card:nth-child(2) { background: var(--brand-midnight); color: var(--on-dark); border-color: transparent; margin-left: var(--s-32); }
.stat-card:nth-child(3) { background: var(--brand-ochre); color: var(--ink); border-color: transparent; transform: rotate(1deg); }
.stat-card .num { font-weight: 700; font-size: 40px; line-height: 1; letter-spacing: -1px; }
.stat-card:nth-child(1) .num, .stat-card:nth-child(2) .num { color: var(--on-dark); }
.stat-card .lbl { font-size: 14px; margin-top: 6px; opacity: .9; }

/* --------------------------- LOGO BAND -------------------------- */
.logos { text-align: center; padding-block: var(--s-48); border-block: 1px solid var(--hairline); }
.logos .caption { display: block; margin-bottom: var(--s-32); }
.logo-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: var(--s-48); opacity: .65;
}
.logo-row svg { height: 26px; width: auto; }

/* --------------------------- CARDS ------------------------------ */
.card-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-24);
}
.card-grid.two { grid-template-columns: repeat(2, 1fr); }

.fcard {
  border-radius: var(--r-24); padding: var(--s-32);
  display: flex; flex-direction: column; min-height: 280px;
}
.fcard .ficon {
  width: 48px; height: 48px; border-radius: var(--r-12);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: var(--s-24); background: rgba(255,255,255,.18);
}
.fcard h3 { margin-bottom: var(--s-12); }
.fcard p { margin-bottom: var(--s-16); font-size: 15px; }
.fcard ul { margin-bottom: var(--s-24); display: grid; gap: 8px; }
.fcard ul li { font-size: 14px; display: flex; gap: 8px; align-items: flex-start; }
.fcard ul li::before { content: "—"; opacity: .6; }
.fcard .text-link { margin-top: auto; }

/* Card color variants */
.c-terracotta { background: var(--brand-terracotta); color: rgba(255,255,255,.92); }
.c-terracotta h3, .c-terracotta .text-link { color: #fff; }
.c-midnight { background: var(--brand-midnight); color: rgba(255,255,255,.85); }
.c-midnight h3, .c-midnight .text-link { color: #fff; }
.c-midnight .ficon { background: rgba(255,255,255,.12); }
.c-ochre { background: var(--brand-ochre); color: rgba(10,10,10,.8); }
.c-ochre h3, .c-ochre .text-link { color: var(--ink); }
.c-ochre .ficon, .c-lavender .ficon, .c-sage .ficon, .c-cream .ficon { background: rgba(0,0,0,.08); }
.c-lavender { background: var(--brand-lavender); color: rgba(10,10,10,.8); }
.c-lavender h3, .c-lavender .text-link { color: var(--ink); }
.c-sage { background: var(--brand-sage); color: rgba(10,10,10,.82); }
.c-sage h3, .c-sage .text-link { color: var(--ink); }
.c-cream { background: var(--surface-card); color: var(--body); }
.c-cream h3, .c-cream .text-link { color: var(--ink); }
.c-cream .ficon { background: rgba(0,0,0,.05); }

.fcard .text-link svg { transition: transform .15s ease; }
.fcard:hover .text-link svg { transform: translateX(3px); }

/* ----------------------- PROCESS STEPS -------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-32); }
.step { position: relative; }
.step .step-no {
  font-weight: 700; font-size: 14px; color: var(--brand-terracotta);
  letter-spacing: 1.5px; margin-bottom: var(--s-16); display: block;
}
.step h3 { margin-bottom: var(--s-12); }
.step p { font-size: 15px; }
.step::before {
  content: ""; display: block; height: 2px; background: var(--hairline);
  margin-bottom: var(--s-24); border-radius: 2px;
}
.step:first-child::before { background: var(--brand-terracotta); }

/* ------------------------ RESULTS BAND -------------------------- */
.band-dark { background: var(--brand-midnight); color: var(--on-dark); }
.band-dark h2 { color: var(--on-dark); }
.band-dark .caption { color: var(--brand-ochre); }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-32); }
.big-stat .num {
  font-weight: 700; font-size: 56px; line-height: 1; letter-spacing: -2px;
  color: var(--brand-ochre);
}
.big-stat .lbl { margin-top: var(--s-12); font-size: 15px; color: rgba(255,255,255,.75); }

/* ------------------------ TESTIMONIALS -------------------------- */
.tgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-24); }
.tcard {
  background: var(--surface-card); border-radius: var(--r-16);
  padding: var(--s-32); display: flex; flex-direction: column; gap: var(--s-24);
}
.tcard .quote { font-size: 17px; color: var(--ink); line-height: 1.5; }
.tcard .stars { color: var(--brand-ochre); letter-spacing: 2px; }
.tcard .person { display: flex; align-items: center; gap: var(--s-12); margin-top: auto; }
.tcard .avatar {
  width: 44px; height: 44px; border-radius: var(--r-full); object-fit: cover;
  background: var(--brand-sage);
}
.tcard .person .name { font-weight: 600; color: var(--ink); font-size: 15px; }
.tcard .person .role { font-size: 13px; color: var(--muted); }

/* --------------------------- CTA BAND --------------------------- */
.cta-band { background: var(--surface-soft); position: relative; overflow: hidden; }
.cta-inner { text-align: center; max-width: 680px; margin-inline: auto; }
.cta-inner h2 { margin-bottom: var(--s-24); }
.cta-inner p { font-size: 18px; margin-bottom: var(--s-32); }
.cta-actions { display: flex; gap: var(--s-16); justify-content: center; flex-wrap: wrap; }

/* ---------------------------- FOOTER ---------------------------- */
.footer { background: var(--surface-soft); position: relative; padding-top: var(--s-96); overflow: hidden; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--s-48);
  padding-bottom: var(--s-48);
}
.footer .brand { margin-bottom: var(--s-16); }
.footer-about p { font-size: 14px; max-width: 280px; margin-bottom: var(--s-24); }
.footer-parent { font-size: 13px; color: var(--muted); margin-top: var(--s-24); max-width: 300px; }
.footer-parent a { color: var(--brand-terracotta); font-weight: 600; }
.footer-parent a:hover { text-decoration: underline; }
.footer-col h4 { font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s-16); }
.footer-col ul { display: grid; gap: var(--s-12); }
.footer-col a { font-size: 14px; color: var(--body); transition: color .2s; }
.footer-col a:hover { color: var(--brand-terracotta); }
.footer-col a:focus-visible { outline: 3px solid var(--brand-ochre); outline-offset: 3px; border-radius: 4px; }
.social-row { display: flex; gap: var(--s-12); margin-top: var(--s-16); }
.social-row a {
  width: 40px; height: 40px; border-radius: var(--r-full);
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--hairline); color: var(--ink); transition: .2s;
}
.social-row a:hover { background: var(--brand-terracotta); color: #fff; border-color: transparent; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--s-16);
  border-top: 1px solid var(--hairline); padding-block: var(--s-24);
  font-size: 13px; color: var(--muted); position: relative; z-index: 1;
}
.footer-skyline { display: block; width: 100%; height: auto; margin-top: var(--s-24); color: #e8d5c0; }
.footer-skyline svg { width: 100%; height: auto; display: block; }

/* --------------------- ABOUT: TIMELINE / QUOTE ------------------ */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-48); align-items: start; }
.timeline { display: grid; gap: var(--s-32); }
.tl-item { display: grid; grid-template-columns: 88px 1fr; gap: var(--s-24); }
.tl-item .yr { font-weight: 700; font-size: 20px; color: var(--brand-terracotta); }
.tl-item h3 { font-size: 18px; margin-bottom: 6px; }
.tl-item p { font-size: 15px; }
.pull-quote {
  background: var(--brand-midnight); color: var(--on-dark);
  border-radius: var(--r-24); padding: var(--s-48);
  font-weight: 600; font-size: 28px; line-height: 1.3; letter-spacing: -0.5px;
  position: relative; align-self: stretch; display: flex; flex-direction: column; justify-content: center;
}
.pull-quote .mark { font-size: 80px; line-height: 0; color: var(--brand-ochre); opacity: .5; height: 40px; }
.pull-quote cite { display: block; margin-top: var(--s-24); font-size: 15px; font-weight: 400; font-style: normal; color: rgba(255,255,255,.7); }

/* City cards */
.city-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-24); }
.city-card { position: relative; overflow: hidden; border-radius: var(--r-24); padding: var(--s-32); min-height: 240px; display: flex; flex-direction: column; }
.city-card .zellige-accent { width: 200px; height: 200px; opacity: .12; top: -40px; right: -40px; }
.city-card h3 { font-size: 28px; margin-bottom: var(--s-8); position: relative; z-index: 1; }
.city-card .meta { font-size: 14px; position: relative; z-index: 1; margin-top: auto; }
.city-card .role { font-size: 15px; position: relative; z-index: 1; margin-bottom: var(--s-24); }

/* Values */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-24); }
.value {
  background: var(--surface-card); border-radius: var(--r-16); padding: var(--s-24);
  border: 1px solid var(--hairline);
}
.value .vicon { width: 44px; height: 44px; border-radius: var(--r-12); background: var(--brand-terracotta); color: #fff; display: inline-flex; align-items: center; justify-content: center; margin-bottom: var(--s-16); }
.value h3 { font-size: 18px; margin-bottom: var(--s-8); }
.value p { font-size: 14px; }

/* Team grid */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-24); }
.member { background: var(--surface-card); border-radius: var(--r-16); overflow: hidden; border: 1px solid var(--hairline); }
.member img { width: 100%; height: 260px; object-fit: cover; }
.member .info { padding: var(--s-24); }
.member .info h3 { font-size: 18px; }
.member .info .role { font-size: 14px; color: var(--brand-terracotta); font-weight: 600; margin-top: 4px; }
.member .info .city { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* --------------------- SERVICES: TABLE / FAQ -------------------- */
.compare {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--canvas); border-radius: var(--r-16); overflow: hidden;
  border: 1px solid var(--hairline);
}
.compare th, .compare td { padding: var(--s-16) var(--s-24); text-align: left; font-size: 15px; border-bottom: 1px solid var(--hairline); }
.compare thead th { font-size: 13px; letter-spacing: .5px; color: var(--muted); font-weight: 600; }
.compare thead th.feat { background: var(--brand-midnight); color: var(--on-dark); }
.compare tbody td.feat { background: rgba(10,26,42,.04); font-weight: 600; color: var(--ink); }
.compare td.rowlabel { font-weight: 600; color: var(--ink); }
.compare tr:last-child td { border-bottom: none; }
.compare .yes { color: var(--brand-sage); font-weight: 700; }
.compare .no { color: var(--muted); }
.compare tbody tr:last-child td { border-bottom: none; }

.faq { max-width: 820px; margin-inline: auto; display: grid; gap: var(--s-12); }
.faq details {
  background: var(--surface-card); border-radius: var(--r-12); border: 1px solid var(--hairline);
  overflow: hidden;
}
.faq summary {
  list-style: none; cursor: pointer; padding: var(--s-24);
  font-weight: 600; font-size: 17px; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-16);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; color: var(--brand-terracotta); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 var(--s-24) var(--s-24); font-size: 15px; color: var(--body); }
.faq summary:focus-visible { outline: 3px solid var(--brand-ochre); outline-offset: -3px; }

/* --------------------- PORTFOLIO: FILTERS ----------------------- */
.filter-tabs { display: flex; flex-wrap: wrap; gap: var(--s-12); justify-content: center; margin-bottom: var(--s-48); }
.filter-tabs input { position: absolute; opacity: 0; pointer-events: none; }
.filter-tabs label {
  padding: 10px 20px; border-radius: var(--r-full); border: 1px solid var(--hairline);
  font-weight: 600; font-size: 14px; color: var(--body); cursor: pointer; transition: .2s; background: var(--canvas);
}
.filter-tabs label:hover { border-color: var(--brand-terracotta); color: var(--ink); }
.filter-tabs input:focus-visible + label { outline: 3px solid var(--brand-ochre); outline-offset: 2px; }
#f-all:checked ~ .filter-tabs label[for="f-all"],
#f-seo:checked ~ .filter-tabs label[for="f-seo"],
#f-paid:checked ~ .filter-tabs label[for="f-paid"],
#f-brand:checked ~ .filter-tabs label[for="f-brand"],
#f-social:checked ~ .filter-tabs label[for="f-social"] {
  background: var(--ink); color: #fff; border-color: var(--ink);
}
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-24); }
/* Filtering logic */
#f-seo:checked ~ .case-grid .case:not([data-cat="seo"]),
#f-paid:checked ~ .case-grid .case:not([data-cat="paid"]),
#f-brand:checked ~ .case-grid .case:not([data-cat="brand"]),
#f-social:checked ~ .case-grid .case:not([data-cat="social"]) { display: none; }

.case { border-radius: var(--r-24); overflow: hidden; display: flex; flex-direction: column; background: var(--surface-card); border: 1px solid var(--hairline); }
.case .case-logo { height: 168px; background: #ffffff; display: flex; align-items: center; justify-content: center; padding: var(--s-32); border-bottom: 1px solid var(--hairline); }
.case .case-logo img, .case .case-logo svg { max-height: 100%; max-width: 80%; width: auto; height: auto; object-fit: contain; }
.case .case-body { padding: var(--s-24); display: flex; flex-direction: column; flex: 1; }
.case .industry { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.case .badge {
  display: inline-block; align-self: flex-start; margin-top: var(--s-12);
  padding: 4px 12px; border-radius: var(--r-full); font-size: 12px; font-weight: 600;
  background: var(--brand-ochre); color: var(--ink);
}
.case h3 { font-size: 22px; margin: var(--s-16) 0 var(--s-12); letter-spacing: -0.5px; }
.case p { font-size: 14px; }
.case .accent-bar { height: 6px; }

/* --------------------- CONTACT: FORM ---------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: var(--s-48); align-items: start; }
.form-card { background: var(--surface-card); border-radius: var(--r-24); padding: var(--s-48); border: 1px solid var(--hairline); }
.field { margin-bottom: var(--s-24); }
.field label { display: block; font-weight: 600; font-size: 14px; color: var(--ink); margin-bottom: var(--s-8); }
.field label .req { color: var(--brand-terracotta); }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--ink);
  padding: 12px 14px; border-radius: var(--r-8); border: 1px solid var(--hairline);
  background: var(--canvas); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand-terracotta);
  box-shadow: 0 0 0 3px rgba(201,74,43,.15);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-16); }

.contact-info { display: grid; gap: var(--s-32); }
.info-block h3 { font-size: 18px; margin-bottom: var(--s-12); }
.info-block a, .info-block p { font-size: 15px; color: var(--body); }
.info-block a:hover { color: var(--brand-terracotta); }
.why-list { display: grid; gap: var(--s-16); }
.why-list li { display: flex; gap: var(--s-12); align-items: flex-start; font-size: 15px; }
.why-list .why-ic { color: var(--brand-sage); flex-shrink: 0; margin-top: 2px; }

.office-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-24); }
.office { background: var(--surface-card); border-radius: var(--r-16); padding: var(--s-32); border: 1px solid var(--hairline); }
.office h3 { font-size: 20px; margin-bottom: var(--s-16); }
.office .line { display: flex; gap: var(--s-12); font-size: 14px; margin-bottom: var(--s-12); color: var(--body); }
.office .line svg { flex-shrink: 0; color: var(--brand-terracotta); margin-top: 2px; }

.qa-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-32); }
.qa h3 { font-size: 17px; margin-bottom: var(--s-8); }
.qa p { font-size: 15px; }

/* --------------------- PAGE HERO (inner pages) ------------------ */
.page-hero { padding-block: 72px 48px; position: relative; overflow: hidden; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { max-width: 900px; margin-bottom: var(--s-24); }
.page-hero p { max-width: 620px; font-size: 19px; }
.hero-split { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--s-48); align-items: end; }

/* --------------------- SEO LANDING PAGES ------------------------ */
.crumbs { font-size: 13px; color: var(--muted); padding-top: var(--s-24); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand-terracotta); }
.crumbs span[aria-current] { color: var(--ink); font-weight: 600; }
.answer-box {
  background: var(--surface-card); border-left: 4px solid var(--brand-terracotta);
  border-radius: 0 var(--r-12) var(--r-12) 0; padding: var(--s-24); margin: var(--s-32) 0;
}
.answer-box p { font-size: 17px; color: var(--ink); margin: 0; }
.prose-section { max-width: 840px; }
.prose-section h2 { margin-top: var(--s-48); margin-bottom: var(--s-16); }
.prose-section h3 { margin-top: var(--s-32); margin-bottom: var(--s-8); font-size: 20px; }
.prose-section p { margin-bottom: var(--s-16); }
.prose-section ul.checks { margin: var(--s-16) 0 var(--s-24); display: grid; gap: var(--s-12); }
.prose-section ul.checks li { padding-left: 28px; position: relative; }
.prose-section ul.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--brand-sage); font-weight: 700; }
.cities-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-24); }
.city-link { display: block; background: var(--surface-card); border: 1px solid var(--hairline); border-radius: var(--r-16); padding: var(--s-32); transition: transform .2s ease, border-color .2s ease; }
.city-link:hover { border-color: var(--brand-terracotta); transform: translateY(-2px); }
.city-link h3 { font-size: 22px; margin-bottom: var(--s-8); }
.city-link p { font-size: 14px; color: var(--body); }
.city-link .go { color: var(--brand-terracotta); font-weight: 600; font-size: 14px; margin-top: var(--s-16); display: inline-block; }
.local-links { display: flex; flex-wrap: wrap; gap: var(--s-12); margin-top: var(--s-24); }
.local-links a { font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: var(--r-full); background: var(--surface-card); border: 1px solid var(--hairline); color: var(--ink); transition: .2s; }
.local-links a:hover { border-color: var(--brand-terracotta); color: var(--brand-terracotta); }
@media (max-width: 760px) { .cities-grid { grid-template-columns: 1fr; } }

/* ============================ RESPONSIVE ======================== */
@media (max-width: 980px) {
  :root { --section-pad: 72px; }
  .display-xl { font-size: 56px; letter-spacing: -2px; }
  .display-lg { font-size: 44px; letter-spacing: -1.5px; }
  .display-md { font-size: 34px; }

  .hero-grid { grid-template-columns: 1fr; gap: var(--s-48); }
  .hero-split { grid-template-columns: 1fr; gap: var(--s-24); align-items: start; }
  .card-grid, .steps, .tgrid, .city-grid, .team-grid, .case-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: var(--s-48) var(--s-32); }
  .story-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .office-grid { grid-template-columns: 1fr; }
  .qa-grid { grid-template-columns: 1fr; }
  .footer-grid { gap: var(--s-32); }
  .stat-card:nth-child(2) { margin-left: 0; }

  /* Mobile nav */
  .nav-burger { display: inline-flex; }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--canvas); border-bottom: 1px solid var(--hairline);
    padding: var(--s-16) var(--s-24);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    box-shadow: 0 12px 24px rgba(0,0,0,.06);
  }
  .nav-links a { width: 100%; padding: var(--s-16) 0; border-bottom: 1px solid var(--hairline); }
  .nav-links a[aria-current="page"]::after { display: none; }
  .nav-toggle:checked ~ .nav-links { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-right .btn { display: none; }
}

@media (max-width: 620px) {
  :root { --section-pad: 56px; }
  .display-xl { font-size: 42px; letter-spacing: -1.5px; }
  .display-lg { font-size: 36px; }
  .display-md { font-size: 28px; }
  .display-sm { font-size: 24px; }
  .card-grid, .card-grid.two, .steps, .tgrid, .city-grid, .team-grid, .case-grid, .value-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .form-card { padding: var(--s-24); }
  .pull-quote { padding: var(--s-24); font-size: 22px; }
  .big-stat .num { font-size: 44px; }
  .container { padding-inline: var(--s-16); }
  .compare-wrap { overflow-x: auto; }
  .compare { min-width: 560px; }
}

/* ===================== WordPress theme adjustments ===================== */
.brand-v { width: 26px; height: 24px; margin-right: 8px; display: inline-block; vertical-align: middle; }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { width: auto; height: 40px; }
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a { color: var(--ink); }
.nav-links .current-menu-item > a::after,
.nav-links .current_page_item > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--brand-terracotta); border-radius: 2px; }
.nav-links li { position: relative; list-style: none; }
.admin-bar .nav-wrap { top: 32px; }
.prose-section h2 a, .card-grid a { color: inherit; }
.pagination, .nav-links.posts-navigation { display: flex; gap: 8px; }
.page-numbers { padding: 8px 14px; border: 1px solid var(--hairline); border-radius: 9999px; font-weight: 600; font-size: 14px; }
.page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ===================== WhatsApp floating button ===================== */
.wa-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 9990;
  display: inline-flex; align-items: center; gap: 8px;
  height: 54px; padding: 0 18px 0 14px;
  background: #25D366; color: #fff; border-radius: 9999px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .22);
  text-decoration: none; transition: transform .15s ease, box-shadow .2s ease;
}
.wa-fab:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 0, 0, .28); color: #fff; }
.wa-fab:focus-visible { outline: 3px solid var(--brand-ochre); outline-offset: 3px; }
.wa-fab svg { flex-shrink: 0; }
.wa-fab-label { font-weight: 600; font-size: 14px; line-height: 1; }
.admin-bar .wa-fab { bottom: 20px; }
@media (max-width: 600px) {
  .wa-fab { right: 14px; bottom: 14px; height: 50px; width: 50px; padding: 0; justify-content: center; border-radius: 50%; }
  .wa-fab-label { display: none; }
}

/* ===================== Mobile menu polish (override) ===================== */
@media (max-width: 980px) {
  .nav-links { padding: 6px 24px 18px; gap: 0; }
  .nav-links li { width: 100%; list-style: none; }
  .nav-links li a {
    display: block; width: 100%;
    padding: 16px 2px; font-size: 17px; line-height: 1.2;
    border-bottom: 1px solid var(--hairline);
  }
  .nav-links li:last-child a { border-bottom: none; }
  /* kill the desktop underline accent inside the mobile panel */
  .nav-links .current-menu-item > a::after,
  .nav-links .current_page_item > a::after,
  .nav-links a[aria-current="page"]::after { display: none !important; }
  .nav-links .current-menu-item > a,
  .nav-links .current_page_item > a { color: var(--brand-terracotta); }
}

/* ============ Mobile menu — final spacing + current-page underline ============ */
@media (max-width: 980px) {
  .nav-links { padding: 10px 24px 16px; gap: 0; }
  .nav-links li { width: 100%; list-style: none; border: 0 !important; }
  .nav-links li a {
    display: block; width: 100%;
    padding: 11px 2px; margin: 0;
    font-size: 17px; line-height: 1.25; color: var(--body);
    border: 0 !important; text-decoration: none;
  }
  .nav-links li a::after { display: none !important; }
  .nav-links .current-menu-item > a,
  .nav-links .current_page_item > a {
    color: var(--brand-terracotta) !important;
    text-decoration: underline;
    text-decoration-color: var(--brand-terracotta);
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
  }
}
/* Desktop current-page: neat brown underline under the text only */
@media (min-width: 981px) {
  .nav-links .current-menu-item > a::after,
  .nav-links .current_page_item > a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
    height: 2px; background: var(--brand-terracotta); border-radius: 2px;
  }
  .nav-links li { position: relative; }
}

/* ===================== Team grid ===================== */
.member .member-photo { width: 100%; height: 260px; object-fit: cover; display: block; background: var(--surface-card); }
.member .member-ph { width: 100%; height: 260px; display: flex; align-items: center; justify-content: center; background: var(--brand-sage); color: #fff; font-weight: 700; font-size: 40px; }

/* Hamburger morphs into an X when the mobile menu is open */
@media (max-width: 980px) {
  .nav-burger span { transition: transform .2s ease, opacity .2s ease; transform-origin: center; }
  .nav-toggle:checked ~ .nav-right .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-right .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-right .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
