/* Gospel Light Baptist Church — v6
   Calm light-gray canvas, big rounded photo cards of real people,
   one bright brand colour (the logo's sky blue) for action and energy. */

:root {
  --bg: #eef0f1;
  --card: #ffffff;
  --ink: #121417;
  --muted: #4b525a;
  --line: #d9dde0;
  --sky: #53c9e7;
  --sky-hi: #7bd7ee;
  --sky-ink: #0b5d77;
  --char: #1d2125;

  --font: "Inter Tight", "Inter Display", "Inter", system-ui, sans-serif;

  --r-lg: 28px;
  --r-md: 20px;
  --m: clamp(16px, 2.2vw, 28px);
  --wrap: 1280px;
  --pad: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(.16, 1, .3, 1);

  --t-hero: clamp(3rem, 7.2vw, 7.4rem);
  --t-h2: clamp(2.4rem, 4.6vw, 4.6rem);
  --t-h3: clamp(1.5rem, 1.9vw, 1.9rem);
  --t-lead: clamp(1.15rem, 1rem + .5vw, 1.4rem);
  --t-body: clamp(1.0625rem, 1rem + .2vw, 1.15rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; scrollbar-color: #9aa3aa var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--t-body)/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1.5px; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--sky); color: var(--ink); }
:focus-visible { outline: 3px solid var(--sky-ink); outline-offset: 3px; border-radius: 6px; }
.dark :focus-visible, .hero :focus-visible { outline-color: var(--sky); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

h1, h2, .h { font-weight: 700; letter-spacing: -0.035em; line-height: .98; text-wrap: balance; }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); font-weight: 650; letter-spacing: -0.02em; line-height: 1.12; }
.lead { font-size: var(--t-lead); line-height: 1.45; color: var(--muted); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: .55em; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 1.0625rem/1 var(--font); letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
  transition: transform .3s var(--ease), background-color .2s, color .2s, box-shadow .3s; }
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(.97); }
.btn-sky { background: var(--sky); color: var(--ink); }
.btn-sky:hover { background: var(--sky-hi); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #2c3238; }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }

/* ---------- header ---------- */
.util { background: var(--char); color: #dfe4e7; font-size: .875rem; }
.util .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 9px; padding-bottom: 9px; }
.util b { color: #fff; font-weight: 600; }
.util a { text-decoration: none; }
.util a:hover { color: var(--sky); }
.header { position: sticky; top: 0; z-index: 30; background: rgba(238,240,241,.92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
.header-in { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 10px; }
.brand span { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; line-height: 1.05; }
.brand small { display: block; font-weight: 500; font-size: .8125rem; color: var(--muted); letter-spacing: 0; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav ul a { display: block; padding: 10px 14px; border-radius: 999px; font-weight: 550; text-decoration: none; transition: background-color .2s; }
.nav ul a:hover { background: #e0e4e6; }
.nav ul a[aria-current="page"] { background: var(--card); }
.menu { display: none; border: 0; background: var(--card); width: 46px; height: 46px; border-radius: 50%; cursor: pointer; place-items: center; }

/* ---------- hero ---------- */
.hero { padding: 0 var(--m); }
.hero-card { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: min(84svh, 820px); display: flex; align-items: flex-end; color: #fff; isolation: isolate; background: #3a3f44; }
.hero-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 38%; z-index: -2; transform: scale(1.06); animation: settle 2.4s var(--ease) forwards; }
.hero-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,12,14,.05) 30%, rgba(10,12,14,.72) 100%); }
@keyframes settle { to { transform: scale(1); } }
.hero-in { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px; padding: clamp(28px, 4.5vw, 64px); }
.hero h1 { font-size: var(--t-hero); line-height: .94; letter-spacing: -0.045em; }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .ln > span { display: block; }
.hero p { margin-top: 22px; max-width: 36ch; font-size: var(--t-lead); line-height: 1.45; color: rgba(255,255,255,.92); }
.hero .acts { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }

.badge { position: absolute; top: clamp(20px, 3vw, 40px); right: clamp(20px, 3vw, 40px); width: clamp(110px, 10vw, 150px); aspect-ratio: 1; }
.badge svg.ring { width: 100%; height: 100%; animation: spin 26s linear infinite; }
.badge img { position: absolute; inset: 28%; width: 44%; height: 44%; border-radius: 10px; }
.badge text { fill: #fff; font: 700 9px var(--font); text-transform: uppercase; }
@keyframes spin { to { transform: rotate(360deg); } }

/* live Sunday card */
.sunday-card { background: var(--card); color: var(--ink); border-radius: var(--r-md); padding: 22px 22px 20px; width: 300px; }
.sunday-card .top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.sunday-card h2 { font-size: 1.25rem; letter-spacing: -0.02em; }
.sunday-card .live { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; font-weight: 600; color: var(--sky-ink); }
.sunday-card .live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sky); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.7); opacity: .45; } }
.sunday-card .date { color: var(--muted); font-size: .9375rem; margin: 0 0 12px; }
.count { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; }
.count div { background: var(--bg); border-radius: 12px; padding: 10px 6px 8px; text-align: center; }
.count b { display: block; font-size: 1.9rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.count span { font-size: .8125rem; color: var(--muted); }
.count.now { display: block; text-align: center; font-weight: 700; font-size: 1.15rem; padding: 14px; background: var(--sky); border-radius: 12px; }
.sunday-card dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0 0 16px; font-size: .9375rem; }
.sunday-card dt { font-weight: 700; font-variant-numeric: tabular-nums; }
.sunday-card dd { margin: 0; color: var(--muted); }
.sunday-card .btn { width: 100%; justify-content: center; min-height: 46px; font-size: 1rem; }

