
/* ============================================================
   V6 HOMEPAGE HERO — SUPPLYMASTER-INSPIRED
   Image files are optional; gradients remain visible until
   photos are added under /assets/images/hero/.
   ============================================================ */
.maje-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.85fr) minmax(280px, 1fr);
    gap: 16px;
    min-height: 490px;
    margin-bottom: 22px;
}
.maje-hero-feature {
    position: relative;
    display: flex;
    align-items: flex-start;
    overflow: hidden;
    min-height: 490px;
    border-radius: 14px;
    background-color: #1b1d21;
    background-image: linear-gradient(90deg, rgba(9, 12, 17, .94), rgba(9, 12, 17, .55) 65%, rgba(9, 12, 17, .10)), url('../images/hero/main.jpg');
    background-position: center;
    background-size: cover;
    color: #fff;
}
.maje-hero-copy { position: relative; z-index: 1; max-width: 590px; padding: 55px 38px; }
.maje-hero-kicker { font-size: 11px; font-weight: 800; letter-spacing: .14em; color: #ffc20e; }
.maje-hero-copy h1 { font-size: clamp(35px, 4vw, 57px); line-height: 1.08; letter-spacing: -.045em; margin: 16px 0; }
.maje-hero-copy h1 em { font-style: normal; color: #ffc20e; }
.maje-hero-copy p { max-width: 430px; color: #e6e6e6; line-height: 1.65; }
.maje-hero-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.maje-hero-buttons .ghost { background: #fff; color: #171717; }
.maje-hero-side { display: flex; flex-direction: column; min-width: 0; gap: 10px; }
.maje-hero-side-title { display: flex; flex-direction: column; gap: 1px; }
.maje-hero-side-title span { font-size: 10px; color: #9b6f00; font-weight: 800; letter-spacing: .1em; }
.maje-hero-side-title strong { font-size: 17px; }
.maje-promo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 10px; flex: 1; }
.maje-promo { position: relative; min-height: 185px; display: flex; align-items: flex-end; overflow: hidden; border-radius: 11px; color: #fff; background-size: cover; background-position: center; transition: transform .2s ease; }
.maje-promo:hover { transform: translateY(-3px); text-decoration: none; }
.maje-promo::before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.83), rgba(0,0,0,.02) 80%); }
.maje-promo-content { position: relative; display: flex; flex-direction: column; padding: 14px; gap: 3px; }
.maje-promo-content strong { font-size: 15px; line-height: 1.25; }
.maje-promo-content small { font-size: 11px; line-height: 1.35; }
.maje-promo-roof { background-color: #286884; background-image: url('../images/hero/roofing.jpg'); }
.maje-promo-doors { background-color: #9d5635; background-image: url('../images/hero/doors.jpg'); }
.maje-promo-mesh { background-color: #29704d; background-image: url('../images/hero/mesh.jpg'); }
.maje-promo-tools { background-color: #263f57; background-image: url('../images/hero/tools.jpg'); }
@media (max-width: 850px) {
    .maje-hero { grid-template-columns: 1fr; }
    .maje-hero-feature { min-height: 400px; }
    .maje-promo-grid { grid-template-rows: repeat(2, 180px); }
}
@media (max-width: 600px) {
    .maje-hero { gap: 20px; }
    .maje-hero-feature { min-height: 380px; }
    .maje-hero-copy { padding: 38px 23px; }
    .maje-hero-copy h1 { font-size: clamp(32px, 9vw, 43px); }
    .maje-hero-buttons .btn { padding: 10px 12px; font-size: 13px; }
    .maje-promo-grid { grid-template-rows: repeat(2, 155px); gap: 8px; }
    .maje-promo-content { padding: 11px; }
    .maje-promo-content strong { font-size: 13px; }
}

/**
 * MAJE-LINK TRADING
 * Mobile Navigation Refinements
 */

@media (max-width: 600px) {

    .mobile-bottom-nav a {
        position: relative;
        font-size: 0;
        min-height: 49px;
        gap: 0;
    }

    .mobile-bottom-nav a > .dashicons {
        display: inline-block;
        width: 26px;
        height: 26px;
        font-size: 26px;
        line-height: 1;
    }

    .mobile-bottom-nav a > small {
        position: absolute;
        top: 0;
        left: calc(50% + 7px);
        font-size: 10px;
    }

}


/**
 * MAJE-LINK TRADING
 * V6.1 — Wide Desktop Storefront
 *
 * Expands the main storefront layout while
 * preserving tablet and mobile responsiveness.
 */

@media (min-width: 1100px) {

    body .container,
    body .wrap,
    body .nav {
        width: calc(100% - 64px);
        max-width: 1400px;
        margin-left: auto;
        margin-right: auto;
    }

}


/**
 * V6.2 - Consistent desktop storefront width.
 *
 * The homepage uses a plain <main> element rather than
 * the .container or .wrap classes. Match its width to
 * the already-expanded desktop header.
 */
@media (min-width: 1100px) {
    body > main#main-content {
        box-sizing: border-box;
        width: calc(100% - 64px);
        max-width: 1400px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 20px;
        padding-right: 20px;
    }
}


/* ============================================================
   V6.3 - Desktop Footer Alignment

   Match the footer and copyright divider to the storefront
   desktop content width. Tablet/mobile rules remain unchanged.
   ============================================================ */

@media (min-width: 1100px) {

    body > footer .footer-inner,
    body > footer .copyright {
        box-sizing: border-box;
        width: calc(100% - 64px);
        max-width: 1400px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 20px;
        padding-right: 20px;
    }

}


/* ============================================================
   V6.4 - WIDE STOREFRONT AND PHOTOGRAPHIC CATEGORY TILES

   These rules extend the existing homepage without replacing
   its PHP templates or changing the mobile navigation.
   ============================================================ */

@media (min-width: 1100px) {
    body .container,
    body .wrap,
    body .nav,
    body > main#main-content,
    body > footer .footer-inner,
    body > footer .copyright {
        width: calc(100% - 64px);
        max-width: 1440px;
        box-sizing: border-box;
        margin-left: auto;
        margin-right: auto;
    }

    body > main#main-content {
        padding-left: 0;
        padding-right: 0;
    }

    .maje-hero {
        grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
        gap: 16px;
    }
}

/* Category photos are separate editable JPG files. */
.maje-promo {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    isolation: isolate;
}

.maje-promo::before {
    z-index: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.94) 0%,
        rgba(0, 0, 0, 0.60) 35%,
        rgba(0, 0, 0, 0.04) 90%
    );
}

.maje-promo-content {
    z-index: 1;
}

.maje-promo:focus-visible {
    outline: 3px solid #ffc20e;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .maje-promo {
        transition: none;
    }
}


/* ============================================================
   V6.5 | Homepage photographic category cards
   Kept separate from the hero and other global components.
   ============================================================ */
.home-categories {
    margin-top: 32px;
}

.category-grid.category-grid-photographic {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.category-grid-photographic .category-photo-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    min-width: 0;
    min-height: 110px;
    padding: 0;
    gap: 0;
    overflow: hidden;
    border: 1px solid #e4e7eb;
    border-radius: 12px;
    background: #fff;
    color: #161a20;
    text-decoration: none;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.category-grid-photographic .category-photo-card:hover {
    transform: none;
    border-color: #f5b800;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
}

.category-photo-card__image {
    display: block;
    width: 38%;
    min-width: 105px;
    align-self: stretch;
    overflow: hidden;
    background: #edf0f2;
}

.category-photo-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 110px;
    object-fit: cover;
}

.category-photo-card__details {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    gap: 7px;
    padding: 14px;
}

.category-photo-card__details strong {
    font-size: 14px;
    line-height: 1.35;
}

.category-photo-card__details small {
    font-size: 12px;
    color: #697384;
}

.category-photo-card__action {
    display: grid;
    place-items: center;
    flex: 0 0 30px;
    height: 30px;
    margin-right: 12px;
    border: 1px solid #e4e7eb;
    border-radius: 50%;
    color: #14171c;
}

.category-photo-card__action .dashicons {
    font-size: 17px;
    width: 17px;
    height: 17px;
}

.category-photo-card:focus-visible {
    outline: 3px solid #ffc20e;
    outline-offset: 3px;
}

@media (max-width: 1000px) {
    .category-grid.category-grid-photographic {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .category-grid.category-grid-photographic {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .category-grid-photographic .category-photo-card {
        min-height: 96px;
    }

    .category-photo-card__image img {
        min-height: 96px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .category-grid-photographic .category-photo-card {
        transition: none;
    }
}


/* ============================================================
   V6.6 | SHOPPING PATHWAYS AND CORE SUPPLY CATEGORIES
   These styles are scoped to the homepage sections only.
   ============================================================ */
.shopping-pathways,
.core-supply {
    margin-top: 48px;
    margin-bottom: 48px;
}

.shopping-pathways-heading {
    margin-bottom: 22px;
    text-align: center;
}

.shopping-pathways-heading h2 {
    margin: 8px 0;
}

.shopping-pathways-heading p {
    margin: 0;
    color: #657080;
}

.shopping-pathways-grid {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    grid-template-rows: repeat(2, minmax(190px, 1fr));
    gap: 14px;
}

.shopping-pathway {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 190px;
    overflow: hidden;
    border-radius: 12px;
    background-color: #1a222b;
    background-position: center;
    background-size: cover;
    color: #fff;
    text-decoration: none;
}

.shopping-pathway::before {
    position: absolute;
    inset: 0;
    content: '';
    background: linear-gradient(0deg, rgba(4, 9, 15, .94), rgba(4, 9, 15, .18));
}

.shopping-pathway-primary {
    grid-row: span 2;
    min-height: 394px;
    background-image: url('../images/hero/main.jpg');
}

.shopping-pathway-wholesale {
    background-image: url('../images/categories/roofing.jpg');
}

.shopping-pathway-help {
    background-image: url('../images/categories/tools.jpg');
}

.shopping-pathway-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    max-width: 440px;
    padding: 28px;
}

.shopping-pathway-content strong {
    font-size: clamp(21px, 2vw, 31px);
    line-height: 1.15;
}

.shopping-pathway-content > span:not(.shopping-pathway-cta):not(.shopping-pathway-label) {
    font-size: 14px;
    line-height: 1.55;
}

.shopping-pathway-label {
    color: #ffc20e;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
}

.shopping-pathway-cta {
    display: inline-flex;
    padding: 10px 15px;
    border-radius: 6px;
    background: #ffc20e;
    color: #12161b;
    font-size: 13px;
    font-weight: 800;
}

.shopping-pathway:hover,
.core-supply-card:hover {
    text-decoration: none;
}

.shopping-pathway:focus-visible,
.core-supply-card:focus-visible {
    outline: 3px solid #ffc20e;
    outline-offset: 3px;
}

.core-supply-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.core-supply-card {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-width: 0;
    min-height: 235px;
    overflow: hidden;
    border-radius: 12px;
    background: #1b222a;
    color: #fff;
    text-decoration: none;
}

.core-supply-card::after {
    position: absolute;
    inset: 0;
    content: '';
    background: linear-gradient(0deg, rgba(0, 0, 0, .85), transparent 75%);
}

.core-supply-card img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.core-supply-card-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 6px;
    padding: 15px;
}

.core-supply-card-content strong {
    font-size: 14px;
    line-height: 1.3;
}

.core-supply-card-content .dashicons {
    flex-shrink: 0;
    color: #ffc20e;
}

@media (max-width: 1100px) {
    .core-supply-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .shopping-pathways-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .shopping-pathway-primary {
        grid-row: auto;
        min-height: 300px;
    }

    .shopping-pathway-content {
        padding: 22px;
    }

    .core-supply-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .core-supply-card {
        min-height: 210px;
    }
}




/* ==========================================
   THREE WAYS TO SHOP
   Typography Improvements
========================================== */

.shopping-pathways h2 {
    font-size: 30px;
    line-height: 1.2;
}

.shopping-pathways .pathway-card h3 {
    font-size: 22px;
    line-height: 1.25;
}

.shopping-pathways .pathway-card:first-child h3 {
    font-size: 26px;
}

.shopping-pathways .pathway-card p {
    font-size: 15px;
    line-height: 1.6;
}

.shopping-pathways .pathway-card .btn {
    font-size: 14px;
    font-weight: 600;
}

