/* Totalcare Hygiene Solution — site styles
   Layout concept: corporate grid on white / cool-grey bands; deep blue carries authority,
   teal marks every action. One bold moment per page (hero), everything else calm. */
:root {
  --navy: #003366;
  --navy-900: #00203f;
  --navy-700: #0a4378;
  --teal: #00a5a5;
  --teal-600: #008a8a;
  --teal-050: #e6f6f6;
  --ink: #0f2236;
  --ink-soft: #4a5b6e;
  --line: #dbe3ec;
  --mist: #f3f6f9;
  --white: #ffffff;
  --wa: #1fa855;
  --wa-dark: #178a45;
  --danger: #b42318;

  --font-display: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;

  --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.88rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.075rem);
  --step-1: clamp(1.18rem, 1.1rem + 0.35vw, 1.35rem);
  --step-2: clamp(1.4rem, 1.25rem + 0.7vw, 1.8rem);
  --step-3: clamp(1.75rem, 1.45rem + 1.4vw, 2.6rem);
  --step-4: clamp(2.1rem, 1.6rem + 2.4vw, 3.6rem);

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(0, 32, 63, .06), 0 8px 24px rgba(0, 32, 63, .08);
  --shadow-lg: 0 2px 4px rgba(0, 32, 63, .06), 0 20px 48px rgba(0, 32, 63, .14);
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --header-h: 76px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -0.015em; }
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; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 200; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 8vw, 112px); }
.section--mist { background: var(--mist); }
.section--navy { background: var(--navy); color: #dbe7f3; }
.section--navy h2, .section--navy h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: var(--step--1); font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--teal-600);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.section--navy .eyebrow { color: #5fd3d3; }
.section-head { display: grid; gap: 14px; max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.lead { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.6; max-width: 65ch; }
.section--navy .lead { color: #b9cde0; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--teal); --fg: #fff; --bd: var(--teal);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  background: var(--bg); color: var(--fg); border: 2px solid var(--bd);
  font-family: var(--font-display); font-weight: 700; font-size: .98rem; text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0, 51, 102, .18); }
.btn--primary:hover { --bg: var(--teal-600); --bd: var(--teal-600); }
.btn--navy { --bg: var(--navy); --bd: var(--navy); }
.btn--navy:hover { --bg: var(--navy-700); --bd: var(--navy-700); }
.btn--wa { --bg: var(--wa); --bd: var(--wa); }
.btn--wa:hover { --bg: var(--wa-dark); --bd: var(--wa-dark); }
.btn--ghost { --bg: transparent; --fg: var(--navy); --bd: var(--line); }
.btn--ghost:hover { --bd: var(--navy); }
.btn--light { --bg: transparent; --fg: #fff; --bd: rgba(255,255,255,.45); }
.btn--light:hover { --bd: #fff; --bg: rgba(255,255,255,.08); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 700; color: var(--navy); text-decoration: none; font-size: .95rem; }
.link-arrow svg { width: 17px; height: 17px; transition: transform .2s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Top bar + Header ---------- */
.topbar { background: var(--navy-900); color: #b9cde0; font-size: .85rem; }
.topbar .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-block: 8px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 7px; }
.topbar svg { width: 15px; height: 15px; color: #5fd3d3; }
.topbar-group { display: flex; flex-wrap: wrap; gap: 6px 22px; }

.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 100;
  background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: box-shadow .25s ease, border-color .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 32, 63, .08); border-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; flex: none; }
.brand-mark { width: 52px; height: 52px; flex: none; display: block; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.site-footer .brand-mark { width: 60px; height: 60px; background: #fff; border-radius: 50%; padding: 5px; }
.brand-text { display: grid; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.22rem; color: var(--navy); letter-spacing: -0.02em; }
.brand-sub { font-family: var(--font-display); font-weight: 600; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--teal-600); margin-top: 3px; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; list-style: none; gap: 2px; }
.main-nav a {
  display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none;
  font-family: var(--font-display); font-weight: 600; font-size: .93rem; color: var(--ink); position: relative;
}
.main-nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--teal); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--navy); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center;
  border: 1.5px solid var(--line); color: var(--navy); background: #fff; text-decoration: none; transition: all .2s ease;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { border-color: var(--navy); transform: translateY(-2px); }
.icon-btn--wa { color: var(--wa); }
.icon-btn--wa:hover { border-color: var(--wa); }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--line); cursor: pointer; }

