/* =============================================================
   LIGHTBEARING LIFE — GLOBAL STYLESHEET
   Brand: gold #B8926A · cream #F7F2EC · dark #2C2416
   Fonts: Cormorant Garamond (serif) · Jost (sans)
   
   TYPOGRAPHY SYSTEM (locked):
   Section headings → gold, Cormorant Garamond, 500
   Card/box headings → charcoal, Cormorant Garamond, 500, ~1.15rem
   Body copy → gray, Jost, 400
   Bold inline → charcoal within gray text
   Micro/muted → gray 75%, Jost 300
   ============================================================= */

/* =========================
   BRAND TOKENS
========================= */
:root {
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans:  "Jost", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  --gold:           #B8926A;
  --gold-soft:      #C9A989;
  --cream:          #F7F2EC;
  --warm-white:     #FFFAF0;
  --dark:           #2C2416;
  --charcoal:       #3D3935;
  --gray:           #8B8178;

  --terracotta:     var(--gold);
  --terracotta-soft:var(--gold-soft);

  --nav-text:       var(--warm-white);
  --nav-text-solid: var(--gold);
  --hero-text:      var(--warm-white);

  --radius-lg:  28px;
  --radius-md:  18px;
  --shadow-soft: 0 20px 50px rgba(44, 36, 22, 0.10);
}


/* =========================
   RESET / BASE
========================= */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--gray);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.narrow { max-width: 760px; }
.center { text-align: center; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}


/* =========================
   TYPOGRAPHY — LOCKED SYSTEM
========================= */

/* Section headings — gold signposts */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0.3px;
  margin: 0 0 0.6em 0;
  color: var(--gold);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

/* Body copy */
p { color: var(--gray); margin: 0 0 1rem 0; }

/* Bold inline */
strong, b { color: var(--charcoal); font-weight: 600; }

.lead { font-size: 1.05rem; max-width: 60ch; line-height: 1.7; }
.center .lead { margin-left: auto; margin-right: auto; }
.micro { font-size: 0.9rem; color: var(--gray); opacity: 0.75; margin: 0.75rem 0 0 0; }
.muted { opacity: 0.85; }


/* =========================
   CARD / BOX HEADING NORMALIZATION
   
   Every heading inside a card, tile, box, panel, or
   Two tiers based on card size:
   COMPACT (small cards): 1.15rem — flank boxes, vine cards
   CONTENT (larger cards): 1.35rem — gratitude boxes, tiles,
   panels, about us cards, mission box tiles, accordions
   
   This uses high-specificity selectors to guarantee
   it overrides the global gold heading rule.
========================= */

/* Shared base — font, weight, color for ALL card headings */
.card h2, .card h3, .card h4,
.panel h2, .panel h3,
.tile h2, .tile h3,
.box-tile h2, .box-tile h3,
.gratitude-box h2, .gratitude-box h3,
.flank-box h3,
.vine-card h2, .vine-card h3,
.next-verse h2, .next-verse h3,
.foundation__text strong {
  color: var(--charcoal);
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.35;
}

/* COMPACT cards — small boxes with 1–2 lines of text */
.flank-box h3,
.vine-card h3 {
  font-size: 1.15rem;
}

/* CONTENT cards — larger boxes with paragraph text */
.card h2, .card h3, .card h4,
.panel h2, .panel h3,
.tile h2, .tile h3,
.box-tile h2, .box-tile h3,
.gratitude-box h2, .gratitude-box h3,
.next-verse h2, .next-verse h3,
.foundation__text strong {
  font-size: 1.35rem;
}

/* Accordion summaries — content tier */
.accordion summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: var(--charcoal);
}
.accordion summary::-webkit-details-marker { display: none; }


/* =========================
   BUTTONS
========================= */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  border-radius: 999px;
  background: var(--gold);
  color: var(--warm-white);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, background 0.25s ease;
}

.btn:hover {
  background: var(--gold-soft);
  transform: translateY(-2px);
}

.btn--primary { /* alias */ }
.btn--large { font-size: 1.1rem; padding: 0.9rem 1.6rem; }


/* =========================
   HEADER
========================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  border-bottom: 0;
  transition: background 0.3s ease;
}
/* =========================
   BRAND NAME TEXT — desktop hidden, mobile shown
========================= */
.brand-name {
  display: none;
}

/* =========================
   MOBILE LOGO + BRAND NAME — ≤480px only
========================= */
@media (max-width: 480px) {
  .brand-logo {
    content: url("/assets/logos/Logo_no_name.png");
  }

  .brand-name {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--warm-white);
    line-height: 1;
    white-space: nowrap;
    text-shadow: 0 1px 6px rgba(0,0,0,0.4);
  }

  .site-header.is-solid .brand-name {
    color: var(--gold);
    text-shadow: none;
  }
}
.header-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 22px clamp(16px, 4vw, 44px);
  min-height: 140px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-logo, .logo { height: 120px; width: auto; display: block; }

