/* Beulah Primitive Baptist Church — Leeds, AL */
:root {
  --navy: #12315d;
  --navy-dark: #0b2140;
  --orange: #f96331;
  --orange-ink: #c2410c;
  --brick: #7a2a22;
  --ink: #2b2b2b;
  --muted: #5b5f66;
  --cream: #faf7f2;
  --line: #e6e1d8;
  --white: #fff;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 72rem;
  --radius: 10px;
}
*, *::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-family: var(--sans); font-size: 1.0625rem; line-height: 1.7; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--orange-ink); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 46rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* Header */
.site-header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand { color: #fff; text-decoration: none; display: flex; align-items: center; gap: .75rem; padding: .5rem 0; }
.brand:hover { color: #fff; }
.brand-mark { flex: none; width: 2.6rem; height: 2.6rem; }
.brand-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; display: block; line-height: 1.15; }
.brand-tag { display: block; font-size: .8rem; color: #d7dfeb; line-height: 1.3; }
.nav-toggle { display: inline-flex; align-items: center; gap: .5rem; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); border-radius: 6px; padding: .5rem .8rem; font: inherit; font-size: .95rem; cursor: pointer; min-height: 44px; }
.nav-toggle svg { width: 1.2rem; height: 1.2rem; }
.site-nav { display: none; }
.site-nav.open { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy-dark); padding: .5rem 1.25rem 1.25rem; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; color: #fff; text-decoration: none; padding: .7rem .25rem; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 1.02rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #ffd2bf; }
.site-nav .nav-give { margin-top: .9rem; border: 0; text-align: center; background: var(--orange-ink); border-radius: 999px; font-weight: 600; }
.site-nav .nav-give:hover { color: #fff; background: #a8370a; }
@media (min-width: 64rem) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.open { display: block; position: static; background: none; padding: 0; }
  .site-nav ul { display: flex; align-items: center; gap: .25rem; }
  .site-nav a { border: 0; padding: .5rem .7rem; font-size: .97rem; border-radius: 6px; }
  .site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--orange); border-radius: 0; }
  .site-nav .nav-give { margin: 0 0 0 .5rem; padding: .5rem 1.2rem; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 48px; padding: .75rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 2px solid transparent; transition: background .15s, color .15s; }