.mobile-nav { display: none; }

@media (max-width: 1120px) {
  .main-nav, .header-actions .btn-quote-label { display: none; }
  .nav-toggle { display: inline-grid; }
  .header-actions { margin-left: auto; }
  .mobile-nav {
    display: block; position: fixed; inset: 0; z-index: 150; pointer-events: none;
  }
  .mobile-nav__scrim { position: absolute; inset: 0; background: rgba(0, 20, 40, .5); opacity: 0; transition: opacity .3s ease; }
  .mobile-nav__panel {
    position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 88vw); background: #fff;
    padding: calc(env(safe-area-inset-top, 0px) + 18px) 24px calc(env(safe-area-inset-bottom, 0px) + 24px);
    transform: translateX(100%); transition: transform .35s cubic-bezier(.2,.8,.2,1);
    display: flex; flex-direction: column; gap: 18px; overflow-y: auto;
  }
  .mobile-nav.is-open { pointer-events: auto; }
  .mobile-nav.is-open .mobile-nav__scrim { opacity: 1; }
  .mobile-nav.is-open .mobile-nav__panel { transform: none; }
  .mobile-nav__top { display: flex; justify-content: space-between; align-items: center; }
  .mobile-nav ul { list-style: none; display: grid; }
  .mobile-nav ul a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--navy); }
  .mobile-nav ul a[aria-current="page"] { color: var(--teal-600); }
  .mobile-nav .btn { width: 100%; }
  .mobile-nav__contact { font-size: .92rem; color: var(--ink-soft); display: grid; gap: 4px; margin-top: auto; }
}
@media (max-width: 560px) {
  .header-actions .btn--quote { display: none; }
  .header-actions { gap: 6px; }
  .icon-btn { width: 42px; height: 42px; }
  .brand-mark { width: 44px; height: 44px; }
  .brand-name { font-size: 1.08rem; }
  .brand-sub { font-size: .6rem; letter-spacing: .12em; }
  .topbar .topbar-hours { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden; isolation: isolate;
  background: var(--navy-900);
}
.hero__bg { position: absolute; inset: 0; z-index: -2; background: linear-gradient(120deg, #00264d, #003a73 55%, #00656e); }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(0, 28, 56, .94) 0%, rgba(0, 40, 80, .82) 45%, rgba(0, 51, 102, .35) 100%);
}
.hero .container { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(64px, 9vw, 120px); }
.hero h1 { color: #fff; max-width: 15ch; }
.hero h1 em { font-style: normal; color: #5fd3d3; }
.hero__copy { display: grid; gap: 22px; min-width: 0; }
.hero__sub { font-size: var(--step-1); color: #cfdeec; max-width: 54ch; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .9rem; color: #b9cde0; padding-top: 8px; }
.hero__trust span { display: inline-flex; gap: 8px; align-items: center; }
.hero__trust svg { width: 18px; height: 18px; color: #5fd3d3; }

.checklist-card {
  background: rgba(255, 255, 255, .97); color: var(--ink); border-radius: 18px; padding: 24px; box-shadow: var(--shadow-lg);
  display: grid; gap: 16px; min-width: 0; animation: float-in .9s .15s cubic-bezier(.2,.8,.2,1) both;
}
.checklist-card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.checklist-card__head strong { font-family: var(--font-display); color: var(--navy); font-size: 1.05rem; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; background: var(--teal-050); color: var(--teal-600); font-size: .78rem; font-weight: 700; font-family: var(--font-display); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); animation: pulse 2s infinite; }
.checklist { list-style: none; display: grid; gap: 2px; }
.checklist li { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.checklist li:last-child { border-bottom: 0; }
.tick { width: 24px; height: 24px; border-radius: 7px; background: var(--teal); color: #fff; display: grid; place-items: center; flex: none; }
.tick svg { width: 15px; height: 15px; }
.checklist li .area { margin-left: auto; color: var(--ink-soft); font-size: .8rem; }
.checklist-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 4px; font-size: .85rem; color: var(--ink-soft); }
.meter { flex: 1; height: 8px; border-radius: 8px; background: var(--mist); overflow: hidden; max-width: 160px; }
.meter span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--teal), #36c6c6); border-radius: inherit; animation: fill 1.6s .5s ease-out both; }

@keyframes float-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fill { from { width: 0; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(0,165,165,.5); } 50% { box-shadow: 0 0 0 5px rgba(0,165,165,0); } }
.hero__copy > * { animation: rise .7s cubic-bezier(.2,.8,.2,1) both; }
.hero__copy > *:nth-child(2) { animation-delay: .08s; }
.hero__copy > *:nth-child(3) { animation-delay: .16s; }
.hero__copy > *:nth-child(4) { animation-delay: .24s; }
.hero__copy > *:nth-child(5) { animation-delay: .32s; }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero::before { background: linear-gradient(180deg, rgba(0, 28, 56, .92), rgba(0, 40, 80, .85)); }
}

/* Page hero (inner pages) */
.page-hero { position: relative; background: var(--navy); color: #cfdeec; overflow: hidden; isolation: isolate; }
.page-hero::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(0,165,165,.45), rgba(0,165,165,0) 70%);
}
.page-hero .container { padding-block: clamp(56px, 7vw, 96px); display: grid; gap: 16px; }
.page-hero h1 { color: #fff; max-width: 20ch; }
.page-hero p { max-width: 62ch; font-size: var(--step-1); }
.breadcrumb { margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; font-size: .88rem; color: #9fb8d0; }
.breadcrumb a { color: #fff; text-decoration: none; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: #5f7d99; }

/* ---------- Intro ---------- */
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.intro__media { position: relative; }
.media-frame { border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg, var(--navy-700), var(--teal-600)); aspect-ratio: 4 / 3; max-width: 100%; position: relative; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(0,32,63,.25)); pointer-events: none; }
.reg-badge {
  position: absolute; left: clamp(12px, 3vw, -24px); bottom: -22px; background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg);
  padding: 14px 18px; display: flex; gap: 12px; align-items: center; max-width: calc(100% - 24px);
}
.reg-badge svg { width: 34px; height: 34px; color: var(--teal); flex: none; }
.reg-badge small { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; }
.reg-badge strong { font-family: var(--font-display); color: var(--navy); font-variant-numeric: tabular-nums; }
.intro__copy { display: grid; gap: 18px; min-width: 0; }
.intro__copy p { color: var(--ink-soft); }
.intro__points { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; margin-top: 4px; }
.intro__points li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--ink); font-size: .96rem; }
.intro__points svg { width: 20px; height: 20px; color: var(--teal); flex: none; margin-top: 3px; }
@media (max-width: 860px) { .intro { grid-template-columns: 1fr; } .intro__media { margin-bottom: 20px; } }
@media (max-width: 460px) { .intro__points { grid-template-columns: 1fr; } }

/* ---------- Feature icon grid (Why cleanliness matters) ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature { background: #fff; padding: clamp(24px, 3vw, 36px); display: grid; gap: 12px; align-content: start; transition: background-color .25s ease; }
.feature:hover { background: #fbfdfe; }
.feature:hover .icon-chip { background: var(--teal); color: #fff; transform: rotate(-6deg); }
.icon-chip { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--teal-050); color: var(--teal-600); transition: all .3s ease; }
.icon-chip svg { width: 26px; height: 26px; }
.feature p { color: var(--ink-soft); font-size: .97rem; }
@media (max-width: 860px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- Service cards ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.service-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card__img { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--navy-700), var(--teal-600)); overflow: hidden; max-width: 100%; }
.service-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.service-card:hover .service-card__img img { transform: scale(1.06); }
.service-card__icon { position: absolute; left: 20px; bottom: -24px; width: 52px; height: 52px; border-radius: 14px; background: var(--teal); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 18px rgba(0,165,165,.35); z-index: 1; }
.service-card__img-wrap { position: relative; }
.service-card__icon svg { width: 26px; height: 26px; }
.service-card__body { padding: 38px 22px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.service-card__body p { color: var(--ink-soft); font-size: .96rem; }
.mini-list { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.mini-list li { font-size: .8rem; font-weight: 600; padding: 4px 10px; background: var(--mist); color: var(--navy); border-radius: 999px; }
.service-card__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
@media (max-width: 980px) { .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .service-grid { grid-template-columns: 1fr; } }

/* ---------- Mission / Vision ---------- */
.mv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.mv-card { border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); display: grid; gap: 16px; align-content: start; position: relative; overflow: hidden; }
.mv-card--mission { background: var(--navy); color: #cfdeec; }
.mv-card--mission h3 { color: #fff; }
.mv-card--vision { background: var(--teal-050); color: var(--ink); border: 1px solid #c4e9e9; }
.mv-card .icon-chip { background: rgba(255,255,255,.1); color: #5fd3d3; }
.mv-card--vision .icon-chip { background: #fff; color: var(--teal-600); }
.mv-card blockquote { margin: 0; font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; line-height: 1.5; }
.mv-card--mission blockquote { color: #fff; }
.mv-card--vision blockquote { color: var(--navy); }
@media (max-width: 760px) { .mv { grid-template-columns: 1fr; } }

/* ---------- Why choose us ---------- */
.why-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.why-layout .section-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 32px); }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; list-style: none; }
.check-grid li { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius-sm); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #fff; font-weight: 600; font-family: var(--font-display); transition: background-color .25s ease, border-color .25s ease; }
.check-grid li:hover { background: rgba(0,165,165,.16); border-color: rgba(95,211,211,.5); }
.check-grid .tick { background: var(--teal); }
.section:not(.section--navy) .check-grid li { background: #fff; border-color: var(--line); color: var(--navy); }
.section:not(.section--navy) .check-grid li:hover { border-color: var(--teal); }
@media (max-width: 900px) { .why-layout { grid-template-columns: 1fr; } .why-layout .section-head { position: static; } }
@media (max-width: 560px) { .check-grid { grid-template-columns: 1fr; } }

.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: clamp(48px, 6vw, 72px); border-top: 1px solid rgba(255,255,255,.15); }
.stat { padding: 28px 22px 4px 0; display: grid; gap: 6px; }
.stat + .stat { padding-left: 22px; border-left: 1px solid rgba(255,255,255,.15); }
.stat svg { width: 30px; height: 30px; color: #5fd3d3; }
.stat strong { font-family: var(--font-display); font-size: var(--step-2); color: #fff; line-height: 1.15; }
.stat span { color: #b9cde0; font-size: .92rem; }
.section:not(.section--navy) .stat-row { border-color: var(--line); }
.section:not(.section--navy) .stat + .stat { border-color: var(--line); }
.section:not(.section--navy) .stat strong { color: var(--navy); }
.section:not(.section--navy) .stat span { color: var(--ink-soft); }
.section:not(.section--navy) .stat svg { color: var(--teal); }
@media (max-width: 860px) { .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat:nth-child(3) { border-left: 0; padding-left: 0; } }
@media (max-width: 420px) { .stat-row { grid-template-columns: 1fr; } .stat + .stat { border-left: 0; padding-left: 0; } }

/* ---------- Industries ---------- */
.industry-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.industry { display: flex; align-items: center; gap: 14px; padding: 20px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.industry:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--teal); }
.industry .icon-chip { width: 46px; height: 46px; border-radius: 12px; flex: none; }
.industry .icon-chip svg { width: 22px; height: 22px; }
.industry h3 { font-size: 1rem; }
@media (max-width: 980px) { .industry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .industry-grid { grid-template-columns: 1fr; } }

/* ---------- Partnerships ---------- */
.partner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); border-radius: 20px; overflow: hidden; background: var(--navy); color: #cfdeec; box-shadow: var(--shadow-lg); }
.partner__copy { padding: clamp(32px, 5vw, 60px); display: grid; gap: 20px; align-content: center; }
.partner__copy h2 { color: #fff; }
.partner__copy .eyebrow { color: #5fd3d3; }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; }
.doc-badge { display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px; border-radius: 10px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: .92rem; }
.doc-badge svg { width: 18px; height: 18px; color: #5fd3d3; }
.partner__media { position: relative; min-height: 280px; background: linear-gradient(135deg, var(--navy-700), var(--teal-600)); }
.partner__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.partner__media::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy), rgba(0,51,102,0) 45%); z-index: 1; }
.partner__regcard { position: absolute; right: 20px; bottom: 20px; z-index: 2; background: #fff; color: var(--ink); padding: 14px 18px; border-radius: 12px; font-size: .85rem; box-shadow: var(--shadow-lg); max-width: calc(100% - 40px); }
.partner__regcard strong { display: block; font-family: var(--font-display); color: var(--navy); font-variant-numeric: tabular-nums; font-size: 1rem; }
@media (max-width: 860px) { .partner { grid-template-columns: 1fr; } .partner__media::before { background: linear-gradient(180deg, var(--navy), rgba(0,51,102,0) 45%); } }

/* ---------- Process ---------- */
.process { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; counter-reset: step; position: relative; }
.process::before { content: ""; position: absolute; top: 31px; left: 10%; right: 10%; height: 2px; background: repeating-linear-gradient(90deg, var(--teal) 0 8px, transparent 8px 16px); z-index: 0; }
.process li { position: relative; z-index: 1; display: grid; gap: 10px; justify-items: center; text-align: center; counter-increment: step; }
.step-dot { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--teal); color: var(--navy); box-shadow: 0 0 0 8px var(--mist); transition: background-color .25s ease, color .25s ease; position: relative; }
.step-dot svg { width: 26px; height: 26px; }
.step-dot::after { content: counter(step); position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: #fff; font: 700 .75rem/24px var(--font-display); }
.process li:hover .step-dot { background: var(--teal); color: #fff; }
.process h3 { font-size: 1.02rem; }
.process p { font-size: .9rem; color: var(--ink-soft); max-width: 24ch; }
@media (max-width: 900px) {
  .process { grid-template-columns: 1fr; gap: 0; }
  .process::before { top: 20px; bottom: 20px; left: 31px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--teal) 0 8px, transparent 8px 16px); }
  .process li { grid-template-columns: 64px 1fr; justify-items: start; text-align: left; column-gap: 18px; padding-bottom: 22px; }
  .process li .step-dot { grid-row: span 2; }
  .process p { max-width: none; }
}

/* ---------- Testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.testimonial { background: #fff; border: 1.5px dashed #b9c8d8; border-radius: var(--radius); padding: 28px; display: grid; gap: 18px; align-content: start; position: relative; }
.testimonial__quote-mark { font-family: Georgia, serif; font-size: 4rem; line-height: .6; color: var(--teal); height: 26px; }
.testimonial p { color: var(--ink-soft); font-style: italic; }
.stars { display: flex; gap: 3px; color: #c9d4df; }
.stars svg { width: 18px; height: 18px; }
.stars--real { color: #f5b301; }
.testimonial { border-style: solid; border-color: var(--line); }
.testimonial__who { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--mist); display: grid; place-items: center; color: #9aaabb; flex: none; }
.avatar svg { width: 22px; height: 22px; }
.testimonial__who strong { display: block; font-family: var(--font-display); color: var(--navy); }
.testimonial__who span { font-size: .85rem; color: var(--ink-soft); }
.placeholder-tag { position: absolute; top: 16px; right: 16px; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: #8a9aab; background: var(--mist); padding: 3px 8px; border-radius: 6px; }
.testimonial-cta { text-align: center; margin-top: 32px; color: var(--ink-soft); }
@media (max-width: 900px) { .testimonial-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.contact-card { background: var(--navy); color: #cfdeec; border-radius: 18px; padding: clamp(26px, 3.5vw, 40px); display: grid; gap: 22px; }
.contact-card h3 { color: #fff; font-size: var(--step-2); }
.contact-list { list-style: none; display: grid; gap: 18px; }
.contact-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; }
.contact-list .icon-chip { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.08); color: #5fd3d3; }
.contact-list .icon-chip svg { width: 20px; height: 20px; }
.contact-list small { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #8fb0cf; font-weight: 700; }
.contact-list a, .contact-list strong { color: #fff; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.04rem; overflow-wrap: break-word; }
.contact-list a[href^="mailto"] { font-size: .98rem; }
.contact-list a:hover { color: #5fd3d3; }
.contact-list address { font-style: normal; color: #fff; line-height: 1.5; }
.contact-card .btn-row .btn { flex: 1 1 160px; }
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: linear-gradient(135deg, #e8eef4, #dff2f2); position: relative; aspect-ratio: 16 / 9; max-width: 100%; margin-top: 24px; }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 1; }
.map-fallback { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; color: var(--navy); gap: 8px; align-content: center; }
.map-fallback svg { width: 34px; height: 34px; color: var(--teal); margin-inline: auto; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form-card { background: #fff; border-radius: 18px; padding: clamp(24px, 3.5vw, 40px); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-card h3 { font-size: var(--step-2); margin-bottom: 6px; }
.form-card > p { color: var(--ink-soft); margin-bottom: 24px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-family: var(--font-display); font-weight: 700; font-size: .9rem; color: var(--navy); }
.field .req { color: var(--teal-600); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fbfcfd;
  border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; min-height: 50px;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23003366' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #b7c6d6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(0,165,165,.15); background: #fff; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field .error-msg { color: var(--danger); font-size: .82rem; font-weight: 600; display: none; }
.field.has-error .error-msg { display: block; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); cursor: pointer; font-weight: 600; font-size: .93rem; color: var(--navy); transition: all .2s ease; background: #fbfcfd; }
.choice span svg { width: 17px; height: 17px; }
.choice input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: space-between; margin-top: 22px; }
.form-foot small { color: var(--ink-soft); font-size: .84rem; max-width: 44ch; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; display: none; }
.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { margin-top: 18px; border-radius: 12px; padding: 18px 20px; display: grid; gap: 10px; }
.form-status[data-state="success"] { background: var(--teal-050); border: 1px solid #a9e0e0; color: #035f5f; }
.form-status[data-state="error"] { background: #fef3f2; border: 1px solid #f5c2bd; color: #7a1d13; }
.form-status strong { font-family: var(--font-display); font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
.form-status strong svg { width: 22px; height: 22px; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } .form-foot .btn { width: 100%; } }

/* ---------- Services detail page ---------- */
.service-nav { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h)); z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.service-nav ul { display: flex; gap: 6px; list-style: none; overflow-x: auto; padding-block: 12px; scrollbar-width: none; }
.service-nav ul::-webkit-scrollbar { display: none; }
.service-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--navy); white-space: nowrap; border: 1px solid var(--line); }
.service-nav a:hover { border-color: var(--teal); }
.service-nav a svg { width: 17px; height: 17px; color: var(--teal-600); }
.service-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.service-detail--flip .service-detail__media { order: 2; }
.service-detail__copy { display: grid; gap: 18px; min-width: 0; }
.service-detail__copy > p { color: var(--ink-soft); }
.service-detail__num { font-family: var(--font-display); font-weight: 800; color: var(--teal); font-size: .9rem; letter-spacing: .12em; }
.detail-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.detail-cols h4 { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-600); margin-bottom: 10px; }
.detail-cols ul { list-style: none; display: grid; gap: 8px; }
.detail-cols li { display: flex; gap: 9px; align-items: flex-start; font-size: .95rem; }
.detail-cols li svg { width: 18px; height: 18px; color: var(--teal); flex: none; margin-top: 4px; }
.includes { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.includes li { padding: 6px 12px; border-radius: 8px; background: var(--mist); color: var(--navy); font-weight: 600; font-size: .86rem; }
.section--mist .includes li { background: #fff; }
@media (max-width: 880px) { .service-detail { grid-template-columns: 1fr; } .service-detail--flip .service-detail__media { order: 0; } }
@media (max-width: 480px) { .detail-cols { grid-template-columns: 1fr; } }

/* Values */
.values-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.value { padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); display: grid; gap: 12px; align-content: start; transition: border-color .25s ease, transform .25s ease; }
.value:hover { border-color: var(--teal); transform: translateY(-4px); }
.value p { color: var(--ink-soft); font-size: .96rem; }
@media (max-width: 860px) { .values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .values-grid { grid-template-columns: 1fr; } }

/* Quote page aside */
.quote-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.quote-aside { display: grid; gap: 20px; position: sticky; top: calc(var(--header-h) + 24px); }
.aside-card { border-radius: var(--radius); padding: 24px; background: var(--mist); display: grid; gap: 14px; }
.aside-card h3 { font-size: 1.1rem; }
.aside-card ol { padding-left: 20px; display: grid; gap: 8px; color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 960px) { .quote-layout { grid-template-columns: 1fr; } .quote-aside { position: static; } }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(110deg, var(--navy) 0%, var(--navy-700) 55%, var(--teal-600) 130%); color: #cfdeec; border-radius: 20px; padding: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; border: 50px solid rgba(255,255,255,.05); right: -100px; top: -140px; }
.cta-band h2 { color: #fff; font-size: var(--step-3); }
.cta-band > div { display: grid; gap: 10px; position: relative; z-index: 1; }
.cta-band .btn-row { position: relative; z-index: 1; }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #9fb8d0; font-size: .95rem; }
.footer-slogan { border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-slogan .container { padding-block: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.footer-slogan p { font-family: var(--font-display); font-weight: 700; color: #fff; font-size: var(--step-1); }
.footer-slogan p em { font-style: normal; color: #5fd3d3; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .75fr) minmax(0, 1fr) minmax(0, 1.25fr); gap: 36px; padding-block: 56px; }
.footer-grid h4 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.footer-grid ul { list-style: none; display: grid; gap: 10px; }
.footer-grid a { color: #c4d5e5; text-decoration: none; transition: color .2s ease; }
.footer-grid a:hover { color: #5fd3d3; }
.footer-about { display: grid; gap: 18px; align-content: start; }
.footer-about .brand-name { color: #fff; }
.footer-about .brand-sub { color: #5fd3d3; }
.social { display: flex; gap: 10px; }
.social a { width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255,255,255,.15); display: grid; place-items: center; color: #c4d5e5; transition: all .2s ease; }
.social a:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.social svg { width: 18px; height: 18px; }
.footer-contact li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; }
.footer-contact svg { width: 18px; height: 18px; color: #5fd3d3; margin-top: 4px; }
.footer-contact span { overflow-wrap: anywhere; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom .container { padding-block: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: .85rem; }
.footer-bottom .reg { font-variant-numeric: tabular-nums; }
@media (max-width: 920px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: calc(env(safe-area-inset-bottom, 0px) + 20px); z-index: 120;
  display: inline-flex; align-items: center; gap: 10px; height: 60px; padding: 0 18px 0 16px; border-radius: 999px;
  background: var(--wa); color: #fff; text-decoration: none; font-family: var(--font-display); font-weight: 700;
  box-shadow: 0 10px 28px rgba(31,168,85,.45); transition: transform .25s ease, background-color .25s ease;
}
.wa-float:hover { transform: translateY(-3px) scale(1.03); background: var(--wa-dark); }
.wa-float svg { width: 28px; height: 28px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(31,168,85,.55); animation: wa-ring 2.6s infinite; }
@keyframes wa-ring { 0% { box-shadow: 0 0 0 0 rgba(31,168,85,.5); } 70%, 100% { box-shadow: 0 0 0 16px rgba(31,168,85,0); } }
@media (max-width: 620px) { .wa-float { width: 58px; height: 58px; padding: 0; justify-content: center; right: 16px; bottom: calc(env(safe-area-inset-bottom, 0px) + 16px); } .wa-float .wa-float__label { display: none; } }

.back-top { position: fixed; left: 20px; bottom: calc(env(safe-area-inset-bottom, 0px) + 24px); z-index: 110; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; border: 0; display: grid; place-items: center; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .3s ease, transform .3s ease; transform: translateY(10px); }
.back-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.back-top svg { width: 20px; height: 20px; }

/* ---------- Scroll reveal (only for elements below the fold at load; JS adds .will-reveal) ---------- */
.will-reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.will-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .will-reveal { opacity: 1; transform: none; }
}
@media print { .site-header, .wa-float, .back-top, .topbar, .mobile-nav { display: none !important; } }

/* ---------- Legal, consent and cookie banner ---------- */
[hidden] { display: none !important; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.legal-links a, .legal-links .link-btn { color: #c4d5e5; text-decoration: none; font-size: .85rem; }
.legal-links a:hover, .legal-links .link-btn:hover { color: #5fd3d3; }

.field--consent { margin-top: 4px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-family: var(--font-body) !important; font-weight: 500 !important; font-size: .93rem !important; color: var(--ink) !important; cursor: pointer; }
.consent input { width: 20px !important; height: 20px; min-height: 0 !important; padding: 0 !important; margin-top: 2px; flex: none; accent-color: var(--teal); cursor: pointer; }
.consent a { color: var(--teal-600); font-weight: 600; }
.field--consent.has-error .consent input { outline: 2px solid var(--danger); outline-offset: 2px; }
.form-foot small a { color: var(--teal-600); }

.map-fallback .btn { margin-inline: auto; }
.map-note { font-size: .78rem; color: var(--ink-soft); }

.cookie-banner {
  position: fixed; left: 20px; bottom: calc(env(safe-area-inset-bottom, 0px) + 20px); z-index: 130;
  width: min(440px, calc(100% - 40px)); background: #fff; color: var(--ink); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow-lg); padding: 20px; display: grid; gap: 14px; font-size: .92rem;
}
.cookie-banner a { color: var(--teal-600); font-weight: 600; }
.cookie-banner .btn-row { justify-content: flex-end; }
@media (max-width: 620px) {
  .cookie-banner { left: 12px; right: 12px; width: auto; bottom: calc(env(safe-area-inset-bottom, 0px) + 86px); }
  .cookie-banner .btn-row .btn { flex: 1; }
}

.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 24px); background: var(--mist); border-radius: var(--radius); padding: 20px; font-size: .9rem; }
.legal-toc strong { font-family: var(--font-display); color: var(--navy); display: block; margin-bottom: 10px; }
.legal-toc ol { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.legal-toc a { color: var(--ink-soft); text-decoration: none; }
.legal-toc a:hover { color: var(--teal-600); }
.legal { max-width: 72ch; min-width: 0; display: grid; gap: 14px; color: var(--ink); }
.legal h2 { font-size: var(--step-2); margin-top: 24px; scroll-margin-top: calc(var(--header-h) + 20px); }
.legal p, .legal li { color: #2c3d50; }
.legal ul, .legal ol { padding-left: 22px; display: grid; gap: 6px; margin: 0; }
.legal a { color: var(--teal-600); }
.legal-updated { font-size: .88rem; color: var(--ink-soft) !important; }
.legal-dl { display: grid; grid-template-columns: minmax(140px, max-content) minmax(0, 1fr); gap: 8px 20px; margin: 0; padding: 18px 20px; background: var(--mist); border-radius: var(--radius-sm); }
.legal-dl dt { font-weight: 700; color: var(--navy); font-family: var(--font-display); font-size: .92rem; }
.legal-dl dd { margin: 0; overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; }
.legal-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.legal-table th, .legal-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-table th { background: var(--navy); color: #fff; font-family: var(--font-display); font-weight: 700; }
@media (max-width: 900px) { .legal-layout { grid-template-columns: 1fr; } .legal-toc { position: static; } }
@media (max-width: 520px) { .legal-dl { grid-template-columns: 1fr; gap: 2px; } .legal-dl dd { margin-bottom: 8px; } }
.footer-bottom .credit a { color: #c4d5e5; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom .credit a:hover { color: #5fd3d3; }
