/* Keep the hidden drawer inside the overlay's bounds. */
.mobile-nav-overlay-2025 {
    overflow: hidden;
}

@media (min-width: 1025px) {
    .header-content-2025 {
        gap: 12px;
    }
    .logo-wrapper-2025 img {
        max-width: 170px;
        height: auto;
    }
    .navigation-2025 {
        min-width: 0;
    }
    .nav-menu-2025 {
        flex-wrap: wrap;
        justify-content: center;
    }
    .nav-menu-2025 a {
        padding-inline: 8px;
    }
    .header-actions-2025 .cta-button-2025 {
        padding-inline: 14px;
    }
}

/* Let the service cards fit between the existing desktop and tablet layouts. */
@media (min-width: 1025px) and (max-width: 1199px) {
    .services-grid-2025 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Avoid intrinsic minimums forcing the statistics grid past small screens. */
@media (max-width: 480px) {
    .stats-grid-2025 {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Keep current WordPress submenu links usable within the restored header. */
.nav-menu-2025 > li > .sub-menu {
    display: none;
    position: absolute;
    z-index: 20;
    top: 100%;
    left: 0;
    min-width: 14rem;
    max-width: 20rem;
    width: max-content;
    margin: 0;
    padding: 6px;
    list-style: none;
    border: 1px solid #dce6ef;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 42, 68, .14);
}

.nav-menu-2025 > li:nth-last-child(-n+2) > .sub-menu {
    right: 0;
    left: auto;
}

.nav-menu-2025 > li:hover > .sub-menu,
.nav-menu-2025 > li:focus-within > .sub-menu {
    display: block;
}

.nav-menu-2025 .sub-menu a {
    border: 0;
    border-radius: 6px;
    background: transparent;
    white-space: normal;
}

.mobile-menu-2025 .sub-menu {
    padding-inline-start: 1rem;
    list-style: none;
}

.location-selector-2025 a.city-select-2025 {
    text-decoration: none;
}

.location-selector-2025 a.city-select-2025:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

body.sertcenter-panel-open {
    overflow: hidden;
}

#consultation-modal {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 16px;
    background: rgba(15, 42, 68, .62);
}

#consultation-modal[hidden] {
    display: none !important;
}

#consultation-modal.show {
    display: flex;
}

#consultation-modal .consultation-modal {
    width: min(100%, 32rem);
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    border-radius: 16px;
    background: #fff;
    color: #192b3a;
    box-shadow: 0 20px 60px rgba(15, 42, 68, .25);
}

#consultation-modal .consultation-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid #dce6ef;
}

#consultation-modal .consultation-modal-header h3 {
    margin: 0;
    color: #1e4d72;
    font-size: 1.25rem;
}

#consultation-modal .consultation-modal-close {
    flex: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 8px;
    background: #eef4f9;
    color: #1e4d72;
    font-size: 1.75rem;
    cursor: pointer;
}

#consultation-modal .consultation-modal-body {
    padding: 20px;
}

/* Both shortcode instances share the existing Contact Form 7 markup. */
.sertcenter-cf7.modern-form-2025 {
    padding: clamp(16px, 4vw, 32px);
    background: #fff;
    color: #192b3a;
}

.sertcenter-cf7 .wpcf7-form,
.sertcenter-cf7 .phonecall_form {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
}

.sertcenter-cf7 .phonecall_form > div {
    position: static;
    float: none;
    box-sizing: border-box;
    width: 100%;
    margin: 0 0 12px;
    padding: 0;
}

.sertcenter-cf7 .form_title {
    color: #1e4d72;
    font-size: 1.125rem;
    font-weight: 700;
}

.sertcenter-cf7 .wpcf7-form-control-wrap {
    display: block;
}

.sertcenter-cf7 input:not([type=hidden]):not([type=submit]) {
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #c9d7e2;
    border-radius: 8px;
    background: #fff;
    color: #192b3a;
    font: inherit;
}

.sertcenter-cf7 .wpcf7-submit {
    min-height: 44px;
    padding: 10px 18px;
    border: 0;
    border-radius: 8px;
    background: #1e4d72;
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.sertcenter-cf7 :focus-visible,
#consultation-modal .consultation-modal-close:focus-visible {
    outline: 2px solid #2c6aa0;
    outline-offset: 2px;
}

.sertcenter-cf7 .form_agreement {
    color: #4d5963;
    font-size: .875rem;
    line-height: 1.4;
}

.sertcenter-cf7 a {
    color: #1e4d72;
    text-decoration: underline;
}

.sertcenter-cf7 .wpcf7-response-output {
    margin: 12px 0 0;
    color: #192b3a;
    overflow-wrap: anywhere;
}

@media (max-width: 480px) {
    .services-grid-2025 {
        grid-template-columns: minmax(0, 1fr);
    }
    .service-category-2025 {
        min-width: 0;
        padding-inline: 18px;
    }
    .service-title-2025 {
        min-width: 0;
        overflow-wrap: anywhere;
    }
}

.sc-search-strip {
    background: #f4f7fa;
    padding: 12px max(16px, calc((100% - 1200px) / 2));
    border-bottom: 1px solid #e2eaf1;
}
.sc-site-search { display: flex; gap: 8px; width: 100%; max-width: 560px; margin: 0; }
.sc-site-search input {
    flex: 1;
    min-width: 0;
    padding: 9px 12px;
    border: 1px solid #c5d5e2;
    border-radius: 8px;
    font: inherit;
    background: white;
}
.sc-site-search button {
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    padding: 8px 14px;
    color: white;
    background: #1e4d72;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.sc-site-search :focus-visible { outline: 3px solid #3474a0; outline-offset: 2px; }
.sc-search-strip .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
