/* =========================================================================
   IJD College — Design System
   Legacy institution aesthetic: ivory base, navy ink, gold accents
   ========================================================================= */

/* ---------- Design Tokens ---------- */
:root {
  /* Color system */
  --ink: #0b1829;              /* Primary text, deep navy */
  --ink-soft: #2a3a52;         /* Secondary text */
  --ink-muted: #5a6578;        /* Tertiary, captions */
  --gold: #a8833a;             /* Primary accent */
  --gold-deep: #7f6129;        /* Hover state gold */
  --gold-soft: #d4b87a;        /* Highlight gold */
  --cream: #faf6ee;            /* Page background */
  --cream-warm: #f4ecd8;       /* Card/section variant */
  --cream-deep: #e8dcc0;       /* Border warmth */
  --paper: #ffffff;            /* Pure white cards */
  --line: #d9cfb8;             /* Decorative lines, borders */
  --line-soft: #ebe3cf;        /* Subtle separators */

  /* Typography */
  --font-display: 'Libre Baskerville', 'Georgia', serif;
  --font-body: 'DM Sans', -apple-system, 'Helvetica Neue', sans-serif;
  --font-accent: 'Libre Baskerville', serif;

  /* Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3.5rem;
  --text-6xl: 4.75rem;

  /* 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: 2.5rem;
  --space-8: 3rem;
  --space-9: 4rem;
  --space-10: 5rem;
  --space-11: 6rem;
  --space-12: 8rem;

  /* Layout */
  --container: 1240px;
  --container-narrow: 880px;
  --container-wide: 1400px;
  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 12px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fast: 200ms;
  --normal: 400ms;
  --slow: 700ms;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-top: 72px; /* offset for fixed nav */
}

@media (max-width: 960px) {
  body { padding-top: 64px; }
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
}

p { max-width: 68ch; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

section { padding: var(--space-11) 0; }

@media (max-width: 768px) {
  section { padding: var(--space-9) 0; }
}

/* ---------- Decorative Elements ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: var(--space-5);
}

.eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.rule {
  width: 48px;
  height: 2px;
  background: var(--gold);
  border: none;
  margin: var(--space-4) 0;
}

.rule-center {
  margin-left: auto;
  margin-right: auto;
}

.serif-accent {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold-deep);
  font-weight: 400;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 246, 238, 0.94);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}

.nav.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px -10px rgba(11, 24, 41, 0.12);
}

.nav-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: var(--space-3) var(--space-5);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-6);
  min-height: 72px;
}

@media (max-width: 960px) {
  .nav-inner {
    padding: var(--space-3) var(--space-4);
    min-height: 64px;
    gap: var(--space-3);
  }
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  min-width: 0;
}

.nav-logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  position: relative;
  flex-shrink: 0;
}

.nav-logo-mark::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  opacity: 0.6;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}

.nav-logo-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.nav-logo-sub {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 2px;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .nav-logo-mark { width: 38px; height: 38px; font-size: 0.95rem; }
  .nav-logo-title { font-size: 0.95rem; }
  .nav-logo-sub { font-size: 0.62rem; letter-spacing: 0.08em; }
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: var(--space-2) 0;
  transition: color var(--fast) var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 16px;
  height: 2px;
  background: var(--gold);
  transform: translateX(-50%);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.nav-dropdown > a::after {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
  opacity: 0.5;
  transition: transform var(--fast) var(--ease);
}

.nav-dropdown:hover > a::after,
.nav-dropdown:focus-within > a::after {
  transform: rotate(225deg);
  margin-top: 2px;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 260px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-3);
  box-shadow: 0 20px 40px -12px rgba(11, 24, 41, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease);
  list-style: none;
  /* invisible bridge so cursor can move from parent link to menu without losing hover */
  margin-top: 0;
}

.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
  background: transparent;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  /* small delay-out on leave to be forgiving */
  transition-delay: 0ms;
}

.nav-dropdown .nav-dropdown-menu {
  transition-delay: 80ms;
}

.nav-dropdown-menu a {
  display: block;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--ink-soft);
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}

