/* Semler-specific overrides on top of style.css + the active theme stylesheet. */

/* ---- Homepage video hero ---- */
.semler-video-hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: #25323a url('/image/semler/main-slider/3.jpg') center center / cover no-repeat;
}
.semler-video-hero .carousel-inner,
.semler-video-hero .item,
.semler-hero-slide {
    min-height: 620px;
}
.semler-hero-video,
.semler-hero-photo,
.semler-hero-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.semler-hero-video {
    object-fit: cover;
    z-index: 0;
}
.semler-hero-photo {
    z-index: 0;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}
.semler-hero-overlay {
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(20, 30, 36, 0.78) 0%, rgba(20, 30, 36, 0.54) 44%, rgba(20, 30, 36, 0.18) 100%),
        linear-gradient(0deg, rgba(20, 30, 36, 0.26), rgba(20, 30, 36, 0.26));
}
.semler-video-hero .banner-content {
    position: relative;
    z-index: 2;
    min-height: 620px;
    display: flex;
    align-items: center;
}
.semler-video-hero .banner-text {
    max-width: 720px;
}
.semler-hero-lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 19px;
    line-height: 1.55;
    max-width: 620px;
    margin: 18px 0 0;
}
.semler-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}
.semler-hero-actions .btn {
    min-width: 150px;
    text-align: center;
}
.semler-hero-actions .btn-outline {
    border-color: rgba(255, 255, 255, 0.82);
    color: #fff;
}
.semler-hero-actions .btn-outline:hover,
.semler-hero-actions .btn-outline:focus {
    background: #fff;
    color: #2c3e50;
}
.semler-video-hero .carousel-control {
    z-index: 4;
    width: 64px;
    opacity: 0.55;
    visibility: visible;
    background: none;
    text-shadow: none;
}
.semler-video-hero .carousel-control:hover,
.semler-video-hero .carousel-control:focus {
    opacity: 0.95;
    visibility: visible;
}
.semler-video-hero .carousel-control .glyphicon {
    width: 42px;
    height: 42px;
    margin-top: -21px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    background: rgba(20, 30, 36, 0.34);
    color: #fff;
    font-size: 16px;
    line-height: 40px;
}
.semler-hero-indicators {
    z-index: 5;
    bottom: 26px;
}
.semler-hero-indicators li {
    width: 10px;
    height: 10px;
    margin: 0 4px;
    border-color: rgba(255, 255, 255, 0.75);
}
.semler-hero-indicators .active {
    width: 10px;
    height: 10px;
    margin: 0 4px;
    background: #EF9535;
    border-color: #EF9535;
}
@media (max-width: 767px) {
    .semler-video-hero,
    .semler-video-hero .carousel-inner,
    .semler-video-hero .item,
    .semler-hero-slide,
    .semler-video-hero .banner-content {
        min-height: 540px;
    }
    .semler-video-hero .banner-text {
        padding-right: 18px;
    }
    .semler-hero-lead {
        font-size: 16px;
    }
    .semler-hero-actions {
        gap: 10px;
    }
    .semler-hero-actions .btn {
        min-width: 132px;
        padding-left: 16px;
        padding-right: 16px;
    }
    .semler-video-hero .carousel-control {
        display: none;
    }
    .semler-hero-indicators {
        bottom: 18px;
    }
}

/* Topbar tagline: keep on a single line and hide if it can't fit. */
.topbar .top-aside.topbar-tagline {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 50%;
}

/* Honeypot field — hidden from real users. */
.hp-field {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Inline thank-you banner on contact page. */
.alert {
    padding: 16px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}
.alert-success {
    background: #fef4e6;
    border-left: 4px solid #EF9535;
    color: #946737;
}

/* Form polish on contact page (template default is sparse). */
.section-contact .form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d4dde1;
    border-radius: 3px;
    font: inherit;
    background: #fff;
    transition: border-color .2s;
}
.section-contact .form-control:focus {
    border-color: #EF9535;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(239, 149, 53, 0.18);
}
.section-contact .form-group {
    margin-bottom: 16px;
}
.section-contact .form-m-bttm {
    margin-bottom: 16px;
}
.section-contact textarea.form-control {
    min-height: 140px;
    resize: vertical;
}
.section-contact .map-holder iframe {
    border: 0;
    border-radius: 4px;
    display: block;
}

