/* ═══════════════════════════════════════════════
   BASE.CSS — Tokens · Reset · Utilities · Animations
   Edit here to change: colors, fonts, spacing, shared
   animation classes, buttons, and breakpoints.
═══════════════════════════════════════════════ */

/* ── TOKENS ──────────────────────────────────── */
:root {
  --cream:       #F8F3EC;
  --parchment:   #EDE3D2;
  --warm-white:  #FDFAF6;
  --gold:        #C9A46B;
  --gold-light:  #E4C990;
  --gold-deep:   #A07840;
  --ink:         #1C0E05;
  --brown-deep:  #3D1F0A;
  --brown-mid:   #6B3A1F;
  --brown-soft:  #9B6040;
  --text-main:   #2A1508;
  --text-muted:  #7A5E48;
  --text-light:  #B09070;

  --f-display: 'Playfair Display', Georgia, serif;
  --f-elegant: 'Cormorant Garamond', Georgia, serif;
  --f-body:    'DM Sans', sans-serif;

  --section-v:  120px;
  --section-h:  8vw;
  --max-w:      1200px;
  --radius:     2px;
}

/* ── RESET ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* clip (not hidden) — prevents horizontal scroll without creating a new
     scroll container, so position:fixed stays fixed on every section. */
  overflow-x: clip;
}
body {
  font-family: var(--f-body);
  background: var(--cream);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── UTILITY ─────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--section-h);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-body);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}
.eyebrow--center { justify-content: center; }
.eyebrow--light  { color: var(--gold-light); }

.gold-rule {
  width: 48px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin: 20px auto 32px;
  border-radius: 2px;
}

/* ── BUTTONS ─────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--f-body);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 16px 36px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background .28s ease, transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.08);
  transform: translateX(-101%);
  transition: transform .32s ease;
}
.btn:hover::after { transform: translateX(0); }

.btn-primary { background: var(--gold); color: var(--brown-deep); }
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,.22);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.45);
}
.btn-outline:hover { border-color: #fff; transform: translateY(-2px); }

.btn-dark {
  background: var(--brown-deep);
  color: var(--gold-light);
  border: 1px solid rgba(201,164,107,.25);
}
.btn-dark:hover {
  background: var(--brown-mid);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,.2);
}

/* ── SCROLL REVEAL ───────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal-right {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible,
.reveal-left.visible,
.reveal-right.visible { opacity: 1; transform: none; }

/* Staggered children */
.stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.stagger.visible > *:nth-child(1) { opacity:1; transform:none; transition-delay:.04s; }
.stagger.visible > *:nth-child(2) { opacity:1; transform:none; transition-delay:.13s; }
.stagger.visible > *:nth-child(3) { opacity:1; transform:none; transition-delay:.22s; }
.stagger.visible > *:nth-child(4) { opacity:1; transform:none; transition-delay:.31s; }
.stagger.visible > *:nth-child(5) { opacity:1; transform:none; transition-delay:.40s; }
.stagger.visible > *:nth-child(6) { opacity:1; transform:none; transition-delay:.49s; }
.stagger.visible > *:nth-child(7) { opacity:1; transform:none; transition-delay:.58s; }
.stagger.visible > *:nth-child(8) { opacity:1; transform:none; transition-delay:.67s; }

/* ── FADE KEYFRAMES (hero only) ──────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes lineReveal {
  from { transform: translateY(110%); }
  to   { transform: translateY(0); }
}
@keyframes fadeIn {
  to { opacity: 1; }
}

/* ── GRAIN OVERLAY ───────────────────────────── */
#grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9000;
  opacity: .022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' 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 200px;
}

/* ── SCROLL PROGRESS BAR ─────────────────────── */
#progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-light));
  z-index: 9999;
  width: 0%;
  transition: width .1s linear;
}

/* ════════════════════════════════════════════════
   GLOBAL RESPONSIVE OVERRIDES
   These adjust spacing / layout at key breakpoints.
   Section-specific responsive rules live in each
   section's own CSS file.
════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  :root {
    --section-v: 96px;
    --section-h: 6vw;
  }
}
@media (max-width: 768px) {
  :root {
    --section-v: 72px;
    --section-h: 6vw;
  }
}
@media (max-width: 480px) {
  :root {
    --section-v: 56px;
    --section-h: 5vw;
  }
  .btn { padding: 14px 28px; font-size: .74rem; }
}
