/* ============================================================
   BecomingFaith — Shared Design System
   Fonts: Fraunces (display) + DM Sans (body)
   ============================================================ */

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

/* ── Tokens ────────────────────────────────────────────────── */
:root {
  --dawn-gold:    #F4A832;
  --gold-light:   rgba(244,168,50,0.12);
  --ember-coral:  #E8603A;
  --deep-navy:    #1A2340;
  --navy-mid:     #1E2B4A;
  --forest-green: #2D5A3D;
  --warm-cream:   #FAF6EF;
  --soft-stone:   #EDE8DF;
  --muted-sage:   #7A9E87;
  --anchor-blue:  #2B4C7E;
  --text-dark:    #1C1C1E;
  --text-mid:     #5C5C6E;
  --text-faint:   #9191A1;
  --surface:      #F7F4EE;
  --card-bg:      #FFFFFF;
  --border:       rgba(0,0,0,0.08);
  --border-light: rgba(0,0,0,0.05);

  --radius-sm:  10px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  32px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.09);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);

  --max-w: 1080px;
  --nav-h: 68px;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }

/* ── Base ───────────────────────────────────────────────────── */
body {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--surface);
}

/* ── Typography helpers ─────────────────────────────────────── */
.f-serif   { font-family: 'Fraunces', serif; }
.f-display { font-family: 'Fraunces', serif; font-weight: 300; line-height: 1.15; }

.eyebrow {
  font-family: 'Fraunces', serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dawn-gold);
  display: block;
  margin-bottom: 14px;
}
.eyebrow-dark { color: var(--text-mid); }

/* ── Navigation ─────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.3s, backdrop-filter 0.3s, box-shadow 0.3s;
}
.site-nav.scrolled {
  background: rgba(26, 35, 64, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-logo {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 400;
  color: #FDFAF4;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}
.nav-logo em { font-style: italic; color: var(--dawn-gold); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.nav-links a {
  font-size: 13.5px;
  font-weight: 400;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { color: #FDFAF4; }
.nav-cta {
  background: var(--dawn-gold);
  color: var(--deep-navy) !important;
  font-weight: 600 !important;
  padding: 9px 20px;
  border-radius: 100px;
  font-size: 13px !important;
  transition: opacity 0.2s !important;
}
.nav-cta:hover { opacity: 0.88; }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.75);
  border-radius: 2px;
  transition: 0.3s;
}
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--deep-navy);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-weight: 300;
  color: rgba(255,255,255,0.8);
  transition: color 0.2s;
}
.mobile-menu a:hover, .mobile-menu a:focus { color: var(--dawn-gold); }
.mobile-menu .close-btn {
  position: absolute;
  top: 24px; right: 28px;
  font-size: 28px;
  color: rgba(255,255,255,0.5);
  background: none;
  border: none;
  cursor: pointer;
}

/* ── Page top padding ───────────────────────────────────────── */
.page-top { padding-top: var(--nav-h); }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  background: var(--deep-navy);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 70% at 50% 110%, rgba(244,168,50,0.15) 0%, transparent 65%),
              radial-gradient(ellipse 50% 40% at 20% 0%, rgba(43,76,126,0.4) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 88px 32px 80px;
  position: relative;
}
.hero-inner.centered { text-align: center; }
.hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 300;
  color: #FDFAF4;
  line-height: 1.1;
  letter-spacing: -0.01em;
  max-width: 820px;
}
.hero h1.centered { margin: 0 auto; }
.hero h1 em { font-style: italic; color: var(--dawn-gold); }
.hero-sub {
  margin-top: 22px;
  font-size: clamp(15px, 2vw, 17px);
  color: rgba(255,255,255,0.58);
  max-width: 580px;
  line-height: 1.75;
}
.hero-sub.centered { margin-left: auto; margin-right: auto; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.hero-actions.centered { justify-content: center; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 14.5px;
  font-weight: 600;
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-gold     { background: var(--dawn-gold); color: var(--deep-navy); }
.btn-outline  { border: 1.5px solid rgba(255,255,255,0.25); color: rgba(255,255,255,0.85); }
.btn-outline:hover { border-color: rgba(255,255,255,0.5); }
.btn-dark     { background: var(--deep-navy); color: #FDFAF4; }
.btn-green    { background: var(--forest-green); color: #FDFAF4; }
.btn-sm       { padding: 10px 20px; font-size: 13px; }

/* ── Section shells ─────────────────────────────────────────── */
.section {
  padding: 96px 32px;
}
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.section-dark {
  background: var(--deep-navy);
  color: #FDFAF4;
}
.section-cream { background: var(--warm-cream); }
.section-stone { background: var(--soft-stone); }
.section-white { background: #FFFFFF; }

.section-header {
  margin-bottom: 56px;
}
.section-header.centered { text-align: center; }
.section-h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.section-h2 em { font-style: italic; color: var(--dawn-gold); }
.section-dark .section-h2 { color: #FDFAF4; }
.section-lead {
  margin-top: 16px;
  font-size: 16px;
  color: var(--text-mid);
  max-width: 560px;
  line-height: 1.75;
}
.section-dark .section-lead { color: rgba(255,255,255,0.55); }
.section-header.centered .section-lead { margin-left: auto; margin-right: auto; }

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.card-dark {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.card-icon {
  font-size: 24px;
  margin-bottom: 16px;
}
.card-title {
  font-family: 'Fraunces', serif;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 10px;
}
.card-body {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.7;
}
.card-dark .card-title { color: #FDFAF4; }
.card-dark .card-body  { color: rgba(255,255,255,0.55); }

/* ── Grid helpers ───────────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }

/* ── Email capture (Mailchimp) ──────────────────────────────── */
.email-capture {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.email-capture input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 13px 20px;
  border-radius: 100px;
  border: 1.5px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.07);
  color: #FDFAF4;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.email-capture input::placeholder { color: rgba(255,255,255,0.35); }
.email-capture input:focus { border-color: rgba(244,168,50,0.6); }

/* ── Streak visual ──────────────────────────────────────────── */
.streak-dots {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.s-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.s-dot.done  { background: var(--dawn-gold); color: var(--deep-navy); }
.s-dot.today { background: rgba(244,168,50,0.2); border: 2px solid var(--dawn-gold); color: var(--dawn-gold); }
.s-dot.empty { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.25); }

/* ── Divider ────────────────────────────────────────────────── */
.divider {
  width: 48px;
  height: 2px;
  background: var(--dawn-gold);
  border-radius: 2px;
  margin: 24px 0;
}
.divider.centered { margin: 24px auto; }

/* ── Testimonial ────────────────────────────────────────────── */
.testimonial-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
}
.testimonial-quote {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 17px;
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  margin-bottom: 16px;
}
.testimonial-by {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Pricing ────────────────────────────────────────────────── */
.price-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.badge-free { background: rgba(55,138,221,0.12); color: #2B71C4; }
.badge-paid { background: rgba(83,74,183,0.12); color: #534AB7; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--deep-navy);
  padding: 64px 32px 40px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.8fr repeat(3, 1fr);
  gap: 48px;
}
.footer-brand .f-logo {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 400;
  color: #FDFAF4;
  margin-bottom: 12px;
}
.footer-brand .f-logo em { font-style: italic; color: var(--dawn-gold); }
.footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
  max-width: 220px;
}
.footer-col-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--dawn-gold); }
.footer-bottom {
  max-width: var(--max-w);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
}

/* ── Fade-in animation ──────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }

/* ── Scroll animation JS hook ───────────────────────────────── */

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 72px 20px; }
  .hero-inner { padding: 72px 20px 64px; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-inner { gap: 0; }
}
