/* =========================================================
   Best Home Watch Companies – Public Styles v3
   Brand: Navy (#133c55) + Teal (#0a9396)
   Font: Work Sans
   ========================================================= */

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

:root {
    --bhwc-navy:      #133c55;
    --bhwc-navy-mid:  #1a4f6e;
    --bhwc-navy-deep: #091e2d;
    --bhwc-teal:      #0a9396;
    --bhwc-teal2:     #057073;
    --bhwc-teal-lt:   #e8f5f5;
    --bhwc-gold:      #f59e0b;
    --bhwc-silver:    #94a3b8;
    --bhwc-bronze:    #a0522d;
    --bhwc-bg:        #f4f7fa;
    --bhwc-card:      #ffffff;
    --bhwc-border:    #e2eaf2;
    --bhwc-text:      #1a2633;
    --bhwc-muted:     #5a6a7a;
    --bhwc-radius:    14px;
    --bhwc-shadow:    0 2px 14px rgba(19,60,85,.07);
    --bhwc-shadow-lg: 0 10px 40px rgba(19,60,85,.14);
    --font-main:      'Work Sans', sans-serif;
    --font-serif:     'Playfair Display', Georgia, serif;
}

/* -------------------------------------------------------
   Page Layout
   ------------------------------------------------------- */
.bhwc-page-layout {
    display: flex;
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px;
    font-family: var(--font-main);
    color: var(--bhwc-text);
    align-items: flex-start;
}

.bhwc-main { flex: 1; min-width: 0; }

/* -------------------------------------------------------
   Sidebar
   ------------------------------------------------------- */
.bhwc-sidebar {
    width: 250px;
    flex-shrink: 0;
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bhwc-sidebar-box {
    background: var(--bhwc-card);
    border: 1px solid var(--bhwc-border);
    border-radius: var(--bhwc-radius);
    padding: 20px;
    box-shadow: var(--bhwc-shadow);
}

.bhwc-sidebar-title {
    font-family: var(--font-main);
    font-size: 11px;
    font-weight: 800;
    color: var(--bhwc-muted);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--bhwc-border);
}

/* City pills — matching the screenshot style */
.bhwc-sidebar-cities {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bhwc-sidebar-cities li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    border: 1px solid var(--bhwc-border);
    background: var(--bhwc-bg);
    text-decoration: none;
    color: var(--bhwc-text);
    font-size: 14px;
    font-weight: 600;
    transition: all .15s;
}

.bhwc-sidebar-cities li a:hover {
    background: var(--bhwc-teal-lt);
    border-color: var(--bhwc-teal);
    color: var(--bhwc-teal);
}

.bhwc-sidebar-cities li.active a {
    background: var(--bhwc-teal-lt);
    border-color: var(--bhwc-teal);
    color: var(--bhwc-teal);
    font-weight: 700;
}

/* Checkmark icon matching screenshot */
.bhwc-sidebar-cities li a::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--bhwc-teal-lt);
    color: var(--bhwc-teal);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
}

.bhwc-sidebar-cities li.active a::before {
    background: var(--bhwc-teal);
    color: #fff;
}

/* Category tabs */
.bhwc-sidebar-cats { margin-top: 4px; }

.bhwc-sidebar-cats-title {
    font-size: 11px;
    font-weight: 800;
    color: var(--bhwc-muted);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin: 0 0 10px;
}

.bhwc-cat-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bhwc-cat-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--bhwc-border);
    background: var(--bhwc-bg);
    color: var(--bhwc-text);
    transition: all .15s;
}

.bhwc-cat-link:hover {
    border-color: var(--bhwc-teal);
    background: var(--bhwc-teal-lt);
    color: var(--bhwc-teal);
}

.bhwc-cat-link.active {
    background: var(--bhwc-navy);
    border-color: var(--bhwc-navy);
    color: #fff;
}

/* -------------------------------------------------------
   Container & Header
   ------------------------------------------------------- */
.bhwc-container {
    font-family: var(--font-main);
    color: var(--bhwc-text);
}

.bhwc-header {
    padding: 0 0 28px;
    border-bottom: 2px solid var(--bhwc-border);
    margin-bottom: 28px;
}

.bhwc-title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    color: var(--bhwc-navy);
    margin: 0 0 10px;
    line-height: 1.2;
    font-weight: 700;
}

.bhwc-subtitle {
    color: var(--bhwc-muted);
    font-size: 1.05rem;
    margin: 0;
    line-height: 1.6;
    font-family: var(--font-main);
}

