/* =========================================================
   UPENDO CHILDREN'S CENTER
   Main Website Styles
========================================================= */

:root {
    --purple: #6b2c91;
    --purple-dark: #4b1d68;
    --purple-light: #f3eafa;

    --green: #4f9d45;
    --green-dark: #367332;
    --green-light: #eef8ec;

    --black: #171717;
    --dark: #242424;
    --white: #ffffff;

    --text: #444444;
    --muted: #777777;
    --light: #f7f7f7;
    --border: #e7e7e7;

    --shadow: 0 15px 40px rgba(0, 0, 0, 0.08);

    --radius: 18px;
    --transition: 0.3s ease;
}


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* ============================================================
   GALLERY HEADER LOGO FIX
============================================================ */

.site-header .site-logo {
    width: 58px;
    height: 58px;
    max-width: 58px;
    max-height: 58px;
    object-fit: contain;
    display: block;
}

.site-header .logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-header .logo-text {
    display: flex;
    flex-direction: column;
}

.site-header .logo-text strong {
    font-size: 16px;
    line-height: 1.2;
}

.site-header .logo-text span {
    font-size: 11px;
    line-height: 1.3;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
}

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

button {
    font-family: inherit;
}
/* ============================================================
   SHOP / PRODUCT HORIZONTAL LAYOUT
============================================================ */

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

.shop-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.product-row {
    display: grid;
    grid-template-columns: 42% 58%;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-row:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, .11);
}

.product-photo {
    min-height: 360px;
    background: var(--light);
}

.product-photo .image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 360px;
    border-radius: 0;
}

