/* Revelation Church — revelationchurch.org */
:root {
  --black: #0d0d0d;
  --ink: #161616;
  --ink-soft: #5e5e5e;
  --line: #e7e5e1;
  --paper: #ffffff;
  --sand: #f5f3ef;
  --gold: #c9a35b;
  --gold-dark: #9c7a36;
  --radius: 20px;
  --max: 1240px;
  --head: "Inter Tight", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Newsreader", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 800; line-height: 1.02; letter-spacing: -.035em; margin: 0 0 .45em; }
h1 { font-size: clamp(3rem, 8.5vw, 7rem); text-transform: uppercase; letter-spacing: -.045em; }
h2 { font-size: clamp(2.2rem, 5vw, 4rem); }
h3 { font-size: 1.45rem; letter-spacing: -.02em; line-height: 1.15; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.center .narrow, .narrow.center { margin-left: auto; margin-right: auto; }
section { padding: 120px 0; }
.dark { background: var(--black); color: #fff; }
.tint { background: var(--sand); }
.eyebrow { font-family: var(--head); font-size: .8rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 1.1em; }
.dark .eyebrow, .hero .eyebrow { color: var(--gold); }
.lead { font-size: 1.25rem; color: var(--ink-soft); line-height: 1.55; }
.dark .lead, .dark p { color: rgba(255,255,255,.72); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 56px; }
.section-head h2 { margin: 0; max-width: 760px; }
.text-link { font-family: var(--head); font-weight: 700; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; white-space: nowrap; }
.text-link:hover { color: var(--gold-dark); }
.dark .text-link:hover { color: var(--gold); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 15px 30px; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; font-family: var(--head); font-weight: 700; font-size: 1rem; border: 2px solid var(--ink); transition: transform .15s, background .15s, color .15s; cursor: pointer; }
.btn:hover { transform: translateY(-2px); }
.btn.white { background: #fff; color: var(--ink); border-color: #fff; }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn.ghost:hover { background: rgba(255,255,255,.12); }
.btn.outline { background: transparent; color: var(--ink); }
.btn.outline:hover { background: var(--ink); color: #fff; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--black); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btn-row { justify-content: center; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); transition: background .25s, border-color .25s, color .25s; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.brand { font-family: var(--head); font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; text-decoration: none; text-transform: uppercase; }
.brand span { color: var(--gold-dark); }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { text-decoration: none; font-family: var(--head); font-weight: 600; font-size: .95rem; opacity: .85; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 currentColor; }
.nav .btn { opacity: 1; padding: 11px 22px; font-size: .92rem; color: #fff; }
.menu-toggle { display: none; background: none; border: 0; font: 700 1rem var(--head); color: inherit; cursor: pointer; padding: 8px 4px; }

/* Header over the hero (home page) */
.site-header.over { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; color: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header.over .brand span { color: var(--gold); }
.site-header.over .nav .btn { background: #fff; color: var(--ink); border-color: #fff; }
.site-header.over.scrolled { background: rgba(13,13,13,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); color: var(--ink); padding: 8px 0 20px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.3); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 24px; font-size: 1.1rem; opacity: 1; }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--gold-dark); }
  .nav .btn, .site-header.over .nav .btn { margin: 12px 24px 0; justify-content: center; background: var(--ink); color: #fff; border-color: var(--ink); }
}

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; background: var(--black) center/cover no-repeat; padding: 160px 0 80px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.15) 70%), linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.2) 35%, rgba(0,0,0,.82) 100%); }
.hero .wrap { position: relative; width: 100%; }
.hero .eyebrow { color: #f1d9a6; }
.hero h1, .hero p, .hero .eyebrow { text-shadow: 0 2px 24px rgba(0,0,0,.35); }
@media (max-width: 700px) { .hero::before { background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.5) 40%, rgba(0,0,0,.85) 100%); } }
.hero p { font-size: 1.25rem; max-width: 560px; color: rgba(255,255,255,.88); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.25); font-family: var(--head); font-weight: 600; font-size: .95rem; color: rgba(255,255,255,.85); }
.hero-meta b { color: #fff; }
.page-hero { min-height: 72vh; padding-bottom: 72px; }
.page-hero h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); }

