/* ==========================================
   REACHWELL WEBSITE - MAIN STYLESHEET
   style-light.css
   ==========================================

   TABLE OF CONTENTS
   1.  CSS Custom Properties
   2.  Base Reset & Typography
   3.  Utility Classes
   4.  Navbar / Header
   5.  Hero Sections
   6.  Value Strip
   7.  Section Scaffolding
   8.  About Section
   9.  Solutions Grid (Homepage)
   10. Why Choose Us
   11. Pain Points & Benefits
   12. Industries Section
   13. Clients / Trust Strip
   14. CTA Banner
   15. Contact & Forms
   16. Footer
   17. Solution Page Layout
   18. Features Grid
   19. Resources Page
   20. Thank You Page
   21. 404 Page
   22. Industry Pages
   23. Animations & Transitions
   ========================================== */


/* ------------------------------------------
   1. CSS CUSTOM PROPERTIES
   ------------------------------------------ */
:root {
    /* Brand colours */
    --rw-red:          #CC0000;
    --rw-red-dark:     #A50000;
    --rw-red-light:    #E53333;
    --rw-red-bg:       #FFF5F5;

    --rw-navy:         #1A3558;
    --rw-navy-dark:    #0F2240;
    --rw-navy-light:   #234876;
    --rw-navy-bg:      #F0F4F9;

    /* Neutrals */
    --rw-white:        #FFFFFF;
    --rw-off-white:    #F8FAFC;
    --rw-light:        #F1F5F9;
    --rw-border:       #E2E8F0;
    --rw-border-dark:  #CBD5E1;

    /* Text */
    --rw-text-dark:    #1E293B;
    --rw-text-medium:  #475569;
    /* slate-500 rather than slate-400: #94A3B8 scored only 2.56:1 on white and
       failed WCAG AA everywhere it is used (all light backgrounds). */
    --rw-text-light:   #64748B;

    /* Shadows */
    --rw-shadow-sm:    0 2px 8px rgba(0, 0, 0, 0.06);
    --rw-shadow:       0 4px 24px rgba(0, 0, 0, 0.08);
    --rw-shadow-md:    0 8px 40px rgba(0, 0, 0, 0.12);
    --rw-shadow-lg:    0 16px 64px rgba(0, 0, 0, 0.16);

    /* Layout */
    --rw-radius-sm:    4px;
    --rw-radius:       8px;
    --rw-radius-lg:    16px;
    --rw-radius-xl:    24px;

    /* Transitions */
    --rw-transition:   all 0.25s ease;
    --rw-transition-slow: all 0.4s ease;

    /* Section spacing */
    --section-py:      80px;
    --section-py-sm:   56px;
}


/* ------------------------------------------
   2. BASE RESET & TYPOGRAPHY
   ------------------------------------------ */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--rw-text-dark);
    background-color: var(--rw-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', 'Inter Fallback', sans-serif;
    font-weight: 700;
    line-height: 1.25;
    color: var(--rw-text-dark);
    margin-bottom: 0;
}

h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }

p {
    color: var(--rw-text-medium);
    margin-bottom: 0;
}

a {
    color: var(--rw-red);
    text-decoration: none;
    transition: var(--rw-transition);
}

a:hover {
    color: var(--rw-red-dark);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    padding-left: 0;
    list-style: none;
    margin-bottom: 0;
}


/* ------------------------------------------
   3. UTILITY CLASSES
   ------------------------------------------ */
.text-red     { color: var(--rw-red) !important; }
.text-navy    { color: var(--rw-navy) !important; }
.bg-navy      { background-color: var(--rw-navy) !important; }
.bg-red       { background-color: var(--rw-red) !important; }
.bg-off-white { background-color: var(--rw-off-white) !important; }
.bg-light-rw  { background-color: var(--rw-light) !important; }

.fw-500  { font-weight: 500; }
.fw-600  { font-weight: 600; }
.fw-700  { font-weight: 700; }
.fw-800  { font-weight: 800; }

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--rw-red);
    margin-bottom: 0.75rem;
}

.section-heading {
    margin-bottom: 1rem;
}

.section-subtext {
    font-size: 1.0625rem;
    color: var(--rw-text-medium);
    line-height: 1.7;
    max-width: 640px;
}

.divider-red {
    width: 48px;
    height: 3px;
    background: var(--rw-red);
    border-radius: 2px;
    margin: 1rem 0 1.5rem;
}

.divider-red.mx-auto {
    margin-left: auto;
    margin-right: auto;
}


/* ------------------------------------------
   4. NAVBAR / HEADER
   ------------------------------------------ */
.rw-navbar {
    background: var(--rw-white);
    padding: 0;
    border-bottom: 1px solid var(--rw-border);
    transition: var(--rw-transition-slow);
    z-index: 1030;
}

.rw-navbar.scrolled {
    box-shadow: var(--rw-shadow);
    border-bottom-color: transparent;
}

.rw-navbar .container {
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
}

.rw-navbar .navbar-brand img {
    height: 38px;
    width: auto;
}

.rw-navbar .nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--rw-text-dark);
    padding: 0.5rem 1rem;
    transition: var(--rw-transition);
}

.rw-navbar .nav-link:hover,
.rw-navbar .nav-link.active {
    color: var(--rw-red);
}

.rw-navbar .nav-link.dropdown-toggle::after {
    border-color: currentColor transparent transparent;
}

/* Dropdown */
.rw-dropdown {
    border: 1px solid var(--rw-border);
    border-radius: var(--rw-radius);
    box-shadow: var(--rw-shadow-md);
    padding: 0.5rem 0;
    min-width: 280px;
    margin-top: 0.5rem;
}

.rw-dropdown .dropdown-item {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--rw-text-dark);
    padding: 0.6rem 1.25rem;
    transition: var(--rw-transition);
}

.rw-dropdown .dropdown-item i {
    color: var(--rw-red);
    width: 20px;
}

.rw-dropdown .dropdown-item:hover {
    background: var(--rw-red-bg);
    color: var(--rw-red);
}

/* Navbar toggler */
.navbar-toggler {
    border: 1px solid var(--rw-border);
    padding: 0.4rem 0.75rem;
    border-radius: var(--rw-radius-sm);
}

.navbar-toggler:focus {
    box-shadow: none;
}


/* ------------------------------------------
   5. BUTTONS
   ------------------------------------------ */
.rw-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--rw-red);
    color: var(--rw-white) !important;
    border: 2px solid var(--rw-red);
    padding: 0.6875rem 1.75rem;
    border-radius: var(--rw-radius-sm);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: var(--rw-transition);
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
}

.rw-btn-primary:hover {
    background: var(--rw-red-dark);
    border-color: var(--rw-red-dark);
    color: var(--rw-white) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(204, 0, 0, 0.3);
}

.rw-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--rw-navy) !important;
    border: 2px solid var(--rw-navy);
    padding: 0.6875rem 1.75rem;
    border-radius: var(--rw-radius-sm);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: var(--rw-transition);
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
}

.rw-btn-secondary:hover {
    background: var(--rw-navy);
    color: var(--rw-white) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(26, 53, 88, 0.3);
}

/* White outline variant (for dark backgrounds) */
.rw-btn-outline-white {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--rw-white) !important;
    border: 2px solid rgba(255, 255, 255, 0.6);
    padding: 0.6875rem 1.75rem;
    border-radius: var(--rw-radius-sm);
    font-size: 0.9375rem;
    font-weight: 600;
    transition: var(--rw-transition);
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
}

.rw-btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--rw-white);
    color: var(--rw-white) !important;
}

/* Red outline variant (for light backgrounds - card CTAs) */
.rw-btn-outline-red {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--rw-red) !important;
    border: 2px solid var(--rw-red);
    padding: 0.6875rem 1.75rem;
    border-radius: var(--rw-radius-sm);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: var(--rw-transition);
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
}

.rw-btn-outline-red:hover,
.rw-btn-outline-red:focus-visible {
    background: var(--rw-red);
    border-color: var(--rw-red);
    color: var(--rw-white) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(204, 0, 0, 0.25);
}

.rw-btn-outline-red i {
    transition: transform 0.25s ease;
}

.rw-btn-outline-red:hover i {
    transform: translateX(3px);
}

.rw-btn-lg {
    padding: 0.875rem 2.25rem;
    font-size: 1.0625rem;
}

.rw-btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}


/* ------------------------------------------
   6. HERO SECTION
   ------------------------------------------ */
.rw-hero {
    position: relative;
    background: linear-gradient(135deg, var(--rw-navy-dark) 0%, var(--rw-navy) 60%, var(--rw-navy-light) 100%);
    overflow: hidden;
    padding: 100px 0 80px;
    min-height: 580px;
    display: flex;
    align-items: center;
}

/* Subtle geometric background pattern */
.rw-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(204, 0, 0, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

/* Grid pattern overlay */
.rw-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.rw-hero .container { position: relative; z-index: 1; }

.rw-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(204, 0, 0, 0.15);
    border: 1px solid rgba(204, 0, 0, 0.3);
    color: #FF9999;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.375rem 0.875rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
}

.rw-hero h1 {
    color: var(--rw-white);
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.18;
    margin-bottom: 1.25rem;
}

.rw-hero h1 .highlight {
    color: #FF9999;
}

.rw-hero .hero-subtext {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 560px;
}

