/* =========================================================
   Grace Holiness Church — Anderson, Indiana
   Navy & Gold theme
   ========================================================= */

:root {
  --navy-950: #061428;
  --navy-900: #0a1e3b;
  --navy-800: #0f2a50;
  --navy-700: #163a6b;
  --gold-600: #b18a1c;
  --gold-500: #c9a227;
  --gold-400: #d9b84c;
  --gold-300: #e9d08a;
  --gold-100: #faf3df;
  /* metallic gold gradients */
  --gold-grad: linear-gradient(120deg, #9c7414 0%, #d9b24a 22%, #fbe8a6 42%, #d1a536 58%, #f1d47a 78%, #a87e1c 100%);
  --gold-grad-text-light: linear-gradient(100deg, #d6ad45 0%, #fbe8a6 35%, #e3bf5c 60%, #fff0bf 80%, #c99a2e 100%);
  --gold-grad-text-dark: linear-gradient(100deg, #7a5a0c 0%, #b8901f 35%, #8c6a12 60%, #c49a2a 80%, #7a5a0c 100%);
  --tint: #f6f4ee;
  --white: #ffffff;
  --ink: #1d2636;
  --muted: #5d6779;
  --line: #e7e3d8;

  --font-display: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif; /* headings on navy */
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-brand: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

  --radius: 14px;
  --shadow: 0 12px 34px rgba(10, 30, 59, 0.12);
  --shadow-sm: 0 4px 16px rgba(10, 30, 59, 0.08);
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy-700); text-decoration-color: var(--gold-500); text-underline-offset: 3px; }
a:hover { color: var(--navy-900); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy-900);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 780px; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--gold-500); color: var(--navy-900); padding: .6rem 1rem; z-index: 200; }
.skip-link:focus { left: 1rem; }

.eyebrow {
  display: block;
  font-size: .75rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: .6rem;
}
.center { text-align: center; }
.muted { color: var(--muted); }
.lead-text { font-size: 1.12rem; color: #3a4456; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.section-head { margin-bottom: 2.5rem; }
.section-head.center p { max-width: 620px; margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.5rem; border-radius: 999px;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  text-decoration: none; border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s; cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold-500); color: var(--navy-950); }
.btn-gold:hover { background: var(--gold-400); color: var(--navy-950); }
.btn-navy { background: var(--navy-900); color: var(--white); }
.btn-navy:hover { background: var(--navy-700); color: var(--white); }
.btn-outline { border-color: rgba(255,255,255,.6); color: var(--white); }
.btn-outline:hover { border-color: var(--gold-400); color: var(--gold-300); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Header (white) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { height: 44px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-brand); font-size: 1rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--navy-900); }
.brand-sub { font-family: var(--font-display); font-style: italic; font-size: .82rem; color: var(--gold-600); margin-top: .15rem; }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; color: var(--navy-900); padding: .5rem .6rem; cursor: pointer; }
.nav-toggle svg { width: 24px; height: 24px; display: block; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .15rem; }
.main-nav a {
  position: relative; display: block; padding: .5rem .75rem;
  color: var(--navy-900); text-decoration: none; font-size: .9rem; font-weight: 500;
}
.main-nav a::after {
  content: ""; position: absolute; left: .75rem; right: .75rem; bottom: .15rem; height: 2px;
  background: var(--gold-500); transform: scaleX(0); transition: transform .2s;
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { font-weight: 600; }
.main-nav .nav-give { margin-left: .6rem; padding: .55rem 1.2rem; background: var(--navy-900); color: var(--white); border-radius: 10px; font-weight: 600; }
.main-nav .nav-give::after { display: none; }
.main-nav .nav-give:hover { background: var(--navy-700); color: var(--white); }
.main-nav .nav-give[aria-current="page"] { background: var(--gold-500); color: var(--navy-950); }

@media (max-width: 1040px) {
  .nav-toggle { display: block; }
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); box-shadow: 0 12px 24px rgba(10,30,59,.12); display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: .5rem 1.25rem 1.25rem; gap: 0; }
  .main-nav a { padding: .85rem .25rem; border-bottom: 1px solid var(--line); }
  .main-nav a::after { display: none; }
  .main-nav a[aria-current="page"] { color: var(--gold-600); }
  .main-nav .nav-give { margin: 1rem 0 0; text-align: center; }
}

