/* =============================================================================
   AIS Multi Insurance - public site
   Custom layer on top of Bootstrap 5.3
   ========================================================================== */

:root {
    --ais-blue:        #2C6299;
    --ais-blue-mid:    #4080C0;
    --ais-blue-dark:   #1E4A75;
    --ais-blue-soft:   #EAF2FA;
    --ais-ground:      #F7F9FB;
    --ais-ink:         #1B2430;
    --ais-muted:       #5A6875;
    --ais-green:        #309030;
    --ais-green-soft:   #EAF5EA;
    --ais-line:        #DDE5EC;
    --ais-white:       #FFFFFF;

    --ais-radius:      14px;
    --ais-radius-sm:   9px;
    --ais-shadow:      0 1px 2px rgba(20, 30, 34, .04), 0 8px 24px rgba(11, 93, 107, .07);
    --ais-shadow-lg:   0 2px 6px rgba(20, 30, 34, .05), 0 20px 48px rgba(11, 93, 107, .12);

    --ais-font-head:   'Archivo', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --ais-font-body:   'Source Sans 3', 'Segoe UI', system-ui, -apple-system, sans-serif;

    --bs-primary:      #2C6299;
    --bs-link-color:   #2C6299;
    --bs-link-hover-color: #1E4A75;
}

/* -------------------------------------------------------------------------- */
/* Base                                                                        */
/* -------------------------------------------------------------------------- */
html { scroll-behavior: smooth; }

body {
    font-family: var(--ais-font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ais-ink);
    background: var(--ais-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--ais-font-head);
    font-weight: 700;
    letter-spacing: -.015em;
    color: var(--ais-ink);
    line-height: 1.2;
}

h1, .h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h2, .h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3, .h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }

p { margin-bottom: 1rem; }
.lead { font-size: 1.175rem; color: var(--ais-muted); line-height: 1.7; }

a { color: var(--ais-blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ais-blue-dark); }

/* Visible focus everywhere - WCAG 2.4.7 */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--ais-green);
    outline-offset: 2px;
    box-shadow: none;
}
.form-control:focus, .form-select:focus, .form-check-input:focus {
    border-color: var(--ais-blue-mid);
    box-shadow: 0 0 0 .2rem rgba(14, 124, 140, .18);
}

