/* ==========================================================================
   BuildIQ by Manek - main stylesheet
   Version: see VERSION file (semantic versioning MAJOR.MINOR.PATCH)
   Structure:
     1. Tokens (light + dark)      6. Hero carousel
     2. Base / reset               7. Sections & components
     3. Layout helpers             8. Page-specific blocks
     4. Header & navigation        9. Footer & floating buttons
     5. Buttons & dimension motif 10. Motion & reduced motion
   ========================================================================== */

/* 1. Tokens --------------------------------------------------------------- */
:root {
  /* Brand (from the BuildIQ card) */
  --navy: #0B1F4B;
  --navy-2: #122C66;
  --navy-3: #1A3A80;
  --gold: #C8A04A;
  --gold-2: #E3C57A;
  --blue: #1F4FD1;
  --blue-2: #2F6BF0;
  --steel: #8A94A8;

  /* Semantic (theme-dependent) */
  --bg: #FFFFFF;
  --surface: #F3F6FB;
  --surface-2: #E8EEF7;
  --text: #13203F;
  --muted: #56627E;
  --line: #D6DDEA;
  --heading: #0B1F4B;
  --link: #1F4FD1;
  --shadow: 0 18px 40px -24px rgba(11, 31, 75, .45);

  /* Type */
  --font-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.2rem + 2vw, 2.375rem);
  --step-4: clamp(2.125rem, 1.3rem + 3.4vw, 3.5rem);

  /* Space & shape */
  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 8vw, 7rem);
  --radius-s: 4px;
  --radius-m: 10px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #07142F;
    --surface: #0D1D42;
    --surface-2: #132652;
    --text: #DCE3F2;
    --muted: #9FACC8;
    --line: #22386A;
    --heading: #FFFFFF;
    --link: #8FB0FF;
    --shadow: 0 18px 40px -24px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #07142F;
  --surface: #0D1D42;
  --surface-2: #132652;
  --text: #DCE3F2;
  --muted: #9FACC8;
  --line: #22386A;
  --heading: #FFFFFF;
  --link: #8FB0FF;
  --shadow: 0 18px 40px -24px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
:root {
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
html { scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-stretch: 112%;
  color: var(--heading);
  line-height: 1.1;
  margin: 0 0 .6em;
  letter-spacing: -.01em;
}
h1 { font-size: var(--step-4); font-weight: 800; }
h2 { font-size: var(--step-3); font-weight: 800; }
h3 { font-size: var(--step-1); font-weight: 700; }
p { margin: 0 0 1em; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.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;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--gold); color: var(--navy); padding: .6rem 1rem; font-weight: 600;
}
.skip-link:focus { top: calc(1rem + env(safe-area-inset-top, 0px)); }

