/* =========================================================
   MUSANDA FOUNDATION
   Homepage Styles
   ========================================================= */


/* =========================================================
   HERO SECTION
   ========================================================= */

.hero {
    position: relative;

    min-height: 100vh;

    display: flex;

    align-items: center;

    overflow: hidden;

    color: var(--white-color);
}


/* =========================================================
   HERO BACKGROUND
   ========================================================= */

.hero-background {
    position: absolute;

    inset: 0;

    z-index: 0;
}


.hero-background img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: center;
}


/* =========================================================
   HERO OVERLAY
   ========================================================= */

.hero-overlay {
    position: absolute;

    inset: 0;

    z-index: 1;

    background:
        linear-gradient(
            90deg,
            rgba(26, 26, 26, 0.88) 0%,
            rgba(26, 26, 26, 0.68) 45%,
            rgba(26, 26, 26, 0.30) 100%
        );
}


/* =========================================================
   HERO CONTAINER
   ========================================================= */

.hero-container {
    position: relative;

    z-index: 2;

    min-height: 100vh;

    display: flex;

    align-items: center;
}


/* =========================================================
   HERO CONTENT
   ========================================================= */

.hero-content {
    max-width: 760px;

    padding-top: 80px;
}


/* =========================================================
   HERO LABEL
   ========================================================= */

.hero-label {
    display: inline-block;

    margin-bottom: 18px;

    color: var(--white-color);

    font-family: var(--heading-font);

    font-size: 0.8rem;
    font-weight: 600;

    letter-spacing: 3px;

    opacity: 0.9;
}


.hero-label::before {
    content: "";

    display: inline-block;

    width: 35px;
    height: 2px;

    margin-right: 12px;

    vertical-align: middle;

    background-color: var(--secondary-color);
}


/* =========================================================
   HERO HEADING
   ========================================================= */

.hero h1 {
    max-width: 800px;

    margin-bottom: 25px;

    color: var(--white-color);

    font-family: var(--heading-font);

    font-size: clamp(3rem, 6vw, 5.5rem);

    font-weight: 700;

    line-height: 1.05;

    letter-spacing: -2px;
}


.hero h1 span {
    display: block;

    color: var(--secondary-color);
}


/* =========================================================
   HERO DESCRIPTION
   ========================================================= */

.hero-description {
    max-width: 650px;

    margin-bottom: 35px;

    color: rgba(255, 255, 255, 0.9);

    font-size: 1.1rem;

    line-height: 1.8;
}


/* =========================================================
   HERO BUTTONS
   ========================================================= */

.hero-buttons {
    display: flex;

    align-items: center;

    gap: 15px;
}


.hero-buttons .btn-primary {
    background-color: var(--white-color);

    color: var(--primary-color);
}


.hero-buttons .btn-primary:hover {
    background-color: var(--light-color);
}


.hero-buttons .btn-secondary {
    background-color: var(--secondary-color);
}


.hero-buttons .btn-secondary:hover {
    background-color: #941D2D;
}


/* =========================================================
   HERO SCROLL INDICATOR
   ========================================================= */

.hero-scroll {
    position: absolute;

    bottom: 35px;
    left: 50%;

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 7px;

    color: rgba(255, 255, 255, 0.75);

    font-family: var(--heading-font);

    font-size: 0.65rem;

    letter-spacing: 1px;

    transform: translateX(-50%);

    transition: var(--transition-normal);
}


.hero-scroll:hover {
    color: var(--white-color);
}


.hero-scroll i {
    font-size: 0.75rem;

    animation: scrollBounce 1.8s infinite;
}

/* =========================================================
   ABOUT PREVIEW SECTION
   ========================================================= */

.about-preview {
    background-color: var(--white-color);
}


.about-preview-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    align-items: center;

    gap: 80px;
}


/* =========================================================
   ABOUT IMAGE
   ========================================================= */

.about-preview-image {
    position: relative;

    min-height: 550px;
}


.about-preview-image img {
    position: relative;

    z-index: 2;

    width: 92%;
    height: 550px;

    object-fit: cover;

    border-radius: var(--radius-medium);
}


/* Decorative accent */

.about-image-accent {
    position: absolute;

    right: 0;
    bottom: -20px;

    width: 75%;
    height: 75%;

    background-color: var(--primary-color);

    border-radius: var(--radius-medium);

    z-index: 1;
}


/* =========================================================
   ABOUT CONTENT
   ========================================================= */

.about-preview-content {
    max-width: 580px;
}


