/* =========================================================
   COMMODITIES TRADING
   Alabash India Enterprise
========================================================= */

:root {
    --commodities-red: #e30613;
    --commodities-red-dark: #b9000a;
    --commodities-black: #111111;
    --commodities-dark: #181818;
    --commodities-gray: #666666;
    --commodities-light: #f5f5f3;
    --commodities-border: #ddddda;
    --commodities-white: #ffffff;
}


/* =========================================================
   GLOBAL
========================================================= */

.commodities-page {
    width: 100%;
    overflow-x: hidden;
    background: #ffffff;
    color: var(--commodities-black);
}

.commodities-page *,
.commodities-page *::before,
.commodities-page *::after {
    box-sizing: border-box;
}

.commodities-container {
    width: min(1240px, calc(100% - 80px));
    margin: 0 auto;
}


/* =========================================================
   HERO
========================================================= */

.commodities-hero {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    background: #111111;
}

.commodities-hero-image {
    position: absolute;
    inset: 0;
}

.commodities-hero-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.commodities-hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.86) 0%,
            rgba(0, 0, 0, 0.58) 45%,
            rgba(0, 0, 0, 0.12) 100%
        );
}

.commodities-hero-content {
    position: relative;
    z-index: 2;

    width: min(1240px, calc(100% - 80px));
    min-height: 650px;
    margin: 0 auto;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;

    padding: 80px 0;

    color: #ffffff;
}

.commodities-eyebrow {
    margin-bottom: 22px;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.commodities-eyebrow::before {
    content: "";

    display: inline-block;

    width: 42px;
    height: 2px;

    margin-right: 14px;

    vertical-align: middle;

    background: var(--commodities-red);
}

.commodities-hero h1 {
    margin: 0;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(55px, 7vw, 100px);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -3px;
}

.commodities-hero p {
    max-width: 650px;

    margin: 32px 0 0;

    color: rgba(255, 255, 255, 0.85);

    font-size: 18px;
    line-height: 1.8;
}


/* =========================================================
   CATEGORY NAVIGATION
========================================================= */

.commodities-category-nav {
    position: sticky;
    top: 0;
    z-index: 900;

    width: 100%;

    background: rgba(255, 255, 255, 0.97);

    border-bottom: 1px solid var(--commodities-border);

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);

    overflow-x: auto;
    overflow-y: hidden;

    -webkit-overflow-scrolling: touch;
}

.commodities-category-nav::-webkit-scrollbar {
    height: 0;
}

.commodities-category-nav-inner {
    width: min(1240px, calc(100% - 80px));
    min-height: 76px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 5px;

    white-space: nowrap;
}

.commodities-category-link {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 76px;

    padding: 0 22px;

    color: #555555;

    text-decoration: none;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-transform: uppercase;

    transition:
        color 0.25s ease,
        background-color 0.25s ease;
}

.commodities-category-link::after {
    content: "";

    position: absolute;

    left: 22px;
    right: 22px;
    bottom: 0;

    height: 3px;

    background: var(--commodities-red);

    transform: scaleX(0);

    transition: transform 0.25s ease;
}

.commodities-category-link:hover,
.commodities-category-link.active {
    color: var(--commodities-red);
}

.commodities-category-link:hover::after,
.commodities-category-link.active::after {
    transform: scaleX(1);
}


/* =========================================================
   SECTION HEADINGS
========================================================= */

.commodities-section-label {
    display: block;

    margin-bottom: 16px;

    color: var(--commodities-red);

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.commodities-section-heading h2,
.commodities-products-heading h2 {
    max-width: 900px;

    margin: 0;

    color: #171717;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 5vw, 68px);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -1.5px;
}


/* =========================================================
   INTRODUCTION
========================================================= */

.commodities-introduction {
    padding: 120px 0 110px;

    background: #ffffff;
}

.commodities-introduction-content {
    max-width: 850px;

    margin-top: 48px;
}

.commodities-introduction-content p {
    margin: 0 0 24px;

    color: #555555;

    font-size: 17px;
    line-height: 1.9;
}

.commodities-introduction-content p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   PRODUCTS
========================================================= */

.commodities-products {
    padding: 110px 0 125px;

    background: var(--commodities-light);
}

.commodities-products-heading {
    margin-bottom: 55px;
}

.commodities-product-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 24px;
}


/* =========================================================
   PRODUCT CARD
========================================================= */

.commodities-product-card {
    position: relative;

    min-height: 470px;

    overflow: hidden;

    background: #111111;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.08);
}

.commodities-product-card:nth-child(4) {
    grid-column: 1 / 2;
}

.commodities-product-image {
    position: absolute;
    inset: 0;

    overflow: hidden;
}