/* ---- Mobile navbar fixes ----
   Vendor Bootstrap 3 leaves .navbar-toggle and .icon-bar transparent by default
   (only colored under .navbar-default). Our markup uses .navbar-primary, so we
   color them explicitly. Same for the mobile Get-A-Quote button. */
@media (max-width: 991px) {
    .site-header .navbar-toggle {
        display: block;
        float: right;
        margin: 14px 15px 14px 0;
        padding: 9px 11px;
        background-color: #EF9535;
        border: 1px solid #EF9535;
        border-radius: 4px;
    }
    .site-header .navbar-toggle:hover,
    .site-header .navbar-toggle:focus {
        background-color: #946737;
        border-color: #946737;
    }
    .site-header .navbar-toggle .icon-bar {
        background-color: #fff;
        display: block;
        width: 22px;
        height: 2px;
        border-radius: 1px;
    }
    .site-header .navbar-toggle .icon-bar + .icon-bar { margin-top: 4px; }

    /* Mobile-only "Get A Quote" button inside the navbar-header */
    .site-header .navbar-header .quote-btn {
        display: inline-block;
        float: right;
        margin: 14px 8px 14px 0;
    }
    .site-header .navbar-header .quote-btn .btn {
        padding: 6px 14px;
        font-size: 11px;
    }

    /* Logo sizing on mobile */
    .site-header .navbar-brand {
        margin-top: 10px;
        margin-bottom: 10px;
    }
    .site-header .navbar-brand img {
        max-height: 36px;
    }

    /* Collapsed menu — let template's script.js handle tap-to-expand.
       It adds .has-children to dropdown <li>s, and slideDown/slideUp the
       child <ul> on tap. We just style the appearance (no display/visibility
       overrides — those would break the slide animation). */
    .navbar-collapse.collapse.in {
        display: block !important;
        background: #fff;
        border-top: 1px solid #eee;
        padding: 10px 0;
    }
    .navbar-nav { margin: 0; }
    .navbar-nav > li { float: none; }
    .navbar-nav > li > a { padding: 12px 20px; }
    .navbar-nav .dropdown-menu {
        background: #f8f8f8;
        box-shadow: none;
        border: 0;
        padding: 4px 0;
    }
    .navbar-nav .dropdown-menu > li > a { padding: 8px 35px; font-size: 14px; }
}

/* ---- Logo sizing + variant swap ----
   Default style.css caps the navbar-brand img tiny. Bump it up at every
   breakpoint, swap to icon-only on mobile (just the arc, text removed). */

/* Hide icon and light variants on regular desktop white-header views */
.site-header .logo-icon { display: none; }

/* Desktop: full logo */
.site-header .navbar-brand img.logo-full,
.site-header .navbar-brand img.logo-dark { max-height: 64px; }
.site-header .header-s1 .navbar-brand,
.header-s1 .navbar-brand { margin-top: 10px; margin-bottom: 10px; }

@media (max-width: 1199px) {
    .site-header .navbar-brand img.logo-full,
    .site-header .navbar-brand img.logo-dark { max-height: 56px; }
}
@media (max-width: 991px) {
    .site-header .navbar-brand img.logo-full,
    .site-header .navbar-brand img.logo-dark { max-height: 50px; }
    .site-header .navbar-brand { margin-top: 8px !important; margin-bottom: 8px !important; }
}

/* Phone: hide the full logo with text, show icon-only arc instead */
@media (max-width: 767px) {
    .site-header .navbar-brand img.logo-full,
    .site-header .navbar-brand img.logo-dark { display: none; }
    .site-header .navbar-brand img.logo-icon {
        display: inline-block;
        max-height: 40px;
    }
}
@media (max-width: 480px) {
    .site-header .navbar-brand img.logo-icon { max-height: 34px; }
}


/* ---- Fix orange theme bug ----
   semler-orange.css inherited a rule from the template's style-orange.css that
   sets `.navbar-nav li .dropdown-menu { display: block }` at <767px, which
   overrides the base mobile rule that hides submenus by default. Restore the
   default closed state here so script.js's slideDown/slideUp toggling works. */
