/* =====================================================================
   NAHJ UL QURAN INSTITUTE — STYLES (MOBILE-FIRST, PRODUCTION)
   ---------------------------------------------------------------------
   Modern CSS features used:
     • clamp() for fluid typography that scales with viewport
     • 100svh / 100dvh for correct mobile viewport handling
     • aspect-ratio for consistent image proportions
     • color-mix() for semantic color blending (with fallbacks)
     • :where() for low-specificity utility classes
     • logical properties (padding-inline, margin-block) where clean
     • scroll-snap for smooth horizontal sliders
     • backdrop-filter for glass nav on scroll
===================================================================== */

/* =====================================================================
   DESIGN TOKENS
===================================================================== */
:root {
  /* Brand palette */
  --emerald-deep:     #06402B;
  --emerald-rich:     #0A5A3C;
  --emerald-midnight: #042B1D;
  --gold-matte:       #C5A059;
  --gold-soft:        #D9BC7A;
  --gold-shadow:      #8C6F3A;
  --ivory:            #F5F1E8;
  --ivory-pure:       #FAF7F0;
  --ink:              #0A0A0A;
  --whisper:          #3A3A3A;
  --stone:            #8A8578;
  --whatsapp:         #25D366;

  /* Fluid typography — scales smoothly between mobile and desktop */
  --fs-display: clamp(2.25rem, 8vw + 0.5rem, 6rem);    /* 36px → 96px */
  --fs-h2:      clamp(1.875rem, 4vw + 1rem, 3.75rem);  /* 30px → 60px */
  --fs-h3:      clamp(1.375rem, 2vw + 0.75rem, 2rem);  /* 22px → 32px */
  --fs-body:    clamp(0.9375rem, 0.5vw + 0.875rem, 1.125rem); /* 15 → 18 */

  /* Fluid vertical section padding */
  --section-pad: clamp(4rem, 8vw + 1rem, 10rem);       /* 64px → 160px */

  /* Easings */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out:   cubic-bezier(0.65, 0, 0.35, 1);

  /* Shadows */
  --shadow-sm: 0 2px 8px -2px rgb(6 64 43 / 0.08);
  --shadow-md: 0 12px 28px -8px rgb(6 64 43 / 0.18);
  --shadow-lg: 0 30px 60px -20px rgb(6 64 43 / 0.28);
  --shadow-xl: 0 40px 80px -24px rgb(6 64 43 / 0.35);
}

/* =====================================================================
   GLOBAL FOUNDATIONS
===================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.005em;
  background: var(--ivory-pure);
  color: var(--ink);
  overflow-x: hidden;
}

/* Lock scroll when mobile menu is open */
body.menu-open { overflow: hidden; }

section[id] { scroll-margin-top: 72px; }

/* =====================================================================
   TYPOGRAPHY
===================================================================== */
.font-display {
  font-family: 'Playfair Display', 'Georgia', serif;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.font-arabic {
  font-family: 'Amiri', 'Scheherazade New', serif;
  direction: rtl;
}

/* Hero display headline — fluid from 36px to 96px */
.display-xl {
  font-family: 'Playfair Display', serif;
  font-size: var(--fs-display);
  letter-spacing: -0.025em;
  line-height: 1;
}

/* Section h2 — fluid from 30px to 60px */
.display-h2 {
  font-family: 'Playfair Display', serif;
  font-size: var(--fs-h2);
  letter-spacing: -0.02em;
  line-height: 1.05;
}

/* =====================================================================
   SELECTION & SCROLLBAR
===================================================================== */
::selection {
  background: var(--gold-matte);
  color: var(--emerald-deep);
}

@media (pointer: fine) {
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-track { background: var(--ivory); }
  ::-webkit-scrollbar-thumb {
    background: var(--emerald-deep);
    border-radius: 10px;
    border: 2px solid var(--ivory);
  }
  ::-webkit-scrollbar-thumb:hover { background: var(--gold-shadow); }
}

/* =====================================================================
   BRAND LOGO
===================================================================== */
.brand-logo {
  height: 32px;
  width: auto;
  display: block;
  object-fit: contain;
}
@media (min-width: 768px) { .brand-logo { height: 40px; } }

.brand-logo-text {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* =====================================================================
   NAVIGATION
===================================================================== */
.nav-bar {
  transition:
    background-color 0.4s var(--ease-out-quart),
    backdrop-filter 0.4s ease,
    border-color 0.4s ease,
    padding 0.4s var(--ease-out-quart);
}

.nav-bar.scrolled {
  background: rgb(6 64 43 / 0.88);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid rgb(197 160 89 / 0.2);
  padding-block: 0.625rem;
}

/* =====================================================================
   HAMBURGER TOGGLE
===================================================================== */
.nav-toggle {
  --bar: var(--ivory);
  width: 44px;
  height: 44px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid rgb(197 160 89 / 0.25);
  border-radius: 999px;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s var(--ease-out-quart);
  z-index: 60;
}
.nav-toggle:hover {
  border-color: var(--gold-matte);
  background: rgb(197 160 89 / 0.08);
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--bar);
  border-radius: 2px;
  transition: all 0.4s var(--ease-out-expo);
  transform-origin: center;
}

/* Animated to X when menu open */
.nav-toggle[aria-expanded="true"] {
  border-color: var(--gold-matte);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
  background: var(--gold-matte);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
  background: var(--gold-matte);
}

/* =====================================================================
   MOBILE MENU (fullscreen overlay)
===================================================================== */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: linear-gradient(160deg, var(--emerald-midnight) 0%, var(--emerald-deep) 100%);
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 0.5s var(--ease-out-quart),
    visibility 0s linear 0.5s;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-menu.open {
  visibility: visible;
  opacity: 1;
  transition:
    opacity 0.5s var(--ease-out-quart),
    visibility 0s linear 0s;
}

.mobile-menu::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, var(--gold-matte) 1px, transparent 0);
  background-size: 32px 32px;
  opacity: 0.04;
  pointer-events: none;
}

