/* ═══════════════════════════════════════════════════════════
   LegacyStream AI — Shared Stylesheet  (styles.css)
   Provides: reset · base · nav · footer · animations
   Each page <style> block defines :root tokens and
   page-specific styles that cascade over this file.
═══════════════════════════════════════════════════════════ */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); overflow-x: hidden; }

/* ── NAV ──
   Default: fixed, cream-translucent. Pages with a different
   nav (e.g. sticky navy) override these rules in their own
   <style> block, which cascades after this file.
────────────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 60px;
  background: rgba(255,253,249,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200,164,90,0.15);
  animation: fadeDown 0.8s ease both;
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1.35rem; font-weight: 700;
  color: var(--navy); letter-spacing: -0.02em;
  text-decoration: none;
}
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  font-size: 0.875rem; font-weight: 400;
  color: var(--text-mid); text-decoration: none;
  letter-spacing: 0.02em; transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--navy); }
.nav-links a.active {
  font-weight: 500;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}

@keyframes ctaGlow {
  0%, 100% {
    box-shadow: 0 0 0px 0px rgba(200,164,90,0.0);
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    box-shadow: 0 0 22px 10px rgba(200,164,90,0.55), 0 0 40px 16px rgba(200,164,90,0.18);
    transform: scale(1.032);
    filter: brightness(1.12);
  }
}
.nav-cta-wrap { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.nav-cta-tagline {
  font-size: 0.67rem; font-weight: 300; letter-spacing: 0.01em;
  color: var(--navy); opacity: 0.55; line-height: 1; white-space: nowrap;
}
.nav-cta {
  background: var(--gold); color: var(--navy) !important;
  padding: 10px 22px; border-radius: 2px;
  font-weight: 500 !important; text-decoration: none; text-align: center;
  animation: ctaGlow 2.8s ease-in-out infinite;
  will-change: transform, box-shadow;
}
.nav-cta:hover {
  background: var(--gold-light) !important; color: var(--navy) !important;
  animation-play-state: paused;
}

/* Vapi call-button states */
#nav-talk-btn.in-call {
  background: #c0392b !important; color: #fff !important; animation: none !important;
}
#nav-talk-btn.in-call:hover { background: #e74c3c !important; }
#nav-talk-btn:disabled { opacity: 0.7; cursor: not-allowed; pointer-events: none; }

/* ── FOOTER (flex layout) ──
   Pages with a grid-based footer (contact, mission) override
   these rules in their own <style> block.
────────────────────────────────────────────────────────── */
footer {
  background: var(--navy-deep);
  padding: 60px 60px 40px;
  color: rgba(255,255,255,0.35);
}
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 32px;
}
.footer-logo {
  font-family: var(--serif); font-size: 1.2rem;
  font-weight: 700; color: rgba(255,255,255,0.9);
}
.footer-logo span { color: var(--gold); }
.footer-tagline { font-size: 0.8rem; color: rgba(255,255,255,0.3); margin-top: 6px; }
.footer-cta-center { display: flex; flex-direction: column; align-items: center; flex: 0 0 auto; }
.cta-form { display: flex; gap: 8px; }
.cta-input {
  padding: 11px 16px; border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05); border-radius: 2px;
  font-family: var(--sans); font-size: 0.85rem; color: #fff; width: 220px;
}
.cta-input::placeholder { color: rgba(255,255,255,0.3); }
.cta-submit {
  padding: 11px 20px; background: var(--gold); color: var(--navy);
  border: none; border-radius: 2px; font-family: var(--sans);
  font-size: 0.82rem; font-weight: 500; cursor: pointer;
  transition: background 0.2s; white-space: nowrap;
}
.cta-submit:hover { background: var(--gold-light); }
.cta-privacy { font-size: 0.72rem; color: rgba(255,255,255,0.2); margin-top: 10px; }
.footer-links { display: flex; gap: 48px; }
.footer-col h5 {
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 0.825rem; color: rgba(255,255,255,0.3);
  text-decoration: none; transition: color 0.2s;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; }
.footer-social { display: flex; gap: 12px; align-items: center; }
.footer-copy { font-size: 0.75rem; }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a {
  font-size: 0.75rem; color: rgba(255,255,255,0.25);
  text-decoration: none; transition: color 0.2s;
}
.footer-legal a:hover { color: var(--gold); }

/* ── ANIMATIONS ── */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── SCROLL-REVEAL HELPERS ── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.fade-up {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 18px 28px; }
  .nav-links { display: none; }
  footer { padding: 48px 28px 32px; }
  .footer-top { flex-direction: column; gap: 40px; }
  .footer-links { flex-wrap: wrap; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}
@media (max-width: 768px) {
  nav { padding: 18px 24px; }
}

/* ── HAMBURGER MENU ── */
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    background: white;
    width: 100%;
    top: 60px;
    left: 0;
    padding: 1rem;
    z-index: 100;
  }
  html, body { max-width: 100%; overflow-x: hidden; }
  * { box-sizing: border-box; }
  img { max-width: 100%; height: auto; }
  section, div, header, footer, nav { max-width: 100%; }
}
@media (max-width: 640px) {

  .nav-links { display: none; }
  .hamburger { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    background: white;
    width: 100%;
    top: 60px;
    left: 0;
    padding: 1rem;
    z-index: 100;
  }
  html, body { max-width: 100%; overflow-x: hidden; }
  * { box-sizing: border-box; }
  img { max-width: 100%; height: auto; }
  section, div, header, footer, nav { max-width: 100%; }
  /* Collapse all multi-column grids to single column */
  .hero, .how-header, .features-grid { grid-template-columns: 1fr; }
  .steps, .testi-grid { grid-template-columns: 1fr; }
  /* Fix fixed-width inputs */
  .cta-input { width: 100%; }
  /* Reduce excessive section padding */
  section { padding: 60px 20px; }
  .testimonials { padding: 60px 20px; }
  .cta-strip { padding: 60px 20px; }
  footer { padding: 40px 20px; }
  nav { padding: 14px 20px; }
  /* Reduce hero inner padding */
  .hero-left { padding: 40px 20px; }
  .hero-right-inner { padding: 30px 20px; }
  /* Fix modal padding */
  .lightbox-card, .love-note-modal { padding: 30px 20px; width: 95%; }
  /* Fix pricing section */
  .tiers { flex-direction: column; max-width: 100%; }
  .tier { width: 100%; padding: 32px 24px; }
}