/* ---------- Wave divider ---------- */
.wave { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; }
.wave svg { width: 100%; height: 70px; display: block; }
.wave .fill { fill: var(--white); }
.wave.to-tint .fill { fill: var(--tint); }
.wave .stroke { fill: none; stroke: var(--gold-500); stroke-width: 6; }
@media (max-width: 700px) { .wave svg { height: 40px; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  color: var(--white);
  background: var(--navy-900);
  padding: 6.5rem 0 8.5rem;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, rgba(10,30,59,.95) 0%, rgba(10,30,59,.86) 50%, rgba(10,30,59,.7) 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero .eyebrow { color: var(--gold-300); }
.hero h1 { color: var(--white); margin-bottom: 0; }
.hero .btn-row:not(:empty) { margin-top: 2rem; }
.live-btn[hidden] { display: none; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: #d62828; box-shadow: 0 0 0 0 rgba(214,40,40,.6); animation: livepulse 1.6s infinite; }
@keyframes livepulse { 70% { box-shadow: 0 0 0 10px rgba(214,40,40,0); } 100% { box-shadow: 0 0 0 0 rgba(214,40,40,0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.hero h1 em { color: var(--gold-400); }
.hero .lead { font-size: 1.1rem; color: rgba(255,255,255,.88); max-width: 34rem; margin-bottom: 2rem; }
.hero-logo { justify-self: center; width: min(360px, 100%); height: auto; filter: drop-shadow(0 10px 30px rgba(0,0,0,.35)); }
@media (max-width: 860px) {
  .hero { padding: 4.5rem 0 6.5rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-logo { order: -1; width: 120px; justify-self: start; margin-bottom: -.5rem; }
}

/* Parallax photo layer (moved by main.js; static when reduced motion is set) */
.parallax-bg { position: absolute; left: 0; right: 0; top: -18%; bottom: -18%; z-index: -2; background: center/cover no-repeat; will-change: transform; }
.parallax-bg.parallax-top { top: -36%; bottom: 0; }

/* Inner page banner */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--navy-900);
  color: var(--white);
  padding: 4.5rem 0 6rem;
}
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, rgba(10,30,59,.96), rgba(10,30,59,.82)); }
.page-hero::after {
  content: ""; position: absolute; z-index: -1; right: -90px; top: -120px;
  width: 380px; height: 380px; border-radius: 50%;
  border: 46px solid rgba(201,162,39,.12);
}
.page-hero .eyebrow { color: var(--gold-300); }
.page-hero h1 { color: var(--white); margin-bottom: .3em; font-size: clamp(2.2rem, 4.6vw, 3.2rem); }
.page-hero p { color: rgba(255,255,255,.85); max-width: 46rem; margin: 0; font-size: 1.05rem; }

/* ---------- Sections ---------- */
section { padding: 5rem 0; }
.bg-tint { background: var(--tint); }
.bg-white { background: var(--white); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.split.top { align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 2.25rem; } }

.photo { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; aspect-ratio: 4/3; }
.photo.tall { aspect-ratio: 4/5; }

/* ---------- Service time cards ---------- */
.times { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
@media (max-width: 900px) { .times { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 340px) { .times { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .time-card { padding: 1rem .85rem; }
  .times { gap: .75rem; }
  .time-card .hour { white-space: nowrap; font-size: 1.45rem; white-space: nowrap; }
  .brand-name { font-size: .85rem; }
  .brand img { height: 38px; }
}
.time-card {
  background: var(--white); border-radius: var(--radius); padding: 1.4rem 1.4rem 1.3rem;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line); position: relative; overflow: hidden; padding-top: calc(1.4rem + 4px);
}
.time-card .day { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.time-card .hour { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; color: var(--navy-900); line-height: 1.15; margin: .25rem 0 .2rem; }
.time-card .what { font-weight: 600; color: var(--ink); font-size: .95rem; }
.times-note { text-align: center; color: var(--muted); font-size: .92rem; margin-top: 1.75rem; }

/* ---------- Belief band ---------- */
.band {
  position: relative; isolation: isolate; color: var(--white); text-align: center;
  background: var(--navy-900); padding: 6.5rem 0; overflow: hidden;
}
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(10,30,59,.86); }
.band .eyebrow { color: var(--gold-300); }
.band h2 { color: var(--white); font-size: clamp(1.9rem, 4.2vw, 3rem); max-width: 900px; margin: 0 auto; }
.band h2 span { display: block; }
.band h2 em { color: var(--gold-400); }
.band p { color: rgba(255,255,255,.82); max-width: 640px; margin: 0 auto; }

/* ---------- Photo mosaic ---------- */
.mosaic { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 230px 230px; gap: .9rem; }
.mosaic figure { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.mosaic figure:first-child { grid-row: span 2; }
.mosaic figure:nth-child(2) { grid-row: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.mosaic figure:hover img { transform: scale(1.04); }
.mosaic figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1rem .9rem;
  background: linear-gradient(transparent, rgba(6,20,40,.8)); color: var(--white); font-weight: 600; font-size: .9rem;
}
@media (max-width: 760px) {
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 160px 160px; }
  .mosaic figure:first-child { grid-column: span 2; grid-row: auto; }
  .mosaic figure:nth-child(2) { grid-row: span 2; }
}

/* ---------- Compact staff cards ---------- */
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 760px) { .people { grid-template-columns: 1fr; } }
.person {
  display: flex; align-items: center; gap: 1.1rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .9rem; box-shadow: var(--shadow-sm); text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
a.person:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.person img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; object-position: center 22%; flex: none; padding: 3px; background: var(--gold-grad); }
.person strong { display: block; font-family: var(--font-display); font-size: 1.2rem; color: var(--navy-900); line-height: 1.25; }
.person span { color: var(--muted); font-size: .92rem; }

/* Staff page large cards */
.staff-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 1000px) { .staff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 360px) { .staff-grid { grid-template-columns: 1fr; } }
.staff-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--line); text-align: center; padding: 2rem 1.25rem 1.75rem; }
.staff-card img { width: 170px; height: 170px; max-width: 100%; margin: 0 auto; border-radius: 50%; object-fit: cover; object-position: center 22%; padding: 5px; background: var(--gold-grad); box-shadow: 0 8px 22px rgba(10,30,59,.15); }
.staff-card .body { padding: 1.25rem 0 0; }
@media (max-width: 560px) { .staff-card { padding: 1.5rem .75rem 1.25rem; } .staff-card img { width: 120px; height: 120px; padding: 4px; } .staff-card h2 { font-size: 1.15rem; } .staff-card .role { letter-spacing: .05em; font-size: .68rem; } }
.staff-card .role { display: block; color: var(--gold-600); font-weight: 600; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: .25rem; }
.staff-card h2 { font-size: 1.4rem; margin: 0; }

/* ---------- Feature cards (icons) ---------- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.features.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .features, .features.three { grid-template-columns: 1fr; } }
.feature {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow-sm);
}
.feature .icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--gold-100); color: var(--gold-600);
  display: grid; place-items: center; margin-bottom: 1rem;
}
.feature .icon svg { width: 22px; height: 22px; }
.feature h3 { margin-bottom: .4rem; }
.feature p { color: #3a4456; margin: 0; }
.feature .link { display: inline-block; margin-top: .9rem; font-weight: 600; text-decoration: none; }
.feature .link::after { content: " →"; color: var(--gold-500); }

/* Beliefs list */
.belief-list { list-style: none; margin: 0 auto; padding: 0; max-width: 980px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.belief { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 2.5rem; padding: 2rem 2.25rem; border-top: 1px solid var(--line); }
.belief:first-child { border-top: 0; }
.belief-head { display: flex; flex-direction: column; gap: .2rem; }
.belief-num { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--gold-600); letter-spacing: .04em; }
.belief-head h3 { font-size: 1.45rem; margin: 0; }
.belief-body p { color: #3a4456; margin: 0 0 .8em; }
.belief-body p:last-child { margin-bottom: 0; }
@media (max-width: 760px) { .belief { grid-template-columns: 1fr; gap: .75rem; padding: 1.5rem 1.25rem; } }

/* Pull quote */
.pullquote {
  background: var(--white); position: relative; overflow: hidden; border-radius: var(--radius);
  padding: 1.75rem 2rem; box-shadow: var(--shadow);
  font-family: var(--font-display); font-size: 1.35rem; line-height: 1.5; color: var(--navy-900); font-weight: 600;
}
.pullquote cite { display: block; margin-top: .9rem; font-family: var(--font-body); font-style: normal; font-size: .85rem; font-weight: 500; color: var(--muted); }

/* ---------- Getting here ---------- */
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.3rem; }
.info-list li { display: flex; gap: .9rem; }
.info-list .icon { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--navy-900); color: var(--gold-400); display: grid; place-items: center; }
.info-list .icon svg { width: 20px; height: 20px; }
.info-list strong { display: block; color: var(--navy-900); }
.info-list p { margin: 0; color: var(--muted); }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--white); }
.map-wrap iframe { width: 100%; height: 400px; border: 0; display: block; }

