/* ==========================================================================
   HR ease Corporate Modern Stylesheet
   Design system aligned with Login page (Inter font, navy-blue gradient palette)

   NOTE: Canonical tokens now live in Content/hre-design-system.css.
   That file MUST load before this one. It exposes all --hre-* variables plus
   theme-aware overrides for [data-theme="dark"] and prefers-color-scheme.
   The :root block below is retained as a light-mode fallback in case
   hre-design-system.css fails to load — literal values match the light tokens.
   ========================================================================== */

/* ---------- VARIABLES (via root) — fallback only, see hre-design-system.css ---------- */
:root {
    --hre-navy: #1e3a5f;
    --hre-navy-mid: #2d5a87;
    --hre-blue: #3d7ab5;
    --hre-blue-light: #097DB6;
    --hre-accent: #143F73;
    --hre-text: #334155;
    --hre-text-light: #64748b;
    --hre-bg: #f8fafc;
    --hre-white: #ffffff;
    --hre-border: #e2e8f0;
    --hre-radius: 16px;
    --hre-radius-sm: 10px;
    --hre-shadow: 0 4px 24px rgba(30,58,95,0.08);
    --hre-shadow-lg: 0 12px 48px rgba(30,58,95,0.12);
    --hre-transition: all 0.3s ease;
}

/* ---------- DARK THEME — flip surface/text aliases; keep brand ramp stable ----
   Brand colors (navy / navy-mid / blue / blue-light / accent) MUST stay at
   their light-mode values — they're used as gradient backgrounds for hero,
   CTA, clients, and page-title sections and need to remain dark navy in
   both themes. Text rules that used var(--hre-navy) as a foreground get
   targeted overrides at the bottom of this file. */
:root[data-theme="dark"],
:root[data-theme="system"].hre-prefers-dark {
    --hre-text:       #e2e8f0;
    --hre-text-light: #94a3b8;
    --hre-bg:         #0b1220;
    --hre-white:      #111a2e;
    --hre-border:     #233153;
    --hre-shadow:     0 4px 24px rgba(0, 0, 0, 0.55);
    --hre-shadow-lg:  0 12px 48px rgba(0, 0, 0, 0.65);
}

/* ---------- BASE OVERRIDES ---------- */
body {
    font-family: 'Inter', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    color: var(--hre-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 600 !important;
    color: var(--hre-navy) !important;
    letter-spacing: -0.01em !important;
    text-shadow: none !important;
}

h1 { font-weight: 700 !important; }
h3 { font-weight: 600 !important; color: var(--hre-text) !important; }
h4 { font-weight: 600 !important; color: var(--hre-text) !important; }
h5, h6 { font-weight: 500 !important; color: var(--hre-text-light) !important; }

.hre-section-title {
    font-size: 36px !important;
    font-weight: 700 !important;
    color: var(--hre-navy) !important;
    margin-bottom: 0.5em;
    letter-spacing: -0.02em;
}

.hre-section-subtitle {
    font-size: 17px;
    color: var(--hre-text-light);
    line-height: 1.7;
    max-width: 720px;
    margin: 0 auto 2em;
}

/* ==========================================================================
   TOP NAV — v4: Sticky, Compact, Polished
   Competitor-grade SaaS navigation (Salesforce / HubSpot / Workday)
   ========================================================================== */

/* --------------------------------------------------------------------------
   GLOBAL HEADER — neutralize ALL template base styles.
   position: sticky keeps nav at top while staying in document flow.
   -------------------------------------------------------------------------- */
header#topNav {
    background: var(--hre-white) !important;
    border-bottom: 1px solid rgba(30,58,95,0.06) !important;
    box-shadow: 0 2px 12px rgba(30,58,95,0.06) !important;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    -webkit-backface-visibility: hidden;
    position: sticky !important;       /* stays at top on scroll */
    top: 0 !important;
    z-index: 999 !important;
    height: auto !important;           /* blocks JS animate({height:'60px'/'81px'}) */
    padding: 0 !important;            /* kills template padding: 10px 0 */
    overflow: visible !important;
    width: 100% !important;
}

/* Enhanced shadow on scroll — JS adds .topFix to collapse wrapper */
header#topNav:has(.topFix) {
    box-shadow: 0 4px 24px rgba(30,58,95,0.10) !important;
    border-bottom-color: transparent !important;
}

/* --- Logo: kill layout.css 499-508 AND layout-responsive.css 160-162 hacks --- */
header#topNav a.logo {
    display: inline-flex !important;
    align-items: center !important;
    text-decoration: none !important;
    padding: 0 !important;
    padding-bottom: 0 !important;      /* blocks layout-responsive 162 padding-bottom:50px */
    margin: 0 !important;              /* blocks layout-responsive 161 margin-top:-10px AND JS animate margin-top */
    float: none !important;
    flex-shrink: 0 !important;
    line-height: normal !important;    /* blocks JS animate line-height */
}

/* --- btn-mobile: kill layout.css 510-519 dark bg, display:none --- */
header#topNav button.btn-mobile {
    border-radius: 8px !important;
    background: transparent !important;
    margin: 0 !important;             /* blocks JS animate margin-top */
    margin-top: 0 !important;
}

/* Logo hover feedback */
header#topNav a.logo img {
    transition: opacity 0.2s ease;
}
header#topNav a.logo:hover img {
    opacity: 0.8;
}

/* --- Kill template dropdown hover padding shift (layout.css 460-464) --- */
header#topNav nav ul.nav-main li.dropdown:hover > a {
    margin-bottom: 0 !important;
}

/* --- Kill template dropdown arrow :after (layout.css 466-476) globally --- */
header#topNav nav ul.nav-main li.dropdown:hover > a:after {
    content: none !important;
    display: none !important;
}

/* --- Kill template dividers dark colors (layout.css 484-489) --- */
header#topNav li.divider {
    border: 0 !important;
    border-bottom: 1px solid rgba(30,58,95,0.06) !important;
    margin: 4px 10px !important;
    padding: 0 !important;
}

/* --- Collapse wrapper: kill JS inline margin-top (scripts.js 197/211) --- */
header#topNav div.nav-main-collapse {
    margin-top: 0 !important;         /* blocks JS animate({margin-top:'6px'/'16px'}) */
}

/* Header shadow — hidden; sticky header uses its own box-shadow */
#header_shadow {
    display: none !important;
    height: 0 !important;
}

/* Kill #wrapper padding-top — sticky header is in document flow, no offset needed */
#wrapper {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Dropdown appear animation */
@keyframes hreDropIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   DESKTOP NAV — ≥1200px
   Horizontal flex, 64px compact bar, dropdown below via position: absolute
   -------------------------------------------------------------------------- */
@media (min-width: 1200px) {

    /* Hide hamburger */
    header#topNav button.btn-mobile {
        display: none !important;
    }

    /* Container: single-row flex, 64px compact */
    header#topNav .container {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        height: 64px !important;
        flex-wrap: nowrap !important;
        position: relative !important;
    }

    /* Logo */
    header#topNav a.logo {
        height: 64px !important;
    }
    header#topNav a.logo img {
        display: block;
        width: 200px;
        height: auto;
    }

    /* Collapse wrapper: always visible, flex to right */
    header#topNav div.navbar-collapse.nav-main-collapse {
        float: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        flex: 1 1 auto !important;
        height: 64px !important;
        margin: 0 !important;             /* blocks JS margin-top animation */
        margin-left: auto !important;
        padding: 0 !important;
        position: static !important;
        top: auto !important;
        border: none !important;
        background: none !important;
        box-shadow: none !important;
        overflow: visible !important;
        width: auto !important;
        max-height: none !important;
    }

    header#topNav div.nav-main-collapse.collapse {
        display: flex !important;
    }

    /* topFix class from JS scroll — neutralize */
    header#topNav div.nav-main-collapse.topFix {
        margin-top: 0 !important;
    }

    /* Nav <nav> wrapper */
    header#topNav nav.nav-main {
        display: flex !important;
        align-items: center !important;
        height: 64px !important;
        padding: 0 !important;
        margin: 0 !important;
        float: none !important;
        width: auto !important;
    }

    /* Nav UL: flex row, stretch so <li> fills full 64px height */
    header#topNav nav.nav-main ul#topMain,
    header#topNav nav.nav-main ul.nav-main {
        display: flex !important;
        align-items: stretch !important;
        gap: 2px !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
        height: 64px !important;
        float: none !important;
        position: static !important;
        overflow: visible !important;
    }

    /* Scroll-menu override */
    header#topNav ul.scroll-menu {
        display: flex !important;
        overflow: visible !important;
    }

    /* Nav items: stretch to fill full 72px, position context for dropdown */
    header#topNav nav.nav-main ul#topMain > li {
        float: none !important;
        display: flex !important;
        align-items: center !important;
        align-self: stretch !important;  /* fills full 72px height */
        position: relative !important;   /* anchor for dropdown */
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        list-style: none !important;
    }

    /* Nav links */
    header#topNav nav.nav-main ul#topMain > li > a {
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
        font-weight: 500 !important;
        font-size: 14px !important;
        color: var(--hre-text) !important;
        letter-spacing: 0.01em !important;
        padding: 8px 14px !important;
        border-radius: 8px !important;
        transition: color 0.2s ease, background 0.2s ease !important;
        white-space: nowrap !important;
        line-height: 20px !important;
        background: transparent !important;
        border: none !important;
        position: relative !important;
        display: inline-flex !important;
        align-items: center !important;
        margin: 0 !important;
    }

    /* Hover */
    header#topNav nav.nav-main ul#topMain > li > a:hover,
    header#topNav nav.nav-main ul#topMain > li > a:focus {
        color: var(--hre-navy) !important;
        background: rgba(30,58,95,0.05) !important;
    }

    /* Active */
    header#topNav nav.nav-main ul#topMain > li.active > a,
    header#topNav nav.nav-main ul#topMain > li.active > a:hover {
        color: var(--hre-navy) !important;
        font-weight: 600 !important;
    }

    /* Hover underline slide — premium SaaS indicator */
    header#topNav nav.nav-main ul#topMain > li:not(.hre-nav-login):not(.hre-nav-cta)::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: calc(100% - 12px);
        height: 2px;
        background: var(--hre-navy);
        border-radius: 2px 2px 0 0;
        transform: translateX(-50%) scaleX(0);
        transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
        pointer-events: none;
    }
    header#topNav nav.nav-main ul#topMain > li:not(.hre-nav-login):not(.hre-nav-cta):hover::after {
        transform: translateX(-50%) scaleX(1);
    }
    header#topNav nav.nav-main ul#topMain > li.active:not(.hre-nav-login):not(.hre-nav-cta)::after {
        transform: translateX(-50%) scaleX(1);
        background: var(--hre-blue);
    }

    /* Focus-visible: keyboard navigation */
    header#topNav nav.nav-main ul#topMain > li > a:focus-visible {
        outline: 2px solid var(--hre-blue) !important;
        outline-offset: -2px !important;
    }

    /* Dropdown chevron: rotate on hover */
    header#topNav nav.nav-main ul#topMain > li > a > i.fa-angle-down {
        font-size: 11px !important;
        margin-left: 3px !important;
        padding: 0 !important;
        transition: transform 0.25s cubic-bezier(0.4,0,0.2,1) !important;
        display: inline-block !important;
        vertical-align: middle !important;
        opacity: 0.55;
    }
    header#topNav nav.nav-main ul#topMain > li.dropdown:hover > a > i.fa-angle-down {
        transform: rotate(180deg) !important;
        opacity: 1;
    }

    /* Dropdown parent hover: kill template padding shift, re-enable arrow */
    header#topNav nav.nav-main ul#topMain > li.dropdown:hover > a {
        padding: 8px 14px !important;
        margin: 0 !important;
        color: var(--hre-navy) !important;
    }
    header#topNav nav.nav-main ul#topMain > li.dropdown:hover > a:after {
        content: "" !important;
        display: block !important;
        position: absolute !important;
        width: 0 !important;
        height: 0 !important;
        left: 50% !important;
        bottom: 0 !important;
        transform: translateX(-50%) !important;
        border-left: 7px solid transparent !important;
        border-right: 7px solid transparent !important;
        border-bottom: 7px solid var(--hre-white) !important;
        filter: drop-shadow(0 -1px 1px rgba(30,58,95,0.06));
        z-index: 1001 !important;
    }

    /* ---- DROPDOWN PANELS ----
       CRITICAL: explicit position:absolute + top:100% + left:0
       Without this, the flex layout on <li> causes the dropdown
       to be aligned via flex rules instead of below the nav bar. */
    header#topNav nav.nav-main ul#topMain > li > ul.dropdown-menu,
    header#topNav nav.mega-menu ul.nav-main li.mega-menu-item ul.dropdown-menu {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        z-index: 1000 !important;
        background: var(--hre-white) !important;
        border: 1px solid rgba(30,58,95,0.08) !important;
        border-radius: 12px !important;
        box-shadow: 0 12px 40px rgba(30,58,95,0.10),
                    0 2px 8px rgba(30,58,95,0.05) !important;
        padding: 6px !important;
        margin: 0 !important;
        min-width: 230px !important;
        animation: hreDropIn 0.22s cubic-bezier(0.16,1,0.3,1) !important;
        overflow: hidden !important;
        float: none !important;
        clear: none !important;
        width: auto !important;
    }

    /* Dropdown links */
    header#topNav nav.nav-main ul#topMain ul.dropdown-menu > li > a {
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
        color: var(--hre-text) !important;
        font-size: 14px !important;
        font-weight: 400 !important;
        padding: 10px 14px !important;
        border-radius: 8px !important;
        transition: color 0.15s ease, background 0.15s ease, padding-left 0.15s ease !important;
        background: transparent !important;
        border-left: 3px solid transparent !important;
        line-height: 1.45 !important;
        display: block !important;
        white-space: nowrap !important;
        position: static !important;
    }
    /* Dropdown link hover: left accent bar + tint */
    header#topNav nav.nav-main ul#topMain ul.dropdown-menu > li:hover > a {
        background: rgba(30,58,95,0.04) !important;
        color: var(--hre-navy) !important;
        border-left-color: var(--hre-blue) !important;
        padding-left: 18px !important;
    }
    /* Dropdown dividers */
    header#topNav nav.nav-main ul#topMain ul.dropdown-menu > li.divider {
        border-bottom: 1px solid rgba(30,58,95,0.06) !important;
        margin: 4px 10px !important;
        padding: 0 !important;
        height: 0 !important;
    }
    /* Dropdown items: no border / margin from template */
    header#topNav nav.nav-main ul#topMain ul.dropdown-menu > li {
        border: none !important;
        margin: 0 !important;
        float: none !important;
        display: block !important;
        clear: none !important;
    }

    /* Mega menu subtitle */
    header#topNav nav.mega-menu ul.nav-main li.mega-menu-item .mega-menu-sub-title {
        color: var(--hre-text-light) !important;
        font-weight: 600 !important;
        font-size: 11px !important;
        text-transform: uppercase !important;
        letter-spacing: 0.08em !important;
        padding: 8px 14px 4px !important;
    }

    /* Separator between navigation and action buttons */
    header#topNav nav.nav-main ul#topMain > li.hre-nav-login {
        margin-left: 14px !important;
    }
    header#topNav nav.nav-main ul#topMain > li.hre-nav-login::before {
        content: '';
        position: absolute;
        left: -8px;
        top: 50%;
        transform: translateY(-50%);
        width: 1px;
        height: 24px;
        background: var(--hre-border);
    }

    /* Login: outlined button */
    header#topNav ul#topMain > li.hre-nav-login > a {
        color: var(--hre-navy) !important;
        font-weight: 600 !important;
        font-size: 13.5px !important;
        border: 1.5px solid var(--hre-border) !important;
        border-radius: 8px !important;
        padding: 7px 20px !important;
        margin-left: 0 !important;
        background: transparent !important;
        transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease !important;
    }
    header#topNav ul#topMain > li.hre-nav-login > a:hover {
        border-color: var(--hre-navy) !important;
        background: rgba(30,58,95,0.03) !important;
        color: var(--hre-navy) !important;
    }

    /* Schedule Demo: gradient CTA */
    header#topNav ul#topMain > li.hre-nav-cta > a {
        background: linear-gradient(135deg, var(--hre-navy) 0%, var(--hre-navy-mid) 100%) !important;
        color: var(--hre-white) !important;
        font-weight: 600 !important;
        font-size: 13.5px !important;
        padding: 7px 22px !important;
        border-radius: 8px !important;
        border: none !important;
        margin-left: 8px !important;
        box-shadow: 0 2px 8px rgba(30,58,95,0.18) !important;
        transition: all 0.25s cubic-bezier(0.4,0,0.2,1) !important;
        letter-spacing: 0.01em !important;
    }
    header#topNav ul#topMain > li.hre-nav-cta > a:hover {
        background: linear-gradient(135deg, var(--hre-navy-mid) 0%, var(--hre-blue) 100%) !important;
        box-shadow: 0 4px 16px rgba(30,58,95,0.25) !important;
        transform: translateY(-1px);
        color: var(--hre-white) !important;
    }
}

