/* ==========================================================
   BASE — reset, typography, primitives  ·  modernized
   ========================================================== */

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

* { margin: 0; padding: 0; }

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

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-dark);
  background: var(--bg-page);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-quick) var(--ease);
}

button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

ul, ol { list-style: none; }

::selection { background: var(--luxury-gold); color: var(--deep-brown); }

/* ----- Typography ----- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0.005em;
  color: var(--deep-brown);
}

h1 { font-size: clamp(42px, 7vw, 88px); }
h2 { font-size: clamp(34px, 4.8vw, 56px); }
h3 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.20; }
h4 { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.28; }

p { font-family: var(--font-sans); line-height: 1.75; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.34em;
  color: var(--burnt-gold);
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  display: block;
  width: 32px;
  height: 1px;
  background: var(--luxury-gold);
}

.script {
  font-family: var(--font-script);
  font-weight: 500;
  color: var(--luxury-gold);
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.15;
  letter-spacing: 0.005em;
}

.lede {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 60ch;
}

/* ----- Layout helpers ----- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.container-narrow {
  width: 100%;
  max-width: var(--maxw-narrow);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section { padding-block: var(--section-y); position: relative; }

.section--soft {
  background: var(--bg-soft);
  position: relative;
  isolation: isolate;
}
.section--soft::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(rgba(216, 168, 91, 0.06) 1px, transparent 1px),
    radial-gradient(rgba(216, 168, 91, 0.04) 1px, transparent 1px);
  background-size: 24px 24px, 16px 16px;
  background-position: 0 0, 8px 8px;
  opacity: 0.8;
  pointer-events: none;
  z-index: -1;
}

.section--dark { background: var(--bg-dark); color: var(--text-on-dark); }
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--text-on-dark); }

/* Cards keep their own readable typography even inside dark sections */
.section--dark .card:not(.card--feature) .card__title,
.section--dark .card:not(.card--feature) .card__kicker,
.section--dark .card:not(.card--feature) h1,
.section--dark .card:not(.card--feature) h2,
.section--dark .card:not(.card--feature) h3,
.section--dark .card:not(.card--feature) h4 {
  color: var(--deep-brown);
}
.section--dark .card:not(.card--feature) .card__text {
  color: var(--text-muted);
}
.section--dark .card:not(.card--feature) .card__kicker {
  color: var(--burnt-gold);
}

.divider-gold {
  width: 72px;
  height: 2px;
  background: linear-gradient(90deg, var(--luxury-gold) 0%, rgba(216,168,91,0.3) 100%);
  border: 0;
  border-radius: 1px;
  margin-block: 28px;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.05em;
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  transition:
    transform var(--dur-quick) var(--ease-spring),
    background var(--dur-base) var(--ease),
    color var(--dur-base) var(--ease),
    border-color var(--dur-base) var(--ease),
    box-shadow var(--dur-base) var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
}

.btn svg { width: 16px; height: 16px; }

.btn--gold {
  background: var(--gradient-warm);
  color: var(--deep-brown);
  box-shadow: 0 8px 28px rgba(216, 168, 91, 0.32), 0 2px 8px rgba(140, 88, 15, 0.12);
  border-color: rgba(57, 37, 12, 0.30);
}
.btn--gold:hover {
  background: var(--gradient-dark);
  color: var(--luxury-gold);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(20, 12, 4, 0.35), 0 4px 12px rgba(216, 168, 91, 0.15);
  border-color: var(--luxury-gold);
}

.btn--ghost {
  background: transparent;
  color: var(--text-on-dark);
  border-color: rgba(244, 236, 217, 0.65);
}
.btn--ghost:hover {
  background: rgba(244, 236, 217, 0.10);
  border-color: var(--luxury-gold);
  color: var(--luxury-gold);
  transform: translateY(-1px);
}

.btn--dark {
  background: var(--deep-brown);
  color: var(--ivory-sand);
  box-shadow: 0 4px 16px rgba(57, 37, 12, 0.25);
}
.btn--dark:hover {
  background: var(--charcoal-brown);
  color: var(--luxury-gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(57, 37, 12, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--deep-brown);
  border-color: var(--deep-brown);
}
.btn--outline:hover {
  background: var(--deep-brown);
  color: var(--ivory-sand);
  transform: translateY(-1px);
}

/* Decorative African pattern overlay (subtle) */
.pattern-overlay {
  background-image:
    radial-gradient(rgba(216, 168, 91, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* Reveal animation utility */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity var(--dur-reveal) var(--ease-out),
    transform var(--dur-reveal) var(--ease-out);
  will-change: transform, opacity;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Skip to content link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--deep-brown);
  color: var(--ivory-sand);
  padding: 12px 18px;
  z-index: 9999;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--luxury-gold);
  outline-offset: 3px;
  border-radius: 4px;
}

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