/* ============================================================================
   Promotional Book Company - design system
   Blue-led palette (client brief), bookish serif display + clean sans body.
   ========================================================================== */

:root {
  /* Brand blues, pulled from the navy logo mark */
  --navy: #14245c;
  --navy-900: #0f1d4a;
  --brand: #1d4ed8;      /* primary action blue */
  --brand-600: #2563eb;
  --brand-700: #1736a3;
  --brand-tint: #eef3ff; /* pale blue surface */
  --sky: #dbe6ff;

  /* Support accents */
  --gold: #f4a621;       /* warmth / "high margin" energy, used sparingly */
  --gold-dark: #d98a09;
  --green: #12996a;      /* trust / guaranteed-sale */
  --green-tint: #e4f6ee;

  /* Neutrals */
  --ink: #16223d;
  --body: #3a475f;
  --muted: #6b7994;
  --line: #e3e8f2;
  --paper: #ffffff;
  --surface: #f5f8fd;
  --surface-2: #eef2fa;

  /* Type */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Shape & depth */
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(20, 36, 92, 0.06), 0 2px 6px rgba(20, 36, 92, 0.05);
  --shadow: 0 6px 18px rgba(20, 36, 92, 0.09), 0 2px 6px rgba(20, 36, 92, 0.05);
  --shadow-lg: 0 24px 60px rgba(15, 29, 74, 0.18), 0 8px 24px rgba(15, 29, 74, 0.1);

  --wrap: 1160px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
}

/* ----- reset-ish ----- */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* Smooth anchor scrolling, but only for users who haven't asked for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  html:focus-within { scroll-behavior: smooth; }
}
/* Offset anchor targets so the sticky header doesn't cover them. */
[id] { scroll-margin-top: 96px; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--body);
  background: var(--paper);
  line-height: 1.6;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--brand-700); text-decoration-color: color-mix(in srgb, var(--brand) 35%, transparent); text-underline-offset: 2px; }
h1, h2, h3, h4 { color: var(--ink); font-family: var(--display); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 0.5em; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; }

.sr-only,
.skip-link {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; top: 12px; left: 12px; width: auto; height: auto; clip: auto;
  background: var(--navy); color: #fff; padding: 0.6rem 1rem; border-radius: var(--r-sm); z-index: 200;
}
:focus-visible { outline: 3px solid var(--brand-600); outline-offset: 2px; border-radius: 4px; }

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

/* ============================================================================
   Buttons
   ========================================================================== */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--sans); font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 0.95rem 1.5rem; border-radius: var(--r-pill); border: 1px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg); cursor: pointer;
  text-decoration: none; white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--btn-bg) 30%, transparent);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px color-mix(in srgb, var(--btn-bg) 34%, transparent); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 0.62rem 1.05rem; font-size: 0.92rem; }
.btn-lg { padding: 1.1rem 1.9rem; font-size: 1.08rem; }
.btn-primary { --btn-bg: var(--brand); }
.btn-gold { --btn-bg: var(--gold); --btn-fg: #422c02; }
.btn-navy { --btn-bg: var(--navy); }
.btn-ghost {
  --btn-bg: transparent; --btn-fg: var(--brand-700);
  border-color: color-mix(in srgb, var(--brand) 30%, transparent); box-shadow: none;
}
.btn-ghost:hover { background: var(--brand-tint); box-shadow: none; }
.btn-white { --btn-bg: #fff; --btn-fg: var(--navy); }
.btn-outline-light {
  --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255, 255, 255, 0.5); box-shadow: none;
}
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); box-shadow: none; }
.btn .ico { width: 1.15em; height: 1.15em; }