.section-label {
    display: inline-block;

    margin-bottom: 15px;

    color: var(--secondary-color);

    font-family: var(--heading-font);

    font-size: 0.75rem;
    font-weight: 700;

    letter-spacing: 2px;
}


.about-preview-content h2 {
    margin-bottom: 25px;

    color: var(--primary-color);

    font-size: 2.7rem;

    line-height: 1.2;
}


.about-preview-content h2 span {
    display: block;

    color: var(--secondary-color);
}


.about-preview-content p {
    color: var(--grey-color);

    line-height: 1.8;
}


.about-preview-content .about-intro {
    margin-bottom: 15px;

    color: var(--black-color);

    font-size: 1.05rem;

    font-weight: 500;
}


/* =========================================================
   ABOUT VALUES
   ========================================================= */

.about-values {
    display: flex;

    flex-direction: column;

    gap: 20px;

    margin: 30px 0;
}


.about-value {
    display: flex;

    align-items: flex-start;

    gap: 15px;
}


.about-value-icon {
    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 45px;
    height: 45px;

    color: var(--white-color);

    background-color: var(--primary-color);

    border-radius: 50%;

    font-size: 1rem;
}


.about-value h3 {
    margin-bottom: 4px;

    color: var(--primary-color);

    font-size: 1rem;
}


.about-value p {
    margin: 0;

    font-size: 0.9rem;

    line-height: 1.5;
}


/* =========================================================
   READ MORE LINK
   ========================================================= */

.about-read-more {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    color: var(--primary-color);

    font-family: var(--heading-font);

    font-size: 0.8rem;
    font-weight: 700;

    transition: var(--transition-normal);
}


.about-read-more i {
    transition: var(--transition-normal);
}


.about-read-more:hover {
    color: var(--secondary-color);
}


.about-read-more:hover i {
    transform: translateX(5px);
}

/* =========================================================
   IMPACT STATISTICS
   ========================================================= */

.impact-stats {
    position: relative;

    padding: 90px 0;

    color: var(--white-color);

    background-color: var(--primary-color);

    overflow: hidden;
}


/* =========================================================
   DECORATIVE BACKGROUND
   ========================================================= */

.impact-stats::before {
    content: "";

    position: absolute;

    top: -180px;
    right: -180px;

    width: 400px;
    height: 400px;

    border: 80px solid rgba(255, 255, 255, 0.04);

    border-radius: 50%;
}


.impact-stats::after {
    content: "";

    position: absolute;

    bottom: -200px;
    left: -200px;

    width: 450px;
    height: 450px;

    border: 80px solid rgba(178, 32, 52, 0.12);

    border-radius: 50%;
}


/* =========================================================
   HEADER
   ========================================================= */

.impact-stats-header {
    position: relative;

    z-index: 2;

    max-width: 700px;

    margin: 0 auto 55px;

    text-align: center;
}


.impact-stats-header .section-label {
    color: var(--secondary-color);
}


.impact-stats-header h2 {
    margin-bottom: 20px;

    color: var(--white-color);

    font-size: 2.4rem;
}


.impact-stats-header h2 span {
    display: block;

    color: var(--secondary-color);
}


.impact-stats-header p {
    margin: 0;

    color: rgba(255, 255, 255, 0.75);

    line-height: 1.8;
}


/* =========================================================
   STATISTICS GRID
   ========================================================= */

.stats-grid {
    position: relative;

    z-index: 2;

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 20px;
}


/* =========================================================
   STAT ITEM
   ========================================================= */

.stat-item {
    padding: 35px 20px;

    text-align: center;

    border-right: 1px solid rgba(255, 255, 255, 0.15);

    transition: var(--transition-normal);
}


.stat-item:last-child {
    border-right: none;
}


.stat-item:hover {
    transform: translateY(-5px);
}


/* =========================================================
   STAT ICON
   ========================================================= */

.stat-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 60px;
    height: 60px;

    margin: 0 auto 20px;

    color: var(--white-color);

    background-color: rgba(255, 255, 255, 0.1);

    border-radius: 50%;

    font-size: 1.3rem;

    transition: var(--transition-normal);
}


.stat-item:hover .stat-icon {
    background-color: var(--secondary-color);

    transform: scale(1.08);
}


/* =========================================================
   STAT NUMBER
   ========================================================= */

.stat-number {
    display: flex;

    align-items: baseline;
    justify-content: center;

    margin-bottom: 8px;

    font-family: var(--heading-font);

    line-height: 1;
}


.counter {
    font-size: 2.7rem;

    font-weight: 700;
}


.stat-symbol {
    margin-left: 3px;

    color: var(--secondary-color);

    font-size: 1.8rem;

    font-weight: 700;
}


