/* ============================================================
   ALBAHIDH COLD STORE — shared design system
   Palette sampled directly from the client logo (brand blue
   #00A8E8, logistics steel #A8A8A8); ink-navy grounds derived
   from the same hue family; teal reserved as a narrow secondary
   accent for the coldest/frozen state and success feedback.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@500;600;700;800;900&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root{
  /* ---- brand ---- */
  --brand-blue:        #00A8E8;
  --brand-blue-deep:   #0089C2;
  --brand-blue-pale:   #8DD3F2;
  --teal:              #17C7B0;
  --teal-deep:         #0EA594;

  /* ---- ink (navy grounds, hue-matched to brand blue) ---- */
  --ink-950:  #050F16;
  --ink-900:  #0C2330;
  --ink-850:  #102A3A;
  --ink-800:  #163344;
  --ink-700:  #1E4058;
  --ink-600:  #2C5573;

  /* ---- frost (light grounds) ---- */
  --frost-050: #F6FAFC;
  --frost-100: #EBF3F8;
  --frost-200: #D9E6EE;
  --frost-300: #C2D4DE;

  /* ---- neutrals, blue-grey biased ---- */
  --steel-700: #34424C;
  --steel-600: #4B5C68;
  --steel-500: #6B7C88;
  --steel-400: #8CA0AD;
  --steel-300: #B8C4CC;
  --steel-200: #DCE4E8;

  --white: #FFFFFF;

  /* ---- semantic (default = light section) ---- */
  --bg: var(--frost-050);
  --surface: var(--white);
  --surface-raised: var(--frost-100);
  --border: var(--frost-200);
  --text: #12222D;
  --text-secondary: var(--steel-600);
  --accent: var(--brand-blue);
  --accent-deep: var(--brand-blue-deep);
  --accent-2: var(--teal);
  --focus-ring: #0B6FA8;

  /* ---- type ---- */
  --font-display: 'Archivo', 'Arial Narrow', sans-serif;
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  /* ---- scale ---- */
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --step-1:  clamp(1.2rem, 1.13rem + 0.35vw, 1.4rem);
  --step-2:  clamp(1.5rem, 1.37rem + 0.65vw, 1.85rem);
  --step-3:  clamp(1.9rem, 1.68rem + 1.1vw, 2.5rem);
  --step-4:  clamp(2.4rem, 2.02rem + 1.9vw, 3.4rem);
  --step-5:  clamp(3rem, 2.4rem + 3vw, 4.6rem);

  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --content-max: 1240px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --ease: cubic-bezier(.16,.84,.36,1);
  --ease-out: cubic-bezier(.22,1,.36,1);
}

.section--dark{
  --bg: var(--ink-900);
  --surface: var(--ink-850);
  --surface-raised: var(--ink-800);
  --border: var(--ink-700);
  --text: var(--frost-050);
  --text-secondary: #A9C0CD;
  --accent: var(--brand-blue);
  --accent-deep: var(--brand-blue-pale);
}