.nav-dropdown-menu a:hover {
  background: var(--cream-warm);
  color: var(--ink);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background: var(--ink);
  color: var(--cream);
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all var(--fast) var(--ease);
}

.nav-cta:hover {
  background: var(--gold-deep);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: all var(--fast) var(--ease);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: min(340px, 85vw);
    height: 100vh;
    background: var(--paper);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: calc(64px + var(--space-5)) var(--space-6) var(--space-6);
    gap: var(--space-2);
    box-shadow: -20px 0 60px rgba(11, 24, 41, 0.15);
    transform: translateX(100%);
    transition: transform var(--normal) var(--ease);
    overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a {
    font-size: 1.05rem;
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav-links a.active::after { display: none; }
  .nav-links a.active { color: var(--gold-deep); }
  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    border: none;
    padding: var(--space-1) 0 var(--space-2) var(--space-4);
    min-width: 0;
    background: transparent;
  }
  .nav-dropdown-menu::before { display: none; }
  .nav-dropdown-menu a {
    font-size: 0.92rem;
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav-dropdown-menu li:last-child a { border-bottom: none; }
  .nav-toggle { display: flex; z-index: 102; position: relative; }
  .nav-cta { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  transition: all var(--fast) var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--ink);
  color: var(--cream);
}

.btn-primary:hover {
  background: var(--gold-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -6px rgba(127, 97, 41, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.btn-secondary:hover {
  background: var(--ink);
  color: var(--cream);
}

.btn-ghost {
  color: var(--ink);
  padding-left: 0;
  padding-right: 0;
}

.btn-ghost::after {
  content: '→';
  display: inline-block;
  margin-left: var(--space-2);
  transition: transform var(--fast) var(--ease);
}

.btn-ghost:hover::after { transform: translateX(4px); }

.btn-whatsapp {
  background: #075e54;
  color: white;
}

.btn-whatsapp:hover {
  background: #128c7e;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -6px rgba(18, 140, 126, 0.4);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: var(--space-11) 0 var(--space-12);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(168, 131, 58, 0.12) 1px, transparent 0);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  opacity: 0.8;
  pointer-events: none;
}

@supports not (mask-image: radial-gradient(black, transparent)) {
  .hero::before { opacity: 0.3; }
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-10);
  align-items: center;
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4.75rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-5);
}

.hero-title .accent {
  color: var(--gold-deep);
  font-style: italic;
  font-weight: 400;
}

.hero-desc {
  font-size: var(--text-lg);
  color: var(--ink-soft);
  margin-bottom: var(--space-7);
  max-width: 54ch;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--cream-warm);
  box-shadow: 0 20px 60px -20px rgba(11, 24, 41, 0.25);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--cream-warm), var(--cream-deep));
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--space-6);
}

.hero-visual-placeholder p {
  color: var(--ink-muted);
  font-size: 0.85rem;
  font-style: italic;
}

.hero-badge {
  position: absolute;
  bottom: var(--space-6);
  left: var(--space-6);
  background: var(--paper);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px -10px rgba(11, 24, 41, 0.2);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.hero-badge-year {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}

.hero-badge-text {
  font-size: 0.78rem;
  color: var(--ink-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.3;
}

@media (max-width: 880px) {
  .hero { padding: var(--space-8) 0 var(--space-9); }
  .hero-content { grid-template-columns: 1fr; gap: var(--space-7); }
  .hero-visual { aspect-ratio: 4 / 3; }
  .hero-actions .btn { flex: 1; justify-content: center; }
}

@media (max-width: 480px) {
  .hero { padding: var(--space-7) 0 var(--space-8); }
  .hero-desc { font-size: var(--text-base); }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .hero-badge {
    bottom: var(--space-4);
    left: var(--space-4);
    padding: var(--space-3) var(--space-4);
  }
  .hero-badge-year { font-size: 1.6rem; }
  .hero-badge-text { font-size: 0.68rem; }
}

/* ---------- Section Heading ---------- */
.section-head {
  margin-bottom: var(--space-9);
}

.section-head.center { text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head.center .eyebrow::after {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--gold);
  margin-left: var(--space-3);
}
.section-head.center .eyebrow {
  padding-left: 44px;
}
.section-head.center .eyebrow::before {
  display: inline-block;
  margin-right: var(--space-3);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 22ch;
}

.section-head.center .section-title {
  margin-left: auto;
  margin-right: auto;
}

.section-desc {
  font-size: var(--text-lg);
  color: var(--ink-soft);
  margin-top: var(--space-5);
  max-width: 60ch;
}

.section-head.center .section-desc {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Cards & Tiles ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--normal) var(--ease);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--fast) var(--ease);
}

