/**
 * ==========================================================
 * Elite Fitness
 * Homepage CSS
 * ==========================================================
 *
 * File:
 * /public_html/assets/css/home.css
 *
 * ==========================================================
 */


/* ==========================================================
   HERO
========================================================== */

.home-hero {
    position: relative;
    min-height: 620px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background:
        linear-gradient(
            105deg,
            #111111 0%,
            #191919 52%,
            #2a2a2a 100%
        );

    color: var(--elite-white);
}


/* ----------------------------------------------------------
   HERO IMAGE
---------------------------------------------------------- */

.home-hero-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}




/* ----------------------------------------------------------
   HERO CONTAINER
---------------------------------------------------------- */

.home-hero-container {
    position: relative;
    z-index: 3;

}


/* ----------------------------------------------------------
   HERO CONTENT
---------------------------------------------------------- */

.home-hero-content {
    position: relative;
    z-index: 4;

    max-width: 690px;

    padding: 80px 0;
}


/* ----------------------------------------------------------
   EYEBROW
---------------------------------------------------------- */

.home-hero-eyebrow {
    display: inline-block;

    margin-bottom: 18px;

    color: var(--elite-accent);

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 3px;
    text-transform: uppercase;
}


/* ----------------------------------------------------------
   TITLE
---------------------------------------------------------- */

.home-hero-title {
    margin: 0;

    font-family:
        'Oswald',
        Arial,
        sans-serif;

    font-size:
        clamp(52px, 7vw, 92px);

    line-height: 0.98;

    font-weight: 700;

    letter-spacing: -1px;

    color: var(--elite-white);
}


.home-hero-title span {
    display: block;

    color: var(--elite-accent);
}


/* ----------------------------------------------------------
   DESCRIPTION
---------------------------------------------------------- */

.home-hero-description {
    max-width: 560px;

    margin:
        28px 0 34px;

    color: #d1d1d1;

    font-size: 17px;

    line-height: 1.7;
}


/* ----------------------------------------------------------
   ACTIONS
---------------------------------------------------------- */

.home-hero-actions {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 14px;
}


/* ----------------------------------------------------------
   PRIMARY BUTTON
---------------------------------------------------------- */

.home-hero-button-primary {
    min-width: 160px;
}


/* ----------------------------------------------------------
   SECONDARY BUTTON
---------------------------------------------------------- */

.home-hero-button-secondary {
    min-height: 46px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding:
        0 22px;

    border:
        1px solid #666;

    border-radius:
        var(--radius-sm);

    color:
        var(--elite-white);

    font-weight: 700;

    text-decoration: none;

    transition:
        border-color var(--transition-fast),
        background var(--transition-fast),
        color var(--transition-fast);
}


.home-hero-button-secondary:hover {
    border-color:
        var(--elite-accent);

    background:
        rgba(255, 90, 0, 0.08);

    color:
        var(--elite-white);
}


/* ==========================================================
   RESPONSIVE HERO
========================================================== */

@media (max-width: 991px) {

    .home-hero {
        min-height: 560px;
    }


    .home-hero-content {
        max-width: 620px;

        padding:
            70px 0;
    }


    .home-hero-title {
        font-size:
            clamp(48px, 8vw, 76px);
    }


    .home-hero-description {
        max-width: 520px;

        font-size: 16px;
    }

}


@media (max-width: 767px) {

    .home-hero {
        min-height: 620px;
    }


    .home-hero-image {
        object-position: center center;
    }


    .home-hero::before {
        background:
            radial-gradient(
                circle at 75% 35%,
                rgba(255, 90, 0, 0.18),
                transparent 42%
            );
    }


    .home-hero-overlay {
        background:
            linear-gradient(
                180deg,
                rgba(0, 0, 0, 0.78) 0%,
                rgba(0, 0, 0, 0.58) 45%,
                rgba(0, 0, 0, 0.82) 100%
            );
    }


    .home-hero-container {
        width: 100%;
    }


    .home-hero-content {
        max-width: 100%;

        padding:
            70px 0 60px;
    }


    .home-hero-eyebrow {
        margin-bottom: 14px;

        font-size: 11px;

        letter-spacing: 2.5px;
    }


    .home-hero-title {
        font-size:
            clamp(42px, 12vw, 62px);

        letter-spacing:
            -0.5px;
    }


    .home-hero-description {
        max-width: 100%;

        margin:
            22px 0 28px;

        font-size: 15px;

        line-height: 1.65;
    }


    .home-hero-actions {
        align-items: stretch;

        flex-direction: column;

        width: 100%;
    }


    .home-hero-button-primary,
    .home-hero-button-secondary {
        width: 100%;
    }


    .home-hero-button-primary {
        min-width: 0;
    }

}


@media (max-width: 480px) {

    .home-hero {
        min-height: 600px;
    }


    .home-hero-content {
        padding:
            58px 0 50px;
    }


    .home-hero-title {
        font-size:
            clamp(38px, 11vw, 52px);

        line-height: 1;
    }


    .home-hero-description {
        margin:
            20px 0 24px;

        font-size: 14px;
    }


    .home-hero-actions {
        gap: 10px;
    }


    .home-hero-button-secondary {
        min-height: 44px;

        padding:
            0 18px;
    }

}

/* ==========================================================
   COMMON SECTION
========================================================== */

.home-category-section,
.home-product-section {
    padding:
        82px 0;
}


.home-category-section {
    background:
        var(--elite-off-white);
}


.home-product-section {
    background:
        var(--elite-white);
}


.home-product-section:nth-of-type(even) {
    background:
        #fafafa;
}


.home-section-heading {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 36px;
}


.home-section-eyebrow {
    display: block;

    margin-bottom: 7px;

    color:
        var(--elite-accent);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 2px;

    text-transform: uppercase;
}