/* 3. Layout helpers -------------------------------------------------------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section-tint { background: var(--surface); }
.section-navy { background: var(--navy); color: #D5DDF0; }
.section-navy h2, .section-navy h3 { color: #fff; }
.lede { font-size: var(--step-1); color: var(--muted); max-width: 62ch; }
.section-navy .lede { color: #B9C4DE; }
.prose { max-width: 68ch; }
.grid-2 { display: grid; gap: clamp(2rem, 5vw, 4.5rem); grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head h2 { margin: 0 0 .75rem; }
.section-head p { margin: 0; color: var(--muted); font-size: var(--step-1); line-height: 1.55; }
.section-head .dim { margin-bottom: 1rem; }
.section-navy .section-head p { color: #B9C4DE; }

/* 4. Header & navigation --------------------------------------------------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 100;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(11, 31, 75, .5); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--heading); }
.logo-mark { width: 44px; height: 36px; flex: none; }
.logo-type { display: flex; flex-direction: column; line-height: 1; }
.logo-word { font-family: var(--font-display); font-stretch: 118%; font-weight: 800; font-size: 1.45rem; letter-spacing: -.01em; }
.logo-iq { color: var(--blue); margin-left: .18em; }
.logo-by { font-size: .72rem; color: var(--muted); margin-top: .25rem; letter-spacing: .04em; }
.logo-invert { color: #fff; }
.logo-invert .logo-iq { color: var(--blue-2); }
.logo-invert .logo-by { color: #9FACC8; }
.logo-invert .bar-dark { fill: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo .bar-dark { fill: #fff; } :root:not([data-theme="light"]) .logo-iq { color: var(--blue-2); } }
:root[data-theme="dark"] .logo .bar-dark { fill: #fff; }

.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav ul { list-style: none; display: flex; gap: .15rem; margin: 0; padding: 0; }
.site-nav a[data-nav-link] {
  display: block; padding: .5rem .7rem; color: var(--text); text-decoration: none;
  font-weight: 500; font-size: .95rem; position: relative;
}
.site-nav a[data-nav-link]::after {
  content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .2rem; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.site-nav a[data-nav-link]:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--heading); font-weight: 600; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: transparent; border-radius: var(--radius-s); cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 20px; height: 2px; background: var(--heading); margin: auto; position: relative; transition: transform .25s var(--ease), background .2s;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 1rem;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) calc(1.5rem + env(safe-area-inset-bottom, 0px));
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s var(--ease), visibility .2s;
  }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .site-nav ul { flex-direction: column; }
  .site-nav a[data-nav-link] { padding: .85rem 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .site-nav a[data-nav-link]::after { left: 0; right: auto; width: 32px; }
  .nav-call { text-align: center; }
}

/* 5. Buttons & the dimension-line motif ------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .75rem 1.35rem; border-radius: var(--radius-s);
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 42px; padding: .55rem 1rem; font-size: .92rem; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-2); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-3); }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-line { border-color: var(--heading); color: var(--heading); }
.btn-line:hover { background: var(--heading); color: var(--bg); }
.btn-wa { background: #1FA855; color: #fff; }
.btn-wa:hover { background: #178C46; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Drafting dimension line: |<------ label ------>|  */
.dim {
  --dim-color: var(--gold);
  display: flex; align-items: center; gap: .75rem;
  color: var(--dim-color); font-family: var(--font-display); font-stretch: 110%;
  font-weight: 600; font-size: .9rem; letter-spacing: .02em;
  margin: 0 0 1.1rem; max-width: 28rem;
}
.dim::before, .dim::after {
  content: ""; flex: 1; height: 1px; background: currentColor; min-width: 1.5rem;
}
.dim::before { border-left: 1px solid currentColor; height: 12px; background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat; }
.dim::after { border-right: 1px solid currentColor; height: 12px; background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat; }
.dim-short { width: fit-content; max-width: 100%; white-space: nowrap; }
.dim-short::before, .dim-short::after { flex: 0 0 2.5rem; }
.dim-blue { --dim-color: var(--blue); }
.section-navy .dim { --dim-color: var(--gold-2); }

