/* ==========================================================================
   AFRA LINGUISTIC ACADEMY — DESIGN SYSTEM
   Editorial academia + language & culture. Navy / Gold / Cream.
   ========================================================================== */

/* -----------------------------
   1. DESIGN TOKENS
------------------------------ */
:root {
  /* Brand colors */
  --navy: #13213D;
  --navy-deep: #0C1628;
  --navy-soft: #1C2E52;
  --green: #1E635A;
  --mauve: #7A5A6F;
  --gold: #C8A15A;
  --gold-soft: #DCC28D;
  --gold-deep: #A9803F;
  --cream: #F2EDE2;
  --cream-deep: #E9E1D0;
  --charcoal: #333333;
  --white: #FFFFFF;

  /* Semantic */
  --color-bg: var(--cream);
  --color-bg-alt: var(--white);
  --color-text: var(--charcoal);
  --color-text-soft: #5B5B5B;
  --color-heading: var(--navy);
  --color-border: rgba(19, 33, 61, 0.12);
  --color-border-gold: rgba(200, 161, 90, 0.45);

  /* Typography */
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-arabic: 'Noto Naskh Arabic', 'Traditional Arabic', serif;

  --fs-h1: clamp(2.4rem, 1.7rem + 3vw, 4.6rem);
  --fs-h2: clamp(1.9rem, 1.5rem + 1.6vw, 3rem);
  --fs-h3: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem);
  --fs-h4: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
  --fs-lead: clamp(1.05rem, 1rem + 0.3vw, 1.25rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.78rem;

  /* Spacing scale */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8.5rem;

  /* Layout */
  --container-width: 1240px;
  --container-narrow: 860px;
  --container-padding: clamp(1.25rem, 4vw, 3rem);

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  /* Shadow */
  --shadow-sm: 0 2px 10px rgba(19, 33, 61, 0.06);
  --shadow-md: 0 12px 32px rgba(19, 33, 61, 0.10);
  --shadow-lg: 0 24px 60px rgba(19, 33, 61, 0.16);
  --shadow-gold: 0 10px 28px rgba(200, 161, 90, 0.28);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 180ms;
  --dur-base: 320ms;
  --dur-slow: 620ms;

  --header-height: 92px;
}

/* -----------------------------
   2. RESET & BASE
------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; margin: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--color-heading);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 var(--space-sm);
  letter-spacing: -0.01em;
}
h1 { font-size: var(--fs-h1); line-height: 1.06; letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); font-family: var(--font-body); font-weight: 700; }

p { margin: 0 0 var(--space-sm); color: var(--color-text); }
p.lead { font-size: var(--fs-lead); color: var(--color-text-soft); line-height: 1.6; }

[lang="ar"], .arabic-text {
  font-family: var(--font-arabic);
  direction: rtl;
  line-height: 1.9;
}

/* Focus states — accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2.5px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 999;
  transition: top var(--dur-fast) var(--ease);
}
.skip-link:focus { top: 1rem; }

.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;
}

/* -----------------------------
   3. LAYOUT PRIMITIVES
------------------------------ */
.container {
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}
.container-narrow {
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.section { padding-block: var(--space-2xl); position: relative; }
.section-tight { padding-block: var(--space-xl); }
.section-alt { background: var(--white); }
.section-navy { background: var(--navy); color: rgba(255,255,255,0.88); }
.section-navy h1, .section-navy h2, .section-navy h3, .section-navy h4 { color: var(--white); }
.section-cream-deep { background: var(--cream-deep); }

.section-head {
  max-width: 720px;
  margin-bottom: var(--space-xl);
}
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: var(--space-sm);
}
.section-navy .eyebrow { color: var(--gold-soft); }
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1.5px;
  background: currentColor;
  display: inline-block;
}

.rule-gold {
  width: 64px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border: 0;
  margin: var(--space-sm) 0 var(--space-md);
}
.rule-gold.center { margin-inline: auto; background: var(--gold); }