/* --------------------------------------------------------------------------
   MOBILE NAV — ≤1199px
   Hamburger collapse, stacked items, light theme.
   Overrides template native ≤990px AND ≤1006px AND ≤1200px breakpoints.
   -------------------------------------------------------------------------- */
@media (max-width: 1199px) {

    /* Hamburger: fixed pixel position (NOT top:50% which drifts when menu opens) */
    header#topNav button.btn-mobile {
        display: block !important;
        float: none !important;
        background: transparent !important;
        color: var(--hre-navy) !important;
        border: 1.5px solid var(--hre-border) !important;
        padding: 7px 10px !important;
        border-radius: 8px !important;
        transition: var(--hre-transition);
        margin: 0 !important;
        position: absolute !important;
        right: 15px !important;
        top: 12px !important;           /* fixed pixel — not 50% */
        transform: none !important;     /* no translateY */
        z-index: 10 !important;
    }
    header#topNav button.btn-mobile:hover,
    header#topNav button.btn-mobile:focus {
        background: rgba(30,58,95,0.04) !important;
        border-color: var(--hre-navy) !important;
        color: var(--hre-navy) !important;
        outline: none !important;
    }
    header#topNav button.btn-mobile i {
        font-size: 18px !important;
        color: inherit !important;
        line-height: 1 !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Header bar */
    header#topNav {
        height: auto !important;
        min-height: 56px !important;
    }

    /* Container: flex wrap, logo row + collapse below */
    header#topNav .container {
        display: flex !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        min-height: 56px !important;
        position: relative !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    /* Logo */
    header#topNav a.logo {
        height: 56px !important;
    }
    header#topNav a.logo img {
        display: block;
        width: 170px;
        height: auto;
    }

    /* Collapse: hidden by default, shown with .in */
    header#topNav div.nav-main-collapse.collapse {
        display: none !important;
    }
    header#topNav div.nav-main-collapse.collapse.in {
        display: block !important;
    }

    /* Collapse container: full width below logo row */
    header#topNav div.nav-main-collapse {
        flex-basis: 100% !important;
        width: 100% !important;
        float: none !important;
        position: relative !important;
        top: auto !important;
        margin: 0 -15px !important;
        margin-top: 0 !important;      /* blocks JS animate margin-top */
        padding: 0 !important;
        background: var(--hre-white) !important;
        border-top: 1px solid var(--hre-border) !important;
        box-shadow: 0 12px 32px rgba(30,58,95,0.10) !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        max-height: 80vh !important;
        -webkit-overflow-scrolling: touch;
        box-sizing: content-box !important;
    }
    /* topFix — kill template's negative margin */
    header#topNav div.nav-main-collapse.topFix {
        margin-top: 0 !important;
    }

    /* Nav wrapper */
    header#topNav nav.nav-main {
        padding: 8px 0 !important;
        clear: both !important;
        display: block !important;
        float: none !important;
        width: 100% !important;
    }

    /* Stack all items vertically */
    header#topNav nav.nav-main ul,
    header#topNav nav.nav-main ul li {
        float: none !important;
        clear: both !important;
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
        height: auto !important;
        position: static !important;
    }
    /* Scroll-menu: kill layout-responsive 408-410 display:inherit */
    header#topNav ul.scroll-menu {
        display: block !important;
        overflow: visible !important;
        position: static !important;
    }

    /* Light separators */
    header#topNav nav.nav-main ul#topMain > li {
        border-bottom: 1px solid var(--hre-border) !important;
    }
    header#topNav nav.nav-main ul#topMain > li:last-child {
        border-bottom: none !important;
    }

    /* ALL nav links: dark text on white.
       Beats layout-responsive.css 372-381 which does color:#FFF !important */
    header#topNav nav ul.nav-main li a,
    header#topNav nav ul.nav-main li.active a,
    header#topNav nav ul.nav-main li.dropdown:hover a,
    header#topNav nav ul.nav-main ul.dropdown-menu li > a,
    header#topNav nav ul.nav-main ul.dropdown-menu li:hover > a,
    header#topNav nav ul.nav-main li.dropdown:hover ul.dropdown-menu li > a:hover,
    header#topNav nav ul.nav-main li.dropdown.open a.dropdown-toggle,
    header#topNav nav ul.nav-main ul.dropdown-menu {
        color: var(--hre-text) !important;
        background: transparent !important;
        background-color: transparent !important;
    }

    /* Top-level links */
    header#topNav nav ul.nav-main > li > a {
        padding: 14px 20px !important;
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
        font-size: 15px !important;
        font-weight: 500 !important;
        line-height: 22px !important;
        color: var(--hre-text) !important;
        display: block !important;
        border: none !important;
        border-radius: 0 !important;
        transition: color 0.15s ease, background 0.15s ease !important;
        white-space: normal !important;
        margin: 0 !important;
    }
    header#topNav nav ul.nav-main > li > a:hover,
    header#topNav nav ul.nav-main > li > a:focus {
        color: var(--hre-navy) !important;
        background-color: rgba(30,58,95,0.03) !important;
    }
    header#topNav nav ul.nav-main > li.active > a,
    header#topNav nav ul.nav-main > li.active > a:hover {
        color: var(--hre-navy) !important;
        font-weight: 600 !important;
        background-color: rgba(30,58,95,0.04) !important;
    }

    /* Dropdown parent hover: kill ALL padding/margin shifts */
    header#topNav nav ul.nav-main li.dropdown:hover > a {
        padding: 14px 20px !important;
        margin: 0 !important;
    }
    /* Kill desktop arrow on mobile */
    header#topNav nav ul.nav-main li.dropdown:hover > a:after,
    header#topNav nav ul.nav-pills > li > a:before,
    header#topNav nav ul.nav-pills > li > a:after {
        display: none !important;
        content: none !important;
    }

    /* Chevron: right-aligned, rotates when resp-active */
    header#topNav nav ul.nav-main li > a > i.fa-angle-down,
    header#topNav nav ul.nav-main i.icon-caret-down {
        float: right !important;
        margin-top: 3px !important;
        margin-left: 8px !important;
        color: var(--hre-text-light) !important;
        transform: none !important;
        opacity: 0.6;
        font-size: 13px !important;
        transition: transform 0.2s ease, opacity 0.2s ease !important;
    }
    header#topNav nav ul.nav-main li.dropdown.resp-active > a > i.fa-angle-down {
        transform: rotate(180deg) !important;
        opacity: 1;
    }

    /* Dropdown panels: static, hidden, shown with resp-active */
    header#topNav nav ul.nav-main ul.dropdown-menu,
    header#topNav nav.mega-menu ul.nav-main li.mega-menu-item ul.dropdown-menu,
    header#topNav nav.nav-main ul.dropdown-menu {
        background: var(--hre-bg) !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        animation: none !important;
        position: static !important;
        float: none !important;
        clear: both !important;
        min-width: 0 !important;
        width: 100% !important;
        display: none !important;
        top: auto !important;
        left: auto !important;
        z-index: auto !important;
    }
    header#topNav nav.nav-main li.resp-active > ul.dropdown-menu {
        display: block !important;
    }

    /* Dropdown links: indented */
    header#topNav nav ul.nav-main ul.dropdown-menu > li > a {
        padding: 12px 20px 12px 36px !important;
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
        font-size: 14px !important;
        font-weight: 400 !important;
        color: var(--hre-text) !important;
        background: transparent !important;
        border: none !important;
        border-left: none !important;
        border-radius: 0 !important;
        display: block !important;
        line-height: 20px !important;
        margin: 0 !important;
    }
    header#topNav nav ul.nav-main ul.dropdown-menu > li > a:hover,
    header#topNav nav ul.nav-main ul.dropdown-menu > li > a:focus {
        color: var(--hre-navy) !important;
        background-color: rgba(30,58,95,0.04) !important;
        padding-left: 36px !important;
        border-left-color: transparent !important;
    }
    /* Dropdown items: subtle borders */
    header#topNav nav ul.nav-main ul.dropdown-menu > li {
        border-bottom: 1px solid rgba(30,58,95,0.04) !important;
    }
    header#topNav nav ul.nav-main ul.dropdown-menu > li:last-child {
        border-bottom: none !important;
    }
    /* Dropdown dividers */
    header#topNav nav ul.nav-main ul.dropdown-menu li.divider {
        border-bottom: 1px solid var(--hre-border) !important;
        border-top: none !important;
        margin: 0 !important;
        padding: 0 !important;
        height: 0 !important;
    }
    /* Dropdown submenu arrow */
    header#topNav nav ul.nav-main .dropdown-submenu > a:after {
        border-top-color: var(--hre-text-light) !important;
        border-left-color: transparent !important;
    }
    /* Sub-menu nesting */
    header#topNav nav.nav-main ul ul {
        margin-left: 16px !important;
    }

    /* Login: plain link on mobile */
    header#topNav ul#topMain > li.hre-nav-login {
        border-bottom: 1px solid var(--hre-border) !important;
    }
    header#topNav ul#topMain > li.hre-nav-login > a {
        border: none !important;
        margin: 0 !important;
        padding: 14px 20px !important;
        font-size: 15px !important;
        font-weight: 500 !important;
        color: var(--hre-text) !important;
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }
    header#topNav ul#topMain > li.hre-nav-login > a:hover {
        color: var(--hre-navy) !important;
        background-color: rgba(30,58,95,0.03) !important;
    }

    /* Schedule Demo CTA: full-width gradient */
    header#topNav ul#topMain > li.hre-nav-cta {
        padding: 12px 20px 16px !important;
        border-bottom: none !important;
    }
    header#topNav ul#topMain > li.hre-nav-cta > a {
        display: block !important;
        text-align: center !important;
        margin: 0 !important;
        padding: 14px 20px !important;
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        border-radius: 10px !important;
        background: linear-gradient(135deg, var(--hre-navy) 0%, var(--hre-navy-mid) 100%) !important;
        color: var(--hre-white) !important;
        box-shadow: 0 2px 12px rgba(30,58,95,0.20) !important;
        letter-spacing: 0.01em !important;
        border: none !important;
    }
    header#topNav ul#topMain > li.hre-nav-cta > a:hover {
        background: linear-gradient(135deg, var(--hre-navy-mid) 0%, var(--hre-blue) 100%) !important;
        box-shadow: 0 4px 16px rgba(30,58,95,0.25) !important;
        color: var(--hre-white) !important;
    }
}

/* Extra-small screens */
@media (max-width: 480px) {
    header#topNav a.logo img {
        width: 150px !important;
    }
    header#topNav button.btn-mobile {
        padding: 6px 8px !important;
        top: 14px !important;
    }
    header#topNav button.btn-mobile i {
        font-size: 16px !important;
    }
}

/* ---------- HERO SECTION (replaces revolution slider on home) ---------- */
.hre-hero {
    position: relative;
    background: linear-gradient(135deg, var(--hre-navy) 0%, var(--hre-navy-mid) 50%, var(--hre-blue) 100%);
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    overflow: hidden;
}

.hre-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
    border-radius: 50%;
}

.hre-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
    border-radius: 50%;
}

.hre-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hre-hero-content h1 {
    color: #fff !important;
    font-size: 48px !important;
    font-weight: 700 !important;
    margin-bottom: 16px;
    text-shadow: none !important;
    border-bottom: none !important;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.hre-hero-content h1 span.hre-brand-ease {
    font-size: 1.1em;
    color: rgba(255,255,255,0.85);
    font-weight: 400;
}

.hre-hero-content p {
    color: rgba(255,255,255,0.8);
    font-size: 18px;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hre-hero-content .hre-btn-primary {
    display: inline-block;
    padding: 16px 36px;
    background: #fff;
    color: var(--hre-navy);
    font-weight: 600;
    font-size: 15px;
    border-radius: var(--hre-radius-sm);
    text-decoration: none;
    transition: var(--hre-transition);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    border: none;
    margin: 0 8px;
}

.hre-hero-content .hre-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.2);
    text-decoration: none;
    color: var(--hre-navy);
}

.hre-hero-content .hre-btn-outline {
    display: inline-block;
    padding: 16px 36px;
    background: transparent;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    border-radius: var(--hre-radius-sm);
    border: 2px solid rgba(255,255,255,0.4);
    text-decoration: none;
    transition: var(--hre-transition);
    margin: 0 8px;
}

.hre-hero-content .hre-btn-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
    text-decoration: none;
    color: #fff;
}

/* ---------- FEATURE CARD ROWS (flexbox equal-height) ---------- */
.hre-card-row {
    display: flex;
    flex-wrap: wrap;
    margin-top: 40px;
}

.hre-card-row:first-of-type {
    margin-top: 40px;
}

.hre-card-row > [class*="col-"] {
    display: flex;
    margin-bottom: 24px;
}

/* Center the 2-card row (row 3) */
.hre-card-row-centered {
    justify-content: center;
}

/* ---------- FEATURE CARDS ---------- */
.hre-features {
    padding: 80px 0 60px;
    background: var(--hre-bg);
}

.hre-feature-card {
    background: var(--hre-white);
    border-radius: var(--hre-radius);
    padding: 36px 28px;
    text-align: center;
    box-shadow: var(--hre-shadow);
    transition: var(--hre-transition);
    height: 100%;
    width: 100%;
    border: 1px solid var(--hre-border);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hre-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hre-shadow-lg);
}

.hre-feature-card .hre-feature-icon {
    width: 56px;
    height: 56px;
    min-height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--hre-navy) 0%, var(--hre-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #fff;
    font-size: 22px;
}

.hre-feature-card h4 {
    font-size: 16px;
    font-weight: 600 !important;
    color: var(--hre-navy) !important;
    margin-bottom: 12px;
    text-align: center;
    border-bottom: none !important;
    text-shadow: none !important;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hre-feature-card p {
    font-size: 14px;
    color: var(--hre-text-light);
    line-height: 1.65;
    margin: 0;
    flex-grow: 1;
}

/* ---------- CTA BANNER ---------- */
.hre-cta-banner {
    background: linear-gradient(135deg, var(--hre-navy) 0%, var(--hre-navy-mid) 100%);
    padding: 60px 20px;
    text-align: center;
    margin: 60px 0;
    border-radius: var(--hre-radius);
    position: relative;
    overflow: hidden;
}

.hre-cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.hre-cta-banner h3 {
    color: #fff !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    margin-bottom: 8px;
    text-align: center;
    border-bottom: none !important;
    text-shadow: none !important;
}

.hre-cta-banner p {
    color: rgba(255,255,255,0.8);
    font-size: 16px;
    margin-bottom: 24px;
}

.hre-cta-banner .hre-btn-cta {
    display: inline-block;
    padding: 14px 32px;
    background: #fff;
    color: var(--hre-navy);
    font-weight: 600;
    font-size: 15px;
    border-radius: var(--hre-radius-sm);
    text-decoration: none;
    transition: var(--hre-transition);
    border: none;
}

.hre-cta-banner .hre-btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    text-decoration: none;
    color: var(--hre-navy);
}

/* ---------- PARALLAX / CLIENTS SECTION ---------- */
.hre-clients-section {
    background: linear-gradient(135deg, var(--hre-navy) 0%, var(--hre-navy-mid) 50%, var(--hre-blue) 100%);
    padding: 80px 0;
    color: #fff;
    position: relative;
}

.hre-clients-section h2 {
    color: #fff !important;
    font-size: 32px !important;
    font-weight: 700 !important;
    border-bottom: none !important;
    text-shadow: none !important;
    text-align: left;
    margin-bottom: 20px;
}

.hre-clients-section p {
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
}

