/* ============================================
   STORYSSIMO SHARED DESIGN SYSTEM v2
   Same variable names as before (so every page's
   markup/JS keeps working) — values retheme to the
   Storyssimo gold/ivory palette for site-wide consistency.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Colors — Storyssimo gold/ivory palette */
  --parchment: #FAFAF6;
  --parchment-mid: #F2F1EA;
  --parchment-deep: #E5DCC3;
  --ink: #0F0A00;
  --ink-mid: #3A3A38;
  --ink-light: #706C62;
  --amber: #B8860B;
  --amber-light: #D4AF37;
  --amber-pale: #F3EDDD;
  --amber-deep: #966E09;
  --forest: #1E3A2F;
  --forest-pale: #E7EEEC;
  --white: #FFFFFF;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --text-base: 1.05rem;      /* was 0.9rem */
  --text-sm: 0.95rem;        /* was 0.82rem */
  --text-xs: 0.88rem;        /* was 0.76rem */
  --text-label: 0.8rem;      /* was 0.7rem */
  --line-height: 1.85;       /* was 1.7 */

  --radius: 4px;
  --shadow-warm: 0 8px 32px rgba(184,134,11,.1);
}

/* GLOBAL BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--parchment);
  color: var(--ink);
  line-height: var(--line-height);
  font-size: var(--text-base);
  overflow-x: hidden;
}

/* TYPOGRAPHY */
h1, h2, h3, h4 { font-family: var(--font-display); }
p { font-size: var(--text-base); color: var(--ink-mid); line-height: var(--line-height); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
a { color: var(--amber); }

/* SHARED NAV */
.storiva-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 5%;
  background: rgba(250,250,246,.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--parchment-deep);
}
.logo-wrap { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 700;
  letter-spacing: .12em; color: var(--ink);
}
.logo-text .dot { color: var(--amber); }
.nav-links { display: flex; align-items: center; gap: 1.8rem; list-style: none; }
.nav-links a {
  font-size: var(--text-sm); font-weight: 600;
  color: var(--ink-mid); text-decoration: none; transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--amber); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.btn-nav {
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: 700;
  background: var(--ink); color: var(--white);
  border: none; border-radius: 10px; padding: 11px 22px;
  cursor: pointer; text-decoration: none; transition: background .2s;
}
.btn-nav:hover { background: #2A2A28; }

/* SHARED BUTTONS */
.btn-primary {
  font-family: var(--font-body); font-size: 1.05rem; font-weight: 700;
  background: var(--ink); color: var(--white);
  border: none; border-radius: 12px; padding: 15px 32px;
  cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all .2s;
}
.btn-primary:hover { background: #2A2A28; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15,10,0,.25); }
.btn-secondary {
  font-family: var(--font-body); font-size: 1.05rem; font-weight: 600;
  background: transparent; color: var(--ink);
  border: 2px solid var(--parchment-deep); border-radius: 12px; padding: 13px 30px;
  cursor: pointer; text-decoration: none; transition: all .2s;
}
.btn-secondary:hover { border-color: var(--amber); color: var(--amber); }
.btn-forest {
  font-family: var(--font-body); font-size: 1.05rem; font-weight: 700;
  background: var(--forest); color: var(--white);
  border: none; border-radius: 12px; padding: 15px 32px;
  cursor: pointer; text-decoration: none; transition: all .2s;
}
.btn-forest:hover { background: #16291F; transform: translateY(-1px); }

/* SHARED SECTION HEADERS */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--text-label); font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 14px;
}
.eyebrow::before, .eyebrow::after { content: '—'; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 700; color: var(--ink); line-height: 1.2;
  margin-bottom: 14px;
}
.section-title em { font-style: italic; color: var(--amber); }
.section-subtitle { font-size: var(--text-base); color: var(--ink-mid); max-width: 560px; line-height: var(--line-height); }

/* SHARED FOOTER */
.storiva-footer { background: var(--ink); padding: 64px 5% 0; }
.footer-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand p { color: rgba(255,255,255,.45); font-size: var(--text-sm); line-height: 1.75; max-width: 280px; margin-top: 14px; }
.footer-col h4 {
  font-size: var(--text-label); font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--amber); margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,.5); font-size: var(--text-sm); text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: var(--amber-light); }
.footer-bottom {
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 14px; padding: 28px 0;
}
.footer-bottom p { color: rgba(255,255,255,.25); font-size: var(--text-xs); }
.footer-langs { display: flex; gap: 14px; }
.footer-langs a { font-size: var(--text-xs); color: rgba(255,255,255,.35); text-decoration: none; }
.footer-langs a:hover { color: var(--amber-light); }

/* SHARED FAQ */
.faq-item { border-bottom: 1px solid var(--parchment-deep); }
.faq-btn {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; text-align: left; font-family: var(--font-body);
}
.faq-q { font-size: var(--text-base); font-weight: 700; color: var(--ink); line-height: 1.4; }
.faq-toggle { color: var(--amber); font-size: 1.3rem; flex-shrink: 0; margin-left: 14px; transition: transform .25s; }
.faq-body { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-body p { padding-bottom: 18px; font-size: var(--text-base); }
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-item.open .faq-body { max-height: 300px; }

/* ── Burger button ─────────────────────────────────────── */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none; border: none;
  cursor: pointer; padding: 4px;
}
.nav-burger span {
  display: block; height: 2px;
  background: var(--ink-mid);
  border-radius: 2px;
  transition: all .25s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile slide-down menu ────────────────────────────── */
.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 65px; left: 0; right: 0;
  background: rgba(250,250,246,.98);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--parchment-deep);
  flex-direction: column;
  padding: 16px 5%;
  gap: 0;
  z-index: 99;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a,
.nav-mobile-menu button {
  font-family: var(--font-body);
  font-size: 1rem; font-weight: 600;
  color: var(--ink-mid);
  text-decoration: none;
  padding: 13px 0;
  border: none; border-bottom: 1px solid var(--parchment-deep);
  background: none; text-align: left; cursor: pointer;
  transition: color .2s;
}
.nav-mobile-menu a:last-child,
.nav-mobile-menu button:last-child { border-bottom: none; }
.nav-mobile-menu a:hover,
.nav-mobile-menu button:hover { color: var(--amber); }
.nav-mobile-divider { height: 1px; background: var(--parchment-deep); margin: 4px 0; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger  { display: flex; }
  .nav-right .btn-nav { display: none; }   /* hide desktop CTA, mobile menu has it */
  .nav-session { display: none !important; }  /* hide desktop session bar, mobile menu has it */
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