/* =========================================================
   STAT TITLE
   ========================================================= */

.stat-item h3 {
    color: rgba(255, 255, 255, 0.85);

    font-family: var(--body-font);

    font-size: 0.9rem;

    font-weight: 600;
}

/* =========================================================
   FEATURED IMPACT SECTION
   ========================================================= */

.featured-impact {
    background-color: var(--light-color);
}


/* =========================================================
   SECTION HEADER
   ========================================================= */

.featured-impact-header {
    max-width: 720px;

    margin-left: auto;
    margin-right: auto;

    text-align: center;
}


.featured-impact-header .section-title {
    margin-bottom: 20px;

    font-size: 2.4rem;
}


.featured-impact-header .section-title span {
    display: block;

    color: var(--secondary-color);
}


.featured-impact-header .section-description {
    margin-bottom: 0;
}


/* =========================================================
   FEATURED GALLERY
   ========================================================= */

.featured-gallery {
    display: grid;

    grid-template-columns: 1.5fr 1fr;

    grid-template-rows: 260px 260px;

    gap: 15px;

    margin-top: 50px;
}


/* =========================================================
   GALLERY ITEM
   ========================================================= */

.featured-gallery-item {
    position: relative;

    display: block;

    overflow: hidden;

    border-radius: var(--radius-medium);

    background-color: var(--black-color);
}


.featured-gallery-item img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform var(--transition-slow);
}


/* =========================================================
   MAIN GALLERY ITEM
   ========================================================= */

.featured-gallery-main {
    grid-row: 1 / 3;
}


.featured-gallery-main img {
    object-position: center;
}


/* =========================================================
   GALLERY OVERLAY
   ========================================================= */

.gallery-overlay {
    position: absolute;

    inset: 0;

    display: flex;

    align-items: flex-end;

    padding: 30px;

    background:
        linear-gradient(
            to top,
            rgba(26, 26, 26, 0.9) 0%,
            rgba(26, 26, 26, 0.45) 45%,
            rgba(26, 26, 26, 0.05) 100%
        );

    transition: var(--transition-normal);
}


.featured-gallery-item:hover img {
    transform: scale(1.06);
}


.featured-gallery-item:hover .gallery-overlay {
    background:
        linear-gradient(
            to top,
            rgba(44, 48, 122, 0.92) 0%,
            rgba(44, 48, 122, 0.45) 60%,
            rgba(44, 48, 122, 0.05) 100%
        );
}


/* =========================================================
   GALLERY CONTENT
   ========================================================= */

.gallery-content {
    color: var(--white-color);
}


.gallery-content > span {
    display: inline-block;

    margin-bottom: 8px;

    color: var(--secondary-color);

    font-family: var(--heading-font);

    font-size: 0.65rem;
    font-weight: 700;

    letter-spacing: 2px;
}


.gallery-content h3 {
    margin-bottom: 5px;

    color: var(--white-color);

    font-size: 1.35rem;
}


.gallery-content p {
    max-width: 450px;

    margin-bottom: 12px;

    color: rgba(255, 255, 255, 0.8);

    font-size: 0.85rem;

    line-height: 1.5;
}


.gallery-link {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: var(--white-color);

    font-family: var(--heading-font);

    font-size: 0.7rem;
    font-weight: 600;
}


.gallery-link i {
    transition: var(--transition-normal);
}


.featured-gallery-item:hover .gallery-link i {
    transform: translateX(5px);
}


/* =========================================================
   GALLERY CTA
   ========================================================= */

.featured-impact-cta {
    display: flex;

    justify-content: center;

    margin-top: 40px;
}

/* =========================================================
   TESTIMONIALS
   ========================================================= */

.testimonials {
    background-color: var(--white-color);
}


/* =========================================================
   SECTION HEADER
   ========================================================= */

.testimonials-header {
    max-width: 700px;

    margin-left: auto;
    margin-right: auto;

    text-align: center;
}


.testimonials-header .section-title {
    margin-bottom: 20px;

    font-size: 2.4rem;
}


.testimonials-header .section-title span {
    display: block;

    color: var(--secondary-color);
}


/* =========================================================
   TESTIMONIAL GRID
   ========================================================= */

.testimonials-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;

    margin-top: 50px;
}


/* =========================================================
   TESTIMONIAL CARD
   ========================================================= */

.testimonial-card {
    position: relative;

    padding: 35px;

    background-color: var(--light-color);

    border-radius: var(--radius-medium);

    border-top: 4px solid transparent;

    transition: var(--transition-normal);
}


