/* ===== AVDA — Design tokens ===== */
:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.83rem + 0.2vw, 0.9375rem);
  --text-base: clamp(1rem, 0.97rem + 0.18vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.25rem + 1vw, 2.125rem);
  --text-2xl: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  --text-3xl: clamp(2.5rem, 1.6rem + 3.4vw, 4.25rem);

  /* Spacing */
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;

  /* Brand palette — anthracite/black, grey, white, AVDA red accent */
  --red: #d8232a;
  --red-hover: #b71d23;
  --red-soft: rgba(216,35,42,0.12);

  /* Radius / shadow / transitions */
  --radius-sm: 0.375rem; --radius-md: 0.625rem; --radius-lg: 1rem; --radius-full: 9999px;
  --transition: 200ms cubic-bezier(0.16,1,0.3,1);

  --content: 1200px;
  --content-narrow: 760px;

  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Manrope', system-ui, sans-serif;
}

/* Light (default) */
:root, [data-theme="light"] {
  --bg: #ffffff;
  --surface: #f6f7f8;
  --surface-2: #eef0f2;
  --border: #e2e5e8;
  --text: #15181c;
  --text-muted: #5a626b;
  --text-faint: #98a0a8;
  --text-inverse: #ffffff;
  --hero-overlay: linear-gradient(105deg, rgba(15,17,20,0.94) 0%, rgba(15,17,20,0.78) 48%, rgba(15,17,20,0.32) 100%);
  --shadow-sm: 0 1px 2px rgba(15,17,20,0.06);
  --shadow-md: 0 6px 22px rgba(15,17,20,0.09);
  --shadow-lg: 0 20px 48px rgba(15,17,20,0.14);
}

/* Dark */
[data-theme="dark"] {
  --bg: #0e1013;
  --surface: #16191e;
  --surface-2: #1d2127;
  --border: #2a2f37;
  --text: #e7eaee;
  --text-muted: #9aa2ac;
  --text-faint: #646c76;
  --text-inverse: #0e1013;
  --hero-overlay: linear-gradient(105deg, rgba(8,9,11,0.95) 0%, rgba(8,9,11,0.82) 48%, rgba(8,9,11,0.4) 100%);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 6px 22px rgba(0,0,0,0.45);
  --shadow-lg: 0 20px 48px rgba(0,0,0,0.6);
}

/* ===== Base ===== */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; scroll-behavior: smooth; scroll-padding-top: 84px;
}
body {
  min-height: 100dvh; line-height: 1.6; font-family: var(--font-body);
  font-size: var(--text-base); color: var(--text); background: var(--bg);
  overflow-x: hidden;
}
img,picture,svg { display: block; max-width: 100%; height: auto; }
ul[role="list"] { list-style: none; }
input,button,textarea,select { font: inherit; color: inherit; }
h1,h2,h3,h4 { text-wrap: balance; line-height: 1.12; letter-spacing: -0.02em; font-family: var(--font-display); font-weight: 800; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: none; }
::selection { background: var(--red-soft); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: var(--radius-sm); }
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

a,button { transition: color var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition); }

