/* =========================================================
   mojagold HOME DESIGN V2
   Purpose: create stronger visual rhythm across the home page
   ========================================================= */

:root {
    --mg-v2-gold: #b38a35;
    --mg-v2-cream: #f3eee5;
    --mg-v2-cream-deep: #e9e0d2;
    --mg-v2-ink: #1f1f1d;
    --mg-v2-muted: #74716b;
}

/* Overall rhythm */
.home-commerce {
    padding-top: 88px;
    padding-bottom: 0;
}

.home-section {
    max-width: 1320px;
}

.home-section + .home-section {
    margin-top: 128px;
}

.home-section__title {
    font-size: clamp(1.65rem, 2.3vw, 2.5rem);
    letter-spacing: .08em;
}

.home-section__subtitle {
    color: var(--mg-v2-muted);
}

.home-section__title-wrap::before {
    background: var(--mg-v2-gold);
    content: "";
    display: block;
    height: 2px;
    margin-bottom: 15px;
    width: 38px;
}

/* ---------------------------------------------------------
   FEATURED PRODUCTS
   Keep this section calm and clean so the products are the focus.
   --------------------------------------------------------- */

.featured-grid {
    gap: clamp(18px, 2.4vw, 34px);
}

.featured-card__image-wrap {
    background: #f8f7f4;
}

.featured-card__image {
    transition: transform .4s ease;
}

.featured-card__link:hover .featured-card__image,
.featured-card__link:focus-visible .featured-card__image {
    transform: scale(1.025);
}

/* ---------------------------------------------------------
   CATEGORY — asymmetric editorial mosaic
   --------------------------------------------------------- */

.category-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: 240px 240px;
}

.category-card {
    min-width: 0;
}

.category-card:nth-child(1) {
    grid-column: 1 / 8;
    grid-row: 1 / 3;
}

.category-card:nth-child(3) {
    grid-column: 8 / 13;
    grid-row: 1 / 2;
}

.category-card:nth-child(2) {
    grid-column: 8 / 11;
    grid-row: 2 / 3;
}

.category-card:nth-child(4) {
    grid-column: 11 / 13;
    grid-row: 2 / 3;
}

.category-card__link,
.category-card__disabled {
    height: 100%;
    position: relative;
}

.category-card__visual {
    aspect-ratio: auto;
    background: var(--mg-v2-cream);
    height: 100%;
}

.category-card__image {
    object-fit: contain;
    padding: 6%;
}

.category-card:nth-child(1) .category-card__image {
    padding: 4%;
}

.category-card__body {
    background: linear-gradient(to top, rgba(26, 24, 20, .72), rgba(26, 24, 20, 0));
    bottom: 0;
    color: #fff;
    left: 0;
    padding: 58px 22px 20px;
    position: absolute;
    right: 0;
    text-align: left;
}

.category-card__name {
    font-size: clamp(.95rem, 1.5vw, 1.25rem);
    letter-spacing: .03em;
}

.category-card__en {
    color: rgba(255,255,255,.76);
}

.category-card__disabled .category-card__visual {
    opacity: 1;
}

