/* =====================================================================
   FILE: assets/css/frontend.css
   PART OF: Bike Model Dynamic Template plugin
   THEME: Dark Premium — M-Motorsport inspired (deep black panels,
   accent #0166b1, minimal uppercase type, centered hero, plain stat
   typography, caption-below gallery).

   NOTE: Width/max-width is now handled by the theme's own ".container"
   class (added directly in templates/single-bike_model.php) so every
   section lines up with the rest of the Salient site instead of using
   a hardcoded plugin width. This stylesheet only controls color,
   spacing, typography and internal flex/grid layout.

   Auto-enqueued by bike-model-plugin.php only on bike_model pages.
   ===================================================================== */

:root {
    --bm-bg-0: #050505;
    --bm-bg-1: #0c0c0c;
    --bm-bg-2: #131313;
    --bm-bg-3: #1a1a1a;
    --bm-text: #f5f5f5;
    --bm-text-dim: #a3a3a3;
    --bm-text-faint: #707070;
    --bm-accent: #0166b1;
    --bm-accent-light: #2e8fe0;
    --bm-line: rgba(255,255,255,.09);
    --bm-line-strong: rgba(255,255,255,.16);
}

.bm-model-page {
    overflow-x: hidden;
    background: var(--bm-bg-0);
    color: var(--bm-text);
    font-family: inherit;
}

/* Make sure the theme's .container doesn't fight our full-bleed sections */
.bm-model-page .container { width: 100%; }

.bm-eyebrow {
    display: block; font-size: 11px; font-weight: 700; letter-spacing: 3px;
    text-transform: uppercase; color: var(--bm-accent-light); margin-bottom: 14px;
}
.bm-section-heading {
    position: relative;
    text-align: center;
    font-size: clamp(21px, 2.4vw, 28px);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    margin: 0 0 20px;
    padding-bottom: 18px;
}
.bm-section-heading::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 54px; height: 3px;
    background: linear-gradient(90deg, var(--bm-accent), var(--bm-accent-light));
    border-radius: 2px;
}
.bm-section-sub {
    text-align: center; font-size: 14px; color: var(--bm-text-dim);
    max-width: 560px; margin: 0 auto 50px; line-height: 1.7;
}

/* ---------- 1. HERO (centered, cinematic) ---------- */
.bm-hero {
    position: relative;
    min-height: 700px;
    background-size: cover;
    background-position: center;
    background-color: var(--bm-bg-0);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 30px;
    text-align: center;
}
.bm-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.8) 0%, rgba(0,0,0,.3) 38%, rgba(0,0,0,.75) 100%);
}
.bm-hero::after {
    content: '';
    position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
    background: linear-gradient(90deg, transparent, var(--bm-accent), transparent);
}
.bm-hero-overlay {
    position: relative; z-index: 1; max-width: 660px;
    display: flex; flex-direction: column; align-items: center;
}
.bm-hero-tagline {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--bm-text);
    margin-bottom: 20px;
}
.bm-hero-title {
    font-size: clamp(30px, 4.2vw, 46px); font-weight: 800; line-height: 1.2;
    margin: 0 0 34px; text-transform: uppercase; letter-spacing: 1px; color: #fff;
    text-shadow: 0 2px 20px rgba(0,0,0,.4);
}

/* ---------- 2. INTRO ---------- */
.bm-intro {padding: 110px 0;background: var(--bm-bg-1);}
.bm-intro-inner {display: flex;flex-wrap: wrap;justify-content: space-between;align-items: center;}
.bm-intro-text {display: flex;flex-direction: column;width: 50%;}
.bm-intro-text h2 {
    order: 2;
    font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; text-transform: uppercase;
    letter-spacing: .5px; margin: 0 0 24px; color: #fff;
}
.bm-intro-subhead {
    order: 1;
    font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
    color: var(--bm-accent-light); margin: 0 0 14px;
    padding-left: 16px; border-left: 2px solid var(--bm-accent);
}
.bm-intro-desc {order: 3;font-size: 15px;line-height: 1.9;color: var(--bm-text-dim);}
.bm-intro-desc p { margin: 0 0 16px; }


/* ---------- HARD-CODED DIVIDER ---------- */
.bm-divider {display: flex;align-items: center;justify-content: center;gap: 22px;margin: 0 auto;padding: 60px 30px;background: var(--bm-bg-1);}
.bm-divider-line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--bm-line-strong), transparent); }


