/* ============================================================
   GLOBAL — shared layout, typography, utilities, UI primitives.
   Section-specific styles live in their own stylesheets.
   ============================================================ */

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--charcoal);
  background: var(--cream);
}

/* -------- Typography primitives --------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--brown-warm);
}

h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }

p { color: var(--slate); }

.script { font-family: var(--font-script); font-weight: 500; }
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green-primary);
}

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

/* Native anchor jumps land below the fixed nav (resting height = worst case). */
html { scroll-padding-top: var(--nav-height); }

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

.section-cream      { background: var(--cream); }
.section-cream-deep { background: var(--cream-deep); }
.section-white      { background: var(--white); }
.section-green      { background: var(--green-primary); color: var(--cream); }
.section-green h2, .section-green h3 { color: var(--cream); }
.section-green p { color: rgba(245, 240, 232, 0.82); }

.section-header { text-align: center; max-width: 640px; margin: 0 auto var(--gap-lg); }
.section-header .eyebrow { margin-bottom: var(--gap-sm); display: inline-block; }
.section-header h2 { margin-bottom: var(--gap-sm); }
.section-header p { font-size: var(--fs-md); }

/* -------- Buttons ----------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 2rem;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition:
    transform var(--dur-fast) var(--ease-out),
    background-color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    color var(--dur-base) var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--green-primary);
  color: var(--cream);
  box-shadow: var(--shadow-card);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--green-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  outline: none;
}

.btn-ghost {
  background: transparent;
  color: var(--brown-warm);
  border: 1.5px solid var(--brown-warm);
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--brown-warm);
  color: var(--cream);
  transform: translateY(-2px);
  outline: none;
}

.btn-gold {
  background: var(--gold-soft);
  color: var(--charcoal);
}
.btn-gold:hover,
.btn-gold:focus-visible {
  background: var(--brown-warm);
  color: var(--cream);
  transform: translateY(-2px);
  outline: none;
}

/* -------- Reveal animations ------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 220ms; }
.reveal-delay-3 { transition-delay: 340ms; }

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

/* -------- Utility ----------------------------------------- */
.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;
}

.decor-divider {
  width: 60px;
  height: 2px;
  background: var(--gold-soft);
  border-radius: 2px;
  margin: var(--gap-md) auto;
}
