/* ============================================================
   BAY BRIDGE CHURCH — baybridgechurch.com
   Social Dallas-inspired · Planting the Bay brand
   Ink / Cream / Bay Green
   ============================================================ */

:root {
  --ink: #0b0a07;
  --black: #000000;
  --cream: #efeadf;
  --paper: #f6f2e8;
  --green: #417c43;
  --green-deep: #2e5c30;
  --indigo: #3a4faa;
  --white: #ffffff;
  --serif: "Playfair Display", "IvyPresto Display", Georgia, serif;
  --sans: "Archivo", "Nimbus Sans", "Helvetica Neue", Arial, sans-serif;
  --script: "Great Vibes", cursive;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--ink);
  color: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::selection { background: var(--green); color: var(--cream); }

/* ---------- type ---------- */
.display {
  font-family: var(--serif);
  font-weight: 800;
  text-transform: uppercase;
  line-height: .92;
  letter-spacing: -.01em;
}
.kicker {
  font-family: var(--sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .35em;
  font-size: .78rem;
  color: var(--green);
}
.on-dark .kicker { color: #7fb381; }
.script-accent {
  font-family: var(--script);
  text-transform: none;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
}
.h-hero { font-size: clamp(3.2rem, 11vw, 9.5rem); }
.h-1 { font-size: clamp(2.6rem, 7vw, 6rem); }
.h-2 { font-size: clamp(2rem, 5vw, 4rem); }
.h-3 { font-size: clamp(1.4rem, 3vw, 2.2rem); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 62ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .8rem;
  padding: 1.05rem 2.4rem;
  border: 2px solid var(--cream);
  color: var(--cream);
  background: transparent;
  transition: all .35s var(--ease);
  cursor: pointer;
}
.btn:hover { background: var(--cream); color: var(--ink); transform: translateY(-2px); }
.btn-solid { background: var(--green); border-color: var(--green); color: var(--cream); }
.btn-solid:hover { background: var(--green-deep); border-color: var(--green-deep); color: var(--cream); }
.btn-ink { border-color: var(--ink); color: var(--ink); }
.btn-ink:hover { background: var(--ink); color: var(--cream); }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem clamp(1.2rem, 4vw, 3rem);
  transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s;
  background: linear-gradient(rgba(11,10,7,.75), transparent);
}
.nav.scrolled { background: var(--ink); padding: .7rem clamp(1.2rem, 4vw, 3rem); box-shadow: 0 2px 24px rgba(0,0,0,.5); }
.nav-logo { display: flex; align-items: baseline; gap: .55rem; }
.nav-logo .mark {
  font-family: var(--serif); font-weight: 900; font-size: 1.5rem; line-height: 1;
  color: var(--cream); letter-spacing: -.03em;
}
.nav-logo .mark em { font-style: normal; color: var(--green); }
.nav-logo .word {
  font-weight: 800; text-transform: uppercase; letter-spacing: .3em; font-size: .72rem; color: var(--cream);
}
.nav-links { display: flex; align-items: center; gap: clamp(.9rem, 1.6vw, 1.6rem); }
.nav-links a {
  font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .74rem;
  color: var(--cream); opacity: .85; transition: opacity .2s, color .2s;
}
.nav-links a:hover, .nav-links a.active { opacity: 1; color: #8fc491; }
.nav-links a.nav-give {
  border: 1.5px solid var(--cream); padding: .5rem 1.1rem; opacity: 1;
}
.nav-links a.nav-give:hover { background: var(--green); border-color: var(--green); color: var(--cream); }
.nav-burger { display: none; background: none; border: 0; cursor: pointer; z-index: 102; }
.nav-burger span { display: block; width: 26px; height: 2px; background: var(--cream); margin: 6px 0; transition: .3s var(--ease); }

.mobile-menu {
  position: fixed; inset: 0; background: var(--ink); z-index: 101;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4rem;
  transform: translateY(-100%); transition: transform .5s var(--ease);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a {
  font-family: var(--serif); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.6rem, 6vw, 2.4rem); color: var(--cream);
}
.mobile-menu a:hover { color: #8fc491; }
.mobile-menu .menu-close { position: absolute; top: 1.4rem; right: 1.6rem; font-size: 2.4rem; color: var(--cream); background: none; border: 0; cursor: pointer; font-family: var(--sans); }

@media (max-width: 1120px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(5rem, 10vh, 8rem) clamp(1.2rem, 5vw, 4rem) 4rem;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,10,7,.55) 0%, rgba(11,10,7,.35) 45%, rgba(11,10,7,.82) 100%); }
.hero-inner { position: relative; z-index: 2; }
.hero .script-accent { color: #a7d3a9; font-size: clamp(2.6rem, 8vw, 6.5rem); display: block; margin-top: .2em; transform: rotate(-3deg); padding: .05em .3em .3em .05em; margin-bottom: -.3em; }
.hero-sub { margin-top: 2rem; font-size: clamp(1rem, 1.6vw, 1.3rem); max-width: 46ch; font-weight: 500; }

.word-slide .line { display: block; overflow: hidden; }
.word-slide .line span { display: inline-block; transform: translateY(110%); animation: rise 1s var(--ease) forwards; }
.word-slide .line:nth-child(2) span { animation-delay: .15s; }
.word-slide .line:nth-child(3) span { animation-delay: .3s; }
@keyframes rise { to { transform: translateY(0); } }

/* ---------- service banner ---------- */
.service-banner {
  background: var(--green); color: var(--cream);
  padding: 2.6rem clamp(1.2rem, 5vw, 4rem);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.4rem;
}
.service-banner .display { font-size: clamp(1.6rem, 4vw, 3rem); }
.service-banner .meta { font-weight: 700; text-transform: uppercase; letter-spacing: .22em; font-size: .82rem; }

/* ---------- sections ---------- */
.section { padding: clamp(4.5rem, 10vw, 8.5rem) clamp(1.2rem, 5vw, 4rem); position: relative; }
.section-cream { background: var(--cream); color: var(--ink); }
.section-paper { background: var(--paper); color: var(--ink); }
.section-green { background: var(--green); color: var(--cream); }
.section-ink { background: var(--ink); color: var(--cream); }
.section-narrow { max-width: 880px; margin: 0 auto; }
.section-wide { max-width: 1280px; margin: 0 auto; }
.center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }

/* split bands */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; max-width: 1280px; margin: 0 auto; }
.split.flip > .split-media { order: 2; }
.split-media img, .split-media video { width: 100%; height: 100%; min-height: 380px; max-height: 640px; object-fit: cover; }
.split-media { position: relative; }
.split-media .photo-caption {
  position: absolute; bottom: .8rem; left: .8rem; background: rgba(11,10,7,.72); color: var(--cream);
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; padding: .4rem .8rem;
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.flip > .split-media { order: 0; }
}

