/* Shared visual system for public company profiles. Keep selectors profile-specific. */
:root {
    --profile-color-primary: #255f91;
    --profile-color-primary-dark: #1f527e;
    --profile-color-text: #1f2937;
    --profile-color-muted: #667085;
    --profile-color-border: #dfe5ec;
    --profile-color-surface: #fff;
    --profile-color-canvas: #f6f8fb;
    --profile-radius-sm: 3px;
    --profile-radius-md: 6px;
    --profile-shadow-sm: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .08);
    --profile-content-width: 1140px;
}

.company-profile-page {
    margin-bottom: 0;
    padding: 16px 0 40px;
    color: var(--profile-color-text);
    background: var(--profile-color-canvas);
    font-size: 16px;
    line-height: 1.65;
}

.company-profile-page--bronze { margin-top: 0 !important; }

.profile-banner + .header-box {
    width: 100% !important;
    min-height: 76px;
    border: 0;
    box-shadow: 0 8px 24px rgba(16, 24, 40, .09);
}

.profile-banner + .header-box .navbar-company-logo {
    width: 96px !important;
    height: 96px !important;
    margin: -18px auto 0 !important;
    padding: 0 !important;
    border: 1px solid #e1e6ed !important;
    border-radius: 4px !important;
    background: #fff !important;
    box-shadow: 0 5px 14px rgba(16, 24, 40, .11) !important;
}

.profile-banner + .header-box .company-logo,
.profile-banner + .header-box .company-logo img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 3px !important;
    object-fit: cover !important;
    transform: none !important;
}

.profile-banner + #stick .company-logo.company-letter {
    background: linear-gradient(135deg, #4b6fd1 0%, #2e447f 100%) !important;
}

.profile-banner + #stick h3.CompanyLetter,
.profile-banner + #stick h3.CompanyLetter:hover {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    color: #fff !important;
    font-size: 38px !important;
    line-height: 1 !important;
}

.profile-banner + #stick.stickey .navbar-company-logo {
    width: 52px !important;
    height: 52px !important;
    margin: 5px auto !important;
    padding: 0 !important;
    box-shadow: 0 3px 9px rgba(16, 24, 40, .10) !important;
}

.profile-banner + #stick.stickey h3.CompanyLetter,
.profile-banner + #stick.stickey h3.CompanyLetter:hover {
    font-size: 25px !important;
}

.profile-banner + #stick.stickey .profile-logo-badge {
    right: -5px !important;
    bottom: -4px !important;
    width: 20px !important;
    height: 26px !important;
}

.profile-banner + .header-box nav.navbarprofile .nav-item-link {
    padding: 14px 17px !important;
    border-radius: 3px;
    color: #344054 !important;
    font-weight: 700;
}

.profile-banner + .header-box nav.navbarprofile .nav-item-link:hover,
.profile-banner + .header-box nav.navbarprofile .nav-item-link:focus {
    background: #f0f4fa;
    color: #274f91 !important;
}

.profile-banner + .header-box .nav-item.dropdown {
    position: relative;
}

.profile-banner + .header-box .dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    left: auto;
    display: none;
    min-width: 190px;
    margin: 0;
    padding: 5px;
    border: 1px solid #dce2e9;
    border-radius: 3px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(16, 24, 40, .12);
}

.profile-banner + .header-box .dropdown-menu.show,
.profile-banner + .header-box .dropdown.show > .dropdown-menu {
    display: block;
}

.profile-banner + .header-box .dropdown-menu .dropdown-item {
    display: block;
    width: 100%;
    padding: 9px 11px !important;
    border-radius: 2px;
    color: #344054;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
}

.profile-banner + .header-box .dropdown-menu .dropdown-item:hover,
.profile-banner + .header-box .dropdown-menu .dropdown-item:focus {
    background: #eef2f7;
    color: #274f91;
}

.company-profile-page--featured {
    padding-top: 0;
    background: #f4f6f9;
}

.company-profile-page--featured .profile-system-banner.brand-details {
    padding: 0;
    border-top: 1px solid #d8dde4;
    border-bottom: 1px solid #d8dde4;
    background: #eee;
}

