/* ============================================================
   Base reset + primitives
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

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

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

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
a:hover { color: var(--amber-dark); }
a:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-off);
  border-radius: 4px;
}

/* HEADINGS — serif, warm, classic */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--ink);
  line-height: var(--lh-tight);
  font-weight: 600;
  letter-spacing: -0.01em;
}
h1 { font-size: var(--fs-hero); line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }

p { max-width: 65ch; }
strong { font-weight: 700; color: var(--ink); }
em { font-style: italic; }

ul, ol { padding-left: 1.4em; }
li { margin: var(--sp-2) 0; max-width: 60ch; }

/* CONTAINER */
.container {
  width: 100%;
  max-width: var(--maxw-page);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}
.container--narrow { max-width: var(--maxw-narrow); }
.container--text { max-width: var(--maxw-text); }

/* SECTIONS */
section {
  padding: var(--sp-9) 0;
}
section.section--soft { background: var(--bg-soft); }
section.section--white { background: var(--bg-elev); }
section.section--dark { background: var(--green-dark); color: var(--bg); }
section.section--dark h1, section.section--dark h2, section.section--dark h3 { color: #FFF8E7; }
section.section--dark a { color: var(--amber-soft); }

/* ============================================================
   BUTTONS — huge, obvious, single-purpose
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  min-height: 64px;
  padding: var(--sp-4) var(--sp-7);
  font-family: var(--font-sans);
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  border: none;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t-mid), background var(--t-mid);
  text-align: center;
  letter-spacing: 0.01em;
}
.btn:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-off);
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--green);
  color: #FFF8E7;
  box-shadow: var(--shadow-cta);
}
.btn--primary:hover {
  background: var(--green-dark);
  box-shadow: var(--shadow-lg);
  color: #FFF8E7;
}

.btn--amber {
  background: var(--amber);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(198, 139, 60, 0.32);
}
.btn--amber:hover {
  background: var(--amber-dark);
  color: #FFF8E7;
}

.btn--ghost {
  background: transparent;
  color: var(--green-dark);
  box-shadow: inset 0 0 0 2px var(--green-dark);
}
.btn--ghost:hover {
  background: var(--green-dark);
  color: #FFF8E7;
}

.btn--block {
  display: flex;
  width: 100%;
}

.btn--mega {
  min-height: 80px;
  font-size: var(--fs-xl);
  padding: var(--sp-5) var(--sp-8);
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--bg-elev);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.card--soft { background: var(--bg-soft); border: none; }

/* ============================================================
   PILLS / TAGS
   ============================================================ */
.pill {
  display: inline-block;
  padding: var(--sp-2) var(--sp-4);
  background: var(--amber-soft);
  color: var(--amber-dark);
  border-radius: var(--r-pill);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ============================================================
   DIVIDERS
   ============================================================ */
.divider {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: var(--sp-8) 0;
}
.divider--ornate {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  color: var(--amber);
  font-size: var(--fs-xl);
  margin: var(--sp-7) 0;
}
.divider--ornate::before, .divider--ornate::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--line), transparent);
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.text-amber { color: var(--amber-dark); }
.text-green { color: var(--green-dark); }
.text-faint { color: var(--ink-faint); }
.text-lg { font-size: var(--fs-lg); }
.text-xl { font-size: var(--fs-xl); }

.mt-1 { margin-top: var(--sp-1); }
.mt-2 { margin-top: var(--sp-2); }
.mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); }
.mt-8 { margin-top: var(--sp-8); }

.stack-2 > * + * { margin-top: var(--sp-2); }
.stack-3 > * + * { margin-top: var(--sp-3); }
.stack-4 > * + * { margin-top: var(--sp-4); }
.stack-5 > * + * { margin-top: var(--sp-5); }
.stack-6 > * + * { margin-top: var(--sp-6); }

.hide-mobile { display: none; }

/* ============================================================
   FORMS
   ============================================================ */
input, textarea, select {
  font: inherit;
  font-size: var(--fs-base);
  padding: var(--sp-4);
  min-height: 56px;
  background: var(--bg-elev);
  border: 2px solid var(--line);
  border-radius: var(--r-md);
  width: 100%;
  color: var(--ink);
  transition: border-color var(--t-fast);
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(58, 90, 64, 0.15);
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--sp-2);
  font-size: var(--fs-base);
}

/* ============================================================
   RESPONSIVE — mobile-first scaling
   ============================================================ */
@media (max-width: 700px) {
  :root {
    --fs-hero:  44px;
    --fs-3xl:  34px;
    --fs-2xl:  28px;
    --fs-xl:   22px;
    --fs-lg:   20px;
    --fs-base: 18px;
    --sp-9:    64px;
    --sp-10:   80px;
  }
  section { padding: var(--sp-8) 0; }
  .btn { width: 100%; padding: var(--sp-4) var(--sp-5); font-size: var(--fs-lg); }
  .btn--mega { min-height: 72px; }
}

@media (min-width: 701px) {
  .hide-mobile { display: revert; }
  .hide-desktop { display: none; }
}

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

/* Print */
@media print {
  body { background: white; color: black; }
  .btn, video, .cookie-banner { display: none !important; }
}