.mobile-menu-inner {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 2rem 3rem;
  position: relative;
  z-index: 1;
}

.mobile-menu__arabic {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-family: 'Amiri', serif;
  font-size: 1.25rem;
  color: rgb(197 160 89 / 0.6);
  direction: rtl;
}

.mobile-menu__watermark {
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  text-align: center;
  font-family: 'Amiri', serif;
  font-size: clamp(5rem, 25vw, 9rem);
  color: rgb(197 160 89 / 0.05);
  line-height: 1;
  letter-spacing: -0.02em;
  pointer-events: none;
  user-select: none;
  direction: rtl;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 3rem;
}

.mobile-menu__link {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 7vw, 2.5rem);
  color: var(--ivory);
  text-decoration: none;
  padding-block: 0.75rem;
  border-bottom: 1px solid rgb(245 241 232 / 0.08);
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s var(--ease-out-expo),
    transform 0.6s var(--ease-out-expo),
    color 0.3s ease;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.mobile-menu__link:hover,
.mobile-menu__link:focus-visible { color: var(--gold-matte); }

.mobile-menu__link::after {
  content: attr(data-index);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  color: rgb(197 160 89 / 0.5);
  font-weight: 500;
}

.mobile-menu.open .mobile-menu__link {
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu.open .mobile-menu__link:nth-child(1) { transition-delay: 0.15s; }
.mobile-menu.open .mobile-menu__link:nth-child(2) { transition-delay: 0.22s; }
.mobile-menu.open .mobile-menu__link:nth-child(3) { transition-delay: 0.29s; }
.mobile-menu.open .mobile-menu__link:nth-child(4) { transition-delay: 0.36s; }
.mobile-menu.open .mobile-menu__link:nth-child(5) { transition-delay: 0.43s; }

.mobile-menu__cta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s var(--ease-out-expo) 0.5s,
    transform 0.6s var(--ease-out-expo) 0.5s;
}
.mobile-menu.open .mobile-menu__cta { opacity: 1; transform: translateY(0); }

.mobile-menu__contact {
  border-top: 1px solid rgb(245 241 232 / 0.08);
  padding-top: 1.5rem;
  text-align: center;
}
.mobile-menu__contact-label {
  font-size: 0.625rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgb(245 241 232 / 0.4);
  margin-bottom: 0.5rem;
}
.mobile-menu__contact-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9375rem;
  color: var(--gold-matte);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* =====================================================================
   DECORATIVE ELEMENTS
===================================================================== */
.gold-hairline {
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    var(--gold-matte) 20%,
    var(--gold-matte) 80%,
    transparent 100%
  );
  opacity: 0.6;
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--gold-matte);
}
.ornament::before,
.ornament::after {
  content: '';
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--gold-matte) 50%,
    transparent
  );
}

.pattern-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    radial-gradient(circle at 1px 1px, var(--gold-matte) 1px, transparent 0);
  background-size: 32px 32px;
  pointer-events: none;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =====================================================================
   BUTTONS
===================================================================== */
.btn-primary,
.btn-secondary {
  --pad-y: 0.875rem;
  --pad-x: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: var(--pad-y) var(--pad-x);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.4s var(--ease-out-quart);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  min-height: 48px;             /* minimum touch target */
}