.company-profile-page--featured .profile-system-banner > .container {
    padding: 16px 15px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.company-profile-page--featured .profile-system-banner .row {
    align-items: center;
}

.company-profile-page--featured .company-banner-primary {
    padding-right: 28px;
}

.company-profile-page--featured .company-banner-actions {
    gap: 8px;
    max-width: 560px;
    margin-bottom: 12px;
}

.company-profile-page--featured .company-banner-action {
    min-height: 48px;
    border-radius: 4px;
}

.company-profile-page--featured .company-banner-call {
    min-height: 60px;
    border-color: #d9381f;
    background: #dc3f27;
    box-shadow: 0 5px 12px rgba(217, 56, 31, .20);
}

.company-profile-page--featured .company-banner-call:hover,
.company-profile-page--featured .company-banner-call:focus {
    border-color: #c72f1a;
    background: #c93420;
    box-shadow: 0 7px 15px rgba(199, 47, 26, .24);
}

.company-profile-page--featured .company-banner-contact {
    border-color: #365cad;
    background: #3a57a3;
}

.company-profile-page--featured .company-banner-website {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.company-profile-page--featured .company-banner-call-note {
    margin: -1px 0 1px;
    color: #667085;
    font-size: 12px;
}

.company-profile-page--featured .company-banner-meta {
    margin: 8px 0 0;
}

.company-profile-page--featured .company-banner-hours-link {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 11px;
    border: 1px solid #dce3ec;
    border-radius: 3px;
    background: #f8fafc;
    color: #344054;
    font-size: 13px;
    text-decoration: none;
}

.company-profile-page--featured .company-banner-listed {
    display: inline-block;
    margin: 8px 0 0 8px;
    color: #667085;
    font-size: 12px;
}

.company-profile-page--featured .company-banner-location {
    padding: 12px;
    border: 1px solid #e4e9f0;
    border-radius: 4px;
    background: #f8fafc;
}

.company-profile-page--featured .company-banner-location #map {
    width: 100%;
    height: 145px;
    margin: 0 0 10px;
    border-radius: 2px;
    box-shadow: none;
}

.company-profile-page--featured .company-banner-location h5 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
}

.company-profile-page--featured .company-profile-highlights {
    max-width: none;
}

.company-profile-page > .container,
.company-profile-page .container {
    width: 100%;
    max-width: var(--profile-content-width);
}

.company-profile-page a.bronze-profile-call,
.company-profile-page a.bronze-profile-call:hover,
.company-profile-page a.bronze-profile-call:focus,
.company-profile-page a.bronze-profile-call:active,
.company-profile-page a.company-banner-call,
.company-profile-page a.company-banner-call:hover,
.company-profile-page a.company-banner-call:focus,
.company-profile-page a.company-banner-call:active {
    color: #fff !important;
}

.company-profile-page hr {
    max-width: var(--profile-content-width);
    margin: 24px auto;
    border: 0;
    border-top: 1px solid var(--profile-color-border);
}

.profile-system-banner.brand-details {
    margin: 0;
    padding: 20px 0;
    border-bottom: 1px solid var(--profile-color-border);
    background: var(--profile-color-canvas);
    box-shadow: none;
}

.profile-system-banner.brand-details.free {
    padding: 16px 0 !important;
}

.breadcrumb-holder .breadcrumb {
    margin-bottom: 0;
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: 13px;
}

.header-box {
    border-bottom: 1px solid var(--profile-color-border);
    box-shadow: 0 3px 10px rgba(16, 24, 40, .06);
}

.header-box nav.navbarprofile .nav-item-link {
    font-size: 14px;
    font-weight: 600;
}

.company-profile-custom-content {
    margin-top: 20px;
    padding: 0;
}

.company-profile-highlights {
    position: relative;
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    max-width: 920px;
    margin: 12px auto 0;
    padding: 14px 16px 15px;
    overflow: hidden;
    border: 1px solid #dce2e9;
    border-left: 4px solid #3a57a3;
    border-radius: 3px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(16, 24, 40, .05);
    color: #667085;
    text-align: left;
}

.company-profile-highlights__heading {
    margin: 0;
}

.company-profile-highlights__heading h3 {
    margin: 0;
    color: #1f2937;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
}

.company-profile-highlights__heading p {
    margin: 2px 0 0;
    color: #667085;
    font-size: 11px;
}

.company-profile-highlights__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.company-profile-highlights__item {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
    padding: 7px 10px;
    border: 0;
    border-left: 1px solid #e2e7ed;
    border-radius: 0;
    background: transparent;
}