.grid { display: grid; gap: var(--space-lg); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }

/* -----------------------------
   4. BUTTONS
------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.95em 1.9em;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.btn svg { transition: transform var(--dur-fast) var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover { background: var(--gold-deep); transform: translateY(-2px); box-shadow: 0 16px 34px rgba(200,161,90,0.36); }

.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy-soft); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-outline-gold {
  background: transparent;
  color: var(--gold-deep);
  border-color: var(--gold);
}
.btn-outline-gold:hover { background: var(--gold); color: var(--navy); }

.section-navy .btn-outline { color: var(--white); border-color: rgba(255,255,255,0.5); }
.section-navy .btn-outline:hover { background: var(--white); color: var(--navy); }

.btn-sm { padding: 0.7em 1.4em; font-size: 0.8rem; }
.btn-block { width: 100%; justify-content: center; }

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--navy);
  padding-bottom: 2px;
  border-bottom: 1.5px solid var(--gold);
  transition: gap var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.btn-text:hover { gap: 0.85em; color: var(--gold-deep); }

.cta-row { display: flex; gap: var(--space-md); flex-wrap: wrap; align-items: center; }

/* -----------------------------
   5. HEADER
------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(242, 237, 226, 0.92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--dur-base) var(--ease), background var(--dur-base) var(--ease);
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(242, 237, 226, 0.98);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  height: var(--header-height);
  transition: height var(--dur-base) var(--ease);
}
.site-header.is-scrolled .header-inner { height: 72px; }

.brand-lockup { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo {
  height: 62px;
  width: auto;
  transition: height var(--dur-base) var(--ease);
}
.site-header.is-scrolled .brand-logo { height: 46px; }

.primary-nav { flex: 1; display: flex; justify-content: center; }
.nav-list { display: flex; align-items: center; gap: var(--space-lg); }
.nav-link {
  position: relative;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--navy);
  padding: 0.5em 0;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease);
}
.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--gold-deep); }

.header-actions { display: flex; align-items: center; gap: var(--space-md); }

.lang-switch { display: flex; align-items: center; gap: 0.4em; font-size: 0.82rem; font-weight: 700; }
.lang-btn {
  background: none;
  border: 0;
  color: var(--color-text-soft);
  padding: 0.2em 0.3em;
}
.lang-btn.is-active { color: var(--navy); border-bottom: 1.5px solid var(--gold); }
.lang-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.lang-sep { color: var(--color-border); }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}
.menu-toggle-bar {
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--navy);
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  top: 0; right: 0;
  width: min(360px, 88vw);
  height: 100vh;
  background: var(--navy);
  color: var(--white);
  z-index: 700;
  padding: var(--space-xl) var(--space-lg) var(--space-lg);
  transform: translateX(100%);
  transition: transform var(--dur-base) var(--ease);
  overflow-y: auto;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav-list { display: flex; flex-direction: column; gap: var(--space-sm); margin-bottom: var(--space-lg); }
.mobile-nav-list a { font-family: var(--font-display); font-size: 1.4rem; }
.mobile-nav-heading { font-size: var(--fs-eyebrow); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: var(--space-sm); }
.mobile-nav-programs ul { display: flex; flex-direction: column; gap: var(--space-xs); margin-bottom: var(--space-lg); }
.mobile-nav-programs a { font-size: 0.98rem; color: rgba(255,255,255,0.82); }
.mobile-lang-switch { display: flex; gap: 0.5em; justify-content: center; margin-top: var(--space-lg); }
.mobile-lang-switch .lang-btn { color: rgba(255,255,255,0.7); }
.mobile-lang-switch .lang-btn.is-active { color: var(--white); }

.mobile-nav-backdrop {
  position: fixed; inset: 0;
  background: rgba(12, 22, 40, 0.55);
  z-index: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease);
}
.mobile-nav-backdrop.is-open { opacity: 1; pointer-events: auto; }

body.nav-open { overflow: hidden; }

/* -----------------------------
   6. HERO
------------------------------ */
.hero {
  position: relative;
  background: var(--cream);
  overflow: hidden;
  padding-block: clamp(2.5rem, 5vw, 5rem) var(--space-2xl);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-eyebrow-line {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--gold-deep);
}
.hero-eyebrow-line .rule-gold { margin: 0; }

