/* =========================================
   HOME — SECTION 2: Category grid
   Static CSS grid — 4 columns on desktop, 2 columns on
   mobile — of the 4 product categories. (Previously two
   rows, the second being a "Shop by" hub row; trimmed to
   categories only. Class names kept as `marquee-*` for
   minimal disruption to the rest of the section's CSS/PHP.)
   ========================================= */

.marquee-section {
    position: relative;
    z-index: 10;
    padding: 6rem 0 7rem;
    border-top: 1px solid var(--border-light);
}

.marquee-section__head {
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto 3.5rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.marquee-section__eyebrow {
    display: block;
    font-family: monospace;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--accent-glow);
    margin-bottom: 0.75rem;
    opacity: 0.85;
}

.marquee-section__title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.05;
    max-width: 20ch;
}

.marquee-section__sub {
    color: var(--text-dim);
    font-size: 1.05rem;
    max-width: 32ch;
    line-height: 1.6;
}

/* ---- Grid ---- */
.marquee-row {
    margin-bottom: 2rem;
}

.marquee-row:last-child {
    margin-bottom: 0;
}

.marquee-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

@media (max-width: 768px) {
    .marquee-section {
        padding: 3.5rem 0 4rem;
    }
    .marquee-section__head {
        margin-bottom: 2.25rem;
    }
    .marquee-track {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* ---- Card (image-first, clean caption) ---- */
.marquee-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-bright);
}

.marquee-card__media {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid var(--border-light);
    background: #05060a;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.marquee-card:hover .marquee-card__media {
    border-color: rgba(212, 175, 55, 0.45);
    box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.9);
}

.marquee-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.marquee-card:hover .marquee-card__img { transform: scale(1.05); }

.marquee-card__body {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 0.15rem 0;
}

.marquee-card__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.marquee-card__kicker {
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}

.marquee-card__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.35rem;
    line-height: 1.15;
    letter-spacing: 0.01em;
    color: var(--text-bright);
    transition: color 0.35s ease;
}

.marquee-card:hover .marquee-card__title { color: var(--accent-glow); }

.marquee-card__arrow {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-top: 0.15rem;
    border: 1px solid var(--border-light);
    border-radius: 50%;
    color: var(--text-dim);
    transition: border-color 0.35s ease, background 0.35s ease, color 0.35s ease, transform 0.35s ease;
}

.marquee-card__arrow svg { width: 14px; height: 14px; display: block; }

.marquee-card:hover .marquee-card__arrow {
    border-color: var(--accent-glow);
    background: var(--accent-glow);
    color: var(--bg-void);
    transform: translateX(3px);
}

/* asymmetric grid — offset the even cards on desktop */
@media (min-width: 769px) {
    .marquee-track { align-items: start; }
    .marquee-card:nth-child(even) { margin-top: 3.5rem; }
}

@media (max-width: 480px) {
    .marquee-card__title { font-size: 1.15rem; }
    .marquee-card__body { padding-top: 0.9rem; }
}
