/* Belview Baptist Church: the public website (belview.church). The members' app is separate (app.belview.church).
   Written for visitors and members from 13 to 80: large type in rem (follows the phone's text size), labeled buttons
   at least 48px, high contrast, clear of the notch and home bar. */

:root {
  --navy: #12263f;
  --navy-2: #1b3553;
  --ink: #16202c;          /* body text on cream: 15:1 */
  --sub: #475467;          /* secondary text on cream: 7.4:1 */
  --cream: #fbf8f2;
  --paper: #ffffff;
  --line: #e4ddd0;
  --gold: #f2c46d;         /* on navy */
  --gold-ink: #7a4f0c;     /* gold for text on cream: 7:1 */
  --radius: 18px;
}

html { font-size: 106.25%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@supports (font: -apple-system-body) { html { font: -apple-system-body; } }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { overflow-x: hidden; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.125rem; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
h1, h2, h3 { font-family: Fraunces, Georgia, "Times New Roman", serif; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; margin: 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: calc(env(safe-area-inset-left) + 20px); padding-right: calc(env(safe-area-inset-right) + 20px); }


/* ---------- top bar ---------- */
.bar { position: sticky; top: 0; z-index: 10; background: rgba(18, 38, 63, 0.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff; }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding-top: 6px; padding-bottom: 6px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-height: 48px; }
.brand img { width: min(2.4rem, 44px); height: auto; }
.brand b { font-family: Fraunces, Georgia, serif; font-size: min(1.2rem, 26px); line-height: 1.1; }
.bar nav { display: flex; gap: 4px; }
.bar nav a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 12px; text-decoration: none; font-weight: 600; font-size: 1rem; }
.bar nav a:hover { background: rgba(255, 255, 255, 0.1); }
.bar nav a.app { background: var(--gold); color: #1d1405; }
@media (max-width: 760px) { .bar nav a:not(.app) { display: none; } }

/* ---------- welcome ---------- */
.hero { position: relative; color: #fff; background: linear-gradient(180deg, rgba(10, 22, 38, 0.55), rgba(10, 22, 38, 0.82)), url("images/church-window.jpg") center 35% / cover no-repeat, var(--navy); }
.hero .wrap { padding-top: clamp(56px, 12vw, 120px); padding-bottom: clamp(48px, 9vw, 96px); }
.hero p.kicker { margin: 0 0 0.5rem; color: var(--gold); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.95rem; }
.hero h1 { font-size: min(3.2rem, 1.4rem + 7vw); max-width: 14ch; }
.hero .lead { font-size: 1.3rem; max-width: 36ch; margin: 1rem 0 1.75rem; color: #e8edf4; }
.buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 3.25rem; padding: 0.6rem 1.4rem; border-radius: 14px;
  font-weight: 700; font-size: 1.1rem; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; }
.btn.gold { background: var(--gold); color: #1d1405; }
.btn.light { background: rgba(255, 255, 255, 0.14); color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6); }
.btn.navy { background: var(--navy); color: #fff; }
.btn.line { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn svg { width: 1.3em; height: 1.3em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* service times */
.times { background: var(--navy); color: #fff; }
.times .wrap { padding-top: 2rem; padding-bottom: 2.25rem; }
.times-title { font-size: min(1.8rem, 1.2rem + 2vw); margin-bottom: 1rem; }
.days { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr)); gap: 1rem; }
.day { background: var(--navy-2); border-radius: var(--radius); padding: 1.1rem 1.25rem 1.25rem; }
.day h3 { color: var(--gold); font-size: 1.35rem; margin-bottom: 0.5rem; }
.day ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.day li { display: grid; grid-template-columns: minmax(5.6rem, auto) 1fr; gap: 0.75rem; align-items: baseline; }
.day li b { font-size: 1.15rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.day li span { color: #d3dae6; }

/* ---------- sections ---------- */
section.block { padding: clamp(48px, 8vw, 88px) 0; }
section.block.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.head { margin-bottom: 1.75rem; max-width: 46rem; }
.head .kicker { color: var(--gold-ink); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.95rem; margin: 0 0 0.4rem; }
.head h2 { font-size: min(2.3rem, 1.3rem + 3.2vw); }
.head p { color: var(--sub); margin: 0.6rem 0 0; font-size: 1.15rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); gap: 1rem; }
.card { background: var(--paper); border-radius: var(--radius); box-shadow: inset 0 0 0 1.5px var(--line); padding: 1.35rem 1.35rem 1.5rem; }
.alt .card { background: var(--cream); }
.card h3 { font-size: 1.4rem; margin-bottom: 0.35rem; }
.card .when { color: var(--gold-ink); font-weight: 700; margin: 0 0 0.4rem; }
.card p { margin: 0; color: var(--sub); }
.card .tag { display: inline-block; margin-bottom: 0.6rem; padding: 0.15rem 0.6rem; border-radius: 999px; background: #eef2f7; color: var(--navy-2); font-weight: 700; font-size: 0.85rem; }

/* watch and listen */
.watch { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; align-items: center; }
@media (min-width: 820px) { .watch { grid-template-columns: 1.15fr 1fr; } }
.watch .picture { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--navy) center / cover no-repeat; position: relative; display: block; text-decoration: none; }
.watch .picture span { position: absolute; left: 1rem; bottom: 1rem; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; border-radius: 999px;
  background: rgba(10, 22, 38, 0.78); color: #fff; font-weight: 700; }
.watch .picture svg { width: 1.2em; height: 1.2em; fill: currentColor; }
.watch h3 { font-size: 1.6rem; }
.watch .meta { color: var(--sub); margin: 0.3rem 0 1.25rem; }

/* about */
.about { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
@media (min-width: 900px) { .about { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.about p { margin: 0 0 1rem; }
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr)); gap: 1rem; }
.person { display: flex; gap: 0.9rem; align-items: center; background: var(--paper); border-radius: var(--radius); padding: 1rem; box-shadow: inset 0 0 0 1.5px var(--line); }
.person i { width: 3.6rem; height: 3.6rem; border-radius: 50%; flex: none; background: #e6ecf3; display: grid; place-items: center; color: var(--navy-2); font-style: normal; font-weight: 700; }
.person b { display: block; font-size: 1.15rem; }
.person span { color: var(--sub); font-size: 1rem; }

/* visit */
.visit { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
@media (min-width: 820px) { .visit { grid-template-columns: 1fr 1fr; } }
.visit dl { margin: 0; display: grid; gap: 1rem; }
.visit dt { font-weight: 700; color: var(--gold-ink); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.9rem; }
.visit dd { margin: 0.15rem 0 0; font-size: 1.2rem; }
.visit .photo { border-radius: var(--radius); min-height: 16rem; background: url("images/worship.jpg") center / cover no-repeat; }

footer { background: var(--navy); color: #d3dae6; padding: 2.5rem 0 calc(env(safe-area-inset-bottom) + 2.5rem); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
footer img { width: 9rem; max-width: 40vw; }
footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem; }
footer nav a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 0.9rem; border-radius: 12px; color: #fff; text-decoration: none; font-weight: 600; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.35); }
.visit dd a { display: inline-flex; align-items: center; min-height: 48px; }

/* pastors through the years */
.sub-head { font-size: 1.35rem; margin: 1.5rem 0 0.75rem; }
.pastors { list-style: none; margin: 0; padding: 0 0 0 1.1rem; border-left: 3px solid var(--line); display: grid; gap: 0.6rem; }
.pastors li { position: relative; font-size: 1.15rem; }
.pastors li::before { content: ""; position: absolute; left: calc(-1.1rem - 8px); top: 0.55em; width: 13px; height: 13px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 3px var(--gold-ink); }
.pastors .now { margin-left: 0.4rem; padding: 0.05rem 0.55rem; border-radius: 999px; background: var(--navy); color: #fff; font-size: 0.85rem; font-weight: 700; }

/* what we believe */
.beliefs .card h3 { font-size: 1.3rem; }
.beliefs .card p { color: var(--ink); }

/* contact us */
.contact { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; max-width: 46rem; }
@media (min-width: 700px) { .contact { grid-template-columns: repeat(2, minmax(0, 1fr)); } .contact .wide { grid-column: 1 / -1; } }
.contact label { display: grid; gap: 0.35rem; font-weight: 700; }
.contact label small { font-weight: 400; color: var(--sub); }
.contact input, .contact textarea { font: inherit; font-size: max(1rem, 16px); color: var(--ink); background: var(--paper); border: 2px solid var(--line); border-radius: 12px;
  padding: 0.7rem 0.85rem; min-height: 3rem; width: 100%; }
.contact input:focus, .contact textarea:focus { border-color: var(--navy-2); outline: none; box-shadow: 0 0 0 3px rgba(242, 196, 109, 0.6); }
.contact .trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact .send { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.contact .send p { margin: 0; color: var(--sub); }
.cards.beliefs { grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr)); }
.contact-direct .buttons { gap: 0.75rem; }

/* YouTube Live, played in the page */
.live-embed { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: #000; }
.live-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