@media (min-width: 768px) {
  .btn-primary,
  .btn-secondary {
    --pad-y: 1.125rem;
    --pad-x: 2rem;
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
  }
}

.btn-primary {
  position: relative;
  background: var(--gold-matte);
  color: var(--emerald-deep);
  border: 1px solid var(--gold-matte);
  overflow: hidden;
  font-weight: 600;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--emerald-deep);
  transform: translateY(100%);
  transition: transform 0.5s var(--ease-out-quart);
  z-index: 0;
}
.btn-primary:hover::before { transform: translateY(0); }
.btn-primary:hover {
  color: var(--gold-soft);
  border-color: var(--emerald-deep);
}
.btn-primary > * { position: relative; z-index: 1; }

.btn-secondary {
  color: var(--ivory);
  border: 1px solid rgb(245 241 232 / 0.3);
  background: transparent;
  font-weight: 500;
}
.btn-secondary:hover {
  border-color: var(--gold-matte);
  color: var(--gold-matte);
  background: rgb(197 160 89 / 0.06);
}

.btn-arrow {
  display: inline-block;
  transition: transform 0.4s var(--ease-out-quart);
}
.btn-primary:hover .btn-arrow,
.btn-secondary:hover .btn-arrow { transform: translateX(6px); }

/* Menu-style CTA for mobile drawer */
.btn-mobile-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 1.125rem 2rem;
  background: var(--gold-matte);
  color: var(--emerald-deep);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  min-height: 52px;
  transition: all 0.3s ease;
}
.btn-mobile-primary:hover {
  background: var(--gold-soft);
  transform: translateY(-1px);
}

/* WhatsApp indicator dot */
.wa-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}
.wa-indicator::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--whatsapp);
  box-shadow: 0 0 0 3px rgb(37 211 102 / 0.18);
  flex-shrink: 0;
}

/* Floating WhatsApp button */
.wa-float {
  position: fixed;
  bottom: clamp(1rem, 4vw, 1.5rem);
  right: clamp(1rem, 4vw, 1.5rem);
  z-index: 40;
  width: clamp(52px, 14vw, 60px);
  height: clamp(52px, 14vw, 60px);
  border-radius: 50%;
  background: var(--whatsapp);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 14px 40px -10px rgb(37 211 102 / 0.5),
    0 0 0 0 rgb(37 211 102 / 0.45);
  transition: all 0.4s var(--ease-out-quart);
  text-decoration: none;
  animation: wa-pulse 2.4s ease-out infinite;
}
.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 20px 50px -10px rgb(37 211 102 / 0.65);
}
.wa-float svg {
  width: clamp(24px, 6vw, 28px);
  height: clamp(24px, 6vw, 28px);
}

/* Hide floating WhatsApp button when mobile menu is open */
body.menu-open .wa-float { opacity: 0; pointer-events: none; }

@keyframes wa-pulse {
  0%   { box-shadow: 0 14px 40px -10px rgb(37 211 102 / 0.5), 0 0 0 0   rgb(37 211 102 / 0.45); }
  70%  { box-shadow: 0 14px 40px -10px rgb(37 211 102 / 0.5), 0 0 0 16px rgb(37 211 102 / 0);    }
  100% { box-shadow: 0 14px 40px -10px rgb(37 211 102 / 0.5), 0 0 0 0   rgb(37 211 102 / 0);    }
}

/* =====================================================================
   HERO
===================================================================== */
.hero-section {
  min-height: 100svh;     /* safe viewport height — accounts for mobile URL bar */
  min-height: 100dvh;     /* dynamic viewport height — latest spec */
}

.hero-bg {
  animation: ken-burns 20s ease-in-out infinite alternate;
}

@keyframes ken-burns {
  0%   { transform: scale(1.08) translate(0, 0); }
  100% { transform: scale(1.18) translate(-2%, -1%); }
}

/* =====================================================================
   ANIMATIONS
===================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.9s var(--ease-out-expo),
    transform 0.9s var(--ease-out-expo);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

@keyframes gold-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.shimmer-gold {
  background: linear-gradient(
    90deg,
    var(--gold-matte) 0%,
    var(--gold-soft) 50%,
    var(--gold-matte) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gold-shimmer 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
.float-slow { animation: float 8s ease-in-out infinite; }

/* =====================================================================
   COURSE CARDS — Modern aspect-ratio approach
===================================================================== */
.course-card {
  position: relative;
  background: var(--ivory-pure);
  border: 1px solid rgb(6 64 43 / 0.08);
  border-radius: 2px;
  transition: all 0.5s var(--ease-out-quart);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.course-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--gold-matte),
    transparent
  );
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.6s ease;
}

