﻿/* =========================================================
   MAU FEEDS - HOME PAGE CSS
   ---------------------------------------------------------
   This file contains only Home page specific styling.
   Common styling is already available in site.css.
   ========================================================= */


/* =========================================================
   1. HOME HERO
========================================================= */
/* =========================================================
   1. HOME HERO SLIDER
========================================================= */

.home-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: var(--mau-bg-cream);
}


    /* ---------- Carousel ---------- */

    .home-hero .carousel,
    .home-hero .carousel-inner,
    .home-hero .carousel-item {
        position: relative;
        width: 100%;
    }

    .home-hero .carousel-item {
        min-height: 500px;
    }


/* ---------- Hero Image ---------- */

.home-hero-slide-image {
    display: block;
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center center;
}


/* ---------- Readability Overlay ---------- */

.home-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient( to right, rgba(251, 248, 238, 0.98) 0%, rgba(251, 248, 238, 0.92) 18%, rgba(251, 248, 238, 0.72) 31%, rgba(251, 248, 238, 0.18) 47%, rgba(251, 248, 238, 0) 65% );
    pointer-events: none;
}


/* ---------- Hero Container ---------- */

.home-hero-container {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
}


/* ---------- Hero Content ---------- */

.home-hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 520px;
    padding: 35px 0;
}


    .home-hero-content .mau-eyebrow {
        margin-bottom: 12px;
    }


.home-hero-title {
    max-width: 520px;
    margin-bottom: 16px;
    color: var(--mau-green);
    font-family: var(--font-heading);
    font-size: 2.65rem;
    font-weight: 700;
    line-height: 1.12;
}


.home-hero-description {
    max-width: 485px;
    margin-bottom: 22px;
    color: var(--mau-text);
    font-size: var(--fs-base);
    line-height: 1.65;
}


.home-hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}


/* ---------- Carousel Controls ---------- */

.home-hero .carousel-control-prev,
.home-hero .carousel-control-next {
    z-index: 4;
    width: 52px;
    opacity: 0;
    transition: opacity 0.25s ease;
}


.home-hero:hover .carousel-control-prev,
.home-hero:hover .carousel-control-next {
    opacity: 0.8;
}


.home-hero .carousel-control-prev-icon,
.home-hero .carousel-control-next-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(0, 63, 36, 0.82);
    background-size: 45%;
}


/* ---------- Carousel Indicators ---------- */

/*.home-hero .carousel-indicators {
    z-index: 5;
    bottom: 16px;
    margin-bottom: 0;
    gap: 6px;
}


    .home-hero .carousel-indicators [data-bs-target] {
        width: 24px;
        height: 3px;
        margin: 0;
        border: 0;
        border-radius: 10px;
        background-color: rgba(255, 255, 255, 0.65);
        opacity: 1;
    }


    .home-hero .carousel-indicators .active {
        width: 38px;
        background-color: var(--mau-gold);
    }*/

.home-hero .carousel-indicators {
    position: absolute;
    z-index: 5;
    right: 0;
    bottom: 42px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    gap: 6px;
}


/* ---------- Mobile ---------- */

@media (max-width: 991.98px) {

    .home-hero .carousel-item {
        min-height: 480px;
    }

    .home-hero-slide-image {
        height: 480px;
    }

    .home-hero-overlay {
        background: linear-gradient( to bottom, rgba(251, 248, 238, 0.94) 0%, rgba(251, 248, 238, 0.82) 38%, rgba(251, 248, 238, 0.25) 72%, rgba(251, 248, 238, 0.05) 100% );
    }

    .home-hero-container {
        align-items: flex-start;
    }

    .home-hero-content {
        max-width: 520px;
        padding-top: 55px;
    }

    .home-hero-title {
        font-size: 2.25rem;
    }

    .home-hero-description {
        max-width: 450px;
    }

    .home-hero .carousel-control-prev,
    .home-hero .carousel-control-next {
        display: none;
    }
}


@media (max-width: 575.98px) {

    .home-hero .carousel-item {
        min-height: 500px;
    }

    .home-hero-slide-image {
        height: 500px;
        object-position: center center;
    }

    .home-hero-content {
        padding: 42px 20px 60px;
    }

    .home-hero-title {
        margin-bottom: 12px;
        font-size: 1.95rem;
    }

    .home-hero-description {
        margin-bottom: 18px;
        font-size: var(--fs-sm);
        line-height: 1.55;
    }

    .home-hero-actions {
        flex-wrap: wrap;
        gap: 9px;
    }

    .home-hero .carousel-indicators {
        bottom: 12px;
    }
}

