/* =========================================================
   Grace Church Production Hub — shared styles
   Layout inspired by thefutur.com, brand from gracechurchsp.org
   Change a color or font here and every page updates.
   ========================================================= */

:root {
  /* Colors — Grace Church is black & white; photos carry the color */
  --ink: #0a0a0a;          /* main text, buttons, dark sections */
  --muted: #6d6f6e;        /* secondary text */
  --faint: #989a99;        /* small labels on dark backgrounds */
  --line: #e5e6e5;         /* thin divider lines */
  --wash: #f5f5f5;         /* light gray blocks */
  --paper: #ffffff;        /* page background */

  /* Fonts — Montserrat for headlines, Inter for everything else */
  --font-head: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --max: 1200px;
  --gutter: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute; left: -9999px;
}
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }

/* ---------- Small uppercase labels (the Futur signature) ---------- */
.label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.label--ink { color: var(--ink); }

.arrow-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color .15s, gap .15s;
}
.arrow-link::after { content: "→"; }
.arrow-link:hover { border-color: currentColor; gap: 10px; }
.arrow-link.label { font-size: 11px; white-space: nowrap; }
[id] { scroll-margin-top: 80px; }

/* ---------- Buttons (Grace Church's black pill) ---------- */
.btn {
  display: inline-block;
  background: var(--ink); color: #fff;
  font-weight: 600; font-size: 15px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.btn:hover { background: #fff; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: transparent; color: #fff; }

/* ---------- Top navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 22px; width: auto; }
.brand span {
  font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); padding-left: 12px; border-left: 1px solid var(--line);
}
.nav__links { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav__links a { color: var(--ink); opacity: .85; }
.nav__links a:hover, .nav__links a[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.nav__links .nav__notion { color: var(--muted); }
.nav__toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 600;
}

@media (max-width: 820px) {
  .nav__toggle { display: block; }
  .nav__links {
    display: none;
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px;
  }
  .nav__links a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav.is-open .nav__links { display: flex; }
  .brand span { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: 72px 0 0; }
.hero h1 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(40px, 6.2vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 40px;
  max-width: 15ch;
}
.hero h1.hero--wide { max-width: 22ch; }
.hero__lede { font-size: 19px; color: var(--muted); max-width: 46ch; margin: -16px 0 40px; }
.hero__bar {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  border-top: 4px solid var(--ink);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.hero__img {
  margin-top: 40px;
  aspect-ratio: 21 / 9;
  width: 100%;
  object-fit: cover;
  background: var(--wash);
}

/* ---------- Generic sections ---------- */
.section { padding: 88px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section--tight { padding: 56px 0; }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; }
.section__head p { margin: 8px 0 0; color: var(--muted); max-width: 52ch; }

h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0;
}
h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
}
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- Three facts row (Vision / Disciplines / The Win) ---------- */
.facts {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}
.fact { padding: 36px 32px 40px 0; }
.fact + .fact { padding-left: 32px; border-left: 1px solid var(--line); }
.fact p { margin: 12px 0 0; font-family: var(--font-head); font-size: 22px; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; }
@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr; }
  .fact, .fact + .fact { padding: 28px 0; border-left: 0; }
  .fact + .fact { border-top: 1px solid var(--line); }
}

/* ---------- Hub cards (Futur's featured events) ---------- */
.feature {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center;
  padding-bottom: 56px; border-bottom: 1px solid var(--line);
}
.feature__img, .card__img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--wash);
  transition: transform .4s ease;
}
.img-frame { overflow: hidden; }
a:hover .feature__img, a:hover .card__img { transform: scale(1.03); }
.feature h3 { font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -0.03em; margin: 12px 0 16px; }
.feature p { color: var(--muted); margin: 0 0 24px; max-width: 38ch; }
.tagline { display: flex; align-items: center; gap: 10px; }
.chip {
  font-size: 12px; color: var(--muted); background: var(--wash);
  padding: 2px 10px; border-radius: 999px;
}

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; padding-top: 56px; }
.card h3 { margin: 20px 0 8px; }
.card p { color: var(--muted); margin: 0 0 16px; }
@media (max-width: 760px) {
  .feature { grid-template-columns: 1fr; gap: 24px; }
  .cards { grid-template-columns: 1fr; }
}