.hre-clients-section .hre-btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background: #fff;
    color: var(--hre-navy);
    font-weight: 600;
    font-size: 15px;
    border-radius: var(--hre-radius-sm);
    text-decoration: none;
    transition: var(--hre-transition);
    margin-top: 20px;
}

.hre-clients-section .hre-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    text-decoration: none;
    color: var(--hre-navy);
}

/* ---------- PAGE TITLE / BREADCRUMB (sub-pages) ---------- */
header#page-title.hre-page-title {
    background: linear-gradient(135deg, var(--hre-navy) 0%, var(--hre-navy-mid) 50%, var(--hre-blue) 100%) !important;
    padding: 60px 0 40px !important;
    text-align: center;
    margin-bottom: 0 !important;
    border: none !important;
}

header#page-title.hre-page-title h1,
header#page-title.hre-page-title h2 {
    color: #fff !important;
    font-size: 36px !important;
    font-weight: 700 !important;
    text-shadow: none !important;
    border-bottom: none !important;
    margin-bottom: 12px !important;
    letter-spacing: -0.01em !important;
}

header#page-title.hre-page-title .container {
    color: #fff !important;
}

header#page-title.hre-page-title .breadcrumb {
    background: transparent !important;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 4px;
}

header#page-title.hre-page-title .breadcrumb li {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

header#page-title.hre-page-title .breadcrumb li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--hre-transition);
}

header#page-title.hre-page-title .breadcrumb li a:hover {
    color: #fff;
}

header#page-title.hre-page-title .breadcrumb li.active {
    color: rgba(255,255,255,0.95);
}

/* ---------- CONTENT SECTIONS ---------- */
.hre-content-section {
    padding: 60px 0;
}

.hre-content-section h2 {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: var(--hre-navy) !important;
    text-align: left;
    border-bottom: none !important;
    text-shadow: none !important;
    margin-bottom: 16px !important;
    letter-spacing: -0.01em !important;
}

.hre-content-section .lead {
    font-size: 17px;
    color: var(--hre-text-light);
    line-height: 1.75;
}

.hre-content-section h4.text-primary {
    color: var(--hre-blue) !important;
    font-weight: 600 !important;
    font-size: 18px !important;
    border-bottom: none !important;
    text-shadow: none !important;
}

/* Feature list styling */
.hre-content-section .list-icon li {
    padding: 6px 0;
    font-size: 15px;
    color: var(--hre-text);
}

.hre-content-section .list-icon li a {
    color: var(--hre-blue);
    font-weight: 500;
    text-decoration: none;
    transition: var(--hre-transition);
}

.hre-content-section .list-icon li a:hover {
    color: var(--hre-navy);
}

/* Images in content */
.hre-content-section img.img-responsive,
.hre-content-section img.img-rounded {
    border-radius: var(--hre-radius);
    box-shadow: var(--hre-shadow);
}

/* ---------- CALLOUT BOX ---------- */
.hre-callout {
    background: linear-gradient(135deg, var(--hre-navy) 0%, var(--hre-navy-mid) 100%);
    border-radius: var(--hre-radius);
    padding: 48px 36px;
    text-align: center;
    margin: 48px 0;
    border: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(30,58,95,0.15);
}

.hre-callout::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
    border-radius: 50%;
}

.hre-callout h3 {
    color: #fff !important;
    font-weight: 600 !important;
    font-size: 21px !important;
    line-height: 1.5 !important;
    border-bottom: none !important;
    text-shadow: none !important;
    text-align: center;
    margin-bottom: 20px !important;
}

.hre-callout .btn-danger {
    background: #fff !important;
    color: var(--hre-navy) !important;
    border: none !important;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: var(--hre-radius-sm) !important;
    font-size: 15px;
    transition: var(--hre-transition);
}

.hre-callout .btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* ---------- TESTIMONIAL PARALLAX SECTION ---------- */
.hre-testimonial-section {
    position: relative;
    padding: 80px 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hre-testimonial-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30,58,95,0.88) 0%, rgba(45,90,135,0.85) 100%);
}

.hre-testimonial-section .testimonial p {
    color: rgba(255,255,255,0.95);
    font-size: 18px;
    line-height: 1.7;
    font-style: italic;
}

.hre-testimonial-section .testimonial cite {
    color: rgba(255,255,255,0.75);
    font-size: 14px;
}

/* ---------- CONTACT PAGE ---------- */
.hre-contact-section h2 {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: var(--hre-navy) !important;
    border-bottom: none !important;
    text-shadow: none !important;
    text-align: left;
    margin-bottom: 8px;
}

.hre-contact-lead {
    color: var(--hre-text-light);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 28px;
}

.hre-contact-card {
    background: var(--hre-white);
    border-radius: var(--hre-radius);
    padding: 40px;
    box-shadow: var(--hre-shadow);
    border: 1px solid var(--hre-border);
}

.hre-contact-form {
    /* Form itself is clean — card styling is on .hre-contact-card */
}

.hre-form-group {
    margin-bottom: 20px;
}

.hre-form-group label {
    display: block;
    font-weight: 500;
    color: var(--hre-text);
    font-size: 14px;
    margin-bottom: 6px;
}

.hre-contact-form .form-control {
    padding: 12px 16px;
    border: 2px solid var(--hre-border);
    border-radius: var(--hre-radius-sm);
    font-size: 14px;
    transition: var(--hre-transition);
    background: var(--hre-bg);
    width: 100%;
    height: auto;
}

.hre-contact-form .form-control:focus {
    border-color: var(--hre-blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(61,122,181,0.1);
    outline: none;
}

.hre-contact-form .btn-primary {
    background: linear-gradient(135deg, var(--hre-navy) 0%, var(--hre-navy-mid) 100%) !important;
    border: none !important;
    padding: 14px 32px;
    border-radius: var(--hre-radius-sm) !important;
    font-weight: 600;
    font-size: 15px;
    transition: var(--hre-transition);
    margin-top: 8px;
    width: auto;
}

.hre-contact-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(30,58,95,0.35);
}

.hre-recaptcha-wrapper {
    overflow: hidden;
}

.hre-contact-form .alert {
    border-radius: var(--hre-radius-sm);
    margin-bottom: 20px;
}

/* --- Contact Sidebar --- */
.hre-contact-sidebar {
    background: var(--hre-white);
    border-radius: var(--hre-radius);
    padding: 32px;
    box-shadow: var(--hre-shadow);
    border: 1px solid var(--hre-border);
}

.hre-contact-sidebar h2 {
    font-size: 21px !important;
    margin-bottom: 8px;
}

.hre-contact-sidebar > p {
    color: var(--hre-text-light);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* --- Contact Info List --- */
.hre-contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px 0;
}

.hre-contact-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--hre-border);
}

.hre-contact-info-list li:last-child {
    border-bottom: none;
}

.hre-contact-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: linear-gradient(135deg, var(--hre-navy) 0%, var(--hre-blue) 100%);
    border-radius: var(--hre-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
}

.hre-contact-info-list li strong {
    display: block;
    font-weight: 600;
    color: var(--hre-navy);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.hre-contact-info-list li span,
.hre-contact-info-list li a {
    font-size: 14px;
    color: var(--hre-text);
}

.hre-contact-info-list li a:hover {
    color: var(--hre-blue);
    text-decoration: none;
}

/* --- Contact Social --- */
.hre-contact-social {
    padding-top: 4px;
}

.hre-contact-social h4 {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--hre-navy) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px !important;
}

.hre-contact-sidebar .hre-social-buttons {
    display: flex;
    gap: 10px;
}

/* ---------- FOOTER ---------- */
/* (primary footer styles in FOOTER MODERNIZATION section below) */

/* ---------- WELCOME SECTION ---------- */
.hre-welcome {
    padding: 80px 0 40px;
}

.hre-welcome h1,
.hre-welcome h1.hre-section-title {
    font-size: 32px !important;
    font-weight: 700 !important;
    color: var(--hre-navy) !important;
    border-bottom: none !important;
    text-shadow: none !important;
    line-height: 1.4;
    margin-bottom: 8px;
}

.hre-welcome h1 .subtitle {
    display: block;
    font-size: 16px;
    font-weight: 400;
    color: var(--hre-text-light);
    margin-top: 12px;
    line-height: 1.6;
}

.hre-welcome .lead {
    font-size: 17px;
    color: var(--hre-text);
    line-height: 1.75;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hre-welcome .hre-tagline {
    font-size: 19px;
    font-weight: 500;
    color: var(--hre-blue);
    text-align: center;
    margin-top: 24px;
    margin-bottom: 8px;
}

/* ---------- PRODUCTS PAGE ---------- */
.hre-product-list li {
    padding: 8px 0;
}

.hre-product-list li a {
    color: var(--hre-blue);
    font-weight: 500;
    text-decoration: none;
    transition: var(--hre-transition);
}

.hre-product-list li a:hover {
    color: var(--hre-navy);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 991px) {
    .hre-hero {
        min-height: 420px;
        padding: 60px 20px;
    }

    .hre-hero-content h1 {
        font-size: 36px !important;
    }

    .hre-features {
        padding: 60px 0 40px;
    }

    .hre-feature-card {
        margin-bottom: 20px;
    }

    /* Card rows: keep flex but allow wrapping */
    .hre-card-row {
        margin-top: 24px;
    }

    .hre-card-row > [class*="col-"] {
        margin-bottom: 20px;
    }

    .hre-clients-section {
        padding: 60px 0;
    }

    .hre-cta-banner {
        padding: 48px 20px;
        margin: 40px 15px;
    }

    .hre-callout {
        padding: 36px 24px;
        margin: 36px 0;
    }

    .hre-welcome {
        padding: 60px 0 30px;
    }

    .hre-contact-card {
        padding: 32px;
    }

    .hre-contact-sidebar {
        margin-top: 28px;
    }
}

@media (max-width: 767px) {
    .hre-hero {
        min-height: 360px;
        padding: 50px 16px;
    }

    .hre-hero-content h1 {
        font-size: 28px !important;
    }

    .hre-hero-content p {
        font-size: 16px;
    }

    .hre-hero-content .hre-btn-primary,
    .hre-hero-content .hre-btn-outline {
        display: block;
        margin: 8px auto;
        max-width: 280px;
    }

    .hre-features {
        padding: 40px 0 20px;
    }

    .hre-feature-card {
        margin-bottom: 16px;
        padding: 28px 20px;
    }

    /* Stack card rows vertically on mobile */
    .hre-card-row {
        display: block;
        margin-top: 16px;
    }

    .hre-card-row > [class*="col-"] {
        display: block;
        margin-bottom: 16px;
    }

    header#page-title.hre-page-title {
        padding: 40px 0 30px !important;
    }

    header#page-title.hre-page-title h1 {
        font-size: 26px !important;
    }

    .hre-content-section {
        padding: 40px 0;
    }

    .hre-content-section h2 {
        font-size: 22px !important;
    }

    .hre-callout {
        padding: 28px 20px;
        margin: 28px 0;
        border-radius: var(--hre-radius-sm);
    }

    .hre-callout h3 {
        font-size: 18px !important;
    }

    .hre-clients-section {
        padding: 50px 0;
    }

    .hre-clients-section h2 {
        font-size: 24px !important;
        text-align: center;
    }

    .hre-welcome h1 {
        font-size: 24px !important;
    }

    .hre-welcome {
        padding: 40px 0 20px;
    }

    .hre-contact-card {
        padding: 28px 20px;
        border-radius: var(--hre-radius-sm);
    }

    .hre-contact-sidebar {
        margin-top: 28px;
        padding: 28px 20px;
    }

    .hre-cta-banner {
        padding: 36px 16px;
        margin: 32px 10px;
        border-radius: var(--hre-radius-sm);
    }

    .hre-cta-banner h3 {
        font-size: 19px !important;
    }

    .hre-testimonial-section {
        padding: 50px 0;
    }
}

@media (max-width: 480px) {
    .hre-hero-content h1 {
        font-size: 24px !important;
    }

    .hre-hero {
        min-height: 300px;
        padding: 40px 12px;
    }

    .hre-contact-card,
    .hre-contact-sidebar {
        border-radius: 8px;
    }

    .hre-contact-form .btn-primary {
        width: 100%;
        text-align: center;
    }

    .hre-recaptcha-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .hre-contact-lead {
        font-size: 14px;
    }

    .hre-contact-info-list li {
        gap: 12px;
        padding: 12px 0;
    }

    .hre-contact-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 14px;
    }
}

/* ---------- UTILITY CLASSES ---------- */
.hre-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, var(--hre-navy) 0%, var(--hre-blue) 100%);
    margin: 24px auto;
    border-radius: 2px;
}