/* =========================================================
   2. HOME FEATURE STRIP
========================================================= */

.home-feature-strip {
    position: relative;
    z-index: 10;
    margin-top: -25px;
}

.home-feature-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: 95px;
    overflow: hidden;
    border-radius: var(--radius-md);
    background-color: var(--mau-white);
    box-shadow: 0 5px 22px rgba(0, 0, 0, 0.08);
}

    .home-feature-wrapper .mau-feature-item {
        position: relative;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 14px;
        min-height: 95px;
        padding: 15px 20px;
        text-align: left;
    }

        .home-feature-wrapper .mau-feature-item:not(:last-child)::after {
            content: "";
            position: absolute;
            top: 20px;
            right: 0;
            width: 1px;
            height: calc(100% - 40px);
            background-color: var(--mau-border);
        }

    /* .home-feature-wrapper .mau-icon {
        flex: 0 0 auto;
        width: 42px;
        font-size: 1.9rem;
    }*/

    .home-feature-wrapper .mau-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 42px;
        width: 42px;
        height: 42px;
        color: var(--mau-green);
        font-size: 1.9rem;
    }

.home-feature-content {
    min-width: 0;
}

    .home-feature-content h6 {
        margin-bottom: 4px;
        color: var(--mau-text);
        font-family: var(--font-body);
        font-size: var(--fs-sm);
        font-weight: 700;
        line-height: 1.3;
    }

    .home-feature-content p {
        margin-bottom: 0;
        color: var(--mau-text-light);
        font-size: var(--fs-xs);
        line-height: 1.35;
    }


/* =========================================================
   3. HOME ABOUT SECTION
========================================================= */

.home-about-section {
    padding-top: 42px;
    padding-bottom: 40px;
}


/* ---------- About Image ---------- */

.home-about-image {
    height: 200px;
    overflow: hidden;
    border-radius: var(--radius-md);
}

    .home-about-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }


/* ---------- About Content ---------- */

.home-about-content {
    padding-right: 15px;
}

    .home-about-content .mau-eyebrow {
        margin-bottom: 8px;
    }

    .home-about-content .mau-section-title {
        max-width: 410px;
        margin-bottom: 10px;
        font-size: 1.65rem;
        line-height: 1.18;
    }

    .home-about-content p {
        max-width: 470px;
        margin-bottom: 15px;
        color: var(--mau-text);
        font-size: var(--fs-sm);
        line-height: 1.55;
    }


/* ---------- About Quality Points ---------- */

.home-about-points {
    height: 100%;
    padding: 13px 20px;
    border-radius: var(--radius-md);
    background-color: var(--mau-bg-cream);
}

.home-about-point {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 49px;
    border-bottom: 1px solid var(--mau-border);
}

    .home-about-point:last-child {
        border-bottom: 0;
    }

    .home-about-point .mau-icon {
        flex: 0 0 30px;
        width: 30px;
        font-size: 1.45rem;
    }

    .home-about-point strong {
        color: var(--mau-text);
        font-size: var(--fs-xs);
        font-weight: 700;
    }


/* =========================================================
   4. HOME PRODUCTS
========================================================= */

.home-products-section {
    padding-top: 6px;
    padding-bottom: 45px;
}


    /* ---------- Product Section Heading ---------- */

    .home-products-section .mau-section-header {
        margin-bottom: 18px;
        text-align: center;
    }

        .home-products-section .mau-section-header .mau-eyebrow {
            display: none;
        }

    .home-products-section .mau-section-title {
        position: relative;
        display: inline-block;
        margin-bottom: 0;
        padding-bottom: 12px;
        font-family: var(--font-heading);
        font-size: 1.45rem;
        line-height: 1.25;
    }

        .home-products-section .mau-section-title::after {
            content: "";
            position: absolute;
            left: 50%;
            bottom: 0;
            width: 34px;
            height: 2px;
            transform: translateX(-50%);
            background-color: var(--mau-gold);
        }


    /* ---------- Product Grid ---------- */

    .home-products-section .row {
        --bs-gutter-x: 12px;
        --bs-gutter-y: 12px;
    }


    /* ---------- Product Card Override ---------- */

    .home-products-section .mau-product-card {
        min-height: 195px;
        padding: 10px 12px 12px;
        border-color: var(--mau-border-light);
        border-radius: var(--radius-sm);
        box-shadow: 0 2px 9px rgba(0, 0, 0, 0.035);
    }

        .home-products-section .mau-product-card:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-sm);
        }

    .home-products-section .mau-product-image {
        height: 118px;
        margin-bottom: 7px;
    }

    .home-products-section .mau-product-content {
        padding: 0 4px;
    }

    .home-products-section .mau-product-title {
        margin-bottom: 3px;
        color: var(--mau-text);
        font-size: var(--fs-xs);
    }

    .home-products-section .mau-product-description {
        min-height: 30px;
        margin-bottom: 0;
        color: var(--mau-text-light);
        font-size: 11px;
        line-height: 1.35;
    }


    /* ---------- Product Button ---------- */

    .home-products-section > .container > .text-center {
        margin-top: 10px !important;
    }

        .home-products-section > .container > .text-center .mau-btn {
            min-height: 34px;
            padding: 7px 17px;
            font-size: 11px;
        }