.site-nav {
  position: static;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  margin-top: 6px;
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.site-nav a {
  font-size: 0.95rem;
  color: var(--warm-white);
  opacity: 0.92;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
.site-nav a:hover { opacity: 1; }

.site-header.is-solid .site-nav a {
  color: var(--gold);
  text-shadow: none;
}

.site-header.is-solid {
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  border-bottom: none;
}


/* =========================
   BANDS
========================= */
.band { padding: clamp(64px, 9vh, 110px) 0; }
.band-cream { background: var(--warm-white); }
.band-white { background: #fff; }


/* =========================
   SPLIT LAYOUT
========================= */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}
.split.reverse { grid-template-columns: 0.9fr 1.1fr; }
.split.reverse > .copy { grid-column: 1; }
.split.reverse > img   { grid-column: 2; }
.copy { max-width: 60ch; }
.bullets { margin: 0; padding-left: 1.1rem; color: var(--gray); }
.bullets li { margin: 0.4rem 0; }


/* =========================
   HERO — SHARED STRUCTURE
========================= */
.hero {
  position: relative;
  padding: clamp(80px, 14vh, 140px) 0;
  display: block;
  background: var(--warm-white);
  overflow: hidden;
}

.hero--fullbleed {
  position: relative;
  min-height: 70vh;
  padding: 0;
  overflow: hidden;
}

.hero--fullbleed .hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero--fullbleed::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.58) 0%,
    rgba(0, 0, 0, 0.22) 35%,
    rgba(0, 0, 0, 0.06) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: none;
  padding: 0 16px;
}

.hero--fullbleed .hero-content--editorial,
.hero--fullbleed .hero-content--center {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  top: auto;
  z-index: 2;
  width: 100%;
  padding: 0 clamp(24px, 5vw, 56px) clamp(36px, 6vh, 64px);
}

.hero-rule {
  width: 52px;
  height: 2.5px;
  background: var(--gold);
  border: none;
  border-radius: 2px;
  margin: 0 0 14px 0;
}

.hero-title {
  color: var(--warm-white);
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.35);
}

.hero-tagline {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: rgba(255, 250, 240, 0.82);
  margin: 12px 0 0 0;
  max-width: 440px;
  line-height: 1.55;
  letter-spacing: 0.015em;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 3rem;
}
.hero-image { justify-self: end; }
.hero-image img {
  width: 100%; max-width: 520px; max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}
.hero-copy, .hero-image { position: relative; z-index: 2; }
.hero-copy h1 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); line-height: 1.25; }
.hero-actions { margin-top: 1.25rem; }


/* =========================
   HOME HERO (VIDEO)
========================= */
.hero.hero--home {
  position: relative;
  min-height: 100vh;
  padding: 0;
  overflow: hidden;
  background: #000;
}
.hero.hero--home::after { display: none; }
.hero.hero--home .hero-media { position: absolute; inset: 0; z-index: 0; }
.hero.hero--home .hero-video {
  width: 100%; height: 100%;
  display: block; object-fit: cover; object-position: 50% 55%;
}
.hero.hero--home .hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(rgba(0,0,0,0.08), rgba(0,0,0,0.18));
}
.hero.hero--home .hero-content {
  position: absolute;
  left: 50%; top: 22%;
  transform: translateX(-50%);
  width: min(100%, 1100px);
  text-align: center; z-index: 2; padding: 0 2rem;
}
.hero.hero--home .hero-title {
  margin: 0; color: var(--warm-white);
  text-shadow: 0 6px 24px rgba(0,0,0,0.35);
}


/* =========================
   IMAGE STACK
========================= */
.image-stack { position: relative; }
.img-large {
  width: 100%; border-radius: var(--radius-md);
  max-height: 520px; object-fit: cover; box-shadow: var(--shadow-soft);
}
.img-small {
  position: absolute; width: 42%; right: -16px; bottom: -16px;
  border-radius: 14px; max-height: 240px; object-fit: cover;
  box-shadow: var(--shadow-soft);
}


/* =========================
   G.O.D. GRID
========================= */
.god-grid { margin-top: 2rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.god-card {
  display: grid; gap: 0.75rem; padding: 14px;
  background: var(--warm-white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft); transition: transform 0.2s ease;
}
.god-card:hover { transform: translateY(-2px); }
.god-card img { width: 100%; height: 220px; border-radius: 14px; object-fit: cover; }
.god-card span { font-family: var(--font-serif); font-size: 1.15rem; color: var(--charcoal); }


/* =========================
   CARD + FORM
========================= */
.card {
  background: var(--warm-white); border-radius: var(--radius-lg);
  padding: 36px 28px; box-shadow: var(--shadow-soft);
}
.form { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin-top: 16px; }
input[type="email"] {
  padding: 14px 16px; border-radius: 999px;
  border: 1px solid rgba(61,57,53,0.18); background: #fff; font-size: 0.95rem;
}


/* =========================
   MISSION PAGE — BOX GRID
========================= */
.mission-hero {
  background: radial-gradient(1200px 600px at 20% 0%, rgba(184,146,106,0.15), transparent 60%), var(--warm-white);
}
.mission-title { margin: 0 0 0.4rem 0; }
.mission-sub { margin: 0; max-width: 70ch; }

.box-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.box-tile {
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--radius-lg); padding: 28px 24px; min-height: 280px;
  overflow: hidden; box-shadow: var(--shadow-soft); background: var(--warm-white);
}
.box-tile::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--bg); background-size: cover; background-position: center;
  filter: saturate(0.95); opacity: 0.30; transform: scale(1.02);
}
.box-tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(255,250,240,0.70), rgba(255,250,240,0.92));
}
.box-tile > * { position: relative; z-index: 1; }
.box-tile p { margin: 0 0 0.9rem 0; }

