:root {
            --cap-navy: #1f4e79;
            --cap-navy-soft: #1f4e79;
            --cap-lime: #88a417;
            --cap-primary-deep: #1f4e79;
            --cap-primary-wash: rgba(31, 78, 121, 0.12);
            --cap-ink: #000000;
            --cap-surface: rgba(255, 255, 255, 0.92);
            --cap-border: rgba(0, 0, 0, 0.08);
        }

        .header {
            position: sticky;
            top: 0;
            z-index: 100;
            background: rgba(255, 255, 255, 0.92);
            backdrop-filter: blur(14px);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        }

        .header__top {
            background:
                linear-gradient(90deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0)) top left / 220px 100% no-repeat,
                linear-gradient(135deg, var(--cap-navy), var(--cap-lime));
        }

        .header__top__widget {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-wrap: wrap;
            gap: 0.75rem 1.25rem;
            padding: 0.95rem 0;
        }

        .header__top__widget li {
            margin-right: 0;
            padding: 0.1rem 1rem 0.1rem 0;
            font-size: 1rem;
            font-weight: 600;
            letter-spacing: 0.01em;
        }

        .header__top__widget li::after {
            right: -0.15rem;
            background: rgba(255, 255, 255, 0.15);
        }

        .header__top__widget li i {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 2rem;
            height: 2rem;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.2);
            color: var(--cap-lime);
            margin-right: 0.7rem;
        }

        .header__main {
            padding: 1.1rem 0;
        }

        .header__bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 2rem;
            min-height: 84px;
        }

        .header__logo {
            padding: 0;
        }

        .header__logo a {
            display: inline-flex;
            align-items: center;
            gap: 0.85rem;
        }

        .header__logo img {
            max-height: 68px;
            width: auto;
            display: block;
        }

        .header__nav {
            padding: 0;
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 1.25rem;
            flex: 1 1 auto;
        }

        .header__menu {
            padding: 0.4rem 0.55rem;
            border-radius: 999px;
            background: var(--cap-surface);
            border: 1px solid var(--cap-border);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
        }

        .header__menu ul {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .header__menu ul li {
            margin-right: 0;
        }

        .header__menu ul li a {
            padding: 0.8rem 1.2rem;
            border-radius: 999px;
            font-size: 1.05rem;
            font-weight: 700;
            color: var(--cap-ink);
            transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
        }

        .header__menu ul li a:after {
            display: none;
        }

        .header__menu ul li.active a,
        .header__menu ul li:hover a {
            background: var(--cap-navy);
            color: #ffffff;
            transform: translateY(-1px);
            box-shadow: 0 14px 28px rgba(31, 78, 121, 0.22);
        }

        .header__search {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 3rem;
            height: 3rem;
            border-radius: 999px;
            background: #f1f5f9;
            border: 1px solid rgba(0, 0, 0, 0.06);
            transition: transform 0.25s ease, background 0.25s ease;
        }

        .header__search:hover {
            transform: translateY(-1px);
            background: rgba(31, 78, 121, 0.12);
        }

        .header__search i {
            color: var(--cap-ink);
            font-size: 1.1rem;
        }

        .header__search:hover i,
        .canvas__open span {
            color: var(--cap-navy);
        }

        .canvas__open {
            border-radius: 999px;
        }

        .primary-btn,
        .site-btn {
            background: var(--cap-navy);
            box-shadow: 0 16px 32px rgba(31, 78, 121, 0.2);
        }

        .primary-btn:hover,
        .site-btn:hover {
            color: #ffffff;
            background: var(--cap-lime);
            box-shadow: 0 16px 32px rgba(136, 164, 23, 0.22);
        }

        .breadcrumb-option,
        .contact-widget,
        .call.set-bg,
        .footer {
            position: relative;
            overflow: hidden;
        }

        .breadcrumb-option::before,
        .contact-widget::before,
        .call.set-bg::before,
        .footer::before {
            content: "";
            position: absolute;
            inset: 0;
            pointer-events: none;
        }

        .breadcrumb-option::before {
            background: linear-gradient(135deg, rgba(31, 78, 121, 0.86), rgba(136, 164, 23, 0.68));
        }

        .contact-widget::before,
        .call.set-bg::before {
            background: linear-gradient(135deg, rgba(31, 78, 121, 0.84), rgba(136, 164, 23, 0.7));
        }

        .footer {
            background:
                radial-gradient(circle at top left, rgba(31, 78, 121, 0.07), transparent 24%),
                radial-gradient(circle at bottom right, rgba(136, 164, 23, 0.09), transparent 26%),
                #ffffff;
            border-top: 1px solid rgba(15, 23, 42, 0.08);
        }

        .footer::before {
            background:
                linear-gradient(90deg, rgba(31, 78, 121, 0.04), rgba(136, 164, 23, 0.04));
            opacity: 0.9;
            inset: auto 0 0;
            height: 4px;
        }

        .breadcrumb-option > .container,
        .contact-widget > .container,
        .call.set-bg > .container,
        .footer > .container {
            position: relative;
            z-index: 1;
        }

        .call__text a:after,
        .loan__services__item__text a:after,
        .services__item__text a:after {
            background: var(--cap-lime);
        }

        .contact__widget__phone h2,
        .footer__widget.footer__widget--social li a:hover,
        .footer__copyright__text a,
        .services__item__text a,
        .loan__services__item__text a,
        .call__text a,
        .contact__address__item ul li i {
            color: var(--cap-lime);
        }

        .contact__form__text form input:focus,
        .contact__form__text form textarea:focus,
        .call__form input:focus,
        .call__form .nice-select:focus {
            border-color: rgba(31, 78, 121, 0.32);
            box-shadow: 0 0 0 4px rgba(31, 78, 121, 0.08);
        }

        .footer__about p,
        .footer__widget ul li a,
        .footer__widget p,
        .footer__widget.footer__widget--address li,
        .footer__copyright__links li a,
        .footer__copyright__text p {
            color: rgba(255, 255, 255, 0.82);
        }

        .footer__widget h5,
        .footer__copyright__links li a:hover,
        .footer__copyright__text a:hover {
            color: #ffffff;
        }

        .footer__copyright {
            border-top-color: rgba(255, 255, 255, 0.18);
        }

        .footer__copyright__links li:after {
            background: rgba(255, 255, 255, 0.35);
        }

        .footer--modern {
            padding: 4.75rem 0 1.5rem;
        }

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

        .footer__layout {
            display: grid;
            grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.45fr);
            gap: 3rem;
            align-items: start;
            margin-bottom: 3rem;
        }

        .footer__brand-panel {
            padding-right: 2rem;
        }

        .footer__brand {
            display: inline-flex;
            align-items: center;
            gap: 0.9rem;
            margin-bottom: 1.1rem;
        }

        .footer__brand img {
            height: 56px;
            width: auto;
            display: block;
        }

        .footer__lead {
            max-width: 23rem;
            margin: 0;
            color: #64748b;
            font-size: 1rem;
            line-height: 1.8;
        }

        .footer__content {
            display: block;
        }

        .footer__section h5 {
            margin: 0 0 1rem;
            color: #0f172a;
            font-size: 0.9rem;
            font-weight: 800;
            letter-spacing: 0.04em;
            text-transform: uppercase;
        }

        .footer__contact-list {
            display: grid;
            gap: 0.9rem;
            margin: 0;
            padding: 0;
            list-style: none;
        }

        .footer__contact-list li {
            display: flex;
            align-items: flex-start;
            gap: 0.8rem;
            color: #64748b;
            line-height: 1.6;
        }

        .footer__contact-list i {
            width: 2rem;
            height: 2rem;
            border-radius: 999px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, rgba(31, 78, 121, 0.12), rgba(136, 164, 23, 0.18));
            color: var(--cap-navy);
            flex: 0 0 auto;
        }

        .footer__grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
            gap: 2rem 2.5rem;
            margin-bottom: 0;
        }

        .footer__section {
            padding: 0;
            background: transparent;
            border: none;
        }

        .footer__menu,
        .footer__hours,
        .footer__socials {
            margin: 0;
            padding: 0;
            list-style: none;
            display: grid;
            gap: 0.85rem;
        }

        .footer__menu a,
        .footer__hours li,
        .footer__socials a,
        .footer__contact-list a,
        .footer__contact-list span {
            color: #64748b;
            font-size: 1rem;
            line-height: 1.6;
            transition: color 0.25s ease, transform 0.25s ease;
        }

        .footer__menu a:hover,
        .footer__socials a:hover,
        .footer__contact-list a:hover {
            color: var(--cap-navy);
            transform: translateX(3px);
        }

        .footer__socials a {
            display: inline-flex;
            align-items: center;
            gap: 0.7rem;
            font-size: 1.3rem;
        }

        .footer__socials i {
            color: #7c8798;
            transition: color 0.25s ease, transform 0.25s ease;
        }

        .footer__socials a:hover i {
            color: var(--cap-navy);
            transform: translateY(-1px);
        }

        .footer__socials span {
            font-size: 1rem;
        }

        .footer__copyright.footer__copyright--modern {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            padding: 2rem 0 0;
            margin-top: 2.75rem;
            border-top: 1px solid rgba(15, 23, 42, 0.1);
        }

        .footer__copyright__links.footer__copyright__links--modern {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 1rem 1.25rem;
            margin: 0;
            padding: 0;
            list-style: none;
        }

        .footer__copyright__links.footer__copyright__links--modern li::after {
            display: none;
        }

        .footer__copyright__text.footer__copyright__text--modern {
            text-align: right;
        }

        .footer__copyright__links.footer__copyright__links--modern a,
        .footer__copyright__text.footer__copyright__text--modern p {
            color: #7c8798;
            font-size: 0.98rem;
        }

        .footer__copyright__links.footer__copyright__links--modern a:hover {
            color: var(--cap-navy);
        }

        @media only screen and (max-width: 991px) {
            .header__top__widget {
                justify-content: flex-start;
            }

            .header__top__widget li {
                font-size: 0.9rem;
            }

            .header__bar {
                min-height: 72px;
            }

            .header__logo img {
                max-height: 56px;
            }

            .footer__layout,
            .footer__grid {
                grid-template-columns: 1fr;
            }

            .footer__brand-panel {
                padding-right: 0;
            }

            .footer__copyright.footer__copyright--modern {
                flex-direction: column;
                align-items: flex-start;
            }

            .footer__copyright__text.footer__copyright__text--modern {
                text-align: left;
            }
        }

@media only screen and (max-width: 767px) {
    .header {
        backdrop-filter: none;
            }

            .header__top__widget {
                padding: 0.7rem 0;
                gap: 0.5rem;
            }

            .header__top__widget li {
                width: 100%;
                padding-right: 0;
                font-size: 0.88rem;
            }

            .header__top__widget li::after {
                display: none;
            }

            .header__main {
                padding: 0.9rem 0;
            }

        .footer--modern {
            padding-top: 3.5rem;
        }
    }

.header__top-link {
    color: inherit;
}

.footer__menu-placeholder {
    color: #94a3b8;
}