.hre-text-gradient {
    background: linear-gradient(135deg, var(--hre-navy) 0%, var(--hre-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hre-stats-row {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    padding: 20px 0;
}

.hre-stat {
    text-align: center;
}

.hre-stat .number {
    font-size: 40px;
    font-weight: 700;
    color: var(--hre-navy);
}

.hre-stat .label {
    font-size: 14px;
    color: var(--hre-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

/* ---------- GLOBAL BUTTON OVERRIDES ---------- */
.btn-primary {
    background: linear-gradient(135deg, var(--hre-navy) 0%, var(--hre-navy-mid) 100%) !important;
    border: none !important;
    border-radius: var(--hre-radius-sm) !important;
    font-weight: 600;
    font-family: 'Inter', sans-serif !important;
    letter-spacing: 0.01em;
    transition: var(--hre-transition);
    box-shadow: 0 2px 8px rgba(30,58,95,0.18);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, var(--hre-navy-mid) 0%, var(--hre-blue) 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(30,58,95,0.28);
}

.btn-danger {
    background: linear-gradient(135deg, var(--hre-navy) 0%, var(--hre-navy-mid) 100%) !important;
    border: none !important;
    border-radius: var(--hre-radius-sm) !important;
    font-weight: 600;
    font-family: 'Inter', sans-serif !important;
    transition: var(--hre-transition);
    box-shadow: 0 2px 8px rgba(30,58,95,0.18);
}

.btn-danger:hover,
.btn-danger:focus {
    background: linear-gradient(135deg, var(--hre-navy-mid) 0%, var(--hre-blue) 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(30,58,95,0.28);
}

.btn-lg {
    padding: 14px 32px !important;
    font-size: 15px !important;
    border-radius: var(--hre-radius-sm) !important;
}

/* ---------- LOADING OVERLAY ---------- */
#loadingOverlay {
    background: var(--hre-white) !important;
}

/* ---------- HEADER SHADOW ---------- */
#header_shadow {
    box-shadow: 0 2px 20px rgba(30,58,95,0.06) !important;
    background: transparent !important;
}

/* ---------- MOBILE NAV POLISH ---------- */
.btn-mobile {
    border: 2px solid var(--hre-border) !important;
    background: var(--hre-white) !important;
    color: var(--hre-navy) !important;
    border-radius: var(--hre-radius-sm) !important;
    padding: 8px 12px !important;
    transition: var(--hre-transition);
}

.btn-mobile:hover {
    border-color: var(--hre-blue) !important;
    color: var(--hre-blue) !important;
}

@media (max-width: 991px) {
    .nav-main-collapse {
        background: var(--hre-white);
        border: 1px solid var(--hre-border);
        border-radius: var(--hre-radius-sm);
        box-shadow: var(--hre-shadow-lg);
        margin-top: 8px;
        padding: 12px 0;
    }

    .nav-main-collapse .nav-pills > li > a {
        padding: 12px 20px !important;
        border-radius: 0 !important;
        border-bottom: 1px solid rgba(226,232,240,0.5);
    }

    .nav-main-collapse .dropdown-menu {
        box-shadow: none !important;
        border: none !important;
        background: var(--hre-bg) !important;
        background-color: var(--hre-bg) !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .nav-main-collapse .dropdown-menu > li > a {
        padding: 10px 36px !important;
        font-size: 13px !important;
        color: var(--hre-text) !important;
    }

    .nav-main-collapse .dropdown-menu > li > a:hover {
        background: rgba(61,122,181,0.06) !important;
        color: var(--hre-blue) !important;
    }

    .nav-main-collapse li.divider {
        border-bottom: 1px solid var(--hre-border) !important;
        border-top: none !important;
    }
}

/* ---------- PARALLAX / COVER SECTIONS ---------- */
.cover.parallax {
    position: relative;
}

.cover.parallax .overlay {
    background: linear-gradient(135deg, rgba(30,58,95,0.85) 0%, rgba(45,90,135,0.82) 100%) !important;
}

.cover.parallax .testimonial p {
    color: rgba(255,255,255,0.95);
    font-size: 18px;
    line-height: 1.8;
    font-style: italic;
    max-width: 750px;
    margin: 0 auto 16px;
}

.cover.parallax .testimonial cite {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

/* ---------- OLD DIVIDER STYLING ---------- */
.divider {
    border-color: var(--hre-border) !important;
}

.divider i {
    color: var(--hre-blue) !important;
    background: var(--hre-white) !important;
}

.divider.half-margins {
    margin: 16px 0 !important;
}

/* ---------- TEXT PRIMARY OVERRIDE ---------- */
.text-primary {
    color: var(--hre-blue) !important;
}

/* ---------- LIST ICON POLISH ---------- */
.list-icon li {
    padding: 8px 0;
    font-size: 15px;
    color: var(--hre-text);
    line-height: 1.6;
}

.list-icon li a {
    color: var(--hre-blue);
    font-weight: 500;
    text-decoration: none;
    transition: var(--hre-transition);
}

.list-icon li a:hover {
    color: var(--hre-navy);
}

.list-icon.star-o.color.circle li:before {
    color: var(--hre-blue) !important;
}

/* ---------- FEATURED ICON POLISH ---------- */
.featured-icon {
    color: var(--hre-blue) !important;
    border-color: var(--hre-blue) !important;
}

/* ---------- IMAGES POLISH ---------- */
.img-rounded {
    border-radius: var(--hre-radius) !important;
    box-shadow: var(--hre-shadow);
}

.owl-carousel .img-rounded,
.owl-carousel .img-responsive {
    border-radius: var(--hre-radius) !important;
}

/* ---------- FOOTER MODERNIZATION ---------- */
footer {
    font-family: 'Inter', sans-serif;
    overflow: visible !important;
}

/* --- Footer Content (main section) --- */
footer .footer-content {
    background: #f8fafc !important;
    padding: 56px 0 40px !important;
    border-top: 1px solid var(--hre-border) !important;
    border-bottom: none !important;
}

footer .footer-content h3 {
    color: var(--hre-navy) !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    text-shadow: none !important;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.08em !important;
    margin-bottom: 20px !important;
    padding-bottom: 12px;
    border: none !important;
    border-bottom: 2px solid var(--hre-blue) !important;
    display: inline-block;
}

footer .footer-content p,
footer .footer-content address {
    color: var(--hre-text-light);
    font-size: 14px;
    line-height: 1.7;
}

footer .footer-content p.contact-desc {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 16px !important;
    color: var(--hre-text-light);
}

footer .footer-content a {
    color: var(--hre-blue);
    transition: var(--hre-transition);
    text-decoration: none;
}

footer .footer-content a:hover {
    color: var(--hre-navy);
}

/* --- Footer Contact List --- */
.hre-footer-contact-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 20px 0 !important;
}

.hre-footer-contact-list li {
    padding: 8px 0 !important;
    font-size: 14px;
    color: var(--hre-text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.hre-footer-contact-list li i.fa {
    color: var(--hre-blue);
    width: 16px;
    text-align: center;
    font-size: 14px;
}

/* --- Footer Quick Links --- */
.hre-footer-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.hre-footer-links li {
    padding: 0 !important;
    margin: 0 !important;
}

.hre-footer-links li a {
    display: block;
    padding: 7px 0;
    font-size: 14px;
    color: var(--hre-text) !important;
    text-decoration: none;
    transition: var(--hre-transition);
    border-bottom: 1px solid rgba(226,232,240,0.6);
}

.hre-footer-links li:last-child a {
    border-bottom: none;
}

.hre-footer-links li a:hover {
    color: var(--hre-blue) !important;
    padding-left: 4px;
}

/* --- Social Buttons (custom — replaces bootstrap-social) --- */
.hre-social-buttons {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.hre-social-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 16px;
    transition: var(--hre-transition);
    text-decoration: none !important;
}

.hre-social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    text-decoration: none !important;
}

.hre-social-facebook {
    background: #1877f2 !important;
    color: #fff !important;
}

.hre-social-facebook:hover {
    background: #0d65d9 !important;
    color: #fff !important;
}

.hre-social-linkedin {
    background: #0a66c2 !important;
    color: #fff !important;
}

.hre-social-linkedin:hover {
    background: #004182 !important;
    color: #fff !important;
}

/* Kill old bootstrap-social overrides on these new buttons */
footer .footer-content .hre-social-btn,
footer .footer-content .hre-social-btn:hover {
    color: #fff !important;
}

/* --- Footer Logo Column --- */
footer .column.hre-footer-logo-col {
    background: transparent !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-radius: 0 !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

footer .footer-content .logo-content img {
    border-radius: var(--hre-radius);
    max-width: 260px;
    margin: 0 auto;
}

.hre-footer-tagline {
    font-size: 13px !important;
    color: var(--hre-text-light) !important;
    margin-top: 12px;
    font-style: italic;
    letter-spacing: 0.02em;
}

/* --- Footer Sprite overrides (kill old background images) --- */
footer .footer-content .footer-sprite {
    padding-left: 0 !important;
    background: none !important;
}

footer address .footer-sprite {
    padding-left: 0 !important;
    background: none !important;
    margin-bottom: 8px !important;
}

/* --- Footer Column general --- */
footer .column {
    height: auto !important;
}

/* --- Footer Bar (copyright) --- */
footer .footer-bar {
    background: linear-gradient(135deg, var(--hre-navy) 0%, var(--hre-navy-mid) 100%) !important;
    padding: 0 !important;
    border-top: none !important;
    border-left: none !important;
    display: block;
    position: relative;
}

footer .footer-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    padding-bottom: 16px;
}

footer .footer-bar .copyright {
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    font-weight: 400;
    display: inline-block;
    padding: 0 !important;
    text-transform: none !important;
}

footer .footer-bar .toTop {
    color: rgba(255,255,255,0.8) !important;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--hre-transition);
    position: static !important;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    float: none !important;
    width: auto !important;
    padding: 0 !important;
    border-left: none !important;
    text-align: right;
}

footer .footer-bar .toTop:hover {
    color: #fff !important;
    text-decoration: none;
}

footer .footer-bar .toTop .fa {
    margin-left: 4px !important;
}

/* ---------- OWL CAROUSEL CONTROLS ---------- */
.owl-wrapper-outer {
    overflow: hidden !important;
}

.owl-theme .owl-controls .owl-buttons div {
    background: var(--hre-navy) !important;
    border-radius: 50% !important;
    opacity: 0.7;
    transition: var(--hre-transition);
}

.owl-theme .owl-controls .owl-buttons div:hover {
    opacity: 1;
}

/* ---------- ALERT OVERRIDES ---------- */
.alert-danger {
    border-radius: var(--hre-radius-sm);
    border: 1px solid #fca5a5;
    background: #fef2f2;
    color: #991b1b;
}

.alert-success {
    border-radius: var(--hre-radius-sm);
    border: 1px solid #86efac;
    background: #f0fdf4;
    color: #166534;
}

/* ---------- FORM CONTROLS GLOBAL ---------- */
.form-control {
    border: 2px solid var(--hre-border) !important;
    border-radius: var(--hre-radius-sm) !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    transition: var(--hre-transition);
    font-family: 'Inter', sans-serif !important;
    color: var(--hre-text) !important;
}

.form-control:focus {
    border-color: var(--hre-blue) !important;
    box-shadow: 0 0 0 3px rgba(61,122,181,0.1) !important;
    outline: none !important;
}

/* ---------- ARTICLE / CONTENT ROW SPACING ---------- */
.article.row {
    margin-bottom: 32px;
}

.article.row + .divider {
    margin: 24px 0 32px;
}


/* ==========================================================================
   REVOLUTION SLIDER HERO OVERRIDES
   ========================================================================== */
.fullwidthbanner-container {
    position: relative !important;
    overflow: hidden !important;
}

/* Dark overlay on the slider images so white caption text reads clearly
   against bright backgrounds (e.g. Tampa skyline at night). */
.fullwidthbanner-container .fullwidthbanner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.55) 0%, rgba(0, 0, 0, 0.35) 100%);
    z-index: 2;
    pointer-events: none;
}

.fullwidthbanner-container .fullwidthbanner .tp-caption.hre-slide-title {
    font-family: 'Inter', 'Open Sans', sans-serif !important;
    font-size: 52px !important;
    font-weight: 800 !important;
    color: #fff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6), 0 4px 24px rgba(0,0,0,0.5) !important;
    letter-spacing: -0.5px !important;
    line-height: 1.15 !important;
}

.fullwidthbanner-container .fullwidthbanner .tp-caption.hre-slide-subtitle {
    font-family: 'Inter', 'Open Sans', sans-serif !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    color: rgba(255,255,255,0.98) !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6), 0 2px 12px rgba(0,0,0,0.45) !important;
    line-height: 1.5 !important;
    max-width: 600px !important;
}

.fullwidthbanner-container .fullwidthbanner .tp-caption.hre-slide-btn {
    font-family: 'Inter', 'Open Sans', sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #fff !important;
    background: linear-gradient(135deg, #1e3a5f, #3d7ab5) !important;
    padding: 14px 36px !important;
    border-radius: 8px !important;
    border: none !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(30,58,95,0.3) !important;
}

.fullwidthbanner-container .fullwidthbanner .tp-caption.hre-slide-btn:hover {
    background: linear-gradient(135deg, #2d5a87, #4d8ac5) !important;
    box-shadow: 0 6px 20px rgba(30,58,95,0.4) !important;
    transform: translateY(-2px) !important;
}

.fullwidthbanner-container .tp-bullets {
    bottom: 20px !important;
}

.fullwidthbanner-container .tp-bullets .bullet {
    background: rgba(255,255,255,0.5) !important;
    border-radius: 50% !important;
    width: 12px !important;
    height: 12px !important;
    margin: 0 5px !important;
}

.fullwidthbanner-container .tp-bullets .bullet.selected {
    background: #fff !important;
}


/* ==========================================================================
   SCREENSHOT / IMAGE GALLERY CAROUSEL
   ========================================================================== */
.hre-screenshot-carousel {
    margin: 32px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(30,58,95,0.12);
}

.hre-screenshot-carousel img {
    border-radius: 12px;
    width: 100%;
}

.hre-screenshot-carousel .owl-controls {
    margin-top: 16px;
    text-align: center;
}

.hre-screenshot-carousel .owl-pagination .owl-page span {
    background: var(--hre-blue-light) !important;
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    margin: 0 4px !important;
}

.hre-screenshot-carousel .owl-pagination .owl-page.active span {
    background: var(--hre-navy) !important;
}


/* ==========================================================================
   PRODUCT CARD GRID
   ========================================================================== */
.hre-product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin: 40px 0;
}

.hre-product-card {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    flex: 1 1 calc(33.333% - 24px);
    min-width: 260px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(30,58,95,0.06);
}

.hre-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(30,58,95,0.12);
    border-color: var(--hre-blue-light);
}

.hre-product-card .hre-product-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #eef4fb, #dce8f5);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: var(--hre-navy);
}

.hre-product-card h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--hre-navy);
    margin-bottom: 10px;
}

.hre-product-card p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 16px;
}

.hre-product-card .hre-product-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--hre-blue);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
}

.hre-product-card .hre-product-link:hover {
    gap: 10px;
    color: var(--hre-navy);
}

.hre-product-card .hre-product-link i {
    font-size: 12px;
}


/* ==========================================================================
   TEAM SECTION
   ========================================================================== */
.hre-team-section {
    padding: 60px 0;
}

.hre-team-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    margin-top: 40px;
}

.hre-team-card {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 16px;
    overflow: hidden;
    flex: 1 1 calc(50% - 32px);
    min-width: 300px;
    box-shadow: 0 4px 16px rgba(30,58,95,0.06);
    transition: all 0.3s ease;
}

.hre-team-card:hover {
    box-shadow: 0 8px 32px rgba(30,58,95,0.12);
    transform: translateY(-4px);
}

.hre-team-card-body {
    padding: 28px;
}

.hre-team-card h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--hre-navy);
    margin-bottom: 4px;
}

.hre-team-card .hre-team-role {
    font-size: 14px;
    font-weight: 600;
    color: var(--hre-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
    display: block;
}

.hre-team-card p {
    font-size: 14px;
    color: #475569;
    line-height: 1.7;
}


/* ==========================================================================
   COMPANY TIMELINE
   ========================================================================== */
.hre-timeline {
    position: relative;
    padding: 20px 0;
    margin: 48px 0;
}

.hre-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--hre-navy), var(--hre-blue), var(--hre-blue-light));
    border-radius: 3px;
}

.hre-timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    position: relative;
}

.hre-timeline-item:nth-child(odd) {
    flex-direction: row;
}

.hre-timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.hre-timeline-content {
    width: 44%;
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(30,58,95,0.06);
    transition: all 0.3s ease;
}

.hre-timeline-content:hover {
    box-shadow: 0 8px 24px rgba(30,58,95,0.12);
}

.hre-timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: var(--hre-blue);
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--hre-blue);
    z-index: 2;
}

.hre-timeline-year {
    font-size: 14px;
    font-weight: 700;
    color: var(--hre-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.hre-timeline-content h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--hre-navy);
    margin-bottom: 8px;
}

.hre-timeline-content p {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 767px) {
    .hre-timeline::before {
        left: 20px;
    }

    .hre-timeline-item,
    .hre-timeline-item:nth-child(even) {
        flex-direction: row !important;
        padding-left: 50px;
    }

    .hre-timeline-content {
        width: 100%;
    }

    .hre-timeline-dot {
        left: 20px;
    }
}


/* ==========================================================================
   STATS / COUNTER SECTION
   ========================================================================== */
.hre-stats-section {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 50%, #3d7ab5 100%);
    padding: 60px 0;
    margin: 60px 0;
}

.hre-stat-item {
    text-align: center;
    padding: 24px;
}

.hre-stat-number {
    font-family: 'Inter', sans-serif;
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 8px;
}

.hre-stat-label {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* ==========================================================================
   TESTIMONIAL SECTION OVERRIDES
   ========================================================================== */
section.hre-testimonial-section {
    padding: 80px 0 !important;
    position: relative !important;
}

section.hre-testimonial-section .overlay {
    background: rgba(30,58,95,0.75) !important;
}

section.hre-testimonial-section .testimonial p {
    font-size: 20px !important;
    font-style: italic !important;
    color: #fff !important;
    line-height: 1.7 !important;
    max-width: 800px !important;
    margin: 0 auto 20px !important;
}

section.hre-testimonial-section .testimonial cite {
    font-size: 15px !important;
    color: rgba(255,255,255,0.8) !important;
    font-style: normal !important;
}


/* ==========================================================================
   CONTENT SECTION IMAGE ENHANCEMENT
   ========================================================================== */
.hre-content-section img.img-responsive {
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(30,58,95,0.1);
}

.hre-content-section .owl-carousel img.img-responsive,
.hre-content-section .owl-carousel img.img-rounded {
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(30,58,95,0.1);
}


/* ==========================================================================
   LIST ICON OVERRIDES
   ========================================================================== */
.hre-content-section ul.list-icon li {
    font-size: 15px;
    color: #334155;
    line-height: 1.7;
    padding: 4px 0;
}

.hre-content-section ul.list-icon.star-o.color li::before {
    color: var(--hre-blue) !important;
}


/* ==========================================================================
   RESPONSIVE: PRODUCT GRID
   ========================================================================== */
@media (max-width: 991px) {
    .hre-product-grid {
        gap: 16px;
    }

    .hre-product-card {
        flex: 1 1 calc(50% - 16px);
        min-width: 220px;
    }

    .hre-team-card {
        flex: 1 1 100%;
    }
}

@media (max-width: 767px) {
    .hre-product-card {
        flex: 1 1 100%;
    }

    .hre-stat-number {
        font-size: 36px;
    }

    .fullwidthbanner-container .fullwidthbanner .tp-caption.hre-slide-title {
        font-size: 32px !important;
    }

    .fullwidthbanner-container .fullwidthbanner .tp-caption.hre-slide-subtitle {
        font-size: 16px !important;
    }
}

/* ---------- OLD COVER SECTION (margin-footer) POLISH ---------- */
.cover.margin-footer {
    margin-bottom: 0 !important;
}

/* ---------- BREADCRUMB (non page-title) ---------- */
.breadcrumb {
    background: transparent;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--hre-blue);
    text-decoration: none;
    transition: var(--hre-transition);
}

