/* Bethany Baptist Church — colours from their logo (navy + leaf green) */
:root {
  --navy: #19344c;
  --navy-dark: #0f2235;
  --green: #6ab852;
  --green-dark: #3b7429;
  --leaf: #a6d05f;
  --cream: #f7f5ef;
  --ink: #1d2a36;
  --muted: #4f5d69;
  --line: #dfe3e6;
  --radius: 14px;
  --slab: Rockwell, "Roboto Slab", "Museo Slab", "Zilla Slab", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "PT Sans", Arial, sans-serif;
}
*, *::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(--green-dark); text-underline-offset: 2px; }
a:hover { color: var(--navy); }
h1, h2, h3 { font-family: var(--slab); color: var(--navy); line-height: 1.2; font-weight: 700; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 6vw, 3.3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--navy); }
.brand img { width: 48px; height: 48px; }
.brand-name { font-family: var(--slab); font-weight: 700; font-size: 1.12rem; line-height: 1.15; display: block; }
.brand-tag { font-size: .82rem; color: var(--green-dark); display: block; font-style: italic; }
.nav-toggle { display: inline-flex; align-items: center; gap: .45rem; background: var(--navy); color: #fff; border: 0; border-radius: 999px; padding: .6rem 1rem; font: 600 .95rem var(--sans); cursor: pointer; min-height: 44px; }
.nav-toggle svg { width: 18px; height: 18px; }
.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(15,34,53,.08); }
.site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: .5rem 1.25rem 1rem; }
.site-nav a { display: block; padding: .75rem .25rem; text-decoration: none; color: var(--navy); font-weight: 600; border-bottom: 1px solid var(--line); }
.site-nav a[aria-current="page"] { color: var(--green-dark); }
.site-nav .nav-give a { border: 0; margin-top: .75rem; text-align: center; }
@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; position: static; border: 0; box-shadow: none; background: none; }
  .site-nav ul { display: flex; align-items: center; gap: .2rem; padding: 0; }
  .site-nav a { border: 0; padding: .5rem .7rem; font-size: .97rem; border-radius: 8px; }
  .site-nav a:hover { background: var(--cream); }
  .site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--green); border-radius: 0; }
  .site-nav .nav-give a { margin: 0 0 0 .5rem; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.4rem; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; min-height: 48px; line-height: 1.2; cursor: pointer; font-size: 1rem; font-family: var(--sans); }