/* 6. Hero carousel ------------------------------------------------------- */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; isolation: isolate; }
.hero-track { position: relative; min-height: clamp(560px, 86vh, 780px); }
.hero-slide {
  position: absolute; inset: 0; display: flex; align-items: center;
  opacity: 0; visibility: hidden; transition: opacity .9s var(--ease), visibility .9s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hero-slide > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  transform: scale(1.06); transition: transform 7s linear;
}
.hero-slide.is-active > img { transform: scale(1); }
.hero-slide::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 31, 75, .94) 0%, rgba(11, 31, 75, .82) 38%, rgba(11, 31, 75, .25) 75%, rgba(11, 31, 75, .15) 100%),
    linear-gradient(0deg, rgba(11, 31, 75, .6), transparent 40%);
}
/* blueprint grid overlay */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background-image:
    linear-gradient(rgba(227, 197, 122, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(227, 197, 122, .07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, #000 0%, #000 45%, transparent 80%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 45%, transparent 80%);
}
.hero-content { position: relative; z-index: 3; padding-block: 5rem 7rem; }
.hero-kicker { color: var(--gold-2); font-weight: 500; margin-bottom: 1.25rem; font-size: 1rem; }
.hero-title {
  color: #fff; font-size: clamp(2.3rem, 1.2rem + 4.6vw, 4.6rem); font-weight: 800; font-stretch: 115%;
  line-height: 1.02; max-width: 15ch; margin-bottom: .35em;
}
.hero-content .dim { max-width: min(34rem, 100%); }
.hero-sub { font-size: var(--step-1); color: #D5DDF0; max-width: 46ch; margin-bottom: 2rem; }

.hero-controls {
  position: absolute; z-index: 4; left: 0; right: 0; bottom: 2rem;
}
.hero-controls .wrap { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.car-dots { display: flex; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.car-dot {
  width: 36px; height: 36px; border: 0; background: transparent; cursor: pointer; padding: 0;
  display: grid; place-items: center;
}
.car-dot::before { content: ""; width: 28px; height: 3px; background: rgba(255, 255, 255, .35); transition: background .2s, width .3s var(--ease); }
.car-dot[aria-current="true"]::before { background: var(--gold); width: 36px; }
.car-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .45);
  background: rgba(11, 31, 75, .35); color: #fff; cursor: pointer; display: grid; place-items: center;
  transition: background .2s, border-color .2s;
}
.car-btn:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.car-btn svg { width: 18px; height: 18px; }
.car-count { font-family: var(--font-display); font-stretch: 110%; color: #C9D3EA; font-size: .95rem; min-width: 4.5ch; }

/* 7. Sections & components ------------------------------------------------ */
/* Promise strip under the hero */
.promise { background: var(--bg); border-bottom: 1px solid var(--line); }
.promise-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1rem 3rem; align-items: center; padding-block: 2.25rem; }
.promise-title { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: clamp(1.4rem, 1rem + 1.4vw, 2rem); color: var(--heading); margin: 0; line-height: 1.1; max-width: 22ch; }
.promise-list { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; color: var(--muted); }
.promise-list li { display: flex; align-items: center; gap: .5rem; }
.promise-list li::before { content: ""; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); flex: none; }

/* Service index: hairline list, not identical cards */
.svc-index { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: clamp(1.5rem, 3vw, 2.5rem); margin: 0; padding: 0; list-style: none; }
.svc-index li { border-top: 1px solid var(--line); }
.svc-item { display: grid; grid-template-columns: 44px 1fr; gap: .9rem; align-items: start; padding: 1.6rem .5rem 1.6rem 0; text-decoration: none; color: inherit; height: 100%; transition: background .2s, padding .25s var(--ease); }
.svc-item:hover { background: linear-gradient(90deg, var(--surface), transparent); padding-left: .5rem; }
.svc-item h3 { margin: 0 0 .3rem; font-size: 1.12rem; }
.svc-item p { margin: 0; color: var(--muted); font-size: .98rem; }
.icon { width: 44px; height: 44px; color: var(--blue); }
.icon path, .icon rect, .icon circle, .icon line, .icon polyline { vector-effect: non-scaling-stroke; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; }
.stat { padding: 1.5rem 1.5rem 1.5rem 0; border-left: 1px solid rgba(255, 255, 255, .14); padding-left: 1.5rem; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat dt { order: 2; color: #B9C4DE; font-size: .98rem; }
.stat dd { margin: 0 0 .35rem; font-family: var(--font-display); font-stretch: 118%; font-weight: 800; color: #fff; font-size: clamp(2.6rem, 1.5rem + 3vw, 3.8rem); line-height: 1; }
.stat dd small { font-size: .45em; color: var(--gold-2); font-weight: 700; margin-left: .15em; }
.stat { display: flex; flex-direction: column; }

/* Tick list (deliverables) */
.tick-list { list-style: none; margin: 0 0 1.75rem; padding: 0; display: grid; gap: .6rem; }
.tick-list li { display: grid; grid-template-columns: 22px 1fr; gap: .6rem; align-items: start; }
.tick-list li::before {
  content: ""; width: 14px; height: 8px; margin-top: .45rem;
  border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg);
}

/* Big quote band */
.quote-band { background: var(--surface); }
.quote-band blockquote { margin: 0; display: grid; gap: 1rem; }
.quote-band .q {
  font-family: var(--font-display); font-stretch: 115%; font-weight: 800;
  font-size: clamp(1.9rem, 1rem + 3.4vw, 3.4rem); line-height: 1.05; color: var(--heading); margin: 0; max-width: 20ch;
}
.quote-band .q-sub { color: var(--muted); font-size: var(--step-1); max-width: 50ch; }
.quote-pair { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.quote-pair .q-sub { margin: 0; }

/* Steps (a real sequence, so numbered) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 3.25rem 1.25rem 0 0; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  width: 2.3rem; height: 2.3rem; border-radius: 50%; border: 2px solid var(--gold);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; color: var(--heading); background: var(--bg);
  z-index: 1;
}
.steps li::after { content: ""; position: absolute; top: 1.15rem; left: 2.3rem; right: 0; height: 1px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.steps p { color: var(--muted); font-size: .98rem; margin: 0; }
.section-tint .steps li::before { background: var(--surface); }

/* Testimonials (fade carousel) */
.testi { position: relative; }
.testi-track { position: relative; min-height: 290px; }
.testi-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility .6s; }
.testi-slide.is-active { opacity: 1; visibility: visible; position: relative; }
.testi-slide blockquote { margin: 0; }
.testi-slide p { font-family: var(--font-display); font-stretch: 108%; font-weight: 600; font-size: clamp(1.35rem, 1rem + 1.3vw, 1.9rem); line-height: 1.3; color: #fff; max-width: 38ch; }
.testi-slide footer { color: var(--gold-2); font-weight: 500; }
.testi-slide footer span { display: block; color: #9FACC8; font-weight: 400; font-size: .95rem; }
.testi-controls { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; }

/* CTA */
.cta { background: var(--navy); color: #D5DDF0; position: relative; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; right: -8%; top: -40%; width: 55%; height: 180%;
  background: linear-gradient(135deg, transparent 0 46%, var(--gold) 46% 47.2%, transparent 47.2%);
  opacity: .9; pointer-events: none;
}
.cta-inner { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: center; padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.cta h2 { color: #fff; margin-bottom: .4rem; }
.cta .btn-row { justify-content: flex-end; }

/* Page hero (inner pages) */
.page-hero { background: var(--navy); color: #D5DDF0; position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(227, 197, 122, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(227, 197, 122, .07) 1px, transparent 1px);
  background-size: 48px 48px;
}
.page-hero .wrap { position: relative; z-index: 1; padding-block: clamp(3.5rem, 7vw, 6rem); }
.page-hero h1 { color: #fff; max-width: 18ch; font-stretch: 115%; }
.page-hero p { font-size: var(--step-1); max-width: 56ch; margin: 0; color: #C3CDE4; }
.crumbs { font-size: .9rem; color: #9FACC8; margin-bottom: 1.25rem; }
.crumbs a { color: #C3CDE4; }

/* 8. Page-specific blocks -------------------------------------------------- */
/* Services detail: every row is image | text, alternating sides */
.svc-list { display: grid; gap: clamp(3.5rem, 7vw, 6rem); }
.svc-detail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.svc-detail:nth-child(even) .svc-media { order: 2; }
.svc-media { margin: 0; border-radius: var(--radius-m); overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface); box-shadow: var(--shadow); }
.svc-media img { width: 100%; height: 100%; object-fit: cover; }
.svc-body { max-width: 34rem; }
.svc-body > p { color: var(--muted); }
.svc-detail-head { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; align-items: start; margin-bottom: 1rem; }
.svc-detail-head h2 { font-size: var(--step-2); margin: 0 0 .35rem; }
.svc-quote { font-family: var(--font-display); font-stretch: 110%; font-weight: 700; color: var(--blue); font-size: 1.1rem; margin: 0; }
.deliver-h { font-family: var(--font-body); font-size: .95rem; font-weight: 600; color: var(--heading); margin: 1.5rem 0 .75rem; }
.svc-body .tick-list { margin-bottom: 0; }
.svc-jump { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.svc-jump a { color: #fff; border: 1px solid rgba(255, 255, 255, .35); padding: .45rem .85rem; border-radius: 99px; text-decoration: none; font-size: .9rem; }
.svc-jump a:hover { border-color: var(--gold); color: var(--gold-2); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.25rem 3rem 1.25rem 0; position: relative;
  font-family: var(--font-display); font-stretch: 108%; font-weight: 700; font-size: 1.12rem; color: var(--heading);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .5rem; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg); transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { color: var(--muted); max-width: 70ch; padding-bottom: 1.25rem; margin: 0; }

/* About / founder */
.founder { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.founder-photo { position: relative; margin: 0; }
.founder-photo img { border-radius: var(--radius-m); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; box-shadow: var(--shadow); }
.founder-frame { position: relative; isolation: isolate; }
.founder-frame::before {
  content: ""; position: absolute; left: -14px; top: 24px; bottom: -14px; right: 24px;
  border: 2px solid var(--gold); border-radius: var(--radius-m); z-index: -1;
}
.founder-photo figcaption { margin-top: 1.25rem; }
.founder-photo figcaption strong { display: block; font-family: var(--font-display); font-stretch: 112%; font-size: 1.3rem; color: var(--heading); }
.founder-photo figcaption span { color: var(--muted); }
.founder-body h2 { margin-bottom: 1rem; }
.pull { border-left: 3px solid var(--gold); padding: .25rem 0 .25rem 1.25rem; margin: 2rem 0; font-family: var(--font-display); font-stretch: 110%; font-weight: 700; font-size: var(--step-2); color: var(--heading); line-height: 1.2; }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.values h3 { margin-bottom: .4rem; }
.values p { color: var(--muted); margin: 0; }
.section-navy .values p { color: #B9C4DE; }
.founder-mini { display: grid; grid-template-columns: 160px 1fr; gap: 2rem; align-items: center; }
.founder-mini img { border-radius: 50%; width: 160px; height: 160px; object-fit: cover; border: 3px solid var(--gold); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4rem); align-items: stretch; }
.contact-grid > div { display: flex; flex-direction: column; }
.contact-line { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; padding-block: 1.25rem; border-bottom: 1px solid var(--line); }
.contact-line:first-child { border-top: 1px solid var(--line); }
.contact-line .icon { width: 36px; height: 36px; }
.contact-line h2 { font-size: 1rem; font-family: var(--font-body); font-weight: 600; color: var(--muted); margin: 0 0 .25rem; }
.contact-line p, .contact-line address { margin: 0; font-size: 1.1rem; color: var(--heading); }
.contact-line a { color: var(--heading); font-weight: 600; }
.big-phone { font-family: var(--font-display); font-stretch: 115%; font-weight: 800; font-size: clamp(1.6rem, 1rem + 2vw, 2.2rem); text-decoration: none; }
.map-frame { flex: 1; min-height: 380px; border-radius: var(--radius-m); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-static {
  position: relative; width: 100%; height: 100%; display: grid; place-items: center; text-align: center; padding: 2rem;
  background:
    linear-gradient(rgba(31, 79, 209, .08) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(31, 79, 209, .08) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--surface);
}
.map-static .pin { width: 44px; height: 44px; color: var(--gold); margin: 0 auto .75rem; }
.map-static strong { display: block; color: var(--heading); font-family: var(--font-display); font-stretch: 110%; font-size: 1.15rem; margin-bottom: .35rem; }
.map-static p { color: var(--muted); max-width: 34ch; margin: 0 auto 1.25rem; }
.send-list { columns: 2; column-gap: 2rem; padding-left: 1.1rem; color: var(--muted); }
.send-list li { margin-bottom: .4rem; break-inside: avoid; }

/* 404 */
.nf { text-align: left; }
.nf .code { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: clamp(5rem, 3rem + 10vw, 10rem); color: var(--surface-2); line-height: 1; margin: 0; }

/* 9. Footer & floating buttons -------------------------------------------- */
.site-footer { background: #081634; color: #AAB6D2; padding-top: clamp(3rem, 6vw, 4.5rem); }
.site-footer a { color: #DCE3F2; text-decoration: none; }
.site-footer a:hover { color: var(--gold-2); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-brand p { max-width: 38ch; margin-top: 1.25rem; }
.footer-h { font-family: var(--font-body); font-size: .95rem; font-weight: 600; color: #fff; margin-bottom: 1rem; letter-spacing: .01em; }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-contact p { margin-bottom: .5rem; }
.footer-contact address { margin-top: 1rem; line-height: 1.55; }
.brand-strip { background: var(--navy); border-block: 1px solid rgba(200, 160, 74, .35); }
.brand-strip-inner { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem 0; padding-block: 1rem; }
.brand-strip span {
  color: #E6ECF8; font-size: .82rem; letter-spacing: .32em; text-transform: uppercase; padding-inline: 1.5rem;
}
.brand-strip span + span { border-left: 1px solid var(--gold); }
.footer-base { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.25rem calc(1.25rem + 64px); font-size: .88rem; }
.footer-base p { margin: 0; }
.footer-version { color: #6C7A9C; }

.fab {
  position: fixed; right: calc(1rem + env(safe-area-inset-right, 0px)); bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 90; display: flex; flex-direction: column; gap: .7rem;
}
.fab-btn {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45); transition: transform .2s var(--ease);
}
.fab-btn:hover { transform: translateY(-2px); }
.fab-btn svg { width: 28px; height: 28px; }
.fab-wa { background: #1FA855; }

/* 10. Motion ------------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .hero-slide > img { transform: none !important; }
}

/* SPA preview: only the routed page is shown */
.page[hidden] { display: none !important; }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1000px) {
  .svc-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1rem; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
  .steps li::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .grid-2, .quote-pair, .cta-inner, .founder, .contact-grid, .svc-detail { grid-template-columns: minmax(0, 1fr); }
  .svc-detail:nth-child(even) .svc-media { order: 0; }
  .svc-body { max-width: none; }
  .cta .btn-row { justify-content: flex-start; }
  .promise-inner { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; gap: 1.75rem; }
  .founder-photo { max-width: 420px; }
  .cta::before { opacity: .35; }
  .hero-slide::before { background: linear-gradient(0deg, rgba(11, 31, 75, .95) 10%, rgba(11, 31, 75, .75) 60%, rgba(11, 31, 75, .45)); }
}
@media (max-width: 560px) {
  :root { --header-h: 66px; }
  .logo-word { font-size: 1.25rem; }
  .logo-mark { width: 38px; height: 31px; }
  .svc-index { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-left: 0 !important; padding-left: 0 !important; border-top: 1px solid rgba(255, 255, 255, .14); }
  .stat:first-child { border-top: 0; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; }
  .brand-strip span { padding-inline: .9rem; letter-spacing: .2em; font-size: .72rem; }
  .founder-mini { grid-template-columns: 1fr; }
  .send-list { columns: 1; }
  .hero-content { padding-block: 3rem 7.5rem; }
  .hero-controls .wrap { padding-right: 64px; }
  .btn-row .btn { flex: 1 1 100%; }
  .testi-track { min-height: 360px; }
}

@media print {
  .site-header, .fab, .hero-controls, .cta::before { display: none !important; }
  .page[hidden] { display: block !important; }
}

/* Utilities (kept deliberately small) ------------------------------------- */
.mt-m { margin-top: 2rem; }
.mt-l { margin-top: 2.5rem; }
.mt-xl { margin-top: 3.5rem; }
.align-start { align-items: start; }
.btn .icon { width: 20px; height: 20px; color: currentColor; }

/* Carousel controls on light backgrounds */
.on-light .car-btn { border-color: var(--line); color: var(--heading); background: var(--bg); }
.on-light .car-btn:hover { border-color: var(--heading); background: var(--surface-2); }
.on-light .car-dot::before { background: var(--line); }
.on-light .car-dot[aria-current="true"]::before { background: var(--gold); }
.on-light .car-count { color: var(--muted); }
.on-light .testi-slide p { color: var(--heading); }
.on-light .testi-slide footer { color: var(--blue); }
.on-light .testi-slide footer span { color: var(--muted); }
.on-light .testi-slide blockquote { border-left: 3px solid var(--gold); padding-left: 1.5rem; }

/* WhatsApp brand icon */
.icon-wa { color: #1FA855; }
.footer-wa { display: inline-flex; align-items: center; gap: .5rem; }
.footer-wa .icon { width: 22px; height: 22px; color: #25D366; }
