/* ==========================================================================
   EduPhase Assessments & Moderations — Production Stylesheet
   Brand: Navy + Gold + Ivory · Editorial Academic
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Brand palette (sampled from logo) */
  --navy-950: #061129;
  --navy-900: #0A1A3A;
  --navy-800: #122A52;
  --navy-700: #1E3A6F;
  --navy-600: #2A4D8C;
  --gold-700: #A8862C;
  --gold-600: #C9A33A;
  --gold-500: #D4B254;
  --gold-400: #E0C575;
  --gold-100: #F6EEDA;

  /* Neutrals */
  --ivory: #FDFBF5;
  --cream: #FAF5E9;
  --paper: #FFFDF7;
  --stone-100: #F2EFE7;
  --stone-200: #E5E1D5;
  --stone-300: #CFC9B8;
  --stone-500: #807A6A;
  --stone-700: #4A4638;
  --ink: #15181F;

  /* Semantic */
  --bg: var(--ivory);
  --bg-elev: var(--paper);
  --surface-dark: var(--navy-900);
  --text: var(--ink);
  --text-muted: var(--stone-500);
  --text-inverse: var(--ivory);
  --accent: var(--gold-600);
  --accent-strong: var(--gold-700);
  --border: var(--stone-200);
  --border-strong: var(--stone-300);

  /* Type */
  --font-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Fluid type scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: clamp(1.25rem, 0.9rem + 0.5vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  --text-3xl: clamp(2rem, 1.5rem + 1.5vw, 2.75rem);
  --text-4xl: clamp(2.5rem, 1.8rem + 2.5vw, 3.75rem);
  --text-hero: clamp(2.75rem, 1.4rem + 5.5vw, 5.5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-section: clamp(4rem, 3rem + 4vw, 8rem);

  /* Radius */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-xl: 22px;
  --r-pill: 999px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(10, 26, 58, 0.06);
  --shadow-md: 0 8px 24px rgba(10, 26, 58, 0.08);
  --shadow-lg: 0 18px 48px rgba(10, 26, 58, 0.12);
  --shadow-gold: 0 12px 28px rgba(201, 163, 58, 0.25);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 180ms;
  --dur-normal: 320ms;
  --dur-slow: 600ms;

  /* Layout */
  --container: 1200px;
  --container-narrow: 880px;
  --container-wide: 1320px;
  --gutter: clamp(1.25rem, 1rem + 1.5vw, 2.5rem);
}

/* ---------- Reset / Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg { max-width: 100%; display: block; height: auto; }

a {
  color: var(--navy-800);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
a:hover { color: var(--gold-700); }

ul, ol { padding-left: 1.25em; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  color: var(--navy-900);
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: var(--text-hero); font-weight: 500; letter-spacing: -0.02em; }
h2 { font-size: var(--text-4xl); font-weight: 500; }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p { margin: 0 0 1em; }
.lead {
  font-size: var(--text-lg);
  line-height: 1.65;
  color: var(--stone-700);
  font-weight: 400;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-700);
  margin-bottom: var(--space-4);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold-600);
}

.serif { font-family: var(--font-display); }
.italic { font-style: italic; }
.muted { color: var(--text-muted); }
.text-center { text-align: center; }
.no-wrap { white-space: nowrap; }

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding-inline: var(--gutter); }
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding-inline: var(--gutter); }

.section { padding-block: var(--space-section); position: relative; }
.section--tight { padding-block: clamp(3rem, 2rem + 3vw, 5rem); }
.section--dark { background: var(--navy-900); color: var(--text-inverse); }
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--ivory); }
.section--dark .lead { color: rgba(253, 251, 245, 0.78); }
.section--cream { background: var(--cream); }
.section--ivory { background: var(--paper); }

.grid { display: grid; gap: var(--space-6); }
.grid-2 { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.flow > * + * { margin-top: var(--space-4); }

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong) 40%, var(--border-strong) 60%, transparent);
  border: 0;
  margin-block: var(--space-7);
}
.divider-gold {
  width: 64px;
  height: 2px;
  background: var(--gold-600);
  border: 0;
  margin: 0 0 var(--space-5);
}
.text-center .divider-gold { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.95rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--dur-normal) var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  isolation: isolate;
}
.btn:focus-visible {
  outline: 3px solid var(--gold-400);
  outline-offset: 3px;
}
.btn-primary {
  background: var(--navy-900);
  color: var(--ivory);
  border-color: var(--navy-900);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  background: var(--navy-800);
  border-color: var(--navy-800);
  transform: translateY(-2px);
  color: var(--ivory);
  box-shadow: var(--shadow-lg);
}
.btn-gold {
  background: var(--gold-600);
  color: var(--navy-900);
  border-color: var(--gold-600);
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover {
  background: var(--gold-500);
  border-color: var(--gold-500);
  transform: translateY(-2px);
  color: var(--navy-950);
}
.btn-ghost {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--navy-900);
}
.btn-ghost:hover {
  background: var(--navy-900);
  color: var(--ivory);
}
.btn-ghost-light {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(253, 251, 245, 0.4);
}
.btn-ghost-light:hover {
  background: var(--ivory);
  color: var(--navy-900);
  border-color: var(--ivory);
}
.btn-text {
  background: transparent;
  color: var(--navy-900);
  border: 0;
  padding: 0.5em 0;
  border-bottom: 1.5px solid var(--gold-600);
  border-radius: 0;
  font-weight: 600;
}
.btn-text:hover {
  color: var(--gold-700);
  border-bottom-color: var(--gold-700);
}
.btn-sm { padding: 0.65rem 1.1rem; font-size: 0.85rem; }
.btn-lg { padding: 1.1rem 2rem; font-size: 1rem; }
.btn .arrow {
  display: inline-block;
  transition: transform var(--dur-normal) var(--ease-out);
}
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Utility bar ---------- */
.utility-bar {
  background: var(--navy-950);
  color: rgba(253, 251, 245, 0.85);
  font-size: var(--text-xs);
  letter-spacing: 0.03em;
}
.utility-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding-block: 0.55rem;
  flex-wrap: wrap;
}
.utility-bar a {
  color: rgba(253, 251, 245, 0.85);
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}
.utility-bar a:hover { color: var(--gold-400); }
.utility-bar .utility-left,
.utility-bar .utility-right {
  display: flex;
  gap: var(--space-5);
  align-items: center;
  flex-wrap: wrap;
}