.breadcrumb a:hover {
    color: var(--hre-navy);
}

/* ---------- PARALLAX TEXT-SHADOW KILL ---------- */
/* essentials.css adds text-shadow: #000 1px 1px 1px to parallax headings */
.parallax h1,
.parallax h2,
.parallax h3,
.parallax h4,
.parallax h5,
.parallax h6,
.parallax p {
    text-shadow: none !important;
}

.parallax .btn {
    text-shadow: none !important;
}

/* ---------- OLD CLASS OVERRIDES ---------- */
/* Neutralise .bs-callout gray background when .hre-callout is also present */
.bs-callout.hre-callout {
    background: linear-gradient(135deg, var(--hre-navy) 0%, var(--hre-navy-mid) 100%) !important;
    border: none !important;
    border-radius: var(--hre-radius) !important;
}

/* Override .styleSecondBackground old blue to our navy */
.styleSecondBackground {
    background-color: var(--hre-navy) !important;
}

.styleSecondBackground h1,
.styleSecondBackground h2,
.styleSecondBackground h3,
.styleSecondBackground h4,
.styleSecondBackground p {
    color: #fff !important;
}

/* Override old .styleBackground gray */
.styleBackground {
    background-color: var(--hre-navy) !important;
    color: #fff !important;
}

/* ---------- WELL PANEL OVERRIDES ---------- */
.well {
    background: var(--hre-bg) !important;
    border: 1px solid var(--hre-border) !important;
    border-radius: var(--hre-radius-sm) !important;
    box-shadow: none !important;
}

.well h4 {
    color: var(--hre-navy) !important;
    font-weight: 600 !important;
}

/* ---------- FEATURED BOX / ICON COLOR OVERRIDES ---------- */
div.featured-box i.fa {
    background-color: var(--hre-navy) !important;
}

div.featured-box i.fa:after {
    border-color: var(--hre-blue) !important;
}

i.featured-icon,
i.featured-icon:after {
    border-color: var(--hre-blue) !important;
    background-color: var(--hre-blue) !important;
}

/* ---------- COVER SECTION OVERLAY ---------- */
.cover .overlay,
.cover .overlay.dark,
.cover .overlay.color1,
.cover .overlay.color2 {
    background: linear-gradient(135deg, rgba(30,58,95,0.88) 0%, rgba(45,90,135,0.85) 100%) !important;
}

/* ---------- SMOOTH SCROLL AND PAGE TRANSITIONS ---------- */
html {
    scroll-behavior: smooth;
}

/* Subtle entrance animation for content sections */
.hre-content-section,
.hre-welcome {
    animation: hreSlideUp 0.5s ease-out;
}

@keyframes hreSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- HERO SECTION ANIMATION ---------- */
.hre-hero-content h1 {
    animation: hereFadeIn 0.8s ease-out;
}

.hre-hero-content p {
    animation: hereFadeIn 0.8s ease-out 0.2s both;
}

.hre-hero-content > div {
    animation: hereFadeIn 0.8s ease-out 0.4s both;
}

@keyframes hereFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- FEATURE CARD STAGGER ---------- */
.hre-feature-card {
    animation: hreCardIn 0.5s ease-out both;
}

.row .col-md-4:nth-child(1) .hre-feature-card { animation-delay: 0.1s; }
.row .col-md-4:nth-child(2) .hre-feature-card { animation-delay: 0.2s; }
.row .col-md-4:nth-child(3) .hre-feature-card { animation-delay: 0.3s; }

@keyframes hreCardIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- SELECTION COLOR ---------- */
::selection {
    background: var(--hre-blue);
    color: #fff;
}

::-moz-selection {
    background: var(--hre-blue);
    color: #fff;
}

/* ---------- VALIDATION SUMMARY STYLING ---------- */
.validation-summary-errors {
    border-radius: var(--hre-radius-sm);
    padding: 16px;
}

/* ---------- RESPONSIVE ADDITIONS ---------- */
@media (max-width: 767px) {
    .article.row .col-md-4,
    .article.row .col-md-5,
    .article.row .col-md-6,
    .article.row .col-md-8 {
        margin-bottom: 16px;
    }

    footer .footer-content {
        text-align: center;
        padding: 36px 0 24px !important;
    }

    footer .footer-content h3 {
        text-align: center;
        display: block !important;
        border-bottom: none !important;
        padding-bottom: 0;
    }

    footer .footer-content .column {
        margin-bottom: 32px;
    }

    footer .footer-content .column:last-child {
        margin-bottom: 0;
    }

    .hre-footer-contact-list {
        justify-content: center;
    }

    .hre-footer-contact-list li {
        justify-content: center;
    }

    .hre-social-buttons {
        justify-content: center;
    }

    .hre-footer-links li a {
        text-align: center;
    }

    .cover.parallax .testimonial p {
        font-size: 16px;
        padding: 0 16px;
    }

    .hre-callout h3 br {
        display: none;
    }
}

@media (max-width: 480px) {
    footer .footer-bar {
        text-align: center;
    }

    footer .footer-bar .container {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    footer .footer-bar .toTop {
        justify-content: center;
    }
}

/* ==========================================================================
   THEME CYCLE BUTTON (lowkey, single icon — slick)
   Markup: <button class="hre-theme-cycle" data-hre-theme-cycle>
             <svg class="hre-theme-cycle__icon hre-theme-cycle__icon--light">...</svg>
             <svg class="hre-theme-cycle__icon hre-theme-cycle__icon--dark">...</svg>
             <svg class="hre-theme-cycle__icon hre-theme-cycle__icon--system">...</svg>
           </button>
   hre-theme.js adds .hre-theme-is-{mode} to reveal the correct icon.
   Ghost button: no chip, no border, no background — blends into the nav
   and reveals only on hover / focus.
   ========================================================================== */
/* The .hre-nav-theme <li> is a regular nav pill host; the button inside it
   handles the look. We inherit the nav's line-height / flex centering so
   vertical alignment matches Login / Schedule Demo with no hard-coded
   margins. The <li> strips the ::before/::after pill decorations that the
   global nav cascade may apply. */
.hre-nav-theme {
    display: inline-flex;
    align-items: center;
    padding: 0 4px;
}
.hre-nav-theme::before,
.hre-nav-theme::after,
.hre-nav-theme > a::before,
.hre-nav-theme > a::after {
    display: none !important;
    content: none !important;
}
.hre-theme-cycle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    margin: 0;
    background: transparent;
    color: var(--hre-text-light);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    opacity: 0.6;
    line-height: 1;
    vertical-align: middle;
    transition: opacity 160ms ease, background 160ms ease, color 160ms ease, transform 240ms ease;
}
.hre-theme-cycle:hover,
.hre-theme-cycle:focus-visible {
    opacity: 1;
    color: var(--hre-navy);
    background: rgba(30, 58, 95, 0.06);
}
.hre-theme-cycle:focus-visible {
    outline: 2px solid var(--hre-color-focus-ring, rgba(9, 125, 182, 0.45));
    outline-offset: 2px;
}
.hre-theme-cycle:active {
    transform: scale(0.92);
}
.hre-theme-cycle__icon {
    display: none;
    pointer-events: none;
}
.hre-theme-cycle.hre-theme-is-light .hre-theme-cycle__icon--light,
.hre-theme-cycle.hre-theme-is-dark  .hre-theme-cycle__icon--dark,
.hre-theme-cycle.hre-theme-is-system .hre-theme-cycle__icon--system {
    display: block;
}

/* Hide the cycle button on very small screens — mobile drawer can surface
   it separately in a follow-up. */
@media (max-width: 991px) {
    .hre-nav-theme {
        display: none;
    }
}

/* Dark-mode adjustments */
:root[data-theme="dark"] .hre-theme-cycle,
:root[data-theme="system"].hre-prefers-dark .hre-theme-cycle {
    color: var(--hre-text-light);
}
:root[data-theme="dark"] .hre-theme-cycle:hover,
:root[data-theme="system"].hre-prefers-dark .hre-theme-cycle:hover,
:root[data-theme="dark"] .hre-theme-cycle:focus-visible,
:root[data-theme="system"].hre-prefers-dark .hre-theme-cycle:focus-visible {
    color: var(--hre-color-text-strong);
    background: rgba(148, 163, 184, 0.1);
}

/* ==========================================================================
   DARK MODE OVERRIDES
   Corrective layer for legacy CSS that used literal whites or applied
   var(--hre-navy) as a foreground color. Brand gradients (navy/blue) are
   intentionally preserved — only text, surface, and light-card backgrounds
   are retargeted here. Loaded last so same-specificity rules win by source
   order; !important is used where legacy rules already use !important.
   ========================================================================== */
:root[data-theme="dark"] body,
:root[data-theme="system"].hre-prefers-dark body {
    background: var(--hre-bg) !important;
    color: var(--hre-text);
}

/* Legacy layout wrappers from layout.css */
:root[data-theme="dark"] #wrapper,
:root[data-theme="system"].hre-prefers-dark #wrapper,
:root[data-theme="dark"] body.boxed #wrapper,
:root[data-theme="system"].hre-prefers-dark body.boxed #wrapper {
    background: var(--hre-bg) !important;
}

/* Revolution slider container — legacy light-grey frame */
:root[data-theme="dark"] .fullscreenbanner-container,
:root[data-theme="system"].hre-prefers-dark .fullscreenbanner-container,
:root[data-theme="dark"] .fullwidthbanner-container,
:root[data-theme="system"].hre-prefers-dark .fullwidthbanner-container {
    background: var(--hre-bg);
}

/* Headings — corporate-modern.css set these to var(--hre-navy) which we
   intentionally kept stable. In dark mode they'd be dark-on-dark. */
:root[data-theme="dark"] h1,
:root[data-theme="dark"] h2,
:root[data-theme="dark"] h3,
:root[data-theme="dark"] h4,
:root[data-theme="dark"] h5,
:root[data-theme="dark"] h6,
:root[data-theme="system"].hre-prefers-dark h1,
:root[data-theme="system"].hre-prefers-dark h2,
:root[data-theme="system"].hre-prefers-dark h3,
:root[data-theme="system"].hre-prefers-dark h4,
:root[data-theme="system"].hre-prefers-dark h5,
:root[data-theme="system"].hre-prefers-dark h6 {
    color: var(--hre-color-text-strong) !important;
}
:root[data-theme="dark"] h3,
:root[data-theme="dark"] h4,
:root[data-theme="system"].hre-prefers-dark h3,
:root[data-theme="system"].hre-prefers-dark h4 {
    color: var(--hre-text) !important;
}
:root[data-theme="dark"] h5,
:root[data-theme="dark"] h6,
:root[data-theme="system"].hre-prefers-dark h5,
:root[data-theme="system"].hre-prefers-dark h6 {
    color: var(--hre-text-light) !important;
}
:root[data-theme="dark"] .hre-section-title,
:root[data-theme="system"].hre-prefers-dark .hre-section-title {
    color: var(--hre-color-text-strong) !important;
}
:root[data-theme="dark"] .hre-section-subtitle,
:root[data-theme="system"].hre-prefers-dark .hre-section-subtitle {
    color: var(--hre-text-light);
}

/* Feature cards, timeline cards, team cards, general panel-on-white surfaces.
   These used #fff hardcoded; route them through --hre-white so dark-mode
   surface color applies. */
:root[data-theme="dark"] .hre-feature-card,
:root[data-theme="system"].hre-prefers-dark .hre-feature-card,
:root[data-theme="dark"] .hre-timeline-content,
:root[data-theme="system"].hre-prefers-dark .hre-timeline-content,
:root[data-theme="dark"] .hre-team-card,
:root[data-theme="system"].hre-prefers-dark .hre-team-card,
:root[data-theme="dark"] .hre-callout,
:root[data-theme="system"].hre-prefers-dark .hre-callout,
:root[data-theme="dark"] .hre-form-card,
:root[data-theme="system"].hre-prefers-dark .hre-form-card,
:root[data-theme="dark"] .hre-pricing-card,
:root[data-theme="system"].hre-prefers-dark .hre-pricing-card,
:root[data-theme="dark"] .hre-product-card,
:root[data-theme="system"].hre-prefers-dark .hre-product-card,
:root[data-theme="dark"] .hre-contact-card,
:root[data-theme="system"].hre-prefers-dark .hre-contact-card {
    background: var(--hre-white) !important;
    border-color: var(--hre-border) !important;
    color: var(--hre-text) !important;
}
:root[data-theme="dark"] .hre-feature-card h3,
:root[data-theme="system"].hre-prefers-dark .hre-feature-card h3,
:root[data-theme="dark"] .hre-team-card h3,
:root[data-theme="system"].hre-prefers-dark .hre-team-card h3,
:root[data-theme="dark"] .hre-timeline-content h3,
:root[data-theme="system"].hre-prefers-dark .hre-timeline-content h3,
:root[data-theme="dark"] .hre-product-card h4,
:root[data-theme="system"].hre-prefers-dark .hre-product-card h4,
:root[data-theme="dark"] .hre-product-card h3,
:root[data-theme="system"].hre-prefers-dark .hre-product-card h3 {
    color: var(--hre-color-text-strong) !important;
}

/* Footer — corporate-modern.css sets bg to #f8fafc explicitly. */
:root[data-theme="dark"] footer .footer-content,
:root[data-theme="system"].hre-prefers-dark footer .footer-content {
    background: var(--hre-color-surface-sunken) !important;
    color: var(--hre-text-light) !important;
}
:root[data-theme="dark"] footer .footer-content h3,
:root[data-theme="system"].hre-prefers-dark footer .footer-content h3 {
    color: var(--hre-color-text-strong) !important;
}
:root[data-theme="dark"] footer .footer-content a,
:root[data-theme="system"].hre-prefers-dark footer .footer-content a {
    color: var(--hre-text) !important;
}
:root[data-theme="dark"] footer .footer-content a:hover,
:root[data-theme="system"].hre-prefers-dark footer .footer-content a:hover {
    color: var(--hre-color-accent) !important;
}
:root[data-theme="dark"] footer .footer-bar,
:root[data-theme="system"].hre-prefers-dark footer .footer-bar {
    background: var(--hre-bg) !important;
    color: var(--hre-text-light);
    border-top-color: var(--hre-border);
}

/* Links in body copy.  Scoped with :not([class*="btn"]) so anchors that
   are styled as buttons (hre-btn-primary / hre-btn-outline / hre-btn-cta,
   plus Bootstrap's generic .btn) keep their own design-system colors
   instead of inheriting this accent blue — which used to make the hero
   CTAs render as light-blue text in dark mode. */
:root[data-theme="dark"] a:not([class*="btn"]),
:root[data-theme="system"].hre-prefers-dark a:not([class*="btn"]) {
    color: var(--hre-color-accent);
}
:root[data-theme="dark"] a:not([class*="btn"]):hover,
:root[data-theme="system"].hre-prefers-dark a:not([class*="btn"]):hover {
    color: var(--hre-color-accent-hover);
}

/* Form inputs commonly hardcoded to #fff bg in legacy CSS */
:root[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
:root[data-theme="dark"] textarea,
:root[data-theme="dark"] select,
:root[data-theme="system"].hre-prefers-dark input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
:root[data-theme="system"].hre-prefers-dark textarea,
:root[data-theme="system"].hre-prefers-dark select {
    background-color: var(--hre-white);
    color: var(--hre-text);
    border-color: var(--hre-border);
}

/* Bootstrap 3 panel/well/container backgrounds used across the site */
:root[data-theme="dark"] .panel,
:root[data-theme="dark"] .panel-default,
:root[data-theme="dark"] .well,
:root[data-theme="system"].hre-prefers-dark .panel,
:root[data-theme="system"].hre-prefers-dark .panel-default,
:root[data-theme="system"].hre-prefers-dark .well {
    background-color: var(--hre-white);
    border-color: var(--hre-border);
    color: var(--hre-text);
}

/* Login & other auth pages: styling moved to Content/hre-auth.css, which uses
   tokens natively so dark mode applies automatically via the aliases above —
   no page-specific dark overrides needed here. */


/* ==========================================================================
   OUR STORY — FLAGSHIP PAGE POLISH
   Triple-A refinement layer.  Strictly additive — extends .hre-page-title,
   .hre-content-section, .hre-timeline, .hre-team-card, .hre-callout for the
   Our Story narrative without disturbing other corporate pages.

   Adds:
     - Parallax atmosphere on the page-title banner
     - Split-hero "story intro" layout that pairs the new .hre-carousel
       with narrative copy at proper typographic rhythm
     - Timeline reveal animations via [data-hre-reveal]
     - Team card accent rail + refined hover
     - CTA callout polish
     - Reduced-motion guardrails for the existing hereFadeIn animations
   ========================================================================== */

/* ---------- Parallax background layer on page-title banners ------------- */
header#page-title.hre-page-title {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

header#page-title.hre-page-title::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    right: -10%;
    bottom: -20%;
    background:
        radial-gradient(600px circle at 20% 30%, rgba(94, 163, 214, 0.22), transparent 60%),
        radial-gradient(500px circle at 85% 70%, rgba(9, 125, 182, 0.18), transparent 55%);
    transform: translate3d(0, var(--hre-parallax-y, 0px), 0);
    will-change: transform;
    pointer-events: none;
    z-index: 0;
}

