/* ==========================================================================
   Pathteq QPL Logistics — POC stylesheet
   Design system: design-system/pathteq-qpl/MASTER.md
   ========================================================================== */

:root {
  /* Brand palette (locked from logo) */
  --color-primary: #0d8fa7;
  /* The brand teal carries white text at only 3.82:1, under the 4.5 AA bar, so the
     primary button uses this instead. It is not a new colour: it is the teal that was
     already the button's own hover value, which clears at 4.75:1. The brand token above
     is untouched and still drives everything that is not white text on teal. */
  --color-primary-btn: #0b7e93;
  /* The same problem the other way round. The brand teal AS SMALL TEXT reads 3.46 to
     3.82:1 on the white and pale-teal surfaces, so text uses this darker step instead.
     5.07:1 on the worst of those grounds. --color-primary itself is untouched and still
     drives borders, fills and anything large or graphic. */
  --color-primary-text: #0a7285;
  --color-navy: #3c4797;
  --color-ink: #0a1633;
  --color-ink-2: #101f42;
  --color-accent: #68c3cd;
  --color-teal-mid: #3bafbf;
  --color-bg: #f5f9fa;
  --color-surface: #ffffff;
  --color-text: #16243d;
  --color-text-muted: #51627a;
  --color-line: #dce6ea;

  /* Type */
  --font-display: "Bricolage Grotesque", sans-serif;
  --font-body: "Figtree", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Shadows (layered, brand tinted) */
  --shadow-sm: 0 1px 2px rgba(10, 22, 51, 0.06), 0 1px 1px rgba(10, 22, 51, 0.04);
  --shadow-md: 0 2px 4px rgba(10, 22, 51, 0.05), 0 8px 16px rgba(13, 143, 167, 0.08);
  --shadow-lg: 0 4px 8px rgba(10, 22, 51, 0.06), 0 16px 32px rgba(13, 143, 167, 0.12);
  --shadow-glow: 0 0 0 1px rgba(104, 195, 205, 0.18), 0 12px 40px rgba(13, 143, 167, 0.25);

  --radius: 12px;
  --radius-lg: 18px;
  --container: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  color-scheme: light;
  -webkit-tap-highlight-color: transparent;
}

a, button, input, select, textarea, label { touch-action: manipulation; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  margin: 0 0 var(--space-md);
  color: var(--color-ink);
  font-weight: 700;
}

h1, h2 { text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -0.025em; }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }

p { margin: 0 0 var(--space-md); }

a { color: var(--color-primary-text); }

:focus-visible {
  outline: 3px solid var(--color-teal-mid);
  outline-offset: 2px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--color-ink); color: #fff;
  padding: 0.6rem 1.2rem; border-radius: 8px;
  transition: transform 200ms ease;
}
.skip-link:focus { top: 1rem; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }

.section { padding-block: 3rem; }
@media (min-width: 768px) { .section { padding-block: 4rem; } }
@media (min-width: 1024px) { .section { padding-block: 7rem; } }

