/* Yes We Can Foundation — public site styles
   Colours taken from the logo: maroon, ribbon red, warm gold, cream */
:root {
  --maroon: #7b1113;
  --maroon-dark: #560b0d;
  --red: #b3171c;
  --gold: #e9b93b;
  --gold-soft: #f6e2a6;
  --cream: #fbf6ec;
  --cream-2: #f4ead6;
  --ink: #2b1b16;
  --muted: #6f5d55;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(86, 11, 13, .08);
  --bs-body-font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-body-color: var(--ink);
  --bs-link-color-rgb: 123, 17, 19;
  --bs-link-hover-color-rgb: 86, 11, 13;
}

body { background: #fff; color: var(--ink); font-size: 1.02rem; line-height: 1.65; }
h1, h2, h3, .display-font { font-family: "Fraunces", Georgia, serif; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
h1 { line-height: 1.12; }
a { text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
.skip-link { position: absolute; left: 1rem; top: .5rem; z-index: 2000; background: #fff; padding: .5rem 1rem; border-radius: 8px; }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--maroon-dark); color: #f3dcc0; font-size: .86rem; padding: .35rem 0; }
.topbar a { color: #f3dcc0; text-decoration: none; }
.topbar a:hover { color: #fff; }

.site-header { background: rgba(255, 255, 255, .96); backdrop-filter: saturate(150%) blur(8px); border-bottom: 1px solid #efe4d2; }
.navbar { padding: .55rem 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 1.3rem; color: var(--maroon); }
.brand-sub { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.navbar .nav-link { font-weight: 500; color: var(--ink); padding: .5rem .8rem !important; border-radius: 8px; }
.navbar .nav-link:hover { color: var(--maroon); background: var(--cream); }
.navbar .nav-link.active { color: var(--maroon); font-weight: 700; }
.navbar-toggler { border: 0; font-size: 1.8rem; color: var(--maroon); }
.navbar-toggler:focus { box-shadow: 0 0 0 3px var(--gold-soft); }

.btn-donate { background: var(--red); color: #fff; border-radius: 999px; padding: .5rem 1.15rem; font-weight: 700; border: 0; }
.btn-donate:hover, .btn-donate:focus { background: var(--maroon); color: #fff; }
.btn-gold { background: var(--gold); color: var(--maroon-dark); font-weight: 700; border-radius: 999px; padding: .65rem 1.5rem; border: 0; }
.btn-gold:hover, .btn-gold:focus { background: #f2c94f; color: var(--maroon-dark); }
.btn-maroon { background: var(--maroon); color: #fff; border-radius: 999px; padding: .6rem 1.4rem; font-weight: 600; border: 0; }
.btn-maroon:hover, .btn-maroon:focus { background: var(--maroon-dark); color: #fff; }
.btn-outline-maroon { border: 2px solid var(--maroon); color: var(--maroon); border-radius: 999px; padding: .5rem 1.3rem; font-weight: 600; }
.btn-outline-maroon:hover { background: var(--maroon); color: #fff; }

.crumbs { background: var(--cream); border-bottom: 1px solid #efe4d2; font-size: .9rem; padding: .55rem 0; }
.crumbs .breadcrumb-item a { color: var(--maroon); text-decoration: none; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--maroon-dark); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(86,11,13,.92) 10%, rgba(86,11,13,.55) 60%, rgba(86,11,13,.2)); }
.hero .container { position: relative; z-index: 2; padding: 6.5rem 0 7rem; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.8rem); max-width: 14ch; }
.hero p.lead { max-width: 40ch; font-size: 1.2rem; color: #f8e9d6; }
.eyebrow { display: inline-block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--gold); margin-bottom: .75rem; }
.hero .eyebrow { background: rgba(233, 185, 59, .15); padding: .3rem .75rem; border-radius: 999px; }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-cream { background: var(--cream); }
.section-head { max-width: 640px; margin: 0 auto 2.5rem; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
.section-head p { color: var(--muted); }

.page-hero { background: var(--cream); padding: 3.5rem 0 3rem; border-bottom: 1px solid #efe4d2; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: .5rem; }
.page-hero p { color: var(--muted); max-width: 60ch; margin-bottom: 0; font-size: 1.1rem; }

/* ---------- Stats ---------- */
.stats { margin-top: -3.5rem; position: relative; z-index: 3; }
.stat-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.6rem 1rem; text-align: center; height: 100%; border-top: 4px solid var(--gold); }
.stat-num { font-family: "Fraunces", Georgia, serif; font-size: 2.4rem; font-weight: 700; color: var(--maroon); line-height: 1; }
.stat-label { color: var(--muted); margin-top: .4rem; font-weight: 500; }

/* ---------- Cards ---------- */
.card-soft { border: 0; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; height: 100%; background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.card-soft:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(86, 11, 13, .13); }
.card-soft .card-img-top { aspect-ratio: 16 / 10; object-fit: cover; background: var(--cream-2); }
.card-soft .card-body { padding: 1.35rem; }
.card-soft h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.card-soft h3 a { color: var(--ink); text-decoration: none; }
.card-soft h3 a::after { content: ""; position: absolute; inset: 0; }
.card-soft { position: relative; }
.card-meta { font-size: .86rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin-bottom: .5rem; }
.badge-up { background: var(--gold); color: var(--maroon-dark); font-weight: 700; }

.date-chip { position: absolute; top: 1rem; left: 1rem; background: #fff; border-radius: 10px; text-align: center; padding: .35rem .7rem; box-shadow: var(--shadow); line-height: 1.1; z-index: 2; }
.date-chip .d { font-family: "Fraunces", serif; font-weight: 700; font-size: 1.4rem; color: var(--maroon); display: block; }
.date-chip .m { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--muted); }

/* ---------- About split ---------- */
.split-img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.check-list { list-style: none; padding: 0; }
.check-list li { padding-left: 1.9rem; position: relative; margin-bottom: .6rem; }
.check-list li::before { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: 0; color: var(--red); font-size: 1.2rem; }
.mv-card { background: #fff; border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); height: 100%; border-left: 5px solid var(--maroon); }
.mv-card i { font-size: 1.8rem; color: var(--red); }

/* ---------- Team ---------- */
.team-card { text-align: center; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.8rem 1.2rem; height: 100%; }
.team-photo { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; border: 5px solid var(--cream-2); margin-bottom: 1rem; background: var(--cream-2); }
.team-card h3 { font-size: 1.15rem; margin-bottom: .1rem; }
.team-role { color: var(--red); font-weight: 600; font-size: .92rem; margin-bottom: .6rem; }
.team-bio { font-size: .92rem; color: var(--muted); }

/* ---------- Gallery ---------- */
.gallery-grid { columns: 3 260px; column-gap: 1rem; }
.gallery-item { break-inside: avoid; margin-bottom: 1rem; display: block; border-radius: 12px; overflow: hidden; position: relative; background: var(--cream-2); cursor: zoom-in; border: 0; padding: 0; width: 100%; }
.gallery-item img { width: 100%; display: block; transition: transform .35s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.2rem .8rem .6rem; color: #fff; font-size: .88rem; text-align: left; background: linear-gradient(transparent, rgba(0,0,0,.65)); opacity: 0; transition: opacity .25s; }
.gallery-item:hover .cap, .gallery-item:focus .cap { opacity: 1; }
.filter-pills .btn { border-radius: 999px; margin: 0 .25rem .5rem 0; }
.filter-pills .btn.active { background: var(--maroon); border-color: var(--maroon); color: #fff; }

.lightbox { position: fixed; inset: 0; background: rgba(20, 8, 6, .94); z-index: 3000; display: none; align-items: center; justify-content: center; flex-direction: column; padding: 1rem; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 94vw; max-height: 82vh; border-radius: 8px; }
.lightbox .lb-cap { color: #eee; margin-top: .8rem; text-align: center; max-width: 80ch; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.4rem; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ---------- Article / page content ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.6rem; margin-top: 2rem; }
.prose h3 { font-size: 1.3rem; margin-top: 1.6rem; }
.prose img { border-radius: 10px; margin: 1rem 0; }
.prose blockquote { border-left: 4px solid var(--gold); padding-left: 1rem; color: var(--muted); font-style: italic; }
.event-cover { width: 100%; max-height: 480px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.info-box { background: var(--cream); border-radius: var(--radius); padding: 1.4rem; }
.info-box dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.info-box dd { font-weight: 600; margin-bottom: .9rem; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem; }
.form-control, .form-select { border-radius: 10px; padding: .65rem .9rem; border-color: #e3d6c3; }
.form-control:focus, .form-select:focus { border-color: var(--gold); box-shadow: 0 0 0 .2rem rgba(233, 185, 59, .25); }
.form-label { font-weight: 600; font-size: .95rem; }
.hp-field { position: absolute; left: -5000px; }

.amount-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: .6rem; }
.amount-grid input { display: none; }
.amount-grid label { border: 2px solid #e3d6c3; border-radius: 12px; text-align: center; padding: .7rem .3rem; font-weight: 700; cursor: pointer; transition: all .15s; background: #fff; }
.amount-grid input:checked + label { border-color: var(--maroon); background: var(--maroon); color: #fff; }
.amount-grid label:hover { border-color: var(--maroon); }
.trust-list { list-style: none; padding: 0; margin: 0; }
.trust-list li { display: flex; gap: .75rem; margin-bottom: 1rem; }
.trust-list i { font-size: 1.4rem; color: var(--red); }

.contact-tile { display: flex; gap: 1rem; margin-bottom: 1.4rem; }
.contact-tile .ic { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 12px; display: grid; place-items: center; background: var(--cream-2); color: var(--maroon); font-size: 1.3rem; }
.map-wrap iframe { width: 100%; height: 320px; border: 0; border-radius: var(--radius); }

/* ---------- CTA & footer ---------- */
.cta-band { background: linear-gradient(110deg, var(--maroon) 0%, var(--red) 100%); color: #fff; padding: 2.5rem 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #f8e2cf; }
.site-footer { background: #1f0d0b; color: #f2e4d6; padding: 3.5rem 0 1.5rem; }
.site-footer a { color: #f2e4d6; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer hr { border-color: rgba(255, 255, 255, .15); margin: 2rem 0 1.2rem; }
.footer-brand { font-family: "Fraunces", serif; font-weight: 700; font-size: 1.2rem; color: #fff; }
.footer-h { font-family: "DM Sans", sans-serif; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 1rem; }
.footer-links li { margin-bottom: .45rem; }
.footer-links a { opacity: .85; }
.social a { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); margin-right: .35rem; }
.social a:hover { background: var(--gold); color: var(--maroon-dark); }
.wa-float { position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 1.7rem; box-shadow: 0 8px 20px rgba(0,0,0,.25); z-index: 1500; }
.wa-float:hover { color: #fff; transform: scale(1.06); }

.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty-state i { font-size: 2.5rem; color: var(--gold); }

@media (max-width: 991.98px) {
  .hero .container { padding: 4.5rem 0 5.5rem; }
  .navbar-collapse { padding: .5rem 0 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

.card-icon-top { aspect-ratio: 16 / 10; display: grid; place-items: center; background: linear-gradient(135deg, var(--cream-2), var(--gold-soft)); color: var(--maroon); font-size: 3.2rem; }
.split-img.card-icon-top { font-size: 5rem; }
.pagination .page-link { color: var(--maroon); }
.pagination .active > .page-link { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.form-check-input:checked { background-color: var(--maroon); border-color: var(--maroon); }
