:root {
    --primary: #8c7421;
    --primary-rgb: 140, 116, 33;
    --secondary: #0b5ed7;
    --accent: #fbb03b;
    --dark: #07122f;
    --light: #f8f9fc;
    --surface: #ffffff;
    --muted: #6c7a8d;
    --shadow: 0 25px 45px rgba(7, 18, 47, 0.12);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Open Sans', system-ui, -apple-system, sans-serif;
    color: var(--dark);
    background: linear-gradient(180deg, #f7f9fc 0%, #f0f3f8 35%, #ffffff 100%);
    min-height: 100vh;
    margin: 0;
}

body.preloader-active {
    overflow: hidden;
}

body.page-loaded .site-main [data-animate] {
    opacity: 1;
    transform: none;
}

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

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--primary);
}

.site-main {
    padding-top: 90px;
}

@media (min-width: 992px) {
    .site-main {
        padding-top: 110px;
    }
}

/* Preloader */
#spinner {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at top, rgba(7, 18, 47, 0.85), rgba(7, 18, 47, 0.92));
    backdrop-filter: blur(10px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}

#spinner.show {
    opacity: 1;
    visibility: visible;
}

.preloader {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at top, rgba(7, 18, 47, 0.85), rgba(7, 18, 47, 0.92));
    backdrop-filter: blur(10px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}

.preloader.show {
    opacity: 1;
    visibility: visible;
}

.preloader__content {
    text-align: center;
    color: #fff;
    max-width: 320px;
}

.preloader__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 1.25rem;
    backdrop-filter: blur(6px);
}

.preloader__spinner {
    width: 52px;
    height: 52px;
    border: 4px solid rgba(255, 255, 255, 0.25);
    border-top-color: #fff;
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spinner 1s linear infinite;
}

.preloader__text {
    font-weight: 500;
    letter-spacing: 0.02em;
}

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

/* Navbar */
.site-header {
    position: relative;
    z-index: 1050;
}

.modern-navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(10, 32, 65, 0.12);
    border-radius: 20px;
    margin: 16px auto 0;
    max-width: min(1140px, 94%);
    padding: 12px 18px;
    transition: all .3s ease;
}

.modern-navbar .navbar-brand {
    font-weight: 600;
    color: var(--dark);
}

.modern-navbar .brand-logo {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(var(--primary-rgb), 0.15);
    padding: 6px;
    background-color: #fff;
}

.brand-title {
    font-size: 1rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.brand-subtitle {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
}

.brand-subtitle--secondary {
    letter-spacing: 0.12em;
    font-size: 0.64rem;
}

.nav-login-btn {
    min-width: 120px;
}

@media (max-width: 991.98px) {
    .brand-text {
        max-width: 210px;
    }

    .brand-subtitle--secondary {
        display: none;
    }

    .modern-navbar .navbar-brand {
        align-items: flex-start !important;
    }

    .modern-navbar .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(7, 18, 47, 0.08);
    }

    .modern-navbar .navbar-nav {
        align-items: flex-start !important;
    }

    .modern-navbar .nav-link {
        padding-left: 0;
    }

    .nav-login-wrap {
        width: 100%;
        margin-left: 0 !important;
    }

    .nav-login-wrap .nav-login-btn {
        width: 100%;
    }
}

.modern-navbar .nav-link {
    font-weight: 500;
    color: var(--muted);
    position: relative;
    padding: 10px 16px;
    transition: color .3s ease;
}

.modern-navbar .nav-link::after {
    content: '';
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 6px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.85), rgba(11, 94, 215, 0.65));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}

.modern-navbar .nav-link:hover,
.modern-navbar .nav-link:focus,
.modern-navbar .nav-link.active {
    color: var(--primary);
}

.modern-navbar .nav-link:hover::after,
.modern-navbar .nav-link:focus::after,
.modern-navbar .nav-link.active::after {
    transform: scaleX(1);
}

.navbar.scrolled {
    margin-top: 0;
    border-radius: 0;
    max-width: 100%;
}

.btn-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    transition: transform .3s ease, box-shadow .3s ease, background .3s ease, color .3s ease;
}

.btn-modern--primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 12px 30px rgba(var(--primary-rgb), 0.35);
}

.btn-modern--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(var(--primary-rgb), 0.42);
}

.btn-modern--ghost {
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.08);
}

.btn-modern--ghost:hover {
    color: #fff;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.85), rgba(11, 94, 215, 0.85));
}

.btn-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: background .3s ease, color .3s ease;
}

.btn-icon:hover {
    background: rgba(var(--primary-rgb), 0.12);
}

@media (max-width: 991.98px) {
    .modern-navbar {
        border-radius: 16px;
        padding: 12px 16px;
    }

    .modern-navbar .navbar-collapse {
        padding-top: 1rem;
    }

    .modern-navbar .nav-link::after {
        display: none;
    }
}

/* Hero */
.hero-carousel {
    position: relative;
    min-height: calc(100vh - 90px);
    overflow: hidden;
    background: #0d162b;
}

