/* Biciclop Category Headers v1.2.0
 * CONTENT-02 final desktop direction:
 * - Fitness-style full-bleed red background
 * - inner 1180px grid aligned to the site's main content axes
 * - copy left, existing hero image right
 * - true rounded image corners (red background visible behind them)
 */
.bc-category-header-page .bc-legacy-category-intro {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
    gap: clamp(34px, 4.2vw, 56px);
    align-items: center;
    width: min(1180px, calc(100% - 40px));
    max-width: 1180px;
    margin: 0 auto clamp(42px, 6vw, 72px);
    padding: clamp(42px, 5.4vw, 72px) 0;
    overflow: visible;
    background: transparent;
}

.bc-category-header-page .bc-legacy-category-intro::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background:
        radial-gradient(circle at 86% 18%, rgba(255,255,255,.18) 0 7%, transparent 7.3%),
        radial-gradient(circle at 92% 92%, transparent 0 12%, rgba(255,255,255,.12) 12.3% 16%, transparent 16.3%),
        linear-gradient(120deg, #ad130d, #f13b25);
}

.bc-category-header-page .bc-legacy-category-copy {
    min-width: 0;
    padding: 0;
    color: #fff;
    background: transparent;
}

.bc-category-header-page .bc-legacy-eyebrow {
    margin: 0 0 14px;
    color: rgba(255,255,255,.88);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    line-height: 1.4;
    text-transform: uppercase;
}

.bc-category-header-page .bc-legacy-category-title {
    max-width: 520px;
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(40px, 3.7vw, 56px);
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.02;
}

.bc-category-header-page .bc-legacy-category-title + p:not(.bc-legacy-stock-note) {
    max-width: 520px;
    margin: 0;
    color: #111518;
    font-size: clamp(16px, 1.25vw, 19px);
    line-height: 1.55;
}

.bc-category-header-page .bc-legacy-category-copy .bc-legacy-stock-note {
    display: block;
    max-width: 520px;
    margin: 22px 0 0;
    padding: 15px 17px;
    border: 0;
    border-radius: 10px;
    background: #fff;
    color: #b91810;
    box-shadow: 0 8px 24px rgba(80,0,0,.14);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
}

.bc-category-header-page .bc-legacy-category-copy .bc-legacy-stock-note strong { color: #8f0f09; }

.bc-category-header-page .bc-legacy-category-image {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border-radius: 16px;
    background: transparent;
    box-shadow: 0 10px 28px rgba(80,0,0,.12);
}

.bc-category-header-page .bc-legacy-category-image img {
    display: block;
    width: 100%;
    aspect-ratio: 5 / 3;
    height: auto;
    object-fit: cover;
    object-position: center;
}

/* The custom hero owns the only visible page H1 on targeted pages. */
.bc-category-header-page .hero-section[data-type],
.bc-category-header-page .entry-header:has(.entry-title),
.bc-category-header-page header.entry-header:has(.page-title) { display: none; }

@media (max-width: 900px) {
    .bc-category-header-page .bc-legacy-category-intro {
        grid-template-columns: 1fr;
        width: min(720px, calc(100% - 40px));
        gap: 28px;
        padding: 46px 0;
    }
    .bc-category-header-page .bc-legacy-category-title,
    .bc-category-header-page .bc-legacy-category-title + p:not(.bc-legacy-stock-note),
    .bc-category-header-page .bc-legacy-category-copy .bc-legacy-stock-note { max-width: none; }
    .bc-category-header-page .bc-legacy-category-image img { aspect-ratio: 16 / 10; }
}

@media (max-width: 600px) {
    .bc-category-header-page .bc-legacy-category-intro {
        width: calc(100% - 32px);
        padding: 40px 0;
    }
    .bc-category-header-page .bc-legacy-category-title { font-size: clamp(34px, 10vw, 46px); }
    .bc-category-header-page .bc-legacy-category-copy .bc-legacy-stock-note { font-size: 15px; }
}
