/* ==========================================================
   Brentwood Baptist Church — purple · white · black
   ========================================================== */
:root {
  --purple-900: #1d0b33;
  --purple-800: #2c0f4d;
  --purple-700: #3d1569;
  --purple: #5b2a91;
  --purple-500: #7339b5;
  --purple-300: #b48ae6;
  --purple-100: #efe6fa;
  --ink: #0b0910;
  --ink-2: #141019;
  --ink-3: #1d1824;
  --white: #ffffff;
  --paper: #f8f5fc;
  --text: #241d2e;
  --muted: #6b6178;
  --line: #e5ddef;
  --radius: 18px;
  --shadow: 0 20px 50px -20px rgba(29, 11, 51, .35);
  --display: "Playfair Display", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body { margin: 0; font-family: var(--sans); color: var(--text); background: var(--white); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; z-index: 999; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--purple-300); outline-offset: 3px; }

.eyebrow { font-size: .78rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--purple); margin: 0 0 .7rem; display: inline-flex; align-items: center; gap: .6rem; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.eyebrow--light { color: var(--purple-300); }
.h2 { font-family: var(--display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -.01em; }
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.section__note { color: var(--muted); margin: 0; font-size: .95rem; }
.section__note--light { color: #b9aec9; }
.dark { background: var(--ink); color: var(--white); }
.muted-light { color: #b9aec9; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .95rem 1.6rem; border-radius: 999px; font-weight: 700; font-size: .95rem; text-decoration: none; border: 2px solid transparent; transition: transform .25s, background .25s, color .25s, box-shadow .25s, border-color .25s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: .55rem 1.2rem; font-size: .88rem; }
.btn--primary { background: var(--purple); color: var(--white); box-shadow: 0 10px 24px -10px rgba(91, 42, 145, .8); }
.btn--primary:hover { background: var(--purple-500); }
.btn--ghost { background: rgba(255, 255, 255, .08); color: var(--white); border-color: rgba(255, 255, 255, .45); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: var(--white); color: var(--ink); }
.btn--outline-light { color: var(--white); border-color: rgba(255, 255, 255, .3); }
.btn--outline-light:hover { border-color: var(--purple-300); color: var(--purple-300); }
.btn--light { background: var(--white); color: var(--purple-800); }
.btn--light:hover { background: var(--purple-100); }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* Give button: soft shimmer sweep */
.btn--give { position: relative; overflow: hidden; background: var(--purple); color: var(--white); }
.btn--give::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-120%); animation: shimmer 4.5s ease-in-out infinite; }
@keyframes shimmer { 0%, 60% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); transition: background .35s, box-shadow .35s, height .35s; }
.nav.is-solid { background: rgba(11, 9, 16, .92); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; width: min(1280px, 100% - 40px); margin-inline: auto; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.brand__logo { display: block; height: 54px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a:not(.btn) { color: rgba(255, 255, 255, .85); text-decoration: none; font-weight: 600; font-size: .93rem; padding: .5rem .8rem; border-radius: 8px; position: relative; }
.nav__links a:not(.btn)::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .25rem; height: 2px; background: var(--purple-300); transform: scaleX(0); transition: transform .25s; }
.nav__links a:not(.btn):hover::after, .nav__links a.is-current::after { transform: scaleX(1); }
.nav__links .btn { margin-left: 10px; }
.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; flex-direction: column; justify-content: space-between; }
.nav__toggle span { display: block; height: 2px; background: var(--white); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* ---------- Hero banner ---------- */
.hero { position: relative; height: min(100svh, 900px); min-height: 600px; background: var(--ink); color: var(--white); overflow: hidden; }
.hero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.1s ease, visibility 1.1s; display: flex; align-items: center; }
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.12); }
.hero__slide.is-active .hero__bg { animation: kenburns 12s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.12) translate3d(0, 0, 0); } to { transform: scale(1) translate3d(-1%, -1%, 0); } }
.hero__slide::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(11, 9, 16, .92) 0%, rgba(29, 11, 51, .75) 45%, rgba(29, 11, 51, .25) 100%), linear-gradient(0deg, rgba(11, 9, 16, .8), transparent 40%); }
.hero__content { position: relative; z-index: 2; width: min(1200px, 100% - 40px); margin-inline: auto; padding-top: var(--nav-h); }
.hero__content > * { max-width: 680px; opacity: 0; transform: translateY(24px); }
.hero__slide.is-active .hero__content > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) forwards; }
.hero__slide.is-active .hero__content > :nth-child(2) { animation-delay: .12s; }
.hero__slide.is-active .hero__content > :nth-child(3) { animation-delay: .24s; }
.hero__slide.is-active .hero__content > :nth-child(4) { animation-delay: .36s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero .eyebrow { color: var(--purple-300); }
.hero__title { font-family: var(--display); font-size: clamp(2.6rem, 6.4vw, 5rem); font-weight: 700; letter-spacing: -.015em; margin-bottom: 1.2rem; }
.hero__sub { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255, 255, 255, .82); margin: 0 0 2rem; }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #ff4d6d; box-shadow: 0 0 0 0 rgba(255, 77, 109, .7); animation: live 1.8s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 10px rgba(255, 77, 109, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 77, 109, 0); } }
.hero__controls { position: absolute; z-index: 3; bottom: 36px; left: 50%; transform: translateX(-50%); width: min(1200px, 100% - 40px); display: flex; align-items: center; gap: 14px; }
.hero__arrow, .hero__pause { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .06); color: var(--white); display: grid; place-items: center; transition: background .25s; }
.hero__arrow:hover, .hero__pause:hover { background: var(--purple); border-color: var(--purple); }
.hero__arrow svg, .hero__pause svg { width: 18px; height: 18px; }
.hero__pause { margin-left: auto; }
.hero__dots { display: flex; gap: 8px; }
.hero__dot { width: 46px; height: 44px; border: 0; background: none; padding: 0; display: flex; align-items: center; }
.hero__dot span { display: block; width: 100%; height: 3px; background: rgba(255, 255, 255, .25); border-radius: 3px; overflow: hidden; position: relative; }
.hero__dot span::after { content: ""; position: absolute; inset: 0; background: var(--white); transform: scaleX(0); transform-origin: left; }
.hero__dot.is-active span::after { animation: progress var(--hero-interval, 6s) linear forwards; }
.hero.is-paused .hero__dot.is-active span::after { animation-play-state: paused; }
@keyframes progress { to { transform: scaleX(1); } }

