/* Wilson Windows responsive layout overrides.
 * Loaded after the original theme styles so the existing desktop design remains intact.
 */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

html,
body,
header {
    background: #042539;
}

body {
    font-size: 16px;
    line-height: 1.6;
}

html {
    background: #042539;
}

.menuSection {
    background: #042539;
}

header {
    padding-top: max(10px, env(safe-area-inset-top));
}

.header-logo {
    width: 120px;
    height: 76px;
    background: transparent;
    border-radius: 0;
    overflow: visible;
}

.header-logo a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 100%;
}

.header-logo img {
    width: auto;
    height: 68px;
    max-width: 120px;
    max-height: 68px;
    object-fit: contain;
}

/* The logo now lives in the navigation bar; avoid repeating it in the hero. */
.main_slider .bann-logo {
    display: none;
}

.wilson-quote-widget {
    display: flex;
    align-items: stretch;
    gap: 14px;
    flex-wrap: wrap;
}

.wilson-quote-widget .theme-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    margin: 0;
}

.wilson-quote-widget .wilson-call-button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.wilson-quote-widget .wilson-call-button:hover,
.wilson-quote-widget .wilson-call-button:focus {
    background: #fff;
    color: #042539;
}

.cta-sec .wilson-quote-widget {
    justify-content: center;
}

/* Review copy was inheriting the dark-page text color. White cards preserve
 * the dark section while keeping every review readable and contained. */
.client-sec .reviews-box {
    background: #fff;
    color: #042539;
    height: auto;
    min-height: 260px;
}

.client-sec .reviews-box p,
.client-sec .reviews-box h5 {
    color: #042539;
}

.client-sec .reviews-box p {
    font-size: 16px;
    line-height: 1.55;
}

.client-sec .service-heading h2,
.client-sec .service-heading p {
    color: #fff;
}

/* The quote form is already the destination; do not repeat a CTA on that page. */
body.page-template-quote .cta-sec,
body.page-template-pagesquote-php .cta-sec {
    display: none;
}

body.page-template-quote .quote-heading h2,
body.page-template-pagesquote-php .quote-heading h2,
body.page-template-quote .quote-heading p,
body.page-template-pagesquote-php .quote-heading p {
    color: #fff;
}

body.page-template-quote .quote-heading,
body.page-template-pagesquote-php .quote-heading {
    text-align: left;
    padding-left: 0;
    padding-right: 0;
}

body.page-template-quote .quote-heading p,
body.page-template-pagesquote-php .quote-heading p {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}

body.page-template-quote .process-sec h2,
body.page-template-pagesquote-php .process-sec h2,
body.page-template-quote .process-sec h4,
body.page-template-pagesquote-php .process-sec h4,
body.page-template-quote .process-sec p,
body.page-template-pagesquote-php .process-sec p {
    color: #fff;
}

body.page-template-quote .process-sec h3,
body.page-template-pagesquote-php .process-sec h3 {
    color: #2e93e9;
}

body.page-template-quote .quote-input,
body.page-template-pagesquote-php .quote-input {
    background: #042539;
    border-color: rgba(255, 255, 255, 0.55);
}

body.page-template-quote .quote-input input,
body.page-template-pagesquote-php .quote-input input,
body.page-template-quote .quote-input select,
body.page-template-pagesquote-php .quote-input select,
body.page-template-quote .quote-input textarea,
body.page-template-pagesquote-php .quote-input textarea {
    color: #fff;
    caret-color: #fff;
}

body.page-template-quote .quote-input input::placeholder,
body.page-template-pagesquote-php .quote-input input::placeholder,
body.page-template-quote .quote-input textarea::placeholder,
body.page-template-pagesquote-php .quote-input textarea::placeholder {
    color: rgba(255, 255, 255, 0.78);
}

body.page-template-quote .quote-input select option,
body.page-template-pagesquote-php .quote-input select option {
    background: #042539;
    color: #fff;
}

/* Site-wide contrast corrections for content sections that use the dark page
 * background. White service/review/contact cards are intentionally excluded. */
.about-right h2,
.about-right h5,
.about-right p,
.about-right li,
.about-left h4,
.service .service-heading h2,
.service .service-heading p,
.why-choose-left h2,
.why-choose-left h5,
.why-choose-left p,
.why-choose-left li,
.feature-right h2,
.feature-right p,
.process-sec .service-heading h2,
.process-sec .service-heading p,
.process-main h4,
.process-main p,
.mission-left h2,
.mission-left p,
.service-page-txt h2,
.service-page-txt p,
.service-page-txt li,
.contact-right h2,
.contact-right p {
    color: #fff;
}

.contact_page h2,
.contact_page > .container > .row > .col-lg-8 > .get-in-touch > p,
.contact_page > .container > .row > .col-lg-4 > .cntct-head > p {
    color: #fff;
}

.contact_page .contact-input input,
.contact_page .contact-input textarea {
    background: #042539;
    color: #fff;
    caret-color: #fff;
    border-color: rgba(255, 255, 255, 0.55);
}