.rw-hero .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.rw-hero .hero-image-wrap {
    position: relative;
}

.rw-hero .hero-img {
    border-radius: var(--rw-radius-lg);
    box-shadow: var(--rw-shadow-lg);
    width: 100%;
}

/* Solution page hero (compact) */
.rw-hero-compact {
    padding: 72px 0 60px;
    min-height: auto;
}

.rw-hero-compact h1 {
    font-size: clamp(1.875rem, 3.5vw, 2.75rem);
}

/* Hero breadcrumb */
.rw-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.375rem 0.5rem;
    margin-bottom: 1.5rem;
}

.rw-breadcrumb a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--rw-transition);
}

.rw-breadcrumb a:hover {
    color: var(--rw-white);
}

.rw-breadcrumb span {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.875rem;
}

.rw-breadcrumb .current {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
    font-weight: 500;
}


/* ------------------------------------------
   7. VALUE STRIP
   ------------------------------------------ */
.rw-value-strip {
    background: var(--rw-white);
    border-bottom: 1px solid var(--rw-border);
    padding: 28px 0;
    box-shadow: var(--rw-shadow-sm);
}

.rw-value-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.5rem 0;
}

.rw-value-icon {
    width: 44px;
    height: 44px;
    background: var(--rw-red-bg);
    border-radius: var(--rw-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    color: var(--rw-red);
    flex-shrink: 0;
}

.rw-value-text strong {
    display: block;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--rw-text-dark);
    line-height: 1.3;
}

.rw-value-text span {
    font-size: 0.8125rem;
    color: var(--rw-text-light);
    font-weight: 500;
}

.rw-value-divider {
    width: 1px;
    height: 36px;
    background: var(--rw-border);
}


/* ------------------------------------------
   8. SECTION SCAFFOLDING
   ------------------------------------------ */
.rw-section {
    padding: var(--section-py) 0;
}

.rw-section-sm {
    padding: var(--section-py-sm) 0;
}

.rw-section-header {
    margin-bottom: 3rem;
}

.rw-section-header.text-center .divider-red {
    margin-left: auto;
    margin-right: auto;
}

.rw-section-header.text-center .section-subtext {
    margin-left: auto;
    margin-right: auto;
}

/* Alternate background sections */
.rw-section-alt {
    background: var(--rw-off-white);
}

.rw-section-dark {
    background: var(--rw-navy);
    color: var(--rw-white);
}

.rw-section-dark h2,
.rw-section-dark h3,
.rw-section-dark h4 {
    color: var(--rw-white);
}

.rw-section-dark p,
.rw-section-dark .section-subtext {
    color: rgba(255, 255, 255, 0.75);
}

.rw-section-dark .section-label {
    color: #FF9999;
}


/* ------------------------------------------
   9. ABOUT SECTION
   ------------------------------------------ */
.about-img-wrap {
    position: relative;
    border-radius: var(--rw-radius-lg);
    overflow: hidden;
    box-shadow: var(--rw-shadow-md);
}

.about-img-wrap img {
    width: 100%;
    height: 440px;
    object-fit: cover;
}

.about-stat-card {
    position: absolute;
    background: var(--rw-white);
    border-radius: var(--rw-radius);
    padding: 1rem 1.25rem;
    box-shadow: var(--rw-shadow-md);
    text-align: center;
}

.about-stat-card.bottom-left {
    bottom: 24px;
    left: -20px;
}

.about-stat-card.top-right {
    top: 24px;
    right: -20px;
}

.about-stat-card .stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--rw-red);
    line-height: 1;
}

.about-stat-card .stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--rw-text-medium);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.875rem;
    font-size: 0.9375rem;
    color: var(--rw-text-medium);
    font-weight: 500;
}

.about-list li i {
    color: var(--rw-red);
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.integration-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.integration-tag {
    background: var(--rw-navy-bg);
    border: 1px solid var(--rw-border);
    color: var(--rw-navy);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.35rem 0.875rem;
    border-radius: 100px;
}


/* ------------------------------------------
   10. SOLUTIONS GRID
   ------------------------------------------ */
.solution-card {
    background: var(--rw-white);
    border: 1px solid var(--rw-border);
    border-radius: var(--rw-radius-lg);
    padding: 2rem;
    height: 100%;
    transition: var(--rw-transition-slow);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--rw-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.solution-card:hover {
    border-color: transparent;
    box-shadow: var(--rw-shadow-md);
    transform: translateY(-4px);
}

.solution-card:hover::before {
    transform: scaleX(1);
}

.solution-card-icon {
    width: 56px;
    height: 56px;
    background: var(--rw-red-bg);
    border-radius: var(--rw-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--rw-red);
    margin-bottom: 1.25rem;
    transition: var(--rw-transition);
}

.solution-card:hover .solution-card-icon {
    background: var(--rw-red);
    color: var(--rw-white);
}

.solution-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--rw-text-dark);
    margin-bottom: 0.625rem;
}

.solution-card p {
    font-size: 0.9rem;
    color: var(--rw-text-medium);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

/* Button-style CTA - pinned to the card foot so buttons line up across a row,
   matching the solution cards on /solutions/ (.rw-sdc-cta). */
.solution-card-cta {
    margin-top: auto;
    align-self: flex-start;
    /* Longer labels ("Explore Property Management") must wrap rather than
       overflow the card on narrow viewports. */
    max-width: 100%;
    white-space: normal;
}

.solution-card .card-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--rw-red);
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: var(--rw-transition);
}

.solution-card .card-link:hover {
    gap: 0.625rem;
}

.solution-card .card-link i {
    font-size: 0.75rem;
}


/* ------------------------------------------
   11. WHY CHOOSE US
   ------------------------------------------ */
.why-item {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.why-item:last-child {
    margin-bottom: 0;
}

.why-icon {
    width: 52px;
    height: 52px;
    background: rgba(204, 0, 0, 0.1);
    border-radius: var(--rw-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
    color: var(--rw-red);
    flex-shrink: 0;
}

.why-text h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--rw-text-dark);
    margin-bottom: 0.375rem;
}

.why-text p {
    font-size: 0.9rem;
    color: var(--rw-text-medium);
    line-height: 1.6;
}

/* Why grid variant */
.why-card {
    background: var(--rw-white);
    border-radius: var(--rw-radius-lg);
    padding: 2rem 1.75rem;
    text-align: center;
    box-shadow: var(--rw-shadow-sm);
    border: 1px solid var(--rw-border);
    transition: var(--rw-transition-slow);
    height: 100%;
}

.why-card:hover {
    box-shadow: var(--rw-shadow-md);
    transform: translateY(-3px);
    border-color: var(--rw-red);
}

.why-card-icon {
    width: 64px;
    height: 64px;
    background: var(--rw-red-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.625rem;
    color: var(--rw-red);
    margin: 0 auto 1.25rem;
    transition: var(--rw-transition);
}

.why-card:hover .why-card-icon {
    background: var(--rw-red);
    color: var(--rw-white);
}

.why-card h3,
.why-card h4 {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 0.625rem;
}

.why-card p {
    font-size: 0.9rem;
    color: var(--rw-text-medium);
    line-height: 1.6;
}

/* Carousel variant - one reason at a time, paired with its live panel.
   Left-aligned and taller than the grid card, so the centred layout and the
   lift-on-hover of the base card are both dropped here. */
.why-card--slide {
    text-align: left;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
}

.why-card--slide:hover {
    transform: none;
}

.why-card-head {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.why-card--slide .why-card-icon {
    margin: 0;
    width: 52px;
    height: 52px;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.why-card-heading {
    min-width: 0;
}

.why-card-count {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--rw-red);
    font-variant-numeric: tabular-nums;
    margin-bottom: 0.15rem;
}

.why-card-count em {
    font-style: normal;
    color: var(--rw-text-light, var(--rw-text-medium));
    font-weight: 600;
}

.why-card--slide h3 {
    margin-bottom: 0;
}

.why-card--slide p {
    margin-bottom: 0;
}

/* The panel keeps its own idle nudge; give it room inside the clipped card */
.why-card--slide .rw-pv {
    margin-top: auto;
}


/* ------------------------------------------
   12. PAIN POINTS & BENEFITS
   ------------------------------------------ */
.pain-benefit-wrap {
    border-radius: var(--rw-radius-xl);
    overflow: hidden;
}

.pain-col {
    background: var(--rw-navy-dark);
    padding: 2.5rem;
}

.benefit-col {
    background: var(--rw-red);
    padding: 2.5rem;
}

.pain-item,
.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pain-item:last-child,
.benefit-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.pain-item i,
.benefit-item i {
    font-size: 1.125rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.pain-item i { color: rgba(255, 80, 80, 0.8); }
.benefit-item i { color: rgba(255, 255, 255, 0.9); }

.pain-item h4,
.pain-item h5,
.benefit-item h4,
.benefit-item h5 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--rw-white);
    margin-bottom: 0.25rem;
}

.pain-item p,
.benefit-item p {
    font-size: 0.875rem;
    /* 0.7 gave only 3.28:1 on the red benefit panel; 0.9 reaches 4.91:1. */
    color: rgba(255, 255, 255, 0.9);
}


/* ------------------------------------------
   13. INDUSTRIES SECTION
   ------------------------------------------ */
.industry-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    background: var(--rw-white);
    border: 1px solid var(--rw-border);
    border-radius: var(--rw-radius);
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--rw-text-dark);
    transition: var(--rw-transition);
    width: 100%;
}