/* ---------- Site header / navigation ---------- */
.site-header {
  background: var(--ivory);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(140%) blur(12px);
  background-color: rgba(253, 251, 245, 0.92);
  transition: box-shadow var(--dur-normal) var(--ease-out);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.75rem;
  gap: var(--space-5);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  transition: transform var(--dur-normal) var(--ease-out);
  flex-shrink: 0;
}
.nav-brand:hover { transform: translateY(-1px); }
.nav-brand img {
  height: 132px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
  transition: height var(--dur-normal) var(--ease-out);
}
.site-header.is-scrolled .nav-brand img { height: 96px; }
.nav-brand-text { display: none; }
.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--space-5);
  align-items: center;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 0.4em 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--gold-600);
  transition: width var(--dur-normal) var(--ease-out);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--navy-900); }
.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--navy-900);
}
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(4rem, 3rem + 5vw, 8rem) clamp(4rem, 3rem + 4vw, 7rem);
  background:
    radial-gradient(ellipse 80% 70% at 80% 10%, rgba(201, 163, 58, 0.07), transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(10, 26, 58, 0.04), transparent 60%),
    var(--ivory);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(10, 26, 58, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 26, 58, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, black, transparent 75%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--space-9);
  align-items: center;
}
.hero h1 .accent {
  font-style: italic;
  color: var(--gold-700);
  font-weight: 400;
}
.hero h1 .underline {
  position: relative;
  display: inline-block;
}
.hero h1 .underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.08em;
  height: 0.15em;
  background: var(--gold-400);
  opacity: 0.55;
  z-index: -1;
}
.hero-meta {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}
.hero-meta dt {
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-700);
  font-weight: 600;
  margin: 0 0 0.25em;
}
.hero-meta dd {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--navy-900);
  margin: 0;
  font-weight: 500;
}

.hero-cta {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-6);
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: linear-gradient(155deg, var(--navy-900), var(--navy-700) 60%, var(--gold-700));
  box-shadow: var(--shadow-lg);
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.18), transparent 50%),
    radial-gradient(circle at 75% 80%, rgba(201, 163, 58, 0.4), transparent 55%);
}
.hero-visual .crest {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 12%;
}
.hero-visual .crest img {
  width: 70%;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.45));
}
.hero-visual .badge {
  position: absolute;
  bottom: var(--space-5);
  left: var(--space-5);
  right: var(--space-5);
  padding: var(--space-4);
  background: rgba(6, 17, 41, 0.78);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(201, 163, 58, 0.35);
  border-radius: var(--r-md);
  color: var(--ivory);
  display: flex;
  gap: var(--space-3);
  align-items: center;
}
.hero-visual .badge .crest-sm {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold-600);
  display: grid;
  place-items: center;
  color: var(--navy-900);
  font-weight: 700;
  flex-shrink: 0;
}
.hero-visual .badge p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.4;
}
.hero-visual .badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 2px;
  color: var(--gold-400);
}

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--navy-950);
  color: rgba(253, 251, 245, 0.85);
  padding-block: var(--space-5);
  border-block: 1px solid rgba(201, 163, 58, 0.2);
}
.trust-strip .container {
  display: flex;
  gap: var(--space-6);
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  font-weight: 500;
}
.trust-item svg { color: var(--gold-500); flex-shrink: 0; }

