@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --brand: #1e4bb8;
    --brand2: #2f6fe0;
    --teal: #48b12a;
    --accent: #F68712;
    --alert: #DC1F26;
    --ink: #1a2744;
    --muted: #5b6b86;
    --surface: #f4f7fc;
    --he-header-offset: 104px;
    --radius: 1.25rem;
    --shadow: 0 18px 50px rgba(30, 75, 184, .14);
}

html {
    scroll-padding-top: calc(var(--he-header-offset) + 12px);
}

body.he-site {
    color: var(--ink);
    font-family: 'Manrope', system-ui, sans-serif;
    background: #fff;
}

body.he-site a {
    color: var(--brand2);
}

.btn-brand {
    background: linear-gradient(135deg, var(--brand2), var(--brand));
    border: 0;
    color: #fff;
    font-weight: 700;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(47, 111, 224, .28);
    transition: transform .2s ease, box-shadow .2s ease;
}

.btn-brand:hover {
    background: linear-gradient(135deg, var(--brand), #163a96);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(30, 75, 184, .32);
}

.btn-teal {
    background: linear-gradient(135deg, #57c338, var(--teal));
    border: 0;
    color: #fff;
    font-weight: 700;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(72, 177, 42, .28);
}

.btn-teal:hover {
    background: #3a9a1f;
    color: #fff;
    transform: translateY(-1px);
}

.btn-outline-light {
    border-radius: 999px;
    border-width: 1.5px;
    font-weight: 700;
}

.text-brand {
    color: var(--brand2) !important;
}

.bg-brand {
    background: linear-gradient(135deg, var(--brand), #163a96) !important;
}

.he-topbar {
    background: linear-gradient(90deg, #152f7a, var(--brand));
    color: #fff;
    font-size: 0.875rem;
}

/* Keep topbar phone/email white on every page (blog + insurance builder CSS sets a{color:blue}) */
.he-topbar,
.he-topbar a,
.he-topbar a:visited,
body.he-site .he-topbar,
body.he-site .he-topbar a,
body.he-site .he-topbar a:visited {
    color: #fff !important;
    text-decoration: none;
}

.he-topbar a:hover,
.he-topbar a:focus,
body.he-site .he-topbar a:hover,
body.he-site .he-topbar a:focus {
    color: #fff !important;
    text-decoration: underline;
}

.he-navbar .navbar {
    backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, .92) !important;
}

.he-navbar .navbar-brand img {
    height: 58px;
    width: auto;
    max-width: min(320px, 70vw);
    object-fit: contain;
}

.he-navbar .nav-link {
    font-weight: 600;
    color: var(--ink) !important;
}

.he-navbar .nav-link.active,
.he-navbar .nav-link:hover {
    color: var(--brand2) !important;
}

.he-navbar .dropdown-item.active,
.he-navbar .dropdown-item:active {
    background: var(--brand2);
}

/* ===== Modern hero ===== */
.he-page-hero,
section.hero:first-of-type {
    scroll-margin-top: var(--he-header-offset);
}

section.hero {
    position: relative;
    overflow: hidden;
    min-height: clamp(560px, 78vh, 720px);
    display: flex;
    align-items: center;
    color: #fff;
    background:
        radial-gradient(ellipse 50% 60% at 85% 20%, rgba(72, 177, 42, .22), transparent 55%),
        radial-gradient(ellipse 45% 50% at 10% 80%, rgba(47, 111, 224, .35), transparent 50%),
        linear-gradient(115deg, rgba(16, 40, 110, .94) 0%, rgba(30, 75, 184, .88) 42%, rgba(20, 55, 140, .72) 100%),
        url('/images/hero-healthcare.jpg') right center / cover no-repeat;
    padding: clamp(3rem, 7vw, 5.5rem) 0 !important;
}

section.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(10, 24, 70, .18), transparent 30%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

section.hero > .container {
    position: relative;
    z-index: 2;
}

section.hero .hero-eyebrow,
section.hero > .container > .row > .col-lg-7 > p.text-uppercase {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    letter-spacing: .16em !important;
    color: #b8e6ff !important;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    padding: .4rem .9rem;
    margin-bottom: 1.1rem;
    backdrop-filter: blur(8px);
}

section.hero h1 {
    font-size: clamp(2.2rem, 4.6vw, 3.55rem);
    line-height: 1.08;
    letter-spacing: -.03em;
    font-weight: 800;
    max-width: 14ch;
    margin-bottom: 1rem;
    text-shadow: 0 10px 30px rgba(0, 0, 0, .2);
}

section.hero .lead {
    color: rgba(255, 255, 255, .9);
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    max-width: 38rem;
}

section.hero ul.list-unstyled {
    display: grid;
    gap: .65rem;
    margin: 1.4rem 0 1.75rem;
}

section.hero ul.list-unstyled li {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    font-size: 1rem;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: .9rem;
    padding: .7rem .95rem;
    backdrop-filter: blur(6px);
}

section.hero .hero-media {
    position: relative;
    margin-bottom: 1.25rem;
}

section.hero .hero-media img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 1.1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .25);
}

section.hero .hero-form-card,
section.hero .col-lg-5 > .card {
    border: 0 !important;
    border-radius: 1.35rem !important;
    background: rgba(255, 255, 255, .96) !important;
    box-shadow: var(--shadow) !important;
    overflow: hidden;
    color: var(--ink);
}

section.hero .col-lg-5 .card-body {
    padding: 1.6rem !important;
}

section.hero .col-lg-5 h2 {
    color: var(--ink);
}

section.hero .form-control {
    border-radius: .75rem;
    border-color: #d7e0f0;
    padding: .7rem .9rem;
}

section.hero .form-control:focus {
    border-color: var(--brand2);
    box-shadow: 0 0 0 .2rem rgba(47, 111, 224, .18);
}

/* Sections */
.he-site section.py-5 > .container > h2.fw-bold {
    letter-spacing: -.02em;
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
}

.he-site .card.card-hover {
    border: 1px solid rgba(30, 75, 184, .08) !important;
    border-radius: var(--radius) !important;
    box-shadow: 0 8px 24px rgba(26, 39, 68, .05);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}

.he-site .card.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(30, 75, 184, .14);
}

