/* Grace Baptist Church, Marshall MI */
:root {
  --navy: #211c59;
  --navy-dark: #16123d;
  --teal: #2a6878;
  --teal-light: #4f97aa;
  --cream: #f7f4ee;
  --sand: #ece6da;
  --ink: #26232f;
  --muted: #5b5866;
  --line: #ddd6c8;
  --white: #fff;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(33, 28, 89, .09);
  --head: "Montserrat", "Avenir Next", "Avenir", "Segoe UI", system-ui, -apple-system, sans-serif;
  --body: "Raleway", system-ui, -apple-system, "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; } * { transition: none !important; } }
body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--white); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 2px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--head); color: var(--navy); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5.5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; margin: 0 0 1em; }
li { margin-bottom: .35em; }
:focus-visible { outline: 3px solid var(--teal-light); outline-offset: 2px; }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: .5rem; top: .5rem; }
.eyebrow { font-family: var(--head); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: .5rem; }
.lede { font-size: 1.2rem; color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 46px; padding: .7rem 1.4rem; border-radius: 999px; border: 2px solid var(--teal); background: var(--teal); color: #fff; font-family: var(--head); font-weight: 600; font-size: .95rem; letter-spacing: .03em; text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.btn:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: transparent; color: #fff; border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }

/* 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: 72px; }
.brand { display: block; flex-shrink: 0; }
.brand img { width: 230px; height: auto; }
.nav-toggle { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .5rem .9rem; border: 2px solid var(--navy); border-radius: 999px; background: #fff; color: var(--navy); font-family: var(--head); font-weight: 600; font-size: .9rem; cursor: pointer; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; content: ""; }
.nav-toggle .bars::before { position: absolute; top: -6px; }
.nav-toggle .bars::after { position: absolute; 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); box-shadow: var(--shadow); max-height: calc(100vh - 72px); overflow-y: auto; padding: .5rem 1.25rem 1.5rem; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav li { margin: 0; }
.site-nav a { display: block; text-decoration: none; color: var(--ink); padding: .55rem 0; min-height: 44px; }
.site-nav a[aria-current="page"] { color: var(--teal); font-weight: 600; }
.nav-group > a { font-family: var(--head); font-weight: 700; color: var(--navy); font-size: 1.05rem; border-top: 1px solid var(--line); padding-top: .8rem; }
.nav-group:first-child > a { border-top: 0; }
.sub a { padding-left: 1rem; font-size: .98rem; color: var(--muted); }
.nav-cta { margin-top: 1rem; }
.nav-cta .btn { width: 100%; color: #fff; }

@media (min-width: 1080px) {
  .nav-toggle { display: none; }
  .brand img { width: 260px; }
  .site-nav, .site-nav.open { display: flex; align-items: center; gap: .25rem; position: static; padding: 0; box-shadow: none; border: 0; max-height: none; overflow: visible; background: none; }
  .site-nav > ul { display: flex; align-items: center; gap: .1rem; }
  .nav-group { position: relative; }
  .nav-group > a, .nav-group:first-child > a { border: 0; padding: .6rem .7rem; font-size: .92rem; font-weight: 600; min-height: 0; border-radius: 6px; }
  .nav-group > a:hover, .nav-group:focus-within > a { background: var(--cream); }
  .nav-group.has-sub > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: .4rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); opacity: .6; }
  .sub { position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: .5rem; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; }
  .nav-group:hover .sub, .nav-group:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
  .sub a { padding: .5rem .75rem; min-height: 0; border-radius: 6px; font-size: .93rem; color: var(--ink); }
  .sub a:hover { background: var(--cream); color: var(--navy); }
  .nav-cta { margin: 0 0 0 .5rem; }
  .nav-cta .btn { width: auto; min-height: 42px; padding: .5rem 1.1rem; font-size: .88rem; }
}

/* Hero (home) */
.hero { position: relative; min-height: min(78vh, 680px); display: grid; align-items: end; color: #fff; background: var(--navy-dark); overflow: hidden; }
.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(22, 18, 61, .25) 0%, rgba(22, 18, 61, .55) 45%, rgba(22, 18, 61, .88) 100%); }
.hero-content { position: relative; z-index: 1; padding: 6rem 0 3.5rem; }
.hero h1 { color: #fff; max-width: 15ch; margin-bottom: .4em; }
.hero p { font-size: 1.2rem; max-width: 40rem; color: rgba(255, 255, 255, .92); }
.hero .eyebrow { color: #cfe6ec; }

/* Page hero */
.page-hero { position: relative; color: #fff; background: var(--navy-dark); overflow: hidden; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22, 18, 61, .9) 0%, rgba(22, 18, 61, .7) 55%, rgba(22, 18, 61, .45) 100%); }
.page-hero .wrap { position: relative; z-index: 1; padding: 4.5rem 0 3.5rem; }
.page-hero h1 { color: #fff; margin-bottom: .3em; max-width: 20ch; }
.page-hero .lede { color: rgba(255, 255, 255, .9); margin: 0; max-width: 38rem; }
.page-hero .eyebrow { color: #cfe6ec; }
@media (min-width: 800px) { .page-hero .wrap { padding: 6.5rem 0 5rem; } }

/* Notice bar */
.notice { background: var(--sand); border-bottom: 1px solid var(--line); }
.notice .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem 1.25rem; padding: 1rem 0; text-align: center; }
.notice p { margin: 0; font-weight: 600; color: var(--navy); }

/* Sections */
.section { padding: 4rem 0; }
.section-alt { background: var(--cream); }
.section-navy { background: var(--navy); color: #fff; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy a:not(.btn) { color: #cfe6ec; }
.section-head { max-width: 680px; margin-bottom: 2.25rem; }
.section-head.center { text-align: center; margin-inline: auto; }
@media (min-width: 800px) { .section { padding: 5.5rem 0; } }

.split { display: grid; gap: 2rem; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: 3.5rem; } .split.flip > :first-child { order: 2; } }

.prose { max-width: 760px; }
.prose h2 { margin-top: 2rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5rem; }

/* Cards */
.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(0, 0, 0, .03); transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); }
.card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.card-body { padding: 1.25rem 1.35rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); font-size: .98rem; }
.card-body .more { margin-top: auto; font-family: var(--head); font-weight: 600; font-size: .92rem; text-decoration: none; }
.card-body .more::after { content: " →"; }
a.card { text-decoration: none; color: inherit; }
a.card:hover { transform: translateY(-2px); }
a.card:hover h3 { color: var(--teal); }

.tiles { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.tile { background: #fff; border-radius: var(--radius); padding: 1.4rem; border-top: 4px solid var(--teal); box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.section-alt .tile { background: #fff; }
.tile h3 { margin-bottom: .4rem; }
.tile p { margin: 0; color: var(--muted); font-size: .98rem; }
.tile .when { font-family: var(--head); font-weight: 600; color: var(--teal); font-size: .9rem; margin-bottom: .35rem; }

.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 1.9rem; margin-bottom: .7rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .35em; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--teal); }
.checklist li::after { content: ""; position: absolute; left: .38rem; top: .55em; width: .3rem; height: .55rem; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 3rem; margin-bottom: 1rem; min-height: 2.2rem; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--head); font-weight: 700; display: grid; place-items: center; }