/* ---------- Section heading ---------- */
.section-head {
  max-width: 720px;
  margin-bottom: var(--space-8);
}
.section-head.text-center { margin-inline: auto; }

/* ---------- Card ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-6);
  transition: all var(--dur-normal) var(--ease-out);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-500);
}
.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--gold-500);
  display: grid;
  place-items: center;
  margin-bottom: var(--space-4);
  flex-shrink: 0;
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 {
  font-size: 1.3rem;
  margin-bottom: var(--space-3);
}
.card p {
  color: var(--stone-700);
  font-size: 0.95rem;
  margin-bottom: var(--space-4);
}
.card .card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  color: var(--navy-900);
  font-weight: 600;
  font-size: 0.9rem;
}
.card .card-link:hover { color: var(--gold-700); }

.card-numbered {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-6);
  position: relative;
  height: 100%;
}
.card-numbered .num {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: var(--gold-500);
  font-style: italic;
  display: block;
  margin-bottom: var(--space-3);
}

/* ---------- Pill / Tag ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.35em 0.9em;
  background: var(--gold-100);
  color: var(--navy-900);
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.tag--outline {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--stone-700);
}
.tag--dark {
  background: var(--navy-900);
  color: var(--gold-400);
}

/* ---------- Stats row ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stat {
  background: var(--paper);
  padding: var(--space-6);
  text-align: center;
}
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.5rem + 1.5vw, 3rem);
  font-weight: 500;
  color: var(--navy-900);
  display: block;
  line-height: 1;
  margin-bottom: var(--space-2);
}
.stat .num .symbol {
  color: var(--gold-600);
  font-style: italic;
}
.stat .label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--stone-500);
  font-weight: 600;
}
.section--dark .stat { background: var(--navy-800); }
.section--dark .stat .num { color: var(--ivory); }
.section--dark .stat .label { color: rgba(253, 251, 245, 0.6); }
.section--dark .stats { background: rgba(201, 163, 58, 0.18); border-color: rgba(201, 163, 58, 0.25); }

/* ---------- Feature row (text + visual) ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}
.feature-row.reverse > :first-child { order: 2; }
.feature-row .visual {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(155deg, var(--navy-900), var(--navy-700));
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  color: var(--gold-400);
  font-family: var(--font-display);
  font-size: 1.5rem;
  position: relative;
}
.feature-row .visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 30%, rgba(201, 163, 58, 0.35), transparent 50%),
    radial-gradient(circle at 75% 70%, rgba(255, 255, 255, 0.1), transparent 55%);
}

/* ---------- Process timeline ---------- */
.timeline {
  position: relative;
  padding-left: 2.5rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0.85rem;
  top: 0.5em;
  bottom: 0.5em;
  width: 2px;
  background: linear-gradient(var(--gold-600), var(--border));
}
.timeline-step {
  position: relative;
  padding-bottom: var(--space-7);
}
.timeline-step:last-child { padding-bottom: 0; }
.timeline-step::before {
  content: counter(step);
  counter-increment: step;
  position: absolute;
  left: -2.5rem;
  top: 0;
  width: 1.85rem;
  height: 1.85rem;
  background: var(--navy-900);
  color: var(--gold-400);
  border: 2px solid var(--ivory);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 0 0 2px var(--gold-500);
}
.timeline {
  counter-reset: step;
}
.timeline-step h3 {
  font-size: 1.4rem;
  margin-bottom: var(--space-2);
}
.timeline-step p {
  color: var(--stone-700);
  margin: 0;
}