header#page-title.hre-page-title > .container {
    position: relative;
    z-index: 1;
}

/* ---------- Story-intro split section ---------------------------------- */
.hre-story-intro {
    padding-top: 72px;
    padding-bottom: 48px;
    text-align: center;
}

.hre-story-intro .hre-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--hre-blue);
    background: rgba(9, 125, 182, 0.08);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.hre-story-intro h2 {
    font-size: clamp(28px, 3vw, 40px) !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    color: var(--hre-navy) !important;
    letter-spacing: -0.02em !important;
    text-align: center !important;
    max-width: 28ch;
    margin: 0 auto 20px !important;
}

.hre-story-intro .hre-story-lead {
    font-size: 18px;
    line-height: 1.65;
    color: var(--hre-text);
    max-width: 68ch;
    margin: 0 auto;
}

.hre-story-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
    margin-bottom: 32px;
}

.hre-story-split__media {
    position: relative;
}

.hre-story-split__media::before {
    /* Soft accent cushion behind the carousel */
    content: '';
    position: absolute;
    inset: -20px -20px -12px 20px;
    background: linear-gradient(135deg, rgba(9, 125, 182, 0.10), rgba(30, 58, 95, 0.05));
    border-radius: var(--hre-radius-xl);
    z-index: -1;
}

.hre-story-split__media .hre-carousel {
    aspect-ratio: 4 / 3;
}

.hre-story-split__media .hre-carousel-slide {
    aspect-ratio: 4 / 3;
}

.hre-story-split__copy h3,
.hre-story-split__copy h4 {
    font-size: 22px;
    font-weight: 700;
    color: var(--hre-navy);
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin: 0 0 16px;
}

.hre-story-split__copy p {
    font-size: 16px;
    line-height: 1.75;
    color: var(--hre-text);
    margin-bottom: 16px;
}

.hre-story-split__copy p:last-child {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .hre-story-split {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }
    .hre-story-intro {
        padding-top: 48px;
    }
}

/* ---------- Section header rhythm for the whole page ------------------- */
.hre-section-heading {
    text-align: center;
    margin: 72px 0 40px;
}

.hre-section-heading .hre-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--hre-blue);
    margin-bottom: 10px;
}

.hre-section-heading h2 {
    font-size: clamp(26px, 2.6vw, 34px) !important;
    font-weight: 800 !important;
    line-height: 1.2;
    color: var(--hre-navy);
    letter-spacing: -0.02em;
    text-align: center !important;
    margin: 0 auto !important;
    max-width: 28ch;
}

.hre-section-heading p {
    font-size: 17px;
    line-height: 1.6;
    color: var(--hre-text-light);
    text-align: center;
    margin: 12px auto 0;
    max-width: 64ch;
}

/* ---------- Timeline: reveal motion + refined dot pulse --------------- */
.hre-timeline-item[data-hre-reveal]:nth-child(odd)  { /* base left-float handled */ }
.hre-timeline-item[data-hre-reveal]:nth-child(even) { /* base right-float handled */ }

.hre-timeline-content {
    position: relative;
    overflow: hidden;
}

.hre-timeline-content::after {
    /* soft gradient sheen that appears on hover */
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(9, 125, 182, 0.06), transparent 70%);
    opacity: 0;
    transition: opacity var(--hre-motion-base) var(--hre-ease-standard);
    pointer-events: none;
}

.hre-timeline-content:hover::after {
    opacity: 1;
}

.hre-timeline-dot {
    transition: transform var(--hre-motion-base) var(--hre-ease-emphasized),
                box-shadow var(--hre-motion-base) var(--hre-ease-standard);
}

.hre-timeline-item:hover .hre-timeline-dot {
    transform: translateX(-50%) scale(1.25);
    box-shadow: 0 0 0 6px rgba(9, 125, 182, 0.22);
}

.hre-timeline-year {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(9, 125, 182, 0.10);
    color: var(--hre-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    margin-bottom: 12px;
}

/* ---------- Team cards: accent rail + hover lift refinement ------------ */
.hre-team-card {
    position: relative;
    overflow: hidden;
    transition:
        transform var(--hre-motion-base) var(--hre-ease-emphasized),
        box-shadow var(--hre-motion-base) var(--hre-ease-standard),
        border-color var(--hre-motion-base) var(--hre-ease-standard);
    will-change: transform;
}

.hre-team-card::before {
    /* 4-pixel brand rail on the left edge */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--hre-blue), var(--hre-navy-mid));
    transform: scaleY(0.4);
    transform-origin: top;
    transition: transform var(--hre-motion-slow) var(--hre-ease-emphasized);
}

.hre-team-card:hover::before,
.hre-team-card:focus-within::before {
    transform: scaleY(1);
}

.hre-team-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--hre-shadow-3);
    border-color: rgba(9, 125, 182, 0.25);
}

/* ---------- CTA callout polish ---------------------------------------- */
.hre-callout {
    position: relative;
    overflow: hidden;
    margin-top: 72px;
}

.hre-callout::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.10), transparent 70%);
    pointer-events: none;
}

/* ---------- Dark-mode adjustments for the OurStory additions ---------- */
:root[data-theme="dark"] .hre-story-intro h2,
:root[data-theme="system"].hre-prefers-dark .hre-story-intro h2,
:root[data-theme="dark"] .hre-section-heading h2,
:root[data-theme="system"].hre-prefers-dark .hre-section-heading h2,
:root[data-theme="dark"] .hre-story-split__copy h3,
:root[data-theme="system"].hre-prefers-dark .hre-story-split__copy h3,
:root[data-theme="dark"] .hre-story-split__copy h4,
:root[data-theme="system"].hre-prefers-dark .hre-story-split__copy h4 {
    color: var(--hre-color-text-strong);
}

:root[data-theme="dark"] .hre-story-intro .hre-eyebrow,
:root[data-theme="system"].hre-prefers-dark .hre-story-intro .hre-eyebrow,
:root[data-theme="dark"] .hre-section-heading .hre-eyebrow,
:root[data-theme="system"].hre-prefers-dark .hre-section-heading .hre-eyebrow,
:root[data-theme="dark"] .hre-timeline-year,
:root[data-theme="system"].hre-prefers-dark .hre-timeline-year {
    background: rgba(94, 163, 214, 0.16);
    color: var(--hre-color-accent);
}

:root[data-theme="dark"] .hre-story-split__media::before,
:root[data-theme="system"].hre-prefers-dark .hre-story-split__media::before {
    background: linear-gradient(135deg, rgba(94, 163, 214, 0.10), rgba(15, 23, 42, 0.30));
}

/* ---------- Reduced-motion guardrails for existing hero fade animation  */
@media (prefers-reduced-motion: reduce) {
    .hre-hero-content h1,
    .hre-hero-content p,
    .hre-hero-content > div {
        animation: none !important;
    }
    header#page-title.hre-page-title::before {
        transform: none !important;
    }
}


/* ==========================================================================
   HOME-HERO PHOTO VARIANT — overlays a subtle brand image behind the
   gradient on .hre-hero (used on CorporateHome as a quieter replacement
   for the legacy Revolution Slider).  Image opacity is deliberately low
   so the gradient + headline remain the focal point.
   ========================================================================== */
.hre-hero--home {
    position: relative;
    overflow: hidden;
}

.hre-hero--home .hre-hero-photo {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.28;
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 1;
}

.hre-hero--home::before {
    /* Extra navy gradient wash over the photo to keep copy readable */
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(15, 37, 68, 0.55) 0%, rgba(30, 58, 95, 0.35) 50%, rgba(9, 125, 182, 0.30) 100%);
    pointer-events: none;
    z-index: 1;
}

.hre-hero--home .hre-hero-content {
    position: relative;
    z-index: 2;
}


/* ==========================================================================
   CLOSING QUOTE — single-quote brand-gradient footer that replaces the
   old `.cover.parallax.hre-testimonial-section` owl+stellar pattern.
   One strong quote per page, centered, readable, no stock photo, no
   plugin dependency.  Uses the same hero gradient as .hre-hero so it
   reads as a matched bookend to the page-title banner.
   ========================================================================== */
.hre-closing-quote {
    background: linear-gradient(135deg, var(--hre-navy) 0%, var(--hre-navy-mid) 50%, var(--hre-blue) 100%);
    color: #fff;
    padding: 88px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.hre-closing-quote::before {
    /* Soft radial atmosphere to echo the page-title banner */
    content: '';
    position: absolute;
    inset: -20% -10%;
    background:
        radial-gradient(520px circle at 22% 30%, rgba(94, 163, 214, 0.22), transparent 60%),
        radial-gradient(480px circle at 82% 70%, rgba(9, 125, 182, 0.18), transparent 55%);
    pointer-events: none;
    z-index: 0;
}

.hre-closing-quote > .container,
.hre-closing-quote > * {
    position: relative;
    z-index: 1;
}

.hre-closing-quote blockquote {
    max-width: 68ch;
    margin: 0 auto;
    font-size: clamp(19px, 2.2vw, 26px);
    line-height: 1.5;
    color: #fff;
    font-style: normal;
    font-weight: 500;
    letter-spacing: -0.005em;
    border: 0;
    padding: 0;
}

.hre-closing-quote blockquote::before {
    content: '\201C';
    display: block;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 96px;
    line-height: 0.6;
    color: rgba(255, 255, 255, 0.28);
    margin-bottom: 28px;
}

.hre-closing-quote cite {
    display: inline-block;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
}

.hre-closing-quote cite strong {
    color: #fff;
    font-weight: 700;
}

@media (max-width: 767px) {
    .hre-closing-quote { padding: 64px 20px; }
    .hre-closing-quote blockquote::before { font-size: 72px; margin-bottom: 20px; }
}


/* ==========================================================================
   TESTIMONIAL CARD — reusable quote card with brand accent rail,
   large decorative open-quote mark, and hover lift.  Used on the
   Testimonials page grid and anywhere else a customer quote needs
   AAA treatment.
   ========================================================================== */
.hre-testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 40px;
}

@media (max-width: 991px) {
    .hre-testimonial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .hre-testimonial-grid { grid-template-columns: 1fr; }
}

.hre-testimonial-card {
    position: relative;
    padding: 36px 28px 28px;
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(30, 58, 95, 0.06);
    transition:
        transform var(--hre-motion-base) var(--hre-ease-emphasized),
        box-shadow var(--hre-motion-base) var(--hre-ease-standard),
        border-color var(--hre-motion-base) var(--hre-ease-standard);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hre-testimonial-card::before {
    /* brand rail on left edge */
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--hre-blue), var(--hre-navy-mid));
    transform: scaleY(0.35);
    transform-origin: top;
    transition: transform var(--hre-motion-slow) var(--hre-ease-emphasized);
}

.hre-testimonial-card::after {
    /* decorative open-quote mark */
    content: '\201C';
    position: absolute;
    top: -8px;
    right: 18px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 120px;
    line-height: 1;
    color: var(--hre-blue);
    opacity: 0.12;
    pointer-events: none;
    user-select: none;
}

.hre-testimonial-card:hover,
.hre-testimonial-card:focus-within {
    transform: translateY(-6px);
    box-shadow: var(--hre-shadow-3);
    border-color: rgba(9, 125, 182, 0.25);
}

.hre-testimonial-card:hover::before,
.hre-testimonial-card:focus-within::before {
    transform: scaleY(1);
}

.hre-testimonial-card blockquote,
.hre-testimonial-card p {
    font-size: 15px;
    line-height: 1.65;
    color: var(--hre-text);
    margin: 0 0 20px;
    font-style: normal;
    flex: 1 1 auto;
}

.hre-testimonial-card cite,
.hre-testimonial-card .hre-testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-style: normal;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--hre-color-divider);
}

.hre-testimonial-card .hre-testimonial-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--hre-navy);
    letter-spacing: -0.01em;
}

