/* ============================================
   FOREVER YOURS — Shared Design System
   Palette: Cream & Charcoal
   ============================================ */

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

:root {
  /* Colors — Cream & Charcoal */
  --cream: #F5EFE8;
  --cream-light: #FAF6F1;
  --cream-mid: #EDE5DA;
  --cream-dark: #E0D5C5;
  --accent: #8B6A52;
  --accent-dark: #6B4A38;
  --accent-light: rgba(139, 106, 82, 0.10);
  --ink: #2C2416;
  --ink-soft: #5A4E3E;
  --ink-muted: #9A8E7E;
  --white: #FFFFFF;
  --border: rgba(44, 36, 22, 0.12);
  --border-light: rgba(44, 36, 22, 0.08);

  /* Type */
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;

  /* Spacing */
  --nav-h: 72px;
  --section-gap: 80px;
  --container: 1200px;
  --container-narrow: 760px;

  /* Radius */
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 40px;
  --r-pill: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 12px rgba(44, 36, 22, 0.06);
  --shadow-md: 0 8px 40px rgba(44, 36, 22, 0.10);
  --shadow-lg: 0 24px 80px rgba(44, 36, 22, 0.14);
  --shadow-book: 0 32px 80px rgba(44, 36, 22, 0.20), 0 8px 24px rgba(44, 36, 22, 0.10);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: clip;
  width: 100%;
  max-width: 100vw;
}

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  width: 100%;
  max-width: 100vw;
  position: relative;
  touch-action: pan-y;
}

/* Lock every section so no inner element can stretch the viewport */
section, footer, nav { max-width: 100vw; overflow-x: clip; }

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 48px;
  transition: background 0.4s, box-shadow 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(250, 246, 241, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border-light);
}
.nav-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img { height: 32px; width: auto; max-width: 320px; object-fit: contain; }
.nav-logo-text {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); background: var(--cream-mid); }
.nav-links a.active { color: var(--accent); font-weight: 600; }
.nav-cta {
  background: var(--ink) !important;
  color: var(--white) !important;
  padding: 9px 22px !important;
  border-radius: var(--r-pill) !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  transition: background 0.2s, transform 0.2s !important;
  margin-left: 8px !important;
}
.nav-cta:hover {
  background: var(--accent) !important;
  color: var(--white) !important;
  transform: translateY(-1px) !important;
}
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--border-light);
  padding: 20px 40px;
  flex-direction: column;
  gap: 4px;
  z-index: 99;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  transition: color 0.2s;
}
.nav-mobile a:hover { color: var(--accent); }
.nav-mobile .nav-cta-mobile {
  margin-top: 12px;
  background: var(--ink);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--r-pill);
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  border: none;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  padding: 14px 28px;
  border-radius: var(--r-pill);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-accent {
  background: var(--accent);
  color: var(--white);
}
.btn-accent:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(139, 106, 82, 0.25);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}
.btn-outline-accent {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline-accent:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}
/* legacy aliases */
.btn-rose { background: var(--accent); color: var(--white); }
.btn-rose:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-outline-rose { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.btn-outline-rose:hover { background: var(--accent); color: var(--white); transform: translateY(-2px); }

.btn-lg { padding: 16px 36px; font-size: 15px; }
.btn-sm { padding: 10px 20px; font-size: 13px; }

/* ── CONTAINER ── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 60px;
}
.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 60px;
}

/* ── SECTION ── */
.section { padding: var(--section-gap) 0; }
.section-sm { padding: 60px 0; }
.section-lg { padding: 160px 0; }

/* ── STARS ── */
.stars { color: var(--accent); font-size: 14px; letter-spacing: 1px; }

/* ── REVIEW CARD ── */
.review-card {
  background: var(--cream-light);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: box-shadow 0.3s, transform 0.3s;
}
.review-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.review-card .stars { margin-bottom: 12px; }
.review-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.review-card .reviewer {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.review-card .reviewer-tag {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 2px;
}

/* ── FAQ ── */
.faq-item {
  border-bottom: 1px solid var(--border-light);
  padding: 24px 0;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  gap: 16px;
}
.faq-question:hover { color: var(--accent); }
.faq-icon {
  width: 28px; height: 28px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
  font-size: 16px;
  color: var(--ink-muted);
}
.faq-item.open .faq-icon {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding-top: 16px;
}

/* ── FOOTER ── */
.footer {
  background: var(--ink);
  color: rgba(245,239,232,0.5);
  padding: 40px 0 28px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 28px;
}
.footer-brand img {
  height: 52px;
  width: 52px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 8px;
  display: block;
}
.footer-brand p { display: none; }
.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245,239,232,0.3);
  margin-bottom: 12px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(245,239,232,0.5);
  text-decoration: none;
  padding: 3px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: rgba(245,239,232,0.9); }
.footer-bottom {
  border-top: 1px solid rgba(245,239,232,0.08);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(245,239,232,0.35);
}

.footer-email-row > div:first-child > div:first-child {
  margin-bottom: 14px !important;
}

.footer-email-row > div:first-child h3 {
  line-height: 1.28 !important;
}