/* ===== Layout ===== */
.wrap { width: min(100% - 2.5rem, var(--content)); margin-inline: auto; }
.section { padding-block: clamp(var(--space-16), 9vw, var(--space-32)); }
.section--tight { padding-block: clamp(var(--space-12), 6vw, var(--space-20)); }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--red); margin-bottom: var(--space-4);
}
.eyebrow::before { content:""; width: 22px; height: 2px; background: var(--red); display:inline-block; }
.section-head { max-width: 640px; margin-bottom: var(--space-12); }
.section-head h2 { font-size: var(--text-2xl); }
.section-head p { color: var(--text-muted); margin-top: var(--space-4); font-size: var(--text-lg); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: 0.8rem 1.5rem; border-radius: var(--radius-md); font-size: var(--text-sm);
  font-weight: 700; letter-spacing: 0.01em; border: 1.5px solid transparent;
}
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-hover); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(216,35,42,0.32); }
.btn--ghost { border-color: var(--border); color: var(--text); background: var(--bg); }
.btn--ghost:hover { border-color: var(--text); transform: translateY(-2px); }
.btn--light { background: #fff; color: #15181c; }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--outline-light { border-color: rgba(255,255,255,0.4); color:#fff; }
.btn--outline-light:hover { background: rgba(255,255,255,0.1); border-color:#fff; }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px); border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.header--scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: flex-start; gap: var(--space-5); min-height: 92px; padding-block: 0.75rem; }
.brand { display: flex; align-items: center; justify-content: flex-end; gap: var(--space-3); color: var(--text); margin-left: auto; flex: 0 0 auto; }
.brand .logo { height: 66px; width: auto; object-fit: contain; }
.footer .brand .logo { height: 48px; filter: brightness(0) invert(1); opacity: 0.94; }
.brand small { display:block; font-size: 10px; letter-spacing: 0.22em; color: var(--text-muted); text-transform: uppercase; font-weight:600; margin-top:1px; }
.nav-links { display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 0.65rem; list-style: none; flex: 1 1 auto; min-width: 0; }
.nav-links li { display:flex; }
.nav-links a {
  display:inline-flex; align-items:center; justify-content:center; text-align:center;
  min-height: 42px; min-width: 96px; padding: 0.55rem 0.9rem;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface) 86%, var(--bg) 14%);
  color: var(--text-muted); font-size: 0.78rem; line-height: 1.15; font-weight: 800;
  box-shadow: var(--shadow-sm);
}
.nav-links a:hover {
  color: var(--text); border-color: color-mix(in srgb, var(--red) 45%, var(--border) 55%);
  background: var(--bg); transform: translateY(-1px);
}
.nav-links a[aria-current="page"] {
  color:#fff; background: var(--red); border-color: var(--red); box-shadow: 0 8px 20px rgba(216,35,42,0.18);
}
.nav-actions { display: flex; align-items: center; justify-content:center; gap: var(--space-3); flex: 0 0 auto; }
.nav-phone {
  display:inline-flex; align-items:center; justify-content:center; min-height:42px; padding:0.55rem 0.9rem;
  border:1px solid var(--border); border-radius: var(--radius-md);
  background: var(--bg); font-size: 0.82rem; font-weight: 900; color: var(--text); white-space: nowrap;
}
.nav-phone:hover { color: var(--red); border-color: var(--red); }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-md);
  color: var(--text-muted); border: 1px solid var(--border);
}
.icon-btn:hover { color: var(--text); border-color: var(--text); }
.menu-toggle { display: none; }

/* ===== Hero ===== */
.hero { position: relative; isolation: isolate; color: #fff; overflow: hidden; }
.hero::before {
  content:""; position:absolute; inset:0; z-index:-2;
  background: url('img/hero.webp') center/cover no-repeat;
}
.hero::after { content:""; position:absolute; inset:0; z-index:-1; background: var(--hero-overlay); }
[data-theme="light"] .hero::after { background: linear-gradient(105deg, rgba(15,17,20,0.94) 0%, rgba(15,17,20,0.78) 48%, rgba(15,17,20,0.34) 100%); }
.hero-inner { padding-block: clamp(var(--space-12), 8vw, var(--space-24)); max-width: 760px; }
.hero .eyebrow { color: #ff5057; }
.hero .eyebrow::before { background: #ff5057; }
.hero h1 { font-size: clamp(2.35rem, 4.6vw, 3.65rem); color:#fff; }
.hero h1 .accent { color: var(--red); }
.hero .lede { font-size: var(--text-lg); color: rgba(255,255,255,0.82); margin-top: var(--space-6); max-width: 620px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.hero-trust { display: flex; flex-wrap: wrap; gap: var(--space-6) var(--space-8); margin-top: var(--space-12); padding-top: var(--space-8); border-top: 1px solid rgba(255,255,255,0.16); }
.hero-trust div strong { display:block; font-size: var(--text-xl); color:#fff; }
.hero-trust div span { font-size: var(--text-xs); color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.08em; }

/* ===== Partner strip ===== */
.partners { background: var(--surface); border-block: 1px solid var(--border); }
.partners .wrap { padding-block: var(--space-8); }
.partners p { text-align:center; font-size: var(--text-xs); letter-spacing:0.14em; text-transform:uppercase; color: var(--text-faint); margin-bottom: var(--space-5); font-weight:700; }
.partner-row { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap: var(--space-3) var(--space-4); }
.partner-chip {
  display:inline-flex; align-items:center; gap: var(--space-2); padding: 0.45rem 0.95rem;
  border: 1px solid var(--border); border-radius: var(--radius-full); font-size: var(--text-sm); font-weight:600; color: var(--text-muted);
  background: var(--bg);
}
.partner-chip .dot { width:7px; height:7px; border-radius:50%; background: var(--red); }
.partner-chip.is-flag { border-color: var(--red); color: var(--text); }

/* ===== Brand/logo wall ===== */
.brand-wall-section { background: var(--bg); border-block: 1px solid var(--border); }
.brand-wall-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.brand-wall-card {
  padding: var(--space-6); border:1px solid var(--border); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), var(--bg));
}
.brand-wall-card h3 { font-size: var(--text-base); margin-bottom: var(--space-4); }
.brand-logo-row { display:flex; flex-wrap:wrap; gap: var(--space-3); align-items:center; }
.brand-logo {
  display:inline-flex; align-items:center; min-height: 38px; padding: 0.35rem 0.85rem;
  border:1px solid color-mix(in srgb, var(--border) 82%, var(--text) 18%);
  border-radius: var(--radius-sm); background: var(--bg); color: var(--text);
  font-size: var(--text-xs); font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}
.brand-logo:nth-child(3n+1) { border-left: 3px solid var(--red); }

/* ===== Integration matrix ===== */
.matrix-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.matrix-card {
  padding: var(--space-7); border:1px solid var(--border); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), var(--bg));
}
.matrix-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--red) 30%, var(--border)); box-shadow: var(--shadow-sm); }
.matrix-brand {
  display:inline-flex; margin-bottom: var(--space-4); color: var(--red); font-size: var(--text-xs);
  font-weight:800; text-transform:uppercase; letter-spacing:0.08em;
}
.matrix-card h3 { font-size: var(--text-lg); }
.matrix-card p { margin-top: var(--space-3); color: var(--text-muted); font-size: var(--text-sm); }

