/* Grants Pass Baptist Church — quiet precision system
   Inspired by modern minimal product sites: fog-white surfaces, tight grotesk
   type, one giant display moment, floating pill nav, imagery that fades into
   the page, near-black contrast band. Single accent: brand pine #48605c. */

@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@300;400;500;600&display=swap');

:root {
  --pine: #48605c;         /* the accent — used sparingly, like a signal */
  --pine-deep: #364844;
  --ink: #101312;          /* near-black */
  --ink-2: #1c211f;        /* near-black band surface */
  --fog: #f4f4f2;          /* page surface */
  --fog-2: #ececea;        /* tint panels */
  --paper: #fbfbfa;
  --muted: #6a716e;
  --line: #e2e2df;
  --max: 1120px;
  --pill: 999px;
  --r: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -.01em;
  color: var(--ink);
  background: var(--fog);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pine); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

h1, h2, h3 { font-weight: 500; letter-spacing: -.02em; line-height: 1.1; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 7.5vw, 5.6rem); font-weight: 400; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.12rem; line-height: 1.3; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header — floating pill nav */
header.site {
  position: sticky; top: 14px; z-index: 50;
  background: transparent;
  padding: 0 16px;
}
.nav-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  max-width: 900px; margin: 0 auto;
  background: rgba(251, 251, 250, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--pill);
  padding: 8px 10px 8px 18px;
  box-shadow: 0 10px 30px rgba(16, 19, 18, .08);
}
.brand img { height: 26px; width: auto; }
.nav-toggle { display: none; }
.nav-btn { display: inline-block; color: var(--ink); font-size: 1.45rem; cursor: pointer; user-select: none; padding: 4px 12px; }
nav.main { display: none; width: 100%; }
.nav-toggle:checked ~ nav.main { display: block; }
nav.main ul { list-style: none; margin: 0; padding: 4px 8px 12px; }
nav.main a {
  display: block; padding: 10px 12px; color: #3a403d; text-decoration: none;
  font-weight: 500; font-size: .95rem; border-radius: var(--pill);
}
nav.main a:hover { color: var(--ink); background: var(--fog-2); }
nav.main a[aria-current] { color: var(--ink); }
nav.main .cta a { background: var(--pine); color: #fff; text-align: center; margin-top: 6px; padding: 11px 20px; }
nav.main .cta a:hover { background: var(--ink); color: #fff; }
@media (min-width: 880px) {
  .nav-bar { flex-wrap: nowrap; }
  .nav-btn { display: none; }
  nav.main { display: block !important; width: auto; }
  nav.main ul { display: flex; align-items: center; gap: 0; padding: 0; }
  nav.main a { padding: 9px 13px; }
  nav.main .cta a { margin: 0 0 0 6px; padding: 9px 20px; }
}
@media (max-width: 879px) { .nav-bar { flex-wrap: wrap; } }

/* Hero — image dissolving into fog, giant quiet headline */
.hero {
  position: relative;
  text-align: center;
  padding: 90px 0 40px;
  margin-top: -66px; /* fog sits behind the floating nav */
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: url("../img/family-hero.jpg") center 28%/cover no-repeat;
  opacity: .5;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 30%, #000 62%, transparent 98%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 30%, #000 62%, transparent 98%);
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(rgba(244, 244, 242, .55), rgba(244, 244, 242, .28) 40%, var(--fog) 96%);
}
.hero .wrap { position: relative; z-index: 2; padding-top: 120px; }
.hero h1 { margin: 0 auto .25em; max-width: 900px; }
.hero p {
  font-size: .95rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--pine); max-width: 640px; margin: 0 auto 2.4em;
}
@media (max-width: 719px) {
  .hero { padding: 80px 0 30px; }
  .hero .wrap { padding-top: 90px; }
  .hero::before { opacity: .45; }
}

/* Page heroes — subpage headers with imagery dissolving into fog */
.page-hero {
  position: relative;
  text-align: center;
  padding: 60px 0 40px;
  margin-top: -66px;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--ph) center 40%/cover no-repeat;
  opacity: .45;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 32%, #000 60%, transparent 98%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 32%, #000 60%, transparent 98%);
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(rgba(244, 244, 242, .5), rgba(244, 244, 242, .25) 42%, var(--fog) 96%);
}
.page-hero .wrap { position: relative; z-index: 2; padding: 140px 0 40px; }
.page-hero h1 { font-size: clamp(2.3rem, 5.6vw, 4rem); }
.page-hero .lead { color: #2a302d; }
@media (max-width: 719px) {
  .page-hero .wrap { padding-top: 110px; }
}

/* Buttons — small, pill, confident */
.btn {
  display: inline-block; background: var(--pine); color: #fff;
  font-weight: 500; font-size: .98rem; letter-spacing: -.01em;
  text-decoration: none; border: 0; cursor: pointer;
  padding: 13px 28px; min-height: 44px; border-radius: var(--pill);
  transition: background .18s ease, transform .18s ease;
}
.btn:hover { background: var(--ink); color: #fff; transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--pine); outline-offset: 3px; }
section.deep .btn, footer.site .btn { background: var(--paper); color: var(--ink); }
section.deep .btn:hover { background: #fff; color: var(--pine-deep); }
.btn.ghost {
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 1.5px #c9ccc9; margin-left: 10px;
}
.btn.ghost:hover { background: var(--fog-2); color: var(--ink); transform: none; }
@media (max-width: 719px) {
  .btn.ghost { margin-left: 0; margin-top: 12px; }
}

/* Sections — generous air */
section { padding: 104px 0; }
section.alt { background: var(--paper); }
section.deep { background: var(--ink-2); color: #c8cdc9; }
section.deep h1, section.deep h2, section.deep h3 { color: #f4f4f2; }
section.deep a { color: #aebbb5; }
section.deep a:hover { color: #fff; }
.center { text-align: center; }
.lead { font-size: 1.14rem; max-width: 680px; margin-left: auto; margin-right: auto; color: #2a302d; }
section.deep .lead { color: #c8cdc9; }
.muted { color: var(--muted); }
section.deep .muted { color: #8d968f; }

/* Grids & cards */
.grid { display: grid; gap: 22px; }
@media (min-width: 720px) {
  .grid.c2 { grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; }
  .grid.c3 { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: var(--fog-2); border: 0; border-radius: var(--r);
  padding: 30px 26px;
  transition: background .18s ease;
}
.card:hover { background: #e6e6e3; }
.card h3 { margin-top: 0; }
.card p { color: #404743; margin-bottom: 0; }
section.deep .card { background: #262c29; }
section.deep .card p { color: #b4bcb6; }
section.alt .card { background: var(--fog); }

/* Photos — soft, precise */
.photo-round { border-radius: var(--r); box-shadow: 0 24px 60px rgba(16, 19, 18, .14); }

/* Verse — the one graceful serif moment */
.verse {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.6vw, 1.8rem); line-height: 1.5; font-style: italic;
  letter-spacing: 0; max-width: 760px; margin: 0 auto;
}
.verse cite {
  display: block; font-family: "Inter Tight", sans-serif; font-style: normal;
  font-size: .85rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  margin-top: 18px; color: #8d968f;
}

/* Info rows */
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.info-list strong { color: var(--ink); font-weight: 600; }

/* Map & video */
.map { border: 0; width: 100%; height: 380px; border-radius: var(--r); box-shadow: 0 24px 60px rgba(16, 19, 18, .12); }
.video { position: relative; padding-top: 56.25%; border-radius: var(--r); overflow: hidden; background: #000; box-shadow: 0 24px 60px rgba(16, 19, 18, .14); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Forms */
.mc-form input[type="email"], .mc-form input[type="text"] {
  width: 100%; padding: 13px 16px; min-height: 44px; margin-bottom: 12px;
  border: 1.5px solid var(--line); border-radius: 12px;
  font-size: 1rem; font-family: inherit; background: var(--paper);
}
.mc-form input:focus-visible { outline: 3px solid var(--pine); outline-offset: 1px; border-color: var(--pine); }
.mc-form label { font-weight: 500; display: block; margin-bottom: 4px; font-size: .92rem; color: #3a403d; }

/* Signature */
.signature { height: 72px; width: auto; margin: 6px 0 18px; }

/* Footer — near-black colophon */
footer.site { background: var(--ink); color: #a9b0ac; padding: 72px 0 32px; }
footer.site h3 {
  color: #f4f4f2; font-size: .82rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
}
footer.site a { color: #d4d8d5; text-decoration: none; }
footer.site a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { padding: 4px 0; font-size: .98rem; }
.foot-grid { display: grid; gap: 30px; }
@media (min-width: 720px) { .foot-grid { grid-template-columns: repeat(3, 1fr); } }
.foot-logo { height: 28px; width: auto; margin-bottom: 14px; filter: brightness(0) invert(1); }
.copyright {
  text-align: center; margin-top: 44px; padding-top: 22px;
  border-top: 1px solid rgba(244, 244, 242, .12); font-size: .85rem; color: #7d847f;
}