/* ---------- Curriculum grid ---------- */
.curriculum-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
}
.curriculum-tile {
  padding: var(--space-5);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  text-align: center;
  transition: all var(--dur-normal) var(--ease-out);
}
.curriculum-tile:hover {
  border-color: var(--gold-500);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.curriculum-tile .code {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--navy-900);
  font-weight: 500;
  display: block;
  margin-bottom: var(--space-1);
}
.curriculum-tile .name {
  font-size: 0.85rem;
  color: var(--stone-500);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ---------- Testimonial ---------- */
.testimonial {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-7);
  position: relative;
}
.testimonial::before {
  content: "\201C";
  position: absolute;
  top: -0.4em;
  left: var(--space-5);
  font-family: var(--font-display);
  font-size: 6rem;
  color: var(--gold-500);
  line-height: 1;
}
.testimonial blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1.5;
  color: var(--navy-900);
  font-weight: 500;
}
.testimonial cite {
  display: block;
  margin-top: var(--space-4);
  font-style: normal;
  font-size: 0.9rem;
  color: var(--stone-500);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.testimonial cite strong { color: var(--navy-900); font-weight: 700; }

/* ---------- FAQ ---------- */
.faq {
  border-top: 1px solid var(--border);
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: var(--space-5) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--navy-900);
  font-weight: 500;
  line-height: 1.3;
}
.faq-question:hover { color: var(--gold-700); }
.faq-question .toggle {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  display: grid;
  place-items: center;
  transition: all var(--dur-normal) var(--ease-out);
  color: var(--navy-900);
}
.faq-question[aria-expanded="true"] .toggle {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--gold-400);
  transform: rotate(45deg);
}
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-normal) var(--ease-out);
}
.faq-answer > div { overflow: hidden; }
.faq-question[aria-expanded="true"] + .faq-answer { grid-template-rows: 1fr; }
.faq-answer p {
  padding-bottom: var(--space-5);
  color: var(--stone-700);
  max-width: 70ch;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-950), var(--navy-800) 60%, var(--navy-700));
  color: var(--ivory);
  padding: clamp(3rem, 2rem + 4vw, 5rem);
  border-radius: var(--r-xl);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(201, 163, 58, 0.22), transparent 50%),
    radial-gradient(circle at 15% 85%, rgba(201, 163, 58, 0.12), transparent 55%);
}
.cta-banner > * { position: relative; }
.cta-banner h2 { color: var(--ivory); margin-bottom: var(--space-4); }
.cta-banner p { color: rgba(253, 251, 245, 0.82); }
.cta-banner .btn-primary {
  background: var(--gold-600);
  color: var(--navy-900);
  border-color: var(--gold-600);
}
.cta-banner .btn-primary:hover {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--navy-950);
}

/* ---------- Form ---------- */
.form-grid {
  display: grid;
  gap: var(--space-4);
}
.form-row {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr 1fr;
}
.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.field label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone-700);
}
.field label .req { color: var(--gold-700); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  transition: all var(--dur-fast) var(--ease-out);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--gold-600);
  box-shadow: 0 0 0 4px rgba(201, 163, 58, 0.15);
}
.field textarea { resize: vertical; min-height: 140px; }
.field .help {
  font-size: 0.8rem;
  color: var(--stone-500);
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #c0392b;
}
.field .error {
  font-size: 0.8rem;
  color: #c0392b;
  display: none;
}
.field input[aria-invalid="true"] ~ .error,
.field select[aria-invalid="true"] ~ .error,
.field textarea[aria-invalid="true"] ~ .error {
  display: block;
}
.consent {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--stone-700);
}
.consent input { width: auto; margin-top: 0.2em; }
.form-status {
  padding: var(--space-4);
  border-radius: var(--r-md);
  font-size: 0.92rem;
  display: none;
}
.form-status.success {
  display: block;
  background: rgba(46, 125, 50, 0.08);
  border: 1px solid rgba(46, 125, 50, 0.3);
  color: #1b5e20;
}
.form-status.error {
  display: block;
  background: rgba(192, 57, 43, 0.08);
  border: 1px solid rgba(192, 57, 43, 0.3);
  color: #c0392b;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: rgba(253, 251, 245, 0.78);
  padding-block: var(--space-8) var(--space-5);
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-700), var(--gold-500), var(--gold-700));
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-7);
  margin-bottom: var(--space-7);
}
.footer-brand img {
  height: 192px;
  margin-bottom: var(--space-4);
}
.footer-brand .name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ivory);
  margin-bottom: var(--space-2);
  letter-spacing: 0.02em;
}
.footer-brand p {
  font-size: 0.9rem;
  max-width: 320px;
  line-height: 1.6;
}
.footer-col h4 {
  color: var(--gold-400);
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
  font-weight: 600;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer-col a {
  color: rgba(253, 251, 245, 0.78);
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
.footer-col a:hover { color: var(--gold-400); }
.footer-bottom {
  border-top: 1px solid rgba(253, 251, 245, 0.12);
  padding-top: var(--space-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.footer-bottom .small {
  color: rgba(253, 251, 245, 0.5);
}

/* ---------- Floating WhatsApp ---------- */
.floating-wa {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  z-index: 90;
  transition: transform var(--dur-normal) var(--ease-out);
}
.floating-wa:hover {
  transform: scale(1.08) translateY(-2px);
  color: white;
}
.floating-wa svg { width: 28px; height: 28px; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: var(--navy-900);
  color: var(--ivory);
  padding-block: clamp(4rem, 3rem + 4vw, 6rem) clamp(3rem, 2rem + 3vw, 5rem);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(201, 163, 58, 0.18), transparent 50%),
    radial-gradient(circle at 5% 90%, rgba(201, 163, 58, 0.08), transparent 55%);
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 163, 58, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 163, 58, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black, transparent 75%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow { color: var(--gold-400); }
.page-hero .eyebrow::before { background: var(--gold-500); }
.page-hero h1 {
  color: var(--ivory);
  font-size: clamp(2.5rem, 1.8rem + 3vw, 4.25rem);
  max-width: 18ch;
}
.page-hero .lead {
  color: rgba(253, 251, 245, 0.82);
  max-width: 60ch;
}
.crumb {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: rgba(253, 251, 245, 0.6);
  margin-bottom: var(--space-5);
}
.crumb a { color: var(--gold-400); }
.crumb a:hover { color: var(--ivory); }

/* ---------- Service detail card ---------- */
.service-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-7);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.service-card .num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--gold-700);
  letter-spacing: 0.2em;
  font-weight: 600;
  margin-bottom: var(--space-3);
}
.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-3);
}
.service-card p {
  color: var(--stone-700);
}
.service-card .features {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0 var(--space-5);
}
.service-card .features li {
  position: relative;
  padding-left: 1.6em;
  margin-bottom: 0.5em;
  color: var(--stone-700);
  font-size: 0.92rem;
}
.service-card .features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.85em;
  height: 0.5em;
  border-left: 2px solid var(--gold-600);
  border-bottom: 2px solid var(--gold-600);
  transform: rotate(-45deg);
}
.service-card .meta {
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--stone-500);
}

