/* ============================================================
   NURSE EXAM HELP — base.css
   Design system: hardcore athletic language, clinical-blue palette.
   Surfaces: deep navy-black. Accent: electric blue. Support: steel silver.
   Radius lock: 0 everywhere (sharp, deliberate).
   Z-scale: nav 40 · float 45 · modal-free · grain 60.
   ============================================================ */

/* ---------- Fonts (self-hosted, latin) ---------- */
@font-face {
  font-family: 'Archivo Black';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/archivo-black-v23-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/barlow-condensed-v13-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/barlow-condensed-v13-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/barlow-condensed-v13-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/barlow-condensed-v13-latin-700.woff2') format('woff2');
}

/* ---------- Tokens (light bluish theme) ---------- */
:root {
  --bg-0: #F6FAFD;      /* page base — ice white */
  --bg-1: #EAF2FA;      /* alt section band — pale blue */
  --bg-2: #FFFFFF;      /* cards */
  --bg-3: #D9EAF9;      /* hover cards — light blue */
  --ink: #0C2238;       /* primary text — deep navy */
  --silver: #46586C;    /* secondary text — steel */
  --dim: #5F7590;       /* tertiary text */
  --accent: #0E7BE8;    /* electric blue */
  --accent-2: #66D0FF;  /* cyan highlight / tints */
  --accent-deep: #0A65C9; /* hover blue */
  --accent-ink: #FFFFFF;/* text on accent */
  --line: rgba(16, 45, 80, 0.14);
  --line-strong: rgba(16, 45, 80, 0.32);

  --font-display: 'Archivo Black', 'Arial Black', sans-serif;
  --font-body: 'Barlow Condensed', 'Arial Narrow', sans-serif;

  --pad-x: clamp(1rem, 4vw, 4rem);
  --nav-h: 68px;
  --ease-snap: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-band: cubic-bezier(0.22, 1.2, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-0);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Type ---------- */
h1, h2, h3, .brand-word {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.01em;
}
em { font-style: normal; color: var(--accent); }
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Buttons (single booking label: BOOK MY SESSION) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease-snap), background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-solid { background: var(--accent); color: var(--accent-ink); }
.btn-solid:hover { background: var(--accent-deep); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { font-size: 14px; padding: 9px 16px; }
.btn-lg { font-size: 18px; padding: 15px 30px; }
.btn-xl { font-size: 22px; padding: 20px 44px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
.nav.is-solid {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--line);
  backdrop-filter: blur(10px);
}
.nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  height: var(--nav-h);
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.65rem; color: var(--ink); }
.brand-mark { width: 30px; height: 30px; color: var(--ink); flex: none; }
.brand-word { font-size: 17px; letter-spacing: 0.04em; }
.brand-word em { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links > a:not(.btn) {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 15px;
  color: var(--silver);
  transition: color 0.2s;
}
.nav-links > a:not(.btn):hover { color: var(--accent); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); transition: transform 0.3s var(--ease-snap), opacity 0.2s; }
.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); }

/* ---------- Grain overlay (fixed, pointer-events none, parallax target) ---------- */
.grain {
  position: fixed;
  inset: -40px;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  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%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  will-change: transform;
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-1); }
.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 3.5rem var(--pad-x);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-brand p { color: var(--silver); max-width: 34ch; margin-top: 0.9rem; }
.footer-domain {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 15px;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}
.footer-domain:hover { color: var(--accent-deep); border-color: var(--accent-deep); }
.footer-col { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col h3 { font-size: 15px; color: var(--accent); letter-spacing: 0.14em; margin-bottom: 0.4rem; }
.footer-col a, .footer-col span { color: var(--silver); font-weight: 500; }
.footer-col a:hover { color: var(--ink); }
.footer-bar {
  border-top: 1px solid var(--line);
  padding: 1.1rem var(--pad-x);
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 15px;
  color: var(--dim);
}
.footer-bar a:hover { color: var(--accent); }

/* ---------- Reveal system (staggered fade + rise) ---------- */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s var(--ease-snap), transform 0.7s var(--ease-snap);
    transition-delay: calc(var(--d, 0) * 80ms);
  }
  [data-reveal].is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Small screens: nav collapse ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s var(--ease-snap);
  }
  .nav-links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links > a { padding: 1rem var(--pad-x); border-top: 1px solid var(--line); font-size: 18px; }
  .nav-links > a:not(.btn):hover { background: var(--bg-1); }
  .nav-links .btn { margin: 0.9rem var(--pad-x); }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bar { flex-direction: column; align-items: flex-start; }
}
