/* MK Event Hire Categories
 * Category rows for the Event Hire page. Card design mirrors the
 * WooCommerce archive product cards (archive.css): white ground, quiet
 * framed surfaces, serif title overlaid on the image's lower edge behind
 * a white scrim that fades on hover, soft lift + slow image zoom.
 */

.mk-event-hire-categories {
    /* Archive palette (matches .mk-archive in the theme) */
    --ehc-bg: #ffffff;
    --ehc-surface: #ffffff;
    --ehc-text: #1c1a17;
    --ehc-muted: #857f74;
    --ehc-border: #e8e3d9;
    --ehc-radius: 2px;
    --ehc-shadow: 0 1px 2px rgba(28, 26, 23, 0.04), 0 8px 24px rgba(28, 26, 23, 0.06);
    --ehc-shadow-hover: 0 2px 4px rgba(28, 26, 23, 0.06), 0 18px 44px rgba(28, 26, 23, 0.12);

    padding: 90px 0 40px;
    background: var(--ehc-bg);
    color: var(--ehc-text);
}

.mk-event-hire-categories__header {
    max-width: 1180px;
    margin: 0 auto 56px;
    padding: 0 32px;
    text-align: center;
}

.mk-event-hire-categories__header h2 {
    margin: 0 0 14px;
    font-family: 'Cormorant Garamond', 'Playfair Display', 'Times New Roman', Georgia, serif;
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.1;
    color: var(--ehc-text);
}

.mk-event-hire-categories__header p {
    margin: 0;
    color: var(--ehc-muted);
    font-size: 1.05rem;
}

.mk-event-hire-categories__rows {
    display: flex;
    flex-direction: column;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 32px;
}

.mk-event-hire-category-row {
    display: grid;
    grid-template-columns: minmax(220px, 0.22fr) minmax(0, 0.78fr);
    gap: 40px;
    align-items: start;
    padding: 56px 0;
    border-top: 1px solid var(--ehc-border);
}

.mk-event-hire-category-row:last-child {
    border-bottom: 1px solid var(--ehc-border);
}

.mk-event-hire-category-row__intro {
    position: sticky;
    top: 120px;
}

.mk-event-hire-category-row__intro h3 {
    margin: 0;
    font-family: 'Cormorant Garamond', 'Playfair Display', 'Times New Roman', Georgia, serif;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.12;
    color: var(--ehc-text);
}

.mk-event-hire-category-row__intro h3::after {
    content: '';
    display: block;
    width: 48px;
    height: 1px;
    margin-top: 18px;
    background: var(--ehc-text);
}

.mk-event-hire-category-row__intro p {
    margin: 16px 0 0;
    color: var(--ehc-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    font-weight: 600;
}

.mk-event-hire-category-row__products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 24px;
}

/* Card - borderless image on the white ground; a single hairline under
 * the card grounds it without boxing the photography in. */
.mk-event-hire-product-card {
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
    background: var(--ehc-surface);
    border: none;
    border-bottom: 1px solid var(--ehc-border);
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.35s ease, border-color 0.35s ease;
}

.mk-event-hire-product-card:hover,
.mk-event-hire-product-card:focus {
    text-decoration: none;
    color: inherit;
    border-bottom-color: #d6d1c6;
    transform: translateY(-4px);
}

.mk-event-hire-product-card:focus-visible {
    outline: 2px solid var(--ehc-text);
    outline-offset: 2px;
}

/* Image area - square, white ground to match product photography */
.mk-event-hire-product-card__image {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #ffffff;
    overflow: hidden;
}

.mk-event-hire-product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Slow, subtle zoom on hover - gallery feel (same as archive cards) */
.mk-event-hire-product-card:hover .mk-event-hire-product-card__image img {
    transform: scale(1.045);
}

/* Title overlaid on the lower edge of the image behind a white gradient
 * scrim; fades out on hover so the instrument shows uncluttered. */
.mk-event-hire-product-card__overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    padding: 28px 16px 10px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.92) 45%, rgba(255, 255, 255, 0.97) 100%);
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.mk-event-hire-product-card:hover .mk-event-hire-product-card__overlay {
    opacity: 0;
}

.mk-event-hire-product-card__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Cormorant Garamond', 'Playfair Display', 'Times New Roman', Georgia, serif;
    font-size: 1.375rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.25;
    color: var(--ehc-text);
    font-variant-numeric: lining-nums;
    font-feature-settings: 'lnum' 1;
}

@media (prefers-reduced-motion: reduce) {
    .mk-event-hire-product-card,
    .mk-event-hire-product-card__image img,
    .mk-event-hire-product-card__overlay {
        transition: none;
    }
    .mk-event-hire-product-card:hover {
        transform: none;
    }
    .mk-event-hire-product-card:hover .mk-event-hire-product-card__image img {
        transform: none;
    }
}

@media (max-width: 900px) {
    .mk-event-hire-category-row {
        grid-template-columns: 1fr;
        gap: 26px;
        padding: 44px 0;
    }

    .mk-event-hire-category-row__intro {
        position: static;
    }

    .mk-event-hire-category-row__intro p {
        margin-top: 12px;
    }
}

@media (max-width: 600px) {
    .mk-event-hire-categories {
        padding: 56px 0 28px;
    }

    .mk-event-hire-categories__rows,
    .mk-event-hire-categories__header {
        padding-left: 20px;
        padding-right: 20px;
    }

    .mk-event-hire-category-row__products {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .mk-event-hire-product-card__title {
        font-size: 1.05rem;
    }

    .mk-event-hire-product-card__overlay {
        padding: 20px 12px 8px;
    }
}
