/* =====================================================================
   RUTRONIX — HERO SLIDER (card-style concept)
   Add as assets/css/hero-slider.css, loaded AFTER style.css.
   Every class is prefixed rx- so nothing collides with Bootstrap 3
   (.btn, .label) or your existing site classes (.icon, .dot, .content).
   Delete/stop including your old banner-area markup and
   banner-redesign.css — this replaces that section entirely.
   ===================================================================== */

.rx-hero-wrap {
    --rx-white: #ffffff;
    --rx-off-white: #f6f7f9;
    --rx-ink: #10233a;
    --rx-ink-soft: #59667a;
    --rx-gold: #c9973f;
    --rx-gold-pale: #f6ecd8;
    --rx-teal: #2f6b6f;
    --rx-plum: #6f5b81;
    --rx-line: #e4e7eb;

    /* max-width: 1200px; */
    margin: 24px auto;
    padding: 0 20px;
}

.rx-hero {
    position: relative;
    background: var(--rx-white);
    border-radius: 28px;
    overflow: hidden;
    min-height: 560px;
    box-shadow: 0 20px 50px rgba(16, 35, 58, .08);
}

.rx-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .55s ease;
    background-size: contain;
    background-position: center;
}

.rx-slide.rx-active {
    opacity: 1;
    pointer-events: auto;
}

/* dark gradient so white text stays readable over any photo */
/* .rx-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            rgba(16,35,58,.88) 0%,
            rgba(16,35,58,.55) 45%,
            rgba(16,35,58,.15) 100%);
    z-index: 1;
} */

/* .rx-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr 460px;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .55s ease;
    padding: 0 0 60px 0;
}

.rx-slide.rx-active {
    opacity: 1;
    pointer-events: auto;
} */

@media (prefers-reduced-motion:reduce) {
    .rx-slide {
        transition: opacity .25s linear;
    }
}

/* ---- text column ---- */
/* .rx-col-text {
    padding: 0 20px 0 60px;
} */

.rx-col-text {
    position: relative;
    z-index: 2;
    padding: 0 40px 60px 60px;
    max-width: 640px;
}

.rx-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--rx-gold-pale);
    color: var(--rx-ink);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .01em;
    padding: 8px 16px;
    border-radius: 999px;
    margin-bottom: 22px;
}

.rx-eyebrow .rx-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--rx-gold);
    display: inline-block;
}

.rx-col-text h2 {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 44px;
    line-height: 1.14;
    margin: 0 0 18px 0;
    max-width: 13ch;
    color: var(--rx-ink);
}

.rx-col-text h2 .rx-accent {
    color: var(--rx-gold);
    display: block;
}

.rx-mal {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--rx-ink-soft);
    margin: -6px 0 14px 0;
}

.rx-col-text p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--rx-ink-soft);
    max-width: 38ch;
    margin: 0 0 28px 0;
}

.rx-features {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    margin-bottom: 34px;
}

.rx-feature {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rx-feature .rx-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rx-feature .rx-icon svg {
    width: 18px;
    height: 18px;
}

.rx-feature .rx-label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--rx-ink);
    line-height: 1.25;
    max-width: 9ch;
}

.rx-icon-teal {
    background: #e4f0f0;
    color: var(--rx-teal);
}

.rx-icon-navy {
    background: #e6eaf1;
    color: var(--rx-ink);
}

.rx-icon-gold {
    background: var(--rx-gold-pale);
    color: var(--rx-gold);
}

.rx-icon-plum {
    background: #eee9f2;
    color: var(--rx-plum);
}

.rx-cta-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.rx-btn {
    font-size: 14.5px;
    font-weight: 700;
    padding: 14px 26px;
    border-radius: 999px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
    text-transform: none;
    letter-spacing: normal;
}

.rx-btn-primary {
    background: var(--rx-ink);
    color: var(--rx-white);
    border: 1px solid var(--rx-ink);
}

.rx-btn-primary:hover {
    background: #1b3350;
    color: var(--rx-white);
    transform: translateY(-2px);
}

.rx-btn-ghost {
    background: transparent;
    background-color: #f7b500;
    color: rgb(4, 4, 4);
    border: 1px solid var(--rx-line);
}

.rx-btn-ghost:hover {
    background-color: #ffc933;
    transform: translateY(-2px);
}