/* gallery grid */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; max-width: 1400px; margin: 0 auto; }
.gallery img { width: 100%; height: 260px; object-fit: cover; transition: transform .6s var(--ease), filter .6s; }
.gallery a:hover img, .gallery img:hover { transform: scale(1.03); filter: saturate(1.15); }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } .gallery img { height: 200px; } }

/* houses triad */
.houses { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); max-width: 1280px; margin: 0 auto; }
.house .of { font-family: var(--script); font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--green); display: block; }
.section-green .house .of, .section-ink .house .of { color: #a7d3a9; }
.house h3 { font-family: var(--serif); font-weight: 900; text-transform: uppercase; font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: .95; }
.house p { margin-top: 1rem; font-size: .98rem; }
@media (max-width: 860px) { .houses { grid-template-columns: 1fr; } }

/* marquee */
.marquee { overflow: hidden; white-space: nowrap; padding: 1.6rem 0; border-top: 1px solid rgba(239,234,223,.18); border-bottom: 1px solid rgba(239,234,223,.18); }
.section-cream .marquee, .section-paper .marquee { border-color: rgba(11,10,7,.15); }
.marquee-track { display: inline-block; animation: marquee 26s linear infinite; }
.marquee-track span {
  font-family: var(--serif); font-weight: 900; text-transform: uppercase;
  font-size: clamp(1.8rem, 4vw, 3.2rem); margin-right: 3.5rem;
}
.marquee-track .alt { color: transparent; -webkit-text-stroke: 1.5px currentColor; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; max-width: 1280px; margin: 0 auto; }
.card { background: var(--white); color: var(--ink); display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,.08); transition: transform .4s var(--ease), box-shadow .4s; }
.section-ink .card, .section-green .card { background: #14120d; color: var(--cream); box-shadow: none; border: 1px solid rgba(239,234,223,.14); }
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 50px rgba(0,0,0,.16); }
.card img { height: 240px; object-fit: cover; width: 100%; }
.card-body { padding: 1.6rem 1.6rem 2rem; display: flex; flex-direction: column; gap: .8rem; flex: 1; }
.card-body h3 { font-family: var(--serif); text-transform: uppercase; font-weight: 900; font-size: 1.5rem; line-height: 1; }
.card-body .card-cta { margin-top: auto; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; font-size: .76rem; color: var(--green); }
.card-body .card-cta:hover { color: var(--green-deep); }
.section-ink .card-body .card-cta { color: #8fc491; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

/* steps (DNA) */
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; max-width: 1080px; margin: 0 auto; }
.step { border: 1.5px solid rgba(11,10,7,.2); padding: 2.2rem; background: var(--white); }
.step .num { font-family: var(--serif); font-weight: 900; font-size: 3rem; color: var(--green); line-height: 1; }
.step h3 { font-family: var(--serif); text-transform: uppercase; font-weight: 900; font-size: 1.5rem; margin-top: .6rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* calendar */
.cal { max-width: 980px; margin: 0 auto; }
.cal-item { display: grid; grid-template-columns: 110px 1fr auto; gap: 1.4rem; align-items: center; padding: 1.3rem 0; border-bottom: 1px solid rgba(11,10,7,.15); }
.section-ink .cal-item { border-color: rgba(239,234,223,.15); }
.cal-date { font-family: var(--serif); font-weight: 900; text-transform: uppercase; font-size: 1.3rem; line-height: 1; }
.cal-date b { display: block; font-size: 2rem; color: var(--green); }
.section-ink .cal-date b { color: #8fc491; }
.cal-what h4 { font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: 1.02rem; }
.cal-what p { font-size: .9rem; opacity: .8; }
.cal-meta { font-weight: 700; font-size: .84rem; text-transform: uppercase; letter-spacing: .12em; text-align: right; }
@media (max-width: 640px) { .cal-item { grid-template-columns: 80px 1fr; } .cal-meta { grid-column: 2; text-align: left; } }

/* values accordion-ish list */
.values { max-width: 980px; margin: 0 auto; }
.value { display: grid; grid-template-columns: 90px 1fr; gap: 1.6rem; padding: 2rem 0; border-bottom: 1px solid rgba(11,10,7,.15); align-items: start; }
.value .letter { font-family: var(--serif); font-weight: 900; font-size: 3.6rem; line-height: 1; color: var(--green); }
.value h3 { font-family: var(--serif); font-weight: 900; text-transform: uppercase; font-size: 1.5rem; }
.value p { margin-top: .5rem; }
@media (max-width: 640px) { .value { grid-template-columns: 60px 1fr; } .value .letter { font-size: 2.6rem; } }

/* campaign */
.progress-wrap { max-width: 760px; margin: 2.5rem auto 0; }
.progress-bar { height: 18px; background: rgba(239,234,223,.18); overflow: hidden; border-radius: 2px; }
.progress-fill { height: 100%; width: 0; background: var(--cream); transition: width 1.8s var(--ease); }
.section-cream .progress-bar, .section-paper .progress-bar { background: rgba(11,10,7,.12); }
.section-cream .progress-fill, .section-paper .progress-fill { background: var(--green); }
.progress-nums { display: flex; justify-content: space-between; margin-top: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .82rem; }
.big-number { font-family: var(--serif); font-weight: 900; font-size: clamp(3rem, 9vw, 7rem); line-height: 1; }

/* map + faq */
.map-embed { width: 100%; height: 440px; border: 0; filter: grayscale(.2); }
.faq { max-width: 880px; margin: 0 auto; }
.faq details { border-bottom: 1px solid rgba(11,10,7,.18); padding: 1.2rem 0; }
.faq summary { font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .95rem; cursor: pointer; }
.faq p { margin-top: .8rem; max-width: 65ch; }

/* pastors */
.pastor-card { max-width: 1080px; margin: 0 auto; text-align: center; }
.pastor-card img { width: 100%; max-height: 680px; object-fit: cover; object-position: center 30%; }
.pastor-card .names { font-family: var(--serif); font-weight: 900; text-transform: uppercase; font-size: clamp(1.8rem, 4vw, 3rem); margin-top: 1.6rem; }
.pastor-card .ig { font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: .84rem; color: var(--green); margin-top: .4rem; display: inline-block; }

/* footer */
.footer { background: var(--black); color: var(--cream); padding: 4rem clamp(1.2rem, 5vw, 4rem) 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; max-width: 1280px; margin: 0 auto; }
.footer h4 { font-weight: 800; text-transform: uppercase; letter-spacing: .24em; font-size: .74rem; color: #8fc491; margin-bottom: 1rem; }
.footer a { display: block; padding: .28rem 0; font-weight: 600; font-size: .92rem; opacity: .85; }
.footer a:hover { opacity: 1; color: #8fc491; }
.footer .brand-line { font-family: var(--serif); font-weight: 900; text-transform: uppercase; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1; }
.footer .brand-line em { font-style: normal; color: var(--green); }
.footer .tagline { font-family: var(--script); font-size: 1.8rem; color: #a7d3a9; margin-top: .6rem; }
.footer-bottom { max-width: 1280px; margin: 3rem auto 0; padding-top: 1.6rem; border-top: 1px solid rgba(239,234,223,.15); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .8rem; opacity: .7; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* page hero (interior pages) */
.page-hero {
  position: relative; min-height: 62vh; display: flex; align-items: flex-end;
  padding: 8rem clamp(1.2rem, 5vw, 4rem) 3.5rem; overflow: hidden;
}
.page-hero .hero-media img { object-position: center 35%; }
.page-hero .script-accent { color: #a7d3a9; font-size: clamp(2rem, 5vw, 3.6rem); display: block; transform: rotate(-2deg); }

/* misc */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; max-width: 1080px; margin: 3rem auto 0; text-align: center; }
.stat .n { font-family: var(--serif); font-weight: 900; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1; color: var(--green); }
.section-green .stat .n, .section-ink .stat .n { color: #a7d3a9; }
.stat .l { font-weight: 700; text-transform: uppercase; letter-spacing: .18em; font-size: .74rem; margin-top: .5rem; }
@media (max-width: 700px) { .stat-row { grid-template-columns: 1fr; } }

.quote-band { font-family: var(--serif); font-weight: 800; font-size: clamp(1.4rem, 3vw, 2.2rem); line-height: 1.3; max-width: 900px; margin: 0 auto; text-align: center; }
.quote-band .ref { display: block; font-family: var(--sans); font-weight: 700; letter-spacing: .22em; text-transform: uppercase; font-size: .78rem; margin-top: 1.2rem; color: var(--green); }
.section-green .quote-band .ref, .section-ink .quote-band .ref { color: #a7d3a9; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .word-slide .line span { transform: none; }
  .reveal { opacity: 1; transform: none; }
}