/* ============================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.site-header[data-scrolled] { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand img { width: 180px; height: auto; }
.primary-nav { display: flex; align-items: center; }
.nav-menu { list-style: none; display: flex; align-items: center; gap: 0.35rem; }
.nav-menu > li > a:not(.btn) {
  display: inline-block; padding: 0.55rem 0.85rem; border-radius: var(--r-sm);
  color: var(--navy); font-weight: 600; font-size: 0.96rem; text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-menu > li > a:not(.btn):hover { background: var(--brand-tint); color: var(--brand-700); }
.nav-menu > li > a[aria-current="page"] { color: var(--brand-700); background: var(--brand-tint); }
.nav-cta-item { margin-left: 0.4rem; }
.nav-toggle { display: none; }

/* ============================================================================
   Section rhythm & shared bits
   ========================================================================== */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-tint { background: var(--surface); }
.section-navy { background: var(--navy); color: #cdd8f4; }
.section-navy h2, .section-navy h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--sans); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--brand-700);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--gold); border-radius: 2px; }
.section-navy .eyebrow { color: var(--gold); }

.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-top: 0.6rem; }
.section-head p { font-size: 1.1rem; color: var(--muted); }
.section-navy .section-head p { color: #a9b8e0; }

h1, h2 { text-wrap: balance; }
.lead { font-size: 1.2rem; color: var(--body); }

/* ============================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% -10%, var(--sky), transparent 60%),
    linear-gradient(180deg, var(--brand-tint), var(--paper) 78%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center; padding: clamp(2.6rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5.5rem);
}
.hero-copy h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); color: var(--navy); font-weight: 600; }
.hero-copy h1 em { font-style: normal; color: var(--brand); position: relative; white-space: nowrap; }
.hero-copy h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.03em; height: 0.16em;
  background: color-mix(in srgb, var(--gold) 65%, transparent); z-index: -1; border-radius: 3px;
}
.hero-sub { font-size: 1.18rem; color: var(--body); max-width: 34rem; margin-top: 1.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.hero-trust .ht { display: flex; flex-direction: column; }
.hero-trust .ht b { font-family: var(--display); font-size: 1.5rem; color: var(--navy); line-height: 1; }
.hero-trust .ht span { font-size: 0.82rem; color: var(--muted); margin-top: 0.25rem; }

.hero-media { position: relative; }
.hero-photo {
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg); width: 100%;
  aspect-ratio: 4 / 5; object-fit: cover; transform: rotate(1.4deg);
  border: 6px solid #fff;
}
.badge-float {
  position: absolute; background: #fff; border-radius: var(--r); box-shadow: var(--shadow-lg);
  padding: 0.75rem 1.15rem; font-weight: 600; color: var(--navy); font-size: 0.92rem;
  text-align: center; line-height: 1.3;
}
.badge-float .dot { width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; color: #fff; font-family: var(--display); font-size: 0.8rem; line-height: 1; text-align: center; }
.badge-guarantee { top: 8%; left: -4%; }
.badge-guarantee .dot { background: var(--green); flex-direction: column; font-weight: 700; }
.badge-since { bottom: 7%; right: -5%; }
.badge-since .dot { background: var(--brand); }


/* ============================================================================
   HERO v2 (wow) - living cover wall
   ========================================================================== */
.hero2 { position: relative; overflow: hidden; background: var(--paper); isolation: isolate; }
.hero2-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; background:
  linear-gradient(180deg, var(--brand-tint), #ffffff 70%); }
/* Soft ambient tints. Fade to transparent well before the element edge so there is
   no visible disc, and stay low-opacity so they read as a wash, not a circle. */
.hero2-bg .blob { position: absolute; border-radius: 50%; opacity: 0.5; }
.hero2-bg .b1 { width: 760px; height: 760px; top: -320px; right: -260px;
  background: radial-gradient(circle at 50% 50%, #d3e1ff, transparent 55%); }
.hero2-bg .b2 { width: 560px; height: 560px; bottom: -300px; left: -200px;
  background: radial-gradient(circle at 50% 50%, #e2ebff, transparent 55%); }

.hero2-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center; padding: clamp(2.4rem, 5vw, 4.2rem) 0 clamp(2.8rem, 5vw, 4.4rem); }
.hero2-copy h1 { font-size: clamp(2.15rem, 4.6vw, 3.5rem); color: var(--navy); font-weight: 600; letter-spacing: -0.015em; }
.hero2-copy h1 .grad { background: linear-gradient(100deg, var(--brand), #4f7bf0 55%, var(--brand-700));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero2-sub { font-size: 1.2rem; color: var(--body); max-width: 34rem; margin-top: 1.25rem; }
.hero2-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.9rem; }

/* animated metric counters */
.metrics { display: grid; grid-template-columns: repeat(4, auto); gap: 1.5rem 2.1rem; margin-top: 2.2rem;
  padding-top: 1.7rem; border-top: 1px solid var(--line); }
.metric b { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--navy); line-height: 1; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.metric span { display: block; font-size: 0.82rem; color: var(--muted); margin-top: 0.35rem; max-width: 8.5rem; }

/* The book fan: the PBC logo mark (three fanned books) at hero scale, dealt from
   the deck once on load. Cards pivot from a point well below their bottom edge so
   they open like a hand of cards, then rest. Hover lifts a single title. */
.book-fan { position: relative; height: clamp(470px, 48vw, 620px); }
.book-fan::before { content: ""; position: absolute; left: 50%; bottom: 128px;
  width: 82%; height: 44px; transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(15, 29, 74, 0.22), transparent 72%); }
.fan-card { position: absolute; left: 50%; bottom: 168px;
  width: clamp(160px, 15.5vw, 212px); aspect-ratio: 3 / 4;
  margin-left: calc(clamp(160px, 15.5vw, 212px) / -2);
  transform-origin: 50% 135%;
  transform: rotate(var(--r));
  border-radius: 12px; border: 4px solid #fff; background: #fff; overflow: hidden;
  box-shadow: 0 12px 26px rgba(15, 29, 74, 0.18), 0 2px 8px rgba(15, 29, 74, 0.12);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.28s ease;
}
.fan-card img { width: 100%; height: 100%; object-fit: cover; }
.fan-card:hover { transform: rotate(var(--r)) translateY(-18px) scale(1.05);
  box-shadow: 0 24px 48px rgba(15, 29, 74, 0.26), 0 5px 14px rgba(15, 29, 74, 0.15);
  z-index: 12 !important; }

.hero2-media { position: relative; }
.hero2-media .badge-float { z-index: 13; }
.badge-guarantee2 { top: 9%; left: -2%; }
.badge-since2 { bottom: 6%; right: -2%; }

/* ============================================================================
   Pillars band: the promise in one quiet navy line
   ========================================================================== */
.pillars-band { background: var(--navy); padding: clamp(1.5rem, 3vw, 2.1rem) 0; }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem 2rem; }
.pillar { display: flex; gap: 0.8rem; align-items: flex-start;
  padding-left: 1.6rem; border-left: 1px solid rgba(255, 255, 255, 0.14); }
.pillar:first-child { border-left: 0; padding-left: 0; }
.pillar .pk { color: var(--gold); flex: none; margin-top: 0.2rem; }
.pillar b { display: block; color: #fff; font-size: 1rem; letter-spacing: 0.01em; }
.pillar span { display: block; color: #a9b8e0; font-size: 0.86rem; margin-top: 0.15rem; }

/* ============================================================================
   Value props / "why" cards
   ========================================================================== */
.card-grid { display: grid; gap: 1.3rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.why-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.6rem; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--sky); }
.why-card .num { font-family: var(--display); font-size: 0.9rem; font-weight: 700; color: var(--brand); }
.why-icon {
  width: 3rem; height: 3rem; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-tint); color: var(--brand-700); margin-bottom: 1rem;
}
.why-icon svg { width: 1.5rem; height: 1.5rem; }
.why-card h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.why-card p { font-size: 0.98rem; color: var(--body); margin: 0; }

/* ============================================================================
   Programs
   ========================================================================== */
.prog-card {
  display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.prog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.prog-cover { position: relative; aspect-ratio: 16 / 11; overflow: hidden;
  background: linear-gradient(150deg, var(--surface), var(--brand-tint));
  display: grid; place-items: center; padding: 1.1rem; }
/* Contain the cover (small source art) so it stays crisp and floats on the tint,
   instead of cropping+upscaling it into a blurry strip. */
.prog-cover img { max-width: 66%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  border-radius: 6px; box-shadow: 0 8px 20px rgba(20, 36, 92, 0.22), 0 2px 6px rgba(20, 36, 92, 0.13);
  transition: transform 0.3s ease; }
.prog-card:hover .prog-cover img { transform: translateY(-4px) scale(1.04); }
.prog-cover .tag {
  position: absolute; top: 0.8rem; left: 0.8rem; background: rgba(20, 36, 92, 0.88); color: #fff;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.32rem 0.7rem; border-radius: var(--r-pill);
}
.prog-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.prog-body h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.prog-body p { font-size: 0.96rem; color: var(--body); margin-bottom: 1rem; }
.prog-body .link-arrow { margin-top: auto; }

.link-arrow { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; text-decoration: none; color: var(--brand-700); }
.link-arrow svg { transition: transform 0.15s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* cover grid (programs detail) */
.cover-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 1.5rem 1.3rem; }
.cover {
  background: transparent; border: 0; border-radius: var(--r); padding: 0;
  cursor: zoom-in; transition: transform 0.18s ease; display: flex; flex-direction: column;
}
.cover:hover { transform: translateY(-6px); }
/* Each cover floats on the page with its own drop-shadow, so covers of any
   aspect ratio look intentional instead of letterboxed inside a grey box. */
.cover-img { aspect-ratio: 3 / 4; display: grid; place-items: center; padding: 4px; }
.cover-img img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  border-radius: 4px; box-shadow: 0 6px 16px rgba(20, 36, 92, 0.16), 0 1px 3px rgba(20, 36, 92, 0.12);
  transition: box-shadow 0.18s ease;
}
.cover:hover .cover-img img { box-shadow: 0 16px 30px rgba(20, 36, 92, 0.22), 0 3px 8px rgba(20, 36, 92, 0.14); }
.cover-cap { font-size: 0.82rem; color: var(--muted); text-align: center; margin: 0.7rem 0 0; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ============================================================================
   Guarantee band
   ========================================================================== */
.guarantee {
  background:
    radial-gradient(700px 300px at 12% 20%, color-mix(in srgb, var(--green) 22%, transparent), transparent 70%),
    var(--navy);
  color: #dce6ff; text-align: center;
}
.guarantee .seal {
  width: 118px; height: 118px; border-radius: 50%; margin: 0 auto 1.5rem; display: grid; place-items: center;
  background: var(--green); color: #fff;
  font-family: var(--display); font-weight: 700; line-height: 0.95; text-align: center; position: relative;
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--green) 24%, transparent), 0 18px 40px rgba(18,153,106,.35);
}
.guarantee .seal::before, .guarantee .seal::after { content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--green) 55%, transparent); animation: ripple 3.4s ease-out infinite; }
.guarantee .seal::after { animation-delay: 1.7s; }
@keyframes ripple { 0% { transform: scale(1); opacity: .7 } 100% { transform: scale(1.7); opacity: 0 } }
.guarantee .seal b { font-size: 1.9rem; display: block; }
.guarantee .seal span { font-size: 0.7rem; letter-spacing: 0.05em; text-transform: uppercase; }
.guarantee h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); color: #fff; }
.guarantee .eyebrow { color: var(--gold); }
.guarantee p { max-width: 40rem; margin-inline: auto; color: #aebbe2; font-size: 1.1rem; }

/* ============================================================================
   Stats / KPI row
   ========================================================================== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.stat { text-align: center; padding: 1.2rem 0.8rem; }
.stat b { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 4vw, 2.7rem); color: var(--navy); line-height: 1; }
.stat span { display: block; margin-top: 0.5rem; color: var(--muted); font-size: 0.92rem; font-weight: 500; }
.section-navy .stat b { color: #fff; }
.section-navy .stat span { color: #a9b8e0; }

/* ============================================================================
   "As seen in" strip
   ========================================================================== */
.seen { text-align: center; }
.seen .label { font-size: 0.82rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 1.1rem; }
.seen-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem 1rem; }
.seen-list li {
  list-style: none; padding: 0.55rem 1.1rem; border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--paper); color: var(--navy); font-weight: 600; font-size: 0.95rem; box-shadow: var(--shadow-sm);
}

