/* =========================================================
   HITECH IRONMONGERIES
   SECTIONS CSS
   ========================================================= */


/* =========================================================
   GENERAL SECTION HELPERS
   ========================================================= */

.featured-categories {
    background: #ffffff;
}

.section-heading {
    max-width: 700px;
    margin: auto;
}

.section-subtitle {
    color: #32b57f;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 13px;
}

.section-heading h2 {
    font-size: 42px;
    margin: 15px 0;
    font-weight: 700;
}

.section-heading p {
    color: #777;
    line-height: 1.8;
}


/* =========================================================
   GENERIC CATEGORY CARD
   ========================================================= */

.category-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 12px;
}

.category-card img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    transition: transform .5s ease;
}

.category-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    padding: 30px;

    background: linear-gradient(
        transparent,
        rgba(0, 0, 0, .75)
    );
}

.category-overlay h3 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 8px;
}

.category-overlay span {
    color: #32b57f;
    font-weight: 600;
}

.category-card:hover img {
    transform: scale(1.08);
}


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

.about-section {
    padding: 100px 0;
    background: #ffffff;
}

.about-section .row {
    min-height: 520px;
}

.about-section .section-subtitle {
    display: block;

    margin-bottom: 14px;

    color: #32b57f;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 3px;
    text-transform: uppercase;
}

.about-section .section-title {
    margin: 0 0 24px;

    color: #111;

    font-size: 46px;
    font-weight: 600;

    line-height: 1.15;
}

.about-section p {
    max-width: 560px;

    margin-bottom: 18px;

    color: #555;

    font-size: 17px;
    line-height: 1.8;
}

.about-section .about-intro {
    color: #333;
    font-size: 19px;
    line-height: 1.7;
}


/* About features */

.about-features {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 14px 25px;

    max-width: 600px;

    margin-top: 28px;
}

.about-features .feature-item {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 0;

    color: #222;

    font-size: 16px;
    font-weight: 500;
}

.about-features .feature-item i {
    color: #32b57f;
    font-size: 17px;
}


/* About button */

.about-section .btn-primary {
    background: #102B5C;
    border: 1px solid #102B5C;
    border-radius: 0;

    padding: 13px 30px;

    transition:
        background .3s ease,
        border-color .3s ease;
}

.about-section .btn-primary:hover {
    background: #32b57f;
    border-color: #32b57f;
}


/* About image */

.about-section .col-lg-6:last-child {
    height: 520px;
}

.about-section .col-lg-6:last-child img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 0 !important;
    box-shadow: none !important;
}

.about-image-wrap {
    position: relative;

    overflow: hidden;

    border-radius: 4px;

    background: #f5f5f5;
}

.about-image {
    display: block;

    width: 100%;
    height: auto;

    transition: transform .6s ease;
}

.about-image-wrap:hover .about-image {
    transform: scale(1.025);
}


/* =========================================================
   HITECH PRODUCT CARD
   Used by featured-products.php
   ========================================================= */

.hitech-product-card {
    height: 100%;

    background: #fff;

    border: 1px solid #eeeeee;

    overflow: hidden;

    transition:
        transform .35s ease,
        box-shadow .35s ease;
}

.hitech-product-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 15px 40px rgba(0, 0, 0, .08);
}

.product-card-image {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 301px;

    background: transparent;

    overflow: hidden;
}

.product-card-image img {
    width: 100% !important;
    height: 100% !important;

    max-width: 100%;

    object-fit: contain !important;
    object-position: center center;

    padding: 0 !important;
    margin: 0 !important;

    background: transparent;

    display: block;

    transition: transform .45s ease;
}

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

.product-badge {
    position: absolute;

    top: 15px;
    left: 15px;

    z-index: 2;

    background: #32b57f;
    color: #fff;

    padding: 6px 12px;

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 1px;
}

.product-card-content {
    padding: 25px;
}

.product-card-category {
    display: block;

    margin-bottom: 8px;

    color: #32b57f;

    font-size: 11px;
    font-weight: 600;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}

.product-card-title {
    margin: 0 0 8px;

    font-size: 20px;
    line-height: 1.35;
}

.product-card-title a {
    color: #222;
    text-decoration: none;
}

.product-card-title a:hover {
    color: #102B5C;
}

.product-card-sku {
    margin-bottom: 15px;

    color: #888;

    font-size: 12px;
}

.product-card-specifications {
    display: flex;
    flex-direction: column;

    gap: 5px;

    margin-bottom: 20px;

    color: #666;

    font-size: 13px;
    line-height: 1.5;
}

.product-card-specifications strong {
    color: #333;
}

.product-card-link {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    color: #102B5C;

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    transition:
        color .25s ease,
        gap .25s ease;
}

.product-card-link:hover {
    color: #32b57f;
    gap: 12px;
}


/* =========================================================
   HOMEPAGE PRODUCTS SECTION
   Matches the approved categories.php
   ========================================================= */

.hitech-products-section {
    padding: 110px 0;

    background: #ffffff;
}


/* Main two-column layout */