.contact_page .contact-input input::placeholder,
.contact_page .contact-input textarea::placeholder {
    color: rgba(255, 255, 255, 0.78);
}

.contact_page .contact-info-item-details h5 {
    color: #042539;
}

img,
svg,
video,
iframe {
    max-width: 100%;
}

@media (max-width: 991px) {
    /* Keep hero copy visible immediately instead of waiting for WOW's fade-in. */
    .main_slider .wow {
        visibility: visible !important;
        animation-name: none !important;
    }

    .container-fluid {
        padding-left: 24px;
        padding-right: 24px;
    }

    .all-section,
    .all-section-btm {
        overflow: hidden;
    }

    .service-heading h2,
    .why-choose-left h2,
    .contact-right h2,
    .mission-left h2,
    .service-page .service-heading h2,
    .gallery-heading h2,
    .contact_page h2,
    .quote-heading h2 {
        font-size: clamp(36px, 7vw, 52px);
        line-height: 1.08;
    }

    .feature p {
        width: 85%;
    }

    .menuSec ul li a {
        padding-left: 8px;
        padding-right: 8px;
        font-size: 13px;
        white-space: nowrap;
    }

    .why-choose-left p,
    .service-heading p {
        width: 100%;
    }

    .why-choose-right {
        max-width: 100%;
        overflow: hidden;
    }

    .why-choose-btm {
        margin-left: 0;
        margin-top: 20px;
        gap: 20px;
    }

    img.why-choose-lg-bottom {
        max-width: calc(50% - 10px);
        height: auto;
    }

    .service-slick-prev {
        left: 4px;
    }

    .service-slick-next {
        right: 4px;
    }

    /* Tablets use the compact mobile header so the logo and menu stay together. */
    .menuSection > .container-fluid > .row {
        flex-wrap: nowrap;
        min-height: 80px;
        justify-content: space-between;
    }

    .menuSection > .container-fluid > .row > .col-lg-2 {
        display: block;
        flex: 1 1 auto;
        width: auto;
        padding: 0;
    }

    .menuSection > .container-fluid > .row > .col-lg-8 {
        flex: 0 0 auto;
        width: auto;
        padding: 0;
    }

    .menuSec {
        display: none;
    }

    .header-logo {
        width: 104px;
        height: 72px;
        display: flex;
        align-items: center;
    }

    .header-logo img {
        width: auto;
        height: 62px;
        max-width: 104px;
        max-height: 62px;
    }

    body > .slicknav_menu {
        position: absolute;
        top: max(26px, calc(env(safe-area-inset-top) + 12px));
        right: 24px;
        z-index: 1001;
        display: block;
        width: auto;
        padding: 0;
        background: transparent;
    }

    body > .slicknav_menu .slicknav_btn {
        float: none;
        margin: 0;
    }
}

