/* ==========================================================================
   Voice Of The Poor Foundation - Main Stylesheet
   Theme colours carried over from the original site:
   orange #f06626, slate #222a33, green #57b22f
   ========================================================================== */

:root {
    --primary: #f06626;          /* original theme orange */
    --primary-deep: #cf4a14;     /* accessible orange for buttons / small text */
    --primary-soft: #fff1ea;
    --ink: #222a33;              /* original dark slate */
    --ink-2: #3d4651;
    --muted: #606b76;
    --green: #57b22f;
    --green-deep: #3f8a1f;
    --bg: #ffffff;
    --bg-alt: #faf6f2;
    --line: #ece5de;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 12px 34px rgba(34, 42, 51, .10);
    --shadow-sm: 0 4px 14px rgba(34, 42, 51, .08);
    --container: 1200px;
    --font-head: 'Poppins', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
    --font-body: 'Nunito Sans', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink-2);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img, iframe, video { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--primary-deep); text-decoration: none; transition: color .2s; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0 0 .6em; font-weight: 600; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.mt-lg { margin-top: 48px; }
.rounded { border-radius: var(--radius); }
.shadow { box-shadow: var(--shadow); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 8px; z-index: 1000; }
.skip-link:focus { top: 0; color: #fff; }
.hp-field { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 13px 28px; border: 2px solid transparent; border-radius: 999px;
    font-family: var(--font-head); font-weight: 600; font-size: .95rem; line-height: 1.2;
    cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0, 0, 0, .18); }