.section--tint { background: linear-gradient(180deg, #eef5f7 0%, var(--color-bg) 100%); }

.section__head { max-width: 44rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section__sub { color: var(--color-text-muted); font-size: 1.075rem; max-width: 38rem; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-primary-text);
  margin-bottom: var(--space-sm);
}

section[id] { scroll-margin-top: 5.5rem; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1.5rem;
  border-radius: 10px;
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 42px; padding: 0.45rem 1.1rem; font-size: 0.95rem; }
.btn--block { width: 100%; }

.btn--primary {
  background: var(--color-primary-btn);
  color: #fff;
  box-shadow: 0 2px 6px rgba(13, 143, 167, 0.35);
}
/* Hover steps one further down the same ramp, since the old hover is now the resting
   state. 5.59:1. */
.btn--primary:hover { background: #0a7285; box-shadow: 0 4px 14px rgba(13, 143, 167, 0.45); }

.btn--ghost {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-line);
}
.btn--ghost:hover { border-color: var(--color-primary); color: var(--color-primary-text); }

.btn--outline {
  background: rgba(255, 255, 255, 0.04);
  color: #eaf6f8;
  border-color: rgba(104, 195, 205, 0.45);
}
.btn--outline:hover { border-color: var(--color-accent); background: rgba(104, 195, 205, 0.12); }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(220, 230, 234, 0.8);
}

.nav__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 0.6rem clamp(1rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav__brand img { width: 150px; height: auto; }

.nav__links {
  display: none;
  gap: clamp(1rem, 2vw, 1.75rem);
  margin-inline: auto;
}
.nav__links a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.97rem;
  padding: 0.4rem 0.15rem;
  border-bottom: 2px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}
.nav__links a:hover { color: var(--color-primary-text); border-bottom-color: var(--color-accent); }

.nav__actions { display: none; gap: 0.6rem; margin-left: auto; }

@media (min-width: 1024px) {
  .nav__links { display: flex; }
  .nav__actions { display: flex; }
  .nav__toggle { display: none !important; }
}

.nav__toggle {
  margin-left: auto;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 12px;
  background: none;
  border: 0;
  cursor: pointer;
  border-radius: 8px;
}
.nav__toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-ink);
  border-radius: 2px;
  transition: transform 250ms ease, opacity 250ms ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem clamp(1rem, 4vw, 2rem) 1.25rem;
  border-top: 1px solid var(--color-line);
  background: #fff;
}
.nav__mobile.is-open { display: flex; }
.nav__mobile a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  padding: 0.7rem 0.25rem;
}
.nav__mobile a.btn { margin-top: 0.5rem; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(900px 600px at 85% 20%, rgba(60, 71, 151, 0.35), transparent 60%),
    radial-gradient(700px 500px at 10% 85%, rgba(13, 143, 167, 0.28), transparent 60%),
    linear-gradient(165deg, var(--color-ink) 0%, var(--color-ink-2) 55%, #0c1c3f 100%);
  color: #eaf6f8;
  overflow: hidden;
}

.hero__bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.hero__map {
  position: absolute;
  right: -8%;
  top: 50%;
  transform: translateY(-50%);
  width: min(62vw, 880px);
  height: auto;
  opacity: 0.5;
}

.hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero__inner {
  position: relative;
  max-width: var(--container);
  width: 100%;
  margin-inline: auto;
  padding: clamp(1.5rem, 4vh, 3rem) clamp(1rem, 4vw, 2rem) 2rem;
  display: grid;
  gap: var(--space-2xl);
  align-items: center;
}
/* Grid items must be allowed to shrink below min-content, or the track card
   forces the column wider than the phone viewport (WebKit sizes its flex head
   row large) — the page then bleeds ~10px off the right edge on iOS. */
.hero__inner > * {
  min-width: 0;
}

@media (min-width: 1024px) {
  .hero__inner { grid-template-columns: 1.15fr 0.85fr; gap: var(--space-3xl); }
}

.hero h1 { color: #fff; margin-bottom: var(--space-lg); }

.hero__sub {
  font-size: 1.1rem;
  color: rgba(234, 246, 248, 0.82);
  max-width: 34rem;
  margin-bottom: var(--space-xl);
}

.hero .eyebrow { color: var(--color-accent); }

.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-md); }

/* Track card */
.track-card {
  position: relative;
  background: rgba(16, 31, 66, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(104, 195, 205, 0.28);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow-glow);
}

.track-card__head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: var(--space-xs);
}
.track-card__head .icon { color: var(--color-accent); }
.track-card h2 { color: #fff; font-size: 1.35rem; margin: 0; }

.track-card__hint {
  color: rgba(234, 246, 248, 0.7);
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
}

.track-card__form { display: flex; gap: 0.6rem; }
.track-card__form input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0.7rem 1rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: #fff;
  background: rgba(10, 22, 51, 0.6);
  border: 1px solid rgba(104, 195, 205, 0.35);
  border-radius: 10px;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.track-card__form input::placeholder { color: rgba(234, 246, 248, 0.6); }
.track-card__form input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(104, 195, 205, 0.25);
}