.hero-carousel .carousel-inner,
.hero-carousel .carousel-item,
.hero-carousel .carousel-image-wrapper {
    height: 100%;
}

.hero-carousel .carousel-item {
    min-height: calc(100vh - 90px);
}

.hero-carousel .carousel-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(180% 120% at 15% 20%, rgba(11, 25, 58, 0.35) 0%, rgba(7, 18, 47, 0.2) 45%, transparent 70%),
        linear-gradient(118deg, rgba(10, 22, 54, 0.68) 0%, rgba(7, 18, 47, 0.36) 52%, rgba(7, 18, 47, 0.08) 100%);
    z-index: 1;
}

.hero-carousel .carousel-caption {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    padding: clamp(2rem, 4vw, 5rem);
    z-index: 2;
}

.hero-carousel .carousel-caption .container {
    background: linear-gradient(140deg, rgba(8, 20, 48, 0.82) 0%, rgba(11, 24, 52, 0.6) 48%, rgba(7, 18, 47, 0.22) 100%);
    backdrop-filter: blur(10px) saturate(125%);
    border-radius: 2rem;
    box-shadow: 0 30px 70px rgba(7, 18, 47, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: clamp(2.25rem, 3vw, 3.25rem);
}

.hero-badge {
    background: rgba(255, 255, 255, 0.12);
    color: #f5f7ff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
}


.hero-simple-card {
    background: linear-gradient(140deg, rgba(8, 20, 48, 0.78) 0%, rgba(11, 24, 52, 0.55) 48%, rgba(7, 18, 47, 0.2) 100%);
    border-radius: 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: clamp(1.6rem, 3vw, 2.5rem);
    box-shadow: 0 26px 60px rgba(7, 18, 47, 0.35);
}

.hero-float {
    animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.hero-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
    font-size: 0.95rem;
    backdrop-filter: blur(3px);
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.hero-panel {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 1.75rem;
    padding: 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px) saturate(120%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 20px 60px rgba(7, 18, 47, 0.4);
    color: #fefeff;
}

.hero-panel h4 {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #fff;
}

.hero-panel p {
    color: rgba(255, 255, 255, 0.75);
}

.hero-panel__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.hero-chip {
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    letter-spacing: 0.08em;
}

.hero-panel__metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.hero-panel__metrics small {
    color: rgba(255, 255, 255, 0.7);
    display: block;
    margin-top: 0.25rem;
}

.metric-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    backdrop-filter: blur(4px);
    color: #fff;
}

.metric-label {
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.8);
}

.metric-value {
    font-size: 1.45rem;
    font-weight: 700;
    margin: 0.35rem 0;
    color: #fff;
}

.hero-carousel .carousel-caption h1 {
    font-size: clamp(2.5rem, 4vw, 4.5rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 10px 28px rgba(7, 18, 47, 0.28);
}

.hero-carousel .carousel-caption p {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
}

.hero-carousel .carousel-indicators [data-bs-target] {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
}

.hero-carousel .carousel-indicators .active {
    background-color: #fff;
}

@media (max-width: 767.98px) {
    .hero-carousel {
        min-height: 520px;
    }

    .hero-carousel .carousel-caption {
        padding: 0 1.5rem 3rem;
        align-items: flex-end;
    }

    .hero-carousel .carousel-caption .container {
        background:
            radial-gradient(160% 160% at 18% 20%, rgba(255, 255, 255, 0.12) 0%, rgba(7, 18, 47, 0.5) 32%, rgba(7, 18, 47, 0.3) 60%, rgba(7, 18, 47, 0.1) 100%),
            linear-gradient(135deg, rgba(7, 18, 47, 0.6) 0%, rgba(7, 18, 47, 0.32) 52%, rgba(7, 18, 47, 0.08) 100%);
        backdrop-filter: blur(7px) saturate(125%);
        padding: 1.6rem 1.35rem 1.9rem;
        border-radius: 1.75rem;
        box-shadow: 0 24px 60px rgba(7, 18, 47, 0.38);
        border: 1px solid rgba(255, 255, 255, 0.18);
        max-width: 100%;
    }

    .hero-carousel .carousel-caption .row {
        margin-left: 0;
        margin-right: 0;
    }

    .hero-carousel .carousel-caption [class*="col-"] {
        padding-left: 0;
        padding-right: 0;
    }

    .hero-carousel .carousel-image-wrapper img {
        object-position: center center;
        transform: scale(1.025);
    }

    .carousel-gradient {
        background:
            radial-gradient(180% 140% at 20% 18%, rgba(7, 18, 47, 0.28) 0%, rgba(7, 18, 47, 0.18) 40%, transparent 70%),
            linear-gradient(128deg, rgba(7, 18, 47, 0.42) 0%, rgba(7, 18, 47, 0.26) 52%, rgba(7, 18, 47, 0.05) 100%);
    }

    .hero-carousel .carousel-caption h1 {
        font-size: 2rem;
        line-height: 1.15;
    }

    .hero-carousel .carousel-caption p {
        font-size: 1rem;
        color: rgba(255, 255, 255, 0.9);
    }

    .hero-metrics {
        grid-template-columns: 1fr;
    }

    .hero-benefits {
        gap: 0.4rem;
    }

    .hero-pill {
        background: rgba(255, 255, 255, 0.14);
    }

    .hero-carousel .carousel-caption .badge {
        background-color: rgba(255, 255, 255, 0.12);
        color: #fff;
    }

     .hero-simple-card {
        padding: 1.35rem;
    }

    .hero-panel {
        padding: 1.25rem;
        margin-top: 1.5rem;
    }

    .hero-panel__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .hero-panel__metrics {
        grid-template-columns: 1fr;
    }

    .hero-carousel .carousel-caption .btn-modern--ghost {
        color: #fff;
        border-color: rgba(255, 255, 255, 0.75);
    }

    .hero-carousel .carousel-caption .btn-modern--ghost:hover,
    .hero-carousel .carousel-caption .btn-modern--ghost:focus {
        background-color: rgba(255, 255, 255, 0.12);
        border-color: rgba(255, 255, 255, 0.9);
    }
}

/* Legacy page header */
.page-header {
    position: relative;
    padding: clamp(5rem, 12vw, 8rem) 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(7, 18, 47, 0.72), rgba(7, 18, 47, 0.35));
    z-index: 1;
}

