/* ============================================================
   CASA VAL DE VIDA — shared.css
============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400;1,600&family=Jost:wght@200;300;400;500&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

:root {
  --cream:      #F5F0E8;
  --warm-white: #FAF7F2;
  --sage:       #7A8C6E;
  --deep-green: #3D5A3E;
  --moss:       #5C7A4E;
  --earth:      #8B6F47;
  --terracotta: #C17A5A;
  --gold:       #C9A96E;
  --dark:       #2A2A22;
  --text:       #3A3830;
  --muted:      #6a6858;
  --light-sage: #D4DBC8;
  --border:     rgba(0,0,0,0.08);
}

body {
  font-family: 'Jost', sans-serif;
  background: var(--warm-white);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── NAVIGATION ─────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 60px;
  transition: all 0.4s ease;
}
nav.scrolled {
  background: rgba(245,240,232,0.97);
  backdrop-filter: blur(12px);
  padding: 15px 60px;
  box-shadow: 0 1px 0 var(--border);
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px; font-weight: 600; letter-spacing: 4px;
  text-transform: uppercase; color: var(--cream); text-decoration: none;
  transition: color 0.3s; line-height: 1; white-space: nowrap;
}
nav.scrolled .nav-logo { color: var(--deep-green); }
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a {
  font-size: 11px; font-weight: 300; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(245,240,232,0.85);
  text-decoration: none; transition: all 0.3s;
}
nav.scrolled .nav-links a { color: var(--muted); }
.nav-links a:hover, .nav-links a.nav-active { color: var(--cream) !important; opacity: 1; }
nav.scrolled .nav-links a:hover,
nav.scrolled .nav-links a.nav-active { color: var(--deep-green) !important; }
.nav-book {
  color: var(--dark) !important; background: var(--gold);
  padding: 10px 22px !important; border-radius: 2px;
  transition: background 0.3s !important;
}
.nav-book:hover { background: var(--earth) !important; color: var(--cream) !important; }
nav.scrolled .nav-book { color: var(--dark) !important; }

/* ── LANGUAGE TOGGLE ─────────────────────────────────────────── */
.lang-toggle {
  font-family: 'Jost', sans-serif;
  font-size: 10px; font-weight: 300; letter-spacing: 1.5px;
  background: none; border: 1px solid rgba(245,240,232,0.2);
  color: rgba(245,240,232,0.7); cursor: pointer;
  padding: 6px 11px; border-radius: 2px;
  transition: all 0.3s; white-space: nowrap;
  margin-left: 8px;
}
.lang-toggle:hover { border-color: var(--gold); color: var(--gold); }
nav.scrolled .lang-toggle { border-color: rgba(0,0,0,0.15); color: var(--muted); }
nav.scrolled .lang-toggle:hover { border-color: var(--gold); color: var(--earth); }
.lang-toggle .lt-active { opacity: 1; font-weight: 400; }
.lang-toggle .lt-inactive { opacity: 0.45; }
.lang-toggle .lt-sep { opacity: 0.3; margin: 0 1px; }
.lang-toggle-mobile {
  margin: 0; padding: 10px 20px;
  font-size: 12px; border-color: rgba(245,240,232,0.25);
  color: rgba(245,240,232,0.6);
}
.lang-toggle-mobile:hover { border-color: var(--gold); color: var(--gold); }

.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 24px; height: 1.5px;
  background: var(--cream); transition: all 0.3s;
}
nav.scrolled .nav-hamburger span { background: var(--dark); }