.hitech-products-layout {
    display: grid;

    /*
     * 38fr + 62fr ensures the columns account
     * correctly for the available width while
     * preserving the intended 38/62 proportion.
     */
    grid-template-columns:
        minmax(0, 38fr)
        minmax(0, 62fr);

    align-items: stretch;

    gap: 55px;
}


/* =========================================================
   FEATURE IMAGE
   ========================================================= */

.hitech-products-feature {
    min-height: 560px;

    overflow: hidden;

    background: #f4f5f5;
}

.hitech-products-feature-link {
    display: block;

    width: 100%;
    height: 100%;

    overflow: hidden;
}

.hitech-products-feature img {
    display: block;

    width: 100%;
    height: 100%;

    min-height: 560px;

    object-fit: cover;

    transition:
        transform .6s ease,
        filter .6s ease;
}

.hitech-products-feature-link:hover img {
    transform: scale(1.025);

    filter: brightness(.96);
}


/* =========================================================
   PRODUCTS CONTENT
   ========================================================= */

.hitech-products-content {
    display: flex;

    flex-direction: column;

    justify-content: space-between;

    min-width: 0;
}


/* =========================================================
   PRODUCTS HEADING
   ========================================================= */

.hitech-products-content
.hitech-section-heading {
    max-width: 760px;

    padding: 5px 0 45px;
}

.hitech-section-eyebrow {
    display: block;

    margin-bottom: 14px;

    color: #32b57f;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 3px;

    text-transform: uppercase;
}

.hitech-products-content
.hitech-section-heading h2 {
    margin: 0 0 18px;

    color: #151515;

    font-size: clamp(36px, 4vw, 52px);

    font-weight: 600;

    line-height: 1.08;
}

.hitech-products-content
.hitech-section-heading p {
    max-width: 680px;

    margin: 0 0 28px;

    color: #555;

    font-size: 18px;

    line-height: 1.7;
}


/* =========================================================
   PRODUCTS BUTTON
   ========================================================= */

.hitech-outline-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 180px;

    padding: 13px 26px;

    border: 1px solid #222;

    background: transparent;

    color: #222;

    font-size: 15px;
    font-weight: 500;

    text-decoration: none;

    transition:
        background .25s ease,
        color .25s ease,
        border-color .25s ease;
}

.hitech-outline-button:hover {
    background: #102B5C;

    border-color: #102B5C;

    color: #fff;
}


/* =========================================================
   PRODUCT CATEGORY GRID
   ========================================================= */

.hitech-product-categories {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 22px;

    margin-top: auto;
}


/* Category card */

.hitech-product-category {
    display: block;

    overflow: hidden;

    color: #222;

    text-decoration: none;
}


/* Category image */

.hitech-product-category-image {
    position: relative;

    width: 100%;

    aspect-ratio: 1 / 1;

    overflow: hidden;

    background: #f4f5f5;
}

.hitech-product-category-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .5s ease,
        filter .5s ease;
}

.hitech-product-category:hover
.hitech-product-category-image img {
    transform: scale(1.04);

    filter: brightness(.95);
}


/* Category name */

.hitech-product-category-name {
    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 17px 2px 5px;

    color: #222;

    font-size: 16px;
    font-weight: 500;

    line-height: 1.35;
}

.hitech-product-category-name
> span:first-child {
    padding-right: 10px;
}

.hitech-arrow {
    flex-shrink: 0;

    color: #32b57f;

    font-size: 20px;

    transition:
        transform .25s ease,
        color .25s ease;
}

.hitech-product-category:hover
.hitech-arrow {
    color: #102B5C;

    transform: translateX(5px);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991px) {

    /* About */

    .about-section {
        padding: 75px 0;
    }

    .about-section .row {
        min-height: auto;
    }

    .about-section .section-title {
        font-size: 38px;
    }

    .about-section .about-intro {
        font-size: 17px;
    }

    .about-section .col-lg-6:last-child {
        height: 450px;

        margin-top: 45px;
    }


    /* Products */

    .hitech-products-section {
        padding: 80px 0;
    }

    .hitech-products-layout {
        grid-template-columns: 1fr;

        gap: 45px;
    }

    .hitech-products-feature {
        min-height: 500px;
    }

    .hitech-products-feature img {
        min-height: 500px;
    }

    .hitech-products-content
    .hitech-section-heading {
        padding-bottom: 35px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    /* About */

    .about-section {
        padding: 60px 0;
    }

    .about-section .section-title {
        font-size: 32px;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .about-section .col-lg-6:last-child {
        height: 350px;

        margin-top: 35px;
    }


    /* Products */

    .hitech-products-section {
        padding: 65px 0;
    }

    .hitech-products-layout {
        gap: 35px;
    }

    .hitech-products-feature {
        min-height: 360px;
    }

    .hitech-products-feature img {
        min-height: 360px;
    }

    .hitech-products-content
    .hitech-section-heading h2 {
        font-size: 34px;
    }

    .hitech-products-content
    .hitech-section-heading p {
        font-size: 16px;
    }

    .hitech-product-categories {
        grid-template-columns: 1fr;

        gap: 30px;
    }

    .hitech-product-category-image {
        aspect-ratio: 16 / 10;
    }

}