.hero h1 { margin-bottom: var(--space-md); }
.hero h1 .line { display: block; }
.hero h1 .accent { color: var(--gold-deep); font-style: italic; }

.hero-lead { max-width: 46ch; font-size: var(--fs-lead); color: var(--color-text-soft); margin-bottom: var(--space-md); }

.hero-services-line {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--navy);
  border-top: 1px solid var(--color-border-gold);
  border-bottom: 1px solid var(--color-border-gold);
  padding-block: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy);
  box-shadow: var(--shadow-lg);
}
.hero-visual img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(8%) contrast(1.02);
}
.hero-visual .visual-frame {
  position: absolute; inset: 14px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: calc(var(--radius-lg) - 6px);
  pointer-events: none;
}
.hero-visual-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: var(--space-lg) var(--space-md) var(--space-md);
  background: linear-gradient(0deg, rgba(12,22,40,0.86), transparent);
  color: var(--white);
}
.hero-visual-caption .name { font-family: var(--font-display); font-size: 1.3rem; }
.hero-visual-caption .role { font-size: 0.82rem; opacity: 0.85; letter-spacing: 0.03em; }

.hero-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 30% 20%, var(--navy-soft), var(--navy-deep));
  color: var(--gold-soft);
  font-family: var(--font-display);
  font-size: 5rem;
  letter-spacing: 0.1em;
}

.hero-arabic-mark {
  position: absolute;
  top: 10%;
  right: -20px;
  font-family: var(--font-arabic);
  font-size: 7rem;
  color: rgba(200,161,90,0.10);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* -----------------------------
   7. TRUST STRIP
------------------------------ */
.trust-strip { background: var(--navy); color: var(--white); padding-block: var(--space-lg); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-md);
}
.trust-item { text-align: center; padding-inline: var(--space-2xs); border-left: 1px solid rgba(255,255,255,0.12); }
.trust-item:first-child { border-left: 0; }
.trust-number {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);
  color: var(--gold-soft);
  display: block;
  margin-bottom: 0.2em;
}
.trust-label {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  line-height: 1.4;
}

/* -----------------------------
   8. INTRO SECTION
------------------------------ */
.intro-section { text-align: center; }
.intro-section .container-narrow p.lead { font-size: var(--fs-h4); font-family: var(--font-display); font-style: italic; color: var(--navy); line-height: 1.5; }

/* -----------------------------
   9. PROGRAM CARDS
------------------------------ */
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.program-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-md) var(--space-md);
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease);
}
.program-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--color-border-gold); }
.program-index {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--gold-deep);
  letter-spacing: 0.06em;
  margin-bottom: var(--space-sm);
}
.program-icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
  margin-bottom: var(--space-sm);
}
.program-card h3 { font-size: 1.35rem; margin-bottom: var(--space-2xs); }
.program-card p { color: var(--color-text-soft); font-size: 0.95rem; margin-bottom: var(--space-md); }

/* -----------------------------
   10. ARABIC FEATURE SECTION
------------------------------ */
.arabic-feature {
  background: var(--navy);
  color: rgba(255,255,255,0.9);
  position: relative;
  overflow: hidden;
}
.arabic-feature .geo-pattern {
  position: absolute; inset: 0;
  opacity: 0.06;
  background-repeat: repeat;
  background-size: 120px 120px;
  pointer-events: none;
}
.arabic-feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2xl); align-items: center; position: relative; z-index: 1; }
.arabic-word {
  font-family: var(--font-arabic);
  font-size: clamp(3rem, 3vw + 2rem, 6rem);
  color: var(--gold-soft);
  text-align: center;
  line-height: 1.4;
}
.arabic-word .translit { display: block; font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-top: var(--space-sm); }