.track-card__error { color: #ffb3a7; font-size: 0.9rem; margin: 0.5rem 0 0; }

.poc-note {
  margin: var(--space-md) 0 0;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: rgba(234, 246, 248, 0.6);
}

/* Hero stats */
.hero__stats {
  position: relative;
  max-width: var(--container);
  width: 100%;
  margin-inline: auto;
  padding: var(--space-lg) clamp(1rem, 4vw, 2rem) clamp(2rem, 5vh, 3rem);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}
@media (min-width: 768px) { .hero__stats { grid-template-columns: repeat(4, 1fr); } }

.stat { border-left: 2px solid rgba(104, 195, 205, 0.35); padding-left: var(--space-md); }
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.1;
}
.stat__num em { font-style: normal; color: var(--color-accent); }
.stat__label { font-size: 0.88rem; color: rgba(234, 246, 248, 0.65); }

/* --------------------------------------------------------------------------
   Trust strip
   -------------------------------------------------------------------------- */
.trust { background: var(--color-surface); border-bottom: 1px solid var(--color-line); }
.trust__inner { padding-block: var(--space-2xl); }
.trust__lead {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}
.trust__items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-lg);
}
@media (min-width: 640px) { .trust__items { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .trust__items { grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); } }
.trust__items li { display: flex; gap: 0.75rem; align-items: flex-start; font-weight: 500; line-height: 1.45; }
.trust__items .icon { color: var(--color-primary-text); flex-shrink: 0; margin-top: 2px; }

.icon { width: 24px; height: 24px; }
.icon--lg { width: 40px; height: 40px; }

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */
.svc-table-wrap {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}
.svc-table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.svc-table thead th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  background: #eef5f7;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--color-line);
}
.svc-table tbody th,
.svc-table tbody td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-line);
  vertical-align: middle;
  text-align: left;
  transition: background-color 160ms ease;
}
.svc-table tbody tr:last-child th,
.svc-table tbody tr:last-child td { border-bottom: 0; }
@media (hover: hover) {
  .svc-table tbody tr:hover th,
  .svc-table tbody tr:hover td { background: #f3f9fa; }
  .svc-table tbody tr.svc-group:hover td { background: #eef5f7; }
}
.svc-name {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-ink);
}
.svc-name__icon {
  display: grid; place-items: center;
  width: 34px; height: 34px; flex-shrink: 0;
  border-radius: 9px;
  background: linear-gradient(140deg, rgba(13, 143, 167, 0.12), rgba(60, 71, 151, 0.12));
  color: var(--color-primary-text);
}
.svc-name__icon svg { width: 19px; height: 19px; }
.svc-table td { color: var(--color-text-muted); }
.svc-table td[data-label="What you get"] { color: var(--color-text); font-weight: 500; }
.svc-time { font-family: var(--font-mono); font-weight: 600; color: var(--color-primary-text); }
.svc-group td {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary-text);
  background: #eef5f7;
  padding-block: 0.5rem;
}
@media (max-width: 760px) {
  .svc-table thead { display: none; }
  .svc-table, .svc-table tbody, .svc-table tr, .svc-table th, .svc-table td { display: block; width: 100%; }
  .svc-table tbody tr { padding: 0.9rem 0; border-bottom: 1px solid var(--color-line); }
  .svc-table tbody tr:last-child { border-bottom: 0; }
  .svc-table tbody th,
  .svc-table tbody td { border-bottom: 0; padding: 0.2rem 1.1rem; }
  .svc-table th.svc-name { display: flex; padding-top: 0.3rem; margin-bottom: 0.35rem; }
  .svc-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-mono);
    font-size: 0.64rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: 0.05rem;
  }
  .svc-group td { padding: 0.5rem 1.1rem; margin-top: 0.4rem; }
  .svc-group td::before { content: none; }
}

