/* =============================================================
   Rooted and Rebuilt Media — styles.css
   Single-page static site. Edit the variables in :root to change
   global colors, spacing, or fonts everywhere at once.
   ============================================================= */

/* -------------------------------------------------------------
   1. DESIGN TOKENS
   ------------------------------------------------------------- */
:root {
  /* Brand colors */
  --c-dark-blue:       #002846;
  --c-light-blue:      #C0E8F9;
  --c-light-blue-line: #A2DDF6;
  --c-sage:            #88aa6b;
  --c-dark-green:      #587765;
  --c-gold:            #d5b032;
  --c-gray:            #808285;

  /* Surface / neutral */
  --c-bg:              #FFFFFF;
  --c-bg-alt:          #F7F4EE;          /* warm cream for alternating sections */
  --c-bg-blue-soft:    #EDF7FC;          /* very pale light-blue wash */
  --c-text:            #1a2b3a;
  --c-text-muted:      var(--c-gray);
  --c-border:          #E6E2D9;

  /* Typography */
  --font-heading: "Raleway", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Lora", Georgia, "Times New Roman", serif;

  /* Spacing scale */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4.5rem;
  --s-9: 6rem;
  --s-10: 8rem;

  /* Layout */
  --container-w:        1200px;
  --container-narrow-w: 760px;
  --header-h:           130px;

  /* Visual */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-soft:   0 6px 24px rgba(0, 40, 70, 0.07);
  --shadow-medium: 0 10px 36px rgba(0, 40, 70, 0.10);
  --transition: 220ms cubic-bezier(.2, .7, .3, 1);
}

/* -------------------------------------------------------------
   2. RESET / BASE
   ------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; display: block; }

a {
  color: var(--c-dark-blue);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--c-gold); }

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--c-dark-blue);
  color: #fff;
  padding: 8px 16px;
  z-index: 999;
}
.skip-link:focus { left: 8px; top: 8px; }

/* -------------------------------------------------------------
   3. TYPOGRAPHY
   ------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--c-dark-blue);
  margin: 0 0 var(--s-4);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 500; }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 var(--s-4); }

.section-heading      { text-align: left; }
.section-heading.centered { text-align: center; }

.section-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-gold);
  font-weight: 600;
  margin: 0 0 var(--s-3);
}

.section-lead {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--c-dark-green);
  margin: 0 0 var(--s-5);
  font-style: italic;
}
.section-lead.centered { text-align: center; }

.small-caps { font-variant: small-caps; letter-spacing: 0.04em; }

.gold-divider {
  width: 60px;
  height: 2px;
  background: var(--c-gold);
  margin: var(--s-4) auto var(--s-6);
  border-radius: 2px;
}

.centered { text-align: center; }

/* -------------------------------------------------------------
   4. LAYOUT CONTAINERS
   ------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 var(--s-5);
}
.container.narrow { max-width: var(--container-narrow-w); }

main > section {
  padding: var(--s-9) 0;
  position: relative;
}

/* Two-column section layout (text + image) */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-8);
  align-items: center;
}
.two-col.reverse .two-col-image { order: 2; }
.two-col.reverse .two-col-text  { order: 1; }

.two-col-image img { border-radius: var(--radius-md); }