/* Skip link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 2000;
    background: var(--ais-blue);
    color: #fff;
    padding: .75rem 1.25rem;
    border-radius: 0 0 var(--ais-radius-sm) 0;
    font-weight: 600;
}
.skip-link:focus {
    left: 0;
    color: #fff;
}

/* -------------------------------------------------------------------------- */
/* Utility                                                                     */
/* -------------------------------------------------------------------------- */
.bg-ground   { background: var(--ais-ground) !important; }
.bg-teal     { background: var(--ais-blue) !important; color: #fff; }
.bg-teal-soft{ background: var(--ais-blue-soft) !important; }
.text-teal   { color: var(--ais-blue) !important; }
.text-gold   { color: var(--ais-green) !important; }
.text-muted-2{ color: var(--ais-muted) !important; }
.section     { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-sm  { padding: clamp(2rem, 4vw, 3rem) 0; }
.rule        { height: 4px; width: 56px; background: var(--ais-green); border-radius: 3px; }

.eyebrow {
    font-family: var(--ais-font-head);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ais-blue-mid);
    margin-bottom: .6rem;
    display: block;
}

.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* -------------------------------------------------------------------------- */
/* Buttons                                                                     */
/* -------------------------------------------------------------------------- */
.btn {
    font-family: var(--ais-font-head);
    font-weight: 600;
    border-radius: var(--ais-radius-sm);
    padding: .68rem 1.4rem;
    transition: background-color .15s ease, border-color .15s ease,
                transform .15s ease, box-shadow .15s ease;
}
.btn-lg { padding: .9rem 1.9rem; font-size: 1.05rem; }
.btn-sm { padding: .4rem .9rem; font-size: .875rem; }

.btn-primary {
    background: var(--ais-blue);
    border-color: var(--ais-blue);
    color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
    background: var(--ais-blue-dark);
    border-color: var(--ais-blue-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(11, 93, 107, .25);
}
.btn-outline-primary {
    color: var(--ais-blue);
    border-color: var(--ais-blue);
    border-width: 2px;
}
.btn-outline-primary:hover, .btn-outline-primary:focus {
    background: var(--ais-blue);
    border-color: var(--ais-blue);
    color: #fff;
}
.btn-gold {
    background: var(--ais-green);
    border-color: var(--ais-green);
    color: #2c2409;
}
.btn-gold:hover, .btn-gold:focus {
    background: #b8930f;
    border-color: #b8930f;
    color: #2c2409;
    transform: translateY(-1px);
}
.btn-light-outline {
    color: #fff;
    border: 2px solid rgba(255, 255, 255, .55);
    background: transparent;
}
.btn-light-outline:hover, .btn-light-outline:focus {
    background: #fff;
    color: var(--ais-blue);
    border-color: #fff;
}

/* -------------------------------------------------------------------------- */
/* Header                                                                      */
/* -------------------------------------------------------------------------- */
.topbar {
    background: var(--ais-blue-dark);
    color: rgba(255, 255, 255, .9);
    font-size: .875rem;
}
.topbar a { color: rgba(255, 255, 255, .92); text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar .divider { color: rgba(255, 255, 255, .3); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--ais-line);
}
.site-header.is-stuck { box-shadow: 0 4px 18px rgba(20, 30, 34, .08); }

.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark {
    font-family: var(--ais-font-head);
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -.02em;
    color: #fff;
    background: var(--ais-blue);
    border-radius: 10px;
    padding: .18rem .55rem;
    line-height: 1.15;
}
.brand-text { line-height: 1.15; }
.brand-name {
    font-family: var(--ais-font-head);
    font-weight: 700;
    font-size: 1.12rem;
    color: var(--ais-ink);
    display: block;
}
.brand-tag {
    font-size: .72rem;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--ais-blue-mid);
    font-weight: 600;
}

.navbar-nav .nav-link {
    font-family: var(--ais-font-head);
    font-weight: 600;
    font-size: .95rem;
    color: var(--ais-ink);
    padding: .55rem .8rem;
    border-radius: 8px;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus { color: var(--ais-blue); background: var(--ais-blue-soft); }
.navbar-nav .nav-link.active { color: var(--ais-blue); }
.navbar-nav .nav-link.active::after {
    content: "";
    display: block;
    height: 3px;
    border-radius: 2px;
    background: var(--ais-green);
    margin-top: 4px;
}
.dropdown-menu {
    border: 1px solid var(--ais-line);
    border-radius: var(--ais-radius-sm);
    box-shadow: var(--ais-shadow);
    padding: .5rem;
    min-width: 17rem;
}
.dropdown-item {
    border-radius: 7px;
    padding: .5rem .75rem;
    font-weight: 500;
}
.dropdown-item:hover, .dropdown-item:focus {
    background: var(--ais-blue-soft);
    color: var(--ais-blue-dark);
}
.dropdown-item.active, .dropdown-item:active {
    background: var(--ais-blue);
    color: #fff;
}

.call-link {
    font-family: var(--ais-font-head);
    font-weight: 700;
    color: var(--ais-blue);
    text-decoration: none;
    white-space: nowrap;
}
.call-link:hover { color: var(--ais-blue-dark); }
.call-link .bi { color: var(--ais-green); }

/* -------------------------------------------------------------------------- */
/* Hero                                                                        */
/* -------------------------------------------------------------------------- */
.hero {
    position: relative;
    background: var(--ais-blue);
    color: #fff;
    padding: clamp(3.5rem, 8vw, 6.5rem) 0;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 480px at 88% -10%, rgba(14, 124, 140, .85), transparent 70%),
        radial-gradient(700px 420px at -5% 110%, rgba(8, 71, 83, .9), transparent 65%);
    pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; }
.hero .lead { color: rgba(255, 255, 255, .88); }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(255, 255, 255, .13);
    border: 1px solid rgba(255, 255, 255, .22);
    color: #fff;
    border-radius: 100px;
    padding: .4rem 1rem;
    font-size: .84rem;
    font-weight: 600;
    letter-spacing: .02em;
}
.hero-card {
    background: #fff;
    color: var(--ais-ink);
    border-radius: var(--ais-radius);
    box-shadow: var(--ais-shadow-lg);
    padding: 1.75rem;
}

.page-hero {
    background: var(--ais-blue);
    color: #fff;
    padding: clamp(2.5rem, 5vw, 4rem) 0;
}
.page-hero h1 { color: #fff; margin-bottom: .5rem; }
.page-hero .lead { color: rgba(255, 255, 255, .86); margin-bottom: 0; }
.page-hero .breadcrumb { margin-bottom: .75rem; }
.page-hero .breadcrumb a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.page-hero .breadcrumb a:hover { color: #fff; text-decoration: underline; }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .45); }
.page-hero .breadcrumb-item.active { color: rgba(255, 255, 255, .95); }

/* -------------------------------------------------------------------------- */
/* Cards                                                                       */
/* -------------------------------------------------------------------------- */
.card {
    border: 1px solid var(--ais-line);
    border-radius: var(--ais-radius);
    box-shadow: 0 1px 2px rgba(20, 30, 34, .03);
}
.card-body { padding: 1.6rem; }

.feature-card {
    height: 100%;
    background: #fff;
    border: 1px solid var(--ais-line);
    border-radius: var(--ais-radius);
    padding: 1.75rem;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--ais-shadow);
    border-color: #c9dbde;
}
.feature-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.feature-card p:last-child { margin-bottom: 0; }

.feature-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--ais-blue-soft);
    color: var(--ais-blue);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}