.bhwc-breadcrumb {
    font-size: 13px;
    color: var(--bhwc-muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-family: var(--font-main);
}

.bhwc-breadcrumb a { color: var(--bhwc-teal); text-decoration: none; font-weight: 600; }
.bhwc-breadcrumb a:hover { text-decoration: underline; }
.bhwc-breadcrumb span { opacity: .4; }

/* -------------------------------------------------------
   Company Cards
   ------------------------------------------------------- */
.bhwc-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 40px;
}

.bhwc-card {
    display: grid;
    grid-template-columns: 56px 120px 1fr auto;
    gap: 20px;
    align-items: center;
    background: var(--bhwc-card);
    border: 1px solid var(--bhwc-border);
    border-radius: var(--bhwc-radius);
    padding: 20px 24px;
    box-shadow: var(--bhwc-shadow);
    transition: box-shadow .2s, transform .2s;
    position: relative;
    overflow: hidden;
}

.bhwc-card:hover { box-shadow: var(--bhwc-shadow-lg); transform: translateY(-3px); }

.bhwc-medal-gold   { border-left: 5px solid var(--bhwc-gold); }
.bhwc-medal-silver { border-left: 5px solid var(--bhwc-silver); }
.bhwc-medal-bronze { border-left: 5px solid var(--bhwc-bronze); }

.bhwc-rank { display: flex; align-items: center; justify-content: center; }

.bhwc-rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    background: var(--bhwc-navy);
    color: #fff;
    border-radius: 50%;
    font-weight: 800;
    font-size: 16px;
    font-family: var(--font-main);
}

.bhwc-medal-icon { font-size: 36px; line-height: 1; }

.bhwc-logo-wrap {
    display: flex; align-items: center; justify-content: center;
    width: 110px; height: 70px;
    background: #fff;
    border: 1px solid var(--bhwc-border);
    border-radius: 10px;
    padding: 8px;
    flex-shrink: 0;
}

.bhwc-logo { width: 100%; height: 100%; object-fit: contain; }

.bhwc-logo-placeholder {
    width: 110px; height: 70px;
    background: linear-gradient(135deg, var(--bhwc-navy), var(--bhwc-navy-mid));
    color: #fff; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 20px;
    text-transform: uppercase;
    font-family: var(--font-main);
    flex-shrink: 0;
}

.bhwc-info { min-width: 0; }

.bhwc-company-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--bhwc-navy);
    margin: 0 0 7px;
    font-family: var(--font-main);
}

.bhwc-company-name a { color: inherit; text-decoration: none; }
.bhwc-company-name a:hover { color: var(--bhwc-teal); }

.bhwc-bio {
    color: var(--bhwc-muted);
    font-size: 0.95rem;
    margin: 0 0 7px;
    line-height: 1.6;
    font-family: var(--font-main);
}

.bhwc-phone { font-size: 0.9rem; color: var(--bhwc-muted); margin: 0; font-family: var(--font-main); }
.bhwc-phone a { color: var(--bhwc-teal); text-decoration: none; font-weight: 600; }
.bhwc-phone a:hover { text-decoration: underline; }

.bhwc-actions {
    display: flex;
    flex-direction: column;
    gap: 9px;
    align-items: stretch;
    flex-shrink: 0;
    min-width: 180px;
}