.industry-tag i {
    color: var(--rw-red);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.industry-tag:hover {
    border-color: var(--rw-red);
    background: var(--rw-red-bg);
    color: var(--rw-red);
    transform: translateX(4px);
}


/* ------------------------------------------
   14. CLIENTS / TRUST STRIP
   ------------------------------------------ */
/* Clients trust bar - compact strip with label + logos */
.rw-clients-bar {
    border-top: 1px solid var(--rw-border);
    border-bottom: 1px solid var(--rw-border);
    background: #fff;
    overflow: hidden;
}

.rw-clients-bar-inner {
    display: flex;
    align-items: center;
    min-height: 80px;
}

.rw-clients-bar-label {
    flex-shrink: 0;
    width: 170px;
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    text-align: right;
    color: var(--rw-navy);
    line-height: 1.35;
}

.rw-clients-bar-label span {
    font-size: 0.8rem;
    color: var(--rw-text-light);
}

.rw-clients-bar-label strong {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--rw-navy);
}

.rw-clients-bar-divider {
    width: 1px;
    height: 52px;
    background: var(--rw-border);
    flex-shrink: 0;
    margin-right: 8px;
}

.rw-clients-bar-track {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.client-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
}

.client-logo-item img {
    max-height: 36px;
    max-width: 120px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.5);
    transition: var(--rw-transition);
}

.client-logo-item img:hover {
    filter: grayscale(0%) opacity(1);
}

/* Swiper clients */
.swiper-clients {
    padding: 0.25rem 0;
}


/* ------------------------------------------
   Solutions detail card (solutions overview page)
   ------------------------------------------ */
.rw-solution-detail-card {
    background: #fff;
    border: 1px solid var(--rw-border);
    border-radius: var(--rw-radius-lg);
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--rw-transition);
    box-shadow: var(--rw-shadow);
}

.rw-solution-detail-card:hover {
    border-color: var(--rw-red);
    box-shadow: 0 8px 32px rgba(204,0,0,0.10);
    transform: translateY(-3px);
}

.rw-sdc-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.rw-sdc-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: rgba(204,0,0,0.08);
    border-radius: var(--rw-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--rw-red);
}

.rw-sdc-product {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--rw-red);
    margin-bottom: 0.2rem;
}

.rw-sdc-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--rw-navy);
    margin: 0;
    line-height: 1.3;
}

.rw-sdc-desc {
    color: var(--rw-text-medium);
    font-size: 0.9rem;
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.rw-sdc-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    flex: 1;
}

.rw-sdc-bullets li {
    font-size: 0.875rem;
    color: var(--rw-text);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    line-height: 1.5;
}

.rw-sdc-bullets li .bi {
    color: var(--rw-red);
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

/* Key Benefit callout - highlighted light box */
.rw-sdc-benefit {
    background: var(--rw-off-white);
    border: 1px solid var(--rw-border);
    border-left: 3px solid var(--rw-red);
    border-radius: var(--rw-radius);
    padding: 0.85rem 1rem;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--rw-text-medium);
    margin-bottom: 1.25rem;
}

.rw-sdc-benefit strong {
    color: var(--rw-navy);
}

/* Learn More - bordered button pinned to the card foot */
.rw-sdc-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: auto;
    align-self: flex-start;
    padding: 0.55rem 1.35rem;
    background: transparent;
    color: var(--rw-red);
    border: 2px solid var(--rw-red);
    border-radius: var(--rw-radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--rw-transition);
}

/* Button-style CTA inside a solution card - pinned to the card foot */
.rw-sdc-cta {
    margin-top: auto;
    align-self: flex-start;
}

.rw-sdc-link:hover,
.rw-sdc-link:focus-visible {
    background: var(--rw-red);
    color: var(--rw-white);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(204, 0, 0, 0.25);
}

.rw-sdc-link i {
    transition: transform 0.25s ease;
}

.rw-sdc-link:hover i {
    transform: translateX(3px);
}


/* ------------------------------------------
   15. CTA BANNER
   ------------------------------------------ */
.rw-cta-banner {
    background: linear-gradient(135deg, var(--rw-red-dark) 0%, var(--rw-red) 100%);
    padding: 64px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.rw-cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 10% 50%, rgba(255,255,255,0.06) 0%, transparent 50%),
        radial-gradient(circle at 90% 50%, rgba(255,255,255,0.06) 0%, transparent 50%);
}

.rw-cta-banner .container { position: relative; z-index: 1; }

.rw-cta-banner h2 {
    color: var(--rw-white);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 0.875rem;
}

.rw-cta-banner p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.0625rem;
    margin-bottom: 2rem;
}

.rw-cta-banner .rw-btn-primary {
    background: var(--rw-white);
    border-color: var(--rw-white);
    color: var(--rw-red) !important;
}

.rw-cta-banner .rw-btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.9);
    color: var(--rw-red-dark) !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}


/* ------------------------------------------
   FAQ Accordion
   ------------------------------------------ */
.rw-faq-accordion {
    border-radius: var(--rw-radius-lg);
    overflow: hidden;
    box-shadow: var(--rw-shadow);
}

.rw-faq-item {
    border: none;
    border-bottom: 1px solid var(--rw-border);
}

.rw-faq-item:last-child {
    border-bottom: none;
}

.rw-faq-item .accordion-button {
    font-size: 0.975rem;
    font-weight: 600;
    color: var(--rw-navy);
    background: #fff;
    padding: 1.25rem 1.5rem;
    box-shadow: none;
    line-height: 1.45;
}

.rw-faq-item .accordion-button:not(.collapsed) {
    color: var(--rw-red);
    background: #fff;
    box-shadow: none;
}

.rw-faq-item .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231A3558'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.rw-faq-item .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23CC0000'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.rw-faq-item .accordion-body {
    font-size: 0.9rem;
    color: var(--rw-text-medium);
    line-height: 1.8;
    padding: 0 1.5rem 1.25rem;
    background: #fff;
}

.rw-faq-item .accordion-body a {
    color: var(--rw-red);
    font-weight: 500;
}


/* ------------------------------------------
   16. CONTACT & FORMS
   ------------------------------------------ */
.rw-contact-card {
    background: var(--rw-white);
    border-radius: var(--rw-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--rw-shadow);
    border: 1px solid var(--rw-border);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    background: var(--rw-red-bg);
    border-radius: var(--rw-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    color: var(--rw-red);
    flex-shrink: 0;
}

.contact-info-item h3,
.contact-info-item h6 {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--rw-text-light);
    margin-bottom: 0.25rem;
}

.contact-info-item p,
.contact-info-item a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--rw-text-dark);
    text-decoration: none;
}

.contact-info-item a:hover {
    color: var(--rw-red);
}

/* Form styles */
.rw-form .form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--rw-text-dark);
    margin-bottom: 0.375rem;
}

.rw-form .form-control,
.rw-form .form-select {
    border: 1.5px solid var(--rw-border);
    border-radius: var(--rw-radius-sm);
    padding: 0.6875rem 0.875rem;
    font-size: 0.9375rem;
    color: var(--rw-text-dark);
    background: var(--rw-white);
    transition: var(--rw-transition);
    font-family: 'Inter', 'Inter Fallback', sans-serif;
}

.rw-form .form-control:focus,
.rw-form .form-select:focus {
    border-color: var(--rw-red);
    box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.1);
    outline: none;
}

.rw-form .form-control::placeholder {
    color: var(--rw-text-light);
    font-size: 0.9rem;
}

.rw-form textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Validation states (jQuery Validation Plugin toggles .is-invalid / .is-valid) */
.rw-form .form-control.is-invalid,
.rw-form .form-select.is-invalid {
    border-color: #DC3545;
    background-image: none; /* drop Bootstrap's icon so it never clashes with the select caret */
    padding-right: 0.875rem;
}
.rw-form .form-control.is-invalid:focus,
.rw-form .form-select.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.12);
}
.rw-form .form-control.is-valid,
.rw-form .form-select.is-valid {
    border-color: #28A745;
    background-image: none;
    padding-right: 0.875rem;
}
.rw-form .form-control.is-valid:focus,
.rw-form .form-select.is-valid:focus {
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.12);
}
.rw-form .invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #DC3545;
}
.rw-form .form-control.is-invalid ~ .invalid-feedback,
.rw-form .form-select.is-invalid ~ .invalid-feedback {
    display: block;
}

.form-note {
    font-size: 0.8125rem;
    color: var(--rw-text-light);
    margin-top: 0.75rem;
}