/* ===== Services grid ===== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.svc-card {
  position: relative; display: flex; flex-direction: column; padding: var(--space-8);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden;
}
.svc-card::after { content:""; position:absolute; left:0; top:0; height:3px; width:0; background: var(--red); transition: width var(--transition); }
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--red) 30%, var(--border)); }
.svc-card:hover::after { width:100%; }
.svc-icon { width: 46px; height: 46px; display:grid; place-items:center; border-radius: var(--radius-md); background: var(--red-soft); color: var(--red); margin-bottom: var(--space-5); }
.svc-card h3 { font-size: var(--text-lg); }
.svc-card p { color: var(--text-muted); font-size: var(--text-sm); margin-top: var(--space-3); }
.svc-card ul { list-style:none; margin-top: var(--space-4); display:flex; flex-direction:column; gap: var(--space-2); }
.svc-card li { font-size: var(--text-sm); color: var(--text-muted); display:flex; gap: var(--space-2); align-items:flex-start; }
.svc-card li svg { flex-shrink:0; color: var(--red); margin-top:3px; }

/* ===== Feature (alternating) ===== */
.feature { display:grid; grid-template-columns: 1fr 1fr; gap: clamp(var(--space-8), 5vw, var(--space-20)); align-items:center; }
.feature + .feature { margin-top: clamp(var(--space-16), 9vw, var(--space-32)); }
.feature--rev .feature-media { order: 2; }
.feature-media img { width:100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); border:1px solid var(--border); }
.feature h2 { font-size: var(--text-xl); }
.feature p { color: var(--text-muted); margin-top: var(--space-4); }
.feature-list { list-style:none; margin-top: var(--space-6); display:flex; flex-direction:column; gap: var(--space-3); }
.feature-list li { display:flex; gap: var(--space-3); align-items:flex-start; font-size: var(--text-sm); }
.feature-list svg { flex-shrink:0; color: var(--red); margin-top:2px; }

/* ===== Partner highlight (Dahua / ACRE) ===== */
.highlight { background: var(--surface); }
.hl-grid { display:grid; grid-template-columns: repeat(2,1fr); gap: var(--space-6); }
.hl-card { padding: clamp(var(--space-8), 4vw, var(--space-12)); border-radius: var(--radius-lg); border:1px solid var(--border); background: var(--bg); }
.hl-card .badge { display:inline-flex; align-items:center; gap: var(--space-2); font-size: var(--text-xs); font-weight:800; letter-spacing:0.1em; text-transform:uppercase; color: var(--red); padding:0.35rem 0.75rem; border:1px solid var(--red); border-radius: var(--radius-full); margin-bottom: var(--space-5); }
.hl-card h3 { font-size: var(--text-lg); }
.hl-card p { color: var(--text-muted); font-size: var(--text-sm); margin-top: var(--space-3); }
.hl-tags { display:flex; flex-wrap:wrap; gap: var(--space-2); margin-top: var(--space-5); }
.hl-tags span { font-size: var(--text-xs); padding: 0.3rem 0.7rem; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text-muted); font-weight:600; }