.quote { border-left: 4px solid var(--teal); padding: .25rem 0 .25rem 1.25rem; margin: 1.5rem 0; font-size: 1.15rem; font-style: italic; color: var(--navy); }

.callout { background: var(--cream); border-radius: var(--radius); padding: 1.5rem 1.6rem; border: 1px solid var(--line); }
.callout h2, .callout h3 { margin-bottom: .4rem; }
.callout p:last-child { margin-bottom: 0; }

.docs { list-style: none; padding: 0; display: grid; gap: .75rem; }
.docs li { margin: 0; }
.docs a { display: flex; gap: 1rem; align-items: center; justify-content: space-between; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.1rem; text-decoration: none; color: var(--ink); }
.docs a:hover { border-color: var(--teal); }
.docs a span:last-child { flex-shrink: 0; font-family: var(--head); font-size: .85rem; font-weight: 600; color: var(--teal); }

.schedule { list-style: none; padding: 0; margin: 0; }
.schedule li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.schedule li:last-child { border-bottom: 0; }
.schedule .time { font-family: var(--head); font-weight: 700; color: var(--teal); }
.schedule h3 { margin-bottom: .25rem; }
.schedule p { margin: 0; color: var(--muted); }
@media (max-width: 520px) { .schedule li { grid-template-columns: 1fr; gap: .25rem; } }