/* ---------- Ticker ---------- */
.ticker { background: var(--purple); color: var(--white); overflow: hidden; border-block: 1px solid rgba(255, 255, 255, .12); }
.ticker__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__list { display: flex; list-style: none; margin: 0; padding: 0; }
.ticker__list li { display: flex; align-items: center; gap: 14px; padding: 14px 28px; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.ticker__list svg { width: 14px; height: 14px; color: var(--purple-300); stroke-width: 3; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Service times ---------- */
.times { background: var(--ink-2); color: var(--white); padding: 44px 0; }
.times__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 20px; align-items: center; }
.times__intro h2 { font-family: var(--display); font-size: 1.9rem; }
.times__intro p:last-child { margin: .3rem 0 0; color: #b9aec9; }
.times__intro .eyebrow { margin-bottom: .4rem; }
.time-card { padding: 20px 22px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; background: linear-gradient(160deg, rgba(91, 42, 145, .25), transparent); display: flex; flex-direction: column; }
.time-card__time { font-family: var(--display); font-size: 1.7rem; font-weight: 700; }
.time-card__label { color: #c9bedb; font-size: .9rem; font-weight: 600; }

/* ---------- Pastor ---------- */
.pastor { background: var(--white); }
.pastor__grid { display: grid; grid-template-columns: 6fr 6fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.pastor__photo { margin: 0; position: relative; }
.pastor__photo::before { content: ""; position: absolute; inset: 24px -24px -24px 24px; border-radius: var(--radius); background: var(--purple); z-index: 0; }
.pastor__photo img { position: relative; z-index: 1; border-radius: var(--radius); aspect-ratio: 1 / 1; object-fit: cover; object-position: center 20%; width: 100%; height: auto; box-shadow: var(--shadow); }
.pastor__photo figcaption { position: absolute; z-index: 2; left: -16px; bottom: 32px; background: var(--ink); color: var(--white); padding: 14px 20px; border-radius: 12px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.pastor__photo figcaption span { color: var(--purple-300); font-size: .85rem; font-weight: 600; }
.pastor__msg { margin-top: 1.4rem; font-size: 1.08rem; color: #3d344a; }
.pastor__msg p:first-child::first-letter { font-family: var(--display); font-size: 3.6rem; float: left; line-height: .9; margin: .35rem .6rem 0 0; color: var(--purple); }
.pastor__sig { font-family: var(--display); font-style: italic; font-size: 1.8rem; color: var(--purple); margin: 1.4rem 0 0; }

/* ---------- Sermons ---------- */
.sermons { background: radial-gradient(1200px 500px at 85% 0%, rgba(91, 42, 145, .35), transparent 60%), var(--ink); }
.sermons__grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 28px; align-items: start; }
.player { border-radius: var(--radius); overflow: hidden; background: var(--ink-3); box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .8); }
.player__poster, .player iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; position: relative; background: #000; }
.player__poster img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .3s, transform .6s; }
.player__poster:hover img { opacity: 1; transform: scale(1.03); }
.player__play { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%; background: var(--purple); color: var(--white); display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(91, 42, 145, .35); transition: transform .3s; }
.player__play svg { width: 34px; height: 34px; margin-left: 4px; }
.player__poster:hover .player__play { transform: scale(1.08); }
.player__meta { padding: 20px 24px 24px; }
.player__meta h3 { font-family: var(--display); font-size: 1.5rem; }
.player__meta p { margin: .3rem 0 0; color: #b9aec9; font-size: .92rem; }
.sermon-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sermon { width: 100%; display: grid; grid-template-columns: 128px 1fr; gap: 14px; align-items: center; text-align: left; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); border-radius: 14px; padding: 10px; color: var(--white); transition: background .25s, border-color .25s; }
.sermon:hover { background: rgba(255, 255, 255, .08); }
.sermon.is-playing { border-color: var(--purple-300); background: rgba(91, 42, 145, .25); }
.sermon img { border-radius: 9px; aspect-ratio: 16 / 9; object-fit: cover; }
.sermon__text { display: flex; flex-direction: column; gap: 2px; }
.sermon__text strong { font-size: .97rem; line-height: 1.3; }
.sermon__text small { color: #a99dbb; font-size: .8rem; }

/* ---------- Events marquee ---------- */
.events { background: var(--paper); overflow: hidden; }
.marquee { position: relative; padding: 10px 0 24px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee:focus-visible { outline-offset: -3px; }
.marquee__track { display: flex; gap: 24px; width: max-content; animation: marquee calc(var(--count) * 7s) linear infinite; padding-left: 24px; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track, .marquee.is-paused .marquee__track { animation-play-state: paused; }
.event { width: 320px; flex: none; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 12px 30px -18px rgba(29, 11, 51, .45); border: 1px solid var(--line); transition: transform .35s, box-shadow .35s; }
.event:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.event__img { height: 190px; background-size: cover; background-position: center; position: relative; }
.event__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(29, 11, 51, .45), transparent 55%); }
.event__date { position: absolute; z-index: 1; top: 14px; left: 14px; background: var(--white); color: var(--purple); border-radius: 12px; padding: 6px 12px; text-align: center; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; line-height: 1.1; }
.event__date b { display: block; font-family: var(--display); font-size: 1.6rem; color: var(--ink); letter-spacing: 0; }
.event__body { padding: 20px 22px 24px; }
.event__body h3 { font-family: var(--display); font-size: 1.3rem; margin-bottom: .4rem; }
.event__meta { color: var(--purple); font-weight: 700; font-size: .85rem; margin: 0 0 .6rem; }
.event__body p:last-child { margin: 0; color: var(--muted); font-size: .93rem; }

/* ---------- Ministries ---------- */
.ministries { background: linear-gradient(180deg, var(--ink) 0%, var(--purple-900) 100%); }
.min-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.min-card { text-align: left; color: var(--white); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09); border-radius: var(--radius); padding: 26px 24px; display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; transition: transform .35s, border-color .35s, background .35s; }
.min-card::before { content: ""; position: absolute; inset: auto -40% -60% auto; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(115, 57, 181, .55), transparent 70%); opacity: 0; transition: opacity .4s; }
.min-card:hover { transform: translateY(-6px); border-color: rgba(180, 138, 230, .55); background: rgba(91, 42, 145, .18); }
.min-card:hover::before { opacity: 1; }
.min-card__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--purple); display: grid; place-items: center; margin-bottom: 6px; }
.min-card__icon svg { width: 26px; height: 26px; }
.min-card strong { font-family: var(--display); font-size: 1.3rem; }
.min-card__desc { color: #c4b8d6; font-size: .92rem; flex: 1; }
.min-card__cta { color: var(--purple-300); font-weight: 700; font-size: .88rem; display: inline-flex; align-items: center; gap: 6px; }
.min-card__cta svg { width: 16px; height: 16px; transition: transform .25s; }
.min-card:hover .min-card__cta svg { transform: translateX(4px); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: .86rem; }
.form .opt { font-weight: 500; opacity: .65; }
.form input, .form select, .form textarea { font: inherit; font-weight: 500; font-size: 1rem; padding: .85rem 1rem; border-radius: 12px; border: 1.5px solid var(--line); background: var(--white); color: var(--text); width: 100%; transition: border-color .2s, box-shadow .2s; }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px rgba(91, 42, 145, .15); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .btn { justify-self: start; }
.form__status { margin: 0; font-weight: 600; font-size: .95rem; min-height: 1.4em; }
.form__status.is-ok { color: #0f8a5f; }
.form__status.is-err { color: #c0264b; }
.checks { display: grid; gap: 8px; }
.form .check { display: flex; gap: 10px; align-items: center; font-weight: 500; font-size: .93rem; }
.form .check input { width: 18px; height: 18px; accent-color: var(--purple); padding: 0; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form--card { background: var(--white); padding: clamp(24px, 4vw, 40px); border-radius: 22px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.form--card h3 { font-family: var(--display); font-size: 1.7rem; }

/* ---------- Church forms (Jotform links) ---------- */
.forms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.form-link { display: flex; flex-direction: column; gap: 10px; padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); text-decoration: none; transition: transform .3s, border-color .3s, box-shadow .3s; }
.form-link:hover { transform: translateY(-4px); border-color: var(--purple-300); box-shadow: var(--shadow); }
.form-link__icon { width: 46px; height: 46px; border-radius: 12px; background: var(--purple-100); color: var(--purple); display: grid; place-items: center; }
.form-link__icon svg { width: 24px; height: 24px; }
.form-link strong { font-family: var(--display); font-size: 1.2rem; flex: 1; }
.form-link__cta { color: var(--purple); font-weight: 700; font-size: .88rem; display: inline-flex; align-items: center; gap: 6px; }
.form-link__cta svg { width: 15px; height: 15px; transition: transform .25s; }
.form-link:hover .form-link__cta svg { transform: translate(2px, -2px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.h2 .live-dot { display: inline-block; vertical-align: middle; margin-right: .35em; width: 14px; height: 14px; }

/* ---------- Prayer ---------- */
.prayer { background: linear-gradient(135deg, var(--purple-800) 0%, var(--purple) 55%, var(--purple-500) 100%); color: var(--white); position: relative; overflow: hidden; }
.prayer::before { content: ""; position: absolute; width: 600px; height: 600px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .1); right: -200px; top: -250px; box-shadow: 0 0 0 80px rgba(255, 255, 255, .03), 0 0 0 160px rgba(255, 255, 255, .02); }
.prayer__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: center; position: relative; }
.prayer__intro p { color: rgba(255, 255, 255, .85); font-size: 1.05rem; }
.prayer__intro p:nth-of-type(2) { font-family: var(--display); font-size: 1.35rem; font-style: italic; color: var(--white); border-left: 3px solid var(--purple-300); padding-left: 18px; margin: 1.5rem 0; }
.prayer__intro p em { display: block; font-family: var(--sans); font-style: normal; font-size: .85rem; color: var(--purple-100); margin-top: 6px; letter-spacing: .05em; }
.form--glass { background: rgba(11, 9, 16, .28); border: 1px solid rgba(255, 255, 255, .16); padding: clamp(22px, 4vw, 36px); border-radius: 22px; backdrop-filter: blur(8px); }
.form--glass input, .form--glass textarea { background: rgba(255, 255, 255, .95); border-color: transparent; }
.form--glass .form__status.is-ok { color: #9ff0cd; }
.form--glass .form__status.is-err { color: #ffc2cf; }

/* ---------- Contact ---------- */
.contact { background: var(--paper); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.info-list { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 16px; align-items: flex-start; }
.info-ic { width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--ink); color: var(--purple-300); display: grid; place-items: center; }
.info-ic svg { width: 22px; height: 22px; }
.info-list small { display: block; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; font-size: .7rem; color: var(--muted); }
.info-list a { text-decoration: none; font-weight: 700; font-size: 1.05rem; }
.info-list a:hover { color: var(--purple); }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.social { width: 44px; height: 44px; border-radius: 50%; background: var(--purple); color: var(--white); display: grid; place-items: center; transition: transform .25s, background .25s; }
.social:hover { transform: translateY(-3px); background: var(--ink); }
.social svg { width: 20px; height: 20px; }
.map { margin-top: 28px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 12px 30px -20px rgba(29, 11, 51, .5); }
.map iframe { width: 100%; height: 260px; border: 0; display: block; filter: grayscale(.4) contrast(1.05); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #c9bedb; padding: 72px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { color: var(--white); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 1rem; }
.footer p { margin: 0 0 .4rem; font-size: .94rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--purple-300); }
.footer__tag { font-family: var(--display); font-style: italic; font-size: 1.15rem; color: var(--white); margin: 18px 0 !important; }
.footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .94rem; }
.footer__time { color: var(--purple-300); font-weight: 600; }
.socials--footer .social { background: rgba(255, 255, 255, .07); }
.socials--footer .social:hover { background: var(--purple); }
.footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 56px; padding: 22px 120px 28px 0; font-size: .85rem; color: #8d82a0; }

/* ---------- Floating Give button ---------- */
.give-fab { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: flex; align-items: center; gap: 10px; padding: 12px 22px 12px 14px; border-radius: 999px; background: linear-gradient(135deg, var(--purple-500), var(--purple-700)); color: var(--white); text-decoration: none; font-weight: 800; letter-spacing: .04em; box-shadow: 0 14px 30px -10px rgba(61, 21, 105, .8); animation: breathe 3.2s ease-in-out infinite; transition: transform .3s; }
.give-fab:hover { transform: translateY(-3px) scale(1.04); animation-play-state: paused; }
.give-fab__icon { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .18); display: grid; place-items: center; }
.give-fab__icon svg { width: 18px; height: 18px; fill: var(--white); animation: beat 3.2s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { box-shadow: 0 14px 30px -10px rgba(61, 21, 105, .8), 0 0 0 0 rgba(180, 138, 230, .45); } 50% { box-shadow: 0 14px 30px -10px rgba(61, 21, 105, .8), 0 0 0 12px rgba(180, 138, 230, 0); } }
@keyframes beat { 0%, 40%, 100% { transform: scale(1); } 20% { transform: scale(1.18); } 30% { transform: scale(.96); } }

/* ---------- Modal ---------- */
.modal { width: min(560px, 100% - 32px); max-height: calc(100svh - 32px); border: 0; border-radius: 24px; padding: clamp(24px, 4vw, 36px); color: var(--text); box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .6); overflow: auto; }
.modal::backdrop { background: rgba(11, 9, 16, .7); backdrop-filter: blur(4px); }
.modal[open] { animation: pop .35s cubic-bezier(.2, .8, .2, 1.1); }
.modal[open]::backdrop { animation: fade .3s; }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.97); } }
@keyframes fade { from { opacity: 0; } }
.modal__close-form { position: absolute; top: 14px; right: 14px; margin: 0; }
.modal__close { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--paper); font-size: 1.5rem; line-height: 1; color: var(--text); }
.modal__close:hover { background: var(--purple-100); }
.modal__head { display: flex; gap: 16px; align-items: center; margin-bottom: 8px; padding-right: 40px; }
.modal__icon { width: 56px; height: 56px; flex: none; border-radius: 16px; background: var(--purple); color: var(--white); display: grid; place-items: center; }
.modal__icon svg { width: 28px; height: 28px; }
.modal__head .eyebrow { margin-bottom: .2rem; }
.modal__head h3 { font-family: var(--display); font-size: 1.6rem; }
.modal__desc { color: var(--muted); margin: 0 0 18px; }
.forms-pick { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.forms-pick a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); font-weight: 600; text-decoration: none; transition: border-color .25s, background .25s; }
.forms-pick a:hover { border-color: var(--purple-300); background: var(--purple-100); }
.forms-pick svg { width: 16px; height: 16px; flex: none; color: var(--purple); }
.modal--video { width: min(960px, 100% - 32px); padding: 0; background: #000; overflow: visible; }
.modal--video .modal__close-form { top: -52px; right: 0; }
.modal__video { aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; }
.modal__video iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .times__grid { grid-template-columns: repeat(3, 1fr); }
  .times__intro { grid-column: 1 / -1; }
  .sermons__grid { grid-template-columns: 1fr; }
  .sermon-list { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
  .nav__toggle { display: flex; }
  .nav__links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 24px; background: var(--ink); box-shadow: 0 30px 40px -20px rgba(0, 0, 0, .6); opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .3s, transform .3s, visibility .3s; }
  .nav__links.is-open { opacity: 1; visibility: visible; }
  .nav__links.is-open { transform: none; }
  .nav__links a:not(.btn) { padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid rgba(255, 255, 255, .06); border-radius: 0; }
  .nav__links a:not(.btn)::after { display: none; }
  .nav__links .btn { margin: 16px 0 0; }
  .nav.is-open { background: rgba(11, 9, 16, .98); }
  .pastor__grid, .prayer__grid, .contact__grid { grid-template-columns: 1fr; }
  .pastor__photo { max-width: 560px; width: calc(100% - 24px); margin-inline: auto 24px; }
}
@media (max-width: 640px) {
  :root { --nav-h: 66px; }
  .wrap, .nav__inner, .hero__content, .hero__controls { width: calc(100% - 32px); }
  .brand__logo { height: 46px; }
  .hero { min-height: 560px; }
  .hero__arrow { display: none; }
  .hero__controls { bottom: 84px; }
  .hero__content { padding-bottom: 120px; }
  .times__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .times__grid .time-card:last-child:nth-child(even) { grid-column: 1 / -1; }
  .time-card__time { font-size: 1.4rem; }
  .sermon-list { grid-template-columns: 1fr; }
  .sermon { grid-template-columns: 112px 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .form .btn { justify-self: stretch; }
  .event { width: 272px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .give-fab { right: 14px; bottom: 14px; padding: 10px 18px 10px 10px; }
  .pastor__photo::before { bottom: auto; aspect-ratio: 1 / 1; }
  .pastor__photo figcaption { position: relative; left: auto; bottom: auto; margin-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .marquee__track, .ticker__track { animation: none !important; }
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .ticker__track { overflow-x: auto; width: auto; }
  .hero__content > * { opacity: 1; transform: none; }
}
