/* P411® — custom static rebuild
   Design tokens pulled from the original site:
   navy #252944 · magenta #ae40a2 · green check #2b971a */

:root {
  --navy-900: #1b1e33;
  --navy-800: #20233b;
  --navy-700: #252944;
  --navy-600: #2c3052;
  --navy-500: #343a63;
  --magenta: #ae40a2;
  --magenta-600: #973a8d;
  --magenta-400: #c24fb5;
  --green: #2b971a;
  --text: #e9eaf2;
  --text-muted: #b6b9cc;
  --border: rgba(255, 255, 255, .12);
  --radius: 10px;
  --maxw: 1160px;
  --header-h: 74px;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--navy-700);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--magenta-400); text-decoration: none; transition: color .15s ease; }
a:hover { color: #d873cb; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--magenta); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(27, 30, 51, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  color: var(--text); font-weight: 700; font-size: .83rem;
  text-transform: uppercase; letter-spacing: .06em;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--magenta-400); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 42px; height: 42px; padding: 9px; color: var(--text);
}
.nav-toggle span { display: block; height: 2px; background: currentColor; border-radius: 2px; margin: 5px 0; transition: .25s; }
.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); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  background: var(--magenta); color: #fff; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; font-size: .9rem;
  padding: 15px 34px; border-radius: 40px; border: 0; cursor: pointer;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
  box-shadow: 0 8px 22px rgba(174, 64, 162, .32);
}
.btn:hover { background: var(--magenta-600); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(174, 64, 162, .42); }
.btn .chev { font-size: 1.1em; line-height: 1; }
.btn-block { width: 100%; justify-content: center; padding-block: 18px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; display: flex; align-items: center;
  background: var(--navy-800) center/cover no-repeat;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(27,30,51,.92) 0%, rgba(27,30,51,.72) 42%, rgba(27,30,51,.35) 100%);
}
.hero > .wrap { position: relative; z-index: 2; }

/* Home hero: centered logo + button */
.hero-home { min-height: calc(86vh - var(--header-h)); text-align: center; }
.hero-home::before { background: linear-gradient(180deg, rgba(27,30,51,.55) 0%, rgba(27,30,51,.35) 45%, rgba(27,30,51,.78) 100%); }
.hero-home .hero-logo { max-width: 360px; width: 72%; margin: 0 auto 28px; }
.hero-home .wrap { display: flex; flex-direction: column; align-items: center; padding-block: 60px; }

/* Inner hero: text left */
.hero-inner { min-height: calc(62vh - var(--header-h)); }
.hero-inner .wrap { padding-block: 72px; }
.hero-inner .hero-copy { max-width: 540px; }
.hero-inner h1 { margin: 0 0 18px; font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.12; }
.hero-inner p { color: var(--text-muted); font-size: 1.08rem; margin: 0 0 28px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { background: var(--navy-900); border-bottom: 1px solid var(--border); font-size: .82rem; }
.breadcrumb .wrap { padding-block: 12px; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--magenta-400); }
.breadcrumb span[aria-current] { color: var(--text); }
.breadcrumb .sep { margin: 0 8px; opacity: .55; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(48px, 7vw, 84px); }
.section--alt { background: var(--navy-800); }
.section h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 8px; }
.section h3 { font-size: 1.25rem; margin: 2.2em 0 .4em; }
.lead { color: var(--text-muted); font-size: 1.12rem; max-width: 760px; }
.prose { max-width: 820px; }
.prose p { color: var(--text-muted); }
.prose a { font-weight: 700; }

/* checkmark feature list */
.features { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 18px; }
.features li {
  position: relative; padding: 18px 20px 18px 54px;
  background: var(--navy-700); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text-muted);
}
.features li::before {
  content: "✓"; position: absolute; left: 18px; top: 17px;
  color: var(--green); font-weight: 700; font-size: 1.15rem;
}
.features li b, .features li strong { color: var(--text); }

.center { text-align: center; }
.mt-lg { margin-top: 40px; }

/* ---------- City grid ---------- */
.city-grid { list-style: none; margin: 32px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.city-grid a {
  display: block; text-align: center; padding: 16px 12px;
  background: var(--navy-700); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); font-weight: 700; font-size: .82rem;
  text-transform: uppercase; letter-spacing: .05em;
  transition: border-color .15s ease, background .15s ease, transform .15s ease, color .15s ease;
}
.city-grid a:hover { border-color: var(--magenta); background: var(--navy-600); color: #fff; transform: translateY(-2px); }

/* ---------- Prose policy ---------- */
.prose ul { padding-left: 20px; }
.prose li { color: var(--text-muted); margin: .4em 0; }
.prose li b, .prose li strong { color: var(--text); }

/* ---------- 404 ---------- */
.err { text-align: center; padding-block: clamp(60px, 12vw, 130px); }
.err .code { font-size: clamp(5rem, 16vw, 9rem); font-weight: 900; line-height: 1; color: var(--magenta); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); border-top: 1px solid var(--border); padding-block: 40px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.site-footer .foot-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a { color: var(--text-muted); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.site-footer a:hover { color: var(--magenta-400); }
.site-footer .copy { color: var(--text-muted); font-size: .82rem; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  /* Panel drops from just under the header. It is absolutely positioned
     relative to the header (whose backdrop-filter makes it the containing
     block) and hidden with visibility/opacity so it never overlaps. */
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-800); border-bottom: 1px solid var(--border);
    padding: 8px 20px 18px; box-shadow: 0 18px 30px rgba(0, 0, 0, .35);
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
  }
  .nav[data-open="true"] {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateY(0);
  }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--border); }
  .nav a:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