.testimonial-card:hover {
    transform: translateY(-6px);

    border-top-color: var(--secondary-color);

    box-shadow: var(--shadow-medium);
}


/* Featured card */

.featured-testimonial {
    color: var(--white-color);

    background-color: var(--primary-color);

    border-top-color: var(--secondary-color);
}


.featured-testimonial .testimonial-text {
    color: rgba(255, 255, 255, 0.9);
}


.featured-testimonial .testimonial-author h3 {
    color: var(--white-color);
}


.featured-testimonial .testimonial-author span {
    color: rgba(255, 255, 255, 0.65);
}


/* =========================================================
   QUOTE ICON
   ========================================================= */

.testimonial-quote {
    margin-bottom: 20px;

    color: var(--secondary-color);

    font-size: 1.5rem;
}


/* =========================================================
   TESTIMONIAL TEXT
   ========================================================= */

.testimonial-text {
    min-height: 125px;

    margin-bottom: 30px;

    color: var(--grey-color);

    font-size: 0.95rem;

    line-height: 1.8;
}


/* =========================================================
   TESTIMONIAL AUTHOR
   ========================================================= */

.testimonial-author {
    display: flex;

    align-items: center;

    gap: 12px;
}


.testimonial-avatar {
    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    width: 45px;
    height: 45px;

    color: var(--white-color);

    background-color: var(--primary-color);

    border-radius: 50%;
}


.featured-testimonial .testimonial-avatar {
    background-color: var(--secondary-color);
}


.testimonial-author h3 {
    margin-bottom: 3px;

    color: var(--primary-color);

    font-family: var(--heading-font);

    font-size: 0.85rem;
}


.testimonial-author span {
    color: var(--grey-color);

    font-size: 0.75rem;
}

/* =========================================================
   HOME CTA
   ========================================================= */

.home-cta {
    position: relative;

    padding: 80px 0;

    color: var(--white-color);

    background-color: var(--black-color);

    overflow: hidden;
}


/* =========================================================
   DECORATIVE ELEMENTS
   ========================================================= */

.home-cta::before {
    content: "";

    position: absolute;

    top: -150px;
    right: -100px;

    width: 350px;
    height: 350px;

    border: 70px solid rgba(44, 48, 122, 0.45);

    border-radius: 50%;
}


.home-cta::after {
    content: "";

    position: absolute;

    bottom: -180px;
    left: -100px;

    width: 400px;
    height: 400px;

    border: 70px solid rgba(178, 32, 52, 0.20);

    border-radius: 50%;
}


/* =========================================================
   CTA CONTENT
   ========================================================= */

.home-cta-content {
    position: relative;

    z-index: 2;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 50px;
}


.home-cta-text {
    max-width: 700px;
}


.home-cta-text .section-label {
    color: var(--secondary-color);
}


.home-cta-text h2 {
    margin-bottom: 20px;

    color: var(--white-color);

    font-size: 2.7rem;
}


.home-cta-text h2 span {
    color: var(--secondary-color);
}


.home-cta-text p {
    max-width: 650px;

    margin: 0;

    color: rgba(255, 255, 255, 0.75);

    line-height: 1.8;
}


/* =========================================================
   CTA ACTIONS
   ========================================================= */

.home-cta-actions {
    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 18px;

    flex-shrink: 0;
}


.home-cta-actions .btn {
    min-width: 190px;
}


.cta-contact-link {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: var(--white-color);

    font-family: var(--heading-font);

    font-size: 0.75rem;
    font-weight: 600;

    transition: var(--transition-normal);
}


.cta-contact-link i {
    transition: var(--transition-normal);
}


.cta-contact-link:hover {
    color: var(--secondary-color);
}


.cta-contact-link:hover i {
    transform: translateX(5px);
}



/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {

    .home-cta {
        padding: 70px 0;
    }


    .home-cta-content {
        flex-direction: column;

        align-items: flex-start;

        gap: 35px;
    }


    .home-cta-text h2 {
        font-size: 2.2rem;
    }


    .home-cta-actions {
        flex-direction: row;

        align-items: center;
    }

}


@media (max-width: 480px) {

    .home-cta-text h2 {
        font-size: 1.8rem;
    }


    .home-cta-text p {
        font-size: 0.9rem;
    }


    .home-cta-actions {
        width: 100%;

        flex-direction: column;

        align-items: stretch;
    }


    .home-cta-actions .btn {
        width: 100%;
    }


    .cta-contact-link {
        justify-content: center;
    }

}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 992px) {

    .testimonials-grid {
        grid-template-columns: 1fr 1fr;
    }


    .testimonial-card:last-child {
        grid-column: 1 / 3;

        max-width: 50%;

        margin: 0 auto;
    }

}