@media (max-width: 767px) {
    .navbar-nav li .dropdown-menu { display: none; }
    /* When script.js opens a parent (.nav-opened), let its inline display:block
       win; this rule's lower precedence is fine because inline beats stylesheet. */
}


/* ---- Desktop nav polish (A+B+C) ----
   A. Spread items across the width with bigger padding and letter-spacing
   B. Animated underline on hover; solid bar on active page
   C. Subtle box-shadow under the navbar for elevation */
@media (min-width: 992px) {
    /* C — elevation */
    .site-header .navbar.navbar-primary {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }

    /* A — bigger items, more breathing room */
    .header-s1 .navbar-nav > li > a {
        padding: 32px 18px;
        font-size: 13.5px;
        letter-spacing: 1.6px;
        font-weight: 600;
        text-transform: uppercase;
        position: relative;
        transition: color 0.2s ease;
    }

    /* B — animated hover underline + active page bar */
    .header-s1 .navbar-nav > li > a::after {
        content: '';
        position: absolute;
        left: 50%;
        right: 50%;
        bottom: 18px;
        height: 3px;
        background: #EF9535;
        transition: left 0.25s ease, right 0.25s ease;
        pointer-events: none;
    }
    .header-s1 .navbar-nav > li > a:hover::after,
    .header-s1 .navbar-nav > li > a:focus::after,
    .header-s1 .navbar-nav > li.active > a::after {
        left: 18px;
        right: 18px;
    }

    /* Active state color stays consistent with hover (template default already
       does this in orange.css, just ensuring it for active LI) */
    .header-s1 .navbar-nav > li.active > a {
        color: #EF9535;
    }
}


/* ---- Fire-zone landing pages ----
   Shared styles for the four city pages (Agoura Hills, Calabasas, Westlake
   Village/Thousand Oaks, Malibu/Topanga). FAQ uses <details>/<summary> for
   accessibility + SEO (FAQ schema picks them up natively). */

.fz-alert-stripe {
    background: #fef4e6;
    border-left: 4px solid #EF9535;
    padding: 14px 18px;
    margin: 24px 0 32px;
    border-radius: 4px;
    font-size: 15px;
    color: #4a4a4a;
}
.fz-alert-stripe strong { color: #946737; }

.fz-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 32px 0;
}
.fz-stat {
    flex: 1 1 180px;
    background: #fff;
    border: 1px solid #e6ebee;
    border-top: 3px solid #EF9535;
    padding: 20px 18px;
    border-radius: 4px;
    text-align: center;
}
.fz-stat .fz-stat-num {
    font-size: 28px;
    font-weight: 700;
    color: #EF9535;
    line-height: 1.1;
    margin-bottom: 6px;
}
.fz-stat .fz-stat-label {
    font-size: 13px;
    color: #6b7780;
    line-height: 1.35;
}