/* -------------------------------------------------------------
   5. BUTTONS
   ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  line-height: 1;
  text-align: center;
}
.btn em { font-style: italic; font-weight: 600; }

.btn-primary {
  background: var(--c-dark-blue);
  color: #fff;
  border-color: var(--c-dark-blue);
}
.btn-primary:hover {
  background: var(--c-gold);
  border-color: var(--c-gold);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.btn-secondary {
  background: transparent;
  color: var(--c-dark-blue);
  border-color: var(--c-dark-blue);
}
.btn-secondary:hover {
  background: var(--c-dark-blue);
  color: #fff;
}

.btn-tool {
  background: transparent;
  color: var(--c-dark-blue);
  border: 1.5px solid var(--c-light-blue-line);
  padding: 11px 22px;
  font-size: 0.92rem;
  margin-top: var(--s-4);
  align-self: flex-start;
  position: relative;
}
.btn-tool:hover {
  background: var(--c-dark-blue);
  border-color: var(--c-dark-blue);
  color: #fff;
}
.tool-coming {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--c-gold);
  text-transform: uppercase;
  margin-left: var(--s-2);
  padding-left: var(--s-2);
  border-left: 1px solid var(--c-border);
}
.btn-tool:hover .tool-coming { color: var(--c-light-blue); border-color: rgba(255,255,255,0.3); }

/* -------------------------------------------------------------
   6. SITE HEADER + NAVIGATION
   ------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-border);
  z-index: 100;
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 2px 12px rgba(0, 40, 70, 0.06); }

.nav-container {
  height: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 var(--s-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
}

.nav-logo img {
  height: 110px;
  width: auto;
}

.nav-menu {
  display: flex;
  gap: var(--s-6);
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav-menu a {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--c-dark-blue);
  letter-spacing: 0.02em;
  position: relative;
  padding: 8px 2px;
}
.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--c-gold);
  transition: width var(--transition);
}
.nav-menu a:hover::after { width: 100%; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
}
.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--c-dark-blue);
  transition: transform var(--transition), opacity var(--transition);
  border-radius: 2px;
}

/* Body offset so first section isn't hidden behind fixed header */
main { padding-top: var(--header-h); }

/* -------------------------------------------------------------
   7. HERO
   ------------------------------------------------------------- */
.hero {
  background: linear-gradient(180deg, var(--c-bg-blue-soft) 0%, #fff 100%);
  padding-top: var(--s-9);
  padding-bottom: var(--s-9);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--s-8);
  align-items: center;
}
.tagline {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--c-dark-green);
  margin: 0 0 var(--s-4);
}
.hero-headline {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.18;
  margin: 0 0 var(--s-5);
  color: var(--c-dark-blue);
  font-weight: 500;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--c-text);
  max-width: 560px;
  margin-bottom: var(--s-6);
}
.hero-cta { display: flex; gap: var(--s-4); flex-wrap: wrap; }
.hero-image img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 32px rgba(0, 40, 70, 0.12));
}

/* -------------------------------------------------------------
   8. BRAND VERSE
   ------------------------------------------------------------- */
.verse-section {
  background: var(--c-bg-alt);
  position: relative;
  overflow: hidden;
  padding: var(--s-10) 0;
}
.verse-bg {
  position: absolute;
  inset: 0;
  background: url('images/leaf-bg.svg') center/cover no-repeat;
  opacity: 0.18;
  pointer-events: none;
}
.verse-content { position: relative; text-align: center; }
.verse-content .section-eyebrow {
  text-align: center;
  display: block;
}
.verse-quote {
  margin: 0 auto;
  max-width: 820px;
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.7;
  color: var(--c-dark-blue);
  position: relative;
}
.verse-quote::before,
.verse-quote::after {
  content: "";
  display: block;
  width: 36px;
  height: 1px;
  background: var(--c-gold);
  margin: var(--s-5) auto;
}
.verse-quote cite {
  display: block;
  font-style: normal;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-dark-green);
  margin-top: var(--s-4);
}

/* -------------------------------------------------------------
   9. HIDDEN NEED
   ------------------------------------------------------------- */
