/* =========================================================================
   Perry Storage — stylesheet
   Brand blue #0055AA + gold accent, Poppins / Inter.
   ========================================================================= */

/* ---- Tokens ------------------------------------------------------------ */
:root {
  --ink:        #14273c;
  --blue:       #0055aa;   /* Perry Storage brand blue */
  --blue-700:   #01468c;
  --blue-900:   #05264a;   /* deep navy: footer, dark sections */
  --sky:        #e7eff9;   /* pale blue tint */
  --tan:        #d8bd97;   /* warm tan from the logo boxes */
  --steel-300:  #cdd6df;
  --stone:      #eef1f6;   /* cool light background */
  --paper:      #f8fafc;
  --gold:       #d1a355;   /* small accent from the logo boxes */
  --gold-600:   #b9873a;
  --line:       #d7dde6;
  --line-dark:  #123a63;
  --muted:      #51617a;
  --muted-light:#b9c7d8;

  --font-display: "Poppins", system-ui, -apple-system, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, sans-serif;

  --wrap: 1180px;
  --wrap-wide: 1360px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 8px;
  --header-h: 84px;

  --shadow-sm: 0 1px 2px rgba(10,30,60,.06), 0 4px 12px -6px rgba(6,26,58,.18);
  --shadow: 0 1px 2px rgba(10,30,60,.07), 0 16px 40px -16px rgba(6,26,58,.26);
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---- Reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 10px); }
main, .service[id] { scroll-margin-top: calc(var(--header-h) + 10px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; transition-duration: .001ms !important; }
}
img, picture, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--stone);
  line-height: 1.65;
  font-size: clamp(1rem, 0.97rem + 0.16vw, 1.075rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---- Type -------------------------------------------------------------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4.3rem); }
h2 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.6rem); font-weight: 600; letter-spacing: -0.01em; }
p { max-width: 64ch; }
.lede { font-size: clamp(1.12rem, 1.03rem + 0.45vw, 1.4rem); color: var(--muted); line-height: 1.55; max-width: 58ch; }
strong { font-weight: 600; }

/* small uppercase label (replaces the old mono treatment) */
.label { font-family: var(--font-body); font-weight: 600; font-size: .75rem; letter-spacing: .11em; text-transform: uppercase; }