/* --------------------------------------------------------------------------
   Form fields (shared by the enquiry form)
   -------------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-weight: 600; font-size: 0.92rem; }
.field__hint { font-size: 0.8rem; color: var(--color-text-muted); margin: 0; }

.field input,
.field select,
.field textarea {
  min-height: 48px;
  padding: 0.65rem 0.9rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 10px;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(13, 143, 167, 0.18);
}

.field-row { display: grid; gap: var(--space-md); }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }

/* --------------------------------------------------------------------------
   How it works
   -------------------------------------------------------------------------- */
.how__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-lg);
}
@media (min-width: 720px) { .how__steps { grid-template-columns: repeat(4, 1fr); gap: var(--space-md); } }
.how-step {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}
.how-step__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--color-primary-text);
}
.how-step__icon {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  margin: var(--space-sm) 0 var(--space-md);
  border-radius: 11px;
  background: linear-gradient(140deg, rgba(13, 143, 167, 0.12), rgba(60, 71, 151, 0.12));
  color: var(--color-primary-text);
}
.how-step__icon svg { width: 24px; height: 24px; }
.how-step h3 { margin-bottom: var(--space-xs); font-size: 1.1rem; }
.how-step p { color: var(--color-text-muted); font-size: 0.93rem; margin: 0; }
/* connector between steps on desktop */
@media (min-width: 720px) {
  .how-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 4.85rem;
    right: calc(var(--space-md) / -2 - 1px);
    width: var(--space-md);
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--color-accent) 0 4px, transparent 4px 7px);
    opacity: 0.65;
  }
}

/* --------------------------------------------------------------------------
   Coverage
   -------------------------------------------------------------------------- */
.section--dark {
  background:
    radial-gradient(800px 500px at 15% 15%, rgba(60, 71, 151, 0.3), transparent 60%),
    radial-gradient(700px 600px at 90% 90%, rgba(13, 143, 167, 0.22), transparent 60%),
    linear-gradient(180deg, var(--color-ink) 0%, var(--color-ink-2) 100%);
  color: #eaf6f8;
}
.section--dark h2 { color: #fff; }
.section--dark .section__sub { color: rgba(234, 246, 248, 0.72); }
.section--dark .eyebrow { color: var(--color-accent); }

/* Branch directory (replaces the coverage map) */
.branch-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}
@media (min-width: 720px) { .branch-stats { grid-template-columns: repeat(4, 1fr); } }
.branch-stat { border-left: 2px solid var(--color-accent); padding-left: var(--space-md); }
.branch-stat__num { display: block; font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: #fff; line-height: 1.1; letter-spacing: -0.02em; }
.branch-stat__label { font-size: 0.85rem; color: rgba(234, 246, 248, 0.6); }

.branch-search { position: relative; max-width: 560px; margin: 0 auto var(--space-2xl); }
.branch-search .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: rgba(234, 246, 248, 0.6); pointer-events: none; }
.branch-search input {
  width: 100%;
  padding: 1rem 1.1rem 1rem 3rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(104, 195, 205, 0.25);
  border-radius: 12px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 1.05rem;
}
.branch-search input::placeholder { color: rgba(234, 246, 248, 0.55); }
.branch-search input:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(104, 195, 205, 0.2); }

.branch-group { margin-bottom: var(--space-2xl); }
.branch-group[hidden] { display: none; }
.branch-group__title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin: 0 0 var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid rgba(104, 195, 205, 0.16);
}
.branch-group__title span { color: rgba(234, 246, 248, 0.6); font-weight: 400; }