/* ============ reset ============ */
*,*::before,*::after{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior: auto; } }
body{
  margin: 0;
  background: var(--frost-050);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
svg{ display:block; }
a{ color: inherit; text-decoration: none; }
button{ font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input,select,textarea{ font: inherit; color: inherit; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4,p,figure{ margin:0; }
[hidden]{ display:none!important; }

h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-wrap: balance;
  color: var(--text);
}
.eyebrow{
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before{
  content:'';
  width: 22px; height: 1px;
  background: var(--accent);
  display:inline-block;
}
p.lede{ font-size: var(--step-1); color: var(--text-secondary); max-width: 62ch; }

:focus-visible{
  outline: 2.5px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 4px;
}
.section--dark :focus-visible{ outline-color: var(--brand-blue-pale); }

/* ============ layout ============ */
.wrap{
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gutter) var(--gutter-r);
}
.section{
  background: var(--bg);
  color: var(--text);
  padding-block: clamp(64px, 9vw, 120px);
  position: relative;
  overflow: clip;
}
/* Back-to-back dark sections share one visual panel (no color break
   between them), so trim the padding on both sides of that seam to
   avoid a dead gap. */
.section--dark + .section--dark{
  padding-top: clamp(32px, 4.5vw, 60px);
}
.section--dark:has(+ .section--dark){
  padding-bottom: clamp(32px, 4.5vw, 60px);
}
.section-head{
  display:flex; flex-direction:column; gap:16px;
  max-width: 680px; margin-bottom: clamp(36px,5vw,64px);
}
.section-head.center{ margin-inline:auto; text-align:center; align-items:center; }
.grid{ display:grid; gap: 24px; }
.grid-2{ grid-template-columns: repeat(2,1fr); }
.grid-3{ grid-template-columns: repeat(3,1fr); }
.grid-4{ grid-template-columns: repeat(4,1fr); }
@media (max-width: 980px){
  .grid-3, .grid-4{ grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 640px){
  .grid-2, .grid-3, .grid-4{ grid-template-columns: 1fr; }
}

/* ============ buttons ============ */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step--1);
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background-color .25s, border-color .25s, color .25s;
  will-change: transform;
}
.btn-primary{
  color: var(--ink-950);
  background: linear-gradient(120deg, var(--brand-blue-pale), var(--brand-blue) 55%, var(--teal));
  background-size: 180% 180%;
  background-position: 0% 50%;
  box-shadow: 0 14px 30px -12px rgba(0,168,232,.55);
}
.btn-primary:hover{ transform: translateY(-2px); background-position: 100% 50%; box-shadow: 0 18px 36px -12px rgba(0,168,232,.65); }
.btn-primary:active{ transform: translateY(0); }
.btn-ghost{
  color: var(--text);
  border: 1.5px solid var(--border);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  backdrop-filter: blur(6px);
}
.section--dark .btn-ghost{ color: var(--frost-050); border-color: rgba(255,255,255,.28); }
.btn-ghost:hover{ border-color: var(--accent); transform: translateY(-2px); }
.btn-sm{ padding: 10px 18px; font-size: var(--step--1); }
.btn-block{ width:100%; }
.btn[disabled]{ opacity:.55; cursor:not-allowed; transform:none!important; }

/* ============ nav ============ */
.nav{
  position: fixed; inset-inline:0; top:0; z-index: 100;
  padding-top: env(safe-area-inset-top,0px);
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease);
  border-bottom: 1px solid transparent;
}
/* Backdrop blur lives on a pseudo-element rather than .nav itself, because
   backdrop-filter/filter on an element creates a new containing block for
   any position:fixed descendants (like the mobile .nav-links overlay) —
   that trapped the full-screen menu inside the collapsed 68px bar once
   scrolled. Keeping the filter off .nav avoids that entirely. */