.page-header > .container {
    position: relative;
    z-index: 2;
}

.page-header .breadcrumb {
    --bs-breadcrumb-divider-color: rgba(255, 255, 255, 0.7);
}

.page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.85);
}

.page-header .breadcrumb-item.active {
    color: #fff;
}

/* Page hero */
.page-hero {
    position: relative;
    display: flex;
    align-items: center;
    padding: clamp(6rem, 12vw, 10rem) 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    overflow: hidden;
    margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--hero-gradient, linear-gradient(135deg, rgba(7, 18, 47, 0.84), rgba(var(--primary-rgb), 0.55)));
    z-index: 1;
}

.page-hero__overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.06), transparent 65%);
    z-index: 2;
}

.page-hero__content {
    position: relative;
    z-index: 3;
    color: #fff;
}

.page-hero__card {
    background: linear-gradient(140deg, rgba(8, 20, 48, 0.85) 0%, rgba(11, 24, 52, 0.65) 48%, rgba(7, 18, 47, 0.24) 100%);
    border-radius: 2rem;
    padding: clamp(2rem, 3vw, 3rem);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 30px 70px rgba(7, 18, 47, 0.4);
    backdrop-filter: blur(10px) saturate(125%);
}

.page-hero__content .lead {
    color: rgba(255, 255, 255, 0.85);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb .active {
    color: #fff;
}

/* Sections */
.section-heading {
    margin-bottom: 2.5rem;
}

.section-heading .badge {
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.section-heading h2 {
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 700;
}

.section-heading p {
    color: var(--muted);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.section-block {
    padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.section-block.alt {
    background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.05) 0%, rgba(7, 18, 47, 0.02) 100%);
}

/* Feature cards */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
}

.feature-card::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    top: -60px;
    right: -60px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.12), transparent 70%);
    transition: transform .4s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 35px 60px rgba(7, 18, 47, 0.18);
}

.feature-card:hover::before {
    transform: scale(1.25);
}

.feature-card .icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    margin-bottom: 1.25rem;
    background: rgba(var(--primary-rgb), 0.12);
    color: var(--primary);
    font-size: 1.5rem;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(7, 18, 47, 0.88), rgba(var(--primary-rgb), 0.65));
    color: #fff;
    padding: 2rem;
    box-shadow: 0 30px 60px rgba(7, 18, 47, 0.35);
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    pointer-events: none;
}

.stat-card .stat-value {
    font-size: clamp(2.25rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-card p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

/* Cards */
.glow-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: clamp(2rem, 4vw, 2.75rem);
    box-shadow: var(--shadow);
    border: 1px solid rgba(var(--primary-rgb), 0.08);
}

.glow-card + .glow-card {
    margin-top: 1.5rem;
}

/* Testimonials & carousel adjustments */
.testimonial-carousel .owl-stage-outer {
    padding: 15px 0;
}

.testimonial-carousel .testimonial-item {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 2.25rem;
    box-shadow: var(--shadow);
}

/* Loan banner */
.loan-banner {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.92), rgba(7, 18, 47, 0.85)), url('../assets/bg44.jpg') center/cover;
    border-radius: var(--radius-lg);
    padding: clamp(3rem, 6vw, 5rem);
    position: relative;
    overflow: hidden;
}

.loan-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.25), transparent 60%);
    opacity: 0.35;
}

.loan-banner .content {
    position: relative;
    z-index: 2;
}

.loan-banner h1,
.loan-banner p {
    color: #fff;
}

.loan-banner .btn {
    margin-top: 1.5rem;
}

/* Callback */
.callback {
    background: linear-gradient(135deg, rgba(7, 18, 47, 0.05), rgba(var(--primary-rgb), 0.08));
}

