
/* Keep the header logo at its original, compact size. */
header .logo img,
header .logo a img {
    display: block;
    width: 131px;
    max-width: 131px;
    height: auto;
    object-fit: contain;
}

/* Prevent the header row from stretching the logo. */
header .logo {
    flex: 0 0 131px;
    width: 131px;
    max-width: 131px;
}

/* Keep the header content aligned and contained. */
header .container > .row {
    align-items: center;
}

/* Keep the testimonial section within the page width. */
.welcome,
.welcome .row,
.welcome .testimonial {
    max-width: 100%;
    box-sizing: border-box;
}

.welcome .testimonial {
    overflow: hidden;
}

.welcome .testimonial .col-left,
.welcome .testimonial .col-right {
    min-width: 0;
    box-sizing: border-box;
}

.welcome .testimonial .col-left {
    overflow: hidden;
}

.welcome .testimonial .col-right img {
    max-width: 100%;
    height: auto;
}

/* Allow long testimonial text to wrap instead of pushing the layout wide. */
.welcome .testimonial p,
.welcome .testimonial h6 {
    overflow-wrap: anywhere;
    word-wrap: break-word;
}

/* Prevent slider items from forcing a wider page. */
.testimonal-slider,
.testimonal-slider .slick-list,
.testimonal-slider .slick-track {
    min-width: 0;
    box-sizing: border-box;
}

.testimonal-slider .wrapper {
    box-sizing: border-box;
    max-width: 100%;
}

/* Avoid accidental horizontal scrolling on smaller screens. */
html,
body {
    max-width: 100%;
    overflow-x: clip;
}

@media (max-width: 767px) {
    header .logo {
        flex-basis: 110px;
        width: 110px;
        max-width: 110px;
    }

    header .logo img,
    header .logo a img {
        width: 110px;
        max-width: 110px;
    }

    .welcome .testimonial .col-left,
    .welcome .testimonial .col-right {
        width: 100%;
        max-width: 100%;
    }
}


/* =========================================================
   Header / navigation alignment
   Match the original JADE desktop header layout
   ========================================================= */

header {
    width: 100%;
}

header > .container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 3%;
    box-sizing: border-box;
}

header > .container > .row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    min-height: 92px;
    box-sizing: border-box;
}

/* Logo stays at the left and does not grow or shrink. */
header .logo {
    flex: 0 0 131px;
    width: 131px;
    max-width: 131px;
    margin: 0;
}

header .logo img,
header .logo a img {
    display: block;
    width: 131px;
    max-width: 100%;
    height: auto;
}

/* Navigation occupies the middle of the header. */
header > .container > .row > nav {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
}

header > .container > .row > nav > ul {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(12px, 1.8vw, 30px);
    margin: 0;
    padding: 0;
    list-style: none;
}

header > .container > .row > nav > ul > li {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

header > .container > .row > nav > ul > li > a {
    white-space: nowrap;
}

/* Keep Demo Request on the same line as the navigation. */
header > .container > .row > a.btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    margin: 0;
}

/* Hide the mobile toggle on desktop. */
header .toggle {
    display: none;
}

/* Tablet/mobile navigation can use the theme's active-menu styling. */
@media (max-width: 1100px) {
    header > .container > .row {
        gap: 14px;
    }

    header > .container > .row > nav > ul {
        gap: 12px;
    }

    header > .container > .row > a.btn {
        padding-left: 12px;
        padding-right: 12px;
    }
}

@media (max-width: 900px) {
    header > .container > .row {
        min-height: 80px;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    header .toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        padding: 8px;
        border: 0;
        background: transparent;
        cursor: pointer;
    }

    header .toggle span {
        display: block;
        width: 25px;
        height: 2px;
        background: #111;
    }

    header > .container > .row > nav {
        display: none;
        flex: 0 0 100%;
        width: 100%;
    }

    header > .container > .row > nav.active {
        display: block;
    }

    header > .container > .row > nav > ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 20px 0;
    }

    header > .container > .row > a.btn {
        margin-left: auto;
    }
}


/* =========================================================
   Word of Mouth / testimonial layout correction
   ========================================================= */

.welcome .testimonial {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 430px;
    align-items: start;
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
    padding-left: 90px;
    padding-right: 0;
}

/* Keep the vertical heading in its own reserved space. */
.welcome .testimonial > h1 {
    position: absolute;
    top: 20px;
    left: 0;
    margin: 0;
    transform: rotate(90deg);
    transform-origin: top left;
    font-size: 30px;
    white-space: nowrap;
}

/* Left column: testimonial quote and author. */
.welcome .testimonial .col-left {
    width: 100% !important;
    min-width: 0;
    position: relative;
    top: 0 !important;
    box-sizing: border-box;
    overflow: hidden;
}

.welcome .testimonial .testimonal-slider {
    width: 100%;
    min-width: 0;
    padding: 20px 25px 0 0 !important;
    box-sizing: border-box;
}

.welcome .testimonial .col-left .wrapper {
    padding: 0 20px !important;
    box-sizing: border-box;
}

.welcome .testimonial .col-left .wrapper > div {
    min-width: 0;
    max-width: 100%;
}

.welcome .testimonial .col-left h6,
.welcome .testimonial .col-left p {
    max-width: 100%;
    overflow-wrap: anywhere;
    line-height: 1.45;
}

.welcome .testimonial .col-left .box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
}

.welcome .testimonial .col-left .box figure {
    flex: 0 0 60px;
    width: 60px;
    margin: 0;
}

.welcome .testimonial .col-left .box figure img {
    display: block;
    width: 100%;
    height: auto;
}

.welcome .testimonial .col-left .box h4 {
    min-width: 0;
    margin-left: 0;
}

/* Right column: retain the original overlapping image composition. */
.welcome .testimonial .col-right {
    width: 100% !important;
    min-width: 0;
    position: relative;
    box-sizing: border-box;
}

.welcome .testimonial .col-right > figure {
    width: 100%;
    height: auto !important;
    margin: 0;
}

.welcome .testimonial .col-right > figure img {
    display: block;
    width: 100%;
    height: auto;
}

.welcome .testimonial .col-right .text-box {
    max-width: 100%;
    box-sizing: border-box;
}

/* Stack the columns on smaller screens. */
@media (max-width: 900px) {
    .welcome .testimonial {
        grid-template-columns: minmax(0, 1fr);
        padding-left: 0;
        row-gap: 30px;
    }

    .welcome .testimonial > h1 {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 0 0 20px;
    }

    .welcome .testimonial .col-left {
        overflow: hidden;
    }

    .welcome .testimonial .col-right {
        width: 100% !important;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* Footer: ensure all text is readable on the dark background */
footer,
footer p,
footer li,
footer li strong,
footer .row,
footer .row span {
    color: #ffffff;
}

footer a {
    color: #ffffff;
}

footer a:hover {
    color: #95c600;
}

footer .copyright,
footer .copyright p {
    color: #ffffff;
}

/* Footer copyright notice */
footer .copyright {
    text-align: center;
    font-size: 13px;
    color: #ffffff;
}

footer .copyright p {
    text-align: center;
    font-size: 13px;
    color: #ffffff;
    margin: 0;
}

/* Contact page hero banner: full viewport width */
.banner.contact {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.banner.contact > .row {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

/* Mobile navigation: add comfortable spacing */
@media (max-width: 767px) {
    header nav#main-menu {
        padding-left: 20px;
        padding-right: 20px;
        box-sizing: border-box;
    }

    header nav#main-menu ul li a {
        padding-left: 12px;
        padding-right: 12px;
    }
}
