/* NextDataLinq — site styles (navy + gold from the NDL logo).
   Mobile-first. Layouts: phone <=700px, iPad portrait 701-960px,
   iPad landscape / small laptop 961-1320px, desktop >1320px.
   No inline styles anywhere: the CSP (style-src 'self') blocks them. */

@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("/assets/fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("/assets/fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("/assets/fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url("/assets/fonts/poppins-700.woff2") format("woff2"); }

:root {
  --hero: #0d1830;
  --navy: #1c2d50;
  --link: #2e4a7d;
  --ink: #1e2433;
  --muted: #556070;
  --gold: #c49a55;
  --gold-text: #8a6526;
  --gold-soft: #f1e4c8;
  --cream: #faf7f1;
  --line: #e6e0d4;
  --on-hero: #b9c4da;
  --radius: 16px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: clamp(16px, 0.3vw + 15px, 18px);
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
  overflow-wrap: break-word;
}
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(32px, 3.6vw + 16px, 56px); letter-spacing: -0.5px; }
h2 { font-size: clamp(26px, 1.8vw + 18px, 40px); letter-spacing: -0.3px; }
h3 { font-size: clamp(19px, 0.5vw + 16px, 22px); font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
ul { padding-left: 1.2em; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 2px solid transparent;
  font: 600 16px/1 "Poppins", system-ui, sans-serif; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(13, 24, 48, .18); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-gold { background: var(--gold); color: var(--hero); }
.btn-gold:hover { color: var(--hero); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { color: #fff; background: var(--hero); }
.btn-ghost { border-color: rgba(255, 255, 255, .45); color: #fff; background: transparent; }
.btn-ghost:hover { color: #fff; border-color: #fff; }
.btn-tiktok { background: #111; color: #fff; }
.btn-tiktok:hover { color: #fff; }
.btn-line { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-line:hover { color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 700; font-size: 19px; margin-right: auto; }
.brand img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--gold); }
.brand:hover { color: var(--navy); }
.header-cta { min-height: 44px; padding: 0 20px; }
.nav-toggle {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(13, 24, 48, .12);
  padding: 8px 16px 16px;
}
.nav.open { display: block; }
.nav a { display: block; padding: 14px 4px; color: var(--ink); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line); }
.nav a:last-child { border-bottom: 0; }
.nav a[aria-current="page"] { color: var(--navy); font-weight: 600; }
.nav a[aria-current="page"]::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-left: 10px; vertical-align: middle; }

@media (min-width: 961px) {
  .nav-toggle { display: none; }
  .nav { display: flex; position: static; gap: 30px; padding: 0; border: 0; box-shadow: none; background: transparent; margin-right: 12px; }
  .nav a { padding: 6px 0; border: 0; }
  .nav a[aria-current="page"]::after { display: none; }
  .nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--gold); }
  .nav a:hover { color: var(--navy); }
}

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(circle at 85% 15%, rgba(196, 154, 85, .18), transparent 42%),
    radial-gradient(circle at 5% 95%, rgba(46, 74, 125, .55), transparent 52%),
    var(--hero);
  color: var(--on-hero);
  padding: clamp(44px, 7vw, 104px) 0;
}
.hero-grid { display: grid; gap: 36px; align-items: center; }
.hero h1 { color: #fff; margin: 12px 0 18px; }
.hero h1 .gold { color: var(--gold); }
.hero .lede { font-size: 1.08em; max-width: 38em; }
.hero .btn-row { margin-top: 28px; }
.hero-badge {
  justify-self: center; width: min(320px, 66vw); height: auto; aspect-ratio: 1;
  border-radius: 50%; border: 5px solid var(--gold); background: #f3f1ec;
  box-shadow: 0 0 90px rgba(196, 154, 85, .25), 0 24px 50px rgba(0, 0, 0, .35);
}
.eyebrow { display: inline-block; font-size: 14px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-text); }
.hero .eyebrow, .page-head .eyebrow { color: var(--gold); }
@media (min-width: 961px) {
  .hero-grid { grid-template-columns: 1.45fr 1fr; }
}

/* inner-page title band */
.page-head { background: radial-gradient(circle at 90% 10%, rgba(196, 154, 85, .16), transparent 45%), var(--hero); color: var(--on-hero); padding: clamp(36px, 5vw, 72px) 0; }
.page-head h1 { color: #fff; margin: 10px 0 12px; }
.page-head p { max-width: 42em; margin: 0; font-size: 1.05em; }
.page-head .updated { margin-top: 10px; font-size: 15px; }

/* ---------- sections ---------- */
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section-alt { background: var(--cream); }
.section-head { max-width: 46em; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head p:last-child { margin-bottom: 0; color: var(--muted); }

.grid { display: grid; gap: 20px; }
@media (min-width: 701px) {
  .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 961px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 2.4vw, 30px); }
.card p { color: var(--muted); }
.card p:last-child { margin-bottom: 0; }
.card ul { color: var(--muted); margin: 0; }
.card li + li { margin-top: 4px; }
a.card { display: flex; flex-direction: column; align-items: flex-start; text-decoration: none; color: inherit; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
a.card:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(13, 24, 48, .08); }
.card .more { display: inline-block; margin-top: auto; padding-top: 12px; color: var(--gold-text); font-weight: 600; font-size: 15px; }
.ic { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--gold-soft); color: var(--navy); margin-bottom: 18px; }
.ic svg { width: 28px; height: 28px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 14px 0 0; list-style: none; }
.chips li { margin: 0; padding: 6px 14px; border-radius: 999px; background: var(--gold-soft); color: var(--navy); font-size: 15px; font-weight: 500; }
.card .chips li + li { margin-top: 0; }

/* why-NDL tick list */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.ticks li { display: flex; gap: 14px; align-items: flex-start; }
.ticks li::before {
  content: ""; flex: none; width: 28px; height: 28px; margin-top: 1px; border-radius: 50%;
  background: var(--gold-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a6526' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.ticks b { color: var(--navy); }

/* split: text + media side by side from iPad landscape up */
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 961px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } }

/* promo video (vertical 9:16) */
.video-frame { justify-self: center; width: min(340px, 100%); border-radius: 22px; overflow: hidden; background: var(--hero); border: 4px solid var(--gold); box-shadow: 0 24px 50px rgba(13, 24, 48, .25); }
.video-frame video { width: 100%; height: auto; aspect-ratio: 9 / 16; }

/* community rates band */
.band { background: var(--gold-soft); border-radius: var(--radius); padding: clamp(24px, 4vw, 48px); display: grid; gap: 22px; align-items: center; }
.band h2 { margin-bottom: 8px; }
.band p { margin: 0; }
@media (min-width: 961px) { .band { grid-template-columns: 1fr auto; } }

/* how-we-work steps */
.step { position: relative; padding-top: 58px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; background: var(--navy); color: var(--gold); font-weight: 700;
}
.steps { counter-reset: step; }
.step p { color: var(--muted); margin: 0; }

/* service detail blocks (services page) */
.service { display: grid; gap: 18px; padding: clamp(28px, 4vw, 44px) 0; border-bottom: 1px solid var(--line); }
.service:last-child { border-bottom: 0; }
.service .ic { margin-bottom: 0; }
.service p { color: var(--muted); }
.service > ul { margin: 0; color: var(--muted); }
.service > ul li + li { margin-top: 6px; }
.service > ul b { color: var(--ink); font-weight: 600; }
@media (min-width: 961px) { .service { grid-template-columns: 54px 1fr 1fr; gap: 28px 36px; align-items: start; } }

/* contact page */
.contact-cards { display: grid; gap: 20px; }
@media (min-width: 701px) { .contact-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 961px) { .contact-cards { grid-template-columns: repeat(3, 1fr); } }
.contact-cards .card { display: flex; flex-direction: column; }
.contact-cards .card .btn { margin-top: auto; align-self: flex-start; }
.contact-cards .value { color: var(--navy); font-weight: 600; font-size: 1.08em; margin-bottom: 16px; }
.dl { margin: 0; display: grid; gap: 12px; }
.dl div { display: grid; gap: 2px; }
.dl dt { font-size: 14px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.dl dd { margin: 0; color: var(--ink); }
@media (min-width: 701px) { .dl div { grid-template-columns: 180px 1fr; gap: 16px; } }

/* long-form policy pages */
.prose { padding: clamp(36px, 5vw, 64px) 0; }
.prose h2 { font-size: clamp(22px, 1vw + 18px, 28px); margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose li + li { margin-top: 6px; }
.prose .toc { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; }
.prose .toc h2 { margin-top: 0; font-size: 20px; }
.prose .toc ol { margin: 0; columns: 1; }
@media (min-width: 701px) { .prose .toc ol { columns: 2; column-gap: 40px; } }
.summary { background: var(--gold-soft); border-radius: var(--radius); padding: 20px 24px; }
.summary ul { margin: 0; }
.note { font-size: 15px; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { background: var(--hero); color: var(--on-hero); padding: 56px 0 28px; font-size: 15px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.site-footer h4 { color: var(--gold); font-size: 14px; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid { display: grid; gap: 32px; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; margin-bottom: 12px; }
.footer-brand img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--gold); }
.footer-bottom { border-top: 1px solid rgba(185, 196, 218, .2); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
@media (min-width: 701px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 961px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }

/* sticky message/email bar on phones, so contact is one tap away */
.quick-bar { display: none; }
@media (max-width: 700px) {
  .quick-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line);
  }
  .quick-bar .btn { width: 100%; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .header-cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, a.card { transition: none; }
  .btn:hover, a.card:hover { transform: none; }
}