.box-tile .card-icon {
  width: 56px; height: 56px; display: block;
  margin-top: auto; margin-left: auto; margin-right: auto; margin-bottom: 18px;
  opacity: 0.6; pointer-events: none;
}

.mission-card h3 { white-space: nowrap; }
.mission-card h3 .arrow { font-size: 0.75em; position: relative; top: -0.05em; margin: 0 0.15em; }


/* =========================
   FOOTER
========================= */
.site-footer { padding: 48px 0; background: var(--charcoal); color: var(--warm-white); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-links { display: flex; gap: 1.25rem; }
.footer-links a { opacity: 0.9; }
.footer-links a:hover { opacity: 1; }

/* =========================
   PHASE OVERVIEW — shared across G, O, D pages
   Add this block to styles.css
========================= */

.phase-overview {
  padding: clamp(56px, 8vh, 96px) 0;
  background: var(--cream);
}

.phase-overview__lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--charcoal);
  line-height: 1.75;
  margin: 0 0 1.25rem 0;
}

.phase-overview__turn {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--gold);
  margin: 1.5rem 0;
}

.phase-overview__body {
  font-size: 1rem;
  color: var(--gray);
  line-height: 1.8;
  margin: 0 0 1rem 0;
}

.phase-overview__close {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--charcoal);
  margin: 1.5rem 0 0 0;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1100px) {
  .box-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .split, .split.reverse { grid-template-columns: 1fr; }
  .hero-layout { grid-template-columns: 1fr; }
  .hero-image { justify-self: start; margin-top: 18px; }
  .img-small { position: static; width: 100%; margin-top: 12px; }
  .god-grid { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .site-header .header-inner { min-height: 120px; padding: 16px; }
  .brand-logo, .logo { height: 56px; }
  .site-nav { flex-direction: column; align-items: flex-end; gap: 10px; }
  .hero.hero--home { min-height: 80vh; }
  .hero.hero--home .hero-content { top: 28%; }
  .hero-tagline { max-width: 320px; }
}

@media (max-width: 650px) {
  .box-grid { grid-template-columns: 1fr; }
  .box-tile { min-height: 240px; }
}


/* =========================
   HAMBURGER TOGGLE — hidden on desktop
========================= */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 60;
  position: relative;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--warm-white);
  border-radius: 2px;
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* X bars turn dark when menu is open (cream overlay behind them) */
.nav-toggle.is-open span {
  background: var(--dark);
}

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

/* After scroll (solid header), bars turn gold */
.site-header.is-solid .nav-toggle span {
  background: var(--gold);
}


/* =========================
   MOBILE — 480px and below
   Hamburger nav + darkened fonts
========================= */
@media (max-width: 480px) {

  /* ── Show hamburger, hide inline nav ── */
  .nav-toggle {
    display: block;
    align-self: flex-start;
    margin-top: 4px;
  }

  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    background: var(--cream);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--charcoal);
    text-shadow: none;
    opacity: 1;
    letter-spacing: 0.03em;
  }

  .site-nav a:hover,
  .site-nav a:active {
    color: var(--gold);
  }

  /* Keep header compact */
  .site-header .header-inner {
    min-height: auto;
    padding: 12px 16px;
    align-items: center;
  }

  .brand-logo, .logo {
    height: 44px;
  }

  /* ── Darken ALL text for mobile readability ── */

  /* Headings: gold → darker gold with more contrast */
  h1, h2, h3, h4, h5, h6 {
    color: var(--dark);
  }

  /* Body copy: gray → charcoal */
  body,
  p,
  .lead,
  .micro,
  .bullets,
  .bullets li {
    color: var(--charcoal);
  }

  .micro {
    opacity: 0.85;
  }

  /* Section headings that should stay gold — just darken the shade */
  .positioning-hero-line,
  .phase-overview__turn {
    color: #9A7650;
  }

  /* Hero text — bump contrast slightly */
  .hero-title {
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  }

  .hero-tagline {
    color: rgba(255, 250, 240, 0.92);
  }

  /* Footer stays its own thing — just boost link visibility */
  .footer-links a {
    opacity: 1;
  }
}