/* Form alerts */
.form-alert {
    padding: 0.875rem 1rem;
    border-radius: var(--rw-radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 1rem;
    display: none;
}

.form-alert-success {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    color: #166534;
}

.form-alert-error {
    background: #FFF5F5;
    border: 1px solid #FED7D7;
    color: #9B1C1C;
}


/* ------------------------------------------
   17. FOOTER
   ------------------------------------------ */
.rw-footer {
    background: var(--rw-navy-dark);
    color: var(--rw-white);
    padding: 64px 0 0;
}

.footer-logo img {
    height: 36px;
    /* Invert to white on dark background */
    filter: brightness(0) invert(1);
    margin-bottom: 1rem;
}

/* Inline links inside body copy must not rely on colour alone to be identified
   (WCAG 1.4.1 / Lighthouse link-in-text-block). Red-on-slate is only 1.28:1
   against the surrounding text, so give unstyled prose links an underline.
   Scoped to <main>, so footer and nav links keep their existing treatment;
   class-bearing links (buttons, card links) already have their own affordance. */
main p a:not([class]),
main .about-list a:not([class]) {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    max-width: 280px;
    margin-bottom: 1rem;
}

/* Track-record line under the footer tagline */
.footer-heritage {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
    max-width: 280px;
    margin-bottom: 1.5rem;
}

.footer-heritage i {
    color: var(--rw-red);
    font-size: 1rem;
    flex-shrink: 0;
}

.footer-heritage strong {
    color: #fff;
    font-weight: 700;
}

.footer-heading {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    /* 0.45 gave 4.26:1 on the navy footer; 0.55 reaches 5.72:1. */
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 1.25rem;
}

.footer-links li {
    margin-bottom: 0.625rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--rw-transition);
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.footer-links a:hover {
    color: var(--rw-white);
    padding-left: 4px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    line-height: 1.5;
}

.footer-contact-item i {
    color: var(--rw-red);
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.footer-contact-item a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--rw-transition);
}

.footer-contact-item a:hover {
    color: var(--rw-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem 0;
    margin-top: 48px;
}

.footer-bottom p {
    font-size: 0.8125rem;
    /* 0.45 gave 4.26:1 on the navy footer; 0.55 reaches 5.72:1. */
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--rw-transition);
}

.footer-bottom a:hover {
    color: var(--rw-white);
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--rw-transition);
}

.footer-social a:hover {
    background: var(--rw-red);
    color: var(--rw-white);
}


/* ------------------------------------------
   18. SOLUTION PAGE LAYOUT
   ------------------------------------------ */
/* Feature list for solution pages */
.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.875rem;
    font-size: 0.9375rem;
    color: var(--rw-text-medium);
    font-weight: 500;
    line-height: 1.5;
}

.feature-list li i {
    color: var(--rw-red);
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Feature grid cards */
.feature-card {
    background: var(--rw-white);
    border: 1px solid var(--rw-border);
    border-radius: var(--rw-radius-lg);
    padding: 1.75rem;
    height: 100%;
    transition: var(--rw-transition-slow);
}

.feature-card:hover {
    box-shadow: var(--rw-shadow);
    border-color: var(--rw-border-dark);
}

.feature-card-icon {
    width: 48px;
    height: 48px;
    background: var(--rw-red-bg);
    border-radius: var(--rw-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--rw-red);
    margin-bottom: 1rem;
}

.feature-card h3,
.feature-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--rw-text-medium);
    line-height: 1.6;
}

/* Challenge cards */
.challenge-card {
    background: var(--rw-navy-bg);
    border-radius: var(--rw-radius);
    padding: 1.25rem 1.5rem;
    border-left: 3px solid var(--rw-red);
    height: 100%;
}

.challenge-card h5 {
    font-size: 0.9375rem;
    font-weight: 700;
    margin-bottom: 0.375rem;
    color: var(--rw-text-dark);
}

.challenge-card p {
    font-size: 0.875rem;
    color: var(--rw-text-medium);
}

/* Stat bar */
.rw-stat-bar {
    background: var(--rw-navy-bg);
    border-radius: var(--rw-radius-xl);
    padding: 2.5rem;
    display: flex;
    gap: 2rem;
    justify-content: space-around;
    flex-wrap: wrap;
}

.rw-stat-item {
    text-align: center;
}

.rw-stat-item .stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--rw-red);
    line-height: 1;
    margin-bottom: 0.375rem;
}

.rw-stat-item .stat-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--rw-text-medium);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}


/* ------------------------------------------
   19. RESOURCES PAGE
   ------------------------------------------ */
.resource-card {
    background: var(--rw-white);
    border: 1px solid var(--rw-border);
    border-radius: var(--rw-radius-lg);
    overflow: hidden;
    transition: var(--rw-transition-slow);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.resource-card:hover {
    box-shadow: var(--rw-shadow-md);
    transform: translateY(-3px);
    border-color: transparent;
}

.resource-card-img {
    height: 180px;
    object-fit: cover;
    width: 100%;
}

.resource-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.resource-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--rw-red);
    background: var(--rw-red-bg);
    padding: 0.25rem 0.625rem;
    border-radius: 100px;
    margin-bottom: 0.75rem;
}

.resource-card h4 {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 0.625rem;
    flex: 1;
}

.resource-card p {
    font-size: 0.875rem;
    color: var(--rw-text-medium);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.resource-card .card-meta {
    font-size: 0.8rem;
    color: var(--rw-text-light);
    font-weight: 500;
}


/* ------------------------------------------
   20. THANK YOU PAGE
   ------------------------------------------ */
.thankyou-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--rw-off-white) 0%, var(--rw-white) 100%);
}

.thankyou-card {
    background: var(--rw-white);
    border-radius: var(--rw-radius-xl);
    padding: 3.5rem 3rem;
    box-shadow: var(--rw-shadow-md);
    border: 1px solid var(--rw-border);
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}

.thankyou-icon {
    width: 80px;
    height: 80px;
    background: #F0FDF4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #16A34A;
    margin: 0 auto 1.5rem;
}

.thankyou-card h1 {
    font-size: 1.875rem;
    font-weight: 800;
    margin-bottom: 0.875rem;
}

.thankyou-card p {
    font-size: 1rem;
    color: var(--rw-text-medium);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.thankyou-steps {
    background: var(--rw-off-white);
    border-radius: var(--rw-radius);
    padding: 1.5rem;
    text-align: left;
    margin-bottom: 2rem;
}

.thankyou-step {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    margin-bottom: 0.875rem;
}

.thankyou-step:last-child {
    margin-bottom: 0;
}

.step-num {
    width: 28px;
    height: 28px;
    background: var(--rw-red);
    border-radius: 50%;
    color: var(--rw-white);
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.thankyou-step p {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--rw-text-dark);
    margin: 0;
    padding-top: 3px;
}


/* ------------------------------------------
   21. 404 PAGE
   ------------------------------------------ */
.rw-404 {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 0;
}

.rw-404 .num {
    font-size: clamp(6rem, 15vw, 12rem);
    font-weight: 800;
    color: var(--rw-border);
    line-height: 1;
    margin-bottom: 1rem;
}

.rw-404 h2 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}


/* ------------------------------------------
   22. ANIMATIONS & TRANSITIONS
   ------------------------------------------ */
/* Fade-in-up on scroll */
/* Entrance animation is CSS-driven so content is never hidden waiting on JS
   (keeps FCP/Speed Index fast and never blanks the initial viewport). The
   transform/opacity are composited, so this adds no layout shift. */
@keyframes rwFadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.rw-animate {
    animation: rwFadeUp 0.6s ease both;
}

/* JS may still add .animated (e.g. carousels); keep it matching the end state. */
.rw-animate.animated {
    opacity: 1;
    transform: translateY(0);
}

.rw-animate-delay-1 { animation-delay: 0.1s; }
.rw-animate-delay-2 { animation-delay: 0.2s; }
.rw-animate-delay-3 { animation-delay: 0.3s; }
.rw-animate-delay-4 { animation-delay: 0.4s; }
.rw-animate-delay-5 { animation-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
    .rw-animate { animation: none; }
}

/* Spinner for form submission */
.btn-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.btn-spinner.show { display: inline-block; }

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Sticky nav shadow trigger */
.sticky-top { top: 0; }

/* Map embed */
.rw-map-wrap {
    border-radius: var(--rw-radius-lg);
    overflow: hidden;
    box-shadow: var(--rw-shadow);
}

.rw-map-wrap iframe {
    display: block;
    width: 100%;
    height: 280px;
    border: none;
}

/* ==========================================
   23. LEGAL PAGES STYLES
   ========================================== */

/* Legal page hero - smaller version */
.rw-hero-sm {
    padding: 64px 0 48px;
    background: linear-gradient(135deg, var(--rw-navy-dark) 0%, var(--rw-navy) 100%);
    color: var(--rw-white);
    min-height: 320px;
    display: flex;
    align-items: center;
}

.rw-hero-sm h1 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--rw-white);
}

.rw-hero-sm .hero-subtext {
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* Breadcrumb for legal pages */
.rw-breadcrumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--rw-radius);
    padding: 0.75rem 1rem;
    margin-bottom: 2rem;
    display: inline-flex;
    backdrop-filter: blur(10px);
}

.rw-breadcrumb .breadcrumb-item {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 500;
}

.rw-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--rw-transition);
}

.rw-breadcrumb .breadcrumb-item a:hover {
    color: var(--rw-white);
}

.rw-breadcrumb .breadcrumb-item.active {
    color: var(--rw-white);
}

/* Meta info box */
.rw-meta-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--rw-radius);
    padding: 1rem 1.5rem;
    display: inline-block;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.rw-meta-info p {
    margin: 0.25rem 0;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
}

.rw-meta-info strong {
    color: var(--rw-white);
}

/* Legal content container */
.legal-content {
    max-width: none;
    line-height: 1.7;
    color: var(--rw-text-dark);
}