.btn-lg { padding: 16px 34px; font-size: 1rem; }
.btn-primary { background: var(--primary-deep); color: #fff; }
.btn-primary:hover { background: var(--ink); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--primary-deep); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--primary-deep); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .8); }
.btn-outline-light:hover { background: #fff; color: var(--ink); }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink); color: #d9dee3; font-size: .88rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 42px; }
.topbar a { color: #d9dee3; }
.topbar a:hover { color: var(--primary); }
.topbar-contact { display: flex; flex-wrap: wrap; gap: 4px 26px; list-style: none; }
.topbar-contact i { color: var(--primary); margin-right: 6px; }
.social { display: flex; gap: 8px; list-style: none; }
.social a {
    display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
    background: rgba(255, 255, 255, .08); color: #fff; font-size: .9rem; transition: background .2s, transform .2s;
}
.social a:hover { background: var(--primary-deep); color: #fff; transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); transition: box-shadow .25s; }
.site-header.is-stuck { box-shadow: 0 6px 24px rgba(34, 42, 51, .12); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 82px; gap: 20px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-logo { width: auto; height: 64px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; letter-spacing: .01em; }
.brand-text small { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--primary-deep); font-weight: 700; margin-top: 3px; }
.brand-light, .brand-light:hover, .site-footer .brand-light, .site-footer .brand-light:hover { color: #fff; }
.brand-light small { color: var(--primary); }
/* logo sits on a white badge so its deep-orange reads clearly on the dark footer */
.brand-light .brand-logo { height: 62px; padding: 7px; background: #fff; border-radius: 16px; box-shadow: 0 6px 16px rgba(0, 0, 0, .25); }

.primary-nav { display: flex; align-items: center; gap: 28px; }
.primary-nav ul { display: flex; gap: 6px; list-style: none; }
.primary-nav ul a {
    display: block; padding: 10px 16px; border-radius: 999px; color: var(--ink);
    font-family: var(--font-head); font-weight: 500; font-size: .95rem; transition: background .2s, color .2s;
}
.primary-nav ul a:hover { background: var(--primary-soft); color: var(--primary-deep); }
.primary-nav ul a[aria-current="page"] { background: var(--primary-soft); color: var(--primary-deep); font-weight: 600; }
.nav-donate[aria-current="page"] { background: var(--ink); }

.nav-toggle { display: none; width: 46px; height: 46px; border: 0; border-radius: 12px; background: var(--primary-soft); position: relative; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
    position: absolute; left: 12px; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s, top .25s;
}
.nav-toggle .bars { top: 22px; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; left: 0; }
.nav-toggle .bars::before { top: -7px; }
.nav-toggle .bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; height: clamp(560px, 80vh, 740px); background: var(--ink); overflow: hidden; }
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide { opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 1s; }
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 2; }
.hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; transform: scale(1.04); transition: transform 7s ease-out; }
.hero-slide.is-active img { transform: scale(1.12); }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(34, 42, 51, .9) 0%, rgba(34, 42, 51, .62) 48%, rgba(34, 42, 51, .12) 100%); }
.hero-content { position: relative; z-index: 3; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-bottom: 80px; max-width: var(--container); }
.hero-content > * { max-width: 680px; }
.hero-content h1, .hero-content h2 { color: #fff; font-size: clamp(2.2rem, 5.4vw, 4rem); font-weight: 700; margin-bottom: .45em; }
.hero-content p { color: #e8ecef; font-size: 1.15rem; max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; }
.hero-slide.is-active .hero-content > * { animation: rise .8s both; }
.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 { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--primary-deep); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 34px; height: 3px; border-radius: 3px; background: var(--primary); }
.eyebrow-light { color: #fff; }

.hero-controls { position: absolute; z-index: 5; left: 0; right: 0; bottom: 118px; display: flex; justify-content: center; align-items: center; gap: 18px; pointer-events: none; }
.hero-controls > * { pointer-events: auto; }
.hero-arrow { width: 46px; height: 46px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .08); color: #fff; transition: background .2s, border-color .2s; }
.hero-arrow:hover { background: var(--primary-deep); border-color: var(--primary-deep); }
.hero-dots { display: flex; gap: 10px; }
.hero-dots button { width: 12px; height: 12px; padding: 0; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .5); transition: width .3s, background .3s; }
.hero-dots button.is-active { width: 34px; background: var(--primary); }

/* ---------- Pillars (mission / vision / purpose) ---------- */
.pillars { position: relative; z-index: 6; margin-top: -76px; padding-bottom: 20px; }
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar { background: #fff; border-radius: var(--radius); padding: 34px 30px; box-shadow: var(--shadow); border-top: 5px solid var(--primary); display: flex; flex-direction: column; }
.pillar:nth-child(2) { border-top-color: var(--green); }
.pillar:nth-child(3) { border-top-color: var(--ink); }
.pillar-icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; background: var(--primary-soft); color: var(--primary-deep); margin-bottom: 18px; }
.pillar:nth-child(2) .pillar-icon { background: #ecf7e6; color: var(--green-deep); }
.pillar:nth-child(3) .pillar-icon { background: #e9ecef; color: var(--ink); }
.pillar p { color: var(--muted); font-size: .98rem; flex: 1; }
.link-arrow { font-family: var(--font-head); font-weight: 600; font-size: .92rem; display: inline-flex; gap: 8px; align-items: center; }
.link-arrow i { transition: transform .2s; }
.link-arrow:hover i { transform: translateX(5px); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin: 0 0 52px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-head.light h2, .section-head.light p { color: #fff; }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.split-reverse { grid-template-columns: 1fr 1.05fr; }
.split-text h2 { margin-bottom: .5em; }
.split-text .btn { margin-top: 10px; }
.checklist { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin: 22px 0 28px; }
.checklist li { font-weight: 600; color: var(--ink); font-size: .96rem; }
.checklist i { color: var(--green); margin-right: 6px; }

.split-media { position: relative; }
.video-frame { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--ink) url('../img/children.jpg') center / cover no-repeat; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.media-badge { position: absolute; left: -22px; bottom: -26px; display: flex; align-items: center; gap: 12px; background: var(--primary-deep); color: #fff; padding: 16px 22px; border-radius: var(--radius); box-shadow: var(--shadow); }
.media-badge strong { font-family: var(--font-head); font-size: 2.2rem; line-height: 1; }
.media-badge span { font-size: .85rem; font-weight: 700; line-height: 1.25; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Stats ---------- */
.stats { position: relative; padding: 84px 0; color: #fff; overflow: hidden; background: var(--ink); }
.stats-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.stats::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(34, 42, 51, .78), rgba(34, 42, 51, .9)); }
.stats-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; text-align: center; }
.stat-icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; color: #fff; background: var(--primary-deep); box-shadow: 0 0 0 8px rgba(240, 102, 38, .22); }
.stat-number { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.2rem, 4.5vw, 3.2rem); line-height: 1.1; }
.stat-label { font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .82rem; color: #d5dbe0; margin-top: 6px; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card { display: flex; flex-direction: column; background: #fff; padding: 32px 26px; border-radius: var(--radius); border: 1px solid var(--line); color: var(--muted); transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; color: var(--muted); }
.card h3 { margin-bottom: .45em; }
.card p { font-size: .96rem; flex: 1; }
.card-icon { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; font-size: 1.5rem; color: var(--primary-deep); background: var(--primary-soft); margin-bottom: 20px; transition: background .25s, color .25s; }
.card:hover .card-icon { background: var(--primary-deep); color: #fff; }
.card-more { font-family: var(--font-head); font-weight: 600; font-size: .88rem; color: var(--primary-deep); }
.card-more i { margin-left: 6px; transition: margin .2s; }
.card:hover .card-more i { margin-left: 12px; }

.mini-stats { display: flex; gap: 14px; margin: 24px 0 28px; flex-wrap: wrap; }
.mini-stats div { background: var(--primary-soft); border-radius: var(--radius-sm); padding: 14px 22px; }
.mini-stats strong { display: block; font-family: var(--font-head); font-size: 1.7rem; color: var(--primary-deep); line-height: 1.1; }
.mini-stats span { font-size: .85rem; font-weight: 700; color: var(--ink-2); }

/* ---------- Quote band ---------- */
.quote-band { background: var(--ink); color: #fff; padding: 84px 0; text-align: center; position: relative; overflow: hidden; }
.quote-band .fa-quote-left { font-size: 3rem; color: var(--primary); margin-bottom: 18px; }
.quote-band blockquote { margin: 0 auto; max-width: 860px; }
.quote-band p { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.5rem, 3.4vw, 2.4rem); line-height: 1.4; color: #fff; margin-bottom: 22px; }
.quote-band footer { font-size: .95rem; color: #cfd5da; }
.quote-band footer strong { color: #fff; margin-right: 10px; }
.quote-band footer span { color: var(--primary); text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; }

/* ---------- CTA ---------- */
.cta { position: relative; padding: 100px 0; text-align: center; color: #fff; overflow: hidden; background: var(--ink); }
.cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(34, 42, 51, .86), rgba(207, 74, 20, .78)); }
.cta-inner { position: relative; z-index: 2; }
.cta h2 { color: #fff; }
.cta p { font-size: 1.15rem; color: #f3f4f6; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

/* ---------- Page banner ---------- */
.page-banner { position: relative; padding: 92px 0 84px; color: #fff; background: var(--ink) center / cover no-repeat; overflow: hidden; }
.page-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(34, 42, 51, .92), rgba(34, 42, 51, .66)); }
.page-banner::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 6px; background: linear-gradient(90deg, var(--primary), var(--green)); }
.page-banner .container { position: relative; z-index: 2; }
.page-banner h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: .25em; }
.banner-lead { font-size: 1.2rem; color: #e3e7ea; margin-bottom: 22px; }
.page-about .page-banner { background-image: url('../img/hero-2.jpg'); }
.page-causes .page-banner { background-image: url('../img/hero-3.jpg'); }
.page-donation .page-banner { background-image: url('../img/children.jpg'); }
.page-contact .page-banner { background-image: url('../img/hero-2.jpg'); background-position: center 70%; }
.breadcrumb ol { display: flex; flex-wrap: wrap; list-style: none; gap: 0; font-size: .92rem; }
.breadcrumb li + li::before { content: "\f105"; font-family: FontAwesome; margin: 0 12px; color: var(--primary); }
.breadcrumb a { color: #fff; opacity: .85; }
.breadcrumb a:hover { opacity: 1; color: var(--primary); }
.breadcrumb li[aria-current] { color: var(--primary); font-weight: 700; }

/* ---------- About ---------- */
.facts { background: #fff; position: relative; z-index: 5; margin-top: -42px; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.fact { display: flex; align-items: center; gap: 16px; padding: 24px 26px; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact > i { font-size: 1.7rem; color: var(--primary); width: 34px; text-align: center; }
.fact strong { display: block; font-family: var(--font-head); font-size: 1rem; color: var(--ink); line-height: 1.3; }
.fact span { font-size: .85rem; color: var(--muted); line-height: 1.4; display: block; }

.tabs-layout { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
.tabs-nav { position: sticky; top: 110px; background: var(--bg-alt); border-radius: var(--radius); padding: 28px 22px; }
.tabs-title { font-size: 1.3rem; margin-bottom: 14px; padding-left: 10px; }
.tabs-nav ul { list-style: none; display: grid; gap: 6px; }
.tabs-nav a { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 12px; color: var(--ink); font-family: var(--font-head); font-weight: 500; font-size: .93rem; transition: background .2s, color .2s, transform .2s; }
.tabs-nav a i { width: 20px; text-align: center; color: var(--primary); }
.tabs-nav a:hover { background: #fff; transform: translateX(4px); }
.tabs-nav a.is-active { background: var(--primary-deep); color: #fff; box-shadow: 0 8px 18px rgba(207, 74, 20, .28); }
.tabs-nav a.is-active i { color: #fff; }

.tab-panel { margin-bottom: 56px; }
.js .tab-panel { display: none; margin-bottom: 0; }
.js .tab-panel.is-active { display: block; animation: rise .5s both; }
.tab-panel h2 { padding-bottom: 14px; position: relative; margin-bottom: 1em; }
.tab-panel h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--primary), var(--green)); }
.tab-panel h3 { margin-top: 1.8em; }
.lead { font-size: 1.15rem; color: var(--ink); }
.tick-list { list-style: none; display: grid; gap: 12px; margin: 0 0 1.4em; }
.tick-list li { position: relative; padding-left: 34px; }
.tick-list li::before { content: "\f00c"; font-family: FontAwesome; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .65rem; background: #ecf7e6; color: var(--green-deep); }
.value-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.value-chips span { padding: 10px 20px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-deep); font-family: var(--font-head); font-weight: 600; font-size: .9rem; }
.pullquote { margin: 0 0 2em; padding: 28px 32px; border-left: 5px solid var(--primary); background: var(--bg-alt); border-radius: 0 var(--radius) var(--radius) 0; }
.pullquote p { font-style: italic; margin: 0; color: var(--ink-2); }
.emphasis { font-family: var(--font-serif); font-style: italic; font-size: 1.5rem; line-height: 1.4; color: var(--primary-deep); margin-top: 1.4em; }

/* ---------- Causes ---------- */
.cause-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.cause { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 38px 36px; position: relative; scroll-margin-top: 120px; transition: box-shadow .25s, transform .25s; }
.cause:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.cause:target { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft), var(--shadow); }
.cause .tick-list { margin: 0; gap: 8px; font-size: .96rem; }
.cause p { color: var(--muted); }

.help { position: relative; padding: 96px 0; overflow: hidden; background: var(--ink); }
.help::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(34, 42, 51, .92), rgba(34, 42, 51, .82)); }
.help .container { position: relative; z-index: 2; }
.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.help-card { text-align: center; padding: 40px 28px; border-radius: var(--radius); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(4px); color: #e6e9ec; }
.help-card h3 { color: #fff; }
.help-icon { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; font-size: 1.8rem; color: #fff; background: var(--primary-deep); }
.share-row { display: flex; justify-content: center; gap: 12px; margin-top: 8px; }
.share-btn { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); font-size: 1.15rem; transition: transform .2s, background .2s, color .2s; }
.share-btn:hover { background: var(--primary-deep); color: #fff; transform: translateY(-3px); }

/* ---------- Donation ---------- */
.donate-layout { display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: start; }
.donate-frame { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin: 28px 0 14px; }
.donate-frame iframe { display: block; width: 100%; height: 1150px; border: 0; }
.note { font-size: .9rem; color: var(--muted); }
.note i { color: var(--green-deep); margin-right: 6px; }
.donate-side, .contact-side { display: grid; gap: 24px; position: sticky; top: 108px; }
.side-card { background: var(--bg-alt); border-radius: var(--radius); padding: 32px 30px; }
.side-card h3 { margin-bottom: .8em; }
.side-dark { background: var(--ink); color: #d9dee3; }
.side-dark h3 { color: #fff; }
.side-dark a:not(.btn) { color: #fff; }
.side-dark a:not(.btn):hover { color: var(--primary); }
.side-dark i { color: var(--primary); width: 22px; }
.side-dark .btn { margin-top: 8px; }
.side-dark .btn i { color: inherit; width: auto; }
.bank { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; }
.bank dt { font-weight: 700; color: var(--ink); }
.bank dd { margin: 0; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 390px; gap: 48px; align-items: start; }
.contact-form-wrap { scroll-margin-top: 110px; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); margin-top: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-family: var(--font-head); font-weight: 500; font-size: .88rem; color: var(--ink); margin-bottom: 8px; }
.field input, .field select, .field textarea {
    width: 100%; padding: 14px 16px; font: inherit; font-size: 1rem; color: var(--ink);
    background: var(--bg-alt); border: 2px solid transparent; border-radius: 12px; transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.alert { padding: 18px 22px; border-radius: var(--radius-sm); margin: 22px 0 0; font-weight: 600; }
.alert ul { margin: 8px 0 0 20px; font-weight: 400; }
.alert-ok { background: #ecf7e6; color: #2c6314; border: 1px solid #bfe3ac; }
.alert-error { background: #fdeceb; color: #8c1f14; border: 1px solid #f1b9b3; }
.info-list { list-style: none; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 16px; align-items: flex-start; }
.info-list i { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-deep); }
.info-list a { color: var(--ink); font-size: .94rem; overflow-wrap: anywhere; }
.info-list a:hover { color: var(--primary-deep); }
.map-section iframe { display: block; width: 100%; height: 420px; border: 0; filter: saturate(.9); }

/* ---------- 404 ---------- */
.notfound { padding: 120px 0; }
.big-404 { font-family: var(--font-head); font-weight: 700; font-size: clamp(6rem, 18vw, 11rem); line-height: 1; margin: 0; background: linear-gradient(135deg, var(--primary), var(--primary-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9d0d6; font-size: .96rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr; gap: 44px; padding-top: 76px; padding-bottom: 56px; }
.site-footer h3 { color: #fff; font-size: 1.1rem; margin-bottom: 1.2em; padding-bottom: 12px; position: relative; }
.site-footer h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 38px; height: 3px; border-radius: 3px; background: var(--primary); }
.site-footer a { color: #c9d0d6; }
.site-footer a:hover { color: var(--primary); }
.footer-about p { margin: 20px 0; }
.footer-links, .footer-contact { list-style: none; display: grid; gap: 11px; }
.footer-links a::before { content: "\f105"; font-family: FontAwesome; color: var(--primary); margin-right: 10px; }
.footer-contact li { display: flex; gap: 14px; }
.footer-contact i { color: var(--primary); margin-top: 6px; width: 16px; text-align: center; flex: none; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-top: 22px; padding-bottom: 22px; font-size: .88rem; }
.footer-bottom p { margin: 0; }

/* ---------- Floating buttons ---------- */
.float-btn { position: fixed; z-index: 90; width: 52px; height: 52px; border-radius: 50%; border: 0; display: grid; place-items: center; font-size: 1.4rem; color: #fff; box-shadow: 0 8px 22px rgba(0, 0, 0, .25); transition: transform .2s, opacity .3s, visibility .3s; }
.float-btn:hover { transform: translateY(-4px); color: #fff; }
.float-whatsapp { left: 20px; bottom: 20px; background: #25a244; }
.to-top { right: 20px; bottom: 20px; background: var(--ink); font-size: 1.05rem; opacity: 0; visibility: hidden; }
.to-top.is-visible { opacity: 1; visibility: visible; }

/* ---------- Scroll reveal (only when JS is available) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .facts-grid { grid-template-columns: repeat(2, 1fr); }
    .fact:nth-child(2) { border-right: 0; }
    .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .donate-layout, .contact-layout { grid-template-columns: 1fr; }
    .donate-side, .contact-side { position: static; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .nav-toggle { display: block; }
    .primary-nav {
        position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; align-items: stretch; gap: 14px;
        padding: 18px 24px 26px; box-shadow: 0 18px 30px rgba(34, 42, 51, .14); border-top: 1px solid var(--line);
        visibility: hidden; opacity: 0; transform: translateY(-10px); transition: opacity .25s, transform .25s, visibility .25s;
    }
    .primary-nav.is-open { visibility: visible; opacity: 1; transform: none; }
    .primary-nav ul { flex-direction: column; }
    .primary-nav ul a { padding: 14px 16px; }
    .nav-donate { width: 100%; }
    .site-header { position: sticky; }
    .header-inner { position: relative; }

    .pillar-grid { grid-template-columns: 1fr; }
    .pillars { margin-top: -56px; }
    .split, .split-reverse { grid-template-columns: 1fr; gap: 56px; }
    .split-reverse .split-media { order: 2; }
    .media-badge { left: 12px; bottom: -22px; }
    .tabs-layout { grid-template-columns: 1fr; gap: 28px; }
    .tabs-nav { position: static; padding: 18px; }
    .tabs-title { display: none; }
    .tabs-nav ul { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 6px; scrollbar-width: thin; }
    .tabs-nav a { white-space: nowrap; background: #fff; }
    .cause-grid, .help-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    body { font-size: 16px; }
    .container { padding: 0 18px; }
    .section { padding: 68px 0; }
    .topbar-inner { justify-content: center; }
    .topbar .social { display: none; }
    .topbar-contact { justify-content: center; gap: 2px 18px; font-size: .82rem; }
    .brand-text strong { font-size: 1rem; }
    .brand-logo { height: 50px; }
    .header-inner { min-height: 72px; }
    .hero { height: auto; min-height: 640px; }
    .hero-content { padding-top: 60px; padding-bottom: 150px; }
    .hero-controls { bottom: 90px; }
    .hero-actions .btn { width: 100%; }
    .checklist, .form-row { grid-template-columns: 1fr; gap: 0 20px; }
    .card-grid, .footer-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 34px 14px; }
    .stat-icon { width: 54px; height: 54px; font-size: 1.3rem; }
    .facts-grid { grid-template-columns: 1fr; }
    .fact { border-right: 0; border-bottom: 1px solid var(--line); }
    .fact:last-child { border-bottom: 0; }
    .donate-side, .contact-side { grid-template-columns: 1fr; }
    .donate-frame iframe { height: 1300px; }
    .form { padding: 24px 18px; }
    .cause { padding: 30px 24px; }
    .page-banner { padding: 68px 0 60px; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
    .media-badge { position: static; margin-top: 18px; display: inline-flex; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .reveal { opacity: 1; transform: none; }
}
