:root {
    --primary: #0f766e;
    --primary-dark: #115e59;
    --accent: #f59e0b;
    --ink: #16213e;
    --muted: #667085;
    --soft: #f6f8f4;
    --white: #ffffff;
    --danger: #dc2626;
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--ink);
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

a {
    text-decoration: none;
}

img {
    display: block;
    height: auto;
    max-width: 100%;
}

.section-padding {
    padding: 90px 0;
}

.section-kicker,
.eyebrow {
    align-items: center;
    color: var(--primary);
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 800;
    gap: 8px;
    letter-spacing: 0;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.section-heading {
    margin-bottom: 42px;
    max-width: 720px;
}

.section-heading.text-center {
    margin-left: auto;
    margin-right: auto;
}

h1,
h2,
h3 {
    color: var(--ink);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.08;
}

h1 {
    color: var(--white);
    font-size: clamp(3rem, 8vw, 6.7rem);
    margin-bottom: 20px;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.3rem);
    margin-bottom: 18px;
}

h3 {
    font-size: 1.28rem;
}

.lead {
    color: #475467;
    font-weight: 500;
}

.navbar {
    --bs-navbar-padding-y: 0.78rem;
}

.navbar-brand {
    color: var(--ink);
    font-size: 1rem;
    line-height: 1;
}

.navbar-brand small {
    color: var(--muted);
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    margin-top: 4px;
    text-transform: uppercase;
}