.schedule { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.schedule th, .schedule td { padding: 1rem 1.25rem; text-align: left; border-bottom: 1px solid var(--line); }
.schedule th { background: var(--navy-900); color: var(--gold-300); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; }
.schedule td:first-child { font-weight: 600; color: var(--navy-900); white-space: nowrap; }
.schedule tr:last-child td { border-bottom: 0; }


/* ---------- Give ---------- */
.give-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem; text-align: center; }
.give-box .icon { width: 54px; height: 54px; border-radius: 50%; background: var(--gold-100); color: var(--gold-600); display: grid; place-items: center; margin: 0 auto 1rem; }
.give-box .icon svg { width: 24px; height: 24px; }
.verse { font-family: var(--font-display); font-style: italic; font-size: 1.3rem; color: var(--navy-800); line-height: 1.5; }

/* ---------- CTA card ---------- */
.cta-wrap { padding: 0 0 5rem; }
.cta-card {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--navy-900); color: rgba(255,255,255,.85);
  border-radius: 20px; padding: 3rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.cta-card::after {
  content: ""; position: absolute; z-index: -1; right: -60px; bottom: -150px;
  width: 300px; height: 300px; border-radius: 50%; border: 40px solid rgba(201,162,39,.16);
}
.cta-card h2 { color: var(--white); margin: 0 0 .3rem; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-card p { margin: 0; max-width: 40rem; }
@media (max-width: 600px) { .cta-card { padding: 2rem 1.5rem; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,.72); padding: 4rem 0 0; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) max-content max-content; gap: 2.5rem 4.5rem; }
.footer-addr span { white-space: nowrap; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-family: var(--font-body); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-400); margin-bottom: 1rem; font-weight: 600; }
.site-footer a { color: rgba(255,255,255,.88); text-decoration: none; }
.site-footer a:hover { color: var(--gold-300); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.footer-brand .brand-name { color: var(--white); }
.footer-brand .brand { margin-bottom: .25rem; }
.footer-brand p { max-width: 30ch; }
.social { display: flex; gap: .6rem; margin-top: 1rem; }
.social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: var(--gold-400); }
.social a:hover { background: var(--gold-500); color: var(--navy-950); }
.social svg { width: 18px; height: 18px; }
.footer-bottom { margin-top: 3rem; padding: 1.3rem 0; border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; color: rgba(255,255,255,.5); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .mosaic img { transition: none; }
}