@media (max-width: 767px) {
    /* Keep the mobile quote page focused on completing the form. */
    body.page-template-quote .main_slider,
    body.page-template-pagesquote-php .main_slider,
    body.page-template-quote .process-sec,
    body.page-template-pagesquote-php .process-sec,
    body.page-template-quote .cta-sec,
    body.page-template-pagesquote-php .cta-sec {
        display: none;
    }

    body.page-template-quote .quote,
    body.page-template-pagesquote-php .quote {
        padding-top: 32px;
        padding-bottom: 48px;
    }

    body.page-template-quote .quote-heading,
    body.page-template-pagesquote-php .quote-heading {
        margin-bottom: 24px;
    }

    .slicknav_menu {
        background: #042539;
    }

    .menuSection {
        padding-top: 0;
    }

    .container-fluid {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Keep the compact top navigation from adding a second, overlapping row. */
    .menuSection {
        border-bottom-color: rgba(255, 255, 255, 0.35);
    }

    .menuSection > .container-fluid > .row {
        flex-wrap: nowrap;
        min-height: 80px;
    }

    .menuSection > .container-fluid > .row > .col-lg-2 {
        display: block;
        flex: 1 1 auto;
        width: auto;
        padding: 0;
    }

    .menuSection > .container-fluid > .row > .col-lg-4 {
        flex: 0 0 auto;
        width: auto;
        padding: 0;
    }

    .menuSection > .container-fluid > .row > .col-lg-8 {
        flex: 0 0 auto;
        width: auto;
        padding: 0;
    }

    .header-logo {
        width: 104px;
        height: 72px;
        display: flex;
        align-items: center;
    }

    .header-logo img {
        width: auto;
        height: 62px;
        max-width: 104px;
        max-height: 62px;
    }

    body {
        font-size: 16px;
        line-height: 1.6;
    }

    p,
    li,
    .banner_text p,
    .banner_text li,
    .about-right p,
    .why-choose-left p,
    .feature p,
    .service-txt p,
    .contact-right p {
        font-size: 16px;
        line-height: 1.6;
    }

    .slicknav_nav a {
        font-size: 16px;
    }

    .header-btn {
        justify-content: flex-end;
        gap: 10px;
        min-height: 72px;
    }

    .header-btn .widget,
    .header-btn .widget_text {
        margin: 0;
    }

    .header-btn .theme-btn {
        max-width: calc(100vw - 105px);
    }

    .header-btn .btn-txt {
        font-size: 11px;
        padding: 0 12px;
        white-space: nowrap;
    }

    .header-btn .btn-icon {
        width: 46px;
        height: 46px;
    }

    ul.header-cta li a {
        font-size: 12px;
    }

    ul.header-cta li i {
        width: 34px;
        height: 34px;
        margin-right: 6px;
        font-size: 14px;
    }

    /* The original hero used a fixed-height carousel caption. Let its content
     * define the height on phones so nothing is clipped below the fold. */
    .main_slider,
    .banner-main,
    .carousel-inner,
    .carousel-item {
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    .carousel-item {
        position: relative;
        background: #042539;
    }

    .main_slider .banner-bg {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .main_slider .carousel-caption {
        position: relative;
        inset: auto;
        display: block;
        height: auto;
        min-height: 0;
        padding: 105px 0 34px;
        background: rgba(4, 37, 57, 0.93);
    }

    .main_slider .carousel-caption .container-fluid {
        height: auto;
    }

    .main_slider .carousel-caption .row {
        margin-left: 0;
        margin-right: 0;
    }

    .main_slider .bann-logo {
        top: 0;
        margin-bottom: 16px;
    }

    .main_slider .bann-logo img {
        width: min(180px, 60%);
    }

    .main_slider h1 {
        font-size: clamp(38px, 10vw, 52px);
        line-height: 1.08;
        margin-bottom: 14px;
    }

    .main_slider h3 {
        font-size: 22px;
        line-height: 1.2;
    }

    .banner_text p {
        font-size: 15px;
        line-height: 1.55;
    }

    ul.trust-points {
        column-count: 1;
        padding-left: 0;
    }

    ul.trust-points li {
        width: 100%;
        margin-bottom: 9px;
    }

    .banner_img {
        margin-top: 24px;
        text-align: center;
    }

    .banner_img img {
        width: 100%;
        height: auto;
    }

    .service {
        overflow: hidden;
    }

    .service-slider {
        width: 100%;
        overflow: hidden;
        padding: 0 8px;
    }

    .service-slider .slick-list {
        overflow: hidden;
    }

    .service-slider .slick-track {
        display: flex;
        align-items: stretch;
    }

    .service-slider .slick-slide {
        height: auto;
        margin: 0;
    }

    .service-slider .slick-slide > div,
    .service-card {
        width: 100%;
    }

    .service-card {
        margin: 0 8px;
        border-radius: 90px;
    }

    .service-img {
        height: 260px;
    }

    .service-txt {
        padding: 24px 24px 42px;
    }

    .service-slick-prev,
    .service-slick-next {
        width: 42px;
        height: 42px;
    }

    .service-slick-prev {
        left: -2px;
    }

    .service-slick-next {
        right: -2px;
    }

    .why-choose-top,
    .why-choose-btm {
        gap: 14px;
        margin-left: 0;
        margin-top: 20px;
    }

    .why-choose-top {
        align-items: flex-end;
    }

    img.why-choose-sm-top,
    img.why-choose-lg-top,
    img.why-choose-lg-bottom {
        width: calc(50% - 7px);
        height: auto;
    }

    img.why-choose-lg-top {
        min-height: 210px;
    }

    img.why-choose-lg-bottom {
        min-height: 220px;
        border-width: 6px;
    }

    .why-choose-experience-box {
        width: 130px;
        height: 130px;
        flex: 0 0 130px;
    }

    .why-choose-experience-box h3 {
        font-size: 46px;
    }

    .why-choose-left ul li {
        width: 100%;
    }

    .feature p {
        width: 100%;
    }

    .wilson-quote-widget {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .wilson-quote-widget .theme-btn {
        width: 100%;
        max-width: none;
    }

    .cta-sec .wilson-quote-widget {
        align-items: stretch;
    }

    .footerSec p,
    .ftr_links a,
    .ftr_contact ul li a,
    .privacy-links ul li {
        font-size: 15px;
        line-height: 1.55;
    }

    .footerSec h5 {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .privacy-links ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px 16px;
    }

    /* Keep all form controls inside the viewport, including date/time inputs. */
    .contact-input,
    .quote-input,
    .contact-input input,
    .contact-input textarea,
    .quote-input input,
    .quote-input textarea,
    .quote-input select {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .quote-input textarea {
        height: 180px;
    }
}

@media (max-width: 400px) {
    .header-btn .header-cta {
        display: none;
    }

    .main_slider .carousel-caption {
        padding-top: 92px;
    }

    .main_slider h1 {
        font-size: 36px;
    }

}
