/* ===========================================================
   For His Purpose — Design Prototype Stylesheet
   Palette: 60% white/cream, 30% carton yellowish-brown, 10% black
   =========================================================== */

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

:root{
  --cream: #FBF7F0;
  --white: #FFFFFF;
  --ink: #1C1712;
  --ink-soft: #4A3F35;
  --clay: #B9803F;
  --clay-deep: #8F5F2A;
  --clay-soft: #F1E1C6;
  --clay-mid: #D9A768;
  --line: #E6D9C4;
  --shadow: 0 12px 32px rgba(28, 23, 18, 0.08);
  --radius: 18px;
  --maxw: 1180px;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
h1,h2,h3,h4{ font-family: var(--serif); font-weight:600; line-height:1.15; margin:0 0 .5em; color: var(--ink); }
p{ margin:0 0 1em; }
.container{ max-width: var(--maxw); margin:0 auto; padding: 0 24px; }
.eyebrow{
  display:inline-block; font-family: var(--sans); font-weight:700; letter-spacing:.14em;
  text-transform:uppercase; font-size:.72rem; color: var(--clay-deep); margin-bottom:14px;
}
.section{ padding: 88px 0; }
.section-tight{ padding: 56px 0; }
.section-alt{ background: var(--white); }
.section-clay{ background: var(--clay-soft); }
.center{ text-align:center; }
.lede{ font-size:1.15rem; color: var(--ink-soft); max-width: 640px; }
.center .lede{ margin-left:auto; margin-right:auto; }

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding: 14px 28px; border-radius: 999px; font-weight:600; font-size:.95rem;
  cursor:pointer; border:2px solid transparent; transition: all .2s ease; white-space:nowrap;
}
.btn-primary{ background: var(--ink); color: var(--white); }
.btn-primary:hover{ background: var(--clay-deep); }
.btn-clay{ background: var(--clay); color: var(--white); }
.btn-clay:hover{ background: var(--clay-deep); }
.btn-outline{ background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover{ background: var(--ink); color: var(--white); }
.btn-outline-light{ background: transparent; border-color: rgba(255,255,255,.8); color: var(--white); }
.btn-outline-light:hover{ background: var(--white); color: var(--ink); }
.btn-sm{ padding: 10px 20px; font-size:.85rem; }
.btn-row{ display:flex; gap:14px; flex-wrap:wrap; }
.center .btn-row{ justify-content:center; }

/* ================= HEADER ================= */
.site-header{
  position: sticky; top:0; z-index: 400;
  background: rgba(251,247,240,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding: 16px 24px; max-width: var(--maxw); margin:0 auto;
}
.brand{ display:flex; align-items:center; gap:10px; font-family: var(--serif); font-weight:700; font-size:1.25rem; color: var(--ink); }
.brand .brand-mark{
  width:38px; height:38px; border-radius:50%; background: var(--clay);
  color:#fff; display:flex; align-items:center; justify-content:center; font-family:var(--serif); font-size:1rem;
}
.brand small{ display:block; font-family: var(--sans); font-weight:600; font-size:.62rem; letter-spacing:.12em; color: var(--clay-deep); text-transform:uppercase; }

/* Minimal persistent top links (Yield-style: a few direct links, everything else lives in the mega menu) */
nav.top-links{ display:flex; align-items:center; gap:30px; }
nav.top-links a.nav-link{ font-weight:600; font-size:.92rem; color: var(--ink-soft); }
nav.top-links a.nav-link:hover, nav.top-links a.nav-link.active{ color: var(--clay-deep); }

/* Dropdown submenu (About > About Us / About Founder) */
.nav-item{ position:relative; }
.nav-dropdown{
  position:absolute; top:calc(100% + 14px); left:50%; transform:translateX(-50%) translateY(6px);
  background: var(--white); border:1px solid var(--line); border-radius:14px;
  box-shadow: var(--shadow); padding:8px; min-width:180px;
  opacity:0; visibility:hidden; transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index:410;
}
.nav-item:hover .nav-dropdown, .nav-item:focus-within .nav-dropdown{
  opacity:1; visibility:visible; transform:translateX(-50%) translateY(0);
}
.nav-dropdown a{ display:block; padding:9px 12px; border-radius:8px; font-weight:600; font-size:.88rem; color: var(--ink-soft); white-space:nowrap; }
.nav-dropdown a:hover{ background: var(--clay-soft); color: var(--clay-deep); }
@media (max-width: 860px){
  nav.top-links{ display:none; }
  .header-inner{ padding: 12px 18px; }
  .brand{ font-size:1.02rem; gap:8px; }
  .brand .brand-mark{ width:32px; height:32px; font-size:.85rem; }
  .brand small{ display:none; }
  .header-cta{ gap:8px; }
  .header-cta .btn-sm{ padding:9px 14px; font-size:.8rem; }
  .theme-toggle{ width:32px; height:32px; }
}

.header-cta{ display:flex; align-items:center; gap:12px; }

.theme-toggle{
  width:38px; height:38px; border-radius:50%; border:1.5px solid var(--line); background:transparent;
  color: var(--ink); font-size:1rem; display:flex; align-items:center; justify-content:center; cursor:pointer;
  transition: all .2s ease;
}
.theme-toggle:hover{ border-color: var(--clay); color: var(--clay-deep); }

/* Hamburger — morphs to X when the mega menu is open */
.menu-toggle{ background:none; border:none; cursor:pointer; padding:8px; }
.menu-toggle span{ display:block; width:22px; height:2px; background: var(--ink); margin:5px 0; transition: all .25s ease; }
.menu-toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2){ opacity:0; }
.menu-toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* Full-screen mega menu overlay (Yield Church pattern: hamburger reveals Explore + Gather info + socials) */
.mega-menu{
  position: fixed; inset:0; z-index: 300; background: var(--cream);
  opacity:0; visibility:hidden; transform: translateY(-16px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
  overflow-y:auto; padding-top: 108px;
}
.mega-menu.open{ opacity:1; visibility:visible; transform: translateY(0); }
.mega-inner{ display:grid; grid-template-columns: 1.2fr .9fr .9fr; gap:56px; padding-bottom:40px; }
.mega-col h4{ font-family: var(--sans); font-weight:700; font-size:.72rem; letter-spacing:.14em; text-transform:uppercase; color: var(--clay-deep); margin-bottom:18px; }
.mega-col ul{ display:flex; flex-direction:column; gap:12px; }
.mega-col a{ font-family: var(--serif); font-size:1.15rem; color: var(--ink); }
.mega-col a:hover{ color: var(--clay-deep); }
.mega-col p{ font-size:.92rem; color: var(--ink-soft); margin-bottom:14px; }
.mega-footer{ border-top:1px solid var(--line); padding:24px 0 48px; display:flex; justify-content:space-between; align-items:flex-end; flex-wrap:wrap; gap:14px; }
.mega-quote{ font-family: var(--serif); font-style:italic; color: var(--ink-soft); max-width:480px; margin:0; }
.mega-copy{ font-size:.8rem; color:#8a7c6a; margin:0; }
@media (max-width: 860px){
  .mega-inner{ grid-template-columns:1fr; gap:36px; }
  .mega-menu{ padding-top: 96px; }
}

/* ================= HERO ================= */
.hero{
  position:relative; overflow:hidden; background: linear-gradient(180deg, var(--clay-soft), var(--cream));
}
.hero-grid{
  display:grid; grid-template-columns: 1fr 1.15fr; gap:56px; align-items:center;
  padding: 90px 24px 70px; max-width: var(--maxw); margin:0 auto;
}
.hero h1{ font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom:20px; }
.hero .lede{ max-width:520px; }
.hero-photo{
  border-radius: 28px; overflow:hidden; box-shadow: var(--shadow); aspect-ratio: 3/2;
  position:relative; background: var(--ink);
}
.hero-photo img{ width:100%; height:100%; object-fit:cover; object-position: center; }
.hero-badge{
  position:absolute; left:24px; bottom:24px; background: rgba(255,255,255,.95); backdrop-filter: blur(6px);
  border-radius:14px; padding:12px 16px; box-shadow: var(--shadow); max-width: 240px;
}
.hero-badge strong{ display:block; font-family:var(--serif); font-size:1rem; }
.hero-badge span{ font-size:.78rem; color: var(--ink-soft); }
@media (max-width: 860px){
  .hero-grid{ grid-template-columns:1fr; padding-top:48px; }
  .hero-photo{ order:-1; max-width:100%; margin:0 auto; }
}

/* ================= FULL-BLEED PHOTO HERO ================= */
.hero-full{
  min-height: 88vh; display:flex; align-items:flex-end; background:none;
}
.hero-bg{ position:absolute; inset:0; z-index:0; }
.hero-bg img{ width:100%; height:100%; object-fit:cover; object-position: center 25%; }
.hero-overlay{
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(20,15,10,.45) 0%, rgba(20,15,10,.55) 40%, rgba(20,15,10,.92) 100%);
}
.hero-content{
  position:relative; z-index:1; padding: 90px 24px 64px; color: var(--white);
}
.hero-content .hero-eyebrow{ color: var(--clay-mid); text-shadow: 0 2px 10px rgba(0,0,0,.55); }
.hero-content h1{ color: var(--white); font-size: clamp(2.6rem, 6vw, 4.4rem); margin-bottom:20px; max-width:820px; text-shadow: 0 4px 20px rgba(0,0,0,.45); }
.hero-content .hero-lede{ color: rgba(255,255,255,.92); max-width:600px; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
@media (max-width: 860px){
  .hero-full{ min-height:78vh; }
  .hero-content{ padding: 70px 20px 48px; }
}

/* ================= PILLARS / CARDS ================= */
.grid-4{ display:grid; grid-template-columns: repeat(4,1fr); gap:22px; }
.grid-3{ display:grid; grid-template-columns: repeat(3,1fr); gap:26px; }
.grid-2{ display:grid; grid-template-columns: repeat(2,1fr); gap:32px; }
@media (max-width: 980px){ .grid-4{ grid-template-columns: repeat(2,1fr); } .grid-3{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px){ .grid-4, .grid-3, .grid-2{ grid-template-columns: 1fr; } }

/* ================= GALLERY (masonry — keeps each photo/video's real orientation) ================= */
.gallery-grid{
  column-count: 3; column-gap: 18px;
}
.gallery-item{
  display:block; break-inside: avoid; margin-bottom: 18px;
  border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow);
}
.gallery-item img, .gallery-item video{
  width:100%; height:auto; display:block;
  transition: transform .35s ease;
}
.gallery-item:hover img, .gallery-item:hover video{ transform: scale(1.03); }
@media (max-width: 860px){ .gallery-grid{ column-count: 2; } }
@media (max-width: 560px){ .gallery-grid{ column-count: 1; } }

.card{
  background: var(--white); border:1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover{ transform: translateY(-4px); box-shadow: var(--shadow); }
.card .icon{
  width:48px; height:48px; border-radius:14px; background: var(--clay-soft); color: var(--clay-deep);
  display:flex; align-items:center; justify-content:center; font-size:1.3rem; margin-bottom:16px;
}
.card h3{ font-size:1.15rem; margin-bottom:8px; }
.card p{ color: var(--ink-soft); font-size:.94rem; }
.card-link{ display:inline-flex; align-items:center; gap:6px; font-weight:700; font-size:.85rem; color: var(--clay-deep); margin-top:10px; }

/* Devotion / list cards */
.devo-card{ background: var(--white); border-radius: var(--radius); overflow:hidden; border:1px solid var(--line); }
.devo-media{ height:170px; background: linear-gradient(135deg, var(--clay), var(--clay-deep)); position:relative; }
.devo-media span{ position:absolute; bottom:12px; left:16px; color:#fff; font-family:var(--serif); font-size:.85rem; opacity:.9; }
.devo-body{ padding:22px; }
.devo-tag{ font-size:.7rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color: var(--clay-deep); }
.devo-body h3{ font-size:1.08rem; margin:8px 0; }
.devo-meta{ font-size:.78rem; color:#8a7c6a; margin-top:12px; }

/* Quote / testimony */
.quote-card{ background: var(--white); border-radius: var(--radius); padding:28px; border:1px solid var(--line); }
.quote-card p{ font-family: var(--serif); font-style:italic; font-size:1.05rem; color: var(--ink); }
.quote-name{ font-weight:700; font-size:.85rem; }
.quote-role{ font-size:.78rem; color:#8a7c6a; }

/* Split section */
.split{ display:grid; grid-template-columns: 1fr 1fr; gap:60px; align-items:center; }
@media (max-width: 860px){ .split{ grid-template-columns:1fr; gap:32px; } }
.split img, .split .img-frame{ border-radius: var(--radius); box-shadow: var(--shadow); }
.img-frame{ overflow:hidden; }
.img-frame img{ width:100%; object-fit:cover; }

/* Badges list */
.check-list{ margin-top:18px; }
.check-list li{ display:flex; gap:12px; align-items:flex-start; margin-bottom:12px; }
.check-list li .dot{
  width:22px; height:22px; border-radius:50%; background: var(--clay); color:#fff; flex:none;
  display:flex; align-items:center; justify-content:center; font-size:.7rem; margin-top:2px;
}

/* CTA band */
.cta-band{
  background: var(--ink); color: var(--white); border-radius: 28px; padding: 56px 40px;
  text-align:center; margin: 0 24px;
}
.cta-band h2{ color:#fff; }
.cta-band p{ color: rgba(255,255,255,.75); }
.cta-band .lede{ margin-left:auto; margin-right:auto; }

/* Forms */
.form-card{
  background: var(--white); border:1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow);
}
.field{ margin-bottom:18px; }
.field label{ display:block; font-weight:600; font-size:.85rem; margin-bottom:6px; }
.field input, .field select, .field textarea{
  width:100%; padding:12px 14px; border-radius:10px; border:1.5px solid var(--line);
  font-family: var(--sans); font-size:.95rem; background: var(--cream); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus{ outline:none; border-color: var(--clay); background:#fff; }
.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media (max-width:560px){ .field-row{ grid-template-columns:1fr; } }
.form-note{ font-size:.8rem; color:#8a7c6a; margin-top:10px; }
.form-success{ display:none; background: var(--clay-soft); color: var(--clay-deep); padding:14px 18px; border-radius:12px; font-weight:600; font-size:.9rem; margin-top:14px; }

/* Placeholder tag */
.placeholder-note{
  display:inline-flex; align-items:center; gap:6px; background:#FDF3E4; border:1px dashed var(--clay-mid);
  color: var(--clay-deep); font-size:.76rem; font-weight:600; padding:6px 12px; border-radius:999px; margin-bottom:14px;
}

/* ================= FOOTER ================= */
.site-footer{ background: var(--ink); color: rgba(255,255,255,.82); padding-top:64px; }
.footer-top{ display:grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap:40px; padding-bottom:44px; border-bottom:1px solid rgba(255,255,255,.12); }
@media (max-width: 860px){ .footer-top{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .footer-top{ grid-template-columns: 1fr; } }
.footer-brand{ font-family: var(--serif); font-size:1.3rem; color:#fff; margin-bottom:10px; }
.footer-tagline{ font-size:.88rem; color: rgba(255,255,255,.6); max-width:280px; }
.footer-col h4{ color:#fff; font-family: var(--sans); font-size:.78rem; letter-spacing:.1em; text-transform:uppercase; margin-bottom:16px; }
.footer-col li{ margin-bottom:10px; }
.footer-col a{ font-size:.9rem; color: rgba(255,255,255,.68); }
.footer-col a:hover{ color: var(--clay-mid); }
.social-row{ display:flex; gap:12px; margin-top:16px; }
.social-row a{
  width:38px; height:38px; border-radius:50%; border:1px solid rgba(255,255,255,.25);
  display:flex; align-items:center; justify-content:center; font-size:.85rem; color:#fff;
}
.social-row a:hover{ background: var(--clay); border-color: var(--clay); }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; padding: 24px 0; font-size:.8rem; color: rgba(255,255,255,.5); }
.footer-bottom a{ color: rgba(255,255,255,.5); }
.footer-bottom a:hover{ color:#fff; }

/* Page hero (interior pages) */
.page-hero{ background: var(--clay-soft); padding: 64px 0 56px; }
.page-hero h1{ font-size: clamp(2rem, 4vw, 2.8rem); }
.breadcrumb{ font-size:.8rem; color: var(--clay-deep); font-weight:700; letter-spacing:.05em; text-transform:uppercase; margin-bottom:14px; }

/* Utility */
.mt-lg{ margin-top:48px; }
.mb-lg{ margin-bottom:48px; }
.tag-row{ display:flex; gap:8px; flex-wrap:wrap; margin-top:18px; }
.tag-pill{ background: var(--clay-soft); color: var(--clay-deep); font-size:.76rem; font-weight:700; padding:6px 14px; border-radius:999px; }

/* ================= DARK MODE (toggle in header, Yield-style moon icon) ================= */
body.dark-mode{
  --cream: #17130F;
  --white: #201A14;
  --ink: #F7F1E6;
  --ink-soft: #CBBBA6;
  --clay-soft: #2E2318;
  --line: #392C1F;
  --shadow: 0 12px 32px rgba(0,0,0,.4);
}
body.dark-mode .site-header{ background: rgba(23,19,15,.9); }
body.dark-mode .cta-band{ background: #0E0B08; }
body.dark-mode .devo-media span, body.dark-mode .hero-badge{ color: var(--ink); }
body.dark-mode .form-card, body.dark-mode .card, body.dark-mode .devo-card, body.dark-mode .quote-card{ background: var(--white); }
body.dark-mode .field input, body.dark-mode .field select, body.dark-mode .field textarea{ background: var(--cream); color: var(--ink); border-color: var(--line); }
body.dark-mode .theme-toggle{ color: var(--clay-mid); border-color: var(--line); }