.branch-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
@media (min-width: 640px) { .branch-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .branch-grid { grid-template-columns: repeat(4, 1fr); } }
.branch-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(104, 195, 205, 0.16);
  border-radius: 10px;
  padding: 0.7rem 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.branch-card::before {
  content: "";
  width: 6px; height: 6px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-accent);
}
.branch-card[hidden] { display: none; }
.branch-card__name { color: #fff; font-size: 0.98rem; margin: 0; font-weight: 500; }

.branch-empty { text-align: center; color: rgba(234, 246, 248, 0.72); margin-top: var(--space-lg); }

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */
.about__layout {
  display: grid;
  gap: var(--space-2xl);
  align-items: center;
}
@media (min-width: 1024px) { .about__layout { grid-template-columns: 1fr 1.05fr; } }

.about__media { position: relative; }
.about__img {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about__img::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(160deg, rgba(13, 143, 167, 0.35), rgba(60, 71, 151, 0.45));
  mix-blend-mode: multiply;
}
.about__img::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(10, 22, 51, 0.45), transparent 55%);
}
.about__img img { width: 100%; object-fit: cover; aspect-ratio: 5 / 3.4; }

.about__badge {
  position: absolute;
  z-index: 2;
  right: clamp(-0.75rem, -2vw, -1.25rem);
  bottom: -1.25rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.9rem 1.3rem;
  text-align: center;
  border: 1px solid var(--color-line);
}
.about__badge-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  color: var(--color-primary-text);
  line-height: 1;
}
.about__badge-label { font-size: 0.8rem; color: var(--color-text-muted); }

.about__points { list-style: none; margin: 0 0 var(--space-xl); padding: 0; display: grid; gap: var(--space-lg); }
.about__points li { display: grid; gap: 0.15rem; padding-left: 1.1rem; border-left: 3px solid var(--color-accent); }
.about__points strong { font-size: 1.02rem; color: var(--color-ink); }
.about__points span { color: var(--color-text-muted); font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact__layout {
  display: grid;
  gap: var(--space-xl);
  align-items: start;
}
@media (min-width: 1024px) { .contact__layout { grid-template-columns: 1fr 1fr; } }

.contact__form {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact__note { font-size: 0.85rem; color: var(--color-text-muted); margin: 0; }
.contact__error { font-size: 0.85rem; color: #b3261e; margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact__success[hidden] { display: none; }
.contact__success {
  position: absolute;
  inset: 0;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl);
}
.contact__success .icon--lg { color: var(--color-primary-text); margin-bottom: var(--space-md); }
.contact__success p { color: var(--color-text-muted); max-width: 26rem; }

.contact__info {
  background: linear-gradient(160deg, var(--color-ink), var(--color-ink-2));
  color: #eaf6f8;
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow-lg);
}
.contact__info h3 { color: #fff; margin-bottom: var(--space-lg); }
.contact__info-heading { margin-top: var(--space-xl); padding-top: var(--space-lg); border-top: 1px solid rgba(104, 195, 205, 0.2); }
.contact__info ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-lg); }
@media (min-width: 1024px) {
  .contact__info ul { grid-template-columns: 1fr 1fr; gap: var(--space-lg) var(--space-xl); }
}
.contact__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin-bottom: 0.2rem;
}
.contact__value { color: #eaf6f8; text-decoration: none; line-height: 1.5; }
a.contact__value:hover { color: var(--color-accent); text-decoration: underline; }
.contact__value--todo { color: rgba(234, 246, 248, 0.6); font-style: italic; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--color-ink);
  color: rgba(234, 246, 248, 0.75);
  padding-top: var(--space-3xl);
}