/* ============================================================================
   CTA band
   ========================================================================== */
.cta-band {
  background: linear-gradient(120deg, var(--brand-700), var(--brand)); color: #fff; border-radius: var(--r-lg);
  padding: clamp(2.2rem, 5vw, 3.4rem); text-align: center; box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.cta-band::before,
.cta-band::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.08); }
.cta-band::before { width: 260px; height: 260px; top: -110px; right: -60px; }
.cta-band::after { width: 180px; height: 180px; bottom: -90px; left: -40px; }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); position: relative; }
.cta-band p { color: #dce6ff; max-width: 38rem; margin: 0.6rem auto 1.6rem; position: relative; font-size: 1.1rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; position: relative; }

/* ============================================================================
   Page hero (interior pages)
   ========================================================================== */
.page-hero { position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, var(--brand-tint), var(--paper) 82%);
  padding: clamp(2.6rem, 6vw, 4.6rem) 0 clamp(2.2rem, 5vw, 3.6rem); }
.page-hero::before, .page-hero::after { content: ""; position: absolute; border-radius: 50%; z-index: -1; }
.page-hero::before { width: 540px; height: 540px; top: -250px; right: -130px;
  background: radial-gradient(circle at 40% 40%, #c3d5ff, transparent 70%); opacity: 0.6; }
.page-hero::after { width: 460px; height: 460px; bottom: -280px; left: -150px;
  background: radial-gradient(circle, #dce7ff, transparent 70%); opacity: 0.55; }
.page-hero .eyebrow { margin-bottom: 0.7rem; }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); color: var(--navy); font-weight: 600; letter-spacing: -0.015em; }
.page-hero p { font-size: 1.16rem; color: var(--body); max-width: 42rem; }

/* two-column interior header (text + visual) */
.page-hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(2rem, 5vw, 3.6rem); align-items: center; }
.page-hero-grid p { max-width: 34rem; }

/* tilted cover collage (Programs) */
.hdr-covers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px;
  transform: rotate(-5deg) scale(1.04); transform-origin: center;
  -webkit-mask: radial-gradient(130% 130% at 50% 45%, #000 62%, transparent);
          mask: radial-gradient(130% 130% at 50% 45%, #000 62%, transparent); }
.hdr-covers img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 10px;
  box-shadow: var(--shadow); border: 3px solid #fff; background: #fff; transition: transform 0.25s ease; }
.hdr-covers img:hover { transform: translateY(-5px) scale(1.03); }

/* framed photo (About / Fixtures) */
.hdr-photo { position: relative; }
.hdr-photo > img { width: 100%; aspect-ratio: 5/4; object-fit: cover; border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); border: 6px solid #fff; transform: rotate(1.2deg); }
.hdr-badge { position: absolute; bottom: -14px; left: -14px; background: #fff; border-radius: var(--r);
  box-shadow: var(--shadow-lg); padding: 0.8rem 1.1rem; display: flex; align-items: center; gap: 0.7rem; }
.hdr-badge .hb-n { font-family: var(--display); font-weight: 700; font-size: 1.7rem; color: var(--brand); line-height: 1; }
.hdr-badge span { font-size: 0.82rem; color: var(--muted); max-width: 8rem; }
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--muted); }

/* ============================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy-900); color: #aeb9d6; padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr 1.2fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer-logo { background: #fff; padding: 0.9rem 1.1rem; border-radius: var(--r); width: 232px; height: auto; }
.footer-tag { margin-top: 1rem; font-size: 0.95rem; color: #9aa6c6; }
.footer-flag { font-size: 0.9rem; color: #c3cde6; margin-top: 0.4rem; }
.site-footer h3 { color: #fff; font-family: var(--sans); font-size: 0.82rem; letter-spacing: 0.09em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { color: #aeb9d6; text-decoration: none; font-size: 0.96rem; }
.footer-col a:hover { color: #fff; }
.footer-contacts li { display: flex; flex-direction: column; gap: 0.1rem; margin-bottom: 0.9rem; }
.fc-role { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold); font-weight: 700; }
.footer-address { font-style: normal; font-size: 0.96rem; color: #aeb9d6; margin-bottom: 1rem; line-height: 1.6; }
.footer-base { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.6rem; padding: 1.4rem 0; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.86rem; color: #8b97b8; }
.footer-built { font-family: var(--display); font-style: italic; color: #c3cde6; }

/* ============================================================================
   Forms (contact)
   ========================================================================== */
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.6rem, 4vw, 2.6rem); box-shadow: var(--shadow); }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 600; color: var(--ink); font-size: 0.92rem; margin-bottom: 0.4rem; }
.field .req { color: var(--brand); }
.field input,
.field textarea,
.field select {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: 0.8rem 0.95rem; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.field input:focus,
.field textarea:focus,
.field select:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent); }
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { font-size: 0.86rem; color: var(--muted); }
.form-status { display: none; padding: 0.9rem 1.1rem; border-radius: var(--r-sm); margin-bottom: 1rem; font-weight: 500; }
.form-status.is-success { display: block; background: var(--green-tint); color: #0b5a3d; border: 1px solid color-mix(in srgb, var(--green) 40%, transparent); }
.form-status.is-error { display: block; background: #fdecec; color: #98211b; border: 1px solid #f3b6b2; }

.contact-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { display: flex; gap: 1rem; align-items: flex-start; padding: 1.3rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); }
.contact-card .ci { width: 2.8rem; height: 2.8rem; border-radius: 10px; background: var(--brand-tint); color: var(--brand-700); display: grid; place-items: center; flex-shrink: 0; }
.contact-card .cr { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 700; }
.contact-card h3 { font-size: 1.1rem; margin: 0.15rem 0 0.3rem; font-family: var(--sans); }
.contact-card a { display: block; font-size: 0.95rem; text-decoration: none; }

/* ============================================================================
   Steps (how it works)
   ========================================================================== */
.steps { display: grid; gap: 1.1rem; counter-reset: step; }
.step { display: flex; gap: 1.2rem; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.4rem 1.6rem; box-shadow: var(--shadow-sm); }
.step .step-n { counter-increment: step; flex-shrink: 0; width: 2.9rem; height: 2.9rem; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 1.25rem; }
.step .step-n::before { content: counter(step); }
.step h3 { font-size: 1.15rem; margin-bottom: 0.3rem; font-family: var(--sans); }
.step p { margin: 0; font-size: 0.98rem; }
.step-repeat { text-align: center; font-family: var(--display); font-style: italic; color: var(--brand-700); font-size: 1.15rem; margin-top: 0.4rem; }

/* pill list */
.pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pills li { list-style: none; padding: 0.45rem 0.9rem; background: var(--brand-tint); color: var(--brand-700); border-radius: var(--r-pill); font-size: 0.9rem; font-weight: 600; }

/* checklist */
.checklist { display: grid; gap: 0.7rem; }
.checklist li { list-style: none; display: flex; gap: 0.7rem; align-items: flex-start; font-size: 1rem; color: var(--body); }
.checklist li svg { flex-shrink: 0; color: var(--green); margin-top: 0.15rem; }

/* two-col feature */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.feature img { border-radius: var(--r-lg); box-shadow: var(--shadow); }
.feature-media { position: relative; }
/* Frame for low-resolution product photos: shown near native size, centered,
   so they read as a crisp product shot rather than an upscaled, pixelated fill. */
.lowres-frame { display: grid; place-items: center; padding: clamp(1rem, 3vw, 2rem); }
.lowres-frame img { max-width: 250px; width: 100%; height: auto; border-radius: var(--r);
  box-shadow: var(--shadow-lg); border: 5px solid #fff; }

/* ============================================================================
   Lightbox
   ========================================================================== */
.lightbox { position: fixed; inset: 0; z-index: 300; display: none; place-items: center; padding: 5vw; background: rgba(11, 21, 55, 0.86); backdrop-filter: blur(6px); }
.lightbox[open], .lightbox.is-open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: var(--r); box-shadow: var(--shadow-lg); border: 5px solid #fff; }
.lightbox .lb-cap { position: absolute; bottom: 4vw; left: 0; right: 0; text-align: center; color: #fff; font-weight: 500; }
.lightbox .lb-close { position: absolute; top: 4vw; right: 5vw; width: 3rem; height: 3rem; border-radius: 50%; border: none; background: #fff; color: var(--navy); font-size: 1.4rem; cursor: pointer; display: grid; place-items: center; }

/* ============================================================================
   Utilities
   ========================================================================== */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.stack > * + * { margin-top: 1rem; }
.muted { color: var(--muted); }
.hide { display: none; }

/* reveal-on-scroll: only hide when JS is present to bring it back, and never for reduced-motion users */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}

/* Respect reduced motion: no ambient animation; the fan renders already open. */
@media (prefers-reduced-motion: reduce) {
  .guarantee .seal::before, .guarantee .seal::after { animation: none !important; }
}

/* ============================================================================
   Responsive
   ========================================================================== */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 420px; margin-inline: auto; }
  .hero2-grid { grid-template-columns: 1fr; }
  .hero2-media { max-width: 460px; margin-inline: auto; width: 100%; }
  .book-fan { height: 380px; }
  .metrics { grid-template-columns: repeat(4, auto); gap: 1.2rem 1.6rem; }
  .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero-grid .hdr-visual { max-width: 460px; margin-inline: auto; width: 100%; order: -1; }
  .hdr-covers { transform: rotate(-4deg) scale(1); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .feature { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle {
    display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-sm);
    border: 1px solid var(--line); background: #fff; cursor: pointer; position: relative; z-index: 120;
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; display: block; width: 20px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
  .nav-toggle-bar::before { position: absolute; transform: translateY(-6px); }
  .nav-toggle-bar::after { position: absolute; transform: translateY(6px); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: rotate(-45deg); }
  .nav-menu {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0.2rem;
    background: #fff; padding: 1rem var(--gutter) 1.6rem; box-shadow: var(--shadow-lg); border-bottom: 1px solid var(--line);
    transform: translateY(-140%); transition: transform 0.28s ease; max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .nav-menu[data-open] { transform: none; }
  .nav-menu > li > a:not(.btn) { display: block; padding: 0.8rem 0.9rem; font-size: 1.05rem; }
  .nav-cta-item { margin: 0.6rem 0 0; }
  .nav-cta-item .btn { width: 100%; justify-content: center; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-trust { gap: 1rem; }
  .badge-guarantee { left: 0; }
  .badge-since { right: 0; }
  .metrics { grid-template-columns: repeat(2, 1fr); gap: 1.3rem 1rem; }
  .book-fan { height: 380px; }
  .book-fan::before { bottom: 76px; }
  .fan-card { bottom: 104px; width: clamp(128px, 33vw, 168px); margin-left: calc(clamp(128px, 33vw, 168px) / -2); }
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillar { border-left: 0; padding-left: 0; }
  .badge-guarantee2 { left: 0; } .badge-since2 { right: 0; }
}
