:root {
    --primary: #0799a5;
    --primary-dark: #087f89;
    --navy: #123d59;
    --text: #234c68;
    --muted: #64839a;
    --mint: #e9f7f7;
    --background: #f8fbfc;
    --border: #dcebef;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--navy);
}

body.modal-open {
    overflow: hidden;
}

.insurance-page {
    min-height: 100vh;
    background: #fff;
    overflow: hidden;
}

.insurance-page a {
    text-decoration: none;
    color: inherit;
}

.insurance-page button {
    font-family: inherit;
    cursor: pointer;
}

.insurance-container {
    width: min(1120px, calc(100% - 64px));
    margin: 0 auto;
}

/* HEADER */

.insurance-header {
    height: 70px;
    background: #fff;
    border-bottom: 1px solid #edf2f4;
    position: relative;
    z-index: 20;
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.insurance-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    flex-shrink: 0;
}

.brand-symbol {
    width: 43px;
    height: 43px;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo {
    width: 43px;
    height: 43px;
    object-fit: contain;
}

.brand-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.brand-details strong {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
}

.brand-details small {
    font-size: 10px;
    color: var(--muted);
}

.main-nav {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-nav > a,
.main-nav > button,
.footer-nav a,
.footer-nav button {
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
    background: none;
    border: 0;
}

.main-nav > a {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

.main-nav > a.active {
    color: var(--primary);
    font-weight: 600;
}

.main-nav > a.active::after {
    content: "";
    position: absolute;
    height: 3px;
    background: var(--primary);
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 5px 5px 0 0;
}

.main-nav > button:hover,
.main-nav > a:hover,
.footer-nav a:hover,
.footer-nav button:hover {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 28px;
}

.login-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
}

.login-link svg {
    width: 18px;
}

.btn {
    border: 1px solid transparent;
    border-radius: 30px;
    min-height: 45px;
    padding: 0 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 600;
    transition: .2s ease;
}

.btn-primary {
    color: #fff;
    background: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-outline {
    color: var(--primary-dark);
    background: transparent;
    border-color: var(--primary);
}

.btn-outline:hover {
    background: #e8f8f8;
}

.mobile-menu-toggle,
.mobile-nav-actions {
    display: none;
}

/* HERO */

.insurance-hero {
    background: linear-gradient(110deg, #e9f8f7 0%, #effafa 58%, #f6fbfc 100%);
    min-height: 560px;
    position: relative;
    overflow: hidden;
}

.hero-inner {
    min-height: 560px;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content {
    width: 52%;
    padding: 60px 0 60px;
    position: relative;
    z-index: 2;
}

.hero-label {
    display: inline-flex;
    padding: 7px 14px;
    background: #c9eeee;
    color: var(--primary-dark);
    border-radius: 30px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .3px;
}

.hero-content h1 {
    color: var(--navy);
    font-size: clamp(32px, 4vw, 45px);
    line-height: 1.13;
    letter-spacing: -1.7px;
    font-weight: 800;
    margin: 20px 0 14px;
}

.hero-content p {
    max-width: 475px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text);
    margin: 0;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 23px;
}

.hero-buttons .btn {
    min-height: 47px;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text);
}

.hero-trust svg {
    color: var(--primary);
    width: 22px;
}

.hero-image {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 46%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* decorative backdrop behind the arch */
.hero-image::before {
    content: "";
    position: absolute;
    width: 82%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #c9eeee;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-image::after {
    content: "";
    position: absolute;
    width: 92%;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 2px dashed rgba(7, 153, 165, .3);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-image img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 78%;
    height: 86%;
    object-fit: cover;
    object-position: center 30%;
    border-radius: 220px 220px 18px 18px;
    box-shadow: 0 25px 60px -18px rgba(18, 61, 89, .3);
    border: 6px solid #fff;
    opacity: 0;
    animation: heroSlide 16s ease-in-out infinite;
}

.hero-image img:first-of-type { animation-delay: 0s; }
.hero-image img:last-of-type { animation-delay: 8s; }

@keyframes heroSlide {
    0%    { opacity: 0; }
    6%    { opacity: 1; }
    44%   { opacity: 1; }
    50%   { opacity: 0; }
    100%  { opacity: 0; }
}

/* QUICK SERVICES */

.quick-services {
    padding: 42px 0 34px;
    background: #fff;
}

.section-heading {
    margin-bottom: 20px;
}

.section-heading h2 {
    margin: 0 0 8px;
    font-size: 23px;
    font-weight: 700;
    letter-spacing: -.5px;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.service-card {
    min-width: 0;
    min-height: 100px;
    padding: 17px 15px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    transition: .2s ease;
}

.service-card:hover {
    border-color: var(--primary);
    box-shadow: 0 7px 20px rgba(18, 61, 89, .07);
    transform: translateY(-2px);
}

.service-icon,
.category-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: #e4f6f6;
    color: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 26px;
    height: 26px;
    stroke-width: 2.3;
}

.service-info {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.service-info strong {
    font-size: 12px;
    color: var(--navy);
}

.service-info small {
    font-size: 10px;
    line-height: 1.5;
    color: var(--muted);
}

.service-arrow {
    width: 29px;
    height: 29px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5f6f6;
    color: var(--primary-dark);
}

/* ASSISTANCE */

.assistance-section {
    padding: 35px 0 30px;
    background: #fff;
}

.assistance-box {
    min-height: 115px;
    padding: 22px 30px;
    border-radius: 13px;
    background: linear-gradient(100deg, #e8f7f7, #effafa);
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    align-items: center;
    gap: 25px;
}

.assistance-heading {
    display: flex;
    align-items: center;
    gap: 18px;
    border-right: 1px solid #b8dfe2;
    min-height: 65px;
}

.assistance-heading > svg {
    color: var(--primary);
    width: 43px;
    height: 43px;
    flex-shrink: 0;
}

.assistance-heading h3 {
    margin: 0 0 7px;
    font-size: 17px;
}

.assistance-heading p {
    margin: 0;
    font-size: 11px;
    color: var(--muted);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

.contact-item > svg {
    width: 24px;
    height: 24px;
    color: var(--primary-dark);
    flex-shrink: 0;
}

.contact-item span {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.contact-item strong {
    font-size: 11px;
    font-weight: 600;
}

.contact-item small {
    color: var(--text);
    font-size: 10px;
    overflow-wrap: anywhere;
}

.contact-item:hover strong {
    color: var(--primary);
}

/* FOOTER */

.insurance-footer {
    background: linear-gradient(110deg, #123c56, #07334c);
    color: #fff;
    padding: 27px 0 0;
}

.footer-main {
    min-height: 75px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.footer-brand .brand-details strong,
.footer-brand .brand-details small {
    color: #fff;
}

.footer-brand .brand-symbol {
    background: #fff;
    color: var(--primary-dark);
}

.footer-nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.footer-nav a,
.footer-nav button {
    color: #e4f0f5;
    font-size: 11px;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-socials a {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.16);
    min-height: 54px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.footer-bottom p,
.footer-bottom a,
.footer-bottom span {
    font-size: 10px;
    color: #d7e7ed;
}

.footer-bottom div {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* CATEGORY MODAL */

.category-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(9, 36, 54, .48);
    backdrop-filter: blur(3px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: .2s ease;
}

.category-overlay.active {
    opacity: 1;
    visibility: visible;
}

.category-modal {
    width: 100%;
    max-width: 570px;
    padding: 25px;
    background: #fff;
    border-radius: 13px;
    box-shadow: 0 20px 65px rgba(13, 51, 75, .2);
    transform: translateY(12px);
    transition: .2s ease;
}

.category-overlay.active .category-modal {
    transform: translateY(0);
}

.modal-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.modal-heading h2 {
    font-size: 18px;
    margin: 0 0 7px;
    font-weight: 700;
}

.modal-heading p {
    font-size: 11px;
    line-height: 1.6;
    margin: 0;
    color: var(--muted);
}

.modal-close {
    width: 33px;
    height: 33px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modal-close:hover {
    background: #edf7f8;
    color: var(--primary);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 13px;
}

.category-card {
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 13px;
    min-height: 122px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    background: #fff;
    transition: .2s ease;
}

.category-card:hover {
    border-color: var(--primary);
    background: #f6fcfc;
    box-shadow: 0 5px 15px rgba(7, 153, 165, .08);
    transform: translateY(-2px);
}

.category-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 10px;
}

.category-icon svg {
    width: 25px;
    height: 25px;
    stroke-width: 2.2;
}

.category-card strong {
    color: var(--navy);
    font-size: 11px;
    font-weight: 600;
}

.category-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-dark);
    font-size: 10px;
    font-weight: 600;
    margin-top: 10px;
}

.category-link svg {
    width: 13px;
    height: 13px;
}

.modal-note {
    font-size: 10px;
    color: var(--muted);
    margin: 17px 0 0;
}

.no-categories {
    grid-column: 1 / -1;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .insurance-container {
        width: min(100% - 40px, 720px);
    }

    .main-nav {
        gap: 16px;
    }

    .header-actions {
        gap: 14px;
    }

    .hero-content {
        width: 55%;
    }

    .hero-image {
        width: 43%;
    }

    .assistance-box {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }

    .assistance-heading {
        border-right: 0;
    }

    .footer-main {
        flex-wrap: wrap;
    }

    .footer-nav {
        gap: 15px;
    }
}

@media (max-width: 650px) {
    .insurance-container {
        width: calc(100% - 36px);
    }

    /* MOBILE HEADER */

    .insurance-header {
        height: 65px;
    }

    .brand-symbol,
    .brand-logo {
        width: 39px;
        height: 39px;
    }

    .brand-details strong {
        font-size: 14px;
    }

    .mobile-menu-toggle {
        display: flex;
        border: 0;
        background: #eef8f8;
        color: var(--primary-dark);
        width: 39px;
        height: 39px;
        border-radius: 8px;
        align-items: center;
        justify-content: center;
    }

    .header-actions {
        display: none;
    }

    .main-nav {
        position: absolute;
        display: none;
        top: 65px;
        left: 0;
        right: 0;
        height: auto;
        background: #fff;
        padding: 15px 20px 20px;
        box-shadow: 0 12px 20px rgba(18, 61, 89, .1);
        align-items: stretch;
        flex-direction: column;
        gap: 0;
    }

    .main-nav.nav-open {
        display: flex;
    }

    .main-nav > a,
    .main-nav > button {
        height: auto;
        padding: 13px 5px;
        border-bottom: 1px solid #edf2f4;
        text-align: left;
    }

    .main-nav > a.active::after {
        display: none;
    }

    .mobile-nav-actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding-top: 15px;
    }

    .mobile-nav-actions > a {
        font-size: 13px;
    }

    .mobile-nav-actions .btn {
        width: 100%;
    }

    /* MOBILE HERO */

    .insurance-hero {
        min-height: unset;
    }

    .hero-inner {
        min-height: unset;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .hero-content {
        width: 100%;
        padding: 38px 0 28px;
    }

    .hero-content h1 {
        font-size: 34px;
        letter-spacing: -1px;
        margin: 17px 0 12px;
    }

    .hero-content p {
        font-size: 13px;
        max-width: 100%;
    }

    .hero-buttons {
        gap: 10px;
    }

    .hero-buttons .btn {
        min-height: 44px;
        padding: 0 17px;
        font-size: 11px;
    }

    .hero-image {
        position: relative;
        right: auto;
        top: auto;
        bottom: auto;
        width: calc(100% + 36px);
        height: 260px;
        margin: 0 -18px;
        display: block;
    }

    .hero-image::before,
    .hero-image::after {
        display: none;
    }

    .hero-image img {
        width: 100%;
        height: 100%;
        border-radius: 0;
        border: 0;
        box-shadow: none;
        object-position: center 38%;
    }

    /* QUICK SERVICES */

    .quick-services {
        padding: 32px 0 20px;
    }

    .section-heading h2 {
        font-size: 21px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 11px;
    }

    .service-card {
        min-height: 85px;
        padding: 13px;
    }

    /* ASSISTANCE */

    .assistance-section {
        padding: 15px 0 25px;
    }

    .assistance-box {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 23px 20px;
    }

    .assistance-heading {
        padding-bottom: 17px;
        border-bottom: 1px solid #b8dfe2;
    }

    .contact-item {
        padding: 0 5px;
    }

    /* FOOTER */

    .insurance-footer {
        padding-top: 25px;
    }

    .footer-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        padding-bottom: 22px;
    }

    .footer-nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
        width: 100%;
    }

    .footer-socials {
        gap: 22px;
    }

    .footer-bottom {
        padding: 15px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .footer-bottom p {
        margin: 0;
        line-height: 1.6;
    }

    /* MODAL */

    .category-overlay {
        padding: 12px;
        align-items: center;
        overflow-y: auto;
    }

    .category-modal {
        padding: 19px 15px;
        max-height: 90vh;
        overflow-y: auto;
        border-radius: 12px;
    }

    .modal-heading h2 {
        font-size: 16px;
    }

    .modal-heading p {
        font-size: 10px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .category-card {
        min-height: 118px;
        padding: 11px;
    }

    .category-card strong {
        font-size: 10px;
    }

    .category-icon {
        width: 40px;
        height: 40px;
    }

    .modal-note {
        line-height: 1.5;
    }
}

@media (max-width: 360px) {
    .hero-content h1 {
        font-size: 30px;
    }

    .hero-buttons .btn {
        padding: 0 12px;
        font-size: 10px;
    }

    .category-grid {
        gap: 8px;
    }
}