.card:hover {
  border-color: var(--line);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -20px rgba(11, 24, 41, 0.15);
}

.card:hover::before { opacity: 1; }

.card-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.card-desc {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ---------- Grid Helpers ---------- */
.grid {
  display: grid;
  gap: var(--space-5);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding: var(--space-10) 0 var(--space-6);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-9);
  padding-bottom: var(--space-7);
  border-bottom: 1px solid rgba(250, 246, 238, 0.1);
}

.footer-brand h3 {
  color: var(--cream);
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.footer-brand p {
  color: rgba(250, 246, 238, 0.65);
  font-size: 0.9rem;
  margin-bottom: var(--space-5);
}

.footer-socials {
  display: flex;
  gap: var(--space-3);
}

.footer-socials a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(212, 184, 122, 0.35);
  border-radius: 50%;
  color: var(--gold-soft);
  transition: all var(--fast) var(--ease);
}

.footer-socials a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  transform: translateY(-2px);
}

.footer-col h4 {
  color: var(--cream);
  font-size: 0.85rem;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-5);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-col a {
  color: rgba(250, 246, 238, 0.65);
  font-size: 0.92rem;
  transition: color var(--fast) var(--ease);
}

.footer-col a:hover { color: var(--gold-soft); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: 0.82rem;
  color: rgba(250, 246, 238, 0.5);
}

.footer-bottom a {
  color: var(--gold-soft);
  transition: color var(--fast) var(--ease);
}

.footer-bottom a:hover { color: var(--cream); }

@media (max-width: 960px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-7);
  }
}

@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ---------- WhatsApp Floater ---------- */
.wa-float {
  position: fixed;
  bottom: var(--space-5);
  right: var(--space-5);
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px -4px rgba(37, 211, 102, 0.45), 0 2px 8px rgba(11, 24, 41, 0.15);
  z-index: 90;
  transition: transform var(--fast) var(--ease);
}

.wa-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  z-index: -1;
  animation: wa-pulse 2.4s ease-out infinite;
}

.wa-float:hover { transform: scale(1.08); }

.wa-float svg { width: 28px; height: 28px; color: white; }

@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.8); opacity: 0; }
}

@media (max-width: 600px) {
  .wa-float {
    width: 52px;
    height: 52px;
    bottom: var(--space-4);
    right: var(--space-4);
  }
  .wa-float svg { width: 24px; height: 24px; }
}

/* ---------- Utilities ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease);
}

.stagger.in > *:nth-child(1) { transition-delay: 0ms; }
.stagger.in > *:nth-child(2) { transition-delay: 80ms; }
.stagger.in > *:nth-child(3) { transition-delay: 160ms; }
.stagger.in > *:nth-child(4) { transition-delay: 240ms; }
.stagger.in > *:nth-child(5) { transition-delay: 320ms; }
.stagger.in > *:nth-child(6) { transition-delay: 400ms; }

.stagger.in > * {
  opacity: 1;
  transform: translateY(0);
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .reveal, .stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .wa-float::before { animation: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* No-JS fallback — show content */
.no-js .reveal, .no-js .stagger > * {
  opacity: 1;
  transform: none;
}

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  padding: var(--space-9) 0 var(--space-8);
  position: relative;
  border-bottom: 1px solid var(--line-soft);
}

.page-hero-inner {
  max-width: 820px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-bottom: var(--space-5);
}

.breadcrumb a {
  color: var(--ink-muted);
  transition: color var(--fast) var(--ease);
}

.breadcrumb a:hover { color: var(--ink); }

.breadcrumb-sep {
  color: var(--line);
}

.page-title {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: var(--space-4);
}