/* ---------- YouTube player ---------- */
.player-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem; margin-bottom: 1.25rem; text-align: center; }
.player-head h2 { margin: 0; }
.live-badge { display: inline-flex; align-items: center; gap: .5rem; background: #d62828; color: var(--white); font-weight: 600; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; padding: .35rem .8rem; border-radius: 999px; }
.live-badge[hidden] { display: none; }
.live-badge .live-dot { background: var(--white); }
.player { position: relative; max-width: 960px; margin: 0 auto; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--navy-950); border: 4px solid var(--white); outline: 1px solid var(--line); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-poster { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: var(--navy-950); color: var(--white); font: inherit; display: grid; place-items: center; align-content: center; gap: 1rem; }
.player-poster[hidden], .poster-yt[hidden] { display: none; }
.player-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; transition: opacity .3s, transform .6s; }
.player-poster:hover img { opacity: .55; transform: scale(1.02); }
.play-icon { position: relative; width: 84px; height: 84px; border-radius: 50%; background: var(--gold-500); color: var(--navy-950); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .2s, background .2s; }
.play-icon svg { width: 36px; height: 36px; margin-left: 5px; }
.player-poster:hover .play-icon, .player-poster:focus-visible .play-icon { transform: scale(1.08); background: var(--gold-400); }
.player-poster:focus-visible { outline: 3px solid var(--gold-400); outline-offset: -6px; }
.poster-label { position: relative; text-shadow: 0 2px 12px rgba(0,0,0,.7); font-family: var(--font-display); font-size: clamp(1.2rem, 2.6vw, 1.7rem); font-weight: 700; }
.poster-yt { position: absolute; right: 1rem; bottom: .9rem; z-index: 1; color: var(--white); font-size: .85rem; font-weight: 600; background: rgba(6,20,40,.6); padding: .35rem .8rem; border-radius: 999px; text-decoration: none; }
.poster-yt:hover { color: var(--gold-300); }
@media (max-width: 480px) { .play-icon { width: 60px; height: 60px; } .play-icon svg { width: 26px; height: 26px; } }
.player-note { text-align: center; color: var(--muted); margin: 1rem 0 0; }
.player-note[hidden] { display: none; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--navy-700); text-decoration: underline; text-decoration-color: var(--gold-500); text-underline-offset: 3px; cursor: pointer; }