.callback .card,
.callback .border.rounded {
    border-radius: var(--radius-md);
    border: none;
    box-shadow: var(--shadow);
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, rgba(7, 18, 47, 0.92), rgba(7, 18, 47, 0.85));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(var(--primary-rgb), 0.15), transparent 65%);
    pointer-events: none;
}

.footer-brand {
    position: relative;
    z-index: 1;
}

.footer-logo {
    width: 74px;
    height: 74px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    padding: 12px;
    backdrop-filter: blur(4px);
}

.footer-links li {
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a {
    color: inherit;
    transition: color .3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.newsletter-form .form-control {
    border-radius: 999px 0 0 999px;
    border: none;
    padding: 0.75rem 1.25rem;
}

.newsletter-form .btn {
    border-radius: 0 999px 999px 0;
    padding: 0.75rem 1.5rem;
}

/* Utilities */
.text-white-75 {
    color: rgba(255, 255, 255, 0.75) !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

.text-primary-emphasis {
    color: var(--primary) !important;
}

.text-white-900 {
    color: rgba(255, 255, 255, 0.9);
}

.badge.bg-primary-subtle {
    background: rgba(var(--primary-rgb), 0.18) !important;
}

.badge.bg-primary-subtle.text-primary-emphasis {
    color: var(--primary) !important;
}

.modern-list {
    padding-left: 1.2rem;
    margin-bottom: 1rem;
    color: var(--muted);
}

.modern-list li {
    margin-bottom: 0.5rem;
}

/* Back to top */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1000;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.95), rgba(7, 18, 47, 0.9));
    color: #fff;
    box-shadow: 0 20px 35px rgba(var(--primary-rgb), 0.35);
}

.back-to-top:hover {
    color: #fff;
    transform: translateY(-4px);
}

/* Forms */
.form-control,
.form-select {
    border-radius: var(--radius-sm);
    border: 1px solid rgba(var(--primary-rgb), 0.25);
    padding: 0.75rem 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(var(--primary-rgb), 0.45);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.15);
}

/* Animations */
[data-animate] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .6s ease, transform .6s ease;
}

[data-animate="fade-up"].is-visible {
    opacity: 1;
    transform: translateY(0);
}

[data-animate="fade-right"].is-visible {
    opacity: 1;
    transform: translateX(0);
}

[data-animate="fade-right"] {
    transform: translateX(-40px);
}

[data-animate="fade-left"] {
    transform: translateX(40px);
}

[data-animate="fade-left"].is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Tables */
.table thead th {
    font-weight: 600;
    color: var(--dark);
}

.table-striped > tbody > tr:nth-of-type(odd) {
    --bs-table-striped-bg: rgba(var(--primary-rgb), 0.05);
}

.table-hover > tbody > tr:hover {
    color: var(--dark);
    background: rgba(var(--primary-rgb), 0.08);
}

.card {
    border-radius: var(--radius-md);
    border: none;
    box-shadow: var(--shadow);
}

/* Responsive */
@media (max-width: 575.98px) {
    .brand-text {
        display: none;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 380px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Legacy compatibility */
.carousel-image-wrapper {
    position: relative;
}

.carousel-image-wrapper .gradient-overlay,
.gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(7, 18, 47, 0.75), rgba(7, 18, 47, 0.25));
    z-index: 1;
}

.carousel-image-wrapper img {
    position: relative;
    z-index: 0;
}

.carousel-caption .text-container {
    display: inline-block;
}

.btn-hover-effect {
    transition: transform .3s ease, box-shadow .3s ease;
}

.btn-hover-effect:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(var(--primary-rgb), 0.25);
}

/* Contact form */
.invalid-feedback {
    font-size: 0.82rem;
}

.is-invalid ~ .invalid-feedback {
    display: block;
}

/* Utilities for mission/vision */
.timeline {
    position: relative;
    padding-left: 28px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.4), rgba(7, 18, 47, 0.4));
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid rgba(var(--primary-rgb), 0.6);
    background: var(--surface);
    left: -20px;
    top: 4px;
}

