/* =========================
   MERCIL FOUNDATION
   Main Website Styles
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #176b3a;
    --primary-dark: #0e4d2a;
    --secondary: #f5b700;
    --light: #f6f9f7;
    --dark: #17231b;
    --text: #3f4943;
    --white: #ffffff;
    --border: #dfe7e1;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1150px;
    margin: auto;
}


/* =========================
   HEADER
========================= */

header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    min-height: 75px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}


/* =========================
   MAIN WEBSITE LOGO
========================= */

.logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;

    flex-shrink: 0;
    width: auto;
    min-width: 0;

    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
    white-space: nowrap;
}

.logo img {
    width: 42px !important;
    height: 42px !important;
    max-width: 42px !important;
    min-width: 42px;
    object-fit: contain;
    border-radius: 6px;
    flex-shrink: 0;
}

.logo span {
    display: inline-block;
    color: var(--secondary);
    white-space: nowrap;
}


/* =========================
   NAVIGATION
========================= */

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
    list-style: none;
    margin-left: auto;
}

.nav-links a {
    font-weight: 600;
    color: var(--dark);
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-btn {
    background: var(--primary);
    color: var(--white) !important;
    padding: 10px 17px;
    border-radius: 7px;
}

.nav-btn:hover {
    background: var(--primary-dark);
}


/* =========================
   HERO SLIDESHOW
========================= */

.hero {
    min-height: 570px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: var(--white);
}

.hero-slideshow {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    opacity: 0;
    transform: scale(1.05);

    transition:
        opacity 1.5s ease-in-out,
        transform 6s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;

    background:
        linear-gradient(
            rgba(10, 45, 25, 0.70),
            rgba(10, 45, 25, 0.70)
        );
}

.hero .container {
    position: relative;
    z-index: 2;
}


/* =========================
   SECTIONS
========================= */

.section {
    padding: 80px 0;
}

.section-light {
    background: #f3f7f4;
}

.section-title {
    text-align: center;
    margin-bottom: 45px;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.section-title p {
    max-width: 650px;
    margin: auto;
}


/* =========================
   CARDS
========================= */

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.card-icon {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.card h3 {
    color: var(--dark);
    margin-bottom: 10px;
}


/* =========================
   PAGE HERO
========================= */

.page-hero {
    position: relative;
    background:
        linear-gradient(
            rgba(14, 77, 42, 0.92),
            rgba(23, 107, 58, 0.88)
        );
    color: var(--white);
    padding: 90px 20px;
    text-align: center;
    overflow: hidden;
}

.page-hero::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border: 2px solid rgba(245, 183, 0, 0.25);
    border-radius: 50%;
    right: -80px;
    top: -80px;
}

.page-hero h1 {
    position: relative;
    z-index: 1;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    margin-bottom: 12px;
}

.page-hero p {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: auto;
    font-size: 1.1rem;
    opacity: 0.92;
}


/* =========================
   ABOUT
========================= */

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 55px;
    align-items: center;
}

.about-grid h2 {
    color: var(--dark);
    font-size: 2.1rem;
    margin-bottom: 18px;
}

.about-grid p {
    margin-bottom: 16px;
}

.about-box {
    padding: 35px;
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--border);
    border-top: 5px solid var(--secondary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.about-box h3 {
    color: var(--primary);
    margin-bottom: 12px;
}


/* =========================
   DONATION
========================= */

.donation-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 950px;
    margin: auto;
}

.donation-card {
    padding: 40px 30px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--white);
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: 0.3s ease;
}

.donation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.09);
}

.donation-card h2 {
    color: var(--primary);
    margin-bottom: 15px;
}

.payment-placeholder {
    margin: 25px 0;
    padding: 20px;
    background: var(--light);
    border-radius: 10px;
    border-left: 4px solid var(--secondary);
}


/* =========================
   CONTACT
========================= */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.contact-card {
    text-align: center;
    padding: 35px 25px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
}

.contact-card h3 {
    color: var(--primary);
    margin-bottom: 10px;
}


/* =========================
   CTA
========================= */

.cta {
    position: relative;
    background:
        linear-gradient(
            135deg,
            var(--primary-dark),
            var(--primary)
        );
    color: var(--white);
    text-align: center;
    padding: 80px 20px;
    overflow: hidden;
}

.cta::before {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    border: 2px solid rgba(245, 183, 0, 0.18);
    border-radius: 50%;
    left: -120px;
    bottom: -150px;
}

.cta h2,
.cta p,
.cta a {
    position: relative;
    z-index: 1;
}

.cta h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 15px;
}

.cta p {
    max-width: 600px;
    margin: 0 auto 28px;
}


/* =========================
   FOOTER
========================= */

footer {
    background: #102117;
    color: #dce8df;
    padding: 45px 0 20px;
}

.footer-content,
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 35px;
    margin-bottom: 30px;
}

.footer-section {
    min-width: 0;
}

footer h3 {
    color: var(--white);
    margin-bottom: 12px;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer li {
    margin-bottom: 8px;
}

footer a:hover {
    color: var(--secondary);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 18px;
    text-align: center;
    font-size: 0.9rem;
}


/* =========================
   RESPONSIVE NAVIGATION
========================= */

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 5px;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 800px) {

    .about-grid,
    .donation-grid,
    .contact-grid,
    .cards,
    .footer-content,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .page-hero {
        padding: 70px 20px;
    }

    .page-hero h1 {
        font-size: 2.2rem;
    }

    .navbar {
        position: relative;
        flex-direction: row;
        min-height: 70px;
        padding: 12px 0;
    }


    /* =========================
       MOBILE LOGO
    ========================= */

    .logo {
        gap: 7px;
        font-size: 1.15rem;
        max-width: calc(100% - 55px);
    }

    .logo img {
        width: 38px !important;
        height: 38px !important;
        max-width: 38px !important;
        min-width: 38px;
    }

    .logo span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }


    /* =========================
       MOBILE MENU BUTTON
    ========================= */

    .menu-toggle {
        display: block;
        flex-shrink: 0;
    }


    /* =========================
       MOBILE NAVIGATION
    ========================= */

    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;

        display: none;
        flex-direction: column;
        align-items: center;
        gap: 0;

        margin-left: 0;

        background: var(--white);
        border-top: 1px solid var(--border);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);

        padding: 10px 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 13px 20px;
    }

    .nav-links a:hover {
        background: var(--light);
    }


    /* =========================
       MOBILE HERO
    ========================= */

    .hero {
        min-height: 520px;
    }


    /* =========================
       MOBILE SECTIONS
    ========================= */

    .section {
        padding: 55px 0;
    }


    /* =========================
       MOBILE FORM
    ========================= */

    .form-container {
        padding: 22px;
    }
}