/* ============================================
   MOONROOT FOLK, SHARED STYLESHEET
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=DM+Sans:wght@300;400;500&display=swap');

/* TOKENS */
:root {
  --soil:  #18140F;
  --bark:  #2A1F14;
  --root:  #3D2D1E;
  --ochre: #7A5C35;
  --gold:  #B8894E;
  --parch: #DDD0B8;
  --mist:  #EDE6D8;
  --sage:  #4A6741;

  --ff-display: 'Cormorant Garamond', Georgia, serif;
  --ff-body:    'DM Sans', system-ui, sans-serif;

  --text-hero: clamp(3rem, 7vw, 5.5rem);
  --text-h2:   clamp(2rem, 4vw, 3rem);
  --text-h3:   clamp(1.4rem, 2.5vw, 1.8rem);
  --text-body: 1rem;
  --text-sm:   0.8rem;

  --max-w: 720px;
  --max-w-wide: 1100px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--soil);
  color: var(--parch);
  font-family: var(--ff-body);
  font-weight: 300;
  font-size: var(--text-body);
  line-height: 1.85;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--mist); }

/* ACCESSIBILITY */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── NAVIGATION ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease);
}

.nav.scrolled {
  background: rgba(24, 20, 15, 0.96);
  padding: 14px 40px;
  backdrop-filter: blur(8px);
}

.nav-brand {
  font-family: var(--ff-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--mist);
  letter-spacing: 0.03em;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--parch);
  opacity: 0.75;
  letter-spacing: 0.05em;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
  color: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--parch);
  transition: all 0.3s ease;
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav { padding: 18px 24px; }
  .nav.scrolled { padding: 12px 24px; }
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--bark);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
  }

  .nav-links.open { transform: translateX(0); }

  .nav-links a {
    font-size: 1.2rem;
    opacity: 1;
  }
}

/* ── LAYOUT HELPERS ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding: 96px 0;
}

.section-sm {
  padding: 64px 0;
}

/* ── TYPOGRAPHY ── */
.display {
  font-family: var(--ff-display);
  font-size: var(--text-hero);
  font-weight: 300;
  line-height: 1.1;
  color: var(--mist);
}

.display em {
  font-style: italic;
  color: var(--gold);
}

h2, .h2 {
  font-family: var(--ff-display);
  font-size: var(--text-h2);
  font-weight: 300;
  line-height: 1.2;
  color: var(--mist);
}

h3, .h3 {
  font-family: var(--ff-display);
  font-size: var(--text-h3);
  font-weight: 400;
  line-height: 1.3;
  color: var(--parch);
}

.eyebrow {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--ochre);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  display: block;
}

.lead {
  font-family: var(--ff-display);
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-style: italic;
  color: var(--gold);
  line-height: 1.65;
}

.body-text {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--parch);
  opacity: 0.85;
  max-width: 62ch;
}

.body-text p { margin-bottom: 20px; }
.body-text p:last-child { margin-bottom: 0; }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 13px 32px;
  border: 1px solid rgba(184, 137, 78, 0.5);
  border-radius: 2px;
  font-family: var(--ff-body);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--gold);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.btn:hover {
  border-color: var(--gold);
  color: var(--mist);
  background: rgba(184, 137, 78, 0.08);
}

.btn-sage {
  border-color: rgba(74, 103, 65, 0.6);
  color: var(--sage);
}

.btn-sage:hover {
  border-color: var(--sage);
  color: var(--mist);
  background: rgba(74, 103, 65, 0.1);
}

/* ── DIVIDER ── */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(184,137,78,0.2), transparent);
  margin: 0;
}

/* ── QUOTE BLOCK ── */
.quote-block {
  padding: 40px 0;
  text-align: center;
}

.quote-block blockquote {
  font-family: var(--ff-display);
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-style: italic;
  color: var(--gold);
  line-height: 1.55;
  max-width: 56ch;
  margin: 0 auto 12px;
}

.quote-block cite {
  font-size: var(--text-sm);
  color: var(--ochre);
  letter-spacing: 0.08em;
  font-style: normal;
}

/* ── PHASE BLOCKS ── */
.phase-block {
  padding: 32px 0;
  border-top: 1px solid rgba(184,137,78,0.15);
}