.timeline-date {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

/* Tables inside admin content */
.table-responsive {
    border-radius: var(--radius-md);
    overflow: hidden;
}

/* 1) Brand palette: Trust (navy) + Growth (teal) + Warmth (amber) */
:root{
  /* Brand */
  --primary: #0F766E;                 /* Teal = growth + calm confidence */
  --primary-rgb: 15, 118, 110;
  --secondary: #1D4ED8;               /* Modern royal blue = trust */
  --secondary-rgb: 29, 78, 216;
  --accent: #F59E0B;                  /* Amber = opportunity */
  --accent-rgb: 245, 158, 11;

  /* Keep your navy identity (works great for finance) */
  --dark: #07122f;
  --dark-rgb: 7, 18, 47;

  /* Surfaces */
  --light: #F8FBFF;
  --surface: #FFFFFF;
  --surface-2: #F2F7FF;
  --muted: #64748B;

  /* Borders + shadows (more modern, less “muddy”) */
  --border: rgba(var(--dark-rgb), 0.10);
  --shadow: 0 24px 60px rgba(var(--dark-rgb), 0.12);
  --shadow-lg: 0 35px 85px rgba(var(--dark-rgb), 0.18);

  /* Slightly more contemporary radii */
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;

  /* Focus ring */
  --ring: 0 0 0 0.22rem rgba(var(--primary-rgb), 0.22);

  /* Used for stable hero height on mobile browsers */
  --header-h: 90px;

  scroll-behavior: smooth;
}

@media (min-width: 992px){
  :root{ --header-h: 110px; }
}

::selection{
  background: rgba(var(--primary-rgb), 0.22);
  color: var(--dark);
}

body{
  background:
    radial-gradient(1200px 650px at 12% 6%, rgba(var(--primary-rgb), 0.12), transparent 55%),
    radial-gradient(900px 650px at 92% 0%, rgba(var(--secondary-rgb), 0.10), transparent 60%),
    linear-gradient(180deg, #F8FBFF 0%, #F1F6FF 40%, #FFFFFF 100%);
}

/* 2) Make gradients use your variables (avoid hard-coded blues) */
.modern-navbar .nav-link::after{
  background: linear-gradient(
    135deg,
    rgba(var(--primary-rgb), 0.90),
    rgba(var(--secondary-rgb), 0.70)
  );
}

.btn-modern--primary{
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  background-size: 180% 180%;
  background-position: 0% 50%;
  box-shadow: 0 12px 30px rgba(var(--primary-rgb), 0.28);
}
.btn-modern--primary:hover{
  background-position: 100% 50%;
  box-shadow: 0 16px 42px rgba(var(--primary-rgb), 0.36);
}

.btn-modern--ghost{
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.10);
}
.btn-modern--ghost:hover{
  color: #fff;
  background: linear-gradient(
    135deg,
    rgba(var(--primary-rgb), 0.90),
    rgba(var(--secondary-rgb), 0.88)
  );
}

.btn-icon{
  border-color: rgba(var(--primary-rgb), 0.22);
  color: var(--primary);
}

/* 3) “Modern crisp” card borders (subtle, but makes everything feel premium) */
.card,
.glow-card,
.feature-card,
.testimonial-carousel .testimonial-item{
  border: 1px solid rgba(var(--dark-rgb), 0.06);
}

.feature-card{
  box-shadow: 0 18px 50px rgba(var(--dark-rgb), 0.10);
}
.feature-card:hover{
  box-shadow: var(--shadow-lg);
}

/* 4) Accessibility: clean focus-visible ring (feels like a real product) */
:where(a, button, .btn, .btn-modern, .btn-icon, input, select, textarea):focus-visible{
  outline: none;
  box-shadow: var(--ring);
  border-radius: inherit;
}

.form-control,
.form-select{
  border-color: rgba(var(--dark-rgb), 0.14);
}
.form-control:focus,
.form-select:focus{
  border-color: rgba(var(--primary-rgb), 0.55);
  box-shadow: var(--ring);
}

/* =========================================================
   HERO FIX (MOBILE): show FULL images + integrate text overlay
   ========================================================= */

/* Use svh so mobile address bar doesn’t wreck your hero height */
.hero-carousel,
.hero-carousel .carousel-item{
  min-height: calc(100svh - var(--header-h));
}

/* Ensure wrappers follow the hero height */
.hero-carousel .carousel-inner,
.hero-carousel .carousel-item,
.hero-carousel .carousel-image-wrapper{
  height: calc(100svh - var(--header-h));
}

/* Desktop stays cinematic */
.hero-carousel .carousel-image-wrapper img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Mobile: FULL image (no cropping) + intentional “letterbox” background */
@media (max-width: 767.98px){

  .hero-carousel{
    min-height: calc(100svh - var(--header-h));
  }

  .hero-carousel .carousel-image-wrapper{
    /* This background fills the empty space when image is contain */
    background:
      radial-gradient(800px 420px at 20% 20%, rgba(var(--primary-rgb), 0.22), transparent 60%),
      radial-gradient(700px 420px at 85% 10%, rgba(var(--secondary-rgb), 0.18), transparent 62%),
      linear-gradient(180deg, rgba(var(--dark-rgb), 1) 0%, rgba(var(--dark-rgb), 0.88) 100%);
  }

  .hero-carousel .carousel-image-wrapper img{
    object-fit: contain;     /* ✅ full image visible */
    object-position: center;
    transform: none;         /* remove zoom so nothing gets cropped */
    filter: saturate(1.05) contrast(1.05);
  }

  /* Make overlay mostly bottom-weighted so image remains visible */
  .carousel-gradient{
    background: linear-gradient(
      to top,
      rgba(var(--dark-rgb), 0.72) 0%,
      rgba(var(--dark-rgb), 0.28) 45%,
      rgba(var(--dark-rgb), 0.10) 70%,
      transparent 100%
    );
  }

  /* Caption becomes a bottom “glass card” instead of a big slab */
  .hero-carousel .carousel-caption{
    inset: auto 0 0 0; /* bottom only */
    align-items: flex-end;
    padding:
      1rem
      max(1rem, env(safe-area-inset-right))
      calc(1rem + env(safe-area-inset-bottom))
      max(1rem, env(safe-area-inset-left));
  }

  .hero-carousel .carousel-caption .container{
    width: 100%;
    max-width: min(560px, 94vw);
    margin: 0 auto;

    /* Glass that lets the image breathe underneath */
    background: rgba(var(--dark-rgb), 0.38);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 1.6rem;
    backdrop-filter: blur(10px) saturate(135%);

    padding: 1.25rem 1.15rem 1.2rem;
    box-shadow: 0 22px 58px rgba(var(--dark-rgb), 0.32);
  }

  .hero-carousel .carousel-caption h1{
    font-size: 2.05rem;
    line-height: 1.12;
    margin-bottom: 0.85rem;
  }

  .hero-carousel .carousel-caption p{
    font-size: 1rem;
    max-width: 60ch;
    color: rgba(255,255,255,0.90);
  }

  /* Make pills swipeable so they don’t wrap into chaos */
  .hero-benefits{
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.6rem;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  .hero-benefits::-webkit-scrollbar{ display: none; }

  .hero-pill{
    scroll-snap-align: start;
    white-space: nowrap;
    font-size: 0.90rem;
    background: rgba(255,255,255,0.14);
  }

  /* Same trick for metrics: feels like a mobile product carousel */
  .hero-metrics{
    display: flex;
    overflow-x: auto;
    gap: 0.75rem;
    padding-bottom: 0.25rem;
    margin-top: 0.95rem;
    scroll-snap-type: x mandatory;
  }
  .hero-metrics::-webkit-scrollbar{ display: none; }

  .metric-card{
    min-width: 220px;
    scroll-snap-align: start;
  }
}

/* =========================================================
   “Surprise me” polish: section glow + reduced motion support
   ========================================================= */

/* Softer, modern section alt background (subtle brand blobs) */
.section-block.alt{
  position: relative;
  overflow: hidden;
  background: transparent;
}
.section-block.alt::before{
  content: "";
  position: absolute;
  inset: -1px;
  background:
    radial-gradient(650px 360px at 14% 18%, rgba(var(--primary-rgb), 0.14), transparent 60%),
    radial-gradient(520px 320px at 86% 28%, rgba(var(--secondary-rgb), 0.10), transparent 62%),
    linear-gradient(180deg, rgba(var(--primary-rgb), 0.05) 0%, rgba(var(--dark-rgb), 0.02) 100%);
  z-index: 0;
}
.section-block.alt > *{
  position: relative;
  z-index: 1;
}

/* Optional: accent underline for headings (tiny detail, big effect) */
.section-heading h2{
  position: relative;
}
.section-heading h2::after{
  content: "";
  display: block;
  width: 88px;
  height: 6px;
  border-radius: 999px;
  margin: 0.85rem auto 0;
  background: linear-gradient(135deg, var(--accent), rgba(var(--secondary-rgb), 0.85));
  opacity: 0.9;
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior: auto !important; }
  [data-animate],
  .btn-modern,
  .feature-card{
    transition: none !important;
    animation: none !important;
  }
}

/* ---------- Extra tokens (non-breaking) ---------- */
:root{
  --nav-bg: rgba(255,255,255,0.90);
  --nav-bg-scrolled: rgba(255,255,255,0.96);
  --nav-border: rgba(var(--dark-rgb), 0.10);

  --hero-overlay-top: rgba(var(--dark-rgb), 0.10);
  --hero-overlay-bottom: rgba(var(--dark-rgb), 0.48);

  --glass-bg: rgba(var(--dark-rgb), 0.52);
  --glass-border: rgba(255,255,255,0.18);

  --text-soft: rgba(255,255,255,0.86);
  --text-softer: rgba(255,255,255,0.74);
}

/* ---------- Global polish: sharper type, calmer rhythm ---------- */
body{
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a{
  text-underline-offset: 3px;
}

img{
  /* Helps images look “finished” without going cartoon */
  filter: saturate(1.02) contrast(1.02);
}

/* =========================================================
   NAVBAR: always readable + modern “floating glass”
   ========================================================= */

/* Make header reliably on top of hero */
.site-header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2200;
  padding:
    calc(10px + env(safe-area-inset-top))
    0
    10px
    0;
  pointer-events: none; /* lets hero still feel interactive around it */
}

.site-header .modern-navbar{
  pointer-events: auto;
}

/* Use your existing floating navbar, but more “premium product” */
.modern-navbar{
  background: var(--nav-bg);
  border: 1px solid var(--nav-border);
  box-shadow: 0 18px 48px rgba(var(--dark-rgb), 0.12);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);

  margin: 0 auto;
  max-width: min(1200px, 94%);
  border-radius: 18px;

  transform: translateY(0);
  transition:
    background .25s ease,
    box-shadow .25s ease,
    border-radius .25s ease,
    max-width .25s ease,
    transform .25s ease;
}