.hidden-need { background: var(--c-bg); }
.hidden-need .two-col-image img {
  border-radius: var(--radius-md);
  background: transparent;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

/* -------------------------------------------------------------
   10. MISSION
   ------------------------------------------------------------- */
.mission {
  background: var(--c-bg-blue-soft);
  text-align: center;
}
.mission p {
  font-size: 1.08rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* -------------------------------------------------------------
   11. HOW WE BUILD — Anchor card + 2x2 grid
   ------------------------------------------------------------- */
.how-we-build { background: var(--c-bg); }

.pillar-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pillar-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}
.pillar-card h3 {
  font-size: 1.4rem;
  margin: var(--s-3) 0 var(--s-3);
}
.pillar-card p {
  color: var(--c-text);
  font-size: 1rem;
  max-width: 46ch;
  margin: 0;
}
.pillar-icon { width: 90px; height: 90px; }
.pillar-icon-large { width: 110px; height: 110px; }
/* Level icon is long & skinny — give it wider footprint so its
   detail stays legible while keeping the card heights consistent. */
.pillar-icon-wide { width: 150px; height: auto; }

.pillar-anchor {
  max-width: 740px;
  margin: 0 auto var(--s-7);
  padding: 44px 40px;
  background: linear-gradient(180deg, #fff 0%, var(--c-bg-blue-soft) 100%);
}
.pillar-anchor h3 { font-size: 1.6rem; }

.pillar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 1120px;
  margin: 0 auto;
}

/* -------------------------------------------------------------
   12. TOOLBOX
   ------------------------------------------------------------- */
.toolbox { background: var(--c-bg-alt); }
.toolbox-intro {
  max-width: 740px;
  margin: 0 auto var(--s-8);
  text-align: center;
  font-size: 1.05rem;
}
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1120px;
  margin: 0 auto;
}
.tool-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-soft);
}
.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}
.tool-icon {
  width: 52px;
  height: 52px;
  color: var(--c-dark-green);
  margin-bottom: var(--s-4);
}
.tool-icon svg { width: 100%; height: 100%; }
.tool-card h3 { font-size: 1.2rem; margin: 0 0 var(--s-3); }
.tool-card p {
  color: var(--c-text);
  font-size: 0.98rem;
  flex: 1 1 auto;
  margin: 0;
}

/* -------------------------------------------------------------
   13. AVAILABLE NOW (book section)
   ------------------------------------------------------------- */
.book-section { background: var(--c-bg); }
.book-cover img {
  max-width: 360px;
  margin: 0 auto;
  box-shadow: 0 18px 48px rgba(0, 40, 70, 0.15);
  border-radius: 4px;
}
.book-subtitle {
  font-style: italic;
  color: var(--c-dark-green);
  font-size: 1.05rem;
  margin-top: -0.5rem;
  margin-bottom: var(--s-5);
}

/* -------------------------------------------------------------
   14. COMING FALL 2026
   ------------------------------------------------------------- */
.coming-soon { background: var(--c-bg-blue-soft); }
.coming-soon .two-col-image img {
  width: 100%;
  max-width: 416px;
  margin: 0 auto;
  border-radius: var(--radius-md);
}

/* -------------------------------------------------------------
   15. ABOUT THE BRAND
   ------------------------------------------------------------- */
.about-brand {
  background: var(--c-dark-blue);
  color: #f4f6f8;
  position: relative;
  overflow: hidden;
}
.about-brand .brand-bg {
  position: absolute;
  inset: 0;
  background: url('images/graph-paper-bg.svg') center/cover no-repeat;
  opacity: 0.10;
  pointer-events: none;
}
.about-brand .container { position: relative; }
.about-brand h2 { color: #fff; }
.about-brand p { color: #e6ecf2; }
.about-brand strong { color: var(--c-light-blue); font-weight: 600; }

/* -------------------------------------------------------------
   16. ABOUT THE AUTHOR
   ------------------------------------------------------------- */
.about-author { background: var(--c-bg); }
.headshot {
  border-radius: var(--radius-md);
  max-width: 420px;
  margin: 0 auto;
  box-shadow: var(--shadow-medium);
}

/* -------------------------------------------------------------
   17. STAY CONNECTED
   ------------------------------------------------------------- */
.connect {
  background: var(--c-bg-alt);
  position: relative;
  overflow: hidden;
}
.connect-bg {
  position: absolute;
  inset: 0;
  background: url('images/white-leaf-bg.svg') center/cover no-repeat;
  opacity: 0.35;
  pointer-events: none;
}
.connect .container { position: relative; }
.ml-form-wrap {
  margin-top: var(--s-6);
  background: #fff;
  border-radius: var(--radius-md);
  padding: var(--s-6);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--c-border);
}
/* Light overrides for MailerLite default form (it ships its own CSS,
   so these are safe touches that won't break the form's logic). */
.ml-form-wrap .ml-form-embedContainer { font-family: var(--font-body) !important; }

/* -------------------------------------------------------------
   18. FOOTER
   ------------------------------------------------------------- */
.site-footer {
  background: #001b30;
  color: #c9d3dc;
  padding: var(--s-8) 0 0;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--s-7);
  align-items: start;
  padding-bottom: var(--s-7);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo { height: 110px; width: auto; }
.footer-tagline {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-light-blue);
  margin-top: var(--s-4);
}
.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.footer-nav a {
  color: #c9d3dc;
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
}
.footer-nav a:hover { color: var(--c-gold); }