.feature-icon.gold { background: var(--ais-green-soft); color: #8c710f; }

.service-card {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid var(--ais-line);
    border-radius: var(--ais-radius);
    padding: 1.6rem;
    position: relative;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.service-card:hover {
    color: inherit;
    transform: translateY(-3px);
    box-shadow: var(--ais-shadow);
    border-color: var(--ais-blue-mid);
}
.service-card h3 { font-size: 1.1rem; }
.service-card .more {
    font-family: var(--ais-font-head);
    font-weight: 600;
    font-size: .9rem;
    color: var(--ais-blue);
}

.stat {
    text-align: center;
    padding: 1.25rem .5rem;
}
.stat-num {
    font-family: var(--ais-font-head);
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--ais-blue);
    line-height: 1;
    display: block;
}
.stat-label {
    font-size: .9rem;
    color: var(--ais-muted);
    margin-top: .4rem;
    display: block;
}

.check-list { list-style: none; padding-left: 0; margin: 0; }
.check-list li {
    position: relative;
    padding-left: 1.9rem;
    margin-bottom: .7rem;
}
.check-list li::before {
    content: "\F26E";
    font-family: "bootstrap-icons";
    position: absolute;
    left: 0;
    top: -.05rem;
    color: var(--ais-blue-mid);
    font-size: 1.05rem;
}

.carrier-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 92px;
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--ais-line);
    border-radius: var(--ais-radius-sm);
    text-align: center;
    font-family: var(--ais-font-head);
    font-weight: 600;
    color: var(--ais-muted);
    font-size: .95rem;
    transition: border-color .18s ease, color .18s ease;
}
.carrier-tile:hover { border-color: var(--ais-blue-mid); color: var(--ais-blue); }

/* -------------------------------------------------------------------------- */
/* CTA band                                                                    */
/* -------------------------------------------------------------------------- */
.cta-band {
    background: var(--ais-blue-dark);
    color: #fff;
    border-radius: var(--ais-radius);
    padding: clamp(2rem, 4vw, 3rem);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .85); margin-bottom: 0; }

/* -------------------------------------------------------------------------- */
/* Forms                                                                       */
/* -------------------------------------------------------------------------- */
.form-label {
    font-family: var(--ais-font-head);
    font-weight: 600;
    font-size: .9rem;
    margin-bottom: .35rem;
    color: var(--ais-ink);
}
.form-control, .form-select {
    border: 1px solid #cdd8da;
    border-radius: var(--ais-radius-sm);
    padding: .68rem .9rem;
    font-size: 1rem;
}
.form-control::placeholder { color: #93a5a9; }
.required-mark { color: #b3261e; font-weight: 700; }
.form-text { color: var(--ais-muted); }

/* -------------------------------------------------------------------------- */
/* Footer                                                                      */
/* -------------------------------------------------------------------------- */
.site-footer {
    background: var(--ais-ink);
    color: rgba(255, 255, 255, .72);
    padding-top: 3.5rem;
    font-size: .95rem;
}
.site-footer h2, .site-footer h3, .site-footer .footer-head {
    font-family: var(--ais-font-head);
    color: #fff;
    font-size: .8rem;
    letter-spacing: .13em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-weight: 700;
}
.site-footer a { color: rgba(255, 255, 255, .72); text-decoration: none; }
.site-footer a:hover, .site-footer a:focus {
    color: #fff;
    text-decoration: underline;
}
.site-footer .footer-links { list-style: none; padding: 0; margin: 0; }
.site-footer .footer-links li { margin-bottom: .55rem; }
.site-footer .brand-mark { background: var(--ais-blue-mid); }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-tag { color: var(--ais-green); }
.footer-contact .bi { color: var(--ais-green); width: 1.25rem; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    margin-top: 2.5rem;
    padding: 1.35rem 0;
    font-size: .875rem;
    color: rgba(255, 255, 255, .55);
}
.footer-disclaimer {
    font-size: .8rem;
    color: rgba(255, 255, 255, .45);
    line-height: 1.6;
}

/* -------------------------------------------------------------------------- */
/* Misc                                                                        */
/* -------------------------------------------------------------------------- */
.alert { border-radius: var(--ais-radius-sm); border-width: 1px; }
.badge-soft {
    /* inline-flex + align-self so the pill hugs its label instead of being
       stretched to full width when it sits inside a flex-column card */
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    background: var(--ais-blue-soft);
    color: var(--ais-blue-dark);
    font-weight: 600;
    border-radius: 100px;
    padding: .35rem .8rem;
    font-size: .8rem;
}
.accordion-button:not(.collapsed) {
    background: var(--ais-blue-soft);
    color: var(--ais-blue-dark);
}
.accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(14, 124, 140, .2); }

.table > :not(caption) > * > * { padding: .8rem .85rem; }
.table thead th {
    font-family: var(--ais-font-head);
    font-size: .82rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ais-muted);
    border-bottom-color: var(--ais-line);
}