.commodities-product-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.8s ease;
}

.commodities-product-card:hover
.commodities-product-image img {
    transform: scale(1.07);
}

.commodities-product-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.90) 0%,
            rgba(0, 0, 0, 0.40) 50%,
            rgba(0, 0, 0, 0.05) 100%
        );
}

.commodities-product-number {
    position: absolute;

    top: 25px;
    left: 25px;

    color: rgba(255, 255, 255, 0.65);

    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
}

.commodities-product-content {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    z-index: 2;

    padding: 35px;
}

.commodities-product-label {
    display: block;

    margin-bottom: 10px;

    color: var(--commodities-red);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.commodities-product-content h3 {
    margin: 0;

    color: #ffffff;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 42px;
    font-weight: 400;
    line-height: 1;
}


/* =========================================================
   CTA
========================================================= */

.commodities-cta {
    position: relative;

    min-height: 500px;

    display: flex;
    align-items: center;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.90),
            rgba(0, 0, 0, 0.62)
        ),
        url("../images/what-we-do/commodities/commodities-hero.jpg")
        center / cover no-repeat;
}

.commodities-cta-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(227, 6, 19, 0.10),
            transparent 60%
        );
}

.commodities-cta-content {
    position: relative;
    z-index: 2;

    color: #ffffff;
}

.commodities-cta-content h2 {
    max-width: 850px;

    margin: 0 0 25px;

    color: #ffffff;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 5.5vw, 72px);
    font-weight: 400;
    line-height: 1.05;
}

.commodities-cta-content p {
    max-width: 650px;

    margin: 0 0 35px;

    color: rgba(255, 255, 255, 0.72);

    font-size: 16px;
    line-height: 1.8;
}

.commodities-cta-button {
    display: inline-flex;
    align-items: center;

    gap: 22px;

    padding: 16px 25px;

    background: var(--commodities-red);

    color: #ffffff;

    text-decoration: none;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.8px;

    transition:
        background-color 0.25s ease,
        transform 0.25s ease;
}

.commodities-cta-button span {
    font-size: 20px;
    line-height: 1;
}

.commodities-cta-button:hover {
    background: var(--commodities-red-dark);
    transform: translateY(-2px);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .commodities-container,
    .commodities-hero-content,
    .commodities-category-nav-inner {
        width: calc(100% - 50px);
    }

    .commodities-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .commodities-product-card:nth-child(4) {
        grid-column: auto;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .commodities-container,
    .commodities-hero-content {
        width: calc(100% - 36px);
    }

    .commodities-hero {
        min-height: 550px;
    }

    .commodities-hero-content {
        min-height: 550px;
    }

    .commodities-hero h1 {
        font-size: 54px;
        letter-spacing: -2px;
    }

    .commodities-hero p {
        font-size: 15px;
        line-height: 1.7;
    }

    .commodities-category-nav {
        position: relative;
    }

    .commodities-category-nav-inner {
        width: max-content;
        min-width: 100%;

        justify-content: flex-start;
    }

    .commodities-category-link {
        min-height: 65px;
        padding: 0 16px;

        font-size: 9px;
    }

    .commodities-category-link::after {
        left: 16px;
        right: 16px;
    }

    .commodities-introduction {
        padding: 75px 0;
    }

    .commodities-section-heading h2,
    .commodities-products-heading h2 {
        font-size: 42px;
    }

    .commodities-introduction-content {
        margin-top: 35px;
    }

    .commodities-introduction-content p {
        font-size: 15px;
    }

    .commodities-products {
        padding: 75px 0;
    }

    .commodities-product-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .commodities-product-card {
        min-height: 390px;
    }

    .commodities-product-content {
        padding: 28px;
    }

    .commodities-product-content h3 {
        font-size: 38px;
    }

    .commodities-cta {
        min-height: 460px;
    }

    .commodities-cta-content h2 {
        font-size: 43px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .commodities-container,
    .commodities-hero-content {
        width: calc(100% - 28px);
    }

    .commodities-hero {
        min-height: 500px;
    }

    .commodities-hero-content {
        min-height: 500px;
    }

    .commodities-hero h1 {
        font-size: 48px;
    }

    .commodities-product-card {
        min-height: 350px;
    }

    .commodities-product-content h3 {
        font-size: 34px;
    }

    .commodities-cta-content h2 {
        font-size: 38px;
    }

}

.commodities-product-card {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {

    .commodities-product-card {
        opacity: 0;
        transform: translateY(25px);

        transition:
            opacity 0.65s ease,
            transform 0.65s ease;
    }

    .commodities-product-card.commodities-product-visible {
        opacity: 1;
        transform: translateY(0);
    }

}