/* ═══════════════════════════════════════════════════════════════════
   LISSE VRAIE — Shared Design System
   lissevraie.com | GORGO Company
   ═══════════════════════════════════════════════════════════════════ */

@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=Jost:wght@300;400;500&display=swap');

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

:root {
  --bg:         #F9F6F1;
  --bg-section: #F2EDE4;
  --bg-dark:    #0A0A08;
  --gold:       #B08A4A;
  --gold-l:     #C9A96E;
  --text:       #1C1814;
  --mid:        #5A544E;
  --dim:        #9A9188;
  --border:     rgba(28,24,20,0.10);
  --border-g:   rgba(176,138,74,0.20);
  --radius:     0;
}

html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  line-height: 1.75;
}

/* ── TYPOGRAPHY ──────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  line-height: 1.15;
}

.serif   { font-family: 'Cormorant Garamond', serif; }
.italic  { font-style: italic; }
.gold    { color: var(--gold); }
.caps    { text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.7rem; font-weight: 400; }
.mid     { color: var(--mid); }
.dim     { color: var(--dim); }

/* ── NAV ─────────────────────────────────────────────────────────── */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo { height: 52px; width: auto; display: block; text-decoration: none; }
.nav-logo img { height: 52px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 2rem; }

.nav-link {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--gold); }
.nav-link.active { color: var(--text); }

.nav-link-cta {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--text);
  padding: 0.55rem 1.25rem;
  text-decoration: none;
  transition: background 0.2s;
}
.nav-link-cta:hover { background: var(--gold); }

/* ── BUTTONS ─────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 1.1rem 2.5rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, opacity 0.2s;
  border-radius: 0;
  text-align: center;
}
.btn-dark   { background: var(--text); color: var(--bg); }
.btn-dark:hover { background: var(--gold); color: var(--bg); }
.btn-gold   { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #9A7535; }
.btn-ghost  { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-full { width: 100%; }

/* ── FORMS ───────────────────────────────────────────────────────── */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.field label {
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid);
}
.field input, .field textarea {
  font-family: 'Jost', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 0.2s;
  border-radius: 0;
  width: 100%;
}
.field input:focus, .field textarea:focus { border-color: var(--gold); }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }

.form-error { font-size: 0.78rem; color: #B05050; margin-top: 0.5rem; display: none; }
.form-error.visible { display: block; }

/* ── SECTIONS ────────────────────────────────────────────────────── */
.section { padding: 7rem 3rem; }
.section-sm { padding: 4rem 3rem; }
.section-dark { background: var(--bg-dark); }
.section-cream { background: var(--bg-section); }
.section-center { text-align: center; }

.container { max-width: 1100px; margin: 0 auto; }
.container-sm { max-width: 680px; margin: 0 auto; }
.container-md { max-width: 820px; margin: 0 auto; }

.eyebrow {
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
  opacity: 0.5;
}
.eyebrow-plain { display: block; }
.eyebrow-plain::after { display: none; }

/* ── CARDS ───────────────────────────────────────────────────────── */
.card {
  background: #fff;
  border: 1px solid var(--border);
  padding: 2rem;
  transition: border-color 0.2s;
}
.card:hover { border-color: var(--border-g); }

.chapter-card {
  padding: 1.75rem 2rem;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  text-decoration: none;
  display: block;
  transition: border-color 0.25s, background 0.25s;
  position: relative;
}
.chapter-card:hover { border-color: var(--gold); }
.chapter-card.completed { background: var(--bg-section); border-color: var(--border-g); }
.chapter-card.locked { opacity: 0.45; cursor: default; pointer-events: none; }

.chapter-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--border);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.chapter-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.chapter-card p {
  font-size: 0.78rem;
  color: var(--dim);
}
.chapter-check {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}
.chapter-card.completed .chapter-check { opacity: 1; }
.chapter-check::after {
  content: '';
  width: 6px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg) translate(-1px,-1px);
}

/* ── GRID ────────────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; }

/* ── PULL QUOTE ──────────────────────────────────────────────────── */
.pull-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.45;
  color: var(--text);
  border-left: 2px solid var(--gold);
  padding-left: 2rem;
  margin: 2.5rem 0;
}
.pull-quote-dark {
  color: var(--bg-section);
  border-color: var(--gold);
}

/* ── DIVIDER ─────────────────────────────────────────────────────── */
.rule { height: 1px; background: var(--border); margin: 2.5rem 0; }
.rule-gold { height: 1px; background: var(--gold); width: 60px; margin: 1.5rem 0; }

/* ── PROGRESS BAR ────────────────────────────────────────────────── */
.progress-bar-wrap {
  height: 3px;
  background: var(--border);
  margin-bottom: 2rem;
  width: 100%;
}
.progress-bar-fill {
  height: 100%;
  background: var(--gold);
  transition: width 0.4s ease;
}

/* ── BADGE ───────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--border-g);
  color: var(--gold);
}

/* ── FOOTER ──────────────────────────────────────────────────────── */
.footer {
  background: var(--bg-dark);
  padding: 2.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #F2EDE4;
  text-decoration: none;
  opacity: 0.5;
}
.footer-links { display: flex; gap: 2rem; }
.footer-links a {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(242,237,228,0.35);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold-l); }
.footer-copy { font-size: 0.68rem; color: rgba(242,237,228,0.2); }

/* ── AUDIO PLAYER ────────────────────────────────────────────────── */
.audio-wrap {
  background: var(--bg-dark);
  padding: 2.5rem;
  margin: 2.5rem 0;
}
.audio-label {
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: block;
}
.audio-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-style: italic;
  color: #F2EDE4;
  margin-bottom: 1.25rem;
}
audio {
  width: 100%;
  filter: invert(1) sepia(1) saturate(0.4) hue-rotate(5deg);
  opacity: 0.75;
}

/* ── EXERCISE BOX ────────────────────────────────────────────────── */
.exercise-box {
  background: var(--bg-section);
  border-left: 3px solid var(--gold);
  padding: 2rem 2rem 2rem 2.25rem;
  margin: 2.5rem 0;
}
.exercise-label {
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 0.75rem;
  display: block;
}
.exercise-box p { font-size: 0.95rem; color: var(--mid); line-height: 1.85; }

/* ── RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav { padding: 1.25rem 1.5rem; }
  .nav-logo img { height: 42px; }
  .section { padding: 4rem 1.5rem; }
  .section-sm { padding: 2.5rem 1.5rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-5 { grid-template-columns: 1fr 1fr; }
  .footer { flex-direction: column; gap: 1.25rem; text-align: center; padding: 2rem 1.5rem; }
  .footer-links { gap: 1.5rem; }
}

@media (max-width: 500px) {
  .grid-5 { grid-template-columns: 1fr; }
}