/* ── POPUP ── */
.popup-overlay {
  position: fixed; inset: 0;
  background: rgba(44, 36, 22, 0.5);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.popup-overlay.open { opacity: 1; pointer-events: all; }
.popup-card {
  background: var(--cream-light);
  border-radius: var(--r-xl);
  padding: 48px;
  max-width: 440px;
  width: calc(100% - 48px);
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s;
  text-align: center;
}
.popup-overlay.open .popup-card { transform: translateY(0) scale(1); }
.popup-close {
  position: absolute; top: 20px; right: 20px;
  background: var(--cream-mid);
  border: none;
  border-radius: var(--r-pill);
  width: 32px; height: 32px;
  cursor: pointer; font-size: 16px;
  color: var(--ink-muted);
  display: flex; align-items: center; justify-content: center;
}
.popup-close:hover { background: var(--cream-dark); color: var(--ink); }
.popup-eyebrow {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.popup-card h3 {
  font-size: 24px; font-weight: 700;
  color: var(--ink); letter-spacing: -0.03em;
  margin-bottom: 10px; line-height: 1.3;
}
.popup-card p {
  font-size: 14px; color: var(--ink-soft);
  line-height: 1.6; margin-bottom: 24px;
}
.popup-form { display: flex; flex-direction: column; gap: 12px; }
.popup-form input {
  width: 100%; padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-pill);
  font-family: var(--font-sans); font-size: 14px;
  color: var(--ink); background: var(--white);
  outline: none; transition: border-color 0.2s;
}
.popup-form input:focus { border-color: var(--accent); }
.popup-form button {
  width: 100%; padding: 14px;
  background: var(--ink); color: var(--white);
  border: none; border-radius: var(--r-pill);
  font-family: var(--font-sans); font-weight: 600;
  font-size: 14px; cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.popup-form button:hover { background: var(--accent); transform: translateY(-1px); }
.popup-note { font-size: 12px; color: var(--ink-muted); margin-top: 8px; }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── EYEBROW ── */
.eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}

/* ── SECTION HEADING ── */
.section-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
}
.section-title em {
  font-style: normal;
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--accent);
}
.section-subtitle {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 540px;
}

/* ── PULL QUOTE ── */
.pull-quote {
  font-family: var(--font-sans);
  font-size: clamp(20px, 3vw, 28px);
  font-style: normal;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.5;
}
.pull-quote cite {
  display: block;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-muted); margin-top: 12px;
}

/* ── DIVIDER ── */
.divider {
  width: 48px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
  margin: 20px 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  :root { --nav-h: 60px; --section-gap: 56px; }
  .container, .container-narrow { padding: 0 20px; }
  .nav { padding: 0 16px; }
  .nav-inner { gap: 12px; }
  .nav-logo img { height: 26px; max-width: 200px; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile { padding: 16px 20px; }

  .section { padding: 56px 0; }
  .section-sm { padding: 40px 0; }
  .section-lg { padding: 80px 0; }

  .section-title { font-size: clamp(26px, 7vw, 36px); }
  .section-subtitle { font-size: 15px; }

  .btn { padding: 12px 20px; font-size: 13px; }
  .btn-lg { padding: 13px 22px; font-size: 14px; }

  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand img { height: 44px; width: 44px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; padding-top: 16px; }

  /* Email footer (shared across pages) — centered on mobile */
  .footer-email-row {
    flex-direction: column;
    align-items: center !important;
    gap: 16px !important;
    padding: 32px 0 20px !important;
    text-align: center;
  }
  .footer-email-row > div:first-child { width: 100%; }
  .footer-email-row > div:first-child h3 {
    font-size: clamp(13px, 3.6vw, 18px) !important;
    white-space: nowrap;
    line-height: 1.2;
  }
  /* Prevent iOS Safari auto-zoom on input focus: needs >= 16px */
  .footer-email-row input,
  .form-group input,
  .form-group select,
  .form-group textarea { font-size: 16px !important; }
  .footer-email-row > div:last-child { min-width: 0 !important; width: 100%; }
  .footer-email-row .email-row {
    flex-direction: column;
    gap: 10px !important;
    align-items: stretch;
    width: 100%;
  }
  .footer-email-row .email-row > div { width: 100%; align-items: center !important; }
  .footer-email-row button { width: 100%; }
  .footer-links-row {
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
    padding: 24px 0 18px !important;
    text-align: center;
    justify-items: center;
  }
  .footer-links-row > div:first-child {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .footer-links-row > div:first-child .footer-logo-text { margin: 0 auto 14px !important; }
  .footer-links-row > div:first-child > div { align-items: center; }
  .footer-bottom-row {
    flex-direction: column;
    align-items: center !important;
    gap: 6px !important;
    text-align: center;
  }

  .pull-quote { font-size: clamp(18px, 4.5vw, 22px); }

  /* popup tighten on small screens */
  .popup-card { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .container, .container-narrow { padding: 0 16px; }
  .nav { padding: 0 12px; }
  .nav-logo img { height: 22px; max-width: 160px; }
}
