/* Ramah Baptist Church — site styles */
:root {
  --navy: #1b3b6c;
  --navy-dark: #122a4f;
  --gold: #8f6514;
  --gold-light: #c9a24f;
  --cream: #faf7f1;
  --sand: #f1ebdf;
  --ink: #23262d;
  --muted: #565b66;
  --line: #e3dccd;
  --radius: 10px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 17px/1.65 var(--sans); color: var(--ink); background: #fff; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--gold); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.25rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, 760px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }
.eyebrow { font: 600 .8rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: .6rem; }
.lead { font-size: 1.15rem; color: var(--muted); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; }
.brand img { width: 150px; height: auto; }
.brand .tagline { display: none; font: italic 1rem/1.3 var(--serif); color: var(--gold); border-left: 1px solid var(--line); padding-left: .9rem; }
@media (min-width: 1180px) { .brand .tagline { display: block; } }
.nav-toggle { display: inline-flex; align-items: center; gap: .5rem; background: none; border: 1px solid var(--line); border-radius: 8px; padding: .55rem .8rem; font: 600 .95rem var(--sans); color: var(--navy); cursor: pointer; min-height: 44px; }
.nav-toggle .bars { width: 20px; height: 2px; background: currentColor; position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor; }
.nav-toggle .bars::before { top: -6px; } .nav-toggle .bars::after { top: 6px; }
.site-nav { display: none; }
.site-nav.open { display: block; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); max-height: calc(100vh - 76px); overflow-y: auto; box-shadow: 0 12px 24px rgba(0,0,0,.08); }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul { padding: .5rem 1.25rem 1.25rem; }
.site-nav a, .site-nav .sub-btn { display: block; padding: .7rem .25rem; text-decoration: none; color: var(--ink); font: 600 1rem var(--sans); background: none; border: 0; width: 100%; text-align: left; cursor: pointer; }
.site-nav a[aria-current="page"] { color: var(--gold); }
.site-nav .sub a { font-weight: 400; padding-left: 1rem; }
.site-nav .sub-btn::after { content: ""; display: inline-block; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-left: .5rem; position: relative; top: -3px; }
.site-nav .give a { color: var(--gold); }
@media (min-width: 980px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.open { display: block; position: static; box-shadow: none; border: 0; max-height: none; overflow: visible; }
  .site-nav > ul { display: flex; align-items: center; gap: .25rem; padding: 0; }
  .site-nav > ul > li { position: relative; }
  .site-nav a, .site-nav .sub-btn { padding: .6rem .7rem; font-size: .95rem; width: auto; }
  .site-nav .sub { display: none; position: absolute; top: 100%; left: 0; min-width: 230px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .4rem; box-shadow: 0 14px 30px rgba(0,0,0,.1); }
  .site-nav .sub a { padding: .55rem .8rem; border-radius: 6px; }
  .site-nav .sub a:hover { background: var(--cream); }
  .site-nav li:hover > .sub, .site-nav li:focus-within > .sub, .site-nav .sub-btn[aria-expanded="true"] + .sub { display: block; }
  .site-nav .give a { background: var(--navy); color: #fff; border-radius: 999px; padding: .55rem 1.1rem; margin-left: .4rem; }
  .site-nav .give a:hover { background: var(--gold); color: #fff; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 46px; padding: .7rem 1.35rem; border-radius: 999px; background: var(--navy); color: #fff; font: 600 .98rem var(--sans); text-decoration: none; border: 2px solid var(--navy); cursor: pointer; }
.btn:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn.alt { background: transparent; color: var(--navy); }
.btn.alt:hover { background: var(--navy); color: #fff; }
.btn.light { background: #fff; color: var(--navy); border-color: #fff; }
.btn.light:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--navy-dark); }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.btn.ghost:hover { background: #fff; color: var(--navy); }
.btns { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Hero */
.hero { position: relative; color: #fff; background: var(--navy-dark); overflow: hidden; }
.hero picture img, .hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,42,79,.25) 0%, rgba(18,42,79,.78) 70%, rgba(18,42,79,.9) 100%); }
.hero .wrap { position: relative; z-index: 1; padding: 9rem 0 3.5rem; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 7vw, 4rem); margin-bottom: .2em; }
.hero .tag { font: italic clamp(1.15rem, 2.6vw, 1.5rem)/1.35 var(--serif); color: #f3e3bf; margin-bottom: 1.6rem; }
.hero .phone { display: inline-block; color: #fff; font-weight: 600; margin-bottom: 1.4rem; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.5); }
@media (min-width: 800px) { .hero .wrap { padding: 14rem 0 5rem; } }

.page-hero { position: relative; background: var(--navy-dark); color: #fff; overflow: hidden; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.page-hero .wrap { position: relative; padding: 4.5rem 0 3rem; }
.page-hero h1 { color: #fff; margin: 0; }
.page-hero p { color: #f1e6cf; margin: .6rem 0 0; font: italic 1.15rem var(--serif); }
.crumbs { font-size: .9rem; margin-bottom: .6rem; color: #e9dfca; }
.crumbs a { color: #fff; }

/* Sections */
.section { padding: 4rem 0; }
.section.tint { background: var(--cream); }
.section.sand { background: var(--sand); }
.section.navy { background: var(--navy); color: #fff; }
.section.navy h2, .section.navy h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 2.2rem; }
.section-head.center { text-align: center; margin-inline: auto; }
.grid { display: grid; gap: 1.5rem; }
@media (min-width: 700px) { .grid.two { grid-template-columns: repeat(2, 1fr); } .grid.three { grid-template-columns: repeat(2, 1fr); } .grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid.three { grid-template-columns: repeat(3, 1fr); } .grid.four { grid-template-columns: repeat(4, 1fr); } }
.split { display: grid; gap: 2.2rem; align-items: center; }
@media (min-width: 880px) { .split { grid-template-columns: 1fr 1fr; gap: 3.5rem; } .split.rev > :first-child { order: 2; } }
.split img, .rounded { border-radius: var(--radius); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card .body { padding: 1.3rem 1.4rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.card .body p { color: var(--muted); }
.card .body .more { margin-top: auto; font-weight: 600; }
.card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.card.wide img { aspect-ratio: 2/1; }
a.card { text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(0,0,0,.08); color: inherit; }
a.card h3 { color: var(--navy); }
.priorities { counter-reset: p; }
.priority { background: #fff; border-top: 3px solid var(--gold); border-radius: var(--radius); padding: 1.6rem; }
.priority .num { font: 600 .8rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.priority h3 { margin-top: .4rem; }
blockquote, .verse { margin: 1.6rem 0; padding: 1.2rem 1.5rem; border-left: 3px solid var(--gold); background: var(--cream); font: italic 1.12rem/1.6 var(--serif); color: var(--navy-dark); border-radius: 0 var(--radius) var(--radius) 0; }
.verse cite, blockquote cite { display: block; margin-top: .5rem; font: normal 600 .88rem var(--sans); color: var(--gold); }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.8rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .35rem; }
.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li { padding: .9rem 0; border-bottom: 1px solid var(--line); }
.pastor { display: grid; gap: 1.5rem; align-items: center; }
.pastor img { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: 0 6px 20px rgba(0,0,0,.12); }
@media (min-width: 700px) { .pastor { grid-template-columns: 180px 1fr; } }
.pastor-card { text-align: center; padding: 2rem 1.5rem; }
.pastor-card img { width: 170px; height: 170px; border-radius: 50%; object-fit: cover; margin: 0 auto 1.2rem; }
.pastor-card .since { color: var(--muted); font-style: italic; }
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); }
.gallery figcaption { font-size: .9rem; color: var(--muted); margin-top: .4rem; }
.series { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.series a.card img { aspect-ratio: 4/3; object-fit: cover; background: var(--sand); }
.badge { display: inline-block; font: 600 .75rem var(--sans); letter-spacing: .08em; text-transform: uppercase; background: var(--gold); color: #fff; padding: .2rem .55rem; border-radius: 4px; margin-bottom: .5rem; align-self: flex-start; }
.video-facade { position: relative; display: block; width: 100%; aspect-ratio: 16/9; border: 0; padding: 0; border-radius: var(--radius); overflow: hidden; background: #000; cursor: pointer; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; opacity: .8; }
.video-facade .play { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%; background: rgba(27,59,108,.92); display: grid; place-items: center; }
.video-facade .play::before { content: ""; border-style: solid; border-width: 15px 0 15px 25px; border-color: transparent transparent transparent #fff; margin-left: 6px; }
.video-facade:hover .play { background: var(--gold); }
.video-frame { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: var(--radius); }
.doc-list { display: grid; gap: 1rem; }
.doc { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.1rem 1.3rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.doc h3 { margin: 0; font-size: 1.15rem; }
.doc p { margin: .2rem 0 0; color: var(--muted); font-size: .95rem; }
.partner { padding: 1.5rem; }
.partner h3 a { text-decoration: none; }
.partner .url { font-size: .95rem; word-break: break-word; }
.info-box { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.info-box h3 { margin-top: 0; }
.map { width: 100%; height: 360px; border: 0; border-radius: var(--radius); }
.notice { background: var(--sand); border-radius: var(--radius); padding: 1rem 1.25rem; font-size: .98rem; }

/* Forms */
.form { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; } }
.form label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .3rem; color: var(--navy-dark); }
.form input, .form textarea { width: 100%; font: inherit; padding: .75rem .9rem; border: 1px solid #c9c0ad; border-radius: 8px; background: #fff; color: var(--ink); min-height: 46px; }
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: 3px solid rgba(143,101,20,.3); border-color: var(--gold); }
.form .req { color: var(--gold); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: 0 10px 30px rgba(0,0,0,.05); }

/* Footer */
.site-footer { background: var(--navy-dark); color: #dfe5ef; padding: 3.5rem 0 1.5rem; font-size: .98rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--gold-light); }
.site-footer h2 { color: #fff; font-size: 1.1rem; font-family: var(--sans); letter-spacing: .1em; text-transform: uppercase; margin-bottom: .9rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
@media (min-width: 1040px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1.1fr .9fr; } }
.footer-logo { width: 170px; margin-bottom: 1rem; }
.footer-tag { font: italic 1.05rem var(--serif); color: var(--gold-light); }
.times { list-style: none; padding: 0; margin: 0; }
.times li { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.times .day { display: block; margin-top: .8rem; font-weight: 600; color: #fff; border: 0; padding-bottom: 0; }
.times .day:first-child { margin-top: 0; }
.site-footer address { font-style: normal; }
.site-footer p { margin-bottom: .7rem; }
.social { display: flex; gap: .6rem; margin-top: 1rem; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.1); }
.social a:hover { background: var(--gold); color: #fff; }
.social svg { width: 20px; height: 20px; fill: currentColor; }
.footer-links { list-style: none; padding: 0; margin: 0; columns: 2; }
.footer-links li { margin-bottom: .2rem; }
.footer-links a { display: inline-block; padding: .3rem 0; text-decoration: none; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .9rem; color: #b9c3d3; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; padding-bottom: 1rem; }