/* ---- Layout helpers ---------------------------------------------------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap--wide { width: min(100% - 2 * var(--gutter), var(--wrap-wide)); margin-inline: auto; }

section { padding-block: clamp(3.25rem, 2.4rem + 3.4vw, 5.75rem); }
section.tight { padding-block: clamp(2.5rem, 2rem + 2vw, 3.75rem); }

.on-dark { background: var(--blue-900); color: var(--paper); }
.on-dark .lede { color: var(--muted-light); }
.on-blue { background: var(--blue); color: #fff; }
.tint { background: var(--sky); }

/* ---- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  padding: .8em 1.5em; border-radius: 999px;
  border: 1.5px solid transparent; text-decoration: none; white-space: nowrap;
  transition: transform .18s var(--ease), background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}
/* Inline SVG icons (self-hosted, replaces Font Awesome) */
.ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }
.ic-b { width: 1.1em; height: 1.1em; flex: none; fill: currentColor; vertical-align: -0.15em; }
.btn .ic { width: 1.05em; height: 1.05em; stroke-width: 2; margin-right: -.1em; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
/* blue — primary on light backgrounds */
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px -10px rgba(0,85,170,.7); }
.btn--primary:hover { background: var(--blue-700); }
/* white — primary on blue/dark backgrounds */
.btn--light { background: #fff; color: var(--blue); }
.btn--light:hover { background: #eaf1fb; }
/* outline — secondary on light backgrounds */
.btn--outline { border-color: #c3d0e0; color: var(--blue); background: #fff; }
.btn--outline:hover { border-color: var(--blue); background: #fff; }
/* ghost — secondary on blue/dark backgrounds */
.btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn--ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; }

/* ---- Header ------------------------------------------------------------ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  background: var(--blue);
  transition: box-shadow .25s ease, background .25s ease;
  animation: dropIn .5s var(--ease) both;
}
.site-header.scrolled { box-shadow: 0 6px 24px -10px rgba(0,0,0,.4); background: var(--blue-700); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: .8rem; min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand__logo { height: 60px; width: auto; display: block; transition: transform .2s var(--ease); }
.brand:hover .brand__logo { transform: scale(1.03); }
.footer .brand__logo { height: 58px; }
@media (max-width: 820px) { .brand__logo { height: 46px; } }

/* nav */
.nav { display: flex; align-items: center; gap: clamp(.9rem, 2vw, 1.9rem); }
.nav a { color: #fff; text-decoration: none; font-family: var(--font-display); font-weight: 500; font-size: 1.02rem; padding: .3rem 0; position: relative; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -3px; height: 2px; width: 0;
  background: var(--gold); transition: width .22s var(--ease);
}
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { width: 100%; }
.nav a[aria-current="page"] { font-weight: 600; }
.nav .btn { margin-left: .4rem; padding: .55rem 1.4rem; font-size: 1rem; }
.nav .btn--light { background: var(--gold); color: #17324e; border-color: var(--gold); }
.nav .btn--light:hover { background: var(--gold-600); color: #17324e; border-color: var(--gold-600); }

.nav-toggle { display: none; }

/* ---- Mobile menu backdrop (created by JS) ------------------------------ */
.nav-backdrop {
  position: fixed; inset: 0; z-index: 55;
  background: rgba(3,16,34,.5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
}
.nav-backdrop.show { opacity: 1; visibility: visible; }
body.menu-open { overflow: hidden; }

@media (max-width: 1000px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.4); border-radius: var(--radius);
    background: rgba(255,255,255,.1); position: relative; z-index: 2;
  }
  .nav-toggle span { display: block; height: 2px; width: 22px; margin-inline: auto; background: #fff; transition: transform .22s var(--ease), opacity .2s 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 {
    position: fixed; inset: 0 0 0 auto; width: min(86vw, 360px); z-index: 1;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    background: linear-gradient(165deg, #0a4a92 0%, var(--blue-900) 68%);
    padding: calc(var(--header-h) + 1.5rem) 1.75rem 2.25rem;
    transform: translateX(100%); visibility: hidden;
    transition: transform .32s var(--ease), visibility .32s var(--ease);
    box-shadow: -24px 0 70px rgba(0,0,0,.4);
    border-left: 3px solid var(--gold);
    overflow-y: auto; overscroll-behavior: contain;
  }
  .nav.open { transform: translateX(0); visibility: visible; }
  .nav a:not(.btn) {
    font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; color: #fff;
    padding: 1rem .25rem; border-bottom: 1px solid rgba(255,255,255,.14);
  }
  .nav a:not(.btn)::after { display: none; }
  .nav a[aria-current="page"] { color: var(--gold); font-weight: 600; }
  .nav .btn { margin: 1.75rem 0 0; justify-content: center; width: 100%; font-size: 1.1rem; padding-block: 1em; }
}

/* ---- Hero -------------------------------------------------------------- */
.hero { position: relative; color: var(--paper); display: flex; align-items: flex-end; isolation: isolate; }
.hero--home { min-height: min(92vh, 800px); }
.hero--page { min-height: min(58vh, 480px); }
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 14s ease-out both; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(4,20,42,.9) 0%, rgba(4,20,42,.5) 40%, rgba(4,20,42,.28) 72%, rgba(3,20,44,.55) 100%);
}
.hero__inner { padding-block: clamp(2.5rem, 2rem + 5vw, 5.5rem); padding-top: calc(var(--header-h) + 2rem); }
.hero h1 { max-width: 22ch; text-wrap: balance; }
.hero__sub { margin-top: 1.15rem; font-size: clamp(1.15rem, 1.02rem + 0.7vw, 1.6rem); max-width: 60ch; color: #eef3fa; font-weight: 400; }
.hero__actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__note { margin-top: 1.3rem; color: var(--muted-light); font-size: .95rem; }
.hero__note a { color: #fff; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
/* staggered load */
.hero__inner > * { animation: rise .75s var(--ease) both; }
.hero__inner > :nth-child(1) { animation-delay: .12s; }
.hero__inner > :nth-child(2) { animation-delay: .22s; }
.hero__inner > :nth-child(3) { animation-delay: .32s; }
.hero__inner > :nth-child(4) { animation-delay: .42s; }
.hero--page .hero__inner { padding-bottom: clamp(2rem, 1.5rem + 3vw, 3.5rem); }
.hero__eyebrow { display: inline-block; margin-bottom: .9rem; color: var(--gold); }

/* ---- Section heading --------------------------------------------------- */
.head { max-width: 46ch; margin-bottom: clamp(1.75rem, 1.25rem + 2vw, 3rem); }
.head p { margin-top: .9rem; }
.head--center { margin-inline: auto; text-align: center; }
.head--center p { margin-inline: auto; }
.head--wide { max-width: 60ch; }

/* Standalone section intros span the full content width. When a lede is
   present, lay heading and lede side by side so it fills the row without
   long, hard-to-read lines (avoids the narrow left-aligned text column). */
.wrap > .head:not(.head--center) { max-width: none; }
.wrap > .head:not(.head--center) .lede { max-width: none; }
@media (min-width: 800px) {
  .wrap > .head:not(.head--center):has(.lede) {
    display: grid; grid-template-columns: 1.05fr 1fr; gap: .5rem 4rem; align-items: end;
  }
  .wrap > .head:not(.head--center):has(.lede) h2 { margin: 0; }
  .wrap > .head:not(.head--center):has(.lede) .lede { margin: 0; max-width: 52ch; }
}

/* ---- Split ------------------------------------------------------------- */
.split { display: grid; gap: clamp(1.5rem, 1rem + 4vw, 4rem); align-items: center; }
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse .split__media { order: 2; }
}
.split__media { position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.split__media img { width: 100%; height: 100%; max-height: 520px; object-fit: cover; transition: transform .6s var(--ease); }
.split__media:hover img { transform: scale(1.04); }
.split__body p + p { margin-top: 1rem; }
.split__body .btn { margin-top: 1.6rem; }
.split__tag {
  position: absolute; left: 1rem; bottom: 1rem;
  font-family: var(--font-body); font-weight: 600; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(5,26,54,.85); color: var(--paper); padding: .4rem .7rem; border-radius: 6px; backdrop-filter: blur(2px);
}

/* ---- Facts ------------------------------------------------------------- */
.facts { display: grid; gap: 1rem; }
@media (min-width: 720px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.fact {
  display: flex; align-items: center; gap: 1rem;
  background: #fff; padding: 1.4rem 1.5rem; border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s ease;
}
.fact:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.fact__icon { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--sky); color: var(--blue); display: grid; place-items: center; font-size: 1.35rem; }
.fact b { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; display: block; line-height: 1.1; color: var(--blue); }
.fact span { color: var(--muted); font-size: .95rem; }

/* ---- Services grid ----------------------------------------------------- */
.services { display: grid; gap: clamp(1rem, .7rem + 1.4vw, 1.5rem); }
@media (min-width: 620px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .services { grid-template-columns: repeat(3, 1fr); } }
.service {
  display: flex; flex-direction: column; gap: .6rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.6rem 1.5rem; text-decoration: none; color: inherit;
  box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s ease, border-color .2s ease;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #bcd0e8; }
.service__icon { width: 50px; height: 50px; border-radius: 12px; background: var(--sky); color: var(--blue); display: grid; place-items: center; font-size: 1.3rem; margin-bottom: .3rem; }
.service h3 { font-size: 1.2rem; }
.service p { color: var(--muted); font-size: .96rem; max-width: none; flex: 1; }
.service__more { color: var(--blue); font-weight: 600; font-family: var(--font-display); font-size: .95rem; display: inline-flex; align-items: center; gap: .4rem; transition: gap .2s var(--ease); }
.service:hover .service__more { gap: .7rem; }

/* ---- Container "door" cards -------------------------------------------- */
.doors { display: grid; gap: clamp(1.25rem, 1rem + 2vw, 2rem); }
@media (min-width: 760px) { .doors { grid-template-columns: 1fr 1fr; } }
.door {
  position: relative; border-radius: var(--radius); overflow: hidden;
  color: var(--paper); box-shadow: var(--shadow); background: var(--blue);
  display: flex; flex-direction: column;
  transition: transform .2s var(--ease), box-shadow .2s ease;
}
.door:hover { transform: translateY(-4px); }
.door--tan { background: var(--tan); color: #17324e; }
.door::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .5;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 6px, rgba(0,0,0,.10) 6px 8px, rgba(0,0,0,.05) 8px 20px);
}
.door::after {
  content: ""; position: absolute; top: 8%; bottom: 8%; right: clamp(1rem, 4%, 2rem); width: 3px; z-index: 1;
  background: linear-gradient(var(--steel-300), #7f8b99); border-radius: 3px; opacity: .5;
}
.door > * { position: relative; z-index: 2; }
.door__top {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 1.2rem 1.5rem .3rem; font-weight: 600; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.86);
}
.door--tan .door__top { color: #17324e; }
.door__size { padding: 0 1.5rem; font-family: var(--font-display); font-weight: 700; font-size: clamp(3rem, 2rem + 6vw, 4.4rem); line-height: .95; letter-spacing: -0.03em; }
.door__size small { display: block; font-size: 1.05rem; font-weight: 500; letter-spacing: 0; opacity: .9; margin-top: .45rem; }
.door__body { padding: 1rem 1.5rem 0; }
.door__body p { color: rgba(255,255,255,.85); max-width: none; }
.door--tan .door__body p { color: rgba(23,50,78,.88); }
.door__price {
  margin-top: auto; padding: 1.1rem 1.5rem 1.5rem;
  display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.18);
}
.door--tan .door__price { border-top-color: rgba(23,50,78,.24); }
.door__price b { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; }
.door__price span { color: rgba(255,255,255,.75); font-size: .95rem; }
.door--tan .door__price span { color: #17324e; }

/* ---- Feature grid (2x2) ------------------------------------------------ */
.grid2 { display: grid; gap: clamp(1.25rem, 1rem + 2vw, 1.75rem); }
@media (min-width: 680px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.feature { padding: 1.7rem 1.75rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.feature__icon { width: 46px; height: 46px; border-radius: 12px; background: var(--sky); color: var(--blue); display: grid; place-items: center; font-size: 1.2rem; margin-bottom: 1rem; }
.feature h3 { margin-bottom: .45rem; }
.feature p { color: var(--muted); }
.on-dark .feature { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); }
.on-dark .feature p { color: var(--muted-light); }
.on-dark .feature__icon { background: rgba(255,255,255,.1); color: #fff; }

/* ---- CTA band ---------------------------------------------------------- */
.cta-band { background: var(--blue); color: #fff; position: relative; overflow: hidden; }
.cta-band__inner { display: grid; gap: 1.5rem; align-items: center; position: relative; }
@media (min-width: 780px) { .cta-band__inner { grid-template-columns: 1.3fr auto; } }
.cta-band h2 { max-width: 22ch; }
.cta-band p { color: #d7e6f7; margin-top: .6rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---- Partner ----------------------------------------------------------- */
.partner { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 820px) { .partner { grid-template-columns: 1.1fr 1fr; } }

/* ---- Contact ----------------------------------------------------------- */
.contact-grid { display: grid; gap: clamp(1.5rem, 1rem + 3vw, 3rem); }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-list { list-style: none; padding: 0; display: grid; gap: 1.5rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list .ci { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--sky); color: var(--blue); display: grid; place-items: center; font-size: 1.15rem; }
.contact-list h3 { font-size: 1rem; font-weight: 600; margin-bottom: .15rem; color: var(--muted); }
.contact-list a.big { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.3rem, 1.1rem + 1vw, 1.65rem); color: var(--blue); text-decoration: none; letter-spacing: -0.01em; }
.contact-list a.big:hover { color: var(--blue-700); }
.contact-note { font-size: .9rem; color: var(--muted); }
.map-embed { border: 0; width: 100%; height: 100%; min-height: 360px; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---- Socials ----------------------------------------------------------- */
.socials { display: flex; gap: .6rem; }
.socials a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid rgba(255,255,255,.25); color: #fff; font-size: 1.05rem; transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s var(--ease); }
.socials a:hover { background: #fff; border-color: #fff; color: var(--blue); transform: translateY(-2px); }
.socials--light a { border-color: var(--line); color: var(--blue); }
.socials--light a:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ---- Footer ------------------------------------------------------------ */
.footer { background: var(--blue-900); color: var(--muted-light); padding-block: clamp(2.75rem, 2rem + 2vw, 4rem) 2rem; }
.footer__grid { display: grid; gap: 2.25rem; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.footer h4 { font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: #fff; margin-bottom: 1rem; }
.footer a { color: var(--muted-light); text-decoration: none; transition: color .18s ease; }
.footer a:hover { color: #fff; }
.footer ul { list-style: none; padding: 0; display: grid; gap: .6rem; }
.footer__brand p { max-width: 42ch; margin-top: 1rem; font-size: .95rem; line-height: 1.6; }
.footer__bottom { margin-top: 2.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .85rem; }

/* ---- Reveal on scroll -------------------------------------------------- */
.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal { opacity: 0; transform: translateY(22px); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

/* ---- Keyframes --------------------------------------------------------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes dropIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }

/* ---- Focus / skip ------------------------------------------------------ */
/* two-tone focus ring: gold outer carries dark surfaces, navy inner carries light ones */
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; box-shadow: 0 0 0 2px var(--blue-900); border-radius: 3px; }
.skip { position: absolute; left: -999px; top: .5rem; z-index: 100; background: #fff; color: var(--ink); padding: .6rem 1rem; border-radius: var(--radius); }
.skip:focus { left: .5rem; }

/* ---- Footer address ---------------------------------------------------- */
.footer__addr { font-style: normal; margin-top: .9rem; font-size: .95rem; line-height: 1.6; color: var(--muted-light); }

/* ---- Legal / privacy page ---------------------------------------------- */
.legal-head { padding-top: calc(var(--header-h) + 3rem); padding-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem); background: var(--sky); }
.legal-head h1 { margin-top: .4rem; }
.legal { max-width: 74ch; }
.legal h2 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); margin-top: 2.2rem; }
.legal p { margin-top: .8rem; color: var(--ink); max-width: none; }
.legal a { color: var(--blue); text-underline-offset: 2px; }
.legal__meta { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }

/* ---- Cookie notice ----------------------------------------------------- */
.cookie {
  position: fixed; z-index: 70; left: 1rem; right: 1rem; bottom: 1rem;
  max-width: 560px; margin-inline: auto;
  background: var(--blue-900); color: var(--paper);
  border: 1px solid var(--line-dark); border-radius: var(--radius);
  box-shadow: 0 18px 50px -12px rgba(0,0,0,.5);
  padding: 1.1rem 1.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem;
  transform: translateY(160%); transition: transform .4s var(--ease);
}
.cookie.show { transform: none; }
.cookie p { margin: 0; font-size: .9rem; color: var(--muted-light); flex: 1 1 260px; max-width: none; }
.cookie a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.cookie button {
  background: #fff; color: var(--blue); border: 0; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  padding: .6em 1.4em; cursor: pointer; transition: background .18s ease, transform .18s var(--ease);
}
.cookie button:hover { background: #eaf1fb; transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .cookie { transition: none; } }

/* ---- 404 --------------------------------------------------------------- */
.notfound { padding-top: calc(var(--header-h) + 5rem); padding-bottom: 5rem; text-align: center; background: var(--sky); }
.notfound .lede { margin-inline: auto; margin-top: 1rem; }
.notfound__actions { margin-top: 2rem; display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; }

/* ---- Utilities --------------------------------------------------------- */
.muted { color: var(--muted); }
.center { text-align: center; }