.btn-primary { background: var(--orange-ink); color: #fff; }
.btn-primary:hover { background: #a8370a; color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--cream); color: var(--navy); }
.btn-ghost { border-color: rgba(255,255,255,.8); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Hero */
.hero { position: relative; color: #fff; background: var(--navy-dark); overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% center; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(11,33,64,.92) 0%, rgba(11,33,64,.78) 50%, rgba(11,33,64,.45) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-top: 5rem; padding-bottom: 5rem; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero .eyebrow { color: #ffd2bf; }
.hero p.lead { font-size: 1.2rem; max-width: 36rem; color: #eef2f8; }
@media (min-width: 48rem) { .hero .wrap { padding-top: 7.5rem; padding-bottom: 7.5rem; } }
.eyebrow { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--orange-ink); margin-bottom: .6rem; display: block; }

.page-hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .22; }
.page-hero .wrap { position: relative; padding-top: 3.5rem; padding-bottom: 3.5rem; }
.page-hero h1 { color: #fff; margin: 0; }
.page-hero p { color: #e3e9f2; margin: .75rem 0 0; max-width: 40rem; font-size: 1.1rem; }
.page-hero .eyebrow { color: #ffd2bf; }

/* Values strip */
.values { background: var(--cream); border-bottom: 1px solid var(--line); }
.values ul { list-style: none; margin: 0; padding: 1.1rem 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.6rem; }
.values li { font-family: var(--serif); color: var(--navy); font-size: 1.05rem; display: flex; align-items: center; gap: .5rem; }
.values li::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: var(--orange); }

/* Sections */
.section { padding: 4rem 0; }
.section-alt { background: var(--cream); }
.section-navy { background: var(--navy); color: #fff; }
.section-navy h2 { color: #fff; }
.section-head { max-width: 42rem; margin-bottom: 2rem; }
.grid-2 { display: grid; gap: 1.5rem; }
@media (min-width: 48rem) { .grid-2 { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.card h2, .card h3 { font-size: 1.45rem; }
.card .more { font-weight: 600; text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.card .more::after { content: " →"; white-space: pre; }
.split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 48rem) { .split { grid-template-columns: 2fr 3fr; gap: 3rem; } }
.photo { border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 30px rgba(18,49,93,.18); }
.cta-band { text-align: center; }
.cta-band p { font-size: 1.15rem; color: #e3e9f2; max-width: 36rem; margin: 0 auto 1.5rem; }
.cta-band .btn-row { justify-content: center; }
.prose h2 { margin-top: 2.2rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .4rem; }

/* Beliefs */
.beliefs { list-style: none; counter-reset: b; padding: 0; margin: 2rem 0 0; }
.beliefs li { counter-increment: b; position: relative; padding: 0 0 1.6rem 3.4rem; margin-bottom: 1.6rem; border-bottom: 1px solid var(--line); }
.beliefs li::before { content: counter(b); position: absolute; left: 0; top: .1rem; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--serif); font-weight: 700; display: grid; place-items: center; }
.beliefs p { margin-bottom: .5rem; }
.scripture { font-size: .95rem; color: var(--muted); margin: 0; }
.scripture b { color: var(--orange-ink); font-weight: 600; }

/* Order of service */
.order { list-style: none; padding: 0; margin: 0; border-left: 3px solid var(--orange); }
.order li { padding: 0 0 1.4rem 1.5rem; position: relative; }
.order li::before { content: ""; position: absolute; left: -.55rem; top: .45rem; width: .8rem; height: .8rem; border-radius: 50%; background: #fff; border: 3px solid var(--orange); }
.order time { font-family: var(--serif); font-weight: 700; color: var(--navy); font-size: 1.15rem; display: block; }
.order span { color: var(--ink); }

/* Leadership */
.person { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 48rem) { .person { grid-template-columns: 16rem 1fr; gap: 2.5rem; } }
.person img { border-radius: var(--radius); width: 100%; max-width: 16rem; aspect-ratio: 1; object-fit: cover; }
.person .role { color: var(--orange-ink); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; margin-bottom: .3rem; }
.deacons { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.deacons li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; font-family: var(--serif); font-size: 1.2rem; color: var(--navy); }

/* Q&A */
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 1rem; }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 3rem 1.1rem 1.25rem; font-family: var(--serif); font-size: 1.15rem; font-weight: 700; color: var(--navy); position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--orange-ink); font-family: var(--sans); }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 1.25rem 1.1rem; }
.faq .qn { color: var(--orange-ink); margin-right: .35rem; }

/* Embeds */
.embed { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.embed iframe { display: block; width: 100%; border: 0; }
.ratio { position: relative; aspect-ratio: 16 / 9; }
.ratio iframe { position: absolute; inset: 0; height: 100%; }
.map iframe { height: 360px; }
.links-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
@media (min-width: 48rem) { .links-list { grid-template-columns: repeat(2, 1fr); } }
.links-list a { display: block; height: 100%; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.35rem; color: var(--ink); }
.links-list a:hover { border-color: var(--navy); color: var(--ink); }
.links-list strong { display: block; font-family: var(--serif); color: var(--navy); font-size: 1.15rem; }
.links-list span { color: var(--muted); font-size: .97rem; }
audio { width: 100%; margin: 1rem 0; }
.note { background: var(--cream); border-left: 4px solid var(--orange); padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; }

/* Forms */
.form { display: grid; gap: 1rem; }
@media (min-width: 40rem) { .form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; } }
.form .two { display: grid; gap: 1rem; }
.form label { display: block; font-weight: 600; margin-bottom: .35rem; color: var(--navy); }
.form input, .form textarea { width: 100%; font: inherit; font-size: 1rem; padding: .75rem .9rem; border: 1px solid #c9c3b8; border-radius: 8px; background: #fff; color: var(--ink); min-height: 48px; }
.form textarea { min-height: 9rem; resize: vertical; }
.form input:focus, .form textarea:focus { border-color: var(--navy); outline: 3px solid rgba(249,99,49,.35); outline-offset: 0; }
.form button { justify-self: start; cursor: pointer; font-family: inherit; }
.req { color: var(--orange-ink); }

/* Footer */
.site-footer { background: var(--navy-dark); color: #d7dfeb; padding: 3.5rem 0 2rem; font-size: .98rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #ffd2bf; }
.site-footer h2 { color: #fff; font-size: 1.15rem; margin-bottom: .8rem; }
.foot-grid { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { display: inline-block; padding: .2rem 0; min-height: 28px; }
.site-footer address { font-style: normal; }
.foot-name { font-family: var(--serif); font-size: 1.3rem; color: #fff; margin-bottom: .5rem; }
.foot-times { color: #fff; font-weight: 600; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.25rem; padding-bottom: 1rem; font-size: .9rem; color: #b7c3d6; }