.fz-pills {
    list-style: none;
    padding: 0;
    margin: 12px 0 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.fz-pills li {
    background: #f6f8f9;
    border: 1px solid #e6ebee;
    color: #4a5560;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
}

.fz-callout {
    border-radius: 4px;
    padding: 18px 22px;
    margin: 24px 0;
    border-left: 4px solid #EF9535;
    background: #fef4e6;
    color: #4a4a4a;
}
.fz-callout h4 {
    margin: 0 0 8px;
    color: #946737;
    font-size: 17px;
}
.fz-callout.fz-callout-good {
    border-left-color: #7DBA2F;
    background: #f3faea;
}
.fz-callout.fz-callout-good h4 { color: #4a7818; }
.fz-callout.fz-callout-info {
    border-left-color: #4a90c2;
    background: #eff5fa;
}
.fz-callout.fz-callout-info h4 { color: #2d5e84; }

.fz-faq details {
    border: 1px solid #e6ebee;
    border-radius: 4px;
    margin-bottom: 10px;
    background: #fff;
    transition: border-color 0.2s;
}
.fz-faq details[open] { border-color: #EF9535; }
.fz-faq summary {
    cursor: pointer;
    padding: 16px 22px;
    font-weight: 600;
    font-size: 16px;
    color: #2c3e50;
    list-style: none;
    position: relative;
    padding-right: 50px;
}
.fz-faq summary::-webkit-details-marker { display: none; }
.fz-faq summary::after {
    content: '+';
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    font-weight: 400;
    color: #EF9535;
    transition: transform 0.2s;
}
.fz-faq details[open] summary::after { content: '\2013'; }
.fz-faq details > div,
.fz-faq details > p {
    padding: 0 22px 18px;
    color: #4a5560;
    line-height: 1.65;
}

.fz-form {
    background: #fff;
    border: 1px solid #e6ebee;
    border-radius: 6px;
    padding: 28px;
}
.fz-form h3 {
    margin: 0 0 6px;
    font-size: 22px;
}
.fz-form .fz-form-lead {
    color: #6b7780;
    margin-bottom: 22px;
    font-size: 14px;
}
.fz-form .form-group { margin-bottom: 14px; }
.fz-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #4a5560;
    margin-bottom: 4px;
}
.fz-form .form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d4dde1;
    border-radius: 3px;
    font: inherit;
    background: #fff;
    transition: border-color 0.2s;
}
.fz-form .form-control:focus {
    border-color: #EF9535;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(239, 149, 53, 0.18);
}
.fz-form textarea.form-control {
    min-height: 90px;
    resize: vertical;
}
.fz-form .fz-form-row {
    display: flex;
    gap: 12px;
}
.fz-form .fz-form-row > .form-group { flex: 1; }
@media (max-width: 600px) {
    .fz-form .fz-form-row { flex-direction: column; gap: 0; }
}
.fz-form .btn-submit {
    width: 100%;
    padding: 14px;
    margin-top: 8px;
    background: #EF9535;
    color: #fff;
    border: 0;
    border-radius: 3px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s;
}
.fz-form .btn-submit:hover { background: #946737; }
@media (min-width: 992px) {
    .fz-form-sticky { position: sticky; top: 100px; }
}

.fz-city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 24px 0;
}
.fz-city-card {
    display: block;
    background: #fff;
    border: 1px solid #e6ebee;
    border-left: 3px solid #EF9535;
    padding: 18px 20px;
    border-radius: 4px;
    text-decoration: none !important;
    transition: box-shadow 0.2s, transform 0.2s;
    color: inherit;
}
.fz-city-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}
.fz-city-card strong {
    display: block;
    color: #2c3e50;
    font-size: 16px;
    margin-bottom: 4px;
}
.fz-city-card span {
    color: #6b7780;
    font-size: 13px;
}


/* ---- Stats panel (between body and footer) ---- */
.stats-panel {
    background: #fff;
    border-top: 1px solid #ebeff2;
    border-bottom: 1px solid #ebeff2;
    padding: 36px 0;
}
.stats-panel-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.stats-item {
    flex: 1;
    text-align: center;
    padding: 0 12px;
}
.stats-num {
    font-size: 28px;
    font-weight: 700;
    color: #EF9535;
    line-height: 1.15;
    margin-bottom: 8px;
    letter-spacing: 0;
}
.stats-label {
    font-size: 14px;
    color: #4a5560;
    line-height: 1.4;
}
.stats-divider {
    width: 1px;
    align-self: stretch;
    background: #e6ebee;
    margin: 8px 0;
}
@media (max-width: 768px) {
    .stats-panel { padding: 24px 0; }
    .stats-panel-row { flex-direction: column; gap: 22px; }
    .stats-divider { display: none; }
    .stats-item { padding: 0; }
    .stats-num { font-size: 24px; }
}

.carrier-name-item {
    min-height: 88px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
}
.carrier-name-item span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    width: 100%;
    border: 1px solid #e6ebee;
    border-radius: 4px;
    background: #fff;
    color: #2c3e50;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.2;
    text-align: center;
}
.carrier-name-item img {
    max-width: 150px;
    max-height: 48px;
    object-fit: contain;
    display: block;
}