/* ---------- sections ---------- */
.sec { padding: clamp(80px, 9vw, 140px) 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: end; margin-bottom: clamp(36px, 4vw, 56px); }
.sec-head .lead { max-width: 42ch; justify-self: end; }

/* service cards */
.times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tcard { background: var(--card); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; transition: transform .45s var(--ease); }
.tcard:hover { transform: translateY(-6px); }
.tcard .ph { aspect-ratio: 4 / 3; overflow: hidden; margin: 10px 10px 0; border-radius: 14px; }
.tcard .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tcard:hover .ph img { transform: scale(1.05); }
.tcard .tx { padding: 22px 24px 26px; }
.tcard .when { font-size: .9375rem; font-weight: 600; color: var(--sky-ink); }
.tcard .big { font-size: clamp(2.6rem, 3.6vw, 3.4rem); font-weight: 700; letter-spacing: -0.045em; line-height: 1; margin: 6px 0 10px; }
.tcard p { color: var(--muted); }
.where { margin-top: 18px; background: var(--card); border-radius: var(--r-md); padding: 24px 26px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.where b { display: block; font-size: 1.35rem; letter-spacing: -0.02em; }
.where span { color: var(--muted); }
.where .acts { display: flex; gap: 10px; flex-wrap: wrap; }

/* first Sunday */
.first { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.first .ph { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; position: relative; }
.first .ph img { width: 100%; height: 100%; object-fit: cover; }
.first .ph .chip { position: absolute; left: 18px; bottom: 18px; background: var(--card); border-radius: 999px; padding: 10px 18px 10px 12px; display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .9375rem; }
.first .ph .chip i { width: 30px; height: 30px; border-radius: 50%; background: var(--sky); display: grid; place-items: center; font-style: normal; }
.first .ph .chip svg { width: 16px; height: 16px; }
.first h2 { margin-bottom: 18px; }
.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 10px; }
.steps li { display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: start; background: var(--card); border-radius: 16px; padding: 18px 20px; transition: transform .35s var(--ease), background-color .2s; }
.steps li:hover { transform: translateX(6px); }
.steps .t { font-weight: 700; font-size: 1.3rem; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 1.15rem; margin-bottom: 2px; }
.steps p { color: var(--muted); font-size: 1rem; }

/* sky band with moving photo strip */
.band { background: var(--sky); color: var(--ink); border-radius: var(--r-lg); margin: 0 var(--m); padding: clamp(70px, 8vw, 120px) 0 clamp(60px, 6vw, 90px); overflow: hidden; }
.band h2 { font-size: clamp(2.6rem, 5.2vw, 5.4rem); max-width: 22ch; }
.band .row { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; }
.band .row p { max-width: 38ch; font-size: var(--t-lead); line-height: 1.45; }
.strip { margin-top: clamp(44px, 5vw, 70px); display: flex; gap: 16px; width: max-content; animation: drift 60s linear infinite; }
.strip figure { width: clamp(220px, 22vw, 330px); aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; flex: none; }
.strip figure:nth-child(even) { aspect-ratio: 4 / 3.4; margin-top: 40px; }
.strip img { width: 100%; height: 100%; object-fit: cover; }
.band:hover .strip { animation-play-state: paused; }
@keyframes drift { to { transform: translateX(-50%); } }

/* pastor */
.pastor { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.pastor .ph { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 1; }
.pastor .ph img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.pastor h2 { margin-bottom: 20px; }
.pastor p { font-size: var(--t-lead); line-height: 1.5; color: var(--muted); max-width: 40ch; }
.pastor .acts { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }

/* questions */
.qa { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.qa .side .ph { margin-top: 30px; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 3; }
.qa .side .ph img { width: 100%; height: 100%; object-fit: cover; }
details { background: var(--card); border-radius: 16px; margin-bottom: 10px; transition: background-color .2s; }
summary { list-style: none; cursor: pointer; padding: 22px 64px 22px 24px; position: relative; font-weight: 650; font-size: 1.2rem; letter-spacing: -0.015em; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23121417' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/16px no-repeat; transition: transform .35s var(--ease), background-color .2s; }
details[open] summary::after { transform: rotate(45deg); background-color: var(--sky); }
summary:hover::after { background-color: var(--sky); }
details p { padding: 0 24px 24px; color: var(--muted); max-width: 60ch; }

/* know god */
.know { margin: 0 var(--m); border-radius: var(--r-lg); background: var(--char); color: #fff; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.know .tx { padding: clamp(40px, 6vw, 96px); display: flex; flex-direction: column; justify-content: center; }
.know h2 { margin-bottom: 20px; }
.know p { color: #c9d0d5; font-size: var(--t-lead); line-height: 1.5; max-width: 36ch; margin-bottom: 32px; }
.know .ph { min-height: 420px; position: relative; }
.know .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* footer */
.footer { padding: clamp(90px, 10vw, 150px) 0 30px; }
.sign { font-size: clamp(3.4rem, 10vw, 10rem); font-weight: 700; letter-spacing: -0.055em; line-height: .9; margin-bottom: clamp(40px, 5vw, 70px); }
.sign span { color: var(--sky-ink); }
.fgrid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 30px; padding: 10px 0 40px; }
.fgrid h3 { font-size: .9375rem; color: var(--muted); font-weight: 600; letter-spacing: 0; margin-bottom: 10px; }
.fgrid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fgrid a { text-decoration: none; }
.fgrid a:hover { text-decoration: underline; }
.fgrid .cta p { color: var(--muted); margin-bottom: 16px; max-width: 30ch; }
.fbot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; font-size: .9375rem; color: var(--muted); }

/* ---------- inner pages ---------- */
.phero { padding: 0 var(--m); }
.phero .hero-card { min-height: min(62svh, 600px); }
.phero .hero-card::after { background: linear-gradient(90deg, rgba(10,12,14,.62) 0%, rgba(10,12,14,.25) 60%, rgba(10,12,14,.1) 100%), linear-gradient(180deg, rgba(10,12,14,0) 40%, rgba(10,12,14,.55) 100%); }
.phero h1 { font-size: clamp(3rem, 7vw, 7rem); line-height: .94; letter-spacing: -0.045em; }
.phero p { margin-top: 18px; max-width: 40ch; font-size: var(--t-lead); color: rgba(255,255,255,.92); }
.prose p { margin-bottom: 1em; color: var(--muted); max-width: 52ch; font-size: var(--t-lead); line-height: 1.5; }
.facts { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.facts div { background: var(--card); border-radius: 16px; padding: 16px 22px; }
.facts b { display: block; font-size: 2.4rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.facts span { color: var(--muted); font-size: .9375rem; }
.beliefs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.belief { background: var(--card); border-radius: var(--r-md); padding: 26px 28px; }
.belief h3 { margin-bottom: 8px; }
.belief p { color: var(--muted); }
.belief .ref { display: inline-block; margin-top: 12px; font-size: .875rem; font-weight: 600; color: var(--sky-ink); }
.gospel { display: grid; gap: 12px; }
.g-step { background: var(--card); border-radius: var(--r-md); padding: clamp(26px, 3vw, 40px); display: grid; grid-template-columns: 70px minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px; align-items: start; }
.g-step .n { width: 52px; height: 52px; border-radius: 50%; background: var(--sky); display: grid; place-items: center; font-weight: 700; font-size: 1.2rem; }
.g-step h2 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); }
.g-step blockquote { font-size: var(--t-lead); line-height: 1.5; }
.g-step cite { display: block; margin-top: 10px; font-style: normal; font-weight: 600; color: var(--sky-ink); }
.map { border-radius: var(--r-lg); overflow: hidden; background: var(--card); min-height: 420px; }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; filter: saturate(.85); }
.nf { min-height: 60svh; display: grid; place-items: center; text-align: center; padding: 80px 20px; }
.nf h1 { font-size: clamp(4rem, 12vw, 10rem); letter-spacing: -0.055em; margin-bottom: 14px; }
.nf p { color: var(--muted); margin-bottom: 26px; font-size: var(--t-lead); }

/* ---------- motion ---------- */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.js .rv.in { opacity: 1; transform: none; }
.js .ph.rv { clip-path: inset(8% 8% 8% 8% round var(--r-lg)); transform: none; transition: clip-path 1.2s var(--ease), opacity .6s; }
.js .ph.rv.in { clip-path: inset(0 0 0 0 round 0px); }
.js .hero h1 .ln > span { transform: translateY(105%); transition: transform 1.1s var(--ease); }
.js .hero h1 .ln:nth-child(2) > span { transition-delay: .12s; }
.js.loaded .hero h1 .ln > span { transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .rv, .js .ph.rv { opacity: 1; transform: none; clip-path: none; }
  .js .hero h1 .ln > span { transform: none; }
  .hero-card > img { transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero-in { grid-template-columns: 1fr; }
  .sunday-card { width: 100%; max-width: 420px; }
  .times { grid-template-columns: 1fr 1fr; }
  .times .tcard:last-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .util .addr { display: none; }
  .menu { display: grid; }
  .nav { display: none; position: absolute; left: var(--m); right: var(--m); top: calc(100% + 6px); flex-direction: column; align-items: stretch; gap: 10px; background: var(--card); border-radius: var(--r-md); padding: 14px; }
  .nav.open { display: flex; }
  .nav ul { flex-direction: column; }
  .nav ul a { font-size: 1.35rem; font-weight: 650; padding: 12px 14px; }
  .nav .btn { justify-content: center; }
  .sec-head, .first, .pastor, .qa, .know { grid-template-columns: 1fr; }
  .sec-head .lead { justify-self: start; }
  .first .ph { aspect-ratio: 4 / 3.6; }
  .know .ph { min-height: 260px; order: -1; }
  .fgrid { grid-template-columns: 1fr 1fr; }
  .fgrid .cta { grid-column: 1 / -1; }
  .beliefs { grid-template-columns: 1fr; }
  .g-step { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 600px) {
  .brand small { display: none; }
  .util .wrap { justify-content: center; text-align: center; }
  .hero-card { min-height: 0; padding-top: 52vh; background: var(--char); }
  .hero-card > img { height: 62vh; bottom: auto; }
  .hero-card::after { background: linear-gradient(180deg, rgba(29,33,37,0) 0, rgba(29,33,37,0) 34vh, var(--char) 62vh); }
  .hero-in { padding: 0 22px 22px; gap: 26px; }
  .hero h1 { font-size: 11vw; }
  .badge { top: 16px; right: 16px; }
  .hero .acts .btn { flex: 1; justify-content: center; }
  .badge { width: 92px; }
  .times { grid-template-columns: 1fr; }
  .steps li { grid-template-columns: 1fr; gap: 4px; }
  .where .acts, .where .acts .btn { width: 100%; justify-content: center; }
  .strip figure { width: 58vw; }
  .phero h1 { font-size: 11.4vw; }
  .band h2 { font-size: 8.6vw; }
}