/* ---------- Value list ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-4);
}
.value {
  padding: var(--space-5);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.value .icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold-100);
  color: var(--gold-700);
  display: grid;
  place-items: center;
  margin-bottom: var(--space-2);
}
.value .icon svg { width: 18px; height: 18px; }
.value h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone-700);
  margin: 0 0 var(--space-1);
}
.value p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--navy-900);
  line-height: 1.3;
}

/* ---------- Inline highlight ---------- */
.highlight {
  background: linear-gradient(180deg, transparent 60%, var(--gold-400) 60%);
  padding: 0 0.1em;
}

/* ---------- Tables ---------- */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.table th,
.table td {
  text-align: left;
  padding: var(--space-4);
  border-bottom: 1px solid var(--border);
}
.table th {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone-500);
  font-weight: 600;
  background: var(--cream);
}
.table tr:last-child td { border-bottom: 0; }
.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--paper);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .hero-visual,
  .hero-photo { max-width: 460px; margin-inline: auto; }
  .feature-row { grid-template-columns: 1fr; gap: var(--space-6); }
  .feature-row.reverse > :first-child { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  /* Tighter section rhythm on phones */
  :root {
    --space-section: clamp(2.75rem, 2rem + 3vw, 5rem);
    --text-hero: clamp(2.25rem, 1.6rem + 4vw, 3.5rem);
    --text-4xl: clamp(1.9rem, 1.5rem + 1.8vw, 2.6rem);
  }
  .nav { padding-block: 0.55rem; }
  .nav-brand img { height: 96px; }
  .site-header.is-scrolled .nav-brand img { height: 76px; }
  .nav-links,
  .nav-cta .nav-cta-desktop { display: none; }
  .nav-toggle { display: block; }
  .site-nav-open .nav-links {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    height: 100dvh;
    background: var(--navy-900);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    padding: clamp(4.5rem, 4rem + 4vw, 6rem) var(--gutter) var(--space-6);
    z-index: 110;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    list-style: none;
    margin: 0;
  }
  .site-nav-open .nav-links li {
    border-bottom: 1px solid rgba(201, 163, 58, 0.18);
  }
  .site-nav-open .nav-links a {
    display: block;
    color: var(--ivory);
    font-size: 1.2rem;
    font-family: var(--font-display);
    padding: 0.95rem 0;
    text-align: left;
  }
  .site-nav-open .nav-links a::after { display: none; }
  .site-nav-open .nav-mobile-cta { border-bottom: 0; margin-top: var(--space-4); padding-top: var(--space-2); }
  .site-nav-open .nav-mobile-cta a {
    background: var(--gold-600);
    color: var(--navy-900);
    text-align: center;
    border-radius: var(--r-pill);
    padding: 0.95rem 1.4rem;
    font-weight: 600;
    font-size: 1.05rem;
  }
  .site-nav-open .nav-mobile-cta a:hover { background: var(--gold-500); }
  .nav-mobile-cta { display: none; }
  .site-nav-open .nav-toggle {
    position: fixed;
    top: 1rem;
    right: 1.25rem;
    z-index: 120;
    color: var(--ivory);
  }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-5); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand img { height: 96px; }

  /* Contact page custom 2-col grid → stack */
  section .container > div[style*="grid-template-columns:1.4fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: var(--space-6) !important;
  }

  /* Page heroes — tighten */
  .page-hero { padding-block: clamp(2.5rem, 2rem + 2vw, 4rem) clamp(2rem, 1.5rem + 1.5vw, 3rem); }
  .page-hero h1 { font-size: clamp(1.85rem, 1.4rem + 2.5vw, 3rem); }

  /* Hero body tightening */
  .hero { padding-block: clamp(2.5rem, 2rem + 3vw, 5rem) clamp(2rem, 1.5rem + 2vw, 4rem); }
  .hero-meta { gap: var(--space-4); padding-top: var(--space-4); margin-top: var(--space-4); }
  .hero-meta dd { font-size: 1.2rem; }
  .hero-cta { gap: var(--space-3); }
  .hero-cta .btn { flex: 1 1 auto; }

  /* Card padding tighter */
  .card,
  .card-numbered,
  .service-card { padding: var(--space-5); }
  .card .icon { width: 44px; height: 44px; margin-bottom: var(--space-3); }
  .card .icon svg { width: 22px; height: 22px; }
  .card h3,
  .service-card h3 { font-size: 1.15rem; }
  .card-numbered .num { font-size: 2.25rem; }
  .service-card .num { font-size: 0.82rem; }

  /* Stats — keep compact */
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: var(--space-4); }
  .stat .num { font-size: 1.8rem; }
  .stat .label { font-size: 0.72rem; letter-spacing: 0.1em; }

  /* Section heads tighter */
  .section-head { margin-bottom: var(--space-6); }

  /* Logo banner trimmed */
  .logo-banner { padding: var(--space-5) var(--space-4); }

  /* CTA banner padding */
  .cta-banner { padding: var(--space-6) !important; }
  .cta-banner .grid-2 { grid-template-columns: 1fr; gap: var(--space-5); }
  .cta-banner .grid-2 > div:last-child { justify-content: flex-start !important; }

  /* Trust strip wraps cleaner */
  .trust-strip .container { gap: var(--space-3); justify-content: flex-start; }
  .trust-item { font-size: 0.75rem; }
  .trust-item svg { width: 16px; height: 16px; }

  /* Tables scroll on small screens */
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table { min-width: 520px; }

  /* Timeline tighter */
  .timeline { padding-left: 2rem; }
  .timeline::before { left: 0.65rem; }
  .timeline-step::before { left: -2rem; width: 1.5rem; height: 1.5rem; font-size: 0.8rem; }
  .timeline-step { padding-bottom: var(--space-5); }
  .timeline-step h3 { font-size: 1.15rem; }

  /* Floating WhatsApp smaller */
  .floating-wa { width: 50px; height: 50px; bottom: 1rem; right: 1rem; }
  .floating-wa svg { width: 24px; height: 24px; }

  /* FAQ */
  .faq-question { font-size: 1.05rem; padding: var(--space-4) 0; gap: var(--space-3); }
  .faq-question .toggle { width: 26px; height: 26px; }

  /* Testimonial / quote */
  .testimonial { padding: var(--space-5); }
  .testimonial blockquote { font-size: 1.1rem; }
  .testimonial::before { font-size: 4rem; }

  /* Hide larger floating crest on mobile so it doesn’t crowd photos */
  .crest-float { width: 72px; height: 72px; padding: 8px; }

  /* Image strip — already handled in component */
}