/* =========================================================
   5. HOME STATISTICS
========================================================= */

.home-stats-section {
    position: relative;
    overflow: hidden;
    padding: 18px 0;
    background-color: var(--mau-green-dark);
    background-image: linear-gradient( rgba(0, 63, 36, 0.78), rgba(0, 63, 36, 0.78) ), url("/images/home/stats-bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--mau-white);
}

.home-stats-overlay {
    display: none;
}


/* ---------- Stats ---------- */

.home-stats-section .row {
    align-items: center;
}

.home-stat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 52px;
    padding: 3px 15px;
}

.home-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    color: var(--mau-white);
    font-size: 1.75rem;
}

.home-stat-content {
    text-align: left;
}

.home-stat-number {
    margin-bottom: 1px;
    color: var(--mau-white);
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1;
}

.home-stat-label {
    color: var(--mau-white);
    font-size: var(--fs-xs);
    line-height: 1.25;
}


/* =========================================================
   6. HOME GALLERY
========================================================= */

.home-gallery-section {
    padding-top: 30px;
    padding-bottom: 18px;
}


/* ---------- Gallery Header ---------- */

.home-gallery-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 15px;
}

    .home-gallery-header .mau-section-header {
        margin-bottom: 0;
    }

        .home-gallery-header .mau-section-header .mau-eyebrow {
            margin-bottom: 5px;
        }

    .home-gallery-header .mau-section-title {
        margin-bottom: 0;
        font-size: 1.45rem;
    }


    /* ---------- Gallery View All ---------- */

    .home-gallery-header .mau-btn {
        min-height: 32px;
        padding: 6px 15px;
        border-radius: var(--radius-sm);
        font-size: 11px;
    }


/* ---------- Gallery Grid ---------- */

.home-gallery-section .row {
    --bs-gutter-x: 12px;
    --bs-gutter-y: 12px;
}

.home-gallery-item {
    height: 113px;
    overflow: hidden;
    border-radius: var(--radius-sm);
}

    .home-gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        transition: transform 0.4s ease;
    }

    .home-gallery-item:hover img {
        transform: scale(1.04);
    }


/* =========================================================
   7. HOME CTA
========================================================= */

.home-cta-section {
    padding: 12px 0;
    background-color: var(--mau-green-dark);
    color: var(--mau-white);
}

.home-cta-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    min-height: 72px;
    padding: 0 28px;
}

.home-cta-content {
    display: flex;
    align-items: center;
    gap: 18px;
}

.home-cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    color: var(--mau-gold);
    font-size: 2rem;
}

.home-cta-content h2 {
    margin-bottom: 2px;
    color: var(--mau-white);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    line-height: 1.2;
}

.home-cta-content p {
    max-width: 500px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: var(--fs-xs);
    line-height: 1.45;
}

.home-cta-action .mau-btn {
    min-width: 145px;
    min-height: 38px;
    padding: 8px 16px;
    font-size: var(--fs-xs);
}


/* =========================================================
   8. HOME PAGE COMMON OVERRIDES
========================================================= */

/* Prevent unwanted extra spacing around home sections */

.home-about-section .mau-btn,
.home-products-section .mau-btn,
.home-cta-section .mau-btn {
    white-space: nowrap;
}


/* Keep Home headings visually compact */

.home-about-section h2,
.home-products-section h2,
.home-gallery-section h2 {
    letter-spacing: -0.2px;
}


/* =========================================================
   END OF HOME PAGE CSS
========================================================= */