.hre-testimonial-card .hre-testimonial-role {
    font-size: 13px;
    font-weight: 500;
    color: var(--hre-blue);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* Dark mode — match team-card dark treatment */
:root[data-theme="dark"] .hre-testimonial-card,
:root[data-theme="system"].hre-prefers-dark .hre-testimonial-card {
    background: var(--hre-color-surface-raised);
    border-color: var(--hre-color-border);
}

:root[data-theme="dark"] .hre-testimonial-card blockquote,
:root[data-theme="dark"] .hre-testimonial-card p,
:root[data-theme="system"].hre-prefers-dark .hre-testimonial-card blockquote,
:root[data-theme="system"].hre-prefers-dark .hre-testimonial-card p {
    color: var(--hre-color-text);
}

:root[data-theme="dark"] .hre-testimonial-card .hre-testimonial-name,
:root[data-theme="system"].hre-prefers-dark .hre-testimonial-card .hre-testimonial-name {
    color: var(--hre-color-text-strong);
}

:root[data-theme="dark"] .hre-testimonial-card .hre-testimonial-role,
:root[data-theme="system"].hre-prefers-dark .hre-testimonial-card .hre-testimonial-role {
    color: var(--hre-color-accent);
}

:root[data-theme="dark"] .hre-testimonial-card::after,
:root[data-theme="system"].hre-prefers-dark .hre-testimonial-card::after {
    color: var(--hre-color-accent);
    opacity: 0.18;
}

/* ---- Feature variant: single centered pull-quote (CorporateHome) ---- */
.hre-testimonial-feature {
    padding-top: 60px;
    padding-bottom: 60px;
}

.hre-testimonial-card--feature {
    max-width: 760px;
    margin: 40px auto 0;
    padding: 56px 56px 40px;
}

.hre-testimonial-card--feature::after {
    font-size: 200px;
    top: -20px;
    right: 28px;
}

.hre-testimonial-card--feature blockquote {
    font-size: 22px;
    line-height: 1.55;
}

@media (max-width: 640px) {
    .hre-testimonial-card--feature { padding: 40px 28px 28px; }
    .hre-testimonial-card--feature blockquote { font-size: 18px; }
}


/* ==========================================================================
   CORPORATE HOME — cinematic cycling hero + count-up stats.
   A custom-built 4-slide cross-fading hero with synced text transitions,
   Ken Burns slow zoom, pause-on-hover, dot navigation, and full reduced-
   motion support.  Replaces the static hero after feedback that the page
   needed back the cycling "feel" of the legacy Revolution Slider — but
   without the plugin surface area.
   ========================================================================== */

/* ---- Hero shell: taller, no blue wash, photo is the star ---- */
.hre-hero {
    min-height: 680px;
    padding: 120px 24px 140px;
}

.hre-hero--home {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: #0b1220; /* deep navy fallback while images load */
}

/* Each slide is a full-bleed absolute layer; JS swaps .is-active.
   Pre-JS fallback: before the hero initializes we paint the first slide
   at full opacity so the user sees the photo immediately even if JS is
   slow to parse / the vendor bundle is still downloading.  The JS sets
   data-hre-home-hero-ready on the root as its very first step, at which
   point the pre-JS rule below no-ops and .is-active takes over. */
.hre-home-slide {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0;
    transition: opacity 1200ms cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity;
    pointer-events: none;
}

.hre-hero--home:not([data-hre-home-hero-ready]) .hre-home-slide:first-child {
    opacity: 1;
}

.hre-home-slide.is-active {
    opacity: 1;
}

.hre-home-slide__photo {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    will-change: transform;
    /* Ken Burns slow zoom — active slide gets the animation */
    transform: scale(1);
    transition: transform 8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.hre-home-slide.is-active .hre-home-slide__photo {
    animation: hre-kenburns 14s ease-out forwards;
}

@keyframes hre-kenburns {
    0%   { transform: scale(1) translate3d(0, 0, 0); }
    100% { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}

/* No overlay on the photos — the pictures render completely clear.
   Text readability comes from heavy layered text-shadows on h1/p and
   a glass-morphism pill for the eyebrow. */

/* Neutralize the legacy overlay + legacy photo rules so we can stack
   multiple slides instead. */
.hre-hero--home::before { content: none; }
.hre-hero--home .hre-hero-photo { display: none; }

.hre-hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 960px;
    text-align: center;
    /* Stack every text-group in the same grid cell so the cell sizes to
       the TALLEST slide. Without this, slide 4's 2-line h1 grew the hero
       by ~40px and the stats bar shifted each time the carousel cycled. */
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
}

/* ---- Animated text beats ----
   Each of eyebrow, h1, p, CTAs gets a stagger.  JS adds `.is-showing`
   to the current slide's text-group.

   All text groups share grid-area: 1/1 and stay in layout (visibility,
   not display) so the grid cell computes height from the tallest slide
   and the hero never grows when slide 4 (2-line h1) becomes active.

   Pre-JS fallback: show the first text-group with the normal entrance
   animation so it's visible on first paint. Once JS flips
   data-hre-home-hero-ready on the root, .is-showing takes over. */
.hre-home-text {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.hre-hero--home:not([data-hre-home-hero-ready]) .hre-home-text:first-of-type,
.hre-home-text.is-showing {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    animation: hre-text-enter 900ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes hre-text-enter {
    0%   { opacity: 0; transform: translate3d(0, 16px, 0) scale(0.98); }
    100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

.hre-home-text .hre-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.6px;
    text-transform: uppercase;
    color: #fff;
    background: rgba(7, 13, 26, 0.55);
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    padding: 10px 22px;
    border-radius: 999px;
    margin-bottom: 28px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* Rotator variant: pill width is locked to the widest label via inline-grid
   stacking (all items occupy one cell), so cycling labels do not cause
   horizontal jitter.  Each .hre-rotator-item cross-fades; visibility on
   inactive items hides them from screen readers and pointer events while
   opacity handles the visual transition. */
.hre-home-text .hre-eyebrow--rotator {
    display: inline-grid;
    grid-template-areas: "rotator";
    align-items: center;
    justify-items: center;
}

.hre-home-text .hre-eyebrow--rotator .hre-rotator-item {
    grid-area: rotator;
    visibility: hidden;
    opacity: 0;
    transition: opacity 380ms ease, visibility 0s linear 380ms;
    white-space: nowrap;
}

.hre-home-text .hre-eyebrow--rotator .hre-rotator-item.is-active {
    visibility: visible;
    opacity: 1;
    transition: opacity 380ms ease, visibility 0s linear 0s;
}

@media (prefers-reduced-motion: reduce) {
    .hre-home-text .hre-eyebrow--rotator .hre-rotator-item { transition: none; }
}

.hre-home-text h1 {
    color: #fff !important;
    font-size: clamp(40px, 5.2vw, 72px) !important;
    font-weight: 800 !important;
    line-height: 1.05 !important;
    letter-spacing: -0.035em !important;
    margin: 0 0 28px !important;
    /* Simplified shadow stack — was 3 text-shadows + 2 drop-shadow filter
       passes, which forced an expensive compositor pass on every frame of
       the Ken Burns zoom.  This pair (crisp 2px shadow for legibility + a
       soft 18px halo for photo separation) reads the same visually and
       cuts the per-frame paint cost dramatically. */
    text-shadow:
        0 2px 6px rgba(0, 0, 0, 0.7),
        0 4px 18px rgba(0, 0, 0, 0.45);
    text-wrap: balance;
}

.hre-home-text h1 .hre-brand-ease {
    color: var(--hre-brand-blue-400, #5ea3d6);
    font-weight: 800;
    text-shadow:
        0 1px 0 rgba(0, 0, 0, 0.65),
        0 2px 6px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(9, 125, 182, 0.8),
        0 0 80px rgba(94, 163, 214, 0.3);
}

.hre-home-text p {
    color: #fff;
    font-size: clamp(17px, 1.4vw, 20px);
    font-weight: 500;
    line-height: 1.6;
    max-width: 58ch;
    margin: 0 auto 44px;
    /* Matching simplification — one crisp + one soft shadow, no filter. */
    text-shadow:
        0 2px 5px rgba(0, 0, 0, 0.7),
        0 4px 16px rgba(0, 0, 0, 0.45);
}

.hre-home-text .hre-home-ctas {
    display: inline-flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Kicker line sitting under the CTA row — italic, slightly smaller and
   softer than the lead paragraph so the CTAs read as the action and this
   line reads as the closing thought. */
.hre-home-text p.hre-hero-kicker {
    margin: 28px auto 0;
    font-size: clamp(15px, 1.15vw, 17px);
    font-style: italic;
    font-weight: 500;
    opacity: 0.92;
    max-width: 56ch;
}

/* Stagger the children's entrance — scoped to .is-showing (and the pre-JS
   first-of-type fallback) so the animation re-fires when the active slide
   changes, not just on initial page load. */
.hre-hero--home:not([data-hre-home-hero-ready]) .hre-home-text:first-of-type .hre-eyebrow,
.hre-home-text.is-showing .hre-eyebrow {
    animation: hre-text-enter 700ms cubic-bezier(0.22, 0.61, 0.36, 1) 0ms both;
}
.hre-hero--home:not([data-hre-home-hero-ready]) .hre-home-text:first-of-type h1,
.hre-home-text.is-showing h1 {
    animation: hre-text-enter 800ms cubic-bezier(0.22, 0.61, 0.36, 1) 120ms both;
}
.hre-hero--home:not([data-hre-home-hero-ready]) .hre-home-text:first-of-type p,
.hre-home-text.is-showing p {
    animation: hre-text-enter 800ms cubic-bezier(0.22, 0.61, 0.36, 1) 220ms both;
}
.hre-hero--home:not([data-hre-home-hero-ready]) .hre-home-text:first-of-type .hre-home-ctas,
.hre-home-text.is-showing .hre-home-ctas {
    animation: hre-text-enter 800ms cubic-bezier(0.22, 0.61, 0.36, 1) 320ms both;
}

.hre-home-text .hre-btn-primary,
.hre-home-text .hre-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 42px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.3px;
    border-radius: 12px;
    text-decoration: none;
    transition: transform var(--hre-motion-base) var(--hre-ease-emphasized),
                box-shadow var(--hre-motion-base) var(--hre-ease-standard),
                background var(--hre-motion-base) var(--hre-ease-standard),
                border-color var(--hre-motion-base) var(--hre-ease-standard);
    will-change: transform;
}

/* Inverse button pair: LEFT is white with navy text, RIGHT is solid
   navy with white text. Uses --hre-navy (which is locked to navy in
   both light and dark themes — see hre-design-system.css) instead of
   --hre-color-brand (which flips lighter in dark mode and would leave
   the button text invisible against the navy hero backdrop). */
.hre-home-text .hre-btn-primary {
    background: #fff;
    color: var(--hre-navy);
    border: 2px solid #fff;
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.38),
        0 2px 6px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    text-shadow: none;
}

.hre-home-text .hre-btn-primary:hover,
.hre-home-text .hre-btn-primary:focus-visible {
    transform: translateY(-2px);
    background: #fff;
    color: var(--hre-navy-mid);
    box-shadow:
        0 14px 36px rgba(0, 0, 0, 0.45),
        0 4px 10px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    text-decoration: none;
}

.hre-home-text .hre-btn-outline {
    background: var(--hre-navy);
    color: #fff;
    border: 2px solid var(--hre-navy);
    box-shadow:
        0 10px 28px rgba(9, 125, 182, 0.45),
        0 2px 6px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: none;
}

.hre-home-text .hre-btn-outline:hover,
.hre-home-text .hre-btn-outline:focus-visible {
    transform: translateY(-2px);
    background: var(--hre-navy-mid);
    border-color: var(--hre-navy-mid);
    color: #fff;
    box-shadow:
        0 14px 36px rgba(9, 125, 182, 0.55),
        0 4px 10px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    text-decoration: none;
}

/* ---- Slide pagination (dots) + progress line ---- */
.hre-home-dots {
    position: absolute;
    left: 0; right: 0;
    bottom: 32px;
    z-index: 4;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
}

.hre-home-dot {
    width: 28px;
    height: 3px;
    padding: 0;
    border: 0;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: width var(--hre-motion-base) var(--hre-ease-emphasized),
                background var(--hre-motion-base) var(--hre-ease-standard);
}

.hre-home-dot[aria-selected="true"] {
    width: 64px;
    background: rgba(255, 255, 255, 0.25);
}

.hre-home-dot[aria-selected="true"]::after {
    /* Progress bar fills while slide is active */
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    background: #fff;
    transform-origin: left;
    animation: hre-dot-progress var(--hre-home-slide-duration, 6000ms) linear both;
}

@keyframes hre-dot-progress {
    0%   { transform: scaleX(0); }
    100% { transform: scaleX(1); }
}

.hre-home-dot:hover:not([aria-selected="true"]) {
    background: rgba(255, 255, 255, 0.5);
}

/* ---- Visually-hidden live region for SR announcements ---- */
.hre-home-live {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---- Reduced motion: hold one slide, kill Ken Burns + transitions ---- */
@media (prefers-reduced-motion: reduce) {
    .hre-home-slide,
    .hre-home-slide.is-active .hre-home-slide__photo,
    .hre-home-text.is-showing,
    .hre-home-text .hre-eyebrow,
    .hre-home-text h1,
    .hre-home-text p,
    .hre-home-text .hre-home-ctas,
    .hre-home-dot[aria-selected="true"]::after {
        animation: none !important;
        transition: none !important;
    }
}


/* ==========================================================================
   CORPORATE HOME — downstream section polish
   Stats bar gains icons + hover, CTA banner gains punch + icon, Current
   Clients gets an image-panel rework.  All additive overrides.
   ========================================================================== */

/* ---- Stats section: icons above each number + subtle shine ---- */
.hre-stats-section {
    position: relative;
    overflow: hidden;
    padding: 72px 0;
    margin: 0; /* tighter against hero */
}

.hre-stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(600px circle at 20% 30%, rgba(94, 163, 214, 0.18), transparent 55%),
        radial-gradient(500px circle at 85% 70%, rgba(255, 255, 255, 0.08), transparent 55%);
    pointer-events: none;
}

.hre-stats-section > .container {
    position: relative;
    z-index: 1;
}

/* Modern glass-card stat tile. Each card is a self-contained surface with
   an icon on the left and a number/label pair stacked on the right.
   Grid named-areas + align-content: center keep the text block centered
   vertically within the card. The card fills 100% of the row height, and
   the label row reserves space for 2 lines of copy — so a card whose
   label wraps ("Employee Records") is the same height as a card whose
   label doesn't, and the NUMBER sits at the same optical position across
   all four tiles. */
.hre-stat-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
        "icon number"
        "icon label";
    column-gap: 16px;
    row-gap: 4px;
    align-content: center;
    text-align: left;
    padding: 22px 22px;
    min-height: 144px;
    height: 100%;
    position: relative;
    border-radius: 18px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px) saturate(130%);
    -webkit-backdrop-filter: blur(10px) saturate(130%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 18px 32px -20px rgba(0, 0, 0, 0.5);
    transition:
        transform var(--hre-motion-base) var(--hre-ease-emphasized),
        box-shadow var(--hre-motion-base) var(--hre-ease-standard),
        border-color var(--hre-motion-base) var(--hre-ease-standard);
    -webkit-font-smoothing: antialiased;
}

/* Retire the legacy vertical divider — each card is now its own surface. */
.hre-stat-item::before { display: none; }

.hre-stat-item:hover {
    transform: translateY(-4px);
    border-color: rgba(94, 163, 214, 0.45);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 28px 56px -18px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(94, 163, 214, 0.22),
        0 0 48px -12px rgba(94, 163, 214, 0.35);
}

.hre-stat-icon {
    grid-area: icon;
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0;
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(94, 163, 214, 0.38) 0%, rgba(30, 58, 95, 0.55) 100%);
    color: #fff;
    font-size: 22px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 6px 18px rgba(0, 0, 0, 0.28),
        0 0 28px -10px rgba(94, 163, 214, 0.55);
    transition: transform var(--hre-motion-base) var(--hre-ease-emphasized);
}

.hre-stat-item:hover .hre-stat-icon {
    transform: rotate(-6deg) scale(1.06);
}

.hre-stat-number {
    grid-area: number;
    align-self: end;
    /* Sized to comfortably fit 7-digit grouped numbers like "602,410"
       inside a 4-up Bootstrap column. The 4-up tile content area (after
       icon + gap + padding) is ~149px at 1440px viewport, so the cap has
       to keep "602,410" under that. Was clamp(36px, 3.6vw, 50px) when
       all four headlines were short tokens like "700+" / "100K+". */
    font-size: clamp(26px, 2.6vw, 36px) !important;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    /* Allow tabular figures so "5,379" and "602,410" align optically
       across the four tiles. */
    font-variant-numeric: tabular-nums;
    min-width: 0;
    white-space: nowrap;
}

.hre-stat-label {
    grid-area: label;
    align-self: start;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    letter-spacing: 1.6px !important;
    line-height: 1.3;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82) !important;
    margin-top: 2px;
    /* Reserve 2 lines of label height on every card so 1-line labels
       don't produce a shorter text block than 2-line labels. Keeps the
       number at a consistent optical position across all four tiles. */
    min-height: 2.6em;
}

/* Desktop row: replace Bootstrap's float-based grid with a flex row so
   the 4 cards share equal widths, sit on a real gap, and stay perfectly
   aligned. Mobile / tablet keeps the Bootstrap float cascade untouched. */
@media (min-width: 992px) {
    .hre-stats-section .row {
        display: flex;
        gap: 18px;
        margin-left: -9px;
        margin-right: -9px;
    }
    .hre-stats-section .row > [class*="col-"] {
        float: none;
        flex: 1 1 0;
        width: auto;
        min-width: 0;
        padding-left: 0;
        padding-right: 0;
    }
}

/* Tablet (col-sm-6 wraps to 2-up): give each card vertical breathing room. */
@media (max-width: 991px) {
    .hre-stats-section .row > [class*="col-"] {
        margin-bottom: 14px;
    }
    .hre-stats-section .row > [class*="col-"]:last-child {
        margin-bottom: 0;
    }
}

/* Phones: scale the card so it reads well at full width. */
@media (max-width: 767px) {
    .hre-stat-item {
        padding: 20px 20px;
        column-gap: 16px;
        border-radius: 16px;
    }
    .hre-stat-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
        border-radius: 12px;
    }
    .hre-stat-number {
        font-size: 38px !important;
    }
    .hre-stat-label {
        font-size: 11.5px !important;
        letter-spacing: 1.4px !important;
    }
}


/* ==========================================================================
   BY THE NUMBERS — supporting metrics under the homepage hero/stats bar
   3 grouped cards: Toolset, COBRA, ACA. Design uses surface tokens so it
   re-skins automatically in dark mode. Mirrors the .hre-feature-card visual
   weight without competing with the gradient stats-bar above.
   ========================================================================== */
.hre-numbers {
    margin-top: 64px;
    margin-bottom: 32px;
}

.hre-numbers-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.hre-numbers-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--hre-white);
    border: 1px solid var(--hre-border);
    border-radius: var(--hre-radius);
    padding: 28px 28px 24px;
    box-shadow: var(--hre-shadow);
    transition: var(--hre-transition);
}

.hre-numbers-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--hre-shadow-lg);
    border-color: var(--hre-blue);
}

.hre-numbers-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: var(--hre-radius) var(--hre-radius) 0 0;
    background: linear-gradient(90deg, var(--hre-navy) 0%, var(--hre-blue) 50%, var(--hre-blue-light) 100%);
}

.hre-numbers-card__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--hre-border);
}

.hre-numbers-card__head h4 {
    margin: 0 !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em;
    color: var(--hre-text) !important;
}