@media (max-width: 520px) {
  :root {
    --gutter: 1rem;
  }
  .utility-bar { font-size: 0.7rem; }
  .utility-bar .utility-left .util-hide,
  .utility-bar .utility-right .util-hide { display: none; }
  .utility-bar .container { padding-block: 0.4rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .hero-meta { grid-template-columns: 1fr 1fr; display: grid; }
  .hero-meta dd { font-size: 1.05rem; }
  .nav-brand img { height: 82px; }
  .site-header.is-scrolled .nav-brand img { height: 68px; }
  .btn { padding: 0.85rem 1.4rem; font-size: 0.9rem; }
  .btn-lg { padding: 0.95rem 1.5rem; font-size: 0.95rem; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .img-frame--portrait { aspect-ratio: 5/6; }
  .footer-brand img { height: 84px; }
  .logo-banner img { height: 110px; }
  .crest-float { width: 60px; height: 60px; padding: 6px; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .floating-wa, .utility-bar { display: none; }
  body { background: white; color: black; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Image utilities ---------- */
.img-frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--navy-900);
}
.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.img-frame--portrait { aspect-ratio: 4 / 5; }
.img-frame--square { aspect-ratio: 1 / 1; }
.img-frame--landscape { aspect-ratio: 4 / 3; }
.img-frame--wide { aspect-ratio: 16 / 9; }
.img-frame--tall { aspect-ratio: 3 / 4; }

/* brand-tinted overlay */
.img-frame--brand::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(155deg, rgba(10, 26, 58, 0.45), rgba(10, 26, 58, 0.05) 50%, rgba(201, 163, 58, 0.18));
  pointer-events: none;
}
.img-frame--dark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 26, 58, 0.15) 0%, rgba(10, 26, 58, 0.65) 100%);
  pointer-events: none;
}
.img-frame--soft::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10, 26, 58, 0.25) 100%);
  pointer-events: none;
}