/* Phone overrides (kept last so they win) */
@media (max-width: 480px) {
  .time-card .hour { font-size: 1.45rem; }
  .time-card .what { font-size: .88rem; line-height: 1.4; }
}


/* ---------- Metallic gold gradient ---------- */
.btn-gold, .main-nav .nav-give[aria-current="page"], .play-icon, .skip-link { background: var(--gold-grad); background-size: 160% 100%; background-position: 0% 50%; transition: background-position .5s ease, transform .2s, color .2s; }
.btn-gold:hover, .player-poster:hover .play-icon, .player-poster:focus-visible .play-icon { background: var(--gold-grad); background-size: 160% 100%; background-position: 100% 50%; }
.btn-gold { box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 4px 14px rgba(177,138,28,.28); }
.social a:hover { background: var(--gold-grad); color: var(--navy-950); }

.main-nav a::after { background: var(--gold-grad); }

/* gradient bars on cards */
.time-card::before, .pullquote::before { content: ""; position: absolute; background: var(--gold-grad); }
.time-card::before { left: 0; right: 0; top: 0; height: 4px; }
.pullquote::before { left: 0; top: 0; bottom: 0; width: 4px; }

/* gradient text */
.hero h1 em, .band h2 em,
.hero .eyebrow, .page-hero .eyebrow, .band .eyebrow, .site-footer h4 {
  background: var(--gold-grad-text-light); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.eyebrow, .brand-sub, .belief-num, .staff-card .role {
  background: var(--gold-grad-text-dark); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.hero .eyebrow, .page-hero .eyebrow, .band .eyebrow { background: var(--gold-grad-text-light); -webkit-background-clip: text; background-clip: text; }
.brand-sub, .eyebrow, .site-footer h4, .belief-num, .staff-card .role { display: inline-block; }
.eyebrow { display: table; }
.center .eyebrow, .section-head.center .eyebrow { margin-left: auto; margin-right: auto; }
.hero h1 em, .band h2 em { padding-right: .08em; margin-right: -.08em; }
.band .eyebrow { margin-left: auto; margin-right: auto; }

/* wave line */
.wave .stroke { stroke: url(#goldWave); }

/* ---------- Weekly bulletin ---------- */
.bulletin-wrap { padding-top: 3rem; }
.b-notice { background: var(--gold-100); border: 1px solid #ecd9a2; color: #5c4610; border-radius: var(--radius); padding: .9rem 1.2rem; margin: 0 0 1.75rem; font-size: .92rem; }
.b-notice[hidden] { display: none; }
.bulletin-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 1.75rem; align-items: start; }
@media (max-width: 900px) { .bulletin-grid { grid-template-columns: minmax(0, 1fr); } }
.b-main, .b-side { display: grid; gap: 1.75rem; min-width: 0; }
.b-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem; }
@media (max-width: 640px) { .b-two { grid-template-columns: minmax(0, 1fr); } }
.b-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.6rem 1.75rem; min-width: 0; }
.b-card[hidden] { display: none; }
@media (max-width: 560px) { .b-card { padding: 1.3rem 1.2rem; } }
.b-title { font-size: 1.45rem; margin: 0 0 1rem; padding-bottom: .7rem; position: relative; }
.b-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 44px; height: 3px; border-radius: 2px; background: var(--gold-grad); }
.b-empty { color: var(--muted); font-size: .92rem; list-style: none; }

/* announcements */
.b-ann { list-style: none; margin: 0; padding: 0; }
.b-ann li { padding: 1rem 0; border-top: 1px solid var(--line); }
.b-ann li:first-child { border-top: 0; padding-top: 0; }
.b-ann li:last-child { padding-bottom: 0; }
.b-when { display: block; font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-600); margin-bottom: .2rem; }
.b-ann h3 { font-size: 1.15rem; margin: 0 0 .25rem; }
.b-ann p { margin: 0; color: #3a4456; font-size: .95rem; }
.b-link { display: inline-block; margin-top: .5rem; font-weight: 600; font-size: .9rem; text-decoration: none; }
.b-link::after { content: " →"; color: var(--gold-500); }

/* prayer + singing */
.b-prayer { list-style: none; margin: 0; padding: 0; }
.b-prayer li { position: relative; padding: .45rem 0 .45rem 1.2rem; border-top: 1px solid var(--line); font-size: .95rem; }
.b-prayer li:first-child { border-top: 0; padding-top: 0; }
.b-prayer li:not(.b-empty)::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-grad); }
.b-prayer li:first-child::before { top: .6em; }
.b-sing-row { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: .75rem; padding: .5rem 0; border-top: 1px solid var(--line); font-size: .95rem; }
.b-sing-row:first-child { border-top: 0; padding-top: 0; }
.b-sing-row span { color: var(--muted); font-size: .85rem; }
.b-sing-row strong { font-weight: 600; color: var(--navy-900); }
.b-next { margin: .9rem 0 0; padding-top: .8rem; border-top: 1px dashed var(--line); color: var(--muted); font-size: .86rem; }