/* -----------------------------
   11. MEET AFRA
------------------------------ */
.meet-afra { background: var(--white); }
.meet-afra-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.meet-afra-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: var(--shadow-lg);
}
.meet-afra-photo img { width: 100%; height: 100%; object-fit: cover; }
.credential-list { display: flex; flex-direction: column; gap: var(--space-xs); margin: var(--space-lg) 0; }
.credential-item {
  display: flex; align-items: flex-start; gap: 0.75em;
  font-size: 0.95rem;
  color: var(--charcoal);
  padding-bottom: var(--space-xs);
  border-bottom: 1px dashed var(--color-border);
}
.credential-item:last-child { border-bottom: 0; }
.credential-item .mark { color: var(--gold-deep); flex-shrink: 0; margin-top: 0.2em; }

/* -----------------------------
   12. WHY ALA — PILLARS
------------------------------ */
.pillars-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-md); }
.pillar-card { text-align: center; padding: var(--space-md) var(--space-2xs); }
.pillar-icon {
  width: 58px; height: 58px;
  margin: 0 auto var(--space-sm);
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  color: var(--navy);
}
.pillar-card h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; font-size: 1rem; margin-bottom: 0.4em; }
.pillar-card p { font-size: 0.88rem; color: var(--color-text-soft); }

/* -----------------------------
   13. SPLIT FEATURE (Online academy / Corporate / Quranic)
------------------------------ */
.split-feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split-feature.reverse .split-visual { order: 2; }
.split-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 5/4;
  box-shadow: var(--shadow-md);
}
.split-visual img { width: 100%; height: 100%; object-fit: cover; }
.feature-list { display: flex; flex-direction: column; gap: var(--space-sm); margin: var(--space-md) 0 var(--space-lg); }
.feature-list li { display: flex; align-items: center; gap: 0.7em; font-size: 0.96rem; }
.feature-list .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }

.visual-tile {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--space-sm);
  color: var(--white);
  text-align: center;
  padding: var(--space-lg);
}
.visual-tile.tile-navy { background: linear-gradient(160deg, var(--navy), var(--navy-deep)); }
.visual-tile.tile-green { background: linear-gradient(160deg, var(--green), #123f39); }
.visual-tile.tile-mauve { background: linear-gradient(160deg, var(--mauve), #4f3a49); }
.visual-tile-glyph { font-family: var(--font-display); font-size: 3.4rem; color: var(--gold-soft); }
.visual-tile p { color: rgba(255,255,255,0.78); font-size: 0.9rem; max-width: 26ch; }

/* -----------------------------
   14. PUBLICATIONS
------------------------------ */
.publications-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.article-card {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.article-card-media {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-soft);
  font-family: var(--font-display);
  font-size: 2.2rem;
}
.article-card-body { padding: var(--space-md); flex: 1; display: flex; flex-direction: column; }
.article-category { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 0.5em; }
.article-card h3 { font-size: 1.2rem; margin-bottom: 0.5em; }
.article-excerpt { color: var(--color-text-soft); font-size: 0.9rem; flex: 1; margin-bottom: var(--space-sm); }
.article-meta { font-size: 0.78rem; color: var(--color-text-soft); display: flex; justify-content: space-between; border-top: 1px solid var(--color-border); padding-top: var(--space-xs); margin-bottom: var(--space-sm); }
.sample-tag { display: inline-block; font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; background: var(--cream-deep); color: var(--color-text-soft); padding: 0.2em 0.6em; border-radius: var(--radius-sm); margin-bottom: 0.6em; }

/* -----------------------------
   15. STORYBOOKS / KIDS
------------------------------ */
.kids-preview { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }
.kids-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  aspect-ratio: 3/4;
  color: var(--white);
  display: flex; align-items: flex-end;
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
}
.kids-card h4 { color: var(--white); margin: 0; font-family: var(--font-display); font-weight: 600; }
.kids-card span { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.85; }

/* -----------------------------
   16. TESTIMONIALS
------------------------------ */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.testimonial-card {
  background: var(--white);
  border: 1px dashed var(--color-border-gold);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  color: var(--color-text-soft);
}
.testimonial-quote-mark { font-family: var(--font-display); font-size: 2.6rem; color: var(--gold); line-height: 1; margin-bottom: var(--space-xs); }
.testimonial-placeholder-text { font-style: italic; font-size: 0.95rem; }
.testimonial-name { margin-top: var(--space-sm); font-size: 0.85rem; font-weight: 700; color: var(--navy); }

/* -----------------------------
   17. FINAL CTA
------------------------------ */
.final-cta { background: var(--navy); color: var(--white); text-align: center; position: relative; overflow: hidden; }
.final-cta .container-narrow { position: relative; z-index: 1; }
.final-cta h2 { color: var(--white); }
.final-cta p.lead { color: rgba(255,255,255,0.78); }
.final-cta .cta-row { justify-content: center; margin-top: var(--space-lg); }
.final-cta-pattern {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(200,161,90,0.10), transparent 45%),
              radial-gradient(circle at 80% 80%, rgba(30,99,90,0.18), transparent 45%);
}

/* -----------------------------
   18. FOOTER
------------------------------ */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.72); }
.footer-top { padding-block: var(--space-2xl) var(--space-xl); border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr 1.2fr; gap: var(--space-lg); }
.footer-logo-lockup { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-md); }
.footer-logo-frame {
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  display: inline-flex;
}
.footer-logo-frame img { height: 40px; width: auto; }
.footer-brand-name { display: block; font-family: var(--font-display); font-size: 1.05rem; color: var(--white); }
.footer-brand-tagline { display: block; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-soft); margin-top: 0.2em; }
.footer-desc { font-size: 0.9rem; color: rgba(255,255,255,0.6); max-width: 34ch; margin-bottom: var(--space-md); }
.footer-social { display: flex; gap: 0.6em; }
.social-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  color: rgba(255,255,255,0.75);
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.social-icon:hover { border-color: var(--gold); color: var(--gold-soft); }

.footer-col-heading { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: var(--space-md); }
.footer-col ul { display: flex; flex-direction: column; gap: 0.65em; }
.footer-col a { font-size: 0.9rem; color: rgba(255,255,255,0.68); transition: color var(--dur-fast) var(--ease); }
.footer-col a:hover { color: var(--white); }

.footer-newsletter-desc { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-bottom: var(--space-sm); }
.newsletter-form { display: flex; gap: 0.5em; margin-bottom: var(--space-md); }
.newsletter-form input {
  flex: 1; min-width: 0;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-pill);
  padding: 0.7em 1.1em;
  color: var(--white);
  font-size: 0.85rem;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.footer-contact-line { font-size: 0.85rem; line-height: 1.7; }
.footer-contact-line a { color: rgba(255,255,255,0.75); }

.footer-bottom { padding-block: var(--space-md); }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-sm); font-size: 0.8rem; color: rgba(255,255,255,0.5); }
.footer-legal { display: flex; gap: var(--space-md); }
.footer-legal a { color: rgba(255,255,255,0.5); }
.footer-legal a:hover { color: var(--white); }