.footer__inner {
  display: grid;
  gap: var(--space-xl);
  padding-bottom: var(--space-2xl);
}
@media (min-width: 768px) { .footer__inner { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer__logo {
  display: inline-block;
  margin-bottom: var(--space-sm);
}
.footer__logo img {
  width: 170px;
  height: auto;
  display: block;
}
.footer__tag { font-size: 0.92rem; max-width: 20rem; }
.footer__certs {
  font-size: 0.82rem;
  max-width: 22rem;
  color: var(--color-accent);
  border-left: 2px solid rgba(104, 195, 205, 0.4);
  padding-left: 0.75rem;
}

.footer__col { display: grid; gap: 0.5rem; align-content: start; }
.footer__col h4 {
  color: #fff;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.4rem;
}
.footer__col a {
  color: rgba(234, 246, 248, 0.75);
  text-decoration: none;
  font-size: 0.95rem;
  width: fit-content;
  transition: color 180ms ease;
}
.footer__col a:hover { color: var(--color-accent); }
.footer__col span { font-size: 0.95rem; }

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding-block: var(--space-lg);
  border-top: 1px solid rgba(104, 195, 205, 0.15);
  font-size: 0.8rem;
  color: rgba(234, 246, 248, 0.55);
}
.footer__legal p { margin: 0; }
.footer__legal a { color: var(--color-accent); text-decoration: none; }
.footer__legal a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   Map SVG elements
   -------------------------------------------------------------------------- */
.map-hex { fill: rgba(104, 195, 205, 0.1); }
.map-hex--lit { fill: rgba(104, 195, 205, 0.32); }
.map-route {
  fill: none;
  stroke: var(--color-teal-mid);
  stroke-width: 2.2;
  stroke-linecap: round;
  opacity: 0.9;
  stroke-dasharray: 7 9;
  animation: routeFlow 2.6s linear infinite;
}
@keyframes routeFlow { to { stroke-dashoffset: -64; } }

.map-city { fill: var(--color-primary); stroke: rgba(234, 246, 248, 0.85); stroke-width: 1.5; }
.map-city--hub { fill: var(--color-accent); }
.map-city-glow { fill: rgba(104, 195, 205, 0.25); animation: cityPulse 2.4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes cityPulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.2; transform: scale(1.5); }
}
.map-label {
  font-family: var(--font-mono);
  font-size: 21px;
  fill: rgba(234, 246, 248, 0.85);
  paint-order: stroke;
  stroke: rgba(10, 22, 51, 0.8);
  stroke-width: 3px;
}

/* --------------------------------------------------------------------------
   Reveal animations
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   Legal / compliance pages (privacy-notice.html, terms.html, disclaimer.html)
   -------------------------------------------------------------------------- */
.legal-head { border-bottom: 1px solid var(--color-line); background: var(--color-surface); position: sticky; top: 0; z-index: 50; }
.legal-head__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding-block: 0.7rem; }
.legal-head__inner img { width: 140px; height: auto; }
.legal-back { font-weight: 600; font-size: 0.95rem; text-decoration: none; color: var(--color-primary-text); display: inline-flex; align-items: center; gap: 0.4rem; }
.legal-back:hover { text-decoration: underline; }

.legal__wrap { max-width: 52rem; }
.legal h1 { margin-bottom: var(--space-sm); }
.legal__meta { font-family: var(--font-mono); font-size: 0.82rem; color: var(--color-text-muted); margin-bottom: var(--space-2xl); padding-bottom: var(--space-lg); border-bottom: 1px solid var(--color-line); }
.legal h2 { font-size: 1.3rem; margin-top: var(--space-2xl); }
.legal h3 { font-size: 1.05rem; margin-top: var(--space-xl); }
.legal p, .legal li { color: var(--color-text); line-height: 1.7; }
.legal p { margin-bottom: var(--space-md); }
.legal a { color: var(--color-primary-text); }
.legal__ol { margin: 0 0 var(--space-lg); padding-left: 1.5rem; display: grid; gap: var(--space-md); }
.legal__ol > li { padding-left: 0.35rem; }
.legal__ol > li p { margin-bottom: var(--space-sm); }
.legal__bul { margin: 0 0 var(--space-lg); padding-left: 1.25rem; display: grid; gap: 0.4rem; }
.legal__contact { background: var(--color-bg); border: 1px solid var(--color-line); border-radius: var(--radius); padding: var(--space-lg); margin: var(--space-lg) 0; }
.legal__contact p { margin-bottom: 0.3rem; }
.legal__updated { margin-top: var(--space-2xl); padding-top: var(--space-lg); border-top: 1px solid var(--color-line); font-size: 0.85rem; color: var(--color-text-muted); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 650ms cubic-bezier(0.22, 1, 0.36, 1), transform 650ms cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .map-route, .map-city-glow { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