.hre-numbers-icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--hre-navy) 0%, var(--hre-blue) 100%);
    color: #fff;
    font-size: 19px;
    box-shadow: 0 6px 16px rgba(30, 58, 95, 0.22);
}

.hre-numbers-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1 1 auto;
}

.hre-numbers-list li {
    display: grid;
    grid-template-columns: minmax(0, auto) 1fr;
    align-items: baseline;
    gap: 16px;
    padding: 4px 0;
}

.hre-numbers-figure {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--hre-navy);
    font-variant-numeric: tabular-nums;
    min-width: 5ch;
}

:root[data-theme="dark"] .hre-numbers-figure,
:root[data-theme="system"].hre-prefers-dark .hre-numbers-figure {
    color: var(--hre-blue-light);
}

.hre-numbers-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--hre-text-light);
    line-height: 1.35;
}

.hre-numbers-note {
    margin: 18px 0 0 !important;
    padding-top: 14px;
    border-top: 1px solid var(--hre-border);
    font-size: 13px !important;
    color: var(--hre-text-light) !important;
    line-height: 1.5;
}

@media (max-width: 991px) {
    .hre-numbers-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

@media (max-width: 575px) {
    .hre-numbers-card {
        padding: 22px 20px 20px;
    }
    .hre-numbers-figure {
        font-size: 24px;
        min-width: 4.5ch;
    }
    .hre-numbers-label {
        font-size: 13px;
    }
}


/* ---- CTA banner: bigger feel, icon, hover ---- */
.hre-cta-banner {
    position: relative;
    overflow: hidden;
    padding: 72px 40px !important;
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(30, 58, 95, 0.22);
    margin: 48px 0;
}

.hre-cta-banner::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(94, 163, 214, 0.28) 0%, transparent 70%);
    pointer-events: none;
}

.hre-cta-banner h3 {
    font-size: clamp(24px, 2.6vw, 32px) !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em;
    color: #fff !important;
    margin-bottom: 12px !important;
    position: relative;
    z-index: 1;
}

.hre-cta-banner p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.88) !important;
    margin-bottom: 28px !important;
    position: relative;
    z-index: 1;
}

.hre-cta-banner .hre-btn-cta {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 42px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: var(--hre-navy) !important;
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 1) !important;
    border: 2px solid #fff !important;
    transition: transform var(--hre-motion-base) var(--hre-ease-emphasized),
                box-shadow var(--hre-motion-base) var(--hre-ease-standard),
                color var(--hre-motion-base) var(--hre-ease-standard);
}

.hre-cta-banner .hre-btn-cta:hover,
.hre-cta-banner .hre-btn-cta:focus-visible {
    transform: translateY(-2px);
    color: var(--hre-navy-mid) !important;
    box-shadow:
        0 14px 36px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 1) !important;
}


/* ---- Current Clients: polished image frame + upgraded button ---- */
.hre-clients-section {
    padding: 88px 0 !important;
    position: relative;
    overflow: hidden;
}

.hre-clients-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(600px circle at 10% 20%, rgba(94, 163, 214, 0.15), transparent 60%),
        radial-gradient(500px circle at 90% 80%, rgba(9, 125, 182, 0.12), transparent 60%);
    pointer-events: none;
}

.hre-clients-section > .container {
    position: relative;
    z-index: 1;
}

.hre-clients-section h2 {
    font-size: clamp(30px, 3.2vw, 40px) !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    color: #fff !important;
    margin-bottom: 20px !important;
    line-height: 1.15 !important;
}

.hre-clients-section p {
    font-size: 16px !important;
    line-height: 1.7 !important;
}

.hre-clients-section .hre-btn-primary {
    display: inline-flex !important;
    align-items: center !important;
    padding: 16px 38px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: var(--hre-navy) !important;
    border: 2px solid #fff !important;
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 1) !important;
    transition: transform var(--hre-motion-base) var(--hre-ease-emphasized),
                box-shadow var(--hre-motion-base) var(--hre-ease-standard),
                color var(--hre-motion-base) var(--hre-ease-standard) !important;
}

.hre-clients-section .hre-btn-primary:hover,
.hre-clients-section .hre-btn-primary:focus-visible {
    transform: translateY(-2px) !important;
    color: var(--hre-navy-mid) !important;
    box-shadow:
        0 14px 36px rgba(0, 0, 0, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 1) !important;
}

.hre-clients-section .img-responsive {
    border-radius: 20px !important;
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.45),
        0 10px 24px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    transition: transform 600ms cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
}

.hre-clients-section .img-responsive:hover {
    transform: translateY(-6px) rotate(-0.5deg);
}

/* ---- Welcome section: bolder H1, tighter rhythm ---- */
.hre-welcome {
    padding: 96px 0 40px;
}

.hre-welcome h1,
.hre-welcome h1.hre-section-title {
    font-size: clamp(32px, 3.4vw, 44px) !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 20px !important;
}

.hre-welcome h1 .subtitle {
    font-size: clamp(16px, 1.3vw, 19px);
    font-weight: 400;
    display: block;
    margin-top: 12px;
    color: var(--hre-text-light);
    letter-spacing: 0;
}

.hre-welcome .lead {
    font-size: 17px !important;
    line-height: 1.7 !important;
    max-width: 64ch;
    margin-left: auto;
    margin-right: auto;
}

.hre-welcome .hre-tagline {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--hre-blue);
    margin: 24px 0 8px;
}

/* ---- Feature grid: CSS Grid auto-fit so 8 cards flow elegantly ---- */
.hre-welcome .hre-card-row,
.hre-welcome .row.hre-card-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.hre-welcome .hre-card-row-centered {
    /* Legacy 2-card centered row is no longer needed — grid handles it. */
    display: none;
}

/* Fold the orphan 2-card row into a single 4x2 grid by promoting them
   from rows 1+2+3 (3+3+2) to one unified 8-item grid when rendered
   via Bootstrap column wrappers. */
.hre-welcome .hre-card-row > [class*="col-"] {
    width: auto;
    min-width: 0;
    padding: 0;
    margin: 0;
    float: none;
}

@media (max-width: 1199px) {
    .hre-welcome .hre-card-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
    .hre-welcome .hre-card-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
    .hre-welcome .hre-card-row { grid-template-columns: 1fr; }
}

/* ---- Feature card: larger icon, slightly bigger type ---- */
.hre-feature-card {
    padding: 32px 24px;
}

.hre-feature-card .hre-feature-icon {
    width: 64px;
    height: 64px;
    min-height: 64px;
    font-size: 26px;
    margin-bottom: 22px;
}

.hre-feature-card h4 {
    font-size: 17px !important;
    font-weight: 700 !important;
    margin-bottom: 10px;
}

.hre-feature-card p {
    font-size: 14.5px;
    line-height: 1.6;
}


/* ---- Reduced-motion override for the pumped-up hero photo parallax ---- */
@media (prefers-reduced-motion: reduce) {
    .hre-hero--home .hre-hero-photo {
        transform: none !important;
    }
}


/* ==========================================================================
   CORPORATE HOME — feature-card accent rail + icon highlight
   A thin brand-gradient line slides in along the top edge on hover,
   echoing the brand rail used on .hre-testimonial-card so the two
   card primitives feel like part of the same system.  The icon chip
   also picks up a subtle inner highlight in both themes.
   ========================================================================== */
.hre-welcome .hre-feature-card {
    position: relative;
    overflow: hidden;
}

.hre-welcome .hre-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--hre-blue) 0%, var(--hre-navy-mid) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--hre-motion-slow) var(--hre-ease-emphasized);
    pointer-events: none;
}

.hre-welcome .hre-feature-card:hover::before,
.hre-welcome .hre-feature-card:focus-within::before {
    transform: scaleX(1);
}

.hre-welcome .hre-feature-card .hre-feature-icon {
    /* Inner highlight + subtle outer glow give the chip depth in both
       themes without needing separate dark-mode rules. */
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 6px 18px rgba(9, 125, 182, 0.22);
    transition: transform var(--hre-motion-base) var(--hre-ease-emphasized),
                box-shadow var(--hre-motion-base) var(--hre-ease-standard);
}

.hre-welcome .hre-feature-card:hover .hre-feature-icon {
    transform: translateY(-2px) scale(1.03);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.32),
        0 12px 28px rgba(9, 125, 182, 0.32);
}


/* ==========================================================================
   CORPORATE HOME — CTA banner button affordance
   A right-chevron glyph after the button label hints clickability and
   also slides a touch on hover.  Uses a pseudo-element so no markup
   change is required.
   ========================================================================== */
.hre-cta-banner .hre-btn-cta::after {
    content: '\2192';
    display: inline-block;
    margin-left: 10px;
    font-size: 18px;
    line-height: 1;
    transition: transform var(--hre-motion-base) var(--hre-ease-emphasized);
}

.hre-cta-banner .hre-btn-cta:hover::after,
.hre-cta-banner .hre-btn-cta:focus-visible::after {
    transform: translateX(4px);
}


/* ==========================================================================
   CORPORATE HOME — Welcome H1 gradient accent underline
   A tight brand-gradient underline under the H1 visually anchors the
   section title and matches the hero's gradient treatment of "Easy".
   ========================================================================== */
.hre-welcome h1.hre-section-title {
    position: relative;
    padding-bottom: 18px;
}

.hre-welcome h1.hre-section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 64px;
    height: 3px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--hre-blue) 0%, var(--hre-navy-mid) 100%);
    border-radius: 2px;
    opacity: 0.85;
}


/* ==========================================================================
   CORPORATE HOME — below-fold paint skipping
   content-visibility: auto lets the browser skip layout + paint for any
   section that isn't on screen yet, which materially speeds up first
   paint when there are reveal-on-scroll animations waiting further down.
   contain-intrinsic-size reserves a plausible block height so the
   scrollbar and page length don't jump when sections hydrate.
   ========================================================================== */
.hre-welcome,
.hre-cta-banner,
.hre-clients-section {
    content-visibility: auto;
}

.hre-welcome {
    contain-intrinsic-size: auto 1200px;
}

.hre-cta-banner {
    contain-intrinsic-size: auto 280px;
}

.hre-clients-section {
    contain-intrinsic-size: auto 520px;
}


/* ==========================================================================
   CORPORATE HOME — short-viewport treatment
   On desktop widths with a short viewport (common laptops like 1366×768
   and 1440×900), the default 680px hero + 120/140 padding pushes the
   stats bar fully below the fold. These height-based queries shave the
   hero's decorative padding so the stats bar peeks on load — without
   using calc(100vh - …) which clipped content in the earlier attempt
   (see commits 40ec9bc0 -> 5dcf194a).
   Scoped to min-width: 992px so the existing mobile rules
   (max-width: 991px / 767px / 480px) stay authoritative on smaller
   widths.
   ========================================================================== */
@media (max-height: 960px) and (min-width: 992px) {
    .hre-hero {
        min-height: 480px;
        padding: 64px 24px 72px;
    }
    .hre-home-text .hre-eyebrow { margin-bottom: 20px; }
    .hre-home-text h1 {
        font-size: clamp(36px, 4.6vw, 60px) !important;
        margin: 0 0 20px !important;
    }
    .hre-home-text p {
        font-size: clamp(15px, 1.2vw, 18px);
        margin: 0 auto 28px;
    }
    .hre-stats-section {
        padding: 44px 0;
    }
}

@media (max-height: 820px) and (min-width: 992px) {
    .hre-hero {
        min-height: 420px;
        padding: 48px 24px 56px;
    }
    .hre-home-text .hre-eyebrow { margin-bottom: 14px; padding: 8px 18px; font-size: 12px; }
    .hre-home-text h1 {
        font-size: clamp(32px, 4vw, 52px) !important;
        margin: 0 0 16px !important;
    }
    .hre-home-text p {
        font-size: clamp(14px, 1.1vw, 17px);
        margin: 0 auto 22px;
    }
    .hre-home-text .hre-btn-primary,
    .hre-home-text .hre-btn-outline {
        padding: 14px 32px;
    }
    .hre-stats-section {
        padding: 34px 0;
    }
    .hre-stat-item {
        padding: 18px 18px;
    }
    .hre-stat-number {
        font-size: clamp(32px, 3.2vw, 44px) !important;
    }
}

@media (max-height: 720px) and (min-width: 992px) {
    .hre-hero {
        min-height: 360px;
        padding: 32px 24px 40px;
    }
    .hre-home-text .hre-eyebrow { margin-bottom: 10px; padding: 6px 14px; font-size: 11px; }
    .hre-home-text h1 {
        font-size: clamp(28px, 3.4vw, 44px) !important;
        margin: 0 0 12px !important;
    }
    .hre-home-text p {
        font-size: 14px;
        margin: 0 auto 16px;
    }
    .hre-home-text .hre-btn-primary,
    .hre-home-text .hre-btn-outline {
        padding: 12px 26px;
        font-size: 14px;
    }
    .hre-stats-section {
        padding: 24px 0;
    }
    .hre-stat-item {
        padding: 14px 16px;
        column-gap: 14px;
    }
    .hre-stat-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
        border-radius: 12px;
    }
    .hre-stat-number {
        font-size: clamp(26px, 2.6vw, 36px) !important;
    }
    .hre-stat-label {
        font-size: 11px !important;
        letter-spacing: 1.2px !important;
    }
}

/* ==========================================================================
   FORM ALERTS — success / error banners on Corporate forms
   --------------------------------------------------------------------------
   Added 2026-08-24. ContactUs used bare Bootstrap `.alert-success`, which is a
   light-theme component. Measured on the DEFAULT theme (data-theme="system"
   with .hre-prefers-dark): the box stayed pale green rgb(210,235,184) while the
   <h4> inside picked up a dark-theme rule and went rgb(226,232,240). That is a
   contrast ratio of roughly 1.2:1 — effectively invisible.

   Nobody forgot to theme it. Someone themed the heading and not the box around
   it, which is worse than never touching it, because a half-converted component
   stops being internally consistent.

   ⛔ Both selectors are required on every dark rule. [data-theme="dark"] alone
   misses the DEFAULT setting, which is data-theme="system" + .hre-prefers-dark.
   Every required-field star in the app was grey for two weeks because of exactly
   this omission.
   ========================================================================== */

.hre-form-alert {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    margin: 0 0 24px;
    border-radius: var(--hre-radius-sm);
    border: 1px solid transparent;
    border-left-width: 4px;
    font-size: 15px;
    line-height: 1.55;
    text-align: left;
}

.hre-form-alert__icon {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin-top: 1px;
}

.hre-form-alert__body { flex: 1 1 auto; min-width: 0; }

/* The old markup used an <h4>, which inherits the global
   `h4 { color: var(--hre-navy) !important }` rule and its dark-theme override.
   Alert copy is body text, so it is a <p> now and colour comes from the alert. */
.hre-form-alert__title {
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 2px;
    color: inherit;
}

.hre-form-alert p { margin: 0; color: inherit; }
.hre-form-alert__detail { opacity: .88; }

/* ---- success: light ---- */
.hre-form-alert--success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    border-left-color: #059669;
    color: #065f46;
}

/* ---- error: light ---- */
.hre-form-alert--error {
    background: #fef2f2;
    border-color: #fecaca;
    border-left-color: #dc2626;
    color: #991b1b;
}

/* ---- dark. BOTH selectors, always. Background and foreground move together. ---- */
:root[data-theme="dark"] .hre-form-alert--success,
:root[data-theme="system"].hre-prefers-dark .hre-form-alert--success {
    background: #0d2a20;
    border-color: #1c5b45;
    border-left-color: #34d399;
    color: #a7f3d0;
}

:root[data-theme="dark"] .hre-form-alert--error,
:root[data-theme="system"].hre-prefers-dark .hre-form-alert--error {
    background: #2c1416;
    border-color: #6b2229;
    border-left-color: #f87171;
    color: #fecaca;
}

/* The ValidationSummary renders its own markup and cannot take these classes,
   so it keeps Bootstrap's .alert-danger — themed here for the same reason. */
:root[data-theme="dark"] .hre-contact-form .alert-danger,
:root[data-theme="system"].hre-prefers-dark .hre-contact-form .alert-danger {
    background: #2c1416;
    border-color: #6b2229;
    color: #fecaca;
}
:root[data-theme="dark"] .hre-contact-form .alert-danger h4,
:root[data-theme="system"].hre-prefers-dark .hre-contact-form .alert-danger h4 {
    color: #fecaca !important;   /* beats the global h4 navy !important */
    font-size: 15px;
}