.footer-social {
  display: flex;
  gap: var(--s-4);
  align-items: flex-start;
  justify-content: flex-end;
}
.footer-social a {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  color: #c9d3dc;
}
.footer-social a:hover {
  background: var(--c-gold);
  color: #fff;
  border-color: var(--c-gold);
}
.footer-social svg { width: 18px; height: 18px; }

.footer-fineprint {
  padding: var(--s-5) 0 var(--s-6);
  font-size: 0.82rem;
  color: #8c9ba9;
  text-align: center;
}
.footer-fineprint a { color: var(--c-light-blue); }
.footer-fineprint a:hover { color: var(--c-gold); }
.scripture-credit {
  max-width: 720px;
  margin: var(--s-3) auto 0;
  font-size: 0.78rem;
  line-height: 1.6;
}

/* -------------------------------------------------------------
   19. SUBTLE ENTRANCE ANIMATIONS (script.js toggles .is-visible)
   ------------------------------------------------------------- */
.fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------------------------------------------------
   20. RESPONSIVE — TABLET (max-width 1023px)
   ------------------------------------------------------------- */
@media (max-width: 1023px) {
  main > section { padding: var(--s-8) 0; }

  .nav-menu { gap: var(--s-5); }
  .nav-menu a { font-size: 0.9rem; }

  .hero-grid { grid-template-columns: 1fr; gap: var(--s-6); text-align: left; }
  .hero-image { max-width: 480px; margin: 0 auto; }

  .two-col {
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }
  .two-col.reverse .two-col-image { order: 1; }
  .two-col.reverse .two-col-text  { order: 2; }
  .two-col-image img { max-width: 480px; margin: 0 auto; }

  .pillar-grid { gap: 24px; }

  .tool-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-6);
  }
  .footer-social { justify-content: flex-start; }
}

/* -------------------------------------------------------------
   21. RESPONSIVE — MOBILE (max-width 767px)
   ------------------------------------------------------------- */
@media (max-width: 767px) {
  :root { --header-h: 88px; }

  body { font-size: 16px; }

  main > section { padding: var(--s-7) 0; }

  .container { padding: 0 var(--s-4); }

  .nav-logo img { height: 72px; }

  /* Hide desktop links, show mobile toggle */
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--c-border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--s-3) 0;
    transform: translateY(-110%);
    transition: transform var(--transition);
    box-shadow: var(--shadow-medium);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav-menu.is-open { transform: translateY(0); }
  .nav-menu li { width: 100%; }
  .nav-menu a {
    display: block;
    padding: 14px var(--s-5);
    font-size: 1rem;
    border-bottom: 1px solid var(--c-border);
  }
  .nav-menu a::after { display: none; }
  .nav-menu li:last-child a { border-bottom: 0; }

  /* Animated hamburger to X when open */
  .nav-toggle.is-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }
  .nav-toggle.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }

  /* Hero stack */
  .hero { padding-top: var(--s-7); padding-bottom: var(--s-7); }

  /* Pillar grid: stacked */
  .pillar-grid { grid-template-columns: 1fr; gap: 20px; }
  .pillar-card  { padding: 28px 24px; }
  .pillar-anchor { padding: 32px 24px; }

  /* Toolbox: stacked */
  .tool-grid { grid-template-columns: 1fr; gap: 20px; }
  .tool-card { padding: 26px 22px; }

  /* Verse */
  .verse-quote { font-size: 1.1rem; }

  /* Book section */
  .book-cover img { max-width: 240px; }

  /* Buttons full-width feel on small screens */
  .btn { padding: 13px 24px; font-size: 0.95rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-nav ul { align-items: center; }
  .footer-social { justify-content: center; }
}

/* -------------------------------------------------------------
   22. REDUCED MOTION
   ------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .fade-up { opacity: 1; transform: none; }
}