.back-to-top {
    position: fixed;
    right: 1.1rem;
    bottom: 1.1rem;
    z-index: 1040;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--ais-line);
    background: #fff;
    color: var(--ais-blue);
    box-shadow: var(--ais-shadow);
    display: none;
    align-items: center;
    justify-content: center;
}
.back-to-top.show { display: inline-flex; }

/* -------------------------------------------------------------------------- */
/* Responsive                                                                  */
/* -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: .75rem;
        padding: .75rem;
        border-top: 1px solid var(--ais-line);
        max-height: calc(100vh - 130px);
        overflow-y: auto;
    }
    .navbar-nav .nav-link.active::after { display: none; }
    .dropdown-menu { border: 0; box-shadow: none; padding-left: .5rem; }
}

@media (max-width: 575.98px) {
    body { font-size: 1rem; }
    .btn-lg { padding: .8rem 1.35rem; font-size: 1rem; }
    .feature-card, .service-card { padding: 1.35rem; }
    .brand-mark { font-size: 1.35rem; }
}

@media print {
    .site-header, .site-footer, .cta-band, .back-to-top, .topbar { display: none !important; }
    body { font-size: 12pt; color: #000; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; animation: none !important; }
}

/* Map embed -------------------------------------------------------------- */
/* Bootstrap .ratio absolutely positions every child, so the fallback and the
   iframe stack; the iframe covers the fallback once Google Maps paints. */
.map-embed { background: var(--ais-ground); }
.map-embed__fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    text-align: center;
    padding: 1rem;
    color: var(--ais-blue-dark);
    font-weight: 600;
    line-height: 1.5;
}
.map-embed__fallback .bi { font-size: 1.75rem; color: var(--ais-blue-mid); }

/* Bootstrap's .container padding is a fixed 12px, but a .g-5 row uses -24px
   negative margins, so wide-gutter rows poke 12px past the container edge and
   get clipped by body{overflow-x:hidden}. Only below sm, where .container is
   full-bleed and has no slack to absorb the overhang (from sm up it is
   max-width'd and centred). Capping the horizontal gutter is visually a no-op
   here - a stacked column's inset is the container padding either way. */
@media (max-width: 575.98px) {
    .container > .row,
    .container-fluid > .row { --bs-gutter-x: 1.5rem; }
}

/* ---------------------------------------------------------------------------
   Real AIS logo (extracted from the 2020 corporate deck).
   Replaces the placeholder text wordmark in the header and footer.
--------------------------------------------------------------------------- */
.brand-logo {
    height: 68px;
    width: auto;
    display: block;
    flex: 0 0 auto;
}
.site-header .brand { padding-block: .35rem; }
.site-footer .brand-logo { height: 72px; }

/* the footer sits on the deep-blue ground and uses the knockout file */
.brand-logo--invert { opacity: .96; }

@media (max-width: 991.98px) {
    .brand-logo { height: 56px; }
}
@media (max-width: 575.98px) {
    .brand-logo { height: 48px; }
}

/* Real carrier marks (from the AIS deck) inside the panel tiles. */
.carrier-logo {
    max-width: 100%;
    max-height: 54px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}
.carrier-tile { display: flex; align-items: center; justify-content: center; text-align: center; }

/* Carrier tiles show the mark plus the product name, because several products
   from the same carrier (UHC Global / Level Funded / Domestic) share one logo. */
.carrier-tile { flex-direction: column; gap: .5rem; }
.carrier-name {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--ais-muted);
}
.carrier-tile:hover .carrier-name { color: var(--ais-blue); }

/* Chrome gives date/number inputs an intrinsic minimum width that width:100%
   cannot shrink, which pushed the quote form past a 320px viewport. */
.form-control,
.form-select { min-width: 0; max-width: 100%; }
input[type="date"].form-control,
input[type="number"].form-control { width: 100%; }