.mobile-menu {
  display: none; position: fixed; inset: 0;
  background: var(--deep-green); z-index: 999;
  flex-direction: column; align-items: center; justify-content: center; gap: 36px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 38px; font-weight: 300; color: var(--cream);
  text-decoration: none; letter-spacing: 2px; transition: opacity 0.2s;
}
.mobile-menu a:hover { opacity: 0.6; }
.mobile-close {
  position: absolute; top: 28px; right: 36px;
  font-size: 28px; color: var(--cream); cursor: pointer;
  background: none; border: none; font-family: serif; line-height: 1;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
footer {
  background: var(--dark); padding: 80px 60px 40px; color: var(--cream);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px; padding-bottom: 60px;
  border-bottom: 1px solid rgba(245,240,232,0.08); margin-bottom: 36px;
}
.footer-brand h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px; font-weight: 300; letter-spacing: 5px;
  text-transform: uppercase; margin-bottom: 4px;
}
.footer-brand .tagline {
  font-size: 10px; font-weight: 200; letter-spacing: 5px;
  text-transform: uppercase; color: var(--gold); margin-bottom: 18px;
}
.footer-brand p {
  font-size: 13px; font-weight: 200; line-height: 1.85;
  color: rgba(245,240,232,0.4); max-width: 280px;
}
.footer-col h4 {
  font-size: 9px; font-weight: 400; letter-spacing: 3.5px;
  text-transform: uppercase; color: var(--gold); margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li,
.footer-col ul a {
  font-size: 13px; font-weight: 200;
  color: rgba(245,240,232,0.45); text-decoration: none; transition: color 0.3s;
}
.footer-col ul a:hover { color: var(--cream); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer-copy { font-size: 11px; font-weight: 200; color: rgba(245,240,232,0.25); }
.footer-lang { display: flex; gap: 12px; }
.lang-pill {
  font-size: 10px; font-weight: 300; letter-spacing: 2px;
  color: rgba(245,240,232,0.3); cursor: pointer; background: none;
  border: 1px solid rgba(245,240,232,0.1); padding: 5px 12px;
  border-radius: 1px; transition: all 0.3s; font-family: 'Jost', sans-serif;
}
.lang-pill:hover, .lang-pill.active { color: var(--gold); border-color: rgba(201,169,110,0.3); }

/* ── PAGE HERO (non-home pages) ─────────────────────────────── */
.page-hero {
  padding: 140px 60px 80px;
  background: var(--deep-green);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(201,169,110,0.1) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(91,120,78,0.15) 0%, transparent 50%);
}
.page-hero-content { position: relative; z-index: 1; max-width: 700px; }
.page-eyebrow {
  font-size: 10px; font-weight: 300; letter-spacing: 5px;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 16px; display: block;
}
.page-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(44px, 6vw, 74px); font-weight: 300;
  color: var(--cream); line-height: 1.05; margin-bottom: 20px;
}
.page-hero h1 em { font-style: italic; color: rgba(245,240,232,0.6); }
.page-hero p {
  font-size: 16px; font-weight: 300; color: rgba(245,240,232,0.7);
  line-height: 1.8; max-width: 520px;
}

/* ── HELPERS ─────────────────────────────────────────────────── */
.section-label {
  display: block; font-size: 10px; font-weight: 400;
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--sage); margin-bottom: 16px;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 4vw, 52px); font-weight: 400;
  color: var(--dark); line-height: 1.15;
}
.section-title em { font-style: italic; color: var(--earth); }
.section-title.light { color: var(--cream); }
.section-title.light em { color: var(--gold); }

.btn-gold {
  display: inline-block; font-size: 11px; font-weight: 500;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--dark); background: var(--gold);
  padding: 16px 40px; border-radius: 2px; text-decoration: none;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  border: none; cursor: pointer; font-family: 'Jost', sans-serif;
}
.btn-gold:hover { background: var(--earth); color: var(--cream); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,0.15); }

.btn-ghost-dark {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 300; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--muted); text-decoration: none;
  transition: gap 0.3s, color 0.3s;
}
.btn-ghost-dark:hover { gap: 16px; color: var(--text); }
.btn-ghost-dark::after { content: '→'; }

/* ── REVEAL ANIMATION ────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.1); }
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  nav { padding: 20px 32px; }
  nav.scrolled { padding: 14px 32px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .page-hero { padding: 120px 36px 60px; }
  footer { padding: 60px 32px 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}
