/* GC3 · Gulf Light design system
   Sand ground with a cool bias, gulf navy ink, sea-glass accent, gold reserved for the one
   button that matters. Syne for wide display caps (stands in for the brand's Lulo Clean),
   Lora for reading text. Fonts are loaded per page from Google Fonts. */

:root {
  --sand: #ECE7DC;
  --sand-2: #F6F3EC;
  --sand-deep: #DED7C8;
  --navy: #0B2233;
  --navy-2: #143549;
  --ink: #16283A;
  --ink-soft: #55677A;
  --glass: #2A9BB8;      /* sea-glass accent, AA on sand for large text */
  --glass-deep: #1B6F86; /* links and small accent text */
  --glass-soft: #D6EEF4;
  --gold: #E0A14A;
  --gold-deep: #B8791F;
  --line: #CFC7B6;
  --radius: 14px;
  --radius-lg: 24px;
  --measure: 62ch;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --font-display: "Syne", "Montserrat", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Inter", system-ui, sans-serif;
  --font-ui: "Source Sans 3", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--sand); color: var(--ink);
  font-family: var(--font-body); font-size: 1.125rem; line-height: 1.6;
}
img, video { max-width: 100%; display: block; }
a { color: var(--glass-deep); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

h1, h2, h3, .display { font-family: var(--font-display); font-weight: 800; line-height: 1.02; letter-spacing: 0.01em; text-transform: uppercase; text-wrap: balance; margin: 0; color: var(--navy); }
h1 { font-size: clamp(2.4rem, 7vw, 5.2rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.1rem, 2.2vw, 1.4rem); letter-spacing: 0.04em; }
p { margin: 0 0 1em; max-width: var(--measure); }
.lede { font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.45; color: var(--ink); }
.eyebrow { font-family: var(--font-ui); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--glass-deep); margin: 0 0 0.75rem; }
.ui { font-family: var(--font-ui); }
.muted { color: var(--ink-soft); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(236,231,220,.86); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); }
.site-header .bar { max-width: 76rem; margin: 0 auto; padding: 0.7rem var(--pad); display: flex; align-items: center; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--navy); font-family: var(--font-display); font-weight: 800; letter-spacing: 0.06em; font-size: 1.05rem; }
.brand img { height: 38px; width: auto; filter: brightness(0) saturate(100%) invert(11%) sepia(24%) saturate(1800%) hue-rotate(178deg) brightness(92%) contrast(95%); }
.nav .live { display: inline-flex; align-items: center; gap: 0.4rem; color: #fff; background: #C0392B; padding: 0.4rem 0.8rem; border-radius: 999px; border-bottom: 0; font-size: 0.85rem; }
.nav .live::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #fff; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.card { transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(11,34,51,.35); }
@media (prefers-reduced-motion: reduce) { .card:hover { transform: none; } .nav .live::before { animation: none; } }
.nav { margin-left: auto; display: flex; gap: 1.4rem; align-items: center; font-family: var(--font-ui); font-weight: 600; font-size: 0.95rem; }
.nav a { color: var(--ink); text-decoration: none; padding: 0.35rem 0; border-bottom: 2px solid transparent; }
.nav a[aria-current="page"], .nav a:hover { border-bottom-color: var(--glass); }
.nav .cta { background: var(--navy); color: var(--sand-2); padding: 0.55rem 1rem; border-radius: 999px; border: 0; }
.nav .cta:hover { background: var(--navy-2); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 0.4rem 0.6rem; font-family: var(--font-ui); font-weight: 600; color: var(--navy); }
@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--sand-2); border-bottom: 1px solid var(--line); padding: 0.5rem var(--pad) 1rem; }
  .nav.open { display: flex; }
  .nav a { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
  .nav .cta { margin-top: 0.75rem; text-align: center; }
}