.photo-row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 2rem; }
.photo-row img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

.embed { position: relative; width: 100%; border-radius: var(--radius); overflow: hidden; background: var(--sand); border: 1px solid var(--line); }
.embed iframe { display: block; width: 100%; border: 0; }
.embed.video { aspect-ratio: 16 / 9; }
.embed.video iframe { height: 100%; }
.embed.map iframe { height: 380px; }
.embed.sermons iframe { height: 900px; }

.speaker { display: grid; gap: 1.25rem; align-items: start; }
.speaker img { border-radius: var(--radius); width: 160px; }
@media (min-width: 640px) { .speaker { grid-template-columns: 160px 1fr; } }

.agenda { list-style: none; padding: 0; margin: 0 0 1rem; }
.agenda li { display: grid; grid-template-columns: 6.5rem 1fr; gap: .75rem; padding: .5rem 0; border-bottom: 1px dashed var(--line); margin: 0; }
.agenda .time { font-family: var(--head); font-weight: 600; color: var(--teal); font-size: .95rem; }

.logo-inline { max-width: 260px; margin: 0 0 1.25rem; }
.partner-logo { max-width: 300px; margin-top: 1rem; }

/* Forms */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
@media (min-width: 640px) { .form-card { padding: 2rem; } }
.form-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label, fieldset legend { font-family: var(--head); font-weight: 600; font-size: .92rem; color: var(--navy); }
.req { color: #b42318; }
input[type=text], input[type=email], input[type=tel], textarea, select { width: 100%; font: inherit; font-size: 1rem; padding: .75rem .9rem; border: 1px solid #bdb6a6; border-radius: 8px; background: #fff; color: var(--ink); min-height: 48px; }
input:focus, textarea:focus, select:focus { outline: 3px solid rgba(47, 115, 133, .35); border-color: var(--teal); }
textarea { min-height: 140px; resize: vertical; }
fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 1rem 1.1rem 1.1rem; margin: 0; }
.choices { display: grid; gap: .35rem .9rem; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin-top: .5rem; }
.choices label { display: flex; align-items: center; gap: .55rem; font-size: .97rem; min-height: 32px; cursor: pointer; }
.choices input { width: 20px; height: 20px; accent-color: var(--teal); flex-shrink: 0; }
.form-note { font-size: .9rem; color: var(--muted); }
.form-card .btn { margin-top: 1.25rem; }
[data-hp-form-status] { font-weight: 600; color: var(--teal); }

/* Footer */
.site-footer { background: var(--navy-dark); color: rgba(255, 255, 255, .85); padding: 3.5rem 0 1.5rem; font-size: .98rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #cfe6ec; }
.site-footer h2 { color: #fff; font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .9rem; }
.footer-grid { display: grid; gap: 2.25rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer-name { font-family: var(--head); font-weight: 700; font-size: 1.3rem; color: #fff; margin-bottom: .2rem; }
.footer-tag { font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: #cfe6ec; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer li a { display: inline-block; padding: .1rem 0; }
.footer-times li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid rgba(255, 255, 255, .12); padding-bottom: .45rem; }
.footer-times span:last-child { color: #fff; font-weight: 600; white-space: nowrap; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .88rem; color: rgba(255, 255, 255, .7); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }
.site-footer address { font-style: normal; }
.footer-bottom a { display: inline-block; padding: .25rem 0; min-height: 24px; }
.site-footer address a, .site-footer p a { display: inline-block; padding: .15rem 0; }
.notice a { display: inline-block; padding: .25rem 0; font-weight: 600; }

.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