.legal-content h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--rw-navy);
    margin: 3rem 0 1.5rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--rw-border);
    scroll-margin-top: 100px;
}

.legal-content h3 {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--rw-navy-dark);
    margin: 2rem 0 1rem 0;
    scroll-margin-top: 100px;
}

.legal-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--rw-navy-dark);
    margin: 1.5rem 0 0.75rem 0;
}

.legal-content p {
    margin-bottom: 1.25rem;
    font-size: 1rem;
    line-height: 1.7;
}

.legal-content ul {
    margin: 1.25rem 0;
    padding-left: 1.75rem;
}

.legal-content li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    position: relative;
}

.legal-content li:last-child {
    margin-bottom: 0;
}

/* Contact info box in legal pages */
.contact-info-box {
    background: var(--rw-off-white);
    border: 1px solid var(--rw-border);
    border-radius: var(--rw-radius-lg);
    padding: 2rem;
    margin: 2rem 0;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-info-item i {
    color: var(--rw-red);
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-info-item strong {
    color: var(--rw-navy-dark);
    font-weight: 600;
}

.contact-info-item a {
    color: var(--rw-navy);
    text-decoration: none;
    transition: var(--rw-transition);
}

.contact-info-item a:hover {
    color: var(--rw-red);
}

/* Legal page specific improvements */
.page-legal .rw-section {
    padding: 4rem 0;
}

/* Legal pages run full-bleed (container-fluid behaviour) up to the lg
   breakpoint, where .container-lg takes over with fixed widths. */
@media (max-width: 991.98px) {
    .page-legal .container-lg {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

/* Improved readability for legal text */
.legal-content strong {
    color: var(--rw-navy-dark);
    font-weight: 600;
}

.legal-content a {
    color: var(--rw-red);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--rw-transition);
}

.legal-content a:hover {
    color: var(--rw-red-dark);
    border-bottom-color: var(--rw-red-dark);
}

/* Section separators */
.legal-content h2::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--rw-red);
    border-radius: 2px;
}

/* Better list styling */
.legal-content ul {
    list-style: none;
    padding-left: 0;
}

.legal-content li {
    padding-left: 1.75rem;
    position: relative;
}

.legal-content li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--rw-red);
    font-weight: bold;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Numbered lists */
.legal-content ol {
    margin: 1.25rem 0;
    padding-left: 1.75rem;
}

.legal-content ol li {
    padding-left: 0.5rem;
    margin-bottom: 0.75rem;
}

.legal-content ol li::before {
    display: none;
}

/* ------------------------------------------
   22. INDUSTRY PAGES
   ------------------------------------------ */

/* Industry Cards */
.rw-industry-card {
    background: var(--rw-white);
    border-radius: var(--rw-radius-lg);
    padding: 2rem;
    height: 100%;
    box-shadow: var(--rw-shadow-sm);
    border: 1px solid var(--rw-border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.rw-industry-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--rw-red), var(--rw-red-light));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.rw-industry-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--rw-shadow-md);
}

.rw-industry-card:hover::before {
    transform: scaleX(1);
}

.rw-industry-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.rw-industry-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--rw-radius);
    background: var(--rw-navy-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--rw-red);
}

.rw-industry-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--rw-navy);
    margin: 0;
}

.rw-industry-desc {
    color: var(--rw-text);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.rw-industry-solutions,
.rw-industry-challenges,
.rw-industry-clients {
    margin-bottom: 1.5rem;
}

.rw-industry-solutions h6,
.rw-industry-challenges h6,
.rw-industry-clients h6 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--rw-navy);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.rw-industry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.rw-industry-tag {
    background: var(--rw-navy-bg);
    color: var(--rw-navy);
    padding: 0.25rem 0.75rem;
    border-radius: var(--rw-radius);
    font-size: 0.875rem;
    font-weight: 500;
}

.rw-industry-challenges-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rw-industry-challenges-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--rw-text);
    font-size: 0.9rem;
}

.rw-industry-challenges-list li::before {
    content: '!';
    position: absolute;
    left: 0;
    top: 0;
    width: 1rem;
    height: 1rem;
    background: var(--rw-red);
    color: var(--rw-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}

.rw-industry-client-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Text pill - fallback for any client without a logo in the shared library */
.rw-industry-client {
    background: var(--rw-off-white);
    color: var(--rw-navy);
    padding: 0.25rem 0.75rem;
    border-radius: var(--rw-radius);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--rw-border);
    display: inline-flex;
    align-items: center;
    min-height: 46px;
}

/* Logo tile - muted like the trust bar so six brand palettes don't fight the
   card, then full colour when the card is hovered or focused. */
.rw-industry-client-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 76px;
    height: 46px;
    padding: 0.4rem 0.75rem;
    background: var(--rw-white);
    border: 1px solid var(--rw-border);
    border-radius: var(--rw-radius);
    transition: var(--rw-transition);
}

.rw-industry-client-logo img {
    max-height: 28px;
    max-width: 92px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.55);
    transition: var(--rw-transition);
}

.rw-industry-card:hover .rw-industry-client-logo,
.rw-industry-card:focus-within .rw-industry-client-logo {
    border-color: var(--rw-border-dark, var(--rw-border));
    box-shadow: var(--rw-shadow-sm);
}

.rw-industry-card:hover .rw-industry-client-logo img,
.rw-industry-card:focus-within .rw-industry-client-logo img,
.rw-industry-client-logo:hover img {
    filter: grayscale(0%) opacity(1);
}

@media (max-width: 575.98px) {
    .rw-industry-client-logo {
        min-width: 64px;
        height: 40px;
        padding: 0.3rem 0.55rem;
    }
    .rw-industry-client-logo img {
        max-height: 22px;
        max-width: 76px;
    }
    .rw-industry-client { min-height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
    .rw-industry-client-logo,
    .rw-industry-client-logo img { transition: none; }
}

.rw-industry-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;          /* pin the CTA to the bottom of the flex card */
    align-self: flex-start;
    padding: 0.625rem 1.5rem;
    background: transparent;
    color: var(--rw-red);
    border: 2px solid var(--rw-red);
    border-radius: var(--rw-radius-sm);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--rw-transition);
}

.rw-industry-link:hover,
.rw-industry-link:focus-visible {
    background: var(--rw-red);
    color: var(--rw-white);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(204, 0, 0, 0.25);
}

.rw-industry-link i {
    transition: transform 0.25s ease;
}

.rw-industry-link:hover i {
    transform: translateX(3px);
}

/* Flow Cards */
.rw-flow-card {
    background: var(--rw-white);
    border-radius: var(--rw-radius-lg);
    padding: 1.5rem;
    height: 100%;
    box-shadow: var(--rw-shadow-sm);
    border: 1px solid var(--rw-border);
    text-align: center;
    transition: all 0.3s ease;
}

.rw-flow-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--rw-shadow-md);
}

.rw-flow-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--rw-red-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.25rem;
    color: var(--rw-red);
}

.rw-flow-card h5 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--rw-navy);
    margin-bottom: 0.75rem;
}

.rw-flow-card p {
    color: var(--rw-text);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}


/* ------------------------------------------
   24. INTERACTIVE PREVIEW - OPERATIONS DASHBOARD
   Replaces the hero placeholder image with a live,
   on-brand dashboard mock. Height is driven by its
   own content, so it matches the adjacent copy.
   ------------------------------------------ */
.rw-dash {
    background: linear-gradient(160deg, #234876 0%, #1A3558 55%, #0F2240 100%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--rw-radius-lg);
    box-shadow: var(--rw-shadow-lg);
    padding: 1.25rem 1.25rem 1.15rem;
    color: var(--rw-white);
    position: relative;
    overflow: hidden;
}

/* Idle nudge, matching the preview panels - pauses on hover / keyboard focus.
   .rw-dash carries .rw-animate, so the reveal is re-declared here and the
   nudge picks up when it ends. Keyframes live in section 25 (.rw-pv);
   swap rw-pv-nudge for rw-pv-float to use the continuous bob instead. */
.rw-dash {
    animation: rwFadeUp 0.6s ease both, rw-pv-nudge 5s ease-out 1.2s infinite;
    will-change: transform;
}
.rw-dash:hover,
.rw-dash:focus-within {
    animation-play-state: paused;
}

.rw-dash::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 26px 26px;
    pointer-events: none;
}

.rw-dash > * { position: relative; z-index: 1; }