/* ===== Sectors ===== */
.sectors-grid { display:grid; grid-template-columns: repeat(4,1fr); gap: var(--space-4); }
.sector {
  display:flex; flex-direction:column; gap: var(--space-3); padding: var(--space-6);
  border:1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface);
}
.sector:hover { border-color: color-mix(in srgb, var(--red) 35%, var(--border)); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.sector svg { color: var(--red); }
.sector strong { font-size: var(--text-base); }
.sector span { font-size: var(--text-sm); color: var(--text-muted); }
.refs-note { margin-top: var(--space-8); font-size: var(--text-sm); color: var(--text-faint); text-align:center; }

/* ===== Process ===== */
.steps { display:grid; grid-template-columns: repeat(4,1fr); gap: var(--space-6); counter-reset: step; }
.step { position:relative; padding-top: var(--space-8); }
.step::before { counter-increment: step; content: "0" counter(step); font-size: var(--text-xl); font-weight:800; color: var(--red); font-family: var(--font-display); }
.step h3 { font-size: var(--text-base); margin-top: var(--space-2); }
.step p { font-size: var(--text-sm); color: var(--text-muted); margin-top: var(--space-2); }

/* ===== FAQ ===== */
.faq { max-width: var(--content-narrow); margin-inline:auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { display:flex; justify-content:space-between; align-items:center; gap: var(--space-4); width:100%; text-align:left; padding: var(--space-5) 0; font-weight:700; font-size: var(--text-base); color: var(--text); }
.faq-q .chev { flex-shrink:0; transition: transform var(--transition); color: var(--red); }
.faq-q[aria-expanded="true"] .chev { transform: rotate(45deg); }
.faq-a { max-height:0; overflow:hidden; transition: max-height var(--transition); }
.faq-a p { color: var(--text-muted); font-size: var(--text-sm); padding-bottom: var(--space-5); }

/* ===== Contact ===== */
.contact { background: var(--surface); }
.contact-grid { display:grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(var(--space-8), 5vw, var(--space-20)); }
.contact-info h2 { font-size: var(--text-2xl); }
.contact-info > p { color: var(--text-muted); margin-top: var(--space-4); }
.contact-list { list-style:none; margin-top: var(--space-8); display:flex; flex-direction:column; gap: var(--space-5); }
.contact-list li { display:flex; gap: var(--space-4); align-items:flex-start; }
.contact-list .ci { width:42px; height:42px; flex-shrink:0; display:grid; place-items:center; border-radius: var(--radius-md); background: var(--red-soft); color: var(--red); }
.contact-list .lbl { font-size: var(--text-xs); text-transform:uppercase; letter-spacing:0.08em; color: var(--text-faint); font-weight:700; }
.contact-list a, .contact-list .val { font-size: var(--text-base); font-weight:600; color: var(--text); }
.contact-list a:hover { color: var(--red); }
.quick-cta { display:flex; gap: var(--space-3); margin-top: var(--space-8); flex-wrap:wrap; }
.quick-cta a { display:inline-flex; align-items:center; gap: var(--space-2); padding:0.6rem 1rem; border:1px solid var(--border); border-radius: var(--radius-md); font-size: var(--text-sm); font-weight:600; }
.quick-cta a:hover { border-color: var(--red); color: var(--red); }

.form-card { background: var(--bg); border:1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(var(--space-6), 3vw, var(--space-10)); box-shadow: var(--shadow-md); }
.form-note { font-size: var(--text-xs); color: var(--text-faint); margin-bottom: var(--space-6); display:flex; gap:var(--space-2); align-items:center; }
.form-note svg { color: var(--red); flex-shrink:0; }
.form-row { display:grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.field { margin-bottom: var(--space-4); }
.field label { display:block; font-size: var(--text-xs); font-weight:700; text-transform:uppercase; letter-spacing:0.06em; color: var(--text-muted); margin-bottom: var(--space-2); }
.field input, .field select, .field textarea {
  width:100%; padding: 0.7rem 0.85rem; border:1px solid var(--border); border-radius: var(--radius-md);
  background: var(--surface); color: var(--text); font-size: var(--text-sm);
}
.field input:focus, .field select:focus, .field textarea:focus { outline:none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.field textarea { resize: vertical; min-height: 110px; }
.form-status { margin-top: var(--space-4); font-size: var(--text-sm); padding: var(--space-4); border-radius: var(--radius-md); background: var(--red-soft); color: var(--text); display:none; }
.form-status.show { display:block; }

/* ===== Footer ===== */
.footer { background: #0b0d10; color: #c4cbd3; padding-block: var(--space-16) var(--space-8); }
.footer-grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-8); }
.footer .brand small { color: #7a828c; }
.footer h4 { font-size: var(--text-xs); text-transform:uppercase; letter-spacing:0.1em; color:#fff; margin-bottom: var(--space-4); }
.footer ul { list-style:none; display:flex; flex-direction:column; gap: var(--space-2); }
.footer a { font-size: var(--text-sm); color:#9aa2ac; }
.footer a:hover { color:#fff; }
.footer p.tag { font-size: var(--text-sm); color:#9aa2ac; margin-top: var(--space-4); max-width: 38ch; }
.footer-bottom { margin-top: var(--space-12); padding-top: var(--space-6); border-top:1px solid #1d2127; display:flex; justify-content:space-between; flex-wrap:wrap; gap: var(--space-4); font-size: var(--text-xs); color:#7a828c; }

/* Floating WhatsApp */
.fab { position:fixed; right: 20px; bottom: 20px; z-index: 90; width:54px; height:54px; border-radius:50%; background: var(--red); color:#fff; display:grid; place-items:center; box-shadow: var(--shadow-lg); }
.fab:hover { transform: scale(1.08); background: var(--red-hover); }

/* Reveal animation */
.reveal { opacity:0; transform: translateY(24px); transition: opacity .6s ease, transform .6s cubic-bezier(0.16,1,0.3,1); }
.reveal.in { opacity:1; transform:none; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .nav { min-height: 82px; }
  .brand .logo { height: 58px; }
  .nav-phone { display:none; }
  .nav-links a { min-width: 88px; padding-inline: 0.7rem; font-size: 0.74rem; }
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .sectors-grid { grid-template-columns: repeat(2,1fr); }
  .steps { grid-template-columns: repeat(2,1fr); }
  .hl-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .feature, .feature--rev { grid-template-columns: 1fr; }
  .feature--rev .feature-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .brand-wall-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 720px) {
  .nav { min-height: 76px; }
  .brand { margin-left:auto; }
  .brand .logo { height: 54px; }
  .nav-links { display:none; }
  .menu-toggle { display:inline-grid; }
  .nav-actions .desktop-cta { display:none; }
  .nav.is-open .nav-links {
    display:grid; position:absolute; top:76px; left:0; right:0; grid-template-columns: repeat(2, minmax(0,1fr)); gap:0.7rem;
    background: var(--bg); border-bottom:1px solid var(--border); padding: var(--space-4) 1.25rem; box-shadow: var(--shadow-md);
  }
  .nav.is-open .nav-links li { width:100%; }
  .nav.is-open .nav-links a { width:100%; min-height:46px; padding: var(--space-3); border-bottom:1px solid var(--border); }
  .form-row { grid-template-columns: 1fr; }
  .hero-trust { gap: var(--space-5) var(--space-6); }
}
@media (max-width: 520px) {
  .services-grid, .sectors-grid, .steps, .footer-grid, .brand-wall-grid { grid-template-columns: 1fr; }
}

/* ===== Interior page hero ===== */
.page-hero { background: var(--surface); border-bottom: 1px solid var(--border); }
.page-hero .wrap { padding-block: clamp(var(--space-12), 8vw, var(--space-20)) clamp(var(--space-10), 6vw, var(--space-16)); }
.page-hero h1 { font-size: var(--text-2xl); max-width: 18ch; }
.page-hero .lede { color: var(--text-muted); font-size: var(--text-lg); margin-top: var(--space-5); max-width: 60ch; }
.page-hero .hero-cta { margin-top: var(--space-8); }
.breadcrumb { display:flex; flex-wrap:wrap; gap: var(--space-2); align-items:center; font-size: var(--text-xs); color: var(--text-faint); margin-bottom: var(--space-6); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span { color: var(--text-faint); }

/* Long-form prose */
.prose { max-width: 72ch; }
.prose > * + * { margin-top: var(--space-5); }
.prose h2 { font-size: var(--text-xl); margin-top: var(--space-12); }
.prose h3 { font-size: var(--text-lg); margin-top: var(--space-8); }
.prose p, .prose li { color: var(--text-muted); }
.prose ul { list-style:none; display:flex; flex-direction:column; gap: var(--space-2); }
.prose ul li { position:relative; padding-left: var(--space-6); }
.prose ul li::before { content:""; position:absolute; left:0; top:0.6em; width:8px; height:8px; background: var(--red); border-radius:2px; }
.prose strong { color: var(--text); }

/* Two-column content + aside */
.content-grid { display:grid; grid-template-columns: 1fr 340px; gap: clamp(var(--space-8), 5vw, var(--space-16)); align-items:start; }
.aside-card { position: sticky; top: 96px; background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-8); }
.aside-card h3 { font-size: var(--text-lg); }
.aside-card p { font-size: var(--text-sm); color: var(--text-muted); margin-top: var(--space-3); }
.aside-card .btn { margin-top: var(--space-5); width:100%; }
.aside-card ul { list-style:none; margin-top: var(--space-5); display:flex; flex-direction:column; gap: var(--space-3); font-size: var(--text-sm); }
.aside-card ul li { display:flex; gap: var(--space-2); align-items:flex-start; }
.aside-card ul svg { color: var(--red); flex-shrink:0; margin-top:3px; }

/* Spec table */
.spec-table { border:1px solid var(--border); border-radius: var(--radius-lg); overflow:hidden; margin-top: var(--space-6); }
.spec-table table { width:100%; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align:left; padding: var(--space-4) var(--space-5); font-size: var(--text-sm); border-bottom:1px solid var(--border); }
.spec-table th { background: var(--surface); font-weight:700; color: var(--text); width: 38%; }
.spec-table td { color: var(--text-muted); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom:0; }

/* Brand/marque pills */
.brand-pills { display:flex; flex-wrap:wrap; gap: var(--space-2); margin-top: var(--space-6); }
.brand-pills span { font-size: var(--text-xs); padding: 0.35rem 0.8rem; border-radius: var(--radius-full); border:1px solid var(--border); background: var(--surface); color: var(--text-muted); font-weight:600; }

/* Related pages */
.related { background: var(--surface); }
.related-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: var(--space-5); }
.related-card { display:flex; flex-direction:column; gap: var(--space-2); padding: var(--space-6); background: var(--bg); border:1px solid var(--border); border-radius: var(--radius-lg); }
.related-card:hover { border-color: color-mix(in srgb, var(--red) 35%, var(--border)); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.related-card span.k { font-size: var(--text-xs); text-transform:uppercase; letter-spacing:0.08em; color: var(--red); font-weight:700; }
.related-card strong { font-size: var(--text-base); }
.related-card p { font-size: var(--text-sm); color: var(--text-muted); }
.related-card .more { font-size: var(--text-sm); font-weight:700; color: var(--red); margin-top: var(--space-2); }

/* CTA band */
.cta-band { background: #0e1013; color:#fff; }
[data-theme="dark"] .cta-band { background: var(--surface-2); border-block:1px solid var(--border); }
.cta-band .wrap { padding-block: clamp(var(--space-12), 7vw, var(--space-20)); text-align:center; }
.cta-band h2 { font-size: var(--text-2xl); color:#fff; }
.cta-band p { color: rgba(255,255,255,0.72); margin-top: var(--space-4); max-width: 56ch; margin-inline:auto; }
.cta-band .hero-cta { justify-content:center; margin-top: var(--space-8); }

/* Stat band */
.stats { display:grid; grid-template-columns: repeat(4,1fr); gap: var(--space-6); }
.stat { text-align:center; padding: var(--space-6); border:1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.stat strong { display:block; font-size: var(--text-2xl); color: var(--text); font-family: var(--font-display); }
.stat span { font-size: var(--text-sm); color: var(--text-muted); }

@media (max-width: 960px) {
  .content-grid { grid-template-columns: 1fr; }
  .aside-card { position: static; }
  .related-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2,1fr); }
  .matrix-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) { .stats, .matrix-grid { grid-template-columns: 1fr; } }