.brand-mark {
    align-items: center;
    background: var(--primary);
    border-radius: var(--radius);
    color: var(--white);
    display: inline-flex;
    flex: 0 0 42px;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.nav-link {
    color: #344054;
    font-size: 0.94rem;
    font-weight: 700;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.btn {
    border-radius: var(--radius);
    font-weight: 800;
    letter-spacing: 0;
}

.btn-donate {
    background: var(--danger);
    border-color: var(--danger);
    color: var(--white);
    box-shadow: 0 10px 24px rgba(220, 38, 38, 0.22);
}

.btn-donate:hover,
.btn-donate:focus {
    background: #b91c1c;
    border-color: #b91c1c;
    color: var(--white);
}

.hero-section {
    background: url("https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?auto=format&fit=crop&w=1800&q=82") center/cover no-repeat;
    min-height: 85vh;
    overflow: hidden;
    position: relative;
}

.hero-overlay {
    background: linear-gradient(90deg, rgba(13, 24, 38, 0.9) 0%, rgba(13, 24, 38, 0.64) 52%, rgba(13, 24, 38, 0.18) 100%);
    inset: 0;
    position: absolute;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.page-hero {
    align-items: center;
    background: #101828 center/cover no-repeat;
    display: flex;
    min-height: 58vh;
    overflow: hidden;
    padding: 120px 0;
    position: relative;
}

.page-hero h1 {
    font-size: clamp(2.6rem, 6vw, 5rem);
    max-width: 980px;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    max-width: 760px;
}

.about-hero {
    background-image: url("https://images.unsplash.com/photo-1599059813005-11265ba4b4ce?auto=format&fit=crop&w=1800&q=82");
}

.services-hero {
    background-image: url("https://images.unsplash.com/photo-1469571486292-0ba58a3f068b?auto=format&fit=crop&w=1800&q=82");
}

.gallery-hero {
    background-image: url("https://images.unsplash.com/photo-1582213782179-e0d53f98f2ca?auto=format&fit=crop&w=1800&q=82");
}

.donate-hero,
.contact-hero,
.policy-hero {
    background-image: url("https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?auto=format&fit=crop&w=1800&q=82");
}

.min-vh-85 {
    min-height: 85vh;
    padding: 100px 0;
}

.hero-section .eyebrow {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    color: var(--white);
    padding: 9px 14px;
}

.hero-tagline {
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1.15rem, 2.4vw, 1.55rem);
    max-width: 760px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.urgent-bar {
    background: var(--accent);
    color: #241300;
    padding: 16px 0;
}

.stats-section {
    background: var(--white);
    margin-top: -58px;
    position: relative;
    z-index: 2;
}

.stat-card {
    background: var(--white);
    border: 1px solid #e5e7eb;
    border-radius: var(--radius);
    box-shadow: 0 18px 48px rgba(22, 33, 62, 0.09);
    height: 100%;
    padding: 26px 18px;
    text-align: center;
}

.stat-card span {
    color: var(--primary);
    display: block;
    font-size: clamp(1.7rem, 4vw, 2.45rem);
    font-weight: 900;
    line-height: 1;
}

.stat-card p {
    color: var(--muted);
    font-weight: 700;
    margin: 10px 0 0;
    overflow-wrap: anywhere;
}

.photo-stack {
    min-height: 540px;
    position: relative;
}

.photo-stack::before {
    border: 3px solid var(--accent);
    border-radius: var(--radius);
    content: "";
    height: 72%;
    position: absolute;
    right: 28px;
    top: 28px;
    width: 78%;
    z-index: 0;
}

.photo-main,
.photo-float {
    border-radius: var(--radius);
    box-shadow: 0 22px 60px rgba(22, 33, 62, 0.18);
    object-fit: cover;
    position: absolute;
    z-index: 1;
}

.photo-main {
    height: 430px;
    right: 0;
    top: 0;
    width: 78%;
}

.photo-float {
    border: 8px solid var(--white);
    bottom: 0;
    height: 260px;
    left: 0;
    width: 52%;
}

.trust-row {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.trust-row div {
    align-items: center;
    background: var(--soft);
    border-radius: var(--radius);
    color: var(--primary-dark);
    display: flex;
    font-weight: 800;
    gap: 10px;
    padding: 13px 16px;
}

.causes-section {
    background: var(--soft);
}

.cause-card {
    background: var(--white);
    border: 1px solid #e4e7ec;
    border-radius: var(--radius);
    padding: 30px;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.cause-card:hover {
    border-color: rgba(15, 118, 110, 0.35);
    box-shadow: 0 22px 46px rgba(22, 33, 62, 0.1);
    transform: translateY(-6px);
}

.cause-icon {
    align-items: center;
    background: rgba(15, 118, 110, 0.1);
    border-radius: var(--radius);
    color: var(--primary);
    display: inline-flex;
    font-size: 1.6rem;
    height: 58px;
    justify-content: center;
    margin-bottom: 24px;
    width: 58px;
}

.cause-card p {
    color: var(--muted);
}

.cause-card a {
    color: var(--primary);
    font-weight: 800;
}

.muted-section {
    background: var(--soft);
}

.impact-panel,
.value-card,
.service-detail,
.photo-card {
    background: var(--white);
    border: 1px solid #e4e7ec;
    border-radius: var(--radius);
    box-shadow: 0 18px 46px rgba(22, 33, 62, 0.08);
}

.impact-panel,
.value-card {
    padding: 30px;
}

.value-card i {
    align-items: center;
    background: rgba(15, 118, 110, 0.1);
    border-radius: var(--radius);
    color: var(--primary);
    display: inline-flex;
    font-size: 1.45rem;
    height: 54px;
    justify-content: center;
    margin-bottom: 22px;
    width: 54px;
}

.checked-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.checked-list li {
    color: #475467;
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
}

.checked-list li::before {
    color: var(--primary);
    content: "\f058";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    left: 0;
    position: absolute;
    top: 1px;
}

.service-detail {
    overflow: hidden;
}

.service-detail img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
}

.service-body {
    padding: 28px;
}

.service-body > i {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 16px;
}

.service-body h2 {
    font-size: 1.65rem;
}

.service-body .btn {
    margin-top: 16px;
}

.cta-stack {
    display: grid;
    gap: 12px;
}

.gallery-section {
    background: var(--white);
}

.masonry-gallery {
    display: grid;
    gap: 18px;
    grid-auto-flow: dense;
    grid-auto-rows: 190px;
    grid-template-columns: repeat(4, 1fr);
}

.gallery-tile {
    border-radius: var(--radius);
    grid-row: span 1;
    margin: 0;
    overflow: hidden;
    position: relative;
}

.gallery-tile.tall {
    grid-row: span 2;
}

.gallery-tile.wide {
    grid-column: span 2;
}

.gallery-tile img {
    height: 100%;
    object-fit: cover;
    transition: transform 220ms ease;
    width: 100%;
}

.gallery-tile:hover img {
    transform: scale(1.07);
}

.gallery-tile figcaption {
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
    bottom: 0;
    color: var(--white);
    font-weight: 800;
    inset-inline: 0;
    padding: 40px 18px 16px;
    position: absolute;
}

.before-after::before {
    background: var(--accent);
    color: #241300;
    content: "Impact Story";
    font-size: 0.76rem;
    font-weight: 900;
    left: 16px;
    padding: 7px 10px;
    position: absolute;
    top: 16px;
    z-index: 2;
}

.trust-section {
    background: #eef7f5;
}

.tax-badge,
.story-card,
.donate-form {
    background: var(--white);
    border: 1px solid #e4e7ec;
    border-radius: var(--radius);
    box-shadow: 0 18px 46px rgba(22, 33, 62, 0.08);
    padding: 30px;
}

.tax-badge i {
    color: var(--accent);
    font-size: 3rem;
    margin-bottom: 20px;
}

.story-card p {
    color: #475467;
    font-size: 1rem;
}

.story-card img {
    aspect-ratio: 16 / 10;
    border-radius: var(--radius);
    margin-bottom: 20px;
    object-fit: cover;
    width: 100%;
}

.story-card strong,
.story-card span {
    display: block;
}

.story-card span {
    color: var(--primary);
    font-size: 0.88rem;
    font-weight: 800;
}

.donate-section {
    background: linear-gradient(135deg, #fff 0%, #f4fbfa 100%);
}

.donation-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.donation-options span {
    background: var(--white);
    border: 1px solid rgba(15, 118, 110, 0.2);
    border-radius: var(--radius);
    color: var(--primary-dark);
    font-weight: 800;
    padding: 12px 14px;
}

.meal-pricing {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 24px;
}

.meal-card {
    background: #f8fafc;
    border: 1px solid #d0d5dd;
    border-radius: var(--radius);
    color: var(--ink);
    cursor: pointer;
    min-height: 92px;
    padding: 16px;
    text-align: left;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.meal-card:hover,
.meal-card.active {
    background: #ecfdf5;
    border-color: var(--primary);
    box-shadow: 0 14px 34px rgba(15, 118, 110, 0.14);
    transform: translateY(-3px);
}

.meal-card strong,
.meal-card span {
    display: block;
}

.meal-card strong {
    color: var(--primary-dark);
    font-size: 1.45rem;
    line-height: 1;
    margin-bottom: 8px;
}

.meal-card span {
    color: #475467;
    font-weight: 800;
}

.photo-card-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.photo-card {
    overflow: hidden;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.photo-card:hover {
    box-shadow: 0 24px 54px rgba(22, 33, 62, 0.14);
    transform: translateY(-5px);
}

.photo-card img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 220ms ease;
    width: 100%;
}

.photo-card:hover img {
    transform: scale(1.05);
}

.photo-card-body {
    padding: 22px;
}

.photo-card-body h2 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.photo-card-body p {
    color: var(--muted);
    margin: 0;
}

.form-control,
.form-select {
    border-color: #d0d5dd;
    border-radius: var(--radius);
    min-height: 48px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(15, 118, 110, 0.16);
}

.site-footer {
    background: #101828;
    color: rgba(255, 255, 255, 0.72);
    padding: 70px 0 24px;
}

.footer-brand {
    align-items: center;
    color: var(--white);
    display: inline-flex;
    font-weight: 900;
    gap: 12px;
}

.site-footer h3 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 18px;
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer li {
    margin-bottom: 10px;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.72);
}

.site-footer a:hover {
    color: var(--white);
}

.contact-list i {
    color: var(--accent);
    margin-right: 8px;
    width: 18px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    display: inline-flex;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.contact-panel {
    display: grid;
    gap: 14px;
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
}

.contact-panel li {
    align-items: flex-start;
    background: var(--soft);
    border: 1px solid #e4e7ec;
    border-radius: var(--radius);
    display: flex;
    gap: 12px;
    padding: 16px;
}

.contact-panel i {
    color: var(--primary);
    margin-top: 4px;
    width: 20px;
}

.contact-panel span,
.policy-content p,
.payment-summary dd {
    overflow-wrap: anywhere;
}

.policy-content {
    max-width: 900px;
}

.policy-content h2 {
    color: var(--ink);
    font-size: 1.55rem;
    margin-top: 34px;
}

.policy-content h2:first-child {
    margin-top: 0;
}

.policy-content p {
    color: #475467;
}

.payment-status-card {
    background: var(--white);
    border: 1px solid #e4e7ec;
    border-radius: var(--radius);
    box-shadow: 0 18px 46px rgba(22, 33, 62, 0.08);
    margin: 0 auto;
    max-width: 760px;
    padding: 42px;
    text-align: center;
}

.payment-status-card > i {
    font-size: 3.2rem;
    margin-bottom: 20px;
}

.payment-status-card h1 {
    color: var(--ink);
    font-size: clamp(2rem, 5vw, 3.2rem);
}

.payment-status-card p {
    color: #475467;
}

.payment-summary {
    display: grid;
    gap: 12px;
    margin: 24px auto;
    max-width: 520px;
    text-align: left;
}

.payment-summary div {
    background: var(--soft);
    border: 1px solid #e4e7ec;
    border-radius: var(--radius);
    padding: 14px 16px;
}

.payment-summary dt {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.payment-summary dd {
    color: var(--ink);
    font-weight: 800;
    margin: 3px 0 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    margin-top: 44px;
    padding-top: 24px;
}

@media (max-width: 991.98px) {
    .navbar-nav {
        align-items: stretch !important;
        padding-top: 16px;
    }

    .section-padding {
        padding: 70px 0;
    }

    .stats-section {
        margin-top: 0;
        padding-top: 18px;
    }

    .photo-stack {
        min-height: 430px;
    }

    .photo-main {
        height: 330px;
    }

    .photo-float {
        height: 220px;
    }

    .masonry-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .photo-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .min-vh-85 {
        min-height: 76vh;
        padding: 72px 0;
    }

    .hero-section {
        min-height: 76vh;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .photo-stack {
        min-height: 360px;
    }

    .photo-stack::before {
        height: 70%;
        right: 12px;
        top: 18px;
        width: 82%;
    }

    .photo-main {
        height: 280px;
        width: 86%;
    }

    .photo-float {
        border-width: 6px;
        height: 180px;
        width: 58%;
    }

    .masonry-gallery {
        grid-auto-rows: 180px;
        grid-template-columns: 1fr;
    }

    .meal-pricing,
    .photo-card-grid {
        grid-template-columns: 1fr;
    }

    .gallery-tile.wide,
    .gallery-tile.tall {
        grid-column: span 1;
        grid-row: span 1;
    }

    .footer-bottom {
        display: block;
    }
}
