/* Possible Life International Ministries - public site. Colours come from the church logo:
   royal blue lettering, red tagline, orange flame, sky-blue pool. */
:root {
  --blue: #1d2fd6; --blue-600: #1626b4; --blue-deep: #0b1466; --night: #070a2e;
  --red: #d7191f; --flame: #ff6a00; --gold: #ffb81c; --sky: #bfeaf9;
  --ink: #111433; --text: #3d4160; --muted: #6d7192; --line: #e4e6f2; --tint: #f4f6fd; --paper: #fff;
  --radius: 18px; --shadow: 0 18px 50px -22px rgba(11, 20, 102, .35);
  --display: 'Fraunces', Georgia, 'Times New Roman', serif; --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--text); background: var(--paper); line-height: 1.65; font-size: 17px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.12; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.015em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 44px); margin-inline: auto; }
.narrow { width: min(800px, 100% - 44px); }
.center { text-align: center; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 10px; left: 10px; z-index: 100; background: #fff; padding: 10px 16px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; font: 600 .95rem/1 var(--sans); padding: .85em 1.35em; border-radius: 999px; border: 2px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s, color .15s; text-decoration: none !important; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn-lg { font-size: 1.02rem; padding: 1.05em 1.7em; }
.btn-block { width: 100%; }
.btn-flame { background: linear-gradient(135deg, var(--flame), var(--red)); color: #fff; box-shadow: 0 12px 26px -12px rgba(215, 25, 31, .8); }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 12px 26px -14px rgba(29, 47, 214, .9); }
.btn-blue:hover { background: var(--blue-600); }
.btn-white { background: #fff; color: var(--blue-deep); }
.btn-glass { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .35); backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgba(255, 255, 255, .2); }
.btn-ghost { color: var(--blue); border-color: rgba(29, 47, 214, .3); }
.btn-ghost:hover { background: rgba(29, 47, 214, .07); }
.btn-ghost-dark { color: var(--ink); border-color: var(--line); }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.link { font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 1.6em; }

/* header */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: box-shadow .2s, border-color .2s; }
.nav.scrolled { border-color: var(--line); box-shadow: 0 8px 30px -20px rgba(11, 20, 102, .5); }
.nav-in { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none !important; }
.brand img { width: 46px; height: 46px; object-fit: contain; border-radius: 50%; }
.brand span { display: flex; flex-direction: column; line-height: 1.1; }
.brand strong { font-family: var(--display); font-size: 1.22rem; color: var(--blue); letter-spacing: -.01em; }
.brand em { font-style: normal; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--red); font-weight: 600; }
.brand-light strong { color: #fff; } .brand-light em { color: var(--gold); }
.menu { display: flex; align-items: center; gap: 6px; }
.menu > a:not(.btn) { color: var(--ink); font-weight: 500; font-size: .95rem; padding: .55em .8em; border-radius: 999px; text-decoration: none; }
.menu > a:not(.btn):hover, .menu > a.on { color: var(--blue); background: rgba(29, 47, 214, .07); }
.menu .btn { margin-left: 8px; padding: .7em 1.2em; }
.nav-toggle { display: none; width: 46px; height: 46px; border: 0; background: none; cursor: pointer; padding: 12px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* hero */
.hero, .page-head { position: relative; isolation: isolate; overflow: hidden; color: #dfe3ff;
  background: radial-gradient(120% 90% at 85% -10%, #2a3ff0 0%, transparent 55%), radial-gradient(90% 70% at 0% 0%, #16229e 0%, transparent 60%), linear-gradient(180deg, #0d1680 0%, var(--night) 100%); }
.hero-photo { background-size: cover; background-position: center; }
.flames { position: absolute; inset: auto -10% -38% -10%; height: 78%; z-index: -1; pointer-events: none; opacity: .9;
  background: radial-gradient(38% 60% at 22% 100%, rgba(255, 106, 0, .55), transparent 70%), radial-gradient(34% 70% at 52% 100%, rgba(255, 184, 28, .42), transparent 70%), radial-gradient(40% 58% at 80% 100%, rgba(215, 25, 31, .5), transparent 70%);
  filter: blur(26px); animation: glow 9s ease-in-out infinite alternate; }
@keyframes glow { from { transform: translateY(0) scaleY(1); } to { transform: translateY(-4%) scaleY(1.12); } }
.hero-photo .flames { display: none; }
.hero-in { padding: clamp(70px, 11vw, 150px) 0 clamp(60px, 8vw, 110px); max-width: 880px; margin-left: max(22px, calc((100% - 1180px) / 2)); }
.hero h1, .page-head h1 { color: #fff; }
.hero h1 { font-size: clamp(2.7rem, 7.2vw, 5.6rem); letter-spacing: -.03em; }
.lead { font-size: clamp(1.08rem, 1.7vw, 1.32rem); max-width: 46em; color: #cfd5ff; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.4em; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--flame)); box-shadow: 0 0 0 5px rgba(255, 184, 28, .18); }
.live { width: 9px; height: 9px; border-radius: 50%; background: #ff3b3b; box-shadow: 0 0 0 0 rgba(255, 59, 59, .7); animation: pulse 1.8s infinite; display: inline-block; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 59, 59, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 59, 59, 0); } }
.times { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); border-top: 1px solid rgba(255, 255, 255, .16); }
.time { padding: 24px 22px 30px 0; }
.time + .time { padding-left: 22px; border-left: 1px solid rgba(255, 255, 255, .16); }
.time span { display: block; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: #9aa4ee; margin-bottom: 6px; }
.time strong { font-family: var(--display); font-size: 1.28rem; color: #fff; font-weight: 600; }
.page-head { padding: clamp(60px, 8vw, 110px) 0 clamp(50px, 6vw, 84px); }
.page-head h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); max-width: 16em; }
.page-head-slim h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }

/* sections */
.section { padding: clamp(64px, 8vw, 116px) 0; }
.section-top { padding-top: 60px; }
.section-tint { background: var(--tint); }
.section-dark { background: linear-gradient(180deg, var(--blue-deep), var(--night)); color: #c9cff7; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .link { color: var(--gold); }
.kicker { font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--red); margin-bottom: .9em; }
.section-dark .kicker, .give-band .kicker { color: var(--gold); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.body-lg { font-size: 1.12rem; }
.h-sub { margin-top: 70px; font-size: 1.6rem; }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 84px); align-items: center; }
.stack { display: grid; gap: 18px; align-content: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; margin-bottom: 50px; }
.expect { display: grid; gap: 16px; }
.card-soft { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow); }
.card-soft p:last-child { margin-bottom: 0; }
.card-soft .num { font: 700 .8rem var(--sans); color: var(--flame); letter-spacing: .1em; }
.card-soft h3 { margin: .3em 0 .35em; }
.card-accent { border-left: 5px solid var(--flame); }
.meta { font-size: .86rem; color: var(--muted); margin-bottom: .5em; }
.empty { padding: 40px; text-align: center; background: var(--tint); border-radius: var(--radius); color: var(--muted); }
.notice { display: flex; align-items: center; gap: 12px; background: var(--tint); border: 1px solid var(--line); padding: 16px 22px; border-radius: 14px; margin-bottom: 36px; font-weight: 500; }
.rounded { border-radius: var(--radius); margin-bottom: 30px; width: 100%; }

/* sermons */
.sermon { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); text-decoration: none !important; color: inherit; transition: transform .2s, box-shadow .2s; }
.sermon:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.sermon-art { aspect-ratio: 16 / 9; background-size: cover; background-position: center; position: relative; display: grid; place-items: center; }
.sermon-art-plain { background: radial-gradient(90% 120% at 80% 110%, rgba(255, 106, 0, .75), transparent 60%), radial-gradient(70% 100% at 10% 110%, rgba(215, 25, 31, .6), transparent 60%), linear-gradient(160deg, #2236e6, var(--blue-deep)); }
.sermon-art-plain span { font-family: var(--display); font-size: 1.5rem; color: #fff; padding: 0 22px; text-align: center; text-shadow: 0 2px 14px rgba(0, 0, 0, .35); }
.play { position: absolute; width: 58px; height: 58px; border-radius: 50%; background: rgba(255, 255, 255, .94); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.play::after { content: ''; position: absolute; left: 24px; top: 18px; border: 11px solid transparent; border-left: 17px solid var(--red); border-right: 0; }
.sermon-body { padding: 22px 24px 26px; }
.sermon-body h3 { margin-bottom: .3em; }
.by { font-size: .92rem; color: var(--muted); margin: 0; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 34px; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.scripture { font-family: var(--display); font-size: 1.5rem; color: var(--blue); border-left: 4px solid var(--flame); padding-left: 18px; }

/* events */
.event-list { display: grid; gap: 16px; }
.event { display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; padding: 22px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: inherit; text-decoration: none !important; transition: border-color .2s, box-shadow .2s, transform .2s; }
.event:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateX(4px); }
.event h3 { margin-bottom: .2em; } .event p { margin-bottom: .3em; } .event .meta { margin: 0; }
.date { width: 82px; height: 86px; border-radius: 16px; background: linear-gradient(160deg, var(--blue), var(--blue-deep)); color: #fff; display: grid; place-content: center; text-align: center; }
.date strong { font-family: var(--display); font-size: 2rem; line-height: 1; }
.date span { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-top: 5px; }
.event-go { font-weight: 600; color: var(--blue); white-space: nowrap; }
.event-list-past .event { opacity: .72; } .event-list-past .date { background: #8f94b8; } .event-list-past .date span { color: #fff; }

/* ministries */
.ministry { min-height: 230px; display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; border-radius: var(--radius); background-color: rgba(255, 255, 255, .06); background-size: cover; background-position: center; border: 1px solid rgba(255, 255, 255, .13); color: #c9cff7; text-decoration: none !important; position: relative; overflow: hidden; transition: transform .2s, border-color .2s, background-color .2s; }
.ministry::before { content: ''; position: absolute; left: 28px; top: 28px; width: 34px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--gold), var(--flame)); }
.ministry:hover { transform: translateY(-6px); border-color: var(--gold); background-color: rgba(255, 255, 255, .1); }
.ministry p { margin: 0; font-size: .95rem; }
.group { display: grid; gap: 20px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; scroll-margin-top: 100px; align-content: start; }
.group img { border-radius: 12px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.facts { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; font-size: .95rem; }
.facts li { display: grid; grid-template-columns: 76px 1fr; gap: 12px; }
.facts span { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; padding-top: 3px; }
.facts-wide li { grid-template-columns: 130px 1fr; }
.beliefs { counter-reset: b; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.beliefs li { counter-increment: b; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 24px 20px 74px; position: relative; font-size: 1.08rem; color: var(--ink); }
.beliefs li::before { content: counter(b, decimal-leading-zero); position: absolute; left: 24px; top: 18px; font: 600 1.25rem var(--display); color: var(--flame); }
.leader { text-align: center; padding: 34px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.leader img, .avatar { width: 148px; height: 148px; border-radius: 50%; object-fit: cover; margin: 0 auto 20px; }
.avatar { display: grid; place-items: center; background: linear-gradient(150deg, var(--blue), var(--blue-deep)); color: #fff; font: 600 2.6rem var(--display); box-shadow: 0 0 0 6px #fff, 0 0 0 9px var(--gold); }
.leader h3 { margin-bottom: .15em; } .leader .meta { color: var(--red); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: .76rem; }

/* give band */
.give-band { background: radial-gradient(70% 140% at 100% 100%, rgba(255, 184, 28, .55), transparent 60%), linear-gradient(120deg, var(--red), var(--flame)); color: #fff4e6; }
.give-band-in { display: flex; justify-content: space-between; align-items: center; gap: 40px; padding: clamp(54px, 7vw, 92px) 0; flex-wrap: wrap; }
.give-band h2 { color: #fff; } .give-band p { max-width: 36em; margin: 0; }
.give-band .actions { margin: 0; }

/* forms */
.give-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(26px, 4vw, 46px); box-shadow: var(--shadow); margin-bottom: 30px; }
.form-card h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); } .form-card h2 { font-size: 1.7rem; margin-bottom: .2em; }
.form { display: grid; gap: 18px; margin-top: 18px; }
.form label, .form legend { font-weight: 600; font-size: .9rem; color: var(--ink); display: grid; gap: 7px; }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; }
.form input:not([type=checkbox]), .form select, .form textarea { font: 400 1rem var(--sans); padding: .85em 1em; border: 1.5px solid var(--line); border-radius: 12px; background: #fbfbfe; color: var(--ink); width: 100%; transition: border-color .15s, box-shadow .15s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(29, 47, 214, .13); background: #fff; }
.form textarea { resize: vertical; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .check { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.form .check input { width: 18px; height: 18px; accent-color: var(--blue); }
.trap { position: absolute !important; left: -9999px; height: 0; overflow: hidden; }
.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.chip { font: 600 1.02rem var(--sans); padding: .8em; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; transition: all .15s; }
.chip:hover { border-color: var(--blue); }
.chip.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.amount { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; background: #fbfbfe; overflow: hidden; }
.amount:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(29, 47, 214, .13); }
.amount span { padding: 0 6px 0 18px; font-weight: 700; color: var(--muted); }
.form .amount input { border: 0 !important; box-shadow: none !important; background: transparent !important; font: 600 1.6rem var(--display) !important; padding-left: 6px !important; }
.fine { font-size: .84rem; color: var(--muted); margin: 0; }
.ok, .err, .warn { padding: 14px 18px; border-radius: 12px; font-weight: 500; }
.ok { background: #e9f8ee; color: #135c2c; border: 1px solid #bfe8cc; }
.err { background: #fdecec; color: #92161a; border: 1px solid #f5c2c4; }
.warn { background: #fff6dd; color: #6b4a00; border: 1px solid #f6dd9a; }
.quote { margin: 0; padding: 30px; border-radius: var(--radius); background: linear-gradient(160deg, var(--blue), var(--blue-deep)); color: #fff; font: 500 1.22rem/1.5 var(--display); }
.tick { width: 76px; height: 76px; border-radius: 50%; background: #e9f8ee; color: #1a8a43; font-size: 2.2rem; display: grid; place-items: center; margin: 0 auto 20px; }
.receipt { max-width: 380px; margin: 20px auto; text-align: left; background: var(--tint); padding: 18px 22px; border-radius: 12px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 26px; margin-top: 50px; font-weight: 600; }
.pager span { color: var(--muted); font-weight: 400; }

/* footer */
.footer { background: var(--night); color: #a9b0e0; padding-top: 74px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr .8fr; gap: 44px; padding-bottom: 54px; }
.footer h4 { font: 700 .76rem var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.3em; }
.footer a { color: #dfe3ff; } .footer p { margin-bottom: .7em; } .footer strong { color: #fff; font-weight: 600; }
.footer-tag { font: 500 1.3rem var(--display); color: #fff; margin-top: 20px; }
.social { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.social a { padding: .45em 1em; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; font-size: .86rem; text-decoration: none; }
.social a:hover { background: rgba(255, 255, 255, .1); }
.footer-base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 24px 0 30px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }
.footer-base a { color: #7f88c4; }

/* scroll reveal (only when the script is running) */
.js-reveal .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js-reveal .reveal.in { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .split, .give-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: block; }
  .menu { position: fixed; inset: 74px 0 0 0; background: #fff; flex-direction: column; align-items: stretch; padding: 22px; gap: 4px; transform: translateX(100%); visibility: hidden; transition: transform .25s, visibility .25s; overflow-y: auto; }
  .menu.open { transform: none; visibility: visible; }
  .menu > a:not(.btn) { font-size: 1.15rem; padding: .85em .6em; border-radius: 12px; }
  .menu .btn { margin: 12px 0 0; padding: 1em; }
  .menu-open { overflow: hidden; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid-3, .grid-2, .form .row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .time, .time + .time { padding: 16px 0; border-left: 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .times { grid-template-columns: 1fr; }
  .event { grid-template-columns: auto 1fr; gap: 16px; padding: 18px; }
  .event-go { display: none; }
  .date { width: 66px; height: 70px; } .date strong { font-size: 1.6rem; }
  .brand em { display: none; }
  .facts-wide li { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
