/* ═══════════════════════════════════════════
   BASE — Reset, Variables, Typography,
           Utilities, Buttons, Animations
   ═══════════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  transition: background-color .35s ease, color .35s ease;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

/* ── CSS Variables ── */
:root {
  --bg:          #FEFBF3;
  --bg-alt:      #F6EDD8;
  --bg-deep:     #EFE0C0;
  --surface:     #FDF5E4;
  --text:        #2C1A0C;
  --text-2:      #7A5840;
  --text-3:      #A07850;
  --accent:      #C17C3C;
  --accent-h:    #A3622C;
  --gold:        #C9993A;
  --border:      #E5D4B0;
  --border-soft: #EFE4C8;
  --shadow-sm:   0 2px 8px rgba(44,26,12,.07);
  --shadow-md:   0 6px 24px rgba(44,26,12,.12);
  --shadow-lg:   0 16px 48px rgba(44,26,12,.18);
  --radius:      14px;
  --radius-sm:   8px;
}

[data-theme="dark"] {
  --bg:          #170E07;
  --bg-alt:      #20140A;
  --bg-deep:     #2A1C0E;
  --surface:     #261808;
  --text:        #F2E4C0;
  --text-2:      #C5A070;
  --text-3:      #8A6840;
  --accent:      #E8924A;
  --accent-h:    #F5A460;
  --gold:        #D4A853;
  --border:      #3C2818;
  --border-soft: #302010;
  --shadow-sm:   0 2px 8px rgba(0,0,0,.25);
  --shadow-md:   0 6px 24px rgba(0,0,0,.4);
  --shadow-lg:   0 16px 48px rgba(0,0,0,.6);
}

/* ── Typography ── */
h1, h2, h3 { font-family: 'Playfair Display', serif; line-height: 1.15; }
h1 em, h2 em, .hero-tagline em { font-style: italic; color: var(--accent); }
p { line-height: 1.7; color: var(--text-2); }

/* ── Utilities ── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.label {
  font-size: .72rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px; display: block;
}
.label-inv { color: var(--gold); }

.section-head { text-align: center; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); margin-bottom: 14px; }
.sub { max-width: 560px; margin: 0 auto; font-size: .97rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 50px;
  font-size: .92rem; font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer; transition: all .22s ease; white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 18px rgba(193,124,60,.35);
}
.btn-primary:hover { background: var(--accent-h); transform: translateY(-2px); box-shadow: 0 6px 22px rgba(193,124,60,.45); }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-outline {
  background: transparent; color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: .84rem; }

/* ── Scroll Reveal ── */
.reveal, .reveal-left, .reveal-right {
  opacity: 0; transform: translateY(30px);
  transition: opacity .7s cubic-bezier(.25,.46,.45,.94), transform .7s cubic-bezier(.25,.46,.45,.94);
}
.reveal-left  { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal.visible, .reveal-left.visible, .reveal-right.visible { opacity: 1; transform: translate(0); }
.reveal[style*="--i:1"] { transition-delay: .1s; }
.reveal[style*="--i:2"] { transition-delay: .2s; }
.reveal[style*="--i:3"] { transition-delay: .3s; }

/* ── Entry Animations ── */
.anim-in {
  opacity: 0; transform: translateY(24px);
  animation: fadeUp .75s cubic-bezier(.25,.46,.45,.94) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