.company-profile-highlights__label {
    color: #667085;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .055em;
    line-height: 1.35;
    text-transform: uppercase;
}

.company-profile-highlights__value,
.company-profile-highlights__value strong,
.company-profile-highlights__value a {
    color: #1f2937;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

.company-profile-highlights__value a:hover,
.company-profile-highlights__value a:focus {
    color: #274f91;
}

.company-profile-team {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
}

.company-profile-team > .space-y-12 > * + *,
.company-profile-team .space-y-16 > * + * {
    margin-top: 24px !important;
}

.company-profile-services { margin-top: 16px; }

.company-profile-service-card {
    border: 1px solid var(--profile-color-border);
    border-radius: var(--profile-radius-md) !important;
    box-shadow: var(--profile-shadow-sm) !important;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.company-profile-service-card:hover {
    border-color: #c7d3e0;
    box-shadow: 0 10px 24px rgba(16, 24, 40, .10) !important;
    transform: translateY(-2px);
}

.company-profile-page--featured .company-profile-service-card {
    border-top: 3px solid #3a57a3;
    border-radius: 4px !important;
}

.company-profile-page--featured .company-profile-service-card__header {
    background: #f8fafc;
}

.company-profile-page--featured .company-profile-custom-content {
    width: 100%;
    max-width: var(--profile-content-width);
    overflow-wrap: anywhere;
}

.company-profile-page--featured .company-profile-custom-content img,
.company-profile-page--featured .company-profile-custom-content video,
.company-profile-page--featured .company-profile-custom-content iframe {
    max-width: 100%;
}

.company-profile-page--featured .company-profile-custom-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

.company-profile-service-card__header {
    min-height: 60px;
    border-color: var(--profile-color-border) !important;
}

.company-profile-service-card__header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.company-profile-service-card__body h6 {
    margin: 0 0 9px;
    color: var(--profile-color-muted);
    font-size: .9rem;
    font-weight: 500;
}

.company-profile-page .todays-hours {
    margin: 16px auto 0;
    color: var(--profile-color-text);
    font-weight: 600;
}

.company-profile-page .map_modal_class {
    overflow: hidden;
    border: 1px solid var(--profile-color-border);
    border-radius: var(--profile-radius-md);
    box-shadow: var(--profile-shadow-sm);
}

.site-footer-wrapper .tp-footer {
    margin-top: 0 !important;
}

@media (max-width: 767px) {
    .company-profile-page { padding: 12px 0 32px; }
    .profile-system-banner.brand-details { padding: 16px 0; }
    .company-profile-highlights { display: block; margin-top: 10px; padding: 12px; border-radius: 3px; }
    .company-profile-highlights__heading { margin-bottom: 8px; }
    .company-profile-highlights__grid { grid-template-columns: 1fr; gap: 0; }
    .company-profile-highlights__item { padding: 8px 0; border-left: 0; border-top: 1px solid #e2e7ed; }
    .company-profile-custom-content { padding-right: 16px; padding-left: 16px; }
    .company-profile-page hr { margin: 20px 16px; }
    .company-profile-page--featured { padding-top: 0; }
    .company-profile-page--featured .profile-system-banner > .container { width: 100%; padding: 12px 15px; border-radius: 0; }
    .company-profile-page--featured .company-banner-primary { padding-right: 15px; }
    .company-profile-page--featured .company-banner-actions { grid-template-columns: 1fr; }
    .company-profile-page--featured .company-banner-call,
    .company-profile-page--featured .company-banner-contact,
    .company-profile-page--featured .company-banner-website { grid-column: 1; }
    .company-profile-page--featured .company-banner-listed { display: block; margin-left: 0; }
    .company-profile-page--featured .company-banner-location { margin-top: 14px; }
    .company-profile-page--featured .company-banner-location #map { height: 130px; }
}

@media (max-width: 991px) {
    .profile-banner + .header-box {
        min-height: 66px;
    }

    .profile-banner + .header-box > .container {
        max-width: 100%;
        padding-right: 12px;
        padding-left: 12px;
    }

    .profile-banner + .header-box .navbar-company-logo {
        width: 60px !important;
        height: 60px !important;
        margin: -10px 0 0 !important;
        padding: 0 !important;
        box-shadow: 0 3px 10px rgba(16, 24, 40, .10) !important;
    }

    .profile-banner + #stick h3.CompanyLetter,
    .profile-banner + #stick h3.CompanyLetter:hover {
        font-size: 27px !important;
    }

    .profile-banner + #stick.stickey .navbar-company-logo {
        width: 44px !important;
        height: 44px !important;
        margin: 6px 0 !important;
    }

    .profile-banner + #stick.stickey h3.CompanyLetter,
    .profile-banner + #stick.stickey h3.CompanyLetter:hover {
        font-size: 21px !important;
    }

    .profile-banner + #stick .profile-logo-badge {
        right: -5px !important;
        bottom: -4px !important;
        width: 20px !important;
        height: 26px !important;
    }

    .profile-banner + .header-box .toggle-box-onsmall {
        top: 11px;
        right: 12px;
    }

    .profile-banner + .header-box .navbar-collapse,
    .profile-banner + .header-box .navbar-collapse.show {
        width: 100%;
        padding: 10px;
        background: #fff;
        box-shadow: 0 10px 20px rgba(16, 24, 40, .10);
    }

    .profile-banner + .header-box nav.navbarprofile .navbar-nav {
        width: 100%;
        margin: 0 !important;
    }

    .profile-banner + .header-box nav.navbarprofile .nav-item-link {
        display: block;
        width: 100%;
        padding: 11px 12px !important;
        text-align: left;
    }

    .profile-banner + .header-box .dropdown-menu {
        position: static;
        width: 100%;
        min-width: 0;
        margin: 2px 0 6px;
        padding: 4px 0 4px 12px;
        border: 0;
        border-left: 2px solid #d7dfeb;
        border-radius: 0;
        background: #f8fafc;
        box-shadow: none;
    }

    .profile-banner + .header-box .dropdown-menu .dropdown-item {
        padding: 9px 12px !important;
    }
}