.img-frame .caption {
  position: absolute;
  bottom: var(--space-5);
  left: var(--space-5);
  right: var(--space-5);
  z-index: 2;
  display: flex;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-4);
  background: rgba(6, 17, 41, 0.78);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(201, 163, 58, 0.35);
  border-radius: var(--r-md);
  color: var(--ivory);
}
.img-frame .caption .crest-sm {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold-600);
  display: grid;
  place-items: center;
  color: var(--navy-900);
  font-weight: 700;
  flex-shrink: 0;
}
.img-frame .caption p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.4;
}
.img-frame .caption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 2px;
  color: var(--gold-400);
}

/* floating crest badge over an image */
.crest-float {
  position: absolute;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--ivory);
  display: grid;
  place-items: center;
  box-shadow: 0 18px 40px rgba(10, 26, 58, 0.35);
  z-index: 3;
  padding: 12px;
  border: 3px solid var(--gold-500);
}
.crest-float img { width: 100%; height: auto; object-fit: contain; }
.crest-float--tl { top: var(--space-5); left: var(--space-5); }
.crest-float--tr { top: var(--space-5); right: var(--space-5); }
.crest-float--bl { bottom: var(--space-5); left: var(--space-5); }
.crest-float--br { bottom: var(--space-5); right: var(--space-5); }

/* Image strip / gallery */
.img-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.img-strip .img-frame { aspect-ratio: 4 / 5; }
.img-strip .img-frame:nth-child(2) { transform: translateY(var(--space-5)); }
@media (max-width: 768px) {
  .img-strip { grid-template-columns: 1fr 1fr; }
  .img-strip .img-frame:nth-child(3) { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .img-strip .img-frame:nth-child(2) { transform: none; }
}
@media (max-width: 480px) {
  .img-strip { grid-template-columns: 1fr; }
}

/* Hero variant with photo */
.hero-photo {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lg);
  background: var(--navy-900);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(165deg, rgba(10, 26, 58, 0.35) 0%, rgba(10, 26, 58, 0.08) 45%, rgba(201, 163, 58, 0.28) 100%);
  pointer-events: none;
}
.hero-photo .crest-float {
  position: absolute;
  top: var(--space-5);
  left: var(--space-5);
  z-index: 3;
}
.hero-photo .badge {
  position: absolute;
  bottom: var(--space-5);
  left: var(--space-5);
  right: var(--space-5);
  z-index: 3;
  padding: var(--space-4);
  background: rgba(6, 17, 41, 0.82);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(201, 163, 58, 0.35);
  border-radius: var(--r-md);
  color: var(--ivory);
  display: flex;
  gap: var(--space-3);
  align-items: center;
}
.hero-photo .badge .crest-sm {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold-600);
  color: var(--navy-900);
  display: grid;
  place-items: center;
  font-weight: 700;
  flex-shrink: 0;
}
.hero-photo .badge p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.4;
}
.hero-photo .badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 2px;
  color: var(--gold-400);
}

/* ---------- Education motifs (decorative SVG backgrounds) ---------- */
.bg-motif { position: relative; overflow: hidden; }
.bg-motif > .container,
.bg-motif > .full-bleed-img,
.bg-motif > section { position: relative; z-index: 1; }
.bg-motif::before,
.bg-motif::after {
  content: "";
  position: absolute;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: contain;
  z-index: 0;
}

/* Open book — navy, top-right corner */
.bg-motif--book::before {
  width: 360px; height: 360px;
  top: -60px; right: -60px;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none' stroke='%230A1A3A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M100 60 L100 160'/><path d='M30 70 Q35 60 100 60 Q165 60 170 70 L170 160 Q165 150 100 150 Q35 150 30 160 Z'/><path d='M45 80 L85 78'/><path d='M45 95 L85 93'/><path d='M45 110 L85 108'/><path d='M45 125 L75 123'/><path d='M115 78 L155 80'/><path d='M115 93 L155 95'/><path d='M115 108 L155 110'/><path d='M125 123 L155 125'/></svg>");
}

/* Laurel — gold, bottom-left corner */
.bg-motif--laurel::before {
  width: 320px; height: 320px;
  bottom: -50px; left: -50px;
  opacity: 0.1;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none' stroke='%23C9A33A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M50 100 Q50 50 100 40'/><path d='M150 100 Q150 50 100 40'/><path d='M55 85 Q42 80 38 92'/><path d='M65 70 Q52 65 48 77'/><path d='M80 55 Q67 50 63 62'/><path d='M145 85 Q158 80 162 92'/><path d='M135 70 Q148 65 152 77'/><path d='M120 55 Q133 50 137 62'/><path d='M100 40 L100 22'/><path d='M100 30 L90 20'/><path d='M100 30 L110 20'/><circle cx='100' cy='15' r='3'/></svg>");
}