@media (max-width: 768px) {

    .testimonials {
        padding: 70px 0;
    }


    .testimonials-header .section-title {
        font-size: 2rem;
    }


    .testimonials-grid {
        grid-template-columns: 1fr;
    }


    .testimonial-card:last-child {
        grid-column: auto;

        max-width: none;
    }

}


@media (max-width: 480px) {

    .testimonial-card {
        padding: 25px;
    }


    .testimonial-text {
        min-height: auto;

        font-size: 0.9rem;
    }

}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {

    .featured-gallery {
        grid-template-columns: 1fr;

        grid-template-rows:
            350px
            250px
            250px;
    }


    .featured-gallery-main {
        grid-row: auto;
    }


    .featured-impact-header .section-title {
        font-size: 2rem;
    }

}


@media (max-width: 480px) {

    .featured-gallery {
        grid-template-rows:
            300px
            230px
            230px;
    }


    .gallery-overlay {
        padding: 20px;
    }


    .gallery-content h3 {
        font-size: 1.1rem;
    }


    .gallery-content p {
        font-size: 0.8rem;
    }

}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 992px) {

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);

        gap: 0;
    }


    .stat-item:nth-child(2) {
        border-right: none;
    }


    .stat-item:nth-child(-n + 2) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }


    .impact-stats-header h2 {
        font-size: 2.1rem;
    }

}


@media (max-width: 768px) {

    .impact-stats {
        padding: 70px 0;
    }


    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }


    .stat-item {
        padding: 30px 15px;
    }


    .counter {
        font-size: 2.3rem;
    }


    .stat-symbol {
        font-size: 1.5rem;
    }

}


@media (max-width: 480px) {

    .impact-stats-header h2 {
        font-size: 1.7rem;
    }


    .impact-stats-header p {
        font-size: 0.9rem;
    }


    .stats-grid {
        grid-template-columns: 1fr;
    }


    .stat-item,
    .stat-item:nth-child(2) {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }


    .stat-item:last-child {
        border-bottom: none;
    }

}


/* =========================================================
   ABOUT PREVIEW RESPONSIVE
   ========================================================= */

@media (max-width: 992px) {

    .about-preview-grid {
        gap: 50px;
    }


    .about-preview-content h2 {
        font-size: 2.2rem;
    }


    .about-preview-image,
    .about-preview-image img {
        min-height: 480px;
        height: 480px;
    }

}


@media (max-width: 768px) {

    .about-preview-grid {
        grid-template-columns: 1fr;

        gap: 50px;
    }


    .about-preview-image {
        min-height: 450px;

        max-width: 600px;

        margin: 0 auto;

        width: 100%;
    }


    .about-preview-image img {
        width: 94%;

        height: 450px;
    }


    .about-image-accent {
        width: 70%;
        height: 70%;
    }


    .about-preview-content {
        max-width: 100%;
    }


    .about-preview-content h2 {
        font-size: 2.2rem;
    }

}


@media (max-width: 480px) {

    .about-preview-image,
    .about-preview-image img {
        min-height: 350px;
        height: 350px;
    }


    .about-preview-content h2 {
        font-size: 1.8rem;
    }


    .about-preview-content .about-intro {
        font-size: 1rem;
    }


    .about-value {
        gap: 12px;
    }


    .about-value-icon {
        width: 40px;
        height: 40px;

        font-size: 0.9rem;
    }

}

/* =========================================================
   SCROLL ANIMATION
   ========================================================= */

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(6px);
    }

}


/* =========================================================
   HERO RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {

    .hero {
        min-height: 90vh;
    }


    .hero-container {
        min-height: 90vh;
    }


    .hero-content {
        padding-top: 70px;
    }


    .hero h1 {
        font-size: clamp(2.5rem, 11vw, 4rem);

        letter-spacing: -1px;
    }


    .hero-description {
        font-size: 1rem;

        line-height: 1.7;
    }


    .hero-buttons {
        flex-wrap: wrap;
    }


    .hero-scroll {
        bottom: 20px;
    }

}


@media (max-width: 480px) {

    .hero-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(26, 26, 26, 0.90),
                rgba(26, 26, 26, 0.65)
            );
    }


    .hero-label {
        font-size: 0.7rem;

        letter-spacing: 2px;
    }


    .hero-description {
        font-size: 0.95rem;
    }


    .hero-buttons {
        flex-direction: column;

        align-items: stretch;
    }


    .hero-buttons .btn {
        width: 100%;
    }

}