/* Straight From The Heart Ministries - public site */
:root {
  --ivory: #FBF8F3;
  --white: #FFFFFF;
  --ink: #1E1626;
  --body: #4A4053;
  --muted: #5E5468;
  --line: #E6DEEA;
  --plum: #5B2A86;
  --plum-dark: #3E1C5E;
  --tint: #F1EAF7;
  --night: #22142F;
  --night-text: #D9CDE4;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 20px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 17px/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--plum); }
a:hover { color: var(--plum-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0; color: var(--ink); }
p { margin: 0; }
:focus-visible { outline: 3px solid #9D6FD0; outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 10px 16px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-white { background: var(--white); border-block: 1px solid var(--line); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--plum); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.h-xl { font-size: clamp(40px, 6vw, 76px); line-height: 1.04; letter-spacing: -.01em; }
.h-lg { font-size: clamp(30px, 3.6vw, 44px); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px;
  border-radius: 999px; font: 600 16px/1 var(--sans); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; }
.btn-primary { background: var(--plum); color: #fff; }
.btn-primary:hover { background: var(--plum-dark); color: #fff; }
.btn-light { background: #fff; color: var(--plum-dark); }
.btn-light:hover { background: var(--tint); color: var(--plum-dark); }
.btn-ghost { border-color: rgba(255,255,255,.75); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-text { padding: 0 6px; color: var(--plum); }
.arrow-link { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.icon { width: 1em; height: 1em; flex: none; }

/* header */
.site-header { background: var(--ivory); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; }
.nav > a, .nav .dd > button { color: var(--ink); text-decoration: none; padding: 0 12px; min-height: 44px; display: inline-flex; align-items: center; gap: 4px;
  background: none; border: 0; font: inherit; cursor: pointer; border-radius: 10px; }
.nav > a:hover, .nav .dd > button:hover, .nav [aria-current="page"] { color: var(--plum); }
.nav > a.btn { border-radius: 999px; margin-left: 10px; min-height: 46px; padding: 0 22px; color: #fff; background: var(--plum); justify-content: center; }
.nav > a.btn:hover { background: var(--plum-dark); color: #fff; }
.dd { position: relative; }
.dd-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 230px; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 8px; box-shadow: 0 12px 32px rgba(34,20,47,.12); }
.dd.open .dd-menu, .dd:focus-within .dd-menu { display: block; }
@media (hover: hover) { .dd:hover .dd-menu { display: block; } }
.dd-menu a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.dd-menu a:hover { background: var(--tint); color: var(--plum-dark); }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 10px; color: var(--ink);
  align-items: center; justify-content: center; cursor: pointer; }
@media (max-width: 900px) {
  .site-header .wrap { min-height: 70px; }
  .brand img { height: 40px; }
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--ivory); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 8px 16px 20px; gap: 0; font-size: 17px; }
  .nav.open { display: flex; }
  .nav > a, .nav .dd > button { padding: 0 8px; min-height: 50px; width: 100%; justify-content: space-between; }
  .dd-menu { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 8px 12px; background: transparent; }
  .dd > button svg { display: none; }
  .nav > a.btn { margin: 12px 0 0; }
}

/* home hero */
.hero { color: #fff; background: linear-gradient(rgba(34,20,47,.74), rgba(34,20,47,.74)), var(--hero) center 40% / cover no-repeat, var(--night); }
.hero .wrap { padding-block: 120px 128px; display: flex; flex-direction: column; gap: 26px; }
.hero .eyebrow { color: #E2D3EF; }
.hero h1 { color: #fff; max-width: 820px; }
.hero .lead { font-size: 20px; line-height: 1.55; max-width: 640px; color: #EEE7F4; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

/* subpage hero */
.page-hero { color: #fff; background: linear-gradient(rgba(34,20,47,.70), rgba(34,20,47,.70)), var(--hero) center 40% / cover no-repeat, var(--night); }
.page-hero .wrap { padding-block: 96px 88px; display: flex; flex-direction: column; gap: 14px; }
.page-hero .eyebrow { color: #E2D3EF; }
.page-hero h1 { color: #fff; font-size: clamp(36px, 5vw, 60px); }

/* reflection */
.reflection { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.reflection img { width: 320px; height: 360px; object-fit: cover; border-radius: var(--radius); flex: none; }
.reflection .text { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.reflection p { font-size: 18px; line-height: 1.75; color: var(--body); max-width: 680px; }
.sig { font-family: var(--serif); font-style: italic; color: var(--muted); }
@media (max-width: 700px) { .reflection img { width: 100%; height: 300px; } .reflection { gap: 32px; } }

/* cards */
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 44px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 28px; }
.card { display: flex; flex-direction: column; background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card img { width: 100%; height: 220px; object-fit: cover; }
.card .body { padding: 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card .num { font-family: var(--serif); font-size: 15px; color: var(--plum); }
.card h3 { font-size: 26px; }
.card p { font-size: 16px; color: var(--body); flex: 1; }

/* stats */
.stats { background: var(--night); color: #fff; }
.stats .wrap { padding-block: 72px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 36px; }
.stat b { display: block; font: 600 52px/1 var(--serif); margin-bottom: 8px; }
.stat span { color: var(--night-text); font-size: 16px; }

/* latest newsletter + signup */
.duo { display: flex; flex-wrap: wrap; gap: 28px; }
.panel { flex: 1 1 420px; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 40px; }
.panel-tint { background: var(--tint); border-color: transparent; }
@media (max-width: 600px) { .panel { padding: 26px 22px; } }
.latest { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.pdf-thumb { width: 150px; height: 194px; flex: none; border-radius: 8px; background: var(--tint); border: 1px solid #DCCDE8; padding: 16px;
  display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; }
.pdf-thumb i { display: block; height: 6px; border-radius: 3px; background: #D3C2E2; margin-top: 6px; }
.pdf-thumb span { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--plum-dark); }
.latest h2 { font-size: 30px; }
.meta { color: var(--muted); font-size: 15px; }

/* forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-size: 14px; font-weight: 600; }
.input { height: 52px; width: 100%; border: 1px solid #CDBBDD; border-radius: 12px; padding: 0 16px; font: 16px var(--sans); background: #fff; color: var(--ink); }
.input:focus { outline: 3px solid #C9B0E3; border-color: var(--plum); }
.signup form { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.signup .row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.signup .send { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.signup .send .field { flex: 1 1 220px; }
.signup .send .btn { border-radius: 12px; min-height: 52px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.note { font-size: 13px; color: var(--muted); }
.flash { border-radius: 12px; padding: 14px 16px; font-size: 15px; }
.flash-ok { background: #E7F4EC; color: #14532D; border: 1px solid #B9DEC6; }
.flash-err { background: #FBEAEA; color: #8A1F1F; border: 1px solid #EFC4C4; }

/* testimonials */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 24px; }
.quote { margin: 0; padding: 32px; border-radius: var(--radius); background: var(--ivory); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: 18px; line-height: 1.55; flex: 1; }
.quote figcaption { font-size: 14px; font-weight: 600; color: var(--muted); }

/* donate band */
.give { background: var(--plum); color: #fff; border-radius: 28px; padding: 56px; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: space-between; }
.give h2 { color: #fff; }
.give .text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.give p { color: #EEE7F4; font-size: 18px; max-width: 580px; }
.give .small { font-size: 15px; color: #E2D3EF; }
@media (max-width: 600px) { .give { padding: 32px 22px; } .give .btn { width: 100%; } }

/* footer */
.site-footer { background: var(--night); color: var(--night-text); font-size: 15px; }
.site-footer a { color: #E9E1F0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .wrap { padding-block: 72px 32px; display: flex; flex-direction: column; gap: 48px; }
.foot-cols { display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; }
.foot-cols > div { display: flex; flex-direction: column; gap: 10px; line-height: 1.5; }
.foot-cols .about { flex: 1 1 300px; }
.foot-cols .about img { width: 240px; }
.foot-h { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #fff; }
.foot-bottom { border-top: 1px solid #3D2C4C; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; font-size: 14px; }
.foot-bottom a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }

/* article pages */
.article { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; }
.prose { max-width: 740px; font-size: 18px; line-height: 1.75; color: var(--body); }
.prose p + p { margin-top: 1.1em; }
.prose h2 { font-size: 32px; margin: 1.6em 0 .6em; }
.prose h3 { font-size: 24px; margin: 1.4em 0 .5em; }
.prose .callout { font-family: var(--serif); font-size: 22px; line-height: 1.5; color: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 24px 0; margin: 1.6em 0; }
.split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 56px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
.side-photos { display: grid; gap: 16px; }
.side-photos img { border-radius: 16px; width: 100%; object-fit: cover; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.gallery img { width: 100%; height: 240px; object-fit: cover; border-radius: 14px; }
.gallery a { display: block; border-radius: 14px; }
.help { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.help > div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 12px; }
.help svg { width: 36px; height: 36px; color: var(--plum); }
.help h3 { font-size: 24px; }
.help p { color: var(--body); font-size: 16px; }

/* newsletters page */
.year { margin-top: 56px; }
.year:first-child { margin-top: 0; }
.year h2 { font-size: 28px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.nl-list { list-style: none; margin: 0; padding: 0; }
.nl-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.nl-list .t { flex: 1 1 260px; display: flex; flex-direction: column; gap: 2px; }
.nl-list .t a { font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--ink); text-decoration: none; }
.nl-list .t a:hover { color: var(--plum); }
.nl-list .acts { display: flex; gap: 8px; }
.nl-list .btn { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-outline { border-color: #CDBBDD; color: var(--plum-dark); background: #fff; }
.btn-outline:hover { background: var(--tint); }

/* contact / donate */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.contact-grid > div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 10px; font-size: 18px; }
.contact-grid svg { width: 30px; height: 30px; color: var(--plum); }
.give-box { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 36px; }
.tabs { display: inline-flex; background: var(--tint); border-radius: 999px; padding: 4px; gap: 4px; margin-bottom: 24px; }
.tabs button { border: 0; background: transparent; border-radius: 999px; min-height: 44px; padding: 0 22px; font: 600 15px var(--sans); color: var(--plum-dark); cursor: pointer; }
.tabs button[aria-selected="true"] { background: #fff; box-shadow: 0 1px 3px rgba(34,20,47,.12); }
.amounts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-bottom: 18px; }
.amounts label { position: relative; }
.amounts input { position: absolute; opacity: 0; }
.amounts span { display: flex; align-items: center; justify-content: center; min-height: 56px; border: 1.5px solid #CDBBDD; border-radius: 12px; font-weight: 600; cursor: pointer; background: #fff; }
.amounts input:checked + span { border-color: var(--plum); background: var(--tint); color: var(--plum-dark); }
.amounts input:focus-visible + span { outline: 3px solid #9D6FD0; outline-offset: 2px; }
.money-input { position: relative; }
.money-input::before { content: "$"; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.money-input .input { padding-left: 30px; }

/* login */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 48px 16px; background: var(--tint); }
.login-card { width: 100%; max-width: 440px; background: #fff; border: 1px solid #E0D3EB; border-radius: 24px; padding: 44px 40px; display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 480px) { .login-card { padding: 32px 22px; } }
.login-card .logo { width: 220px; align-self: center; }
.login-card h1 { font-size: 30px; text-align: center; }
.login-card .sub { text-align: center; color: var(--muted); }
.login-card .input { height: 56px; font-size: 18px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--body); font-size: 15px; }
.check input { width: 20px; height: 20px; accent-color: var(--plum); }
.btn-block { width: 100%; border-radius: 12px; min-height: 56px; font-size: 18px; }
.quote > svg { width: 32px; height: 32px; color: var(--plum); }
.menu-btn svg { width: 22px; height: 22px; }

/* ---- gallery lightbox */
.gallery a { cursor: zoom-in; overflow: hidden; }
.gallery img { transition: transform .3s ease; }
.gallery a:hover img { transform: scale(1.03); }
.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: #1A1024; color: #fff; overscroll-behavior: contain; }
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 56px 72px 24px; box-sizing: border-box; }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 120px); object-fit: contain; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lightbox figcaption { font-size: 14px; color: rgba(255,255,255,.75); }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 999px; width: 48px; height: 48px; font-size: 32px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover, .lightbox button:focus-visible { background: rgba(255,255,255,.25); outline: none; }
.lightbox .lb-close { top: 12px; right: 12px; font-size: 30px; }
.lightbox .lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox.single .lb-prev, .lightbox.single .lb-next { display: none; }
@media (max-width: 600px) {
  .lightbox figure { padding: 56px 8px 72px; }
  .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 14px; transform: none; }
  .lightbox .lb-prev { left: calc(50% - 60px); }
  .lightbox .lb-next { right: calc(50% - 60px); }
}
@media (prefers-reduced-motion: reduce) { .gallery img { transition: none; } }
