/* The Bridge Ministry — palette carried over from the original site */
:root {
  --navy: #0f202e;
  --navy-2: #172f42;
  --coral: #ed6a5a;
  --coral-dark: #cc5242;
  --yellow: #ead94c;
  --ink: #2b2f33;
  --muted: #5f6870;
  --line: #e3e3e3;
  --bg: #ffffff;
  --bg-alt: #f5f5f5;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(15, 32, 46, .08);
  --head: "Roboto Condensed", "Arial Narrow", sans-serif;
  --body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; font: 400 17px/1.65 var(--body); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--coral-dark); }
a:hover { color: var(--navy); }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; color: var(--navy); margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.center { text-align: center; }
.center.hero-actions { justify-content: center; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--yellow); padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

.kicker { font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .18em; font-size: .85rem; color: var(--coral); margin-bottom: .4em; }
.meta { color: var(--muted); font-size: .9rem; margin-bottom: .4em; }
.signature { font-family: var(--head); font-size: 1.2rem; color: var(--navy); font-weight: 700; }
.rounded { border-radius: var(--radius); box-shadow: var(--shadow); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .4em; padding: .8em 1.6em; border-radius: 4px; border: 2px solid transparent; font: 700 .95rem var(--head); text-transform: uppercase; letter-spacing: .06em; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover { background: var(--coral-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-outline, .btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.btn-outline:hover, .btn-outline-light:hover { background: #fff; color: var(--navy); }
.btn-light { background: #fff; color: var(--coral-dark); }
.btn-light:hover { background: var(--navy); color: #fff; }
.btn-small { padding: .55em 1.1em; font-size: .82rem; }

/* Verse bar */
.verse-bar { display: flex; align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); font-size: .92rem; }
.verse-label { flex: 0 0 auto; display: flex; align-items: center; padding: .6em 1.2em; background: var(--yellow); color: var(--navy); font: 700 .85rem var(--head); text-transform: uppercase; letter-spacing: .08em; }
.verse-text { margin: 0; padding: .6em 1.2em; font-style: italic; color: var(--ink); }
.verse-text cite { font-style: normal; font-weight: 500; color: var(--coral-dark); white-space: nowrap; }

/* Header */
.site-header { background: var(--navy); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 12px rgba(0,0,0,.25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand img { width: 170px; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.site-nav ul a { display: block; padding: .5em .8em; color: rgba(255,255,255,.85); text-decoration: none; font: 700 .95rem var(--head); text-transform: uppercase; letter-spacing: .05em; border-bottom: 2px solid transparent; }
.site-nav ul a:hover { color: #fff; }
.site-nav ul a[aria-current="page"] { color: var(--coral); border-bottom-color: var(--coral); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.8rem; cursor: pointer; padding: 6px; }

.announcement { background: var(--coral); color: #fff; font-size: .95rem; }
.announcement .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6em; padding: .6em 0; text-align: center; }
.announcement a { color: #fff; font-weight: 500; }

/* Hero: the bridge stays clear; only the buttons sit on it, near the bottom */
.hero { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: flex-end; min-height: clamp(340px, 62vh, 680px); padding: 0 0 clamp(28px, 6vw, 64px); text-align: center; background: url("../images/hero-bridge-sm.jpg") center/cover no-repeat; }
@media (min-width: 900px) { .hero { background-image: url("../images/hero-bridge.jpg"); } }
/* Phones: 4:5 frame matching the vertical cut of the video (sharp band up top, buttons over the soft lower area) */
@media (max-width: 699px) { .hero { aspect-ratio: 4 / 5; min-height: 0; padding-bottom: 22px; background-image: url("../images/hero-bridge-mobile-poster.jpg"); } }
.hero-inner { width: min(1180px, 100% - 32px); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0; transition: opacity 1.2s; }
.hero-video.playing { opacity: 1; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(15,32,46,0) 55%, rgba(15,32,46,.55)); }
.hero .btn-outline-light { background: rgba(15,32,46,.35); }
.hero .btn { padding: 1em 2.1em; font-size: 1.1rem; }
@media (max-width: 480px) { .hero .btn { font-size: 1rem; padding: .95em 1.6em; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.intro { text-align: center; padding: clamp(40px, 6vw, 72px) 0 0; }
.intro .kicker { font-size: clamp(.95rem, 1.6vw, 1.1rem); }
.intro h1 { margin-bottom: .2em; font-size: clamp(2.6rem, 6vw, 4.4rem); }
.intro .lead { font: 400 clamp(1.35rem, 3vw, 2.05rem)/1.35 var(--head); color: var(--muted); max-width: 860px; margin: 0 auto; text-wrap: balance; }
.intro + .section { padding-top: clamp(40px, 6vw, 72px); }
.page-banner { color: #fff; text-align: center; padding: 70px 0 60px; background: linear-gradient(rgba(15,32,46,.78), rgba(15,32,46,.85)), url("../images/hero-bridge-sm.jpg") center 60%/cover no-repeat; }
.page-banner h1 { color: #fff; margin: 0; }

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.section-head h2 { margin: 0; }
.empty { background: var(--bg-alt); border-left: 4px solid var(--coral); padding: 18px 22px; border-radius: 4px; }
.section-alt .empty { background: #fff; }

.welcome-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.featured-sermon h3 { margin-top: 14px; margin-bottom: 4px; }

.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* Cards */
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.card-body h3 i { color: var(--coral); }
.card-actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; padding-top: 10px; }
.sermon-card .card-body p:not(.meta) { color: var(--muted); font-size: .95rem; }

.video-thumb, .video-poster, .clip-thumb { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--navy); }
.video-thumb img, .video-poster img, .clip-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.video-thumb:hover img, .video-poster:hover img, .clip:hover img { transform: scale(1.04); }
.play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; background: var(--coral); color: #fff; display: grid; place-items: center; font-size: 2rem; box-shadow: 0 4px 18px rgba(0,0,0,.35); }
.video-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16/9; background: #000; }
.video-poster { width: 100%; height: 100%; border: 0; padding: 0; cursor: pointer; }
.video-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

.clips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.clip { text-decoration: none; color: var(--ink); }
.clip-thumb { border-radius: 8px; }
.clip .play { width: 44px; height: 44px; font-size: 1.4rem; }
.clip-title { display: block; margin-top: 10px; font: 700 1.02rem/1.3 var(--head); color: var(--navy); }

/* Events */
.event-card { flex-direction: row; }
.event-date { flex: 0 0 88px; background: var(--navy); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--head); padding: 16px 0; }
.event-date .month { text-transform: uppercase; color: var(--coral); font-weight: 700; letter-spacing: .1em; }
.event-date .day { font-size: 2.2rem; font-weight: 700; line-height: 1; }
.event-meta { list-style: none; padding: 0; margin: 0 0 12px; color: var(--muted); font-size: .93rem; }
.event-meta i { color: var(--coral); margin-right: 4px; }
.event-card .btn { align-self: flex-start; margin-top: auto; }
.event-list { display: grid; gap: 22px; margin-bottom: 48px; }
.callout { background: var(--navy); color: #fff; padding: 36px; border-radius: var(--radius); }
.callout h2 { color: #fff; }

/* Ministry */
.ministry { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.ministry img { border-radius: var(--radius); box-shadow: var(--shadow); }

blockquote { margin: 1em 0 0; padding: 14px 18px; border-left: 4px solid var(--yellow); background: var(--bg-alt); font-style: italic; }
blockquote cite { display: block; margin-top: 6px; font-style: normal; font-weight: 500; color: var(--coral-dark); }

/* Blog */
.post-list { display: grid; gap: 28px; }
.post-card { flex-direction: row; }
.post-card-img { flex: 0 0 34%; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; }
.post-card h2 { font-size: 1.6rem; }
.post-card h2 a { color: var(--navy); text-decoration: none; }
.post-card .btn { align-self: flex-start; }
.post-image { border-radius: var(--radius); margin: 10px auto 28px; max-height: 640px; width: auto; }
.post-figure { margin: 28px 0; }
.post-figure img { border-radius: var(--radius); margin: 0 auto; }
.post-figure figcaption { text-align: center; color: var(--muted); font-size: .92rem; margin-top: 8px; }
.prose { font-size: 1.08rem; }
.prose h2 { margin-top: 1.4em; font-size: 1.6rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0 0 16px; }
.contact-list li { margin-bottom: 6px; }
.contact-list i { color: var(--coral); margin-right: 6px; }
.contact-list.big { font-size: 1.1rem; margin-top: 20px; }
.form-card form { display: flex; flex-direction: column; }
.form-card label { font-weight: 500; margin: 14px 0 6px; }
.form-card input[type=text], .form-card input[type=email], .form-card input[type=tel], .form-card textarea { font: inherit; padding: 12px 14px; border: 1px solid #c9ced3; border-radius: 6px; width: 100%; background: #fff; }
.form-card input:focus, .form-card textarea:focus { border-color: var(--coral); outline: 2px solid rgba(237,106,90,.25); }
[aria-invalid="true"] { border-color: #c0392b !important; }
.field-error { color: #b0291c; font-size: .9rem; margin: 6px 0 0; }
.form-card button { margin-top: 22px; align-self: flex-start; }
.form-note { color: var(--muted); font-size: .88rem; margin-top: 14px; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 400 !important; }
.type-toggle { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.type-toggle legend { font-weight: 500; margin-bottom: 8px; padding: 0; }
.type-toggle label { margin: 0 !important; }
.type-toggle input { position: absolute; opacity: 0; }
.type-toggle span { display: inline-block; padding: .55em 1.1em; border: 2px solid var(--navy); border-radius: 30px; cursor: pointer; font: 700 .9rem var(--head); text-transform: uppercase; letter-spacing: .04em; }
.type-toggle input:checked + span { background: var(--navy); color: #fff; }
.type-toggle input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { display: flex; gap: 12px; padding: 16px 18px; border-radius: 6px; margin-bottom: 18px; }
.notice i { font-size: 1.6rem; }
.notice p { margin: 2px 0 0; }
.notice.success { background: #e9f7ef; color: #1e6b41; }
.notice.error { background: #fdecea; color: #8e2216; }

.pager { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 40px; }

/* CTAs & footer */
.subscribe-cta { padding: 64px 0; color: #fff; background: linear-gradient(to right, rgba(237,106,90,.55) 40%, rgba(237,106,90,.95)), url("../images/podcast-cta-bg.jpg") center/cover; }
.subscribe-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.subscribe-inner p { font: 700 clamp(1.25rem, 2.4vw, 1.7rem)/1.3 var(--head); max-width: 680px; margin: 0; }
.prayer-cta { padding: 56px 0; background: linear-gradient(rgba(15,32,46,.75), rgba(15,32,46,.75)), url("../images/prayer-request-bg.jpg") center/cover; }
.prayer-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.prayer-cta h2 { color: #fff; margin: 0; max-width: 760px; font-size: clamp(1.3rem, 2.6vw, 1.9rem); }

.site-footer { background: var(--navy); color: rgba(255,255,255,.78); padding: 64px 0 0; font-size: .95rem; }
.site-footer h3 { color: #fff; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .08em; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--coral); }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { margin-bottom: 6px; }
.social { display: flex; gap: 10px; margin-top: 12px; }
.social a { width: 40px; height: 40px; border-radius: 50%; background: var(--navy-2); display: grid; place-items: center; font-size: 1.2rem; text-decoration: none; }
.social a:hover { background: var(--coral); color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-top: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding: 20px 0; font-size: .88rem; }
.footer-bottom p { margin: 0; }

/* Responsive */
@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); flex-direction: column; align-items: stretch; padding: 8px 16px 20px; gap: 12px; border-top: 1px solid rgba(255,255,255,.1); }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { padding: .8em .4em; border-bottom: 1px solid rgba(255,255,255,.08); }
  .site-nav ul a[aria-current="page"] { border-bottom-color: rgba(255,255,255,.08); }
  .nav-donate { justify-content: center; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .clips { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .verse-bar { flex-direction: column; }
  .verse-label { padding: .35em 16px; }
  .verse-text { padding: .5em 16px; font-size: .88rem; }
  .welcome-grid, .ministry, .contact-grid, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .post-card, .event-card { flex-direction: column; }
  .event-date { flex-direction: row; gap: 8px; padding: 10px; flex-basis: auto; }
  .event-date .day { font-size: 1.4rem; }
  .post-card-img { flex-basis: auto; aspect-ratio: 16/9; }
  .footer-grid { grid-template-columns: 1fr; }
  .callout { padding: 26px 20px; }
}
@media (max-width: 480px) {
  .clips { grid-template-columns: 1fr 1fr; gap: 14px; }
  .clip-title { font-size: .92rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