/* ---------- 3 & 13. SHOWCASE / CLOSING VIDEO ---------- */
.bm-showcase-single {background: #0c0c0c;padding: 0;position: relative;}
.bm-showcase-single-inner { max-width: 100%; margin: 0; }
.bm-showcase-single-inner img {width: 50%;height: auto;display: block;filter: brightness(.94);margin: auto;}

.bm-closing-video { background: var(--bm-bg-0); padding: 0; }
.bm-closing-video-inner { max-width: 100%; margin: 0; }
.bm-closing-video-inner .bm-video-iframe,
.bm-closing-video-inner .bm-video-native {object-fit: cover;}

/* ---------- 4. GALLERY (caption below image, like spec cards) ---------- */
.bm-gallery { background: var(--bm-bg-1); padding: 110px 0; border-bottom: 1px solid var(--bm-line); }
.bm-gallery .bm-section-heading { color: #fff; }
.bm-gallery-grid {margin: 40px auto 0;padding: 0 25px;display: grid;grid-template-columns: repeat(4, 1fr);gap: 30px;}
.bm-gallery-item { display: flex; flex-direction: column; }
.bm-gallery-item .bm-gallery-img-wrap,
.bm-gallery-item img {
    width: 100%; height: 260px; object-fit: cover; display: block; border-radius: 3px;
    filter: grayscale(20%) brightness(.9); transition: filter .4s ease, transform .5s ease, box-shadow .4s ease;
    border: 1px solid var(--bm-line);
}
.bm-gallery-item:hover img {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.02);
    border-color: var(--bm-accent);
    box-shadow: 0 12px 30px rgba(1,102,177,.25);
}
.bm-gallery-label {
    position: static; background: none; padding: 0; margin: 0;
    color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
    border-top: 2px solid var(--bm-accent); margin-top: 18px; padding-top: 16px;
}
@media (max-width: 900px){ .bm-gallery-grid{ grid-template-columns: repeat(2,1fr);} }
@media (max-width: 560px){ .bm-gallery-grid{ grid-template-columns: 1fr;} }

/* ---------- 5, 9, 11. VIDEO SECTIONS ---------- */
.bm-video-main { background: var(--bm-bg-0); padding: 100px 0; }
.bm-video-wrap {
    position: relative; width: 100%; border-radius: 4px; overflow: hidden;
    border: 1px solid var(--bm-line-strong);
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.bm-video-iframe { width: 100%; aspect-ratio: 16/9; border: 0; display: block; }
.bm-video-native { width: 100%; display: block; }

.bm-video-titled { padding: 110px 0; background: var(--bm-bg-1); border-bottom: 1px solid var(--bm-line); }
.bm-video-titled-inner { display: flex; gap: 60px; align-items: center; flex-wrap: wrap; }
.bm-video-titled-inner .bm-video-wrap { flex: 1 1 520px; }
.bm-video-titled-text { flex: 1 1 320px; }
.bm-video-titled-text h3 { font-size: 21px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; color: #fff; }
.bm-video-titled-text p { font-size: 15px; line-height: 1.9; color: var(--bm-text-dim); }

/* ---------- 6. THREE-ROW CONTENT ---------- */
.bm-threerow { background: var(--bm-bg-0); }
.bm-threerow-item { padding: 100px 0; border-bottom: 1px solid var(--bm-line); }
.bm-threerow-item:last-child { border-bottom: none; }
.bm-threerow-inner { display: flex; gap: 60px; align-items: center; flex-wrap: wrap; }
.bm-threerow-text { flex: 1 1 380px; }.bm-threerow-text h3 {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 18px;
    color: #fff;
    line-height: 1.7;
}
.bm-threerow-text p { font-size: 15px; line-height: 1.9; color: var(--bm-text-dim); margin-bottom: 20px; }
.bm-threerow-media { flex: 1 1 440px; border-radius: 4px; overflow: hidden; border: 1px solid var(--bm-line-strong); box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.bm-threerow-media img { width: 100%; height: auto; display: block; transition: transform .6s ease, filter .4s ease; filter: brightness(.95); }
.bm-threerow-media:hover img { transform: scale(1.05); filter: brightness(1); }
.bm-threerow-right .bm-threerow-inner { flex-direction: row-reverse; }

/* small circular icon-tag used under threerow text, accent ring */
.bm-threerow-text h3::before {
    content: ''; flex: 0 0 auto; display: inline-block; width: 26px; height: 26px; margin-right: 12px;
    border: 2px solid var(--bm-accent); border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(1,102,177,.15);
}

/* ---------- 7. STATS SECTION (plain numeric, like "212hp / MAXIMUM OUTPUT") ---------- */
.bm-stats { padding: 110px 0; background: var(--bm-bg-1); border-bottom: 1px solid var(--bm-line); }
.bm-stats-inner { display: flex; gap: 60px; align-items: center; flex-wrap: wrap-reverse; }
.bm-stats-text { flex: 1 1 420px; }
.bm-stats-media { flex: 1 1 460px; border-radius: 4px; overflow: hidden; border: 1px solid var(--bm-line-strong); box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.bm-stats-media img { width: 100%; height: auto; display: block; }
.bm-stats-text h3 {font-size: 21px;font-weight: 800;text-transform: uppercase;letter-spacing: 1px;margin-bottom: 14px;color: #fff;line-height: 32px;}
.bm-stats-text > p { font-size: 15px; line-height: 1.9; color: var(--bm-text-dim); margin-bottom: 40px; max-width: 440px; }
.bm-stats-grid { display: flex; gap: 46px; flex-wrap: wrap; }
.bm-stat-item {
    display: flex; flex-direction: column; padding-left: 18px;
    border-left: 3px solid var(--bm-accent); min-width: 120px;
}
.bm-stat-value { font-size: 32px; font-weight: 800; line-height: 1; color: #fff; }
.bm-stat-label { font-size: 11px; color: var(--bm-text-faint); margin-top: 10px; text-transform: uppercase; letter-spacing: 1.5px; }

/* ---------- 8. DUAL CONTENT, SHARED IMAGE ---------- */
.bm-dual {background: var(--bm-bg-0);padding-bottom: 100px;border-bottom: 1px solid var(--bm-line);padding: 110px 0;}
.bm-dual-media { position: relative; }
.bm-dual-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bm-bg-0) 0%, transparent 45%); }
.bm-dual-media img {width: 70%;object-fit: cover;display: block;filter: brightness(.88);margin: auto;}
.bm-dual-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding-top: 55px; }
.bm-dual-block { border-top: 2px solid var(--bm-line-strong); padding-top: 24px; position: relative; }
.bm-dual-block::before { content: ''; position: absolute; top: -2px; left: 0; width: 46px; height: 2px; background: var(--bm-accent); }
.bm-dual-block h4 { color: #fff; font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.bm-dual-block p { color: var(--bm-text-dim); font-size: 14px; line-height: 1.9; }
@media (max-width: 800px){ .bm-dual-grid{ grid-template-columns: 1fr; } }

/* ---------- 10. CTA ---------- */
.bm-cta { background-size: cover; background-position: center; background-color: var(--bm-bg-1); padding: 140px 20px; text-align: center; color: #fff; position: relative; }
.bm-cta::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.88)); }
.bm-cta::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--bm-accent), transparent); }
.bm-cta-inner { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; }
.bm-cta-inner h2 {font-size: 22px;font-weight: 700;letter-spacing: 4px;text-transform: uppercase;margin-bottom: 20px;color: var(--bm-accent-light);}
.bm-cta-inner p {font-size: 27px;font-weight: 800;text-transform: uppercase;letter-spacing: .5px;margin-bottom: 38px;color: #fff;line-height: 44px;}

/* ---------- 11. VIDEO WITH DUAL CONTENT ---------- */
.bm-dualvideo { padding: 110px 0; background: var(--bm-bg-1); border-bottom: 1px solid var(--bm-line); }
.bm-dualvideo-head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.bm-dualvideo-head .bm-section-heading { color: #fff; }
.bm-dualvideo-desc { font-size: 15px; line-height: 1.9; color: var(--bm-text-dim); }
.bm-dualvideo .bm-video-wrap { margin-bottom: 50px; }
.bm-dualvideo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.bm-dualvideo .bm-dual-block { border-top: 2px solid var(--bm-line-strong); }
.bm-dualvideo .bm-dual-block h4 { color: #fff; }
.bm-dualvideo .bm-dual-block p { color: var(--bm-text-dim); }
@media (max-width: 800px){ .bm-dualvideo-grid{ grid-template-columns: 1fr; } }

/* ---------- 12. IMAGE WITH SINGLE CONTENT ---------- */
.bm-singleimg { padding: 110px 0; background: var(--bm-bg-0); }
.bm-singleimg-inner { display: flex; gap: 60px; align-items: center; flex-wrap: wrap; }
.bm-singleimg-media { flex: 1 1 460px; border-radius: 4px; overflow: hidden; border: 1px solid var(--bm-line-strong); box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.bm-singleimg-media img { width: 100%; height: auto; display: block; filter: brightness(.95); }
.bm-singleimg-text { flex: 1 1 360px; }.bm-singleimg-text h3 {
    font-size: 21px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    color: #fff;
    line-height: 1.8;
}
.bm-singleimg-text p { font-size: 15px; line-height: 1.9; color: var(--bm-text-dim); }

/* ---------- BUTTONS (outline + solid, premium minimal, accent driven) ---------- */
.bm-btn {
    padding: 7px 52px;
    font-size: 18px;
    line-height: 30px;
    font-weight: 600;
    text-transform: uppercase;
    color: white;
    border: 1px solid white;
    transition: 0.4s all ease-out;
}

.bm-btn-hero:hover { background: var(--bm-accent-light); border-color: var(--bm-accent-light); color: #fff; }
.bm-btn-cta {
    background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5);
}
.bm-btn-cta:hover { background: var(--bm-accent); border-color: var(--bm-accent); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 640px) {
    .bm-hero { padding: 50px 22px; min-height: 540px; }
    .bm-intro, .bm-video-titled, .bm-stats, .bm-dualvideo, .bm-singleimg, .bm-gallery { padding: 70px 0; }
    .bm-gallery-grid { padding: 0 15px; }
    .bm-stats-grid { gap: 30px; }
    .bm-threerow-item, .bm-video-main { padding: 70px 0; }
    .bm-cta { padding: 90px 20px; }
}

.bm-intro-badge-wrap {
    width: 50%;
    padding-left: 70px;
}

.bm-intro-badge-wrap img.bm-intro-badge {
    width: 100%;
    height: 100%;
}

.bm-divider-icon svg {width: 80px;height: 80px;}

.bm-model-page .container:before {
    display: none;
}