.category-card__visual--placeholder {
    background: linear-gradient(135deg, #eee7dc, #f7f3ec);
}

.category-card__badge {
    background: rgba(255,255,255,.9);
    letter-spacing: .12em;
}

.category-card__placeholder-text {
    color: #81786d;
}

/* ---------------------------------------------------------
   GONTA SERIES — image first, content card overlaps the visual
   Keep the outer width aligned with the commerce/category canvas.
   --------------------------------------------------------- */

.gonta-series {
    margin: 210px auto 140px;
    max-width: 1180px;
    padding: 0 28px;
}

.gonta-series__panel {
    background: transparent;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(390px, .8fr);
    min-height: 640px;
    overflow: visible;
    position: relative;
}

.gonta-series__visual {
    grid-column: 1 / 3;
    grid-row: 1;
    min-height: 640px;
    overflow: hidden;
    position: relative;
}

.gonta-series__visual::after {
    background: linear-gradient(90deg, rgba(0,0,0,.03), rgba(0,0,0,0) 65%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.gonta-series__visual img {
    object-position: center;
}

.gonta-series__content {
    align-self: center;
    background: rgba(247, 243, 236, .96);
    box-shadow: 0 24px 60px rgba(53, 42, 24, .12);
    grid-column: 2 / 3;
    grid-row: 1;
    margin-right: clamp(20px, 4vw, 70px);
    padding: clamp(38px, 4.4vw, 66px);
    position: relative;
    z-index: 2;
}

.gonta-series__eyebrow {
    color: var(--mg-v2-gold);
}

.gonta-series__title {
    color: var(--mg-v2-ink);
}

.gonta-series__description {
    color: #4b4944;
}

.gonta-series__products {
    gap: 12px;
}

.gonta-series__product-image {
    background: #fff;
}

.gonta-series__link {
    border-bottom-color: var(--mg-v2-gold);
}

/* ---------------------------------------------------------
   ABOUT MOJAGOLD — quieter editorial finish
   --------------------------------------------------------- */

.about-mojagold {
    align-items: stretch;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
    margin: 0 auto 140px;
    max-width: 1280px;
    padding: 0 5vw;
}

.about-mojagold__media {
    min-height: 540px;
    overflow: hidden;
}

.about-mojagold__media img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.about-mojagold__content {
    align-items: flex-start;
    background: #20201e;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(42px, 5.5vw, 82px);
}

.about-mojagold__eyebrow {
    color: #d2b56d;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .18em;
    margin: 0 0 18px;
}

.about-mojagold__title {
    font-size: clamp(2rem, 3.4vw, 3.6rem);
    font-weight: 500;
    letter-spacing: .04em;
    line-height: 1.25;
    margin: 0 0 30px;
}

.about-mojagold__text {
    color: rgba(255,255,255,.76);
    font-size: .95rem;
    line-height: 2.05;
    margin: 0 0 34px;
}

.about-mojagold__link {
    border-bottom: 1px solid #d2b56d;
    color: #fff;
    font-size: .86rem;
    font-weight: 600;
    padding-bottom: 6px;
    text-decoration: none;
}

/* Footer: slightly more editorial spacing */
footer {
    margin-top: 0;
}

.nav-menu_footer {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    justify-content: center;
    max-width: 760px;
    width: auto;
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 900px) {
    .home-commerce {
        padding-top: 64px;
    }

    .home-section + .home-section {
        margin-top: 88px;
    }

    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: 300px 210px 210px;
    }

    .category-card:nth-child(1) {
        grid-column: 1 / 3;
        grid-row: 1 / 2;
    }

    .category-card:nth-child(3) {
        grid-column: 1 / 3;
        grid-row: 2 / 3;
    }

    .category-card:nth-child(2) {
        grid-column: 1 / 2;
        grid-row: 3 / 4;
    }

    .category-card:nth-child(4) {
        grid-column: 2 / 3;
        grid-row: 3 / 4;
    }

    .gonta-series {
        margin: 130px auto 100px;
        padding: 0 20px;
    }

    .gonta-series__panel {
        display: block;
        min-height: 0;
    }

    .gonta-series__visual {
        aspect-ratio: 16 / 10;
        min-height: 0;
    }

    .gonta-series__content {
        margin: -72px 20px 0;
        padding: 40px 30px;
    }

    .about-mojagold {
        grid-template-columns: 1fr;
        margin-bottom: 90px;
        padding: 0 20px;
    }

    .about-mojagold__media {
        aspect-ratio: 16 / 10;
        min-height: 0;
    }

    .about-mojagold__content {
        padding: 42px 30px 48px;
    }
}

@media (max-width: 600px) {
    .home-commerce {
        padding-left: 14px;
        padding-right: 14px;
    }

    .home-section__heading {
        margin-bottom: 20px;
    }

    .category-grid {
        gap: 10px;
        grid-template-rows: 230px 180px 150px;
    }

    .category-card__body {
        padding: 46px 14px 14px;
    }

    .category-card__badge {
        font-size: 8px;
        right: 8px;
        top: 8px;
    }

    .gonta-series {
        margin: 96px auto 76px;
        padding: 0 14px;
    }

    .gonta-series__content {
        margin: -42px 10px 0;
        padding: 30px 22px 34px;
    }

    .about-mojagold {
        margin-bottom: 72px;
        padding: 0 14px;
    }

    .about-mojagold__content {
        padding: 34px 22px 40px;
    }

    footer .nav-menu_footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin: 34px auto 24px;
        padding: 0 20px;
        width: 100%;
    }

    footer .nav-menu_footer a {
        color: #fff;
        display: block;
        font-size: 13px;
        line-height: 1.5;
        padding: 5px 8px;
        text-align: center;
        width: auto;
    }
}