/* ---------- Numbered list (Futur's "Most Popular") ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 72px 1fr; gap: 16px;
  padding: 24px 0; border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-head); font-size: 28px; font-weight: 500; color: #c4c5c4; line-height: 1.1;
}
.steps strong { display: block; font-family: var(--font-head); font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); }
.steps a { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }

/* ---------- Split layout: heading left, content right ---------- */
.split { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; }
.split > :first-child p { color: var(--muted); margin-top: 12px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Tiles (positions, resources) ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tiles--2 { grid-template-columns: repeat(2, 1fr); }
.tile {
  background: #fff; padding: 28px 24px 24px;
  display: flex; flex-direction: column; gap: 10px; min-height: 160px;
  transition: background .15s;
}
.tile:hover { background: var(--wash); }
.tile__icon { font-size: 26px; line-height: 1; }
.tile h3 { font-size: 20px; }
.tile p { margin: 0; color: var(--muted); font-size: 15px; }
.tile .arrow-link { margin-top: auto; }
@media (max-width: 860px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .tiles, .tiles--2 { grid-template-columns: 1fr; } }

/* ---------- Gray block (Futur's "Free Tool") ---------- */
.block {
  background: var(--wash);
  padding: 40px;
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
}
.block h3 { margin: 8px 0 6px; font-size: 26px; }
.block p { margin: 0; color: var(--muted); }
@media (max-width: 700px) { .block { grid-template-columns: 1fr; padding: 28px 24px; } }

/* ---------- Times row (Online Resourcers) ---------- */
.times { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 4px solid var(--ink); }
.time { padding: 24px 24px 8px 0; }
.time + .time { padding-left: 24px; border-left: 1px solid var(--line); }
.time b { display: block; font-family: var(--font-head); font-size: clamp(30px, 4vw, 48px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; margin-top: 8px; }
@media (max-width: 560px) {
  .times { grid-template-columns: 1fr; }
  .time, .time + .time { padding: 20px 0; border-left: 0; }
  .time + .time { border-top: 1px solid var(--line); }
}

/* ---------- Dark band (Futur's "Our Mission") ---------- */
.dark { background: var(--ink); color: #fff; }
.dark .label, .dark .muted { color: var(--faint); }
.dark h2 { color: #fff; }
.dark .section + .section, .section.dark + .section { border-top: 0; }
.band { padding: 120px 0; text-align: center; }
.band h2 { font-size: clamp(36px, 5vw, 64px); letter-spacing: -0.035em; max-width: 18ch; margin: 16px auto 20px; }
.band p { color: var(--faint); max-width: 48ch; margin: 0 auto 32px; }

/* Prayer steps on dark background */
.prayer { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 0; }
.prayer li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid #262626; }
.prayer li span { font-family: var(--font-head); color: #555; font-size: 22px; font-weight: 500; }
.prayer strong { display: block; font-family: var(--font-head); font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.prayer p { margin: 0; color: #b5b5b5; }
.prayer em { color: #fff; }

/* ---------- Expandable sections ---------- */
details.drawer { border-top: 1px solid var(--line); }
details.drawer:last-of-type { border-bottom: 1px solid var(--line); }
details.drawer summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; font-family: var(--font-head); font-size: 20px; font-weight: 600;
}
details.drawer summary::-webkit-details-marker { display: none; }
details.drawer summary::after { content: "+"; font-family: var(--font-body); font-weight: 300; font-size: 28px; line-height: 1; transition: transform .2s; }
details.drawer[open] summary::after { transform: rotate(45deg); }
details.drawer .drawer__body { padding: 0 0 28px; color: var(--muted); max-width: 68ch; }
.dark details.drawer { border-color: #262626; }
.dark details.drawer .drawer__body { color: #b5b5b5; }

blockquote { margin: 0 0 18px; padding-left: 18px; border-left: 2px solid currentColor; }
blockquote cite { display: block; font-style: normal; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-top: 6px; opacity: .7; }

/* ---------- Team table ---------- */
.people { width: 100%; border-collapse: collapse; font-size: 16px; }
.people th { text-align: left; padding: 0 16px 12px 0; }
.people td { padding: 18px 16px 18px 0; border-top: 1px solid var(--line); vertical-align: top; }
.people td:first-child { font-weight: 600; white-space: nowrap; }
.people td:last-child { color: var(--muted); }
@media (max-width: 640px) {
  .people thead { display: none; }
  .people tr { display: block; padding: 16px 0; border-top: 1px solid var(--line); }
  .people td { display: block; border: 0; padding: 2px 0; }
}

/* ---------- Tabs (Futur's video filters) ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.tab {
  background: none; border: 0; padding: 12px 0; margin-bottom: -1px; cursor: pointer;
  font: inherit; font-size: 15px; color: var(--muted);
  border-bottom: 2px solid transparent;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); font-weight: 600; border-color: var(--ink); }
.panel[hidden] { display: none; }

.checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.checks h4 { margin: 0 0 12px; }
.checks ul { list-style: none; margin: 0; padding: 0; }
.checks li { border-top: 1px solid var(--line); }
.checks label { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; cursor: pointer; font-size: 16px; }
.checks input { appearance: none; -webkit-appearance: none; flex: none; width: 18px; height: 18px; margin: 3px 0 0; border: 1.5px solid var(--ink); border-radius: 4px; cursor: pointer; display: grid; place-content: center; }
.checks input:checked { background: var(--ink); }
.checks input:checked::after { content: ""; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.checks input:checked + span { color: var(--faint); text-decoration: line-through; }
.checks__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 32px; }
@media (max-width: 760px) { .checks { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Updates list ---------- */
.update { display: grid; grid-template-columns: 160px 1fr auto; gap: 24px; align-items: baseline; padding: 24px 0; border-top: 1px solid var(--line); }
.update:last-of-type { border-bottom: 1px solid var(--line); }
.update h3 { font-size: 20px; margin-bottom: 4px; }
.update p { margin: 0; color: var(--muted); }
@media (max-width: 640px) { .update { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- Copy button for blurbs ---------- */
.copy {
  margin-top: 8px; background: none; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font: inherit; font-size: 13px; cursor: pointer; color: var(--ink);
}
.copy:hover { border-color: var(--ink); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #fff; padding: 72px 0 32px; border-top: 1px solid #262626; }
.footer__top { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 56px; }
.footer__top img { height: 22px; width: auto; filter: invert(1); }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.footer__cols .label { color: var(--faint); margin-bottom: 16px; display: block; }
.footer__cols a { display: block; padding: 5px 0; font-size: 15px; color: #d6d6d6; }
.footer__cols a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 64px; padding-top: 24px; border-top: 1px solid #262626; font-size: 13px; color: var(--faint); }
@media (max-width: 760px) { .footer__cols { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Phone tab bar (the "app" navigation) ---------- */
.tabbar { display: none; }

@media (max-width: 820px) {
  /* On phones the bottom tab bar replaces the Menu button */
  .nav__toggle { display: none; }
  .nav__inner { height: 56px; }
  .nav { padding-top: env(safe-area-inset-top); }

  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: rgba(255,255,255,.94);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar a {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 9px 0 7px; font-size: 11px; font-weight: 500; color: var(--faint);
    -webkit-tap-highlight-color: transparent;
  }
  .tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar a[aria-current="page"] { color: var(--ink); }
  .tabbar a[aria-current="page"] svg { stroke-width: 2.2; }

  /* leave room so the tab bar never covers the footer */
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }

  /* tighter, thumb-friendly spacing */
  :root { --gutter: 16px; }
  .hero { padding-top: 36px; }
  .hero h1.hero--wide { font-size: 32px; line-height: 1.08; letter-spacing: -0.03em; }
  .hero__bar .label--ink { max-width: 55%; }
  .hero h1 { margin-bottom: 28px; }
  .hero__img { aspect-ratio: 4 / 3; margin-top: 28px; }
  .section { padding: 56px 0; }
  .section__head { flex-direction: column; align-items: flex-start; margin-bottom: 28px; }
  .band { padding: 80px 0; }
  .footer { padding-top: 48px; }
  .footer__top .btn { display: none; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; gap: 24px; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { white-space: nowrap; }
  .checks label { padding: 14px 0; }
  .checks input { width: 22px; height: 22px; margin-top: 0; }
}

/* ---------- Gentle fade-in as you scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