.page-lede {
  font-size: var(--text-lg);
  color: var(--ink-soft);
  max-width: 60ch;
}

/* ---------- Stats Strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  padding: var(--space-8) 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
}

.stat-num .unit {
  font-size: 0.5em;
  color: var(--gold-deep);
  font-weight: 400;
  font-style: italic;
}

.stat-label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: var(--space-3);
}

@media (max-width: 760px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-7) var(--space-4);
    padding: var(--space-7) 0;
  }
  .stat-num { font-size: clamp(1.6rem, 8vw, 2.2rem); }
  .stat-label { font-size: 0.72rem; }
}

/* ---------- FAQ / Accordion ---------- */
.faq-item {
  border-bottom: 1px solid var(--line-soft);
}

.faq-item:first-child { border-top: 1px solid var(--line-soft); }

.faq-q {
  width: 100%;
  text-align: left;
  padding: var(--space-6) 0;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-5);
  cursor: pointer;
}

.faq-q-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: all var(--fast) var(--ease);
  position: relative;
}

.faq-q-icon::before,
.faq-q-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1.5px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform var(--fast) var(--ease);
}

.faq-q-icon::after { transform: translate(-50%, -50%) rotate(90deg); }

.faq-item.open .faq-q-icon {
  background: var(--ink);
  border-color: var(--ink);
}

.faq-item.open .faq-q-icon::before,
.faq-item.open .faq-q-icon::after {
  background: var(--cream);
}

.faq-item.open .faq-q-icon::after { transform: translate(-50%, -50%) rotate(0); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--normal) var(--ease);
}

.faq-item.open .faq-a { max-height: 500px; }

.faq-a-inner {
  padding: 0 0 var(--space-6);
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* ---------- CTA Strip ---------- */
section.cta-strip,
.cta-strip {
  background: var(--ink);
  color: var(--cream);
  padding: var(--space-10) 0 !important;
  position: relative;
  overflow: hidden;
  margin: 0 !important;
}

.cta-strip + .footer { margin-top: 0; padding-top: var(--space-9); }

.cta-strip::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(168, 131, 58, 0.2), transparent 70%);
  pointer-events: none;
}

.cta-strip-inner {
  display: grid;
  grid-template-columns: 1.5fr auto;
  align-items: center;
  gap: var(--space-7);
  position: relative;
}

.cta-strip h2 {
  color: var(--cream);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: var(--space-3);
}

.cta-strip p {
  color: rgba(250, 246, 238, 0.75);
  font-size: var(--text-lg);
}

.cta-strip .btn-primary {
  background: var(--gold);
  color: var(--ink);
}

.cta-strip .btn-primary:hover {
  background: var(--gold-soft);
  color: var(--ink);
}

@media (max-width: 760px) {
  .cta-strip-inner { grid-template-columns: 1fr; }
}

/* ---------- Two-column layouts ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: center;
}

.two-col-60-40 { grid-template-columns: 1.3fr 1fr; }
.two-col-40-60 { grid-template-columns: 1fr 1.3fr; }

@media (max-width: 880px) {
  .two-col, .two-col-60-40, .two-col-40-60 {
    grid-template-columns: 1fr;
    gap: var(--space-7);
  }
}

.visual-frame {
  aspect-ratio: 4 / 5;
  background: var(--cream-warm);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 60px -20px rgba(11, 24, 41, 0.2);
}

.visual-frame-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--cream-warm), var(--cream-deep));
  display: grid;
  place-items: center;
  padding: var(--space-6);
  text-align: center;
}

.visual-frame-placeholder p {
  color: var(--ink-muted);
  font-size: 0.85rem;
  font-style: italic;
}

@media (max-width: 880px) {
  .visual-frame { aspect-ratio: 4 / 3; max-width: 500px; margin-left: auto; margin-right: auto; }
}

.story-title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin-bottom: var(--space-5);
  max-width: 18ch;
}

@media (max-width: 880px) {
  .story-title { max-width: none; }
}

/* ---------- Print ---------- */
@media print {
  .nav, .footer, .wa-float { display: none; }
  body { background: white; color: black; }
}