/* Rebuilt profile navigation shell. */
#stick.profile-nav {
    position: relative;
    width: 100% !important;
    overflow: visible;
    border-bottom: 1px solid #dce2e9;
    background: #fff;
    box-shadow: 0 4px 12px rgba(16, 24, 40, .07);
}

#stick.profile-nav .profile-nav-container {
    position: relative;
    max-width: var(--profile-content-width);
}

#stick.profile-nav .profile-nav-row {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) auto;
    align-items: center;
    min-height: 72px;
}

#stick.profile-nav .profile-nav-logo {
    position: relative;
    z-index: 3;
    grid-column: 1;
}

#stick.profile-nav .profile-nav-menu {
    display: flex;
    align-self: stretch;
    grid-column: 2;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
}

#stick.profile-nav nav.navbarprofile {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: flex-end;
    padding: 0;
}

@media (min-width: 992px) {
    #stick.profile-nav .navbar-collapse {
        display: flex !important;
        height: 100%;
        align-items: center;
        justify-content: flex-end;
    }

    #stick.profile-nav .navbar-nav {
        display: flex;
        height: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        gap: 2px;
        margin: 0 !important;
        padding: 0;
        float: none !important;
    }

    #stick.profile-nav .nav-item,
    #stick.profile-nav .nav-item-li {
        display: flex;
        height: 100%;
        align-items: center;
        margin: 0;
    }
}

#stick.profile-nav .profile-nav-toggle {
    display: none;
}