/* events */
.b-events { list-style: none; margin: 0; padding: 0; }
.b-events li { display: flex; gap: .9rem; align-items: center; padding: .65rem 0; border-top: 1px solid var(--line); }
.b-events li:first-child { border-top: 0; padding-top: 0; }
.b-events li:last-child { padding-bottom: 0; }
.b-ev-date { flex: none; width: 48px; text-align: center; border-radius: 10px; background: var(--navy-900); color: var(--white); padding: .3rem 0 .35rem; line-height: 1.1; }
.b-ev-date span { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-300); }
.b-ev-date strong { font-family: var(--font-display); font-size: 1.2rem; }
.b-ev-text { min-width: 0; display: flex; flex-direction: column; }
.b-ev-text strong { color: var(--navy-900); font-weight: 600; font-size: .95rem; line-height: 1.35; }
.b-ev-text span { color: var(--muted); font-size: .83rem; }

/* celebrations */
.b-cel h3 { font-family: var(--font-body); font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-600); margin: 0 0 .4rem; }
.b-cel ul { list-style: none; margin: 0 0 1rem; padding: 0; }
.b-cel ul:last-child { margin-bottom: 0; }
.b-cel li { display: flex; gap: .7rem; padding: .3rem 0; font-size: .95rem; }
.b-day { flex: none; width: 1.8rem; font-family: var(--font-display); font-weight: 700; color: var(--navy-900); }

/* missed a service */
.b-video { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/10; box-shadow: var(--shadow); text-decoration: none; isolation: isolate; }
.b-video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s; }
.b-video::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6,20,40,.15), rgba(6,20,40,.85)); }
.b-video:hover img { transform: scale(1.04); }
.b-video .play-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -70%); width: 62px; height: 62px; }
.b-video .play-icon svg { width: 26px; height: 26px; }
.b-video-text { position: absolute; left: 1.2rem; right: 1.2rem; bottom: 1rem; display: flex; flex-direction: column; color: var(--white); }
.b-video-kicker { font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-300); }
.b-video-title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; }