.he-site .card.card-hover .card-body {
    padding: 1.35rem 1.4rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.he-site .card.card-hover .card-body > a.fw-bold {
    margin-top: auto;
}

.he-site .bg-light {
    background: linear-gradient(180deg, #f7f9fd 0%, #eef3fb 100%) !important;
}

.carrier-logo {
    height: 56px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    filter: grayscale(.15);
    opacity: .9;
    transition: opacity .2s ease, filter .2s ease;
}

.carrier-logo:hover {
    filter: none;
    opacity: 1;
}

.he-carriers-scroll {
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.he-carriers-track {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    width: max-content;
    animation: he-carriers-marquee 35s linear infinite;
}

.he-carriers-scroll:hover .he-carriers-track {
    animation-play-state: paused;
}

.he-carriers-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    padding: .35rem .5rem;
}

@keyframes he-carriers-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .he-carriers-track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; }
}

/* Insurance cards with image strip via nth-child accents */
.he-site section.bg-light .card.card-hover .card-body > .fs-2 {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .9rem;
    background: rgba(47, 111, 224, .1);
    margin-bottom: .85rem !important;
}

/* Match original Keytalk dark footer */
.he-site footer.site-footer-he,
body.he-site footer.site-footer-he {
    background: #0c2f45 !important;
    color: #b9cfdb !important;
    padding-top: 3rem;
    padding-bottom: 1.25rem;
}

.he-site footer.site-footer-he a {
    color: #d6e7ef !important;
    text-decoration: none;
}

.he-site footer.site-footer-he a:hover {
    color: #fff !important;
    text-decoration: underline;
}

.he-site footer.site-footer-he h5 {
    color: #fff !important;
    font-weight: 700;
    margin-bottom: 1rem;
}

.he-site footer.site-footer-he p,
.he-site footer.site-footer-he address,
.he-site footer.site-footer-he li {
    color: #b9cfdb !important;
}

.he-site footer.site-footer-he hr {
    border-color: rgba(255, 255, 255, .18) !important;
    opacity: 1;
}

.he-site footer.site-footer-he .text-white-50,
.he-site footer.site-footer-he .small {
    color: rgba(255, 255, 255, .55) !important;
}

#heContactNotice .he-notice-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    border: 0;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.65;
}

@keyframes he-rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

section.hero .col-lg-7 > *,
section.hero .col-lg-5 {
    animation: he-rise .7s ease both;
}

section.hero .col-lg-7 > *:nth-child(1) { animation-delay: .05s; }
section.hero .col-lg-7 > *:nth-child(2) { animation-delay: .12s; }
section.hero .col-lg-7 > *:nth-child(3) { animation-delay: .18s; }
section.hero .col-lg-7 > *:nth-child(4) { animation-delay: .24s; }
section.hero .col-lg-7 > *:nth-child(5) { animation-delay: .3s; }
section.hero .col-lg-5 { animation-delay: .2s; }

@media (max-width: 991.98px) {
    section.hero {
        min-height: auto;
        background-position: center top;
    }

    section.hero h1 {
        max-width: none;
    }

    section.hero .hero-media img {
        height: 150px;
    }
}