.bhwc-actions-top {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.bhwc-contact-btn {
    background: linear-gradient(135deg, var(--bhwc-teal), var(--bhwc-teal2));
    color: #fff; border: none;
    padding: 11px 16px;
    border-radius: 9px;
    font-size: 0.9rem; font-weight: 700;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
    text-align: center;
    font-family: var(--font-main);
    box-shadow: 0 4px 12px rgba(10,147,150,.28);
}

.bhwc-contact-btn:hover {
    background: linear-gradient(135deg, var(--bhwc-teal2), #045c5e);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(10,147,150,.38);
}

.bhwc-profile-btn {
    display: block; text-align: center;
    padding: 10px 16px;
    border: 1.5px solid var(--bhwc-navy);
    border-radius: 9px;
    color: var(--bhwc-navy);
    text-decoration: none;
    font-size: 0.88rem; font-weight: 700;
    transition: all .2s;
    font-family: var(--font-main);
}
.bhwc-profile-btn:hover { background: var(--bhwc-navy); color: #fff; }

.bhwc-website-btn {
    display: block; text-align: center;
    padding: 10px 16px;
    border: 1.5px solid var(--bhwc-border);
    border-radius: 9px;
    color: var(--bhwc-muted);
    text-decoration: none;
    font-size: 0.88rem; font-weight: 600;
    transition: all .2s;
    font-family: var(--font-main);
}
.bhwc-website-btn:hover { border-color: var(--bhwc-navy); color: var(--bhwc-navy); }

/* -------------------------------------------------------
   Modal
   ------------------------------------------------------- */
.bhwc-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 16px; }
.bhwc-modal-overlay { position: absolute; inset: 0; background: rgba(9,30,45,.7); backdrop-filter: blur(4px); animation: bhwcFadeIn .2s ease; }
@keyframes bhwcFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes bhwcSlideUp { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }

.bhwc-modal-box { position: relative; background: #fff; border-radius: 18px; padding: 36px 40px; width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto; box-shadow: 0 24px 80px rgba(0,0,0,.25); animation: bhwcSlideUp .25s ease; }
.bhwc-modal-close { position: absolute; top: 16px; right: 20px; background: none; border: none; font-size: 26px; color: var(--bhwc-muted); cursor: pointer; line-height: 1; padding: 4px 8px; border-radius: 4px; transition: background .15s, color .15s; }
.bhwc-modal-close:hover { background: #f1f5f9; color: var(--bhwc-text); }
.bhwc-modal-header { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--bhwc-border); }
.bhwc-modal-header h3 { font-family: var(--font-serif); font-size: 1.5rem; color: var(--bhwc-navy); margin: 0 0 6px; }
.bhwc-modal-header p { color: var(--bhwc-muted); font-size: 0.95rem; margin: 0; font-family: var(--font-main); }

#bhwc-contact-form .bhwc-form-row { margin-bottom: 16px; }
#bhwc-contact-form .bhwc-form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
#bhwc-contact-form .bhwc-field { display: flex; flex-direction: column; gap: 5px; }
#bhwc-contact-form label { font-size: 0.9rem; font-weight: 700; color: var(--bhwc-text); font-family: var(--font-main); }
#bhwc-contact-form .req { color: #b91c1c; }
#bhwc-contact-form input, #bhwc-contact-form textarea { border: 1.5px solid #cbd5e1; border-radius: 9px; padding: 11px 14px; font-size: 0.95rem; font-family: var(--font-main); color: var(--bhwc-text); transition: border-color .15s, box-shadow .15s; width: 100%; box-sizing: border-box; background: #fff; }
#bhwc-contact-form input:focus, #bhwc-contact-form textarea:focus { border-color: var(--bhwc-teal); box-shadow: 0 0 0 3px rgba(10,147,150,.15); outline: none; }

.bhwc-form-notice { padding: 12px 16px; border-radius: 8px; font-size: 0.92rem; margin-bottom: 16px; font-family: var(--font-main); }
.bhwc-form-error { background: #fef2f2; border: 1px solid #fca5a5; color: #b91c1c; }
.bhwc-form-success { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }

.bhwc-form-footer { margin-top: 8px; }
.bhwc-submit-btn { width: 100%; background: linear-gradient(135deg, var(--bhwc-teal), var(--bhwc-teal2)); color: #fff; border: none; padding: 14px 24px; border-radius: 10px; font-size: 1rem; font-weight: 700; cursor: pointer; font-family: var(--font-main); transition: opacity .2s, transform .1s; box-shadow: 0 4px 14px rgba(10,147,150,.3); }
.bhwc-submit-btn:hover { opacity: .92; transform: scale(1.01); }
.bhwc-submit-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.bhwc-privacy-note { font-size: 0.8rem; color: var(--bhwc-muted); text-align: center; margin: 10px 0 0; font-family: var(--font-main); }

/* -------------------------------------------------------
   Misc
   ------------------------------------------------------- */
.bhwc-error { padding: 16px; background: #fef2f2; border: 1px solid #fca5a5; border-radius: 8px; color: #b91c1c; font-family: var(--font-main); }
.bhwc-verified-badge { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; background: var(--bhwc-teal); color: #fff; border-radius: 50%; font-size: 10px; font-weight: 700; margin-left: 5px; vertical-align: middle; flex-shrink: 0; }
.bhwc-bio-placeholder { color: #9aabb8 !important; font-style: italic; }
.bhwc-contact-btn-locked { background: #64748b !important; box-shadow: none !important; cursor: pointer; }
.bhwc-contact-btn-locked:hover { background: #475569 !important; }

.bhwc-free-section { margin-top: 40px; padding-top: 32px; border-top: 2px solid var(--bhwc-border); }
.bhwc-free-header { margin-bottom: 18px; }
.bhwc-free-title { font-family: var(--font-serif); font-size: 1.3rem; color: var(--bhwc-navy); margin-bottom: 6px; }
.bhwc-free-subtitle { font-size: .9rem; color: var(--bhwc-muted); font-family: var(--font-main); }
.bhwc-free-subtitle a { color: var(--bhwc-teal); font-weight: 600; }
.bhwc-free-list { display: flex; flex-direction: column; gap: 10px; }
.bhwc-free-card { background: var(--bhwc-card); border: 1px solid var(--bhwc-border); border-radius: 10px; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; transition: box-shadow .18s; }
.bhwc-free-card:hover { box-shadow: 0 3px 14px rgba(18,36,64,.07); }
.bhwc-free-info { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; min-width: 0; }
.bhwc-free-name { font-weight: 700; font-size: .95rem; color: var(--bhwc-navy); margin: 0; font-family: var(--font-main); }
.bhwc-free-name a { color: inherit; }
.bhwc-free-name a:hover { color: var(--bhwc-teal); }
.bhwc-free-phone, .bhwc-free-web { font-size: .85rem; color: var(--bhwc-muted); text-decoration: none; font-family: var(--font-main); }
.bhwc-free-web { color: var(--bhwc-teal); }
.bhwc-free-actions { display: flex; gap: 8px; flex-shrink: 0; }
.bhwc-claim-btn { padding: 8px 14px; border-radius: 8px; background: var(--bhwc-teal); color: #fff; font-size: .82rem; font-weight: 700; text-decoration: none; transition: background .15s; white-space: nowrap; font-family: var(--font-main); }
.bhwc-claim-btn:hover { background: var(--bhwc-teal2); }
.bhwc-profile-btn-sm { padding: 8px 14px !important; font-size: .82rem !important; }
.bhwc-contact-btn-sm { padding: 8px 14px !important; font-size: .82rem !important; }

/* -------------------------------------------------------
   Responsive
   ------------------------------------------------------- */
@media (max-width: 900px) {
    .bhwc-page-layout { flex-direction: column; }
    .bhwc-sidebar { width: 100%; position: static; flex-direction: row; flex-wrap: wrap; }
    .bhwc-sidebar-box { flex: 1; min-width: 200px; }
}

@media (max-width: 700px) {
    /* Switch card to vertical stacked layout */
    .bhwc-card {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 18px;
    }

    /* Rank centered above logo */
    .bhwc-card .bhwc-rank {
        position: static;
        justify-content: center;
        margin-bottom: 0;
    }

    /* Logo centered, full width */
    .bhwc-logo-wrap {
        width: 100%;
        height: 80px;
        border-radius: 10px;
        justify-content: center;
    }

    .bhwc-logo-placeholder {
        width: 100%;
        height: 80px;
        font-size: 22px;
    }

    /* Company name centered below logo */
    .bhwc-company-name {
        text-align: center;
        font-size: 1.05rem;
    }

    /* Actions — profile+website row side-by-side on mobile, then full-width quote */
    .bhwc-actions {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .bhwc-actions-top {
        display: flex;
        flex-direction: row;
        gap: 8px;
    }
    .bhwc-profile-btn,
    .bhwc-website-btn {
        flex: 1;
    }

    /* Quote button full width at bottom */
    .bhwc-contact-btn {
        width: 100%;
        padding: 14px;
        font-size: 1rem;
        font-weight: 800;
    }

    #bhwc-contact-form .bhwc-form-row-2 { grid-template-columns: 1fr; }
    .bhwc-modal-box { padding: 24px 20px; }
}

@media (max-width: 480px) {
    .bhwc-page-layout { padding: 20px 16px; }
}

/* -------------------------------------------------------
   Force sidebar layout to work inside Avada containers
   ------------------------------------------------------- */

/* Break out of Avada's narrow content wrapper */
.post-content .bhwc-page-layout,
.entry-content .bhwc-page-layout,
.fusion-post-content .bhwc-page-layout {
    margin-left: -40px !important;
    margin-right: -40px !important;
    max-width: calc(100% + 80px) !important;
    width: calc(100% + 80px) !important;
}

/* Ensure flex layout works */
.bhwc-page-layout {
    display: flex !important;
    flex-direction: row !important;
    gap: 32px !important;
    align-items: flex-start !important;
}

.bhwc-main {
    flex: 1 !important;
    min-width: 0 !important;
}

.bhwc-sidebar {
    width: 240px !important;
    flex-shrink: 0 !important;
    min-width: 240px !important;
}

/* -------------------------------------------------------
   Services pills on company bio page
   ------------------------------------------------------- */
.bhwc-services-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.bhwc-service-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    background: var(--bhwc-bg);
    border: 1px solid var(--bhwc-border);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    color: var(--bhwc-text);
    font-family: var(--font-main);
}

.bhwc-service-pill::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: var(--bhwc-teal-lt);
    color: var(--bhwc-teal);
    border-radius: 50%;
    font-size: 10px;
    font-weight: 800;
    flex-shrink: 0;
}

/* ── Star Ratings ─────────────────────────────────────────── */
.bhwc-stars { display: inline-flex; gap: 2px; align-items: center; }
.bhwc-star { font-size: 16px; line-height: 1; }
.bhwc-star-full  { color: #f59e0b; }
.bhwc-star-half  { color: #f59e0b; }
.bhwc-star-empty { color: #d1d5db; }

.bhwc-card-stars {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
}
.bhwc-card-rating-num {
    font-size: 13px;
    font-weight: 700;
    color: #0c2340;
}
.bhwc-card-review-count {
    font-size: 12px;
    color: #6b7280;
}

/* Profile hero stars */
.bhwc-hero-stars {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 12px;
}
.bhwc-hero-stars .bhwc-stars { font-size: 20px; }
.bhwc-hero-rating-num {
    font-size: 18px;
    font-weight: 800;
    color: #0c2340;
}
.bhwc-hero-review-count {
    font-size: 14px;
    color: rgba(255,255,255,0.65);
}

/* ── Reviews Section ──────────────────────────────────────── */
.bhwc-reviews-section {
    background: #f4f7fa;
    padding: 60px 32px;
    border-top: 1px solid #e2eaf2;
}
.bhwc-reviews-inner {
    max-width: 860px;
    margin: 0 auto;
}
.bhwc-reviews-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 16px;
    flex-wrap: wrap;
}
.bhwc-reviews-title {
    font-size: 1.5rem;
    color: #0c2340;
    margin: 0 0 8px;
    font-family: 'Playfair Display', Georgia, serif;
}
.bhwc-reviews-avg {
    display: flex;
    align-items: center;
    gap: 10px;
}
.bhwc-reviews-avg-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0c2340;
    line-height: 1;
}
.bhwc-reviews-avg .bhwc-stars { font-size: 22px; }
.bhwc-reviews-count {
    font-size: 14px;
    color: #6b7280;
}
.bhwc-write-review-btn {
    background: #0c2340;
    color: #fff;
    border: none;
    border-radius: 9px;
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Work Sans', sans-serif;
    white-space: nowrap;
    transition: background .2s;
}
.bhwc-write-review-btn:hover { background: #0a9396; }

/* Review form */
.bhwc-review-form-wrap {
    background: #fff;
    border: 1.5px solid #e2eaf2;
    border-radius: 14px;
    padding: 28px;
    margin-bottom: 28px;
    box-shadow: 0 2px 14px rgba(12,35,64,.06);
}
.bhwc-review-form-wrap h3 {
    font-size: 16px;
    color: #0c2340;
    margin: 0 0 16px;
}
.bhwc-star-picker {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
}
.bhwc-star-pick {
    font-size: 32px;
    color: #d1d5db;
    cursor: pointer;
    transition: color .1s, transform .1s;
    line-height: 1;
}
.bhwc-star-pick:hover { transform: scale(1.15); }
.bhwc-star-hint {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 16px;
    min-height: 18px;
}
.bhwc-review-input {
    width: 100%;
    border: 1.5px solid #e2eaf2;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    font-family: 'Work Sans', sans-serif;
    color: #0c2340;
    margin-bottom: 12px;
    box-sizing: border-box;
}
.bhwc-review-input:focus {
    border-color: #0a9396;
    outline: none;
    box-shadow: 0 0 0 3px rgba(10,147,150,.1);
}

/* Review cards */
.bhwc-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.bhwc-review-card {
    background: #fff;
    border: 1px solid #e2eaf2;
    border-radius: 14px;
    padding: 22px 24px;
    box-shadow: 0 2px 10px rgba(12,35,64,.05);
}
.bhwc-review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.bhwc-review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #0c2340;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    flex-shrink: 0;
}
.bhwc-review-name {
    font-size: 15px;
    font-weight: 700;
    color: #0c2340;
}
.bhwc-review-date {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
}
.bhwc-review-stars { margin-left: auto; }
.bhwc-review-stars .bhwc-stars { font-size: 18px; }
.bhwc-review-comment {
    font-size: 15px;
    color: #374151;
    line-height: 1.7;
    margin: 0;
}
.bhwc-reviews-empty {
    text-align: center;
    padding: 40px;
    color: #9ca3af;
    font-size: 15px;
}

/* ── Top Nav Bar ─────────────────────────────────────────── */
.bhwc-top-nav {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 24px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.bhwc-top-nav-section {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.bhwc-top-nav-label {
    font-size: 11px;
    font-weight: 800;
    color: #5a6a7a;
    text-transform: uppercase;
    letter-spacing: .08em;
    white-space: nowrap;
    flex-shrink: 0;
}
.bhwc-top-nav-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.bhwc-top-nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1.5px solid #e2eaf2;
    background: #fff;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all .15s;
    white-space: nowrap;
}
.bhwc-top-nav-pill:hover {
    border-color: #0a9396;
    color: #0a9396;
    background: #f0fdf4;
    text-decoration: none;
}
.bhwc-top-nav-pill.active {
    background: #0c2340;
    border-color: #0c2340;
    color: #fff;
}

/* ── Group Separators ────────────────────────────────────── */
.bhwc-group-separator {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 28px 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2eaf2;
}
.bhwc-group-separator:first-child {
    margin-top: 8px;
}
.bhwc-group-icon {
    font-size: 18px;
    line-height: 1;
}
.bhwc-group-label {
    font-size: 15px;
    font-weight: 800;
    color: #0c2340;
    letter-spacing: -0.01em;
}
.bhwc-group-range {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
    margin-left: auto;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* Update page layout to full width now sidebar is gone */
.bhwc-page-layout {
    display: block !important;
    max-width: 1100px;
    margin: 0 auto;
}
.bhwc-main {
    width: 100% !important;
}

/* ── Ranking Page Hero ───────────────────────────────────── */
.bhwc-ranking-hero {
    background: linear-gradient(135deg, #091e2d 0%, #133c55 60%, #1a4f6e 100%);
    padding: 56px 32px 48px;
    position: relative;
    overflow: hidden;
}
.bhwc-ranking-hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 44px 44px;
    pointer-events: none;
}
.bhwc-ranking-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.bhwc-breadcrumb-light {
    font-size: 13px;
    color: rgba(255,255,255,0.5) !important;
    margin-bottom: 16px !important;
}
.bhwc-breadcrumb-light a {
    color: rgba(255,255,255,0.6) !important;
    text-decoration: none;
}
.bhwc-breadcrumb-light a:hover { color: #fff !important; }
.bhwc-breadcrumb-light span { margin: 0 6px; }
.bhwc-ranking-hero-title {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem) !important;
    color: #ffffff !important;
    margin: 0 0 12px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
}
.bhwc-ranking-hero-sub {
    color: rgba(255,255,255,0.6) !important;
    font-size: 16px !important;
    margin: 0 !important;
    line-height: 1.6 !important;
}

/* ── Fix layout to full-width stacked ────────────────────── */
.bhwc-ranking-hero {
    text-align: center;
}
.bhwc-ranking-hero-inner {
    text-align: center;
}
.bhwc-breadcrumb-light {
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
}
.bhwc-top-nav {
    text-align: center;
    align-items: center !important;
    padding: 24px 24px 0 !important;
}
.bhwc-top-nav-section {
    justify-content: center !important;
    flex-wrap: wrap;
}
.bhwc-top-nav-pills {
    justify-content: center !important;
}
.bhwc-top-nav-label {
    text-align: center;
}

/* ── Break hero out of Avada 1200px container ────────────── */
.bhwc-ranking-hero {
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    width: 100vw !important;
    max-width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
}

/* ── Hero keyword tags ───────────────────────────────────── */
.bhwc-ranking-hero-tags,
.bhwc-city-hero-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 20px;
}
.bhwc-ranking-hero-tags span,
.bhwc-city-hero-keywords span {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.85);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}
.bhwc-city-hero-sub {
    color: rgba(255,255,255,0.7) !important;
    font-size: 16px !important;
    line-height: 1.7 !important;
    margin: 12px 0 0 !important;
    max-width: 680px;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ── Directory Page ──────────────────────────────────────── */

/* ── Company name on ranking cards — large, bold, inherits Avada font ── */
.bhwc-company-name {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #0c2340 !important;
    line-height: 1.25 !important;
    margin: 0 0 6px !important;
}
.bhwc-company-name a {
    color: #0c2340 !important;
    text-decoration: none !important;
}
.bhwc-company-name a:hover {
    color: #0a9396 !important;
}

/* ── Fix keyword pills — force white text over Avada span overrides ── */
.bhwc-ranking-hero-tags span,
.bhwc-city-hero-keywords span {
    color: rgba(255,255,255,0.9) !important;
    background: rgba(255,255,255,0.12) !important;
    border: 1px solid rgba(255,255,255,0.25) !important;
    border-radius: 20px !important;
    padding: 5px 14px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    display: inline-block !important;
}

/* ── Larger company names on ranking cards ── */
.bhwc-company-name,
.bhwc-company-name a {
    font-size: 1.35rem !important;
    font-weight: 700 !important;
}

/* ── State page h2 consistency ── */
.bhwc-state-cities-header h2,
.bhwc-state-inline-header h2 {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #0c2340 !important;
    line-height: 1.2 !important;
    margin: 0 0 8px !important;
}

/* ── Card v2 redesign ──────────────────────────────── */
.bhwc-card-v2 {
    background: #fff;
    border: 1.5px solid #e2eaf2;
    border-radius: 14px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow .2s, border-color .2s;
    display: block !important;
    padding: 0 !important;
    gap: 0 !important;
    grid-template-columns: none !important;
    transform: none !important;
}
.bhwc-card-v2:hover {
    box-shadow: 0 8px 28px rgba(10,147,150,.12);
    border-color: #0a9396;
}
.bhwc-card-v2.bhwc-medal-gold   { border-left: 5px solid #f59e0b; }
.bhwc-card-v2.bhwc-medal-silver { border-left: 5px solid #94a3b8; }
.bhwc-card-v2.bhwc-medal-bronze { border-left: 5px solid #cd7f32; }

.bhwc-card-v2-main {
    display: grid;
    grid-template-columns: 76px 1fr 170px;
    align-items: stretch;
}

/* Rank col */
.bhwc-v2-rank {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 18px 10px;
    border-right: 1px solid #f1f5f9;
}
.bhwc-v2-badge {
    width: 46px; height: 46px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 900; color: #fff;
    background: #0a9396; color: #fff;
}
.bhwc-medal-gold   .bhwc-v2-badge { background: #f59e0b; color: #fff; box-shadow: 0 3px 10px rgba(245,158,11,.3); }
.bhwc-medal-silver .bhwc-v2-badge { background: #94a3b8; color: #fff; box-shadow: 0 3px 10px rgba(148,163,184,.3); }
.bhwc-medal-bronze .bhwc-v2-badge { background: #cd7f32; color: #fff; box-shadow: 0 3px 10px rgba(205,127,50,.3); }
.bhwc-v2-rank-label {
    font-size: 9px; font-weight: 800; text-transform: uppercase;
    letter-spacing: .06em; margin-top: 5px; color: #9ca3af;
}
.bhwc-medal-gold   .bhwc-v2-rank-label { color: #f59e0b; }
.bhwc-medal-silver .bhwc-v2-rank-label { color: #94a3b8; }
.bhwc-medal-bronze .bhwc-v2-rank-label { color: #cd7f32; }

/* Info col */
.bhwc-v2-info {
    padding: 16px 20px;
    display: flex; flex-direction: column;
    justify-content: center; gap: 7px;
}
.bhwc-v2-top { display: flex; align-items: center; gap: 7px; }
.bhwc-v2-name {
    font-size: 16px; font-weight: 800; color: #0c2340;
    text-decoration: none;
}
.bhwc-v2-name:hover { color: #0a9396; }
.bhwc-v2-verified {
    width: 17px; height: 17px; background: #0a9396;
    border-radius: 50%; display: inline-flex;
    align-items: center; justify-content: center; flex-shrink: 0;
}
.bhwc-v2-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bhwc-v2-meta-item { font-size: 12px; color: #6b7280; }
.bhwc-v2-meta-item strong { color: #374151; font-weight: 700; }
.bhwc-v2-stars { color: #f59e0b; font-size: 12px; }
.bhwc-v2-star-count { font-size: 12px; color: #6b7280; }
.bhwc-v2-badges { display: flex; gap: 5px; flex-wrap: wrap; }
.bhwc-v2-badge-pill {
    font-size: 11px; font-weight: 700;
    padding: 3px 8px; border-radius: 20px;
    display: inline-flex; align-items: center; gap: 3px;
}
.bhwc-v2-badge-teal   { background: #f0fafa; color: #0a9396; border: 1px solid #99f6e4; }
.bhwc-v2-badge-blue   { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.bhwc-v2-badge-green  { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }

/* Actions col */
.bhwc-v2-actions {
    border-left: 1px solid #f1f5f9;
    display: flex; flex-direction: column;
}
.bhwc-v2-actions-default {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 14px 14px; gap: 8px;
}
.bhwc-v2-actions-hover { display: none; flex-direction: column; flex: 1; }
.bhwc-card-v2:hover .bhwc-v2-actions-default { display: none; }
.bhwc-card-v2:hover .bhwc-v2-actions-hover   { display: flex; }

.bhwc-v2-btn-primary {
    display: flex; align-items: center; justify-content: center;
    background: #0a9396; color: #fff !important;
    padding: 9px 14px; border-radius: 8px;
    font-size: 13px; font-weight: 700; text-decoration: none;
    width: 100%; transition: background .15s; text-align: center;
}
.bhwc-v2-btn-primary:hover { background: #057073; }
.bhwc-v2-btn-outline {
    display: flex; align-items: center; justify-content: center;
    background: transparent; color: #374151 !important;
    padding: 8px 14px; border-radius: 8px;
    font-size: 13px; font-weight: 600; text-decoration: none;
    border: 1.5px solid #e2eaf2; width: 100%; transition: all .15s; text-align: center;
}
.bhwc-v2-btn-outline:hover { border-color: #0a9396; color: #0a9396 !important; }
.bhwc-v2-action-btn {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 14px; font-size: 13px; font-weight: 600;
    color: #374151; text-decoration: none;
    border-bottom: 1px solid #f1f5f9;
    transition: background .12s, color .12s;
}
.bhwc-v2-action-btn:last-of-type { border-bottom: none; }
.bhwc-v2-action-btn:hover { background: #f0fafa; color: #0a9396; }
.bhwc-v2-action-icon {
    width: 26px; height: 26px; border-radius: 6px;
    background: #f1f5f9; display: flex; align-items: center;
    justify-content: center; font-size: 13px; flex-shrink: 0;
    transition: background .12s;
}
.bhwc-v2-action-btn:hover .bhwc-v2-action-icon { background: #ccf0f0; }
.bhwc-v2-phone-strip {
    padding: 8px 14px; background: #f8fafc;
    border-top: 1px solid #e2eaf2;
    font-size: 12px; color: #374151; font-weight: 600;
    display: flex; align-items: center; gap: 6px;
    text-decoration: none; margin-top: auto;
}
.bhwc-v2-phone-strip:hover { background: #f0fafa; color: #0a9396; }

/* Updated date badge */
.bhwc-updated-badge {
    display: inline-flex; align-items: center; gap: 5px;
    background: #f0fdf4; border: 1px solid #bbf7d0;
    color: #15803d; font-size: 11px; font-weight: 700;
    padding: 3px 10px; border-radius: 20px; margin-left: 10px;
    vertical-align: middle;
}

.bhwc-v2-bio {
    font-size: 12px; color: #6b7280; line-height: 1.5;
    margin: 0; display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.bhwc-v2-bio-fallback { font-style: italic; color: #9ca3af; }

@media (max-width: 640px) {
    .bhwc-card-v2-main { grid-template-columns: 64px 1fr; }
    .bhwc-v2-actions { display: none; }
    .bhwc-v2-info { padding: 14px 14px; }
    /* Mobile: show CTA buttons inline below info */
    .bhwc-v2-info::after { display: none; }
    .bhwc-card-v2 .bhwc-v2-mobile-ctas {
        display: flex; gap: 8px; padding: 0 14px 14px; flex-wrap: wrap;
    }
    .bhwc-v2-mobile-cta-primary {
        display: inline-flex; align-items: center; justify-content: center;
        background: #0a9396; color: #fff !important; padding: 8px 14px;
        border-radius: 8px; font-size: 13px; font-weight: 700;
        text-decoration: none; flex: 1;
    }
    .bhwc-v2-mobile-cta-outline {
        display: inline-flex; align-items: center; justify-content: center;
        background: transparent; color: #374151 !important; padding: 8px 14px;
        border-radius: 8px; font-size: 13px; font-weight: 600;
        text-decoration: none; border: 1.5px solid #e2eaf2; flex: 1;
    }
}
@media (min-width: 641px) {
    .bhwc-v2-mobile-ctas { display: none; }
}