/* Window bar */
.rw-dash-bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding-bottom: 0.9rem;
    margin-bottom: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rw-dash-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
}
.rw-dash-dot:nth-child(1) { background: #FF5F57; }
.rw-dash-dot:nth-child(2) { background: #FEBC2E; }
.rw-dash-dot:nth-child(3) { background: #28C840; }

.rw-dash-title {
    margin-left: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.9);
}

.rw-dash-live {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7FE0A0;
}
.rw-dash-live i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #28C840;
    box-shadow: 0 0 0 0 rgba(40, 200, 64, 0.6);
    animation: rwDashPulse 2s infinite;
}
@keyframes rwDashPulse {
    0%   { box-shadow: 0 0 0 0 rgba(40, 200, 64, 0.5); }
    70%  { box-shadow: 0 0 0 8px rgba(40, 200, 64, 0); }
    100% { box-shadow: 0 0 0 0 rgba(40, 200, 64, 0); }
}

/* Tabs */
.rw-dash-tabs {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 1rem;
}
.rw-dash-tab {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.45rem 0.5rem;
    border-radius: var(--rw-radius-sm);
    cursor: pointer;
    transition: var(--rw-transition);
}
.rw-dash-tab:hover { color: var(--rw-white); background: rgba(255, 255, 255, 0.09); }
.rw-dash-tab.is-active {
    background: var(--rw-red);
    border-color: var(--rw-red);
    color: var(--rw-white);
    box-shadow: 0 4px 14px rgba(204, 0, 0, 0.35);
}

/* KPI grid */
.rw-dash-kpis {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    margin-bottom: 1rem;
}
.rw-dash-kpi {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--rw-radius);
    padding: 0.75rem 0.85rem;
}
.rw-dash-kpi-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.3rem;
}
.rw-dash-kpi-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--rw-white);
}
.rw-dash-kpi-trend {
    display: inline-block;
    margin-top: 0.3rem;
    font-size: 0.68rem;
    font-weight: 700;
}
.rw-dash-kpi-trend.up   { color: #7FE0A0; }
.rw-dash-kpi-trend.down { color: #FF8A8A; }

/* Bar chart */
.rw-dash-chart {
    background: rgba(0, 0, 0, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--rw-radius);
    padding: 0.8rem 0.9rem 0.7rem;
    margin-bottom: 0.95rem;
}
.rw-dash-chart-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.7rem;
}
.rw-dash-chart-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}
.rw-dash-chart-sub {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.5);
}
.rw-dash-bars {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    height: 78px;
}
.rw-dash-bars span {
    flex: 1;
    height: var(--h, 40%);
    background: linear-gradient(180deg, var(--rw-red-light) 0%, var(--rw-red) 100%);
    border-radius: 3px 3px 0 0;
    opacity: 0.92;
    transition: height 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.rw-dash-bars span:last-child {
    background: linear-gradient(180deg, #8FB6E8 0%, #4C7DB8 100%);
    opacity: 1;
}

/* Footer */
.rw-dash-foot {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}
.rw-dash-foot-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--rw-red-light);
    flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
    .rw-dash { animation: none; }
    .rw-dash-live i { animation: none; }
    .rw-dash-bars span { transition: none; }
}


/* ------------------------------------------
   25. INTERACTIVE PREVIEW LIBRARY (.rw-pv)
   Reusable, on-brand product-preview panels that
   replace placeholder images site-wide. Types:
   dashboard | board | workflow | floorplan | analytics
   | gauge | donut | timeline | map
   ------------------------------------------ */
/* Shared segment palette (donut / swatches) */
.rw-pv {
    --rw-seg-a: var(--rw-red);
    --rw-seg-b: #4C7DB8;
    --rw-seg-c: #7FE0A0;
    --rw-seg-d: #FFC875;
}
.rw-pv {
    background: linear-gradient(160deg, #234876 0%, #1A3558 55%, #0F2240 100%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--rw-radius-lg);
    box-shadow: var(--rw-shadow-lg);
    padding: 1.15rem 1.15rem 1.05rem;
    color: var(--rw-white);
    position: relative;
    overflow: hidden;
    width: 100%;
}
.rw-pv::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 26px 26px;
    pointer-events: none;
}
.rw-pv > * { position: relative; z-index: 1; }

/* Idle motion for the preview panels - pauses on hover / keyboard focus.
   Two options are defined; swap the animation-name below to switch.
     rw-pv-nudge - mostly still, lifts and settles every ~5s (in use)
     rw-pv-float - continuous slow bob up and down */
@keyframes rw-pv-float {
    0%   { transform: translate3d(0, 0, 0); }
    50%  { transform: translate3d(0, -12px, 0); }
    100% { transform: translate3d(0, 0, 0); }
}
@keyframes rw-pv-nudge {
    0%, 74%     { transform: translate3d(0, 0, 0); animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); }
    82%         { transform: translate3d(0, -9px, 0); animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); }
    90%         { transform: translate3d(0, 2px, 0); }
    96%         { transform: translate3d(0, -1px, 0); }
    100%        { transform: translate3d(0, 0, 0); }
}
/* Panels also carry .rw-animate (rwFadeUp), so both animations are declared
   together here - the idle motion starts once the reveal has finished. */
.rw-pv {
    animation: rwFadeUp 0.6s ease both, rw-pv-nudge 5s ease-out 0.6s infinite;
    will-change: transform;
}
.rw-pv:hover,
.rw-pv:focus-within {
    animation-play-state: paused;
}

/* Window bar */
.rw-pv-bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding-bottom: 0.85rem;
    margin-bottom: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.rw-pv-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.25); }