.home-section-title {
    margin: 0;

    font-family:
        'Oswald',
        Arial,
        sans-serif;

    font-size: 38px;

    line-height: 1.1;

    font-weight: 700;
}


.home-section-description {
    max-width: 600px;

    margin:
        9px 0 0;

    color:
        var(--elite-text-soft);

    font-size: 14px;
}


.home-section-link {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    flex-shrink: 0;

    color:
        var(--elite-black);

    font-size: 13px;
    font-weight: 700;

    transition:
        color var(--transition-fast);
}


.home-section-link:hover {
    color:
        var(--elite-accent);
}


/* ==========================================================
   CATEGORY GRID
========================================================== */

.category-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 16px;
}


.category-card {
    min-height: 155px;

    position: relative;

    display: flex;

    flex-direction: column;

    justify-content: flex-end;

    padding: 22px;

    overflow: hidden;

    border:
        1px solid var(--elite-border);

    border-radius:
        var(--radius-md);

    background:
        var(--elite-white);

    transition:
        transform var(--transition-normal),
        border-color var(--transition-normal),
        box-shadow var(--transition-normal);
}


.category-card:hover {
    transform:
        translateY(-4px);

    border-color:
        rgba(255, 90, 0, .35);

    box-shadow:
        var(--shadow-md);
}


.category-card-icon {
    position: absolute;

    top: 20px;
    right: 22px;

    color:
        rgba(255, 90, 0, .18);

    font-size: 34px;
}


.category-card-name {
    position: relative;

    z-index: 1;

    max-width: 85%;

    color:
        var(--elite-black);

    font-family:
        'Oswald',
        Arial,
        sans-serif;

    font-size: 23px;
    font-weight: 600;
}


.category-card-arrow {
    position: relative;

    z-index: 1;

    margin-top: 7px;

    color:
        var(--elite-accent);

    font-size: 16px;
}


/* ==========================================================
   PRODUCT GRID
========================================================== */

.product-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 20px;
}


.product-card {
    overflow: hidden;

    border:
        1px solid var(--elite-border);

    border-radius:
        var(--radius-md);

    background:
        var(--elite-white);

    transition:
        transform var(--transition-normal),
        box-shadow var(--transition-normal);
}


.product-card:hover {
    transform:
        translateY(-4px);

    box-shadow:
        var(--shadow-md);
}


.product-card-image-link {
    display: block;
}


.product-card-image {
    position: relative;

    aspect-ratio: 1 / 1;

    overflow: hidden;

    background:
        #f4f4f4;
}


.product-card-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform var(--transition-normal);
}


.product-card:hover
.product-card-image img {
    transform:
        scale(1.04);
}


.product-discount {
    position: absolute;

    top: 12px;
    left: 12px;

    z-index: 2;

    padding:
        5px 8px;

    border-radius:
        3px;

    background:
        var(--elite-accent);

    color:
        var(--elite-white);

    font-size: 10px;
    font-weight: 800;
}


.product-card-content {
    padding: 18px;
}


.product-card-title {
    min-height: 43px;

    margin: 0;

    font-size: 15px;
    font-weight: 700;

    line-height: 1.4;
}


.product-card-title a:hover {
    color:
        var(--elite-accent);
}


.product-card-description {
    min-height: 38px;

    margin:
        7px 0 12px;

    overflow: hidden;

    color:
        var(--elite-text-soft);

    font-size: 12px;

    line-height: 1.55;

    display:
        -webkit-box;

    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}


.product-card-pricing {
    display: flex;

    align-items: baseline;

    gap: 9px;

    margin-bottom: 15px;
}


.product-price {
    color:
        var(--elite-black);

    font-size: 18px;
}


.product-mrp {
    color:
        var(--elite-text-muted);

    font-size: 12px;

    text-decoration:
        line-through;
}


.product-card-button {
    min-height: 40px;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
        1px solid var(--elite-black);

    border-radius:
        var(--radius-sm);

    color:
        var(--elite-black);

    font-size: 12px;
    font-weight: 700;

    transition:
        background var(--transition-fast),
        color var(--transition-fast);
}


.product-card-button:hover {
    background:
        var(--elite-black);

    color:
        var(--elite-white);
}


/* ==========================================================
   FINAL CTA
========================================================== */

.home-final-cta {
    padding:
        70px 0;

    background:
        var(--elite-black);

    color:
        var(--elite-white);
}


.home-final-cta-inner {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


.home-final-cta h2 {
    margin:
        5px 0 8px;

    font-family:
        'Oswald',
        Arial,
        sans-serif;

    font-size: 42px;

    line-height: 1.05;
}


.home-final-cta p {
    margin: 0;

    color:
        #bcbcbc;
}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (
    max-width: 1050px
) {

    .category-grid,
    .product-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

}


@media (
    max-width: 780px
) {

    .home-hero {
        min-height: 560px;
    }


    .home-hero-content {
        padding:
            70px 0;
    }


    .home-section-heading {
        align-items: flex-start;

        flex-direction: column;

        margin-bottom: 28px;
    }


    .category-grid,
    .product-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .home-final-cta-inner {
        align-items: flex-start;

        flex-direction: column;
    }

}


@media (
    max-width: 520px
) {

    .home-category-section,
    .home-product-section {
        padding:
            58px 0;
    }


    .home-hero {
        min-height: 530px;
    }


    .home-hero-title {
        font-size: 50px;
    }


    .home-hero-description {
        font-size: 15px;
    }


    .category-grid,
    .product-grid {
        grid-template-columns:
            1fr;
    }


    .category-card {
        min-height: 130px;
    }


    .home-section-title {
        font-size: 32px;
    }


    .home-final-cta h2 {
        font-size: 34px;
    }

}