/* If backdrop-filter unsupported, keep it clean (no weird transparency) */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))){
  .modern-navbar{ background: rgba(255,255,255,0.98); }
}

/* Your JS likely toggles .scrolled. Make it feel intentional */
.modern-navbar.navbar.scrolled,
.navbar.scrolled.modern-navbar{
  background: var(--nav-bg-scrolled);
  max-width: 100%;
  border-radius: 0;
  box-shadow: 0 18px 55px rgba(var(--dark-rgb), 0.16);
}

/* Ensure nav text stays readable over anything */
.modern-navbar .navbar-brand,
.modern-navbar .nav-link{
  color: rgba(var(--dark-rgb), 0.78);
}

.modern-navbar .nav-link{
  border-radius: 999px;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

/* Better hover: subtle pill highlight (more modern than only underline) */
.modern-navbar .nav-link:hover,
.modern-navbar .nav-link:focus{
  color: rgba(var(--dark-rgb), 0.92);
  background: rgba(var(--primary-rgb), 0.10);
  transform: translateY(-1px);
}

/* Active: confident, not shouty */
.modern-navbar .nav-link.active{
  color: rgba(var(--dark-rgb), 0.96);
  background: rgba(var(--primary-rgb), 0.14);
}

/* Keep your underline, but tone it down so it doesn’t fight the pill */
.modern-navbar .nav-link::after{
  height: 2px;
  bottom: 8px;
  opacity: 0.85;
}

/* Toggler visibility (mobile nav icon often gets lost) */
.modern-navbar .navbar-toggler{
  border: 1px solid rgba(var(--dark-rgb), 0.14);
  border-radius: 14px;
  padding: .55rem .7rem;
  background: rgba(255,255,255,0.65);
}

.modern-navbar .navbar-toggler:focus{
  box-shadow: var(--ring);
}

/* Force a crisp hamburger icon regardless of bootstrap theme classes */
.modern-navbar{
  --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(7,18,47,0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Your main content should sit below fixed header */
.site-main{
  padding-top: calc(var(--header-h) + 28px);
}

/* =========================================================
   HERO: professional glass + images visible (less “dark fog”)
   ========================================================= */

/* Stable viewport sizing for mobile browsers */
.hero-carousel,
.hero-carousel .carousel-item{
  min-height: calc(100svh - var(--header-h));
}

.hero-carousel .carousel-inner,
.hero-carousel .carousel-item,
.hero-carousel .carousel-image-wrapper{
  height: calc(100svh - var(--header-h));
}

/* Reduce “double overlays” that can make photos look dim */
.hero-carousel .carousel-image-wrapper .gradient-overlay,
.hero-carousel .gradient-overlay{
  opacity: 0 !important;
}

/* Photo treatment: professional, not overly filtered */
.hero-carousel .carousel-image-wrapper img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.03) contrast(1.04) brightness(0.98);
}

/* Make overlay bottom-weighted so the PHOTO stays visible */
.carousel-gradient{
  background:
    linear-gradient(
      to top,
      var(--hero-overlay-bottom) 0%,
      rgba(var(--dark-rgb), 0.28) 48%,
      var(--hero-overlay-top) 70%,
      transparent 100%
    );
}

/* Caption: center-left, contained, cleaner */
.hero-carousel .carousel-caption{
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  z-index: 2;
  padding: clamp(1.4rem, 4vw, 4.8rem);
}

/* Make the hero card more “executive dashboard” than “party flyer” */
.hero-carousel .carousel-caption .container{
  max-width: 760px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 1.8rem;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 28px 72px rgba(var(--dark-rgb), 0.40);
  padding: clamp(1.6rem, 3vw, 3.1rem);
}

/* Hero typography: more “brand” less “shout” */
.hero-carousel .carousel-caption h1{
  letter-spacing: -0.02em;
  color: #ffffff;
  text-shadow: 0 10px 26px rgba(var(--dark-rgb), 0.42);
  margin-bottom: 1rem;
}

.hero-carousel .carousel-caption p{
  color: rgba(255,255,255,0.94);
  text-shadow: 0 4px 14px rgba(var(--dark-rgb), 0.38);
  max-width: 62ch;
}

/* Badge: slightly brighter so it reads as intentional */
.hero-badge{
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.24);
  color: rgba(255,255,255,0.92);
}