.rw-pv-dot:nth-child(1) { background: #FF5F57; }
.rw-pv-dot:nth-child(2) { background: #FEBC2E; }
.rw-pv-dot:nth-child(3) { background: #28C840; }
.rw-pv-title {
    margin-left: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

/* Badge (live / info / warn) */
.rw-pv-badge {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 0.15rem 0.1rem;
}
.rw-pv-badge--live { color: #7FE0A0; }
.rw-pv-badge--info { color: #8FB6E8; }
.rw-pv-badge--warn { color: #FFC875; }
.rw-pv-badge--live i {
    width: 7px; height: 7px; border-radius: 50%;
    background: #28C840;
    animation: rwDashPulse 2s infinite;
}

/* KPI grid (shared) */
.rw-pv-kpis {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin-bottom: 0.9rem;
}
.rw-pv-kpi {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--rw-radius);
    padding: 0.7rem 0.8rem;
}
.rw-pv-kpi-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.28rem;
}
.rw-pv-kpi-value {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--rw-white);
}
.rw-pv-kpi-trend { display: inline-block; margin-top: 0.28rem; font-size: 0.67rem; font-weight: 700; }
.rw-pv-kpi-trend.up   { color: #7FE0A0; }
.rw-pv-kpi-trend.down { color: #FF8A8A; }

/* Bar chart (shared) */
.rw-pv-chart {
    background: rgba(0, 0, 0, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--rw-radius);
    padding: 0.75rem 0.85rem 0.65rem;
}
.rw-pv-chart-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.65rem;
}
.rw-pv-chart-title { font-size: 0.8rem; font-weight: 600; color: rgba(255,255,255,0.9); }
.rw-pv-chart-sub   { font-size: 0.68rem; color: rgba(255,255,255,0.5); }
.rw-pv-bars { display: flex; align-items: flex-end; gap: 0.5rem; height: 74px; }
.rw-pv-bars span {
    flex: 1;
    height: var(--h, 40%);
    background: linear-gradient(180deg, var(--rw-red-light) 0%, var(--rw-red) 100%);
    border-radius: 3px 3px 0 0;
    opacity: 0.92;
    transition: height 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.rw-pv-bars span:last-child {
    background: linear-gradient(180deg, #8FB6E8 0%, #4C7DB8 100%);
    opacity: 1;
}

/* Board / list rows */
.rw-pv-list { display: flex; flex-direction: column; gap: 0.5rem; }
.rw-pv-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--rw-radius);
    padding: 0.6rem 0.8rem;
}
.rw-pv-row-main { display: flex; flex-direction: column; min-width: 0; }
.rw-pv-row-main strong { font-size: 0.82rem; font-weight: 600; color: rgba(255,255,255,0.95); }
.rw-pv-row-main em {
    font-style: normal;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 0.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rw-pv-pill {
    flex-shrink: 0;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    white-space: nowrap;
}
.rw-pv-pill--ok     { background: rgba(40, 200, 64, 0.16);  color: #7FE0A0; }
.rw-pv-pill--info   { background: rgba(143, 182, 232, 0.16); color: #A9C8F0; }
.rw-pv-pill--warn   { background: rgba(255, 200, 117, 0.16); color: #FFC875; }
.rw-pv-pill--danger { background: rgba(255, 95, 87, 0.18);  color: #FF9A94; }

/* Workflow steps */
.rw-pv-flow { display: flex; flex-direction: column; gap: 0.15rem; }
.rw-pv-step { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.35rem 0; position: relative; }
.rw-pv-step-ico {
    flex-shrink: 0;
    width: 30px; height: 30px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    font-size: 0.8rem; font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    z-index: 1;
}
/* connector line */
.rw-pv-step:not(:last-child) .rw-pv-step-ico::after {
    content: '';
    position: absolute;
    top: 30px; left: 50%;
    transform: translateX(-50%);
    width: 2px; height: 22px;
    background: rgba(255, 255, 255, 0.14);
}
.rw-pv-step--done .rw-pv-step-ico { background: rgba(40,200,64,0.18); border-color: rgba(40,200,64,0.45); color: #7FE0A0; }
.rw-pv-step--active .rw-pv-step-ico { background: var(--rw-red); border-color: var(--rw-red); color: #fff; box-shadow: 0 4px 14px rgba(204,0,0,0.4); }
.rw-pv-step-txt { display: flex; flex-direction: column; padding-top: 0.15rem; }
.rw-pv-step-txt strong { font-size: 0.82rem; font-weight: 600; color: rgba(255,255,255,0.95); }
.rw-pv-step-txt em { font-style: normal; font-size: 0.72rem; color: rgba(255,255,255,0.55); margin-top: 0.1rem; }

/* Floorplan grid */
.rw-pv-plan {
    background: rgba(0, 0, 0, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--rw-radius);
    padding: 0.85rem;
}
.rw-pv-plan-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.4rem;
}
.rw-pv-cell {
    aspect-ratio: 1 / 1;
    border-radius: var(--rw-radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.6rem; font-weight: 700;
    color: rgba(255, 255, 255, 0.75);
    border: 1px solid transparent;
}
.rw-pv-cell--occupied { background: rgba(204, 0, 0, 0.55);   border-color: rgba(255,120,120,0.5); }
.rw-pv-cell--reserved { background: rgba(255, 200, 117, 0.35); border-color: rgba(255,200,117,0.5); }
.rw-pv-cell--free     { background: rgba(255, 255, 255, 0.07); border-color: rgba(255,255,255,0.12); }

/* Legend (floorplan / analytics) */
.rw-pv-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    margin-top: 0.75rem;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.65);
}
.rw-pv-legend span { display: inline-flex; align-items: center; gap: 0.35rem; }
.rw-pv-swatch { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.rw-pv-swatch.occupied { background: rgba(204,0,0,0.7); }
.rw-pv-swatch.reserved { background: rgba(255,200,117,0.6); }
.rw-pv-swatch.free     { background: rgba(255,255,255,0.2); }
.rw-pv-swatch.a { background: var(--rw-red); }
.rw-pv-swatch.b { background: #4C7DB8; }
.rw-pv-swatch.c { background: #7FE0A0; }
.rw-pv-swatch.d { background: #FFC875; }

/* Footer line */
.rw-pv-foot {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.9rem;
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.7);
}
.rw-pv-foot-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rw-red-light); flex-shrink: 0; }

/* ---- Gauge (radial dials) ---- */
@property --rw-gauge-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.rw-pv-gauges {
    display: flex;
    justify-content: space-around;
    gap: 0.75rem;
    padding: 0.5rem 0 0.4rem;
}
.rw-pv-gauge { --g: #4C7DB8; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.55rem; min-width: 0; }
.rw-pv-gauge--a { --g: var(--rw-red-light); }
.rw-pv-gauge--b { --g: #6FA0DC; }
.rw-pv-gauge--c { --g: #7FE0A0; }
.rw-pv-gauge--d { --g: #FFC875; }
.rw-pv-gauge-ring {
    --rw-gauge-a: 0deg;
    width: 96px; height: 96px; max-width: 30vw;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background:
        radial-gradient(closest-side, #12294a 78%, transparent 79% 100%),
        conic-gradient(var(--g) var(--rw-gauge-a), rgba(255,255,255,0.10) 0);
    transition: --rw-gauge-a 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.rw-pv.animated .rw-pv-gauge-ring { --rw-gauge-a: calc(var(--val) * 3.6deg); }
.rw-pv-gauge-num { font-size: 1.15rem; font-weight: 800; color: #fff; letter-spacing: -0.01em; }
.rw-pv-gauge-cap { font-size: 0.7rem; font-weight: 500; color: rgba(255,255,255,0.62); text-align: center; line-height: 1.25; }
.rw-pv-statline { display: flex; gap: 0.6rem; margin-top: 0.9rem; }
.rw-pv-stat {
    flex: 1;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: var(--rw-radius);
    padding: 0.55rem 0.7rem;
    text-align: center;
}
.rw-pv-stat-val { display: block; font-size: 1.15rem; font-weight: 800; color: #fff; }
.rw-pv-stat-lbl { display: block; font-size: 0.66rem; color: rgba(255,255,255,0.6); margin-top: 0.15rem; }

/* ---- Donut (composition) ---- */
.rw-pv-donut-wrap { display: flex; align-items: center; gap: 1.1rem; padding: 0.35rem 0; }
.rw-pv-donut-fig { position: relative; width: 128px; height: 128px; max-width: 40vw; aspect-ratio: 1/1; flex-shrink: 0; }
.rw-pv-donut {
    width: 100%; height: 100%;
    border-radius: 50%;
    background: conic-gradient(var(--stops));
    -webkit-mask: radial-gradient(circle, transparent 55%, #000 56%);
            mask: radial-gradient(circle, transparent 55%, #000 56%);
    transform: rotate(-90deg) scale(0.9);
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.rw-pv.animated .rw-pv-donut { opacity: 1; transform: rotate(0deg) scale(1); }
.rw-pv-donut-hole {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center;
}
.rw-pv-donut-hole strong { font-size: 1.5rem; font-weight: 800; color: #fff; line-height: 1; }
.rw-pv-donut-hole em { font-style: normal; font-size: 0.66rem; color: rgba(255,255,255,0.6); margin-top: 0.2rem; }
.rw-pv-donut-legend { list-style: none; margin: 0; padding: 0; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.rw-pv-donut-legend li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.76rem; color: rgba(255,255,255,0.82); }
.rw-pv-donut-legend .rw-pv-donut-lbl { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rw-pv-donut-legend b { font-weight: 800; color: #fff; }

/* ---- Timeline (activity feed) ---- */
.rw-pv-feed { display: flex; flex-direction: column; }
.rw-pv-event { display: flex; align-items: flex-start; gap: 0.7rem; padding: 0.45rem 0; position: relative; }
.rw-pv-event-time { flex-shrink: 0; width: 40px; font-size: 0.68rem; font-weight: 600; color: rgba(255,255,255,0.55); padding-top: 0.15rem; text-align: right; }
.rw-pv-event-dot { flex-shrink: 0; width: 11px; height: 11px; margin-top: 0.2rem; border-radius: 50%; background: #4C7DB8; box-shadow: 0 0 0 3px rgba(76,125,184,0.18); position: relative; z-index: 1; }
.rw-pv-event:not(:last-child) .rw-pv-event-dot::after {
    content: ''; position: absolute; top: 11px; left: 50%; transform: translateX(-50%);
    width: 2px; height: calc(100% + 0.9rem - 11px); min-height: 18px; background: rgba(255,255,255,0.12);
}
.rw-pv-event--ok     .rw-pv-event-dot { background: #28C840; box-shadow: 0 0 0 3px rgba(40,200,64,0.18); }
.rw-pv-event--warn   .rw-pv-event-dot { background: #FFC875; box-shadow: 0 0 0 3px rgba(255,200,117,0.18); }
.rw-pv-event--danger .rw-pv-event-dot { background: #FF5F57; box-shadow: 0 0 0 3px rgba(255,95,87,0.18); }
.rw-pv-event--active .rw-pv-event-dot { background: var(--rw-red); box-shadow: 0 0 0 3px rgba(204,0,0,0.22); animation: rwDashPulse 2s infinite; }
.rw-pv-event-body { display: flex; flex-direction: column; min-width: 0; }
.rw-pv-event-body strong { font-size: 0.8rem; font-weight: 600; color: rgba(255,255,255,0.95); }
.rw-pv-event-body em { font-style: normal; font-size: 0.7rem; color: rgba(255,255,255,0.55); margin-top: 0.08rem; }

/* ---- Map (site / network distribution) ---- */
.rw-pv-map-sum { display: flex; gap: 0.6rem; margin-bottom: 0.85rem; }
.rw-pv-map-sum-item {
    flex: 1; display: flex; flex-direction: column; gap: 0.1rem;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.09);
    border-left-width: 3px; border-radius: var(--rw-radius); padding: 0.5rem 0.7rem;
}
.rw-pv-map-sum-item .rw-pv-kpi-value { font-size: 1.25rem; font-weight: 800; }
.rw-pv-map-sum-item span:last-child { font-size: 0.66rem; color: rgba(255,255,255,0.6); }
.rw-pv-map-sum-item--ok     { border-left-color: #28C840; }
.rw-pv-map-sum-item--warn   { border-left-color: #FFC875; }
.rw-pv-map-sum-item--danger { border-left-color: #FF5F57; }
.rw-pv-map-sum-item--info   { border-left-color: #4C7DB8; }
.rw-pv-map {
    background:
        radial-gradient(circle at 20% 30%, rgba(76,125,184,0.14), transparent 45%),
        radial-gradient(circle at 78% 70%, rgba(204,0,0,0.12), transparent 45%),
        rgba(0,0,0,0.14);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--rw-radius);
    padding: 0.7rem;
}
.rw-pv-map-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.rw-pv-node {
    display: flex; align-items: center; gap: 0.55rem;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--rw-radius); padding: 0.5rem 0.6rem; min-width: 0;
}
.rw-pv-node-pin { flex-shrink: 0; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 0.72rem; }
.rw-pv-node-main { display: flex; flex-direction: column; min-width: 0; }
.rw-pv-node-main strong { font-size: 0.76rem; font-weight: 600; color: rgba(255,255,255,0.95); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rw-pv-node-main em { font-style: normal; font-size: 0.66rem; color: rgba(255,255,255,0.55); }
.rw-pv-node--ok     .rw-pv-node-pin { background: rgba(40,200,64,0.18);  color: #7FE0A0; }
.rw-pv-node--warn   .rw-pv-node-pin { background: rgba(255,200,117,0.18); color: #FFC875; }
.rw-pv-node--danger .rw-pv-node-pin { background: rgba(255,95,87,0.18);   color: #FF9A94; }
.rw-pv-node--info   .rw-pv-node-pin { background: rgba(76,125,184,0.20);  color: #A9C8F0; }
.rw-pv-node--ok .rw-pv-node-pin i { animation: rwDashPulse 2.4s infinite; }

@media (max-width: 575.98px) {
    .rw-pv-donut-wrap { flex-direction: column; align-items: stretch; }
    .rw-pv-donut-fig { align-self: center; }
}

@media (prefers-reduced-motion: reduce) {
    .rw-pv { animation: none; }
    .rw-pv-badge--live i { animation: none; }
    .rw-pv-bars span { transition: none; }
    .rw-pv-gauge-ring { transition: none; }
    .rw-pv-donut { transition: none; opacity: 1; transform: none; }
    .rw-pv-node--ok .rw-pv-node-pin i,
    .rw-pv-event--active .rw-pv-event-dot { animation: none; }
}


/* ------------------------------------------
   26. SOLUTIONS HERO CAROUSEL (.rw-hsc)
   One solution at a time - title, product tag,
   and the live interactive widget for that module.
   ------------------------------------------ */
.rw-hsc {
    width: 100%;
    max-width: 560px;
    margin-left: auto;
}
.rw-hsc .swiper {
    /* room for the preview panel shadow inside the clipped track */
    padding: 6px 6px 10px;
    margin: -6px -6px -10px;
}
.rw-hsc .swiper-slide {
    height: auto;
    opacity: 0;
    transition: opacity 0.4s ease;
    /* Slides stretch to the tallest one (autoHeight off); centre the shorter
       widget blocks so blank space is shared top/bottom, not dumped below. */
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.rw-hsc .swiper-slide-active,
.rw-hsc .swiper-slide-next,
.rw-hsc .swiper-slide-prev { opacity: 1; }

.rw-hsc-slide {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

/* Slide header - icon + product tag + solution title */
.rw-hsc-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}
.rw-hsc-icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: var(--rw-radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: var(--rw-red-light, #FF5A5A);
    background: rgba(204, 0, 0, 0.16);
    border: 1px solid rgba(204, 0, 0, 0.32);
}
.rw-hsc-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.rw-hsc-product {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}
.rw-hsc-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--rw-white);
}
.rw-hsc-count {
    margin-left: auto;
    flex-shrink: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    font-variant-numeric: tabular-nums;
}
.rw-hsc-count em {
    font-style: normal;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
}

/* Slide CTA */
.rw-hsc-link {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--rw-white);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 2px;
    transition: color 0.25s ease, border-color 0.25s ease, gap 0.25s ease;
}
.rw-hsc-link:hover,
.rw-hsc-link:focus-visible {
    color: var(--rw-red-light, #FF5A5A);
    border-color: var(--rw-red-light, #FF5A5A);
    gap: 0.7rem;
}

/* Controls - arrows + bullets */
.rw-hsc-controls {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 1.35rem;
}
.rw-hsc-nav {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--rw-white);
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.rw-hsc-nav:hover,
.rw-hsc-nav:focus-visible {
    background: var(--rw-red);
    border-color: var(--rw-red);
    transform: translateY(-1px);
}
.rw-hsc-nav.swiper-button-disabled {
    opacity: 0.4;
    pointer-events: none;
}
.rw-hsc-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex: 1 1 auto;
    flex-wrap: wrap;
}
.rw-hsc-bullet {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
    cursor: pointer;
    transition: background 0.25s ease, width 0.25s ease;
}
.rw-hsc-bullet:hover { background: rgba(255, 255, 255, 0.55); }
.rw-hsc-bullet-active {
    width: 26px;
    border-radius: 6px;
    background: var(--rw-red);
}
.rw-hsc-bullet:focus-visible,
.rw-hsc-nav:focus-visible,
.rw-hsc-link:focus-visible {
    outline: 2px solid var(--rw-white);
    outline-offset: 3px;
}

@media (max-width: 991.98px) {
    .rw-hsc { max-width: 100%; margin-left: 0; }
    .rw-hsc-title { font-size: 1.05rem; }
}
@media (max-width: 575.98px) {
    .rw-hsc-icon { width: 40px; height: 40px; font-size: 1.15rem; }
    .rw-hsc-title { font-size: 0.98rem; }
    .rw-hsc-count { font-size: 0.85rem; }
    .rw-hsc-controls { margin-top: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
    .rw-hsc .swiper-slide { transition: none; }
    .rw-hsc-nav,
    .rw-hsc-link,
    .rw-hsc-bullet { transition: none; }
}


/* ------------------------------------------
   27. WHY REACHWELL CAROUSEL (.rw-whyc)
   One reason at a time on a light background,
   each slide carrying its own live panel.
   ------------------------------------------ */
.rw-whyc {
    width: 100%;
}
.rw-whyc .swiper {
    /* room for the card shadow inside the clipped track */
    padding: 6px;
    margin: -6px;
}
.rw-whyc .swiper-slide {
    height: auto;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.rw-whyc .swiper-slide-active,
.rw-whyc .swiper-slide-next,
.rw-whyc .swiper-slide-prev { opacity: 1; }

/* Controls - arrows + bullets, light-background variant of .rw-hsc-controls */
.rw-whyc-controls {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 1.35rem;
}
.rw-whyc-nav {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--rw-white);
    border: 1px solid var(--rw-border);
    color: var(--rw-navy);
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.rw-whyc-nav:hover,
.rw-whyc-nav:focus-visible {
    background: var(--rw-red);
    border-color: var(--rw-red);
    color: var(--rw-white);
    transform: translateY(-1px);
}
.rw-whyc-nav.swiper-button-disabled {
    opacity: 0.4;
    pointer-events: none;
}
.rw-whyc-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex: 1 1 auto;
    flex-wrap: wrap;
}
.rw-whyc-bullet {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(26, 53, 88, 0.22);
    cursor: pointer;
    transition: background 0.25s ease, width 0.25s ease;
}
.rw-whyc-bullet:hover { background: rgba(26, 53, 88, 0.45); }
.rw-whyc-bullet-active {
    width: 26px;
    border-radius: 6px;
    background: var(--rw-red);
}
.rw-whyc-bullet:focus-visible,
.rw-whyc-nav:focus-visible {
    outline: 2px solid var(--rw-red);
    outline-offset: 3px;
}

@media (max-width: 575.98px) {
    .why-card--slide { padding: 1.4rem 1.15rem; }
    .why-card--slide .why-card-icon { width: 46px; height: 46px; font-size: 1.15rem; }
    .rw-whyc-controls { margin-top: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
    .rw-whyc .swiper-slide { transition: none; }
    .rw-whyc-nav,
    .rw-whyc-bullet { transition: none; }
}


/* ------------------------------------------
   28. PAIN -> GAIN MOBILE CAROUSEL (.rw-pbm)
   Phones only (< 768px): one challenge paired
   with its answer per slide. The two-column
   board (.pain-benefit-wrap) owns tablet and up.
   ------------------------------------------ */
.rw-pbm {
    display: none;
}

@media (max-width: 767.98px) {
    .pain-benefit-wrap { display: none; }
    .rw-pbm { display: block; }
}

.rw-pbm .swiper {
    padding: 6px;
    margin: -6px;
}
.rw-pbm .swiper-slide {
    height: auto;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.rw-pbm .swiper-slide-active,
.rw-pbm .swiper-slide-next,
.rw-pbm .swiper-slide-prev { opacity: 1; }

.rw-pbm-card {
    height: 100%;
    border-radius: var(--rw-radius-xl);
    overflow: hidden;
    box-shadow: var(--rw-shadow-md);
    display: flex;
    flex-direction: column;
}

.rw-pbm-half {
    padding: 1.5rem 1.35rem;
    flex: 1 1 auto;
}
.rw-pbm-half--pain { background: var(--rw-navy); }
.rw-pbm-half--gain { background: var(--rw-red); }

.rw-pbm-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}
.rw-pbm-half--pain .rw-pbm-label { color: var(--rw-red-light, #FF5A5A); }
.rw-pbm-half--gain .rw-pbm-label { color: rgba(255, 255, 255, 0.85); }

.rw-pbm-title {
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--rw-white);
    margin-bottom: 0.45rem;
}

.rw-pbm-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 0;
}

/* Controls - same light-background treatment as the Why carousel */
.rw-pbm-controls {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 1.25rem;
}
.rw-pbm-nav {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--rw-white);
    border: 1px solid var(--rw-border);
    color: var(--rw-navy);
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.rw-pbm-nav:hover,
.rw-pbm-nav:focus-visible {
    background: var(--rw-red);
    border-color: var(--rw-red);
    color: var(--rw-white);
}
.rw-pbm-nav.swiper-button-disabled {
    opacity: 0.4;
    pointer-events: none;
}
.rw-pbm-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex: 1 1 auto;
    flex-wrap: wrap;
}
.rw-pbm-bullet {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(26, 53, 88, 0.22);
    cursor: pointer;
    transition: background 0.25s ease, width 0.25s ease;
}
.rw-pbm-bullet-active {
    width: 26px;
    border-radius: 6px;
    background: var(--rw-red);
}
.rw-pbm-bullet:focus-visible,
.rw-pbm-nav:focus-visible {
    outline: 2px solid var(--rw-red);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .rw-pbm .swiper-slide { transition: none; }
    .rw-pbm-nav,
    .rw-pbm-bullet { transition: none; }
}