@media (hover: hover) {
  .course-card:hover {
    transform: translateY(-6px);
    border-color: var(--gold-matte);
    box-shadow: var(--shadow-lg);
  }
  .course-card:hover::before { transform: scaleX(1); }
}

.course-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

@media (min-width: 768px) {
  .course-card__media { aspect-ratio: 4 / 3; }
}

.card-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-color: #1a4d35;
  transition: transform 0.8s var(--ease-out-quart);
}
.course-card:hover .card-image { transform: scale(1.06); }

.course-numeral {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-style: italic;
  color: var(--gold-matte);
  opacity: 0.5;
  transition: opacity 0.4s ease;
  font-size: clamp(3.5rem, 10vw, 4.5rem);
  line-height: 1;
}
.course-card:hover .course-numeral { opacity: 0.9; }

/* =====================================================================
   TESTIMONIAL SLIDER
===================================================================== */
.testimonial-track {
  display: flex;
  transition: transform 0.8s var(--ease-out-quart);
}
.testimonial-slide {
  flex: 0 0 100%;
  padding-inline: 0.5rem;
}
@media (min-width: 768px) {
  .testimonial-slide { padding-inline: 1rem; }
}

.testimonial-dot {
  width: 24px;
  height: 2px;
  background: rgb(197 160 89 / 0.3);
  transition: all 0.4s ease;
  cursor: pointer;
  border: none;
  padding: 0;
}
.testimonial-dot.active {
  background: var(--gold-matte);
  width: 40px;
}

.initials-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--gold-matte);
  background: var(--emerald-deep);
  border: 2px solid var(--gold-matte);
}

/* =====================================================================
   TRUST STATS — 3-column grid
===================================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}

/* =====================================================================
   MISSION PILLARS
===================================================================== */
.pillar {
  position: relative;
  padding-left: 2.5rem;
  transition: all 0.4s ease;
}
@media (min-width: 768px) {
  .pillar { padding-left: 3.5rem; }
}
.pillar::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 1.5rem;
  height: 1px;
  background: var(--gold-matte);
  transition: width 0.4s ease;
}
@media (min-width: 768px) {
  .pillar::before { width: 2rem; }
}
.pillar:hover::before { width: 2.75rem; }

/* =====================================================================
   STATS COUNTER
===================================================================== */
.stat-value {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-feature-settings: 'tnum';
  color: var(--gold-matte);
  line-height: 1;
  font-size: clamp(3rem, 10vw, 5rem);
}

/* =====================================================================
   TEAM CARDS
===================================================================== */
.team-card {
  position: relative;
  background: var(--ivory-pure);
  border: 1px solid rgb(6 64 43 / 0.08);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  transition: all 0.5s var(--ease-out-quart);
}
.team-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 2.5rem;
  height: 1px;
  background: var(--gold-matte);
  transition: width 0.5s ease;
}

@media (hover: hover) {
  .team-card:hover {
    border-color: rgb(197 160 89 / 0.4);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
  }
  .team-card:hover::before { width: 4.5rem; }
}

.team-avatar,
.team-monogram {
  width: 84px;
  height: 84px;
  border-radius: 50%;
}
@media (min-width: 768px) {
  .team-avatar,
  .team-monogram { width: 96px; height: 96px; }
}

.team-avatar {
  overflow: hidden;
  background-size: cover;
  background-position: center;
  border: 2px solid var(--gold-matte);
  box-shadow: 0 10px 30px -15px rgb(6 64 43 / 0.3);
}

.team-monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--emerald-deep), var(--emerald-rich));
  border: 2px solid var(--gold-matte);
  color: var(--gold-matte);
  font-family: 'Playfair Display', serif;
  font-size: 1.625rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* =====================================================================
   ACCESSIBILITY
===================================================================== */
:where(a, button, input, [tabindex]):focus-visible {
  outline: 2px solid var(--gold-matte);
  outline-offset: 3px;
  border-radius: 2px;
}

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

/* =====================================================================
   MOBILE-SPECIFIC REFINEMENTS
===================================================================== */
@media (max-width: 767px) {
  /* Testimonial quote mark smaller */
  .testimonial-slide .font-display.text-6xl {
    font-size: 3rem;
  }
  /* Tighter ornament on mobile */
  .ornament::before,
  .ornament::after { max-width: 50px; }
}

/* Tablet & up */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-section { min-height: auto; padding-block: 8rem; }
}