/* ---- photo column ---- */
.rx-col-photo {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rx-blob {
    position: absolute;
    width: 500px;
    height: 580px;
    background: var(--rx-gold-pale);
    border-radius: 58% 42% 46% 54% / 48% 45% 55% 52%;
    top: 8%;
    left: 2%;
    z-index: 1;
}

.rx-dot-grid {
    position: absolute;
    top: 6%;
    right: 4%;
    width: 70px;
    height: 70px;
    background-image: radial-gradient(var(--rx-line) 1.6px, transparent 1.6px);
    background-size: 12px 12px;
    z-index: 1;
    opacity: .9;
}

.rx-photo-card {
    position: relative;
    z-index: 2;
    width: 800px;    /* was 320px */
    height: 500px;   /* was 400px */
    border-radius: 26px 90px 26px 26px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    box-shadow: 0 18px 40px rgba(16, 35, 58, .16);
}

.rx-tag-note {
    position: absolute;
    top: 2%;
    /* right: 2%; */
    left: 100%;
    z-index: 3;
    font-family: 'Caveat', cursive;
    font-size: 20px;
    color: var(--rx-ink);
    max-width: 120px;
    line-height: 1.2;
    transform: rotate(-3deg);
    text-align: right;
}

.rx-stat-float {
    position: absolute;
    left: -6%;
    bottom: 14%;
    z-index: 3;
    background: var(--rx-white);
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 14px 30px rgba(16, 35, 58, .14);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 180px;
}

.rx-stat-float .rx-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--rx-gold-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rx-stat-float .rx-icon svg {
    width: 18px;
    height: 18px;
    color: var(--rx-gold);
}

.rx-stat-float b {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-size: 19px;
    font-weight: 800;
    color: var(--rx-ink);
}

.rx-stat-float span {
    font-size: 12px;
    color: var(--rx-ink-soft);
}

/* ---- bottom controls ---- */
.rx-scroll-cta {
    position: absolute;
    left: 50%;
    bottom: 56px;
    transform: translateX(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--rx-white);
    border: 1px solid var(--rx-line);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 6;
    color: var(--rx-ink-soft);
    cursor: pointer;
}

.rx-dots-row {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 6;
}

.rx-pdot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--rx-line);
    border: none;
    cursor: pointer;
    transition: background .2s ease, width .2s ease;
    padding: 0;
}

.rx-pdot.rx-active {
    background: var(--rx-gold);
    width: 22px;
    border-radius: 5px;
}

/* ---- Responsive ----
   Reference concept only had one breakpoint (900px, hide photo entirely).
   Added an intermediate laptop/tablet step so the 460px photo column
   doesn't crush the text column on 13"-ish screens, plus a small-phone
   pass for very narrow devices. */

/* small laptops / large tablets: shrink the photo column instead of
   jumping straight to hidden */
@media (max-width:1200px) and (min-width:901px) {
    .rx-slide {
        grid-template-columns: 1fr 380px;
    }

    .rx-photo-card {
        width: 260px;
        height: 340px;
    }

    .rx-blob {
       width: 400px;    /* was 340px */
    height: 380px;   /* was 380px */
    }

    .rx-col-text {
        padding: 0 20px 0 46px;
    }

    .rx-col-text h2 {
        font-size: 38px;
    }
}

@media (max-width:900px) {
    .rx-hero {
        min-height: 0;
    }

    .rx-slide {
        grid-template-columns: 1fr;
        position: relative;
        opacity: 1;
        pointer-events: auto;
        padding: 0 0 90px 0;
        display: none;
        flex-direction: column;
    }

    .rx-slide.rx-active {
        display: flex;
    }

    .rx-col-photo {
        display: block;
        position: relative;
        height: 220px;
        width: 100%;
        margin-bottom: 24px;
        order: -1;   /* ← forces image above text on mobile */
    }

    .rx-photo-card {
        width: 100%;
        height: 100%;
        border-radius: 0 0 26px 26px;
        box-shadow: none;
    }

    .rx-blob,
    .rx-dot-grid,
    .rx-tag-note,
    .rx-stat-float {
        display: none;
    }

    .rx-col-text {
        padding: 0 24px;
    }

    .rx-col-text h2 {
        font-size: 30px;
        max-width: 100%;
    }

    .rx-features {
        gap: 16px;
    }
}

@media (max-width:420px) {
    .rx-hero-wrap {
        padding: 0 12px;
        margin: 16px auto;
    }

    .rx-hero {
        border-radius: 20px;
    }

    .rx-col-text {
        padding: 0 18px;
    }

    .rx-col-text h2 {
        font-size: 26px;
    }

    .rx-col-text p {
        font-size: 14.5px;
    }

    .rx-features {
        gap: 12px;
        margin-bottom: 26px;
    }

    .rx-feature .rx-label {
        max-width: 7ch;
        font-size: 12.5px;
    }

    .rx-btn {
        padding: 12px 20px;
        font-size: 13.5px;
    }

    .rx-slide {
        padding-bottom: 76px;
    }

    .rx-scroll-cta {
        display: none;
    }
}