/* -----------------------------
   19. GENERIC PAGE HEADER (internal pages)
------------------------------ */
.page-header {
  background: var(--navy);
  color: var(--white);
  padding-block: var(--space-2xl) var(--space-xl);
  position: relative;
  overflow: hidden;
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 { color: var(--white); max-width: 20ch; }
.page-header p.lead { color: rgba(255,255,255,0.78); max-width: 60ch; }
.breadcrumbs { display: flex; gap: 0.5em; font-size: 0.82rem; color: rgba(255,255,255,0.55); margin-bottom: var(--space-md); flex-wrap: wrap; }
.breadcrumbs a { color: rgba(255,255,255,0.75); }
.breadcrumbs a:hover { color: var(--gold-soft); }
.breadcrumbs .sep { opacity: 0.5; }

/* -----------------------------
   20. FAQ ACCORDION
------------------------------ */
.faq-list { border-top: 1px solid var(--color-border); }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-question {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-md);
  background: none; border: 0;
  text-align: left;
  padding: var(--space-md) 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--navy);
}
.faq-icon { flex-shrink: 0; width: 22px; height: 22px; position: relative; }
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  background: var(--gold-deep);
  transition: transform var(--dur-base) var(--ease);
}
.faq-icon::before { top: 50%; left: 0; width: 100%; height: 2px; transform: translateY(-50%); }
.faq-icon::after { left: 50%; top: 0; width: 2px; height: 100%; transform: translateX(-50%); }
.faq-item[open] .faq-icon::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.faq-answer { padding-bottom: var(--space-md); color: var(--color-text-soft); max-width: 68ch; }

/* -----------------------------
   21. FORMS
------------------------------ */
.form-card {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.form-field { display: flex; flex-direction: column; gap: 0.4em; margin-bottom: var(--space-md); }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.85rem; font-weight: 700; color: var(--navy); }
.form-field .req { color: var(--mauve); }
.form-field input,
.form-field select,
.form-field textarea {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.85em 1em;
  font-size: 0.95rem;
  background: var(--cream);
  color: var(--charcoal);
  transition: border-color var(--dur-fast) var(--ease);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--gold);
  outline: none;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-hint { font-size: 0.78rem; color: var(--color-text-soft); }
.form-note { font-size: 0.82rem; color: var(--color-text-soft); margin-top: var(--space-sm); }

/* -----------------------------
   22. CARDS: GENERIC INFO / VALUE
------------------------------ */
.info-card {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
}
.info-card h4 { margin-bottom: 0.4em; }
.info-card p { font-size: 0.92rem; color: var(--color-text-soft); margin: 0; }

.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); text-align: center; }
.stat-item .num { font-family: var(--font-display); font-size: 2.4rem; color: var(--navy); display: block; }
.stat-item .label { font-size: 0.8rem; color: var(--color-text-soft); text-transform: uppercase; letter-spacing: 0.05em; }

/* -----------------------------
   23. GEOMETRIC ACCENT (SVG bg via CSS var)
------------------------------ */
.geo-divider {
  display: flex; align-items: center; justify-content: center;
  gap: var(--space-sm);
  margin: var(--space-xl) 0;
  color: var(--gold);
}
.geo-divider::before, .geo-divider::after { content: ""; height: 1px; flex: 1; background: var(--color-border-gold); }

/* -----------------------------
   24. SCROLL REVEAL
------------------------------ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* -----------------------------
   25. BACK TO TOP
------------------------------ */
.back-to-top {
  position: fixed;
  right: var(--space-md);
  bottom: var(--space-md);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
  z-index: 400;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* -----------------------------
   26. FLOATING WHATSAPP BUTTON
------------------------------ */
.whatsapp-float {
  position: fixed;
  right: var(--space-md);
  bottom: calc(var(--space-md) + 58px);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 450;
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.whatsapp-float:hover, .whatsapp-float:focus-visible {
  transform: scale(1.08);
  box-shadow: var(--shadow-lg);
  color: var(--white);
}
.whatsapp-float svg { width: 28px; height: 28px; }
@media (max-width: 640px) {
  .whatsapp-float {
    right: var(--space-sm);
    bottom: calc(var(--space-sm) + 54px);
    width: 50px; height: 50px;
  }
  .whatsapp-float svg { width: 25px; height: 25px; }
}