/* Indicators and controls: visible but refined */
.hero-carousel .carousel-indicators [data-bs-target]{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  opacity: 0.65;
}

.hero-carousel .carousel-indicators .active{
  opacity: 1;
  transform: scale(1.15);
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next{
  width: 9%;
  opacity: 0.9;
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon{
  filter: drop-shadow(0 8px 18px rgba(var(--dark-rgb),0.45));
  transform: scale(1.05);
}

/* Add tasteful “alive” motion on desktop only */
@media (min-width: 992px){
  .hero-carousel .carousel-item.active .carousel-image-wrapper img{
    animation: heroKenBurns 14s ease-in-out both;
  }

  @keyframes heroKenBurns{
    from{ transform: scale(1.02); }
    to{ transform: scale(1.06); }
  }
}

/* Mobile: ensure FULL image visibility and a bottom glass caption */
@media (max-width: 767.98px){
  .hero-carousel .carousel-image-wrapper{
    background:
      radial-gradient(820px 420px at 18% 18%, rgba(var(--primary-rgb), 0.22), transparent 60%),
      radial-gradient(720px 420px at 84% 12%, rgba(var(--secondary-rgb), 0.18), transparent 62%),
      linear-gradient(180deg, rgba(var(--dark-rgb), 1) 0%, rgba(var(--dark-rgb), 0.90) 100%);
  }

  .hero-carousel .carousel-image-wrapper img{
    object-fit: contain; /* FULL photo visible */
    transform: none;
  }

  .hero-carousel .carousel-caption{
    inset: auto 0 0 0;
    align-items: flex-end;
    padding:
      1rem
      max(1rem, env(safe-area-inset-right))
      calc(1rem + env(safe-area-inset-bottom))
      max(1rem, env(safe-area-inset-left));
  }

  .hero-carousel .carousel-caption .container{
    width: 100%;
    max-width: min(600px, 94vw);
    margin: 0 auto;
    background: rgba(var(--dark-rgb), 0.44);
    padding: 1.25rem 1.15rem 1.2rem;
    border-radius: 1.6rem;
  }

  .hero-carousel .carousel-caption h1{
    font-size: 2.05rem;
    line-height: 1.12;
  }

  /* Pills and metrics: “swipeable product UI” */
  .hero-benefits{
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.6rem;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  .hero-benefits::-webkit-scrollbar{ display: none; }

  .hero-pill{
    scroll-snap-align: start;
    white-space: nowrap;
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.22);
  }

  .hero-metrics{
    display: flex;
    overflow-x: auto;
    gap: 0.75rem;
    padding-bottom: 0.25rem;
    margin-top: 0.95rem;
    scroll-snap-type: x mandatory;
  }
  .hero-metrics::-webkit-scrollbar{ display: none; }

  .metric-card{
    min-width: 220px;
    scroll-snap-align: start;
  }
}

/* Reduced motion: keep it elegant for everyone */
@media (prefers-reduced-motion: reduce){
  .hero-carousel .carousel-item.active .carousel-image-wrapper img{
    animation: none !important;
  }
}

/* =========================================================
   ETHEREAL UI PASS: clean, professional, modern finance tone
   ========================================================= */
:root {
  --ethereal-surface: #ffffff;
  --ethereal-surface-soft: #f7f9fc;
  --ethereal-border: rgba(var(--dark-rgb), 0.10);
  --ethereal-shadow: 0 18px 42px rgba(var(--dark-rgb), 0.10);
  --ethereal-shadow-lg: 0 28px 56px rgba(var(--dark-rgb), 0.14);
}

/* Hero carousel: remove blur-heavy treatment, keep strong readability */
.hero-carousel .carousel-caption .container,
.hero-simple-card,
.page-hero__card {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.hero-carousel .carousel-caption .container {
  background: linear-gradient(135deg, rgba(7, 18, 47, 0.74), rgba(7, 18, 47, 0.56));
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 22px 52px rgba(7, 18, 47, 0.30);
}

.hero-simple-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.hero-carousel .carousel-caption h1 {
  color: #fff;
  letter-spacing: -0.015em;
  text-shadow: 0 6px 18px rgba(7, 18, 47, 0.45);
}

.hero-carousel .carousel-caption p {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 3px 10px rgba(7, 18, 47, 0.38);
}

.carousel-gradient {
  background: linear-gradient(to top, rgba(7, 18, 47, 0.52) 0%, rgba(7, 18, 47, 0.22) 52%, rgba(7, 18, 47, 0.05) 76%, transparent 100%);
}

/* Section rhythm + premium card consistency across the rest of the site */
.section-block {
  padding-block: clamp(3.75rem, 6vw, 6rem);
}

.section-block,
.section-block.alt {
  background: linear-gradient(180deg, var(--ethereal-surface-soft) 0%, #ffffff 100%);
}

.feature-card,
.glow-card,
.stat-card,
.callback .card,
.card {
  background: var(--ethereal-surface);
  border: 1px solid var(--ethereal-border);
  box-shadow: var(--ethereal-shadow);
  border-radius: 1.1rem;
}

.feature-card:hover,
.glow-card:hover,
.stat-card:hover,
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ethereal-shadow-lg);
}

.feature-card .icon-wrapper {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.14), rgba(var(--secondary-rgb), 0.14));
  border: 1px solid rgba(var(--primary-rgb), 0.22);
}

.loan-banner {
  background: linear-gradient(125deg, rgba(7, 18, 47, 0.94), rgba(12, 36, 77, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 58px rgba(7, 18, 47, 0.30);
}

.loan-banner .content,
.loan-banner h1,
.loan-banner p {
  text-shadow: none;
}

@media (max-width: 767.98px) {
  .hero-carousel .carousel-caption .container {
    background: linear-gradient(135deg, rgba(7, 18, 47, 0.78), rgba(7, 18, 47, 0.60));
  }
}