/* ---- Sticky call CTA (floating, bottom-right, every page except contact/quote) ---- */
.sticky-cta {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #EF9535;
    color: #fff !important;
    text-decoration: none !important;
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: 0 6px 20px rgba(239, 149, 53, 0.35), 0 2px 6px rgba(0, 0, 0, 0.1);
    font-weight: 600;
    transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.sticky-cta:hover,
.sticky-cta:focus {
    background: #946737;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(239, 149, 53, 0.45), 0 3px 8px rgba(0, 0, 0, 0.12);
    text-decoration: none !important;
}
.sticky-cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    flex-shrink: 0;
}
.sticky-cta-icon svg { display: block; }
.sticky-cta-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}
.sticky-cta-line1 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    opacity: 0.9;
}
.sticky-cta-line2 {
    font-size: 16px;
    font-weight: 700;
}
@media (max-width: 600px) {
    .sticky-cta {
        right: 14px;
        bottom: 14px;
        padding: 10px 14px;
        gap: 8px;
    }
    .sticky-cta-icon { width: 30px; height: 30px; }
    .sticky-cta-icon svg { width: 16px; height: 16px; }
    .sticky-cta-line1 { display: none; }
    .sticky-cta-line2 { font-size: 14px; }
}


/* ---- Fire-zone guide CTA card (cross-page lead-magnet promo) ---- */
.guide-cta {
    display: flex;
    align-items: center;
    gap: 18px;
    background: linear-gradient(135deg, #fef4e6 0%, #fef9f0 100%);
    border: 1px solid #f3dab1;
    border-left: 4px solid #EF9535;
    border-radius: 6px;
    padding: 20px 24px;
    margin: 28px 0;
}
.guide-cta-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: #EF9535;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.guide-cta-body { flex: 1; min-width: 0; }
.guide-cta-body h4 {
    margin: 0 0 4px;
    font-size: 17px;
    color: #2c3e50;
}
.guide-cta-body p {
    margin: 0;
    font-size: 14px;
    color: #4a5560;
    line-height: 1.45;
}
.guide-cta-btn {
    flex-shrink: 0;
    display: inline-block;
    background: #EF9535;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    transition: background-color 0.2s;
}
.guide-cta-btn:hover { background: #946737; color: #fff !important; }
@media (max-width: 768px) {
    .guide-cta { flex-direction: column; text-align: center; gap: 14px; padding: 22px 18px; }
}

/* Guide TOC ordered list (on /fire-zone-guide page) */
.guide-toc { margin: 16px 0 28px; }
.guide-toc ol {
    padding-left: 0;
    list-style: none;
    counter-reset: guide-step;
}
.guide-toc ol > li {
    counter-increment: guide-step;
    padding: 12px 14px 12px 52px;
    border-bottom: 1px solid #ebeff2;
    position: relative;
    color: #4a5560;
    line-height: 1.5;
}
.guide-toc ol > li:before {
    content: counter(guide-step);
    position: absolute;
    left: 14px;
    top: 12px;
    width: 28px;
    height: 28px;
    background: #fef4e6;
    color: #EF9535;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}
.guide-toc ol > li:last-child { border-bottom: 0; }
.guide-toc ol > li strong { color: #2c3e50; }


/* ---- Testimonial cards (home + /testimonials) ---- */
.tcard {
    position: relative;
    background: #fff;
    border-radius: 8px;
    padding: 32px 28px 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #ebeff2;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    margin-bottom: 24px;
}
.tcard:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Big orange quote mark in upper-left as decoration */
.tcard::before {
    content: '\201C';
    position: absolute;
    top: -8px;
    left: 18px;
    font-family: Georgia, serif;
    font-size: 88px;
    line-height: 1;
    color: #EF9535;
    opacity: 0.18;
    font-weight: 700;
    pointer-events: none;
}

.tcard-stars {
    color: #EF9535;
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.tcard-headline {
    font-size: 17px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
    margin: 0 0 12px;
    position: relative;
    z-index: 1;
}

.tcard-body {
    color: #5a6470;
    font-size: 14px;
    line-height: 1.65;
    margin: 0 0 22px;
    position: relative;
    z-index: 1;
}

.tcard-author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 18px;
    border-top: 1px solid #ebeff2;
}

.tcard-avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.5px;
}
.tcard-avatar.bg-1 { background: linear-gradient(135deg, #EF9535 0%, #946737 100%); }
.tcard-avatar.bg-2 { background: linear-gradient(135deg, #7DBA2F 0%, #4a7818 100%); }
.tcard-avatar.bg-3 { background: linear-gradient(135deg, #4a90c2 0%, #2d5e84 100%); }
.tcard-avatar.bg-4 { background: linear-gradient(135deg, #b96fb0 0%, #6e3a87 100%); }
.tcard-avatar.bg-5 { background: linear-gradient(135deg, #c2604a 0%, #843d2d 100%); }
.tcard-avatar.bg-6 { background: linear-gradient(135deg, #4a7c80 0%, #2d4f54 100%); }

.tcard-name {
    font-weight: 700;
    color: #2c3e50;
    font-size: 15px;
    line-height: 1.2;
}
.tcard-meta {
    color: #6b7780;
    font-size: 12.5px;
    line-height: 1.3;
    margin-top: 2px;
}

@media (max-width: 768px) {
    .tcard { padding: 28px 22px 22px; }
}


/* ---- Testimonial card refinements: equal heights, no quote icon ---- */
.tcard::before { display: none; }

/* Flex grid wrapper: equalises card heights across the row */
.tcard-row {
    display: flex;
    flex-wrap: wrap;
}
.tcard-row > [class*="col-"] {
    display: flex;
    margin-bottom: 24px;
}
.tcard-row .tcard {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 0;
}
/* Body flex-grows so author block always pins to the bottom */
.tcard-row .tcard-body { flex-grow: 1; }


/* ---- Team page avatar circles (matches testimonial card avatar style) ---- */
.team-avatar-card {
    background: #fff;
    border-radius: 8px;
    padding: 28px 22px 26px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #ebeff2;
    text-align: center;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    margin-bottom: 24px;
}
.team-avatar-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.team-avatar-circle {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 38px;
    letter-spacing: 1px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
.team-avatar-circle.bg-1 { background: linear-gradient(135deg, #EF9535 0%, #946737 100%); }
.team-avatar-circle.bg-2 { background: linear-gradient(135deg, #7DBA2F 0%, #4a7818 100%); }
.team-avatar-circle.bg-3 { background: linear-gradient(135deg, #4a90c2 0%, #2d5e84 100%); }
.team-avatar-circle.bg-4 { background: linear-gradient(135deg, #b96fb0 0%, #6e3a87 100%); }
.team-avatar-circle.bg-5 { background: linear-gradient(135deg, #c2604a 0%, #843d2d 100%); }
.team-avatar-circle.bg-6 { background: linear-gradient(135deg, #4a7c80 0%, #2d4f54 100%); }
.team-avatar-circle.bg-7 { background: linear-gradient(135deg, #d49a3e 0%, #8b6024 100%); }
.team-avatar-circle.bg-8 { background: linear-gradient(135deg, #6b8e23 0%, #3f5618 100%); }
.team-avatar-circle.bg-9 { background: linear-gradient(135deg, #5b7ec4 0%, #2f4d8a 100%); }
.team-avatar-circle.bg-10 { background: linear-gradient(135deg, #c47b73 0%, #7a3e36 100%); }

.team-avatar-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 18px;
    display: block;
    object-fit: cover;
    object-position: 50% 22%;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    border: 3px solid #fff;
}

.team-avatar-card .name {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 4px;
}
.team-avatar-card .title {
    font-size: 13px;
    color: #6b7780;
    margin: 0 0 14px;
    line-height: 1.4;
}
.team-avatar-card .contact {
    font-size: 13px;
    color: #4a5560;
    line-height: 1.55;
}
.team-avatar-card .contact a { color: #EF9535; }

/* Equal-height row */
.team-grid-row {
    display: flex;
    flex-wrap: wrap;
}
.team-grid-row > [class*="col-"] {
    display: flex;
    margin-bottom: 0;
}
.team-grid-row .team-avatar-card {
    width: 100%;
    margin-bottom: 24px;
}


/* Team avatar card — bio paragraph */
.team-avatar-card .bio {
    font-size: 13.5px;
    color: #4a5560;
    line-height: 1.55;
    margin: 0 0 14px;
    text-align: left;
}


/* ============================================================
   Chat widget — design-only mock (no real backend wired)
   ============================================================ */

/* Floating bubble button (bottom-right) */
.chat-bubble {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 10000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 0;
    background: #EF9535;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(239, 149, 53, 0.4), 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.chat-bubble:hover { transform: translateY(-2px); background: #946737; box-shadow: 0 10px 28px rgba(239, 149, 53, 0.5), 0 4px 14px rgba(0,0,0,0.15); }
.chat-bubble:focus-visible { outline: 3px solid rgba(239, 149, 53, 0.4); outline-offset: 3px; }

.chat-bubble-icon, .chat-bubble-close-icon {
    display: flex;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.chat-bubble-close-icon {
    position: absolute;
    opacity: 0;
    transform: scale(0.6) rotate(-90deg);
}
.chat-bubble.is-open .chat-bubble-icon { opacity: 0; transform: scale(0.6) rotate(90deg); }
.chat-bubble.is-open .chat-bubble-close-icon { opacity: 1; transform: scale(1) rotate(0deg); }

.chat-bubble-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #fff;
    color: #EF9535;
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: opacity 0.2s, transform 0.2s;
}
.chat-bubble.is-open .chat-bubble-badge { opacity: 0; transform: scale(0); }

/* The expanding chat panel */
.chat-panel {
    position: fixed;
    right: 22px;
    bottom: 96px;       /* sits above the bubble */
    z-index: 9999;
    width: 410px;
    max-height: 560px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.96);
    transform-origin: bottom right;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
}
.chat-panel.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Maximized state — desktop */
.chat-panel.is-maximized {
    right: 22px;
    bottom: 22px;
    left: auto;
    top: auto;
    width: min(900px, calc(100vw - 44px));
    height: calc(100vh - 44px);
    max-height: calc(100vh - 44px);
    border-radius: 14px;
}
/* Tablet/phone — full screen with a small inset */
@media (max-width: 768px) {
    .chat-panel.is-maximized {
        right: 8px;
        left: 8px;
        bottom: 8px;
        top: 8px;
        width: auto;
        height: auto;
        max-height: none;
        border-radius: 10px;
    }
}

/* Header maximize button */
.chat-panel-header-actions {
    margin-left: auto;
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}
.chat-panel-action {
    background: rgba(255,255,255,0.18);
    border: 0;
    width: 30px; height: 30px;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    padding: 0;
}
.chat-panel-action:hover { background: rgba(255,255,255,0.32); }
.chat-panel-action:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }

/* Swap maximize/minimize icons based on panel state */
.chat-panel .icon-maximize { display: inline-flex; }
.chat-panel .icon-minimize { display: none; }
.chat-panel.is-maximized .icon-maximize { display: none; }
.chat-panel.is-maximized .icon-minimize { display: inline-flex; }

/* Hide the floating bubble entirely when the panel is maximized — otherwise
   it overlaps the send button in the bottom-right corner. Use the body class
   set from JS so we can target the bubble (which is a sibling, not a child). */
body.chat-maximized .chat-bubble { display: none; }

@media (max-width: 480px) {
    .chat-panel {
        right: 12px;
        left: 12px;
        bottom: 86px;
        width: auto;
        max-height: calc(100vh - 110px);
    }
    .chat-bubble { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}

/* Header */
.chat-panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: linear-gradient(135deg, #EF9535 0%, #946737 100%);
    color: #fff;
    flex-shrink: 0;
}
.chat-panel-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.3);
    flex-shrink: 0;
}
.chat-panel-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
}
.chat-panel-status {
    font-size: 12px;
    opacity: 0.92;
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.chat-panel-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #7DBA2F;
    box-shadow: 0 0 0 2px rgba(125, 186, 47, 0.4);
}

/* Body / messages */
.chat-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 18px 16px 8px;
    background: #f7f8f9;
    min-height: 280px;
}

.chat-msg {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    align-items: flex-end;
}
.chat-msg-them { justify-content: flex-start; }
.chat-msg-us { justify-content: flex-end; flex-direction: row-reverse; }

.chat-msg-avatar {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.chat-msg-avatar.bg-1 { background: linear-gradient(135deg, #EF9535 0%, #946737 100%); }

.chat-msg-bubble {
    max-width: 78%;
    background: #fff;
    border-radius: 14px;
    padding: 10px 14px 8px;
    font-size: 13.5px;
    line-height: 1.5;
    color: #2c3e50;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.chat-msg-bubble p { margin: 0 0 6px; }
.chat-msg-bubble p:last-of-type { margin-bottom: 4px; }
.chat-msg-them .chat-msg-bubble { border-bottom-left-radius: 4px; }
.chat-msg-us .chat-msg-bubble {
    background: #EF9535;
    color: #fff;
    border-bottom-right-radius: 4px;
}
.chat-msg-time {
    display: block;
    font-size: 10.5px;
    color: #6b7780;
    margin-top: 2px;
}
.chat-msg-us .chat-msg-time { color: rgba(255,255,255,0.8); }

/* Quick-suggestion chips */
.chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 4px 0 10px 42px;
}
.chat-suggest {
    background: #fff;
    border: 1px solid #d8e1e7;
    color: #4a5560;
    border-radius: 16px;
    padding: 7px 13px;
    font-size: 12.5px;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.chat-suggest:hover {
    background: #fef4e6;
    border-color: #EF9535;
    color: #946737;
}

/* Footer / input */
.chat-panel-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px 6px;
    border-top: 1px solid #ebeff2;
    background: #fff;
    flex-shrink: 0;
}
.chat-input {
    flex: 1;
    border: 1px solid #d8e1e7;
    border-radius: 22px;
    padding: 9px 14px;
    font-size: 14px;
    font-family: inherit;
    color: #2c3e50;
    background: #fff;
    outline: none;
    transition: border-color 0.18s;
}
.chat-input:focus { border-color: #EF9535; }
.chat-send {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 0;
    background: #EF9535;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s;
}
.chat-send:hover { background: #946737; }

.chat-panel-foot-note {
    text-align: center;
    font-size: 11.5px;
    color: #6b7780;
    padding: 4px 14px 12px;
    background: #fff;
}
.chat-panel-foot-note a { color: #EF9535; font-weight: 600; }

/* Typing indicator - 3 bouncing dots inside a "them" bubble */
.chat-typing { display: inline-flex; gap: 4px; align-items: center; padding: 2px 0; }
.chat-typing span {
    width: 7px; height: 7px; border-radius: 50%;
    background: #c4ccd2;
    animation: chatDot 1.1s infinite ease-in-out;
}
.chat-typing span:nth-child(2) { animation-delay: 0.18s; }
.chat-typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes chatDot {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
    30% { transform: translateY(-4px); opacity: 1; }
}

/* Disabled input while a stream is in flight */
.chat-input:disabled, .chat-send:disabled { opacity: 0.55; cursor: not-allowed; }
.chat-send:disabled:hover { background: #EF9535; }

/* Inline error / system note bubble inside the chat body */
.chat-sys-note {
    text-align: center;
    font-size: 12px;
    color: #6b7780;
    margin: 6px 0 12px;
    padding: 0 16px;
}
.chat-sys-note a { color: #EF9535; font-weight: 600; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.carrier-partner-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
}

.carrier-partner-card {
    min-height: 122px;
    background: #fff;
    border: 1px solid #e3e9ee;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(33, 47, 60, 0.05);
}

.carrier-partner-card img {
    max-width: 165px;
    max-height: 66px;
    object-fit: contain;
}

.carrier-partner-name {
    color: #2c3e50;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

@media (max-width: 991px) {
    .carrier-partner-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .carrier-partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 420px) {
    .carrier-partner-grid { grid-template-columns: 1fr; }
}

/* Move sticky-cta to bottom-LEFT so it doesn't collide with chat bubble */
.sticky-cta { right: auto !important; left: 22px !important; }
@media (max-width: 600px) {
    .sticky-cta { right: auto !important; left: 14px !important; }
}
