/* Briarwood Baptist Church — colours taken from their logo (forest green + walnut brown) */
:root {
  --green: #173d22;
  --green-dark: #0e2716;
  --green-soft: #eef3ec;
  --brown: #37240a;
  --brown-soft: #6b4e2a;
  --cream: #faf7f3;
  --blush: #efe7e2;
  --line: #dcd2c8;
  --text: #2b2118;
  --muted: #5e5246;
  --white: #fff;
  --serif: "Domine", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  --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(--text); background: var(--cream); }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 2px; }
a:hover { color: var(--brown); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--green-dark); line-height: 1.25; font-weight: 700; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1.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: -9999px; top: 0; background: var(--green); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: .5rem; top: .5rem; }
:focus-visible { outline: 3px solid #c49a3a; outline-offset: 2px; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; }
.brand { display: flex; flex-direction: column; text-decoration: none; min-width: 0; }
.brand img { width: 210px; height: auto; }
.tagline { font-family: var(--serif); font-style: italic; color: var(--green); font-size: .9rem; margin-top: .25rem; }
.head-actions { display: flex; align-items: center; gap: .6rem; }
.menu-btn { display: inline-flex; align-items: center; gap: .45rem; background: var(--green-soft); color: var(--green-dark); border: 1px solid #cfdccb; border-radius: 8px; padding: .55rem .85rem; font: 600 1rem var(--sans); cursor: pointer; min-height: 44px; }
.menu-btn svg { width: 20px; height: 20px; }
.nav { display: none; border-top: 1px solid var(--line); background: var(--green-soft); }
.nav.open { display: block; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > .wrap > ul { padding: .5rem 0 1rem; }
.nav a, .nav .group-btn { display: block; width: 100%; text-align: left; padding: .7rem .25rem; color: var(--green-dark); text-decoration: none; font: 500 1.05rem var(--sans); background: none; border: 0; cursor: pointer; }
.nav a:hover, .nav .group-btn:hover { color: var(--brown); }
.nav a[aria-current="page"] { font-weight: 700; color: var(--brown); }
.nav .group-btn { display: flex; justify-content: space-between; align-items: center; }
.nav .group-btn::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: 0 .5rem; transition: transform .15s; }
.nav .group-btn[aria-expanded="true"]::after { transform: rotate(-135deg); }
.nav .sub { display: none; padding-left: 1rem; border-left: 2px solid #cfdccb; margin-left: .3rem; }
.nav .sub.open { display: block; }
.nav .sub a { font-size: 1rem; padding: .55rem .25rem; }
.nav .nav-cta { display: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 46px; padding: .7rem 1.3rem; border-radius: 8px; background: var(--green); color: #fff; font: 600 1rem var(--sans); text-decoration: none; border: 2px solid var(--green); cursor: pointer; }
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn.light { background: #fff; color: var(--green-dark); border-color: #fff; }
.btn.light:hover { background: var(--green-soft); color: var(--green-dark); }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.85); }
.btn.ghost:hover { background: rgba(255,255,255,.15); color: #fff; }
.btn.outline { background: transparent; color: var(--green); }
.btn.outline:hover { background: var(--green); color: #fff; }
.head-cta { display: none; }

@media (min-width: 980px) {
  .brand img { width: 260px; }
  .tagline { font-size: 1rem; }
  .menu-btn { display: none; }
  .head-cta { display: inline-flex; }
  .nav { display: block; }
  .nav > .wrap > ul { display: flex; justify-content: center; gap: .25rem; padding: 0; }
  .nav > .wrap > ul > li { position: relative; }
  .nav a, .nav .group-btn { padding: .75rem 1rem; font-size: 1rem; width: auto; }
  .nav .group-btn { gap: .2rem; }
  .nav .sub { position: absolute; top: 100%; left: 0; min-width: 260px; background: #fff; border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 10px 24px rgba(30,20,10,.12); padding: .4rem 0; margin: 0; }
  .nav li:hover > .sub, .nav li:focus-within > .sub { display: block; }
  .nav .sub a { padding: .55rem 1.1rem; }
  .nav .nav-mobile-cta { display: none; }
}

/* Hero */
.hero { position: relative; color: #fff; background: var(--green-dark); overflow: hidden; }
.hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,22,12,.55), rgba(10,22,12,.62) 60%, rgba(10,22,12,.78)); }
.hero .wrap { position: relative; z-index: 1; padding: 5.5rem 0 5rem; text-align: center; }
.hero h1 { color: #fff; margin-bottom: .3em; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.hero .sub { font-family: var(--serif); font-size: clamp(1.2rem, 3vw, 1.6rem); margin: 0 0 .5em; }
.hero .pillars { letter-spacing: .06em; font-size: 1.05rem; margin-bottom: 1.8rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
@media (min-width: 900px) { .hero .wrap { padding: 8rem 0 7.5rem; } }

.page-hero { background: var(--green-dark); color: #fff; position: relative; overflow: hidden; }
.page-hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.page-hero .wrap { position: relative; padding: 3.4rem 0 3rem; }
.page-hero h1 { color: #fff; margin-bottom: .2em; }
.page-hero p { margin: 0; font-family: var(--serif); font-size: 1.1rem; color: #e9efe6; }
.crumbs { font-size: .95rem; margin-bottom: .6rem; }
.crumbs a { color: #dfe9da; }

/* Sections */
section { padding: 3.5rem 0; }
@media (min-width: 900px) { section { padding: 5rem 0; } }
.alt { background: var(--blush); }
.white { background: #fff; }
.green { background: var(--green); color: #f2f6f0; }
.green h2, .green h3 { color: #fff; }
.green a { color: #fff; }
.eyebrow { font: 700 .85rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brown-soft); margin-bottom: .5rem; }
.green .eyebrow { color: #c9dcc4; }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); }
.verse { font-family: var(--serif); font-size: clamp(1.3rem, 3vw, 1.75rem); color: var(--green-dark); line-height: 1.4; margin-bottom: .4rem; }
.green .verse { color: #fff; }
.ref { color: var(--muted); }
.green .ref { color: #d6e4d1; }

.split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 3.5rem; } .split.wide-left { grid-template-columns: 1.2fr 1fr; } }
.photo { border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 30px rgba(30,20,10,.14); }
.photo img { width: 100%; height: 100%; object-fit: cover; }

.video-frame { border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: 0 12px 34px rgba(0,0,0,.22); aspect-ratio: 16 / 9; }
.video-frame video, .video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Vision list */
.vision { display: grid; gap: .9rem; margin: 1.5rem 0 2rem; padding: 0; list-style: none; }
.vision li { background: #fff; border-left: 4px solid var(--green); border-radius: 6px; padding: .9rem 1.1rem; }
.vision strong { color: var(--green-dark); }
.ways { columns: 1; column-gap: 2.5rem; padding-left: 1.2rem; }
.ways li { margin-bottom: .6rem; break-inside: avoid; }
@media (min-width: 900px) { .ways { columns: 2; } .vision { grid-template-columns: repeat(3, 1fr); } }

/* Cards */
.cards { display: grid; gap: 1.4rem; grid-template-columns: 1fr; margin-top: 2rem; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 18px rgba(30,20,10,.08); display: flex; flex-direction: column; text-decoration: none; color: var(--text); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(30,20,10,.14); color: var(--text); }
@media (prefers-reduced-motion: reduce) { .card, .card:hover { transition: none; transform: none; } }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card .body { padding: 1.1rem 1.25rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin-bottom: .35rem; }
.card p { color: var(--muted); font-size: 1rem; margin-bottom: .8rem; }
.card .more { margin-top: auto; font-weight: 700; color: var(--green); }

/* Testimonial */
.quote { max-width: 820px; margin: 0 auto; text-align: center; }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.15rem, 2.6vw, 1.45rem); line-height: 1.55; }
.quote blockquote::before { content: "\201C"; display: block; font-size: 4rem; line-height: .6; color: #a9c4a1; margin-bottom: .6rem; }
.quote cite { display: block; margin-top: 1rem; font-style: normal; font-weight: 700; letter-spacing: .04em; }

/* Long-form text pages */
.prose { background: #fff; border-radius: var(--radius); padding: 1.6rem 1.3rem; box-shadow: 0 4px 18px rgba(30,20,10,.06); }
@media (min-width: 700px) { .prose { padding: 2.6rem 3rem; } }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.5em; color: var(--green); }
.prose h4 { margin-top: 1.3em; color: var(--brown); }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-bottom: .45rem; }
.prose a { overflow-wrap: anywhere; }
.toc { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 1.6rem; }
.toc a { display: inline-flex; align-items: center; min-height: 40px; padding: .4rem .9rem; border-radius: 999px; background: var(--green-soft); text-decoration: none; font-weight: 600; font-size: .95rem; }
.to-top { display: inline-block; margin-top: 1rem; font-weight: 600; }
.solas, .tulip { list-style: none; padding: 0 !important; display: grid; gap: .5rem; }
.pill-list { list-style: none; padding: 0; display: grid; gap: .6rem; }
.pill-list li { background: var(--green-soft); border-radius: 8px; padding: .7rem 1rem; }

/* Beliefs hub / ministries */
.grid-2 { display: grid; gap: 1.4rem; }
@media (min-width: 800px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.panel { background: #fff; border-radius: var(--radius); padding: 1.5rem 1.4rem; box-shadow: 0 4px 18px rgba(30,20,10,.06); }
.panel h2, .panel h3 { margin-top: 0; }
.ministry { display: grid; gap: 1.5rem; align-items: start; padding: 2.2rem 0; border-bottom: 1px solid var(--line); }
.ministry:last-child { border-bottom: 0; }
@media (min-width: 860px) { .ministry.has-photo { grid-template-columns: 1.4fr 1fr; gap: 3rem; } }
.ministry h2 { font-size: 1.6rem; }
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); margin-top: 1.5rem; }
@media (min-width: 860px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery figure { margin: 0; }
.gallery img { border-radius: 8px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.gallery figcaption { font-size: .9rem; color: var(--muted); margin-top: .35rem; }

/* Leadership */
.leaders { display: grid; gap: 1.6rem; }
@media (min-width: 760px) { .leaders { grid-template-columns: 1fr 1fr; } }
.leader { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 18px rgba(30,20,10,.08); text-align: center; padding-bottom: 1.4rem; }
.leader img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.leader h2 { font-size: 1.5rem; margin: 1.1rem 0 .2rem; }
.leader p { color: var(--muted); margin: 0 1rem; }

/* Associations */
.assoc { display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: center; margin-top: 1.5rem; }
.assoc a { display: block; background: #fff; border-radius: 8px; padding: .6rem; box-shadow: 0 3px 12px rgba(30,20,10,.08); }
.assoc img { width: 200px; height: auto; }

/* Sermons */
.sermons { display: grid; gap: 2rem; }
@media (min-width: 900px) { .sermons { grid-template-columns: 1fr 1fr; } }
.sermon h2 { font-size: 1.35rem; margin: 1rem 0 .2rem; }
.sermon .date { color: var(--muted); }
.yt { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: #000; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.yt span { position: absolute; inset: 0; display: grid; place-items: center; }
.yt span::before { content: ""; width: 74px; height: 52px; border-radius: 14px; background: rgba(23,61,34,.92); }
.yt span::after { content: ""; position: absolute; border-style: solid; border-width: 11px 0 11px 19px; border-color: transparent transparent transparent #fff; margin-left: 5px; }
.yt:hover span::before { background: #c4302b; }

/* 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; margin-bottom: .3rem; color: var(--green-dark); }
.form .req { color: #8a2c1a; }
.form input, .form textarea, .form select { width: 100%; font: inherit; font-size: 1rem; padding: .75rem .85rem; border: 1px solid #c9bdb0; border-radius: 8px; background: #fff; color: var(--text); min-height: 48px; }
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form textarea:focus { border-color: var(--green); outline: 3px solid rgba(23,61,34,.2); }
.form .note { font-size: .95rem; color: var(--muted); }

/* Footer */
.site-footer { background: var(--green-dark); color: #dfe9da; padding: 3.2rem 0 1.5rem; font-size: 1rem; }
.site-footer a { color: #fff; }
.site-footer h2 { color: #fff; font-size: 1.15rem; margin-bottom: .7rem; font-family: var(--serif); }
.foot-grid { display: grid; gap: 2.2rem; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.foot-brand img { width: 220px; background: #fff; padding: .7rem .9rem; border-radius: 8px; }
.foot-brand p { margin-top: .8rem; font-family: var(--serif); font-style: italic; }
.times { list-style: none; padding: 0; margin: 0 0 1rem; }
.times li { padding: .2rem 0; }
.times .day { display: block; font-weight: 700; color: #fff; margin-top: .6rem; }
.times .day:first-child { margin-top: 0; }
.foot-phone { font-size: 1.3rem; font-weight: 700; text-decoration: none; display: inline-block; padding: .2rem 0; }
.foot-links { list-style: none; padding: 0; margin: .4rem 0 0; }
.foot-links li { margin: .1rem 0; }
.foot-links a { display: inline-block; padding: .3rem 0; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 2.5rem; padding-top: 1.2rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; font-size: .92rem; color: #bfd0b9; }
.foot-bottom nav a { margin-right: 1rem; display: inline-block; padding: .25rem 0; color: #dfe9da; }
.site-footer .hp-badge, .site-footer [class*="hp-badge"] { margin-top: 1rem; }