.btn-green { background: var(--green); color: var(--navy-dark); }
.btn-green:hover { background: var(--leaf); color: var(--navy-dark); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.75); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-line { border-color: var(--navy); color: var(--navy); }
.btn-line:hover { background: var(--navy); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1200px 500px at 85% 10%, #24496a 0%, transparent 60%), linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%); padding: clamp(3.5rem, 10vw, 7rem) 0 clamp(3rem, 8vw, 5.5rem); }
.hero::after { content: ""; position: absolute; right: -90px; bottom: -90px; width: 380px; height: 380px; background: url(mark-light.svg) center/contain no-repeat; opacity: .13; pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: #fff; margin-bottom: .2em; }
.hero .tagline { font-family: var(--slab); color: var(--leaf); font-size: clamp(1.15rem, 3vw, 1.5rem); font-style: italic; margin-bottom: 1.1rem; }
.hero .lead { max-width: 40rem; font-size: 1.1rem; color: #e6edf3; margin-bottom: 1.8rem; }
.page-hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%); color: #fff; padding: clamp(2.5rem, 7vw, 4.5rem) 0; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -60px; top: -40px; width: 260px; height: 260px; background: url(mark-light.svg) center/contain no-repeat; opacity: .12; }
.page-hero h1 { color: #fff; margin: 0; position: relative; }
.page-hero p { color: #d9e3ec; margin: .6rem 0 0; max-width: 40rem; font-size: 1.08rem; position: relative; }
.eyebrow { display: block; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--leaf); margin-bottom: .5rem; }
.eyebrow.dark { color: var(--green-dark); }

/* Sections */
section { padding: clamp(3rem, 8vw, 5rem) 0; }
.tint { background: var(--cream); }
.section-head { max-width: 44rem; margin-bottom: 2rem; }
.section-head p { color: var(--muted); }
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.tint .card { border-color: #e7e3d8; }
.card h3 { margin-bottom: .35rem; }
.card p:last-child { margin-bottom: 0; }
.card .more { font-weight: 700; text-decoration: none; }
.card .more::after { content: " →"; }
.icon { width: 46px; height: 46px; border-radius: 12px; background: #eaf5e4; color: var(--green-dark); display: grid; place-items: center; margin-bottom: 1rem; }
.icon svg { width: 24px; height: 24px; }

/* Latest sermon */
.latest { background: var(--navy); color: #fff; border-radius: calc(var(--radius) + 4px); padding: clamp(1.5rem, 4vw, 2.5rem); display: grid; gap: 1.25rem; }
.latest h2, .latest h3 { color: #fff; }
.latest .meta { color: var(--leaf); font-weight: 700; font-size: .95rem; margin-bottom: .3rem; }
.latest audio { width: 100%; }
@media (min-width: 860px) { .latest { grid-template-columns: 1.1fr 1fr; align-items: center; } }

/* Gospel steps */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { background: var(--cream); border-radius: var(--radius); padding: 1.4rem; border-top: 4px solid var(--green); }
.steps strong { display: block; font-family: var(--slab); color: var(--navy); font-size: 1.2rem; margin-bottom: .3rem; }
.steps span { color: var(--muted); font-size: .97rem; }

/* People */
.person { display: grid; gap: 1.1rem; align-items: start; }
.person + .person { margin-top: 1.25rem; }
@media (min-width: 640px) { .person { grid-template-columns: 96px 1fr; } }
.monogram { width: 96px; height: 96px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font: 700 1.9rem var(--slab); border: 4px solid #eaf5e4; }
.role { color: var(--green-dark); font-weight: 700; margin: -.2rem 0 .6rem; }
.person h3 { font-size: 1.45rem; margin-bottom: .25rem; }
.deacons { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .deacons { grid-template-columns: repeat(2, 1fr); } }
.deacons .monogram { width: 64px; height: 64px; font-size: 1.3rem; border-width: 3px; }
.deacons .person { grid-template-columns: 64px 1fr; }

/* Prose (beliefs, membership) */
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; color: var(--navy); }
.prose ol, .prose ul { padding-left: 1.3rem; margin: 0 0 1.2rem; }
.prose li { margin-bottom: .6rem; }
.prose .intro { font-size: 1.15rem; font-family: var(--slab); color: var(--navy); border-left: 4px solid var(--green); padding-left: 1rem; }
.prose .note { color: var(--muted); font-size: .95rem; }
.bfm { display: grid; gap: .9rem; }
@media (min-width: 760px) { .bfm { grid-template-columns: repeat(2, 1fr); } }
.bfm div { background: var(--cream); border-radius: 12px; padding: 1.1rem 1.25rem; }
.bfm h3 { margin: 0 0 .35rem; font-size: 1.1rem; }
.bfm p { margin: 0; font-size: .98rem; }
.toc { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.toc a { display: inline-flex; align-items: center; min-height: 44px; padding: .45rem 1rem; border-radius: 999px; background: #eaf5e4; color: var(--navy); text-decoration: none; font-weight: 600; font-size: .95rem; }

/* Schedule */
.schedule { list-style: none; margin: 0; padding: 0; }
.schedule li { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.schedule li:last-child { border-bottom: 0; }
.schedule .when { font-weight: 700; color: var(--navy); white-space: nowrap; }
.day { font-family: var(--slab); color: var(--green-dark); font-size: 1.15rem; margin: 1.2rem 0 .2rem; }
.day:first-child { margin-top: 0; }

/* Sermons archive */
.sermon-list { list-style: none; margin: 0; padding: 0; }
.sermon-list li { display: grid; gap: .25rem .9rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 720px) { .sermon-list li { grid-template-columns: 110px 1fr auto; align-items: center; } }
.sermon-list time { color: var(--muted); font-size: .92rem; }
.sermon-list .t { font-weight: 600; color: var(--navy); }
.sermon-list .links { display: flex; gap: .5rem; }
.sermon-list .links a { font-size: .92rem; font-weight: 700; text-decoration: none; padding: .35rem .8rem; border-radius: 999px; border: 1.5px solid var(--line); min-height: 40px; min-width: 64px; justify-content: center; display: inline-flex; align-items: center; }
.sermon-list .links a:hover { border-color: var(--navy); }
.recent { display: grid; gap: 1rem; }
.recent .card audio, .latest audio { display: block; width: 100%; height: 54px; margin-top: .6rem; }
.recent .meta { color: var(--green-dark); font-weight: 700; font-size: .92rem; margin-bottom: .2rem; }
.year { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 1.25rem; background: #fff; padding: 1.1rem 1.25rem .4rem; scroll-margin-top: 90px; }
.year h3 { margin: 0 0 .2rem; font-size: 1.3rem; }
.year h3 span { font: 400 .9rem var(--sans); color: var(--muted); margin-left: .5rem; }
.sermon-list li:last-child { border-bottom: 0; }

/* Forms */
.form { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; } }
.form label { display: block; font-weight: 600; color: var(--navy); margin-bottom: .3rem; font-size: .95rem; }
.form input, .form textarea, .form select { width: 100%; font: inherit; padding: .75rem .9rem; border: 1.5px solid #c9d0d6; border-radius: 10px; background: #fff; color: var(--ink); min-height: 48px; }
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form textarea:focus { border-color: var(--green-dark); outline: 2px solid #cfe8c4; }
.form .req { color: #a33; }

/* Footer */
.site-footer { background: var(--navy-dark); color: #cbd6e0; padding: 3.5rem 0 1.5rem; font-size: .97rem; }
.site-footer a { color: #fff; }
.site-footer h2 { color: #fff; font-size: 1.1rem; margin-bottom: .8rem; }
.foot-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.foot-brand img { width: 56px; height: 56px; border-radius: 12px; margin-bottom: .8rem; }
.foot-brand .name { font: 700 1.25rem var(--slab); color: #fff; margin: 0; }
.foot-brand .tag { color: var(--leaf); font-style: italic; margin: 0 0 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer address { font-style: normal; margin-bottom: .8rem; }
.foot-times li { display: flex; justify-content: space-between; gap: .8rem; border-bottom: 1px solid rgba(255,255,255,.08); padding-bottom: .4rem; }
.foot-times li span:last-child { color: #fff; white-space: nowrap; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; font-size: .9rem; }
.foot-bottom p { margin: 0; }