.product-info {
    padding: 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-category {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--green-dark);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.product-info h3 {
    margin-bottom: 15px;
    color: var(--black);
    font-size: 30px;
    line-height: 1.2;
}

.product-description {
    max-width: 520px;
    margin-bottom: 28px;
    color: var(--text);
    line-height: 1.8;
}

.product-details {
    display: flex;
    gap: 45px;
    padding: 20px 0;
    margin-bottom: 22px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.product-price,
.product-stock {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-price span,
.product-stock span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.product-price strong {
    color: var(--purple);
    font-size: 25px;
}

.product-stock strong {
    color: var(--green-dark);
    font-size: 16px;
}

.product-button {
    align-self: flex-start;
}


/* =========================
   SHOP RESPONSIVE
========================= */

@media (max-width: 800px) {

    .product-row {
        grid-template-columns: 1fr;
    }

    .product-photo {
        min-height: 300px;
    }

    .product-photo .image-placeholder {
        min-height: 300px;
    }

    .product-info {
        padding: 30px;
    }

    .product-info h3 {
        font-size: 26px;
    }

}


@media (max-width: 480px) {

    .product-photo {
        min-height: 240px;
    }

    .product-photo .image-placeholder {
        min-height: 240px;
    }

    .product-info {
        padding: 24px 20px;
    }

    .product-info h3 {
        font-size: 23px;
    }

    .product-details {
        flex-direction: column;
        gap: 18px;
    }

    .product-button {
        width: 100%;
        text-align: center;
    }

}


/* =========================================================
   GENERAL
========================================================= */

.section {
    padding: 100px 7%;
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 55px;
    text-align: center;
}

.section-label,
.eyebrow {
    display: inline-block;
    color: var(--purple);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-heading h2,
.section-content h2,
.involvement-content h2,
.donate-content h2 {
    color: var(--black);
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1.15;
    margin-bottom: 20px;
}

.section-heading p {
    color: var(--muted);
    max-width: 650px;
    margin: auto;
}


/* =========================================================
   NAVIGATION
========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--border);
}

.navbar {
    min-height: 82px;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    color: var(--black);
    white-space: nowrap;
}

.brand img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-links a {
    color: #444;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--purple);
}

.nav-links .nav-donate {
    background: var(--purple);
    color: var(--white);
    padding: 11px 20px;
    border-radius: 50px;
}

.nav-links .nav-donate:hover {
    background: var(--purple-dark);
    color: var(--white);
}

.menu-toggle {
    display: none;
    border: none;
    background: transparent;
    color: var(--black);
    font-size: 1.8rem;
    cursor: pointer;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    min-height: calc(100vh - 82px);
    padding: 70px 7%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 70px;
    background:
        linear-gradient(
            135deg,
            var(--purple-light),
            #ffffff 55%,
            var(--green-light)
        );
}

.hero-content {
    max-width: 650px;
}

.hero-content h1 {
    color: var(--black);
    font-size: clamp(3rem, 6vw, 5.4rem);
    line-height: 1.02;
    letter-spacing: -2px;
    margin-bottom: 25px;
}

.hero-content p {
    max-width: 570px;
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 13px 25px;
    border-radius: 50px;
    font-weight: 800;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--purple);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--purple-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    border-color: var(--purple);
    color: var(--purple);
    background: var(--white);
}

.btn-secondary:hover {
    background: var(--purple-light);
}

.btn-light {
    background: var(--white);
    color: var(--purple);
}

.btn-light:hover {
    transform: translateY(-2px);
    background: #f5f5f5;
}


/* =========================================================
   IMAGE PLACEHOLDERS
========================================================= */

.hero-image-placeholder {
    min-height: 550px;
    border-radius: 30px;
    background:
        linear-gradient(
            135deg,
            var(--purple),
            var(--green)
        );
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.hero-image-placeholder::before {
    content: "";
    width: 280px;
    height: 280px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    position: absolute;
}

.hero-image-placeholder span {
    position: relative;
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 4px;
}

.hero-image-placeholder small {
    position: relative;
    margin-top: 8px;
    font-size: 1rem;
}


/* =========================================================
   ABOUT
========================================================= */

.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.section-image {
    min-height: 500px;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 500px;
    border-radius: var(--radius);
    background:
        linear-gradient(
            135deg,
            var(--green),
            var(--purple)
        );
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    box-shadow: var(--shadow);
}

.section-content p {
    margin-bottom: 18px;
    color: var(--muted);
}

.text-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--purple);
    font-weight: 800;
}

.text-link:hover {
    color: var(--green-dark);
}


/* =========================================================
   CHILDREN / IMPACT
========================================================= */

.children-section {
    background: var(--light);
}

.impact-cards {
    max-width: 1150px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.impact-card {
    background: var(--white);
    padding: 35px;
    border-radius: var(--radius);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.impact-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow);
}

.card-icon {
    font-size: 2.3rem;
    margin-bottom: 15px;
}

.impact-card h3 {
    color: var(--black);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

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


/* =========================================================
   PROGRAMS
========================================================= */

.program-grid {
    max-width: 1150px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.program-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 35px;
    background: var(--white);
    transition: var(--transition);
}

.program-card:hover {
    border-color: var(--purple);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.program-number {
    color: var(--green);
    font-weight: 900;
    font-size: 0.9rem;
}

.program-card h3 {
    margin: 15px 0 10px;
    color: var(--black);
    font-size: 1.35rem;
}

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


/* =========================================================
   SHOP
========================================================= */

.shop-section {
    background: var(--purple-light);
}

.shop-preview {
    max-width: 1000px;
    margin: auto;
    background: var(--white);
    border-radius: 25px;
    padding: 65px 30px;
    text-align: center;
    box-shadow: var(--shadow);
}

.shop-message {
    max-width: 650px;
    margin: auto;
}

.shop-icon {
    font-size: 3rem;
}

.shop-message h3 {
    color: var(--black);
    font-size: 2rem;
    margin: 10px 0;
}

.shop-message p {
    color: var(--muted);
    margin-bottom: 25px;
}


/* =========================================================
   GALLERY
========================================================= */

.gallery-grid {
    max-width: 1150px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.gallery-placeholder {
    min-height: 240px;
    border-radius: var(--radius);
    background:
        linear-gradient(
            135deg,
            var(--purple),
            var(--green)
        );
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    letter-spacing: 2px;
}


/* =========================================================
   GET INVOLVED
========================================================= */

.involvement-section {
    background: var(--light);
}

.involvement-content {
    max-width: 850px;
    margin: auto;
    text-align: center;
}

.involvement-content p {
    max-width: 700px;
    margin: 0 auto 30px;
    color: var(--muted);
}

.involvement-content .hero-buttons {
    justify-content: center;
}


/* =========================================================
   DONATE
========================================================= */

.donate-section {
    padding: 100px 7%;
    background:
        linear-gradient(
            120deg,
            var(--purple-dark),
            var(--purple),
            var(--green-dark)
        );
    color: var(--white);
}

.donate-content {
    max-width: 850px;
    margin: auto;
    text-align: center;
}

.donate-content .section-label {
    color: #dff4da;
}

.donate-content h2 {
    color: var(--white);
}

.donate-content p {
    max-width: 650px;
    margin: 0 auto 30px;
    color: rgba(255, 255, 255, 0.85);
}


/* =========================================================
   CONTACT
========================================================= */

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

.contact-grid {
    max-width: 1050px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.contact-card {
    text-align: center;
    padding: 35px 25px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.contact-card span {
    font-size: 2rem;
}

.contact-card h3 {
    margin: 12px 0 5px;
    color: var(--black);
}

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


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    background: var(--black);
    color: var(--white);
}

.footer-content {
    padding: 60px 7%;
    display: flex;
    justify-content: space-between;
    gap: 50px;
}

.footer-brand {
    max-width: 350px;
}

.footer-brand img {
    width: 75px;
    margin-bottom: 15px;
}

.footer-brand p {
    color: #bbbbbb;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    align-content: flex-start;
}

.footer-links a {
    color: #dddddd;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding: 20px 7%;
    text-align: center;
    color: #999;
    font-size: 0.85rem;
}


/* =========================================================
   RESPONSIVE — TABLET
========================================================= */

@media (max-width: 1050px) {

    .navbar {
        padding: 0 4%;
    }

    .nav-links {
        gap: 14px;
    }

    .nav-links a {
        font-size: 0.82rem;
    }

    .hero {
        gap: 40px;
    }

    .section {
        padding: 80px 5%;
    }

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


/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 800px) {

    .navbar {
        min-height: 72px;
    }

    .brand span {
        font-size: 0.9rem;
    }

    .brand img {
        width: 50px;
        height: 50px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        width: 100%;
        padding: 20px;
        background: var(--white);
        border-top: 1px solid var(--border);
        box-shadow: var(--shadow);
        flex-direction: column;
        align-items: stretch;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 10px;
        text-align: center;
    }

    .nav-links .nav-donate {
        text-align: center;
    }

    .hero {
        min-height: auto;
        grid-template-columns: 1fr;
        padding: 65px 6%;
        text-align: center;
    }

    .hero-content {
        margin: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image-placeholder {
        min-height: 380px;
    }

    .about-section {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .section-image,
    .image-placeholder {
        min-height: 350px;
    }

    .impact-cards,
    .program-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-placeholder {
        min-height: 180px;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }
}


/* =========================================================
   RESPONSIVE — SMALL PHONES
========================================================= */

@media (max-width: 480px) {

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .section {
        padding: 65px 5%;
    }

    .hero {
        padding: 55px 5%;
    }

    .hero-image-placeholder {
        min-height: 300px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-placeholder {
        min-height: 220px;
    }

    .btn {
        width: 100%;
    }
}
/* ============================================================
   ABOUT PAGE
============================================================ */

.page-hero {
    min-height: 430px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(
            135deg,
            rgba(75, 29, 104, 0.98),
            rgba(107, 44, 145, 0.92),
            rgba(79, 157, 69, 0.88)
        );
}

.page-hero::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -120px;
    bottom: -180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.10);
}

.page-hero::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    left: -80px;
    top: -80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.page-hero-content {
    width: min(1180px, 90%);
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 80px 0;
    color: var(--white);
}

.page-hero-content .eyebrow {
    color: rgba(255, 255, 255, 0.85);
}

.page-hero-content h1 {
    max-width: 800px;
    margin: 18px 0;
    font-size: clamp(2.7rem, 6vw, 5rem);
    line-height: 1.05;
    letter-spacing: -2px;
}

.page-hero-content p {
    max-width: 680px;
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}


/* About page values */

.about-section .section-content p {
    margin-bottom: 18px;
}


/* Four-card values layout */

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


/* About page CTA */

.involvement-section {
    position: relative;
    overflow: hidden;
}

.involvement-section::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    left: -120px;
    top: -120px;
    border-radius: 50%;
    background: rgba(107, 44, 145, 0.06);
}

.involvement-section::after {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    right: -100px;
    bottom: -100px;
    border-radius: 50%;
    background: rgba(79, 157, 69, 0.08);
}

.involvement-content {
    position: relative;
    z-index: 2;
}


/* ============================================================
   ABOUT PAGE RESPONSIVE
============================================================ */

@media (max-width: 800px) {

    .page-hero {
        min-height: 380px;
    }

    .page-hero-content {
        padding: 65px 0;
    }

    .page-hero-content h1 {
        letter-spacing: -1px;
    }

    .program-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 480px) {

    .page-hero {
        min-height: 340px;
    }

    .page-hero-content {
        padding: 55px 0;
    }

    .page-hero-content p {
        font-size: 1rem;
        line-height: 1.7;
    }
}
/* ============================================================
   GALLERY
============================================================ */

.gallery-intro {
    background: var(--white);
    text-align: center;
}

.narrow-content {
    max-width: 760px;
    margin: 0 auto;
}

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

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    max-width: 1150px;
    margin: 0 auto;
}

.gallery-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, .12);
}

.gallery-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: var(--light);
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

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

.gallery-caption {
    padding: 20px 22px 24px;
}

.gallery-caption span {
    display: block;
    margin-bottom: 7px;
    color: var(--green-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.gallery-caption h3 {
    margin: 0;
    color: var(--black);
    font-size: 20px;
    line-height: 1.3;
}

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

.gallery-cta-box {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 50px;
    background: var(--purple-light);
    border-radius: var(--radius);
    text-align: center;
}

.gallery-cta-box h2 {
    max-width: 650px;
    margin: 0 auto 18px;
}

.gallery-cta-box p {
    max-width: 650px;
    margin: 0 auto 30px;
    color: var(--text);
    line-height: 1.8;
}

.gallery-cta-box .hero-buttons {
    justify-content: center;
}


/* =========================
   GALLERY RESPONSIVE
========================= */

@media (max-width: 1050px) {

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

}


@media (max-width: 800px) {

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

    .gallery-image {
        height: 240px;
    }

    .gallery-caption {
        padding: 18px;
    }

    .gallery-caption h3 {
        font-size: 18px;
    }

    .gallery-cta-box {
        padding: 45px 28px;
    }

}


@media (max-width: 480px) {

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-image {
        height: 260px;
    }

    .gallery-cta-box {
        padding: 38px 22px;
    }

}