/* ---------- layout ---------- */
.wrap { max-width: 76rem; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding: clamp(3rem, 8vw, 6.5rem) 0; }
.section.tight { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.section.dark { background: var(--navy); color: var(--sand-2); }
.section.dark h1, .section.dark h2, .section.dark h3 { color: var(--sand-2); }
.section.dark .eyebrow { color: var(--glass); }
.section.dark a { color: var(--glass); }
.section.dark .muted { color: #B9C6D1; }
.section.dark .lede, .section.dark p { color: #E7EEF3; }
.section.paper { background: var(--sand-2); }
.grid { display: grid; gap: clamp(1.25rem, 3vw, 2.5rem); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.split { display: grid; gap: clamp(1.5rem, 4vw, 4rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); align-items: center; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-ui); font-weight: 700; font-size: 1rem; padding: 0.85rem 1.4rem; border-radius: 999px; text-decoration: none; border: 2px solid transparent; cursor: pointer; line-height: 1; }
.btn.primary { background: var(--gold); color: var(--navy); }
.btn.primary:hover { background: #E9B061; }
.btn.navy { background: var(--navy); color: var(--sand-2); }
.btn.navy:hover { background: var(--navy-2); }
.btn.ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.section.dark .btn.ghost { color: var(--sand-2); border-color: var(--sand-2); }
.btn.ghost:hover { background: rgba(11,34,51,.06); }
.btn.small { padding: 0.55rem 1rem; font-size: 0.9rem; }

/* ---------- hero (video window) ---------- */
.hero { padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(2.5rem, 6vw, 5rem); }
.hero .window { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy); aspect-ratio: 16 / 9; max-height: 78vh; box-shadow: 0 30px 60px -30px rgba(11,34,51,.45); }
.hero .window video, .hero .window img.poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .window::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,34,51,.78) 0%, rgba(11,34,51,.25) 45%, rgba(11,34,51,0) 75%); }
.hero .copy { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(1.25rem, 4vw, 3rem); z-index: 2; color: var(--sand-2); }
.hero .copy h1 { color: var(--sand-2); max-width: 14ch; text-shadow: 0 2px 20px rgba(0,0,0,.35); }
.hero .copy .eyebrow { color: #BFE7F1; }
.hero .copy .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }
@media (max-width: 640px) {
  .hero .window { aspect-ratio: 4 / 5; }
  .hero .window video { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hero .window video { display: none; } }

/* ---------- this sunday strip ---------- */
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--sand-2); font-family: var(--font-ui); }
.strip > div { padding: 1.1rem 1.3rem; border-right: 1px solid var(--line); }
.strip > div:last-child { border-right: 0; }
.strip .k { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.strip .v { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; color: var(--navy); margin-top: 0.15rem; text-transform: uppercase; }
.strip .s { color: var(--ink-soft); font-size: 0.92rem; margin-top: 0.15rem; }
@media (max-width: 640px) { .strip > div { border-right: 0; border-bottom: 1px solid var(--line); } .strip > div:last-child { border-bottom: 0; } }

/* ---------- cards ---------- */
.card { background: var(--sand-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; }
.card h3 { margin: 0; font-size: clamp(1rem, 1.6vw, 1.2rem); overflow-wrap: anywhere; hyphens: auto; }
.card p { margin: 0; font-size: 0.98rem; }
.card .more { margin-top: auto; padding-top: 0.5rem; font-family: var(--font-ui); font-weight: 700; text-decoration: none; }
.card.photo { padding: 0; overflow: hidden; }
.card.photo img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; height: auto; }
.card.photo .body { padding: 1.25rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }

/* ---------- media ---------- */
.frame { border-radius: var(--radius-lg); overflow: hidden; background: var(--navy); aspect-ratio: 16/9; }
.frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.portrait { border-radius: var(--radius-lg); overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/2; object-position: 50% 30%; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #C9D4DD; padding: clamp(2.5rem, 6vw, 4.5rem) 0 2rem; font-family: var(--font-ui); }
.site-footer .cols { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.site-footer h3 { color: var(--sand-2); font-size: 0.85rem; letter-spacing: 0.14em; margin-bottom: 0.75rem; }
.site-footer a { color: #E7EEF3; text-decoration: none; }
.site-footer a:hover { color: var(--glass); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.site-footer .legal { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.12); font-size: 0.85rem; color: #93A5B4; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }
.site-footer .logo { height: 34px; width: auto; margin-bottom: 1rem; }

/* ---------- misc ---------- */
.notice { background: var(--glass-soft); border-left: 4px solid var(--glass); padding: 0.9rem 1.1rem; border-radius: 0 var(--radius) var(--radius) 0; font-family: var(--font-ui); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- Sunday clock ---------- */
.strip .countdown { color: var(--glass-deep); font-weight: 600; }
.live-dot { display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #C0392B; margin-right: 0.3rem; animation: pulse 1.4s ease-in-out infinite; }
.live-badge { position: absolute; top: 1rem; left: 1rem; z-index: 3; background: #C0392B; color: #fff; font-family: var(--font-ui); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.12em; padding: 0.35rem 0.65rem; border-radius: 999px; }
.hero .copy.copy-live h1 { font-size: clamp(1.5rem, 3.5vw, 2.4rem); }
.hero .copy.copy-live .lede { display: none; }

/* ---------- film strip (scroll-scrubbed) ---------- */
.filmstrip { overflow: hidden; padding: clamp(1.5rem, 4vw, 3rem) 0 0; }
.filmstrip .track { display: flex; gap: 0.75rem; width: max-content; padding: 0 var(--pad); will-change: transform; }
.filmstrip img { height: clamp(170px, 26vw, 320px); width: auto; border-radius: var(--radius); object-fit: cover; display: block; }
.filmstrip .word { flex: none; height: clamp(170px, 26vw, 320px); aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--navy); color: var(--sand-2); display: grid; place-items: center; padding: 0 0.75rem; }
.filmstrip .word span { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; font-size: clamp(1.2rem, 2.8vw, 2.3rem); text-align: center; }
.filmstrip .word.glass { background: var(--glass-deep); }
.filmstrip .word.gold { background: var(--gold); color: var(--navy); }
.filmstrip .cap { color: var(--ink-soft); font-family: var(--font-ui); font-size: 0.9rem; margin: 0.75rem auto 0; }
.filmstrip.static { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- member quotes ---------- */
.quote { margin: 0; background: var(--sand); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; gap: 0.9rem; }
.quote img { width: 3.5rem; height: 3.5rem; border-radius: 50%; object-fit: cover; }
.quote blockquote { margin: 0; font-size: 1.1rem; line-height: 1.45; color: var(--navy); }
.quote figcaption { font-family: var(--font-ui); font-weight: 700; color: var(--glass-deep); }

/* ---------- video-backed call to action ---------- */
.video-cta { position: relative; overflow: hidden; background: var(--navy) url("/assets/hero-poster.jpg") center / cover no-repeat; color: var(--sand-2); padding: clamp(3.5rem, 9vw, 7rem) 0; }
.video-cta::before { content: ""; position: absolute; inset: 0; background: rgba(11,34,51,.72); z-index: 1; }
.video-cta .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.video-cta .inner { position: relative; z-index: 2; }
.video-cta h2 { color: var(--sand-2); }
.video-cta .lede, .video-cta p { color: #E7EEF3; }
.video-cta .eyebrow { color: #BFE7F1; }
@media (max-width: 640px) { .video-cta .bg { display: none; } }
@media (prefers-reduced-motion: reduce) { .video-cta .bg { display: none; } }
/* light variant: the bay breathes faintly behind sand-colored content (used behind the visit form) */
.video-cta.light { color: var(--ink); padding: clamp(3rem, 8vw, 6.5rem) 0; }
.video-cta.light::before { background: rgba(236,231,220,.88); }
.video-cta.light h2 { color: var(--navy); }
.video-cta.light .lede, .video-cta.light p { color: var(--ink); }
.video-cta.light .eyebrow { color: var(--glass-deep); }

/* ---------- sermon pull-quote ---------- */
.pull { margin: 0; }
.pull p { font-family: var(--font-display); font-weight: 800; text-transform: none; font-size: clamp(1.4rem, 3.2vw, 2.4rem); line-height: 1.15; color: var(--navy); margin: 0 0 0.75rem; max-width: 26ch; letter-spacing: 0; }
.pull footer { font-family: var(--font-ui); font-weight: 600; color: var(--ink-soft); }