/* Service strip */
.strip { background: var(--gold); color: var(--black); padding: 22px 0; }
.strip .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; font-family: var(--head); font-weight: 700; }
.strip a { text-decoration: none; border-bottom: 2px solid; }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } .split.flip > :first-child { order: 0; } }
.photo { width: 100%; border-radius: var(--radius); object-fit: cover; aspect-ratio: 4/5; }
.photo.wide { aspect-ratio: 3/2; }

/* Big number */
.big-number { font-family: var(--head); font-weight: 800; font-size: clamp(7rem, 18vw, 14rem); line-height: .8; letter-spacing: -.06em; color: var(--gold); margin-bottom: 24px; }

/* Expect cards */
.expect { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.expect div { background: var(--sand); border-radius: var(--radius); padding: 36px 32px; }
.expect .num { font-family: var(--head); font-weight: 800; color: var(--gold-dark); font-size: .9rem; letter-spacing: .1em; margin-bottom: 40px; display: block; }
.expect p { color: var(--ink-soft); margin: 0; }
@media (max-width: 860px) { .expect { grid-template-columns: 1fr; } }

/* Image tiles (next steps, groups) */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tiles.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .tiles, .tiles.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .tiles, .tiles.four { grid-template-columns: 1fr; } }
.tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 440px; border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none; padding: 28px; isolation: isolate; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.82) 100%); }
.tile:hover img { transform: scale(1.05); }
.tile h3 { font-size: 1.7rem; margin-bottom: 6px; }
.tile p { color: rgba(255,255,255,.82); margin: 0; font-size: .97rem; }
.tile .tag { font-family: var(--head); font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }

/* Devotion card */
.devo-feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; border-radius: var(--radius); overflow: hidden; background: var(--paper); color: var(--ink); text-decoration: none; }
.devo-feature .art { background: var(--gold) url("images/worship.jpg") center/cover; min-height: 380px; position: relative; }
.devo-feature .body { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.devo-feature h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.devo-feature .ref { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--ink-soft); }
@media (max-width: 860px) { .devo-feature { grid-template-columns: 1fr; } .devo-feature .art { min-height: 240px; } .devo-feature .body { padding: 32px; } }
.meta { font-family: var(--head); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 12px; }

/* Devotion list */
.devo-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) { .devo-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .devo-list { grid-template-columns: 1fr; } }
.devo-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.devo-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(0,0,0,.35); }
.devo-card h3 { margin-bottom: 10px; }
.devo-card .ref { font-family: var(--serif); font-style: italic; color: var(--ink-soft); margin-bottom: 12px; }
.devo-card p { color: var(--ink-soft); font-size: .97rem; flex: 1; }
.devo-card .read { font-family: var(--head); font-weight: 700; font-size: .9rem; }
.devo-empty { color: var(--ink-soft); }