.nav::before{
  content:''; position:absolute; inset:0; z-index:-1;
  background: rgba(6,20,28,.72);
  backdrop-filter: blur(16px) saturate(140%);
  opacity:0; transition: opacity .4s var(--ease);
}
.nav.is-scrolled::before{ opacity:1; }
.nav-inner{
  max-width: var(--content-max); margin-inline:auto;
  padding-inline: var(--gutter) var(--gutter-r);
  height: 84px; display:flex; align-items:center; justify-content:space-between; gap: 24px;
  transition: height .35s var(--ease);
}
.nav.is-scrolled .nav-inner{ height: 68px; }
.nav.is-scrolled{
  border-bottom-color: rgba(255,255,255,.08);
  box-shadow: 0 8px 30px -18px rgba(0,0,0,.5);
}
.nav-brand{ display:flex; align-items:center; gap:12px; flex-shrink:0; }
.nav-brand img{ height: 40px; width:auto; transition: height .35s var(--ease); }
.nav.is-scrolled .nav-brand img{ height: 34px; }
.nav-brand-text{ display:flex; flex-direction:column; line-height:1.1; }
.nav-brand-text b{ font-family: var(--font-display); font-weight:800; font-size:1.05rem; letter-spacing:.01em; color:#fff; }
.nav-brand-text span{ font-family: var(--font-mono); font-size:.62rem; letter-spacing:.16em; color: var(--brand-blue-pale); text-transform:uppercase; }
.nav-links{ display:flex; align-items:center; gap: 30px; }
.nav-links a{
  color: rgba(255,255,255,.82); font-size: .93rem; font-weight:500;
  position:relative; padding-block:6px;
}
.nav-links a::after{
  content:''; position:absolute; left:0; right:100%; bottom:0; height:2px;
  background: linear-gradient(90deg,var(--brand-blue),var(--teal));
  transition: right .3s var(--ease-out);
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after{ right:0; }
.nav-links a[aria-current="page"]{ color:#fff; }
.nav-cta{ display:flex; align-items:center; gap:14px; }
.nav-burger{ display:none; }
@media (max-width: 900px){
  .nav-links{
    position: fixed; inset: 0; top:0;
    background: var(--ink-950);
    flex-direction:column; justify-content:center; gap: 30px;
    transform: translateY(-8px); opacity:0; pointer-events:none;
    transition: opacity .3s var(--ease), transform .3s var(--ease);
  }
  .nav-links.is-open{ opacity:1; pointer-events:auto; transform:none; }
  .nav-links a{ font-size: 1.3rem; }
  .nav-cta .btn-ghost{ display:none; }
  .nav-burger{
    display:flex; flex-direction:column; gap:5px; width:26px; z-index:110; padding:8px;
  }
  .nav-burger span{ height:2px; background:#fff; border-radius:2px; transition: transform .3s var(--ease), opacity .3s; }
  .nav-burger.is-open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
  .nav-burger.is-open span:nth-child(2){ opacity:0; }
  .nav-burger.is-open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
}

/* ============ hero ============ */
.hero{
  --text: #fff;
  --text-secondary: #C7DBE4;
  position:relative; min-height: 100vh; display:flex; align-items:flex-end;
  background: var(--ink-950); color:#fff; overflow:clip;
  padding-top: calc(84px + env(safe-area-inset-top,0px));
}
.hero-canvas{ position:absolute; inset:0; width:100%; height:100%; }
.hero-scrim{
  position:absolute; inset:0;
  background:
    radial-gradient(60% 50% at 76% 18%, rgba(0,168,232,.22), transparent 60%),
    linear-gradient(180deg, rgba(5,15,22,.35) 0%, rgba(5,15,22,.55) 55%, var(--ink-950) 100%);
}
.hero-inner{ position:relative; z-index:2; width:100%; padding-block: clamp(60px,10vw,110px) clamp(70px,8vw,96px); text-align:center; }
.hero-title{
  font-size: var(--step-5); line-height: 1.08; max-width: 1150px; margin-inline:auto;
  text-wrap: balance;
}
.hero-title em{ font-style:normal; color: var(--brand-blue-pale); }
.hero-sub{ margin-top:22px; font-size: var(--step-1); color: #C7DBE4; max-width: 54ch; margin-inline:auto; }
.hero-actions{ display:flex; flex-wrap:wrap; gap:16px; margin-top:36px; justify-content:center; }
.hero-meta{ display:flex; gap: clamp(24px,4vw,56px); margin-top: 56px; flex-wrap:wrap; justify-content:center; }
.hero-meta div b{ display:block; font-family:var(--font-mono); font-size:1.5rem; color:#fff; }
.hero-meta div span{ font-size:.8rem; color:#9DB6C2; }
.scroll-cue{
  position:absolute; bottom: 26px; inset-inline-start: 50%; transform: translateX(-50%);
  display:flex; flex-direction:column; align-items:center; gap:8px; z-index:2;
  color:#9DB6C2; font-family: var(--font-mono); font-size:.68rem; letter-spacing:.14em; text-transform:uppercase;
}
.scroll-cue .stem{ width:1px; height:34px; background: linear-gradient(#9DB6C2, transparent); position:relative; overflow:hidden; }
.scroll-cue .stem::after{
  content:''; position:absolute; top:-34px; left:0; width:100%; height:34px;
  background: linear-gradient(var(--brand-blue), transparent);
  animation: scrollcue 2.2s var(--ease) infinite;
}
@keyframes scrollcue{ to{ top:34px; } }

/* ============ page header (non-home) ============ */
.page-hero{
  --text: #fff;
  --text-secondary: #C7DBE4;
  background: var(--ink-950); color:#fff; position:relative; overflow:clip;
  padding-top: calc(84px + env(safe-area-inset-top,0px));
  padding-bottom: clamp(56px,8vw,90px);
}
.page-hero .hero-scrim{ background:
    radial-gradient(55% 60% at 80% 0%, rgba(0,168,232,.2), transparent 60%),
    linear-gradient(180deg, rgba(5,15,22,.2), var(--ink-950) 100%);
}
.page-hero-inner{ position:relative; z-index:2; padding-top: clamp(48px,8vw,80px); }
.breadcrumb{ font-family:var(--font-mono); font-size:.72rem; letter-spacing:.1em; text-transform:uppercase; color:#8FB0BE; margin-bottom:18px; }
.breadcrumb a:hover{ color:#fff; }
.page-hero h1{ font-size: var(--step-4); max-width: 20ch; color:#fff; }
.page-hero p.lede{ color:#C7DBE4; margin-top:18px; }

/* ============ reveal ============
   Hidden-before-animate only applies once we know JS actually ran
   (html.js, set by an early inline script) — so a blocked or failed
   script never leaves real content (including the quote form)
   permanently invisible. */
.reveal{ opacity:1; transform:none; }
@media (prefers-reduced-motion: no-preference){
  .js .reveal{ opacity:0; transform: translateY(26px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
  .js .reveal.is-visible{ opacity:1; transform:none; }
  .js .reveal-group .reveal:nth-child(1){ transition-delay: .05s; }
  .js .reveal-group .reveal:nth-child(2){ transition-delay: .14s; }
  .js .reveal-group .reveal:nth-child(3){ transition-delay: .23s; }
  .js .reveal-group .reveal:nth-child(4){ transition-delay: .32s; }
}

/* ============ cards ============ */
.card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px;
  transition: transform .4s var(--ease-out), border-color .4s, box-shadow .4s;
}
.card-icon{
  width:48px; height:48px; border-radius: 12px;
  display:flex; align-items:center; justify-content:center;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent); margin-bottom:20px;
}
.card h3{ font-size: 1.15rem; margin-bottom:10px; }
.card p{ color: var(--text-secondary); font-size:.96rem; }
.card-services{ cursor:default; }
.card-services:hover{ transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 24px 46px -28px rgba(0,168,232,.45); }
.section--dark .card{ background: var(--surface); border-color: var(--border); }

/* ============ storage solutions ============ */
.storage-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:22px; }
@media (max-width: 900px){ .storage-grid{ grid-template-columns:1fr; } }
.storage-card{
  position:relative; border-radius: var(--radius-lg); padding: 34px 28px 30px;
  overflow:clip; isolation:isolate; min-height: 300px; display:flex; flex-direction:column;
  border:1px solid rgba(255,255,255,.09);
  transition: transform .5s var(--ease-out);
}
.storage-card:hover{ transform: translateY(-8px); }
.storage-card canvas{ position:absolute; inset:0; z-index:-1; opacity:.9; }
.storage-card::before{
  content:''; position:absolute; inset:0; z-index:-1;
}
.storage-card[data-zone="frozen"]::before{ background: linear-gradient(160deg,#03141F,#0A2E42 70%); }
.storage-card[data-zone="chilled"]::before{ background: linear-gradient(160deg,#062231,#0F3A50 70%); }
.storage-card[data-zone="ambient"]::before{ background: linear-gradient(160deg,#0B2733,#1B4B5E 70%); }
.storage-card .zone-label{ font-family:var(--font-mono); font-size:.7rem; letter-spacing:.16em; text-transform:uppercase; color:var(--brand-blue-pale); }
.storage-card h3{ color:#fff; font-size:1.5rem; margin-top:10px; }
.storage-card .temp-readout{
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-size: 2.6rem; color:#fff; margin-top: 18px; display:flex; align-items:baseline; gap:6px;
}
.storage-card .temp-readout small{ font-size:1.1rem; color:var(--brand-blue-pale); }
.storage-card p{ color:#B9D2DD; margin-top:18px; font-size:1.08rem; line-height:1.5; flex:1; }
.storage-card ul{ margin-top:16px; display:flex; flex-direction:column; gap:8px; }
.storage-card ul li{ font-size:.85rem; color:#CFE3EC; display:flex; gap:10px; align-items:flex-start; }
.storage-card ul li svg{ flex-shrink:0; margin-top:3px; color: var(--teal); }

/* ============ technology ============ */
.tech-panel{
  display:grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items:center;
}
@media (max-width: 900px){ .tech-panel{ grid-template-columns:1fr; } }
.wms-badge{
  border:1px solid var(--border); border-radius: var(--radius-lg); padding: 28px;
  background: var(--surface); display:flex; flex-direction:column; gap:18px;
}
.wms-row{ display:flex; align-items:center; gap:14px; }
.wms-row .dot{ width:8px; height:8px; border-radius:50%; background: var(--teal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 20%, transparent); flex-shrink:0; }
.wms-row span{ font-family: var(--font-mono); font-size:.85rem; color: var(--text-secondary); }

/* ============ journey ============ */
.journey{ position:relative; }
.journey-track{
  display:grid; grid-template-columns: repeat(7,1fr); gap:0; position:relative; margin-top: 20px;
}
.journey-line{
  position:absolute; top:23px; left:0; right:0; height:2px;
  background: linear-gradient(90deg, var(--border), var(--border));
  z-index:0;
}
.journey-line-fill{
  position:absolute; top:23px; left:0; height:2px; width:0%;
  background: linear-gradient(90deg, var(--brand-blue), var(--teal));
  z-index:1; transition: width 1.4s var(--ease-out);
}
.journey-step{ position:relative; z-index:2; display:flex; flex-direction:column; align-items:flex-start; padding-inline-end: 14px; }
.journey-num{
  width:46px; height:46px; border-radius:50%; background: var(--surface); border:2px solid var(--border);
  display:flex; align-items:center; justify-content:center; font-family:var(--font-mono); font-weight:600; color: var(--text-secondary);
  transition: border-color .5s, color .5s, background .5s;
}
.journey-step.is-active .journey-num{ border-color: var(--accent); color:var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.journey-step h4{ font-size:.92rem; margin-top:14px; }
.journey-step p{ font-size:.8rem; color:var(--text-secondary); margin-top:6px; }
@media (max-width: 900px){
  .journey-track{ grid-template-columns:1fr; gap:28px; }
  .journey-line, .journey-line-fill{ top:0; bottom:0; left:23px; right:auto; width:2px; height:100%; }
  .journey-line-fill{ height:0%; width:2px; }
  .journey-step{ padding-inline-start:64px; padding-inline-end:0; }
  .journey-num{ position:absolute; left:0; top:0; }
}

/* ============ stat / temperature strip ============ */
.stat-strip{ display:grid; grid-template-columns: repeat(3,1fr); gap:20px; }
@media (max-width:760px){ .stat-strip{ grid-template-columns:1fr; } }
.stat-tile{
  border:1px solid var(--border); border-radius: var(--radius-md); padding:26px;
  background: var(--surface);
}
.stat-tile .num{ font-family:var(--font-mono); font-size:2.4rem; color:var(--accent); font-variant-numeric:tabular-nums; }
.stat-tile .label{ color:var(--text-secondary); font-size:.85rem; margin-top:6px; }

/* ============ form ============ */
.form-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width:700px){ .form-grid{ grid-template-columns:1fr; } }
.field{ display:flex; flex-direction:column; gap:8px; }
.field.full{ grid-column: 1 / -1; }
.field label{ font-size:.82rem; font-weight:600; color: var(--text-secondary); }
.field label .req{ color: var(--accent); }
.field input, .field select, .field textarea{
  padding: 13px 15px; border-radius: var(--radius-sm); border:1.5px solid var(--border);
  background: var(--surface); color: var(--text); font-size: .95rem;
  transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field select:focus, .field textarea:focus{
  border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); outline:none;
}
.field textarea{ resize: vertical; min-height:110px; font-family: var(--font-body); }
.field.has-error input, .field.has-error select, .field.has-error textarea{ border-color:#D64545; }
.field-error{ font-size:.78rem; color:#D64545; min-height:1em; }
.consent{ display:flex; gap:12px; align-items:flex-start; font-size:.85rem; color:var(--text-secondary); }
.consent input{ margin-top:3px; accent-color: var(--accent); width:16px; height:16px; flex-shrink:0; }
.hp-field{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.form-status{
  margin-top:18px; padding:14px 16px; border-radius: var(--radius-sm); font-size:.9rem; display:none;
}
.form-status.is-success{ display:block; background: color-mix(in srgb, var(--teal) 14%, var(--surface)); color: var(--teal-deep); border:1px solid color-mix(in srgb, var(--teal) 40%, transparent); }
.form-status.is-error{ display:block; background: #FCEAEA; color:#B23030; border:1px solid #F0BABA; }
.section--dark .form-status.is-error{ background:#3A1717; color:#F3A9A9; border-color:#6b2b2b; }

/* ============ footer ============ */
.footer{ background: var(--ink-950); color:#B9CBD4; padding-block: 64px 28px; }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap:40px; }
@media (max-width:900px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width:560px){ .footer-grid{ grid-template-columns: 1fr; } }
.footer h4{ color:#fff; font-size:.82rem; letter-spacing:.08em; text-transform:uppercase; font-family:var(--font-mono); margin-bottom:16px; }
.footer ul{ display:flex; flex-direction:column; gap:11px; }
.footer a:hover{ color:#fff; }
.footer-brand img{ height:52px; width:auto; margin-bottom:16px; }
.footer-brand p{ font-size:.88rem; color:#8FA5B1; max-width:32ch; }
.footer-social{ display:flex; gap:12px; margin-top:18px; }
.footer-social a{
  width:36px; height:36px; border-radius:50%; border:1px solid rgba(255,255,255,.16);
  display:flex; align-items:center; justify-content:center; transition: border-color .3s, background .3s;
}
.footer-social a:hover{ border-color: var(--brand-blue); background: rgba(0,168,232,.12); }
.footer-bottom{
  margin-top:52px; padding-top:24px; border-top:1px solid rgba(255,255,255,.1);
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:14px;
  font-size:.78rem; color:#7996A3;
}
.footer-legal{ display:flex; gap:18px; flex-wrap:wrap; }
.footer-wms{ font-family:var(--font-mono); font-size:.72rem; color:#5C7784; }
.footer-wms a{ text-decoration: underline; text-underline-offset:3px; text-decoration-color: rgba(92,119,132,.5); }
.footer-wms a:hover{ color:#B9CBD4; }

/* ============ misc ============ */
.tag{
  display:inline-flex; align-items:center; padding:5px 12px; border-radius:999px;
  font-family:var(--font-mono); font-size:.7rem; letter-spacing:.05em; text-transform:uppercase;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent);
}
.note-placeholder{
  border:1.5px dashed var(--accent); border-radius: var(--radius-sm);
  padding: 3px 8px; font-family: var(--font-mono); font-size:.78em; color: var(--accent-deep);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.divider{ height:1px; background: var(--border); border:0; margin-block: 40px; }
.cert-row{ display:flex; flex-wrap:wrap; gap:14px; }
.cert-chip{
  display:flex; align-items:center; gap:10px; border:1px solid var(--border); border-radius:999px;
  padding: 9px 16px 9px 10px; background: var(--surface);
}
.cert-chip .dot{ width:26px; height:26px; border-radius:50%; background: color-mix(in srgb, var(--teal) 18%, transparent); display:flex; align-items:center; justify-content:center; color:var(--teal); flex-shrink:0; }
.cert-chip b{ font-size:.82rem; display:block; }
.cert-chip span{ font-size:.72rem; color: var(--text-secondary); font-family: var(--font-mono); }

.error-page{ min-height:100vh; display:flex; flex-direction:column; }
.error-page main{ flex:1; display:flex; align-items:center; }
.error-code{ font-family:var(--font-mono); font-size: clamp(4rem,14vw,8rem); color: var(--accent); line-height:1; }

table.legal{ width:100%; border-collapse: collapse; margin-block: 20px; }
table.legal th, table.legal td{ text-align:left; padding:10px 14px; border:1px solid var(--border); font-size:.88rem; vertical-align:middle; }
table.legal th{ background: var(--surface-raised); font-family:var(--font-mono); font-size:.72rem; letter-spacing:.06em; text-transform:uppercase; }
.legal-body h2{ font-size:1.3rem; margin-top:44px; margin-bottom:14px; }
.legal-body h2:first-child{ margin-top:0; }
.legal-body p, .legal-body li{ color: var(--text-secondary); font-size:.96rem; }
.legal-body ul{ display:flex; flex-direction:column; gap:8px; padding-inline-start:20px; list-style:disc; margin-top:10px; }
.legal-updated{ font-family:var(--font-mono); font-size:.78rem; color:var(--text-secondary); }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior:auto!important; }
}
