/*
 * zuhora/css/base.css
 * -----------------------------------------------------------------------------
 * Reset, global element styles, utility animations.
 * -----------------------------------------------------------------------------
 */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-base);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: var(--font-body);
  font-weight: 400;
}

/* -- Film grain overlay --------------------------------------------------- */
/* Purely decorative; no text/content behind it - WCAG exempt */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.025;
  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='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  line-height: 1.15;
  font-family: var(--font-serif);
}
.cormorant-title {
  font-family: "Cormorant", serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
}
.nunito-body {
  font-family: "Nunito", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}
/* -- Keyframes ------------------------------------------------------------ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes twinkle {
  0%, 100% { opacity: var(--lo, 0.1); }
  50%      { opacity: var(--hi, 0.5); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1);   }
  50%       { opacity: 0.9; transform: scaleY(1.2); }
}

/* -- Scroll-reveal -------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity   0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.rd1 { transition-delay: 0.10s; }
.rd2 { transition-delay: 0.20s; }
.rd3 { transition-delay: 0.30s; }
.rd4 { transition-delay: 0.45s; }

/* -- Section typography --------------------------------------------------- */
.section-label {
  display: block;
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  /* --text-muted: 4.66:1 on both backgrounds - WCAG AA ✓ */
  color: var(--text-muted);
  margin-bottom: var(--space-5);
}

/* Override: section labels that sit next to gold accents use --accent */
.section-label--accent {
  color: var(--accent);
}

.section-title {
  font-size: clamp(28px, 6vw, 48px);
  font-weight: 300;
  line-height: 1.15;
  color: var(--text-primary);
}
.section-title em {
  font-style: italic;
  color: var(--accent);
}

.section-sub {
  font-size: var(--text-md);
  font-weight: 300;
  line-height: 1.8;
  /* --text-secondary: 7.27:1 - WCAG AA ✓ */
  color: var(--text-secondary);
  margin-top: var(--space-4);
  font-style: italic;
}

/* -- Divider -------------------------------------------------------------- */
.divider {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: 0 var(--gutter-mobile);
  max-width: var(--content-max);
  margin: 0 auto;
}
.divider-line {
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}
/* Decorative glyph - non-text, no contrast requirement */
.divider-gem {
  font-size: var(--text-xs);
  color: var(--border-accent);
}

/* -- Buttons -------------------------------------------------------------- */
.btn-primary {
  font-family: var(--font-serif);
  font-size: var(--text-md);;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  /* --bg-base on --accent: 8.54:1 - WCAG AA ✓ */
  color: var(--bg-base);
  background: var(--accent);
  padding: 15px 40px;
  text-decoration: none;
  display: inline-block;
  transition: background var(--duration-mid), transform var(--duration-fast);
  -webkit-tap-highlight-color: transparent;
}
.btn-primary:hover {
  /* --bg-base on --accent-bright: 13.95:1 - WCAG AA ✓ */
  background: var(--accent-bright);
  transform: translateY(-1px);
}

.btn-ghost {
  font-family: var(--font-serif);
  font-size: var(--text-md);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  /* --text-secondary: 7.27:1 - WCAG AA ✓ */
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 3px;
  transition: color var(--duration-mid), border-color var(--duration-mid);
}
.btn-ghost:hover {
  color: var(--text-primary);
  border-color: rgba(250, 248, 244, 0.45);
}