/* Devotion article (auto-formatted) */
.devo-article { max-width: 720px; margin: 0 auto; }
.devo-article h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); text-transform: none; letter-spacing: -.035em; }
.devo-article .ref { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--ink-soft); margin-bottom: 8px; }
.devo-byline { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--ink-soft); font-size: .95rem; padding-bottom: 28px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.devo-body { font-family: var(--serif); font-size: 1.28rem; line-height: 1.75; color: #222; }
.devo-body > p:first-of-type::first-letter { float: left; font-family: var(--head); font-weight: 800; font-size: 4.2em; line-height: .82; padding: 6px 12px 0 0; color: var(--gold-dark); }
.devo-body h2, .devo-body h3 { font-family: var(--head); font-size: .85rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dark); margin: 2.4em 0 .8em; }
.devo-body blockquote { margin: 1.6em 0; padding: 4px 0 4px 26px; border-left: 3px solid var(--gold); font-style: italic; color: #333; }
.devo-body blockquote p { margin: 0 0 .5em; }
.devo-body ul, .devo-body ol { padding-left: 1.3em; }
.devo-body li { margin-bottom: .4em; }
.devo-body a.verse { color: inherit; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.devo-scripture { background: var(--sand); border-radius: var(--radius); padding: 32px 36px; margin: 0 0 40px; font-family: var(--serif); font-size: 1.3rem; line-height: 1.6; font-style: italic; }
.devo-scripture cite { display: block; margin-top: 12px; font-family: var(--head); font-style: normal; font-weight: 700; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); }
.devo-prayer { margin-top: 48px; background: var(--black); color: #fff; border-radius: var(--radius); padding: 36px; }
.devo-prayer .meta { color: var(--gold); }
.devo-prayer p { font-family: var(--serif); font-size: 1.2rem; color: rgba(255,255,255,.88); margin: 0 0 .6em; }
.devo-nav { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.devo-image { width: 100%; border-radius: var(--radius); margin-bottom: 40px; aspect-ratio: 16/9; object-fit: cover; }
.devo-hero { min-height: 66vh; min-height: 66svh; }
.devo-hero-inner { max-width: 880px; }
.devo-hero h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); text-transform: none; }
.devo-hero .meta { color: var(--gold); text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.devo-hero .ref { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: rgba(255,255,255,.9); margin-bottom: 14px; }
.devo-hero .ref a.verse { color: inherit; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.devo-hero .devo-byline { color: rgba(255,255,255,.82); border: 0; margin: 0; padding: 0; }

/* Team */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.team div { background: var(--paper); padding: 28px 24px; }
.team strong { display: block; font-family: var(--head); font-size: 1.1rem; letter-spacing: -.01em; }
.team span { color: var(--ink-soft); font-size: .92rem; }
@media (max-width: 900px) { .team { grid-template-columns: 1fr 1fr; } }

/* Give options */
.give-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .give-grid { grid-template-columns: 1fr; } }
.give-card { background: #1b1b1b; border-radius: var(--radius); padding: 36px 32px; display: flex; flex-direction: column; }
.give-card h3 { color: #fff; }
.give-card p { flex: 1; }
.give-card .handle { font-family: var(--head); font-weight: 700; font-size: 1.1rem; color: var(--gold); word-break: break-all; margin: 0 0 4px; }

/* Info list (visit/contact) */
.info-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.info-list div { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.info-list dt, .info-list b { font-family: var(--head); font-weight: 700; }
@media (max-width: 560px) { .info-list div { grid-template-columns: 1fr; gap: 4px; } }
.map { width: 100%; height: 100%; min-height: 420px; border: 0; border-radius: var(--radius); }

/* Photo marquee */
.photo-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.photo-row img { aspect-ratio: 1; object-fit: cover; width: 100%; border-radius: 12px; }
@media (max-width: 760px) { .photo-row { grid-template-columns: repeat(3, 1fr); } .photo-row img:nth-child(n+4) { display: none; } }

/* Final CTA */
.cta { position: relative; color: #fff; text-align: center; background: var(--black) center/cover no-repeat; padding: 160px 0; }
.cta::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.cta .wrap { position: relative; }
.cta p { color: rgba(255,255,255,.85); font-size: 1.2rem; }

/* Footer */
.site-footer { background: var(--black); color: rgba(255,255,255,.65); padding: 96px 0 40px; font-size: .95rem; }
.site-footer .big { font-family: var(--head); font-weight: 800; font-size: clamp(2.4rem, 6vw, 4.5rem); letter-spacing: -.04em; line-height: 1; color: #fff; text-transform: uppercase; margin-bottom: 64px; }
.site-footer .big span { color: var(--gold); }
.site-footer .cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
@media (max-width: 800px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.copy { margin-top: 72px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
