/* ============================================================
   base.css — design tokens, reset, typography, utilities
   Load order: base.css → components.css → sections.css
   ============================================================ */

:root {
  /* Palette — natural tones */
  --cream:      #F5F1EA;
  --cream-2:    #EFE9DF;
  --greige:     #DED5C7;
  --wood:       #6B4F3A;
  --wood-light: #8A6B4F;
  --charcoal:   #2B2A28;
  --charcoal-2: #34322F;
  --ink:        #1B1A18;
  --pine:       #4A5A48;
  --pine-light: #6E8268;
  --muted:      #7A7368;
  --line:       rgba(43, 42, 40, 0.12);
  --white:      #FFFFFF;

  --bg:   var(--cream);
  --text: var(--charcoal);

  /* Type */
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans:  "Inter", system-ui, -apple-system, sans-serif;

  /* Spacing / shape */
  --r:    14px;
  --r-lg: 22px;
  --shadow:    0 18px 50px rgba(27, 26, 24, 0.10);
  --shadow-sm: 0 6px 20px rgba(27, 26, 24, 0.08);
  --container: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; }

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

.section { padding: clamp(72px, 11vw, 140px) 0; }
.section-head { max-width: 640px; margin: 0 auto clamp(40px, 6vw, 72px); text-align: center; }
.section-title { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.section-sub { margin-top: 1.1rem; color: var(--muted); font-size: 1.12rem; }

.section-dark { background: var(--charcoal); color: var(--cream); }
.section-dark .section-sub { color: rgba(245,241,234,0.72); }
.section-dark .eyebrow { color: var(--pine-light); }
.section-soft { background: var(--cream-2); }

/* ---------- Typographic helpers ---------- */
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--wood);
  margin-bottom: 1rem;
}
.eyebrow.light { color: rgba(255,255,255,0.85); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: 0.95rem 1.8rem; border-radius: 100px;
  font-weight: 500; font-size: 0.98rem; letter-spacing: 0.01em;
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
  white-space: nowrap;
}
.btn-sm { padding: 0.6rem 1.15rem; font-size: 0.86rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--wood); color: var(--cream); box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.btn-primary:hover { background: var(--wood-light); transform: translateY(-2px); box-shadow: var(--shadow); }
/* shine sweep on hover */
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -130%; width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.38), transparent);
  transform: skewX(-20deg); transition: left .6s var(--ease); pointer-events: none;
}
.btn-primary:hover::after { left: 150%; }
/* attention pulse for high-intent CTAs */
.btn-attn { animation: ctaGlow 2.2s ease-in-out infinite; }
@keyframes ctaGlow {
  0%, 100% { box-shadow: var(--shadow-sm); }
  50% { box-shadow: 0 12px 32px rgba(43, 42, 40, 0.30); transform: translateY(-1px); }
}
.btn-ghost { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.6); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: #fff; transform: translateY(-2px); }
.btn-ghost.dark { color: var(--charcoal); border-color: var(--line); }
.btn-ghost.dark:hover { background: var(--charcoal); color: var(--cream); border-color: var(--charcoal); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-media { animation: none; transform: none; }
}