/* Graduation cap — navy, top-left */
.bg-motif--cap::before {
  width: 300px; height: 300px;
  top: -40px; left: -40px;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none' stroke='%230A1A3A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M20 80 L100 50 L180 80 L100 110 Z'/><path d='M55 95 L55 135 Q100 152 145 135 L145 95'/><path d='M180 80 L180 125'/><path d='M180 125 L172 138 L188 138 Z'/></svg>");
}

/* Quill — navy, bottom-right */
.bg-motif--quill::before {
  width: 340px; height: 340px;
  bottom: -60px; right: -60px;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none' stroke='%230A1A3A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M155 25 L55 125 L35 165 L75 145 Z'/><path d='M155 25 Q145 60 85 95'/><path d='M155 25 Q130 50 105 65'/><path d='M150 35 L55 125'/></svg>");
}

/* Crest — gold, mid-right (for dark sections) */
.bg-motif--crest::before {
  width: 280px; height: 280px;
  top: 50%; right: -70px;
  transform: translateY(-50%);
  opacity: 0.08;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none' stroke='%23C9A33A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M100 30 L160 50 L160 110 Q160 150 100 175 Q40 150 40 110 L40 50 Z'/><path d='M100 70 L100 130'/><path d='M75 100 L125 100'/><circle cx='100' cy='100' r='6'/></svg>");
}

/* Subtle dot grid (textured background) */
.bg-pattern-dots {
  position: relative;
}
.bg-pattern-dots::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(10, 26, 58, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black, transparent 80%);
  pointer-events: none;
  z-index: 0;
}
.bg-pattern-dots > * { position: relative; z-index: 1; }

@media (max-width: 768px) {
  .bg-motif--book::before { width: 200px; height: 200px; top: -30px; right: -30px; }
  .bg-motif--laurel::before { width: 180px; height: 180px; bottom: -30px; left: -30px; }
  .bg-motif--cap::before { width: 180px; height: 180px; top: -20px; left: -20px; }
  .bg-motif--quill::before { width: 200px; height: 200px; bottom: -30px; right: -30px; }
  .bg-motif--crest::before { width: 160px; height: 160px; right: -40px; }
}

/* Full-bleed parallax image break */
.full-bleed-img {
  position: relative;
  width: 100%;
  height: clamp(280px, 38vw, 560px);
  overflow: hidden;
  background: var(--navy-900);
}
.full-bleed-img > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.full-bleed-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 26, 58, 0.65), rgba(10, 26, 58, 0.25) 50%, rgba(201, 163, 58, 0.4));
}
.full-bleed-img .content {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2;
  padding: var(--gutter);
  text-align: center;
  color: var(--ivory);
}
.full-bleed-img .content blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 1.1rem + 2vw, 2.75rem);
  max-width: 800px;
  margin: 0;
  line-height: 1.3;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  color: var(--ivory);
}
.full-bleed-img .content cite {
  display: block;
  font-style: normal;
  margin-top: var(--space-4);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-400);
  font-weight: 600;
}

/* Image-quote split layout */
.image-quote {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.image-quote .img {
  position: relative;
  min-height: 360px;
  background: var(--navy-900);
}
.image-quote .img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-quote .body {
  padding: clamp(2rem, 1rem + 2vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.image-quote .body p {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1rem + 0.7vw, 1.65rem);
  line-height: 1.4;
  font-style: italic;
  color: var(--navy-900);
  margin: 0 0 var(--space-4);
}
.image-quote .body cite {
  display: block;
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-700);
  font-weight: 600;
}
@media (max-width: 768px) {
  .image-quote { grid-template-columns: 1fr; }
  .image-quote .img { min-height: 260px; }
}

/* Two-image collage (offset) */
.collage {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-5);
  align-items: start;
}
.collage .img-frame:nth-child(1) { aspect-ratio: 4/5; transform: translateY(0); }
.collage .img-frame:nth-child(2) { aspect-ratio: 3/4; transform: translateY(var(--space-7)); }
@media (max-width: 768px) {
  .collage { grid-template-columns: 1fr 1fr; gap: var(--space-3); }
  .collage .img-frame:nth-child(2) { transform: translateY(var(--space-4)); }
}

/* Logo banner — large prominent display */
.logo-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  padding: var(--space-7) var(--space-5);
  background: var(--paper);
  border-block: 1px solid var(--border);
  text-align: center;
}
.logo-banner img {
  height: 336px;
  width: auto;
}
@media (max-width: 768px) {
  .logo-banner img { height: 216px; }
}

/* ---------- Selection ---------- */
::selection {
  background: var(--gold-400);
  color: var(--navy-950);
}