/* Give options */
.give-options { display: grid; gap: 1rem; margin-top: 1.25rem; text-align: left; }
.give-option { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name btn" "tag btn"; align-items: center; column-gap: 1rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--tint); }
.give-option strong { grid-area: name; font-family: var(--font-display); font-size: 1.2rem; color: var(--navy-900); }
.give-option span { grid-area: tag; color: var(--muted); font-size: .88rem; overflow-wrap: anywhere; }
.give-option .btn { grid-area: btn; padding: .7rem 1.2rem; font-size: .9rem; white-space: nowrap; }
@media (max-width: 480px) { .give-option { grid-template-columns: minmax(0, 1fr); grid-template-areas: "name" "tag" "btn"; row-gap: .2rem; } .give-option .btn { margin-top: .6rem; justify-self: start; } }

/* Belief band on phones: exactly four lines, gold phrase on its own line */
@media (max-width: 600px) {
  .band h2 { font-size: min(1.9rem, 5.5vw); line-height: 1.3; }
  .band h2 span { white-space: nowrap; }
  .band h2 em { display: block; }
}

/* Homepage hero on phones and tablets: centre the logo, slogan and button */
@media (max-width: 860px) {
  .hero-grid { text-align: center; justify-items: center; }
  .hero-logo { justify-self: center; }
  .hero .btn-row { justify-content: center; }
}

/* ---------- Fonts: Source Sans 3 throughout, Playfair Display for headings on navy ---------- */
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.01em; }
h1 { font-weight: 800; }
.hero h1, .band h2, .page-hero h1, .cta-card h2, .b-video-title, .poster-label {
  font-family: var(--font-serif); font-weight: 700; letter-spacing: 0;
}
.b-sing-plain { grid-template-columns: minmax(0, 1fr); }
.time-card .what { font-style: italic; font-weight: 400; color: #3a4456; }

/* ---------- Lightbox (Life at Grace photos) ---------- */
[data-lightbox] figure, [data-lightbox-item] { cursor: zoom-in; }
[data-lightbox] figure:focus-visible, [data-lightbox-item]:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; }
.staff-card img[data-lightbox-item] { transition: transform .25s ease, box-shadow .25s ease; }
.staff-card img[data-lightbox-item]:hover { transform: scale(1.04); box-shadow: 0 12px 28px rgba(10,30,59,.22); }
.lb-open, .lb-open body { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(4, 12, 26, .96); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 4rem 4.5rem; }
.lightbox[hidden] { display: none; }
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .9rem; max-width: 100%; max-height: 100%; }
.lb-figure img { max-width: min(1100px, 100%); max-height: calc(100vh - 10rem); width: auto; height: auto; object-fit: contain; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); animation: lb-in .25s ease; }
.lb-figure figcaption { color: rgba(255,255,255,.9); font-size: 1rem; text-align: center; }
.lb-close, .lb-nav { position: absolute; background: rgba(255,255,255,.1); color: var(--white); border: 1px solid rgba(255,255,255,.25); border-radius: 50%; cursor: pointer; display: grid; place-items: center; transition: background .2s, color .2s; }
.lb-close:hover, .lb-nav:hover, .lb-close:focus-visible, .lb-nav:focus-visible { background: var(--gold-grad); color: var(--navy-950); border-color: transparent; outline: none; }
.lb-close { top: 1rem; right: 1rem; width: 46px; height: 46px; font-size: 1.9rem; line-height: 1; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 2.2rem; line-height: 1; padding-bottom: .2rem; }
.lb-nav[hidden] { display: none; }
.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }
@keyframes lb-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) {
  .lightbox { padding: 4rem .75rem 5.5rem; }
  .lb-figure img { max-height: calc(100vh - 11rem); }
  .lb-nav { top: auto; bottom: 1.25rem; transform: none; width: 48px; height: 48px; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
}
@media (prefers-reduced-motion: reduce) { .lb-figure img { animation: none; } }
#live { scroll-margin-top: 96px; }

/* our own "stream ended" panel, covering YouTube's suggested-videos grid */
.player-end { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .4rem; padding: 1.5rem; background: linear-gradient(rgba(6,20,40,.9), rgba(6,20,40,.94)), url('../img/congregation-praise.jpg') center/cover; color: #fff; }
.player-end-title { font-family: var(--font-serif); font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 700; margin: 0; }
.player-end-sub { margin: 0 0 .8rem; color: rgba(255,255,255,.8); }
.player-end-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.player-end .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.player-end .btn-outline:hover { color: var(--gold-300); border-color: var(--gold-400); }
@media (max-width: 600px) {
  .player-end { gap: .25rem; padding: 1rem; }
  .player-end-title { font-size: 1.15rem; }
  .player-end-sub { font-size: .85rem; margin-bottom: .5rem; }
  .player-end .btn { padding: .5rem 1rem; font-size: .85rem; }
}
.footer-bottom .staff-link { color: rgba(255,255,255,.6); text-decoration: underline; text-decoration-color: rgba(201,162,39,.5); text-underline-offset: 3px; }
.footer-bottom .staff-link:hover { color: var(--gold-300); }