.phase-block:last-child {
  border-bottom: 1px solid rgba(184,137,78,0.15);
}

.phase-icon {
  font-size: 1.1rem;
  margin-bottom: 12px;
  display: block;
}

.phase-title {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--mist);
  margin-bottom: 4px;
}

.phase-tagline {
  font-family: var(--ff-display);
  font-style: italic;
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 12px;
  display: block;
}

.phase-text {
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--parch);
  opacity: 0.8;
  max-width: 58ch;
}

/* ── VAULT CARD ── */
.vault-card {
  padding: 40px;
  background: var(--bark);
  border: 1px solid rgba(184,137,78,0.12);
  margin-bottom: 2px;
  transition: border-color 0.3s ease;
}

.vault-card:hover {
  border-color: rgba(184,137,78,0.3);
}

.vault-phase {
  font-size: var(--text-sm);
  color: var(--ochre);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  display: block;
}

.vault-name {
  font-family: var(--ff-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 300;
  color: var(--mist);
  margin-bottom: 4px;
}

.vault-question {
  font-family: var(--ff-display);
  font-style: italic;
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 16px;
  display: block;
}

.vault-desc {
  font-size: 0.88rem;
  line-height: 1.85;
  color: var(--parch);
  opacity: 0.75;
  max-width: 52ch;
  margin-bottom: 24px;
}

.vault-price {
  font-size: 0.82rem;
  color: var(--ochre);
  margin-bottom: 20px;
}

/* ── FOOTER ── */
footer {
  background: var(--bark);
  padding: 64px 0 40px;
  border-top: 1px solid rgba(184,137,78,0.12);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--mist);
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 0.88rem;
  color: var(--ochre);
  line-height: 1.7;
  max-width: 32ch;
  margin-bottom: 20px;
}

.footer-col h4 {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--ochre);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  font-size: 0.88rem;
  color: var(--parch);
  opacity: 0.65;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.footer-col ul a:hover {
  opacity: 1;
  color: var(--gold);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(184,137,78,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--ochre);
  opacity: 0.6;
}

.footer-socials {
  display: flex;
  gap: 20px;
}

.footer-socials a {
  font-size: 0.78rem;
  color: var(--parch);
  opacity: 0.5;
  letter-spacing: 0.05em;
  transition: opacity 0.2s ease;
}

.footer-socials a:hover { opacity: 1; color: var(--gold); }

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .container-wide { padding: 0 24px; }
  .section { padding: 64px 0; }
}

/* ── PAGE HERO ── */
.page-hero {
  padding: 160px 0 96px;
  text-align: left;
}

.page-hero .display {
  margin-bottom: 24px;
}

.page-hero .lead {
  max-width: 52ch;
  margin-bottom: 32px;
}

/* ── HERO FADE IN ── */
.hero-fade {
  opacity: 0;
  transform: translateY(16px);
  animation: heroFade 1s var(--ease) forwards;
}

.hero-fade:nth-child(2) { animation-delay: 0.15s; }
.hero-fade:nth-child(3) { animation-delay: 0.3s; }
.hero-fade:nth-child(4) { animation-delay: 0.45s; }

@keyframes heroFade {
  to { opacity: 1; transform: translateY(0); }
}

/* ── AMBIENT BG ── */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 55% 35% at 15% 85%, rgba(61,45,30,0.45) 0%, transparent 65%),
    radial-gradient(ellipse 35% 55% at 85% 15%, rgba(74,103,65,0.08) 0%, transparent 55%);
}

/* ── INLINE FORM ── */
.email-form {
  display: flex;
  gap: 0;
  max-width: 400px;
  border: 1px solid rgba(184,137,78,0.3);
  border-radius: 2px;
  overflow: hidden;
}

.email-form input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 16px;
  color: var(--parch);
  font-family: var(--ff-body);
  font-size: 0.88rem;
  font-weight: 300;
  outline: none;
}

.email-form input::placeholder {
  color: var(--ochre);
  opacity: 0.6;
}

.email-form button {
  background: rgba(184,137,78,0.15);
  border: none;
  border-left: 1px solid rgba(184,137,78,0.3);
  padding: 12px 20px;
  color: var(--gold);
  font-family: var(--ff-body);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.email-form button:hover {
  background: rgba(184,137,78,0.25);
}