@media (max-width: 991px) {
    #stick.profile-nav {
        min-height: 64px;
        box-shadow: 0 2px 7px rgba(16, 24, 40, .06);
    }

    #stick.profile-nav .profile-nav-container {
        width: 100%;
        max-width: none;
        padding: 0 12px;
    }

    #stick.profile-nav .profile-nav-row {
        grid-template-columns: auto minmax(0, 1fr) auto;
        min-height: 64px;
    }

    #stick.profile-nav .profile-nav-logo {
        display: flex;
        align-items: center;
        align-self: stretch;
    }

    #stick.profile-nav .navbar-company-logo,
    #stick.profile-nav.stickey .navbar-company-logo {
        width: 48px !important;
        height: 48px !important;
        margin: 0 !important;
    }

    #stick.profile-nav .profile-nav-menu {
        position: static;
        grid-column: 2;
    }

    #stick.profile-nav nav.navbarprofile {
        position: static;
    }

    #stick.profile-nav .profile-nav-toggle {
        display: inline-flex;
        z-index: 4;
        grid-column: 3;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 3px;
        background: #3a57a3;
        box-shadow: none;
        color: #fff;
        font-size: 20px;
    }

    #stick.profile-nav .profile-nav-toggle:hover,
    #stick.profile-nav .profile-nav-toggle:focus {
        background: #2e447f;
        color: #fff;
        outline: 2px solid rgba(58, 87, 163, .20);
        outline-offset: 2px;
    }

    #stick.profile-nav .navbar-collapse,
    #stick.profile-nav .navbar-collapse.collapse {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        z-index: 1000;
        display: none !important;
        width: 100%;
        margin: 0;
        padding: 8px 12px 12px;
        border-top: 1px solid #e2e7ed;
        border-bottom: 1px solid #d4dbe4;
        background: #fff;
        box-shadow: 0 12px 22px rgba(16, 24, 40, .14);
    }

    #stick.profile-nav .navbar-collapse.show,
    #stick.profile-nav .navbar-collapse.collapsing {
        display: block !important;
    }

    #stick.profile-nav .navbar-nav {
        display: flex;
        width: 100%;
        flex-direction: column;
        gap: 2px;
        margin: 0 !important;
        padding: 0;
        float: none !important;
    }

    #stick.profile-nav .nav-item,
    #stick.profile-nav .nav-item-li {
        display: block;
        width: 100%;
        margin: 0;
    }

    #stick.profile-nav nav.navbarprofile .nav-item-link {
        display: flex;
        width: 100%;
        min-height: 42px;
        align-items: center;
        justify-content: space-between;
        padding: 10px 12px !important;
        border-radius: 2px;
        text-align: left;
    }

    #stick.profile-nav .dropdown-menu {
        position: static;
        width: 100%;
        margin: 2px 0 5px;
        padding: 3px 0 3px 10px;
        border: 0;
        border-left: 2px solid #d5deea;
        border-radius: 0;
        background: #f7f9fc;
        box-shadow: none;
    }
}

#stick.profile-nav .dropdown-menu.show,
#stick.profile-nav .dropdown.show > .dropdown-menu {
    display: block !important;
}

#stick.profile-nav .dropdown-toggle::after {
    flex: 0 0 auto;
    margin-left: 7px;
    transition: transform .16s ease;
}

#stick.profile-nav .dropdown.show > .dropdown-toggle::after {
    transform: rotate(180deg);
}

@media (min-width: 992px) {
    #stick.profile-nav .dropdown {
        position: relative;
    }

    #stick.profile-nav .dropdown-menu {
        position: absolute !important;
        top: 100% !important;
        right: 0 !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        min-width: 210px;
        margin: 0;
        padding: 6px;
        border: 1px solid #dce2e9;
        border-radius: 3px;
        background: #fff;
        box-shadow: 0 12px 28px rgba(16, 24, 40, .16);
    }

    #stick.profile-nav .dropdown:hover > .dropdown-menu {
        display: block !important;
    }

    #stick.profile-nav .dropdown-menu .dropdown-item {
        display: flex;
        min-height: 38px;
        align-items: center;
        padding: 8px 11px;
        border-radius: 2px;
        color: #26344d;
        font-size: 14px;
        line-height: 1.35;
    }

    #stick.profile-nav .dropdown-menu .dropdown-item:hover,
    #stick.profile-nav .dropdown-menu .dropdown-item:focus {
        background: #eef2f8;
        color: #243f85;
        text-decoration: none;
    }
}

@media (max-width: 991px) {
    /* Neutralize the legacy site-wide hover opener on touch-sized layouts. */
    #stick.profile-nav .dropdown:hover > .dropdown-menu:not(.show) {
        display: none !important;
    }

    #stick.profile-nav .dropdown-toggle::after {
        margin-left: auto;
    }

    #stick.profile-nav .dropdown-menu .dropdown-item {
        display: flex;
        min-height: 40px;
        align-items: center;
        padding: 9px 12px;
        border-radius: 2px;
        color: #34445e;
        font-size: 14px;
    }

    #stick.profile-nav .dropdown-menu .dropdown-item:hover,
    #stick.profile-nav .dropdown-menu .dropdown-item:focus {
        background: #e9eef6;
        color: #243f85;
        text-decoration: none;
    }
}
