/* Extra content sections (prefix .xs-) - responsive, independent of theme layout rules */
.xs-section {
    position: relative;
    padding: 80px 0;
    background: #fff;
}

.xs-section.xs-alt {
    background: #f7f7f5;
}

.xs-section.xs-dark {
    background: #1d1d1b;
    color: #fff;
}

.xs-head {
    max-width: 760px;
    margin: 0 auto 45px;
    text-align: center;
}

.xs-head .xs-sub {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #a11d0f;
}

.xs-head h2 {
    font-size: 40px;
    line-height: 1.25;
    font-family: 'Abril Fatface', cursive;
    margin-bottom: 14px;
}

.xs-dark .xs-head h2 {
    color: #fff;
}

.xs-head p {
    margin: 0;
    font-size: 16px;
    line-height: 1.75;
    color: #666;
}

.xs-dark .xs-head p {
    color: #d6d6d6;
}

.xs-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.xs-grid.xs-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.xs-grid.xs-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.xs-card {
    height: 100%;
    padding: 30px 24px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 10px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, .05);
    transition: transform .25s ease, box-shadow .25s ease;
}

.xs-alt .xs-card {
    background: #fff;
}

.xs-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .1);
}

.xs-card .xs-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: #a11d0f;
    color: #fff;
    font-size: 24px;
    line-height: 56px;
    text-align: center;
}

.xs-card h3,
.xs-card h4 {
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
    color: #222;
}

.xs-card p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #666;
}

.xs-card a.xs-more {
    display: inline-block;
    margin-top: 14px;
    font-weight: 600;
    color: #a11d0f;
}

/* numbered steps */
.xs-step {
    position: relative;
    padding-top: 42px;
}

.xs-step .xs-num {
    position: absolute;
    top: -22px;
    left: 24px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #a11d0f;
    color: #fff;
    font-weight: 700;
    line-height: 46px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(161, 29, 15, .35);
}

/* stats / trust bar */
.xs-stats {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.xs-stat {
    padding: 26px 16px;
    text-align: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, .08);
}

.xs-stat strong {
    display: block;
    font-size: 34px;
    line-height: 1.2;
    color: #fff;
}

.xs-stat span {
    font-size: 14px;
    color: #d6d6d6;
}

/* chips */
.xs-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.xs-chips li a,
.xs-chips li span {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid #e2e2e2;
    border-radius: 50px;
    background: #fff;
    font-size: 15px;
    color: #333;
    transition: all .25s ease;
}

.xs-chips li a:hover {
    border-color: #a11d0f;
    background: #a11d0f;
    color: #fff;
}

/* FAQ */
.xs-faq {
    max-width: 860px;
    margin: 0 auto;
}

.xs-faq details {
    margin-bottom: 14px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .04);
}

.xs-faq summary {
    position: relative;
    padding: 18px 54px 18px 22px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    color: #222;
    cursor: pointer;
    list-style: none;
}

.xs-faq summary::-webkit-details-marker {
    display: none;
}

.xs-faq summary::after {
    content: '+';
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #a11d0f;
}

.xs-faq details[open] summary::after {
    content: '\2212';
}

.xs-faq details p {
    margin: 0;
    padding: 0 22px 20px;
    font-size: 15px;
    line-height: 1.75;
    color: #666;
}

/* call to action banner */
.xs-cta {
    padding: 60px 0;
    background: #a11d0f;
    color: #fff;
}

.xs-cta .xs-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.xs-cta h2 {
    margin: 0 0 8px;
    font-size: 32px;
    line-height: 1.3;
    font-family: 'Abril Fatface', cursive;
    color: #fff;
}

.xs-cta p {
    margin: 0;
    font-size: 16px;
    color: #f6dcd8;
}

.xs-cta .xs-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.xs-btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    background: #fff;
    color: #a11d0f;
    font-weight: 600;
    text-align: center;
    transition: all .25s ease;
}

.xs-btn:hover {
    background: #1d1d1b;
    color: #fff;
}

.xs-btn.xs-btn-outline {
    background: transparent;
    border: 2px solid #fff;
    padding: 12px 26px;
    color: #fff;
}

.xs-btn.xs-btn-outline:hover {
    background: #fff;
    color: #a11d0f;
}

/* two column text + list */
.xs-split {
    display: grid;
    gap: 40px;
    align-items: center;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.xs-split h2 {
    margin-bottom: 16px;
    font-size: 36px;
    line-height: 1.25;
    font-family: 'Abril Fatface', cursive;
}

.xs-split p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
}

.xs-checks {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.xs-checks li {
    position: relative;
    margin-bottom: 12px;
    padding-left: 32px;
    font-size: 15px;
    line-height: 1.6;
    color: #444;
}

.xs-checks li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    top: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #a11d0f;
    color: #fff;
    font-size: 12px;
    line-height: 22px;
    text-align: center;
}

.xs-map {
    width: 100%;
    height: 380px;
    border: 0;
    border-radius: 10px;
}

@media (max-width: 1199px) {

    .xs-grid,
    .xs-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .xs-grid.xs-cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .xs-section {
        padding: 60px 0;
    }

    .xs-head h2,
    .xs-split h2 {
        font-size: 32px;
    }

    .xs-split {
        grid-template-columns: 1fr;
    }

    .xs-cta .xs-cta-inner {
        flex-direction: column;
        text-align: center;
    }

    .xs-cta .xs-cta-actions {
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .xs-section {
        padding: 45px 0;
    }

    .xs-head {
        margin-bottom: 30px;
    }

    .xs-head h2,
    .xs-split h2 {
        font-size: 26px;
    }

    .xs-grid,
    .xs-grid.xs-cols-3,
    .xs-grid.xs-cols-2 {
        grid-template-columns: 1fr;
    }

    .xs-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .xs-stat strong {
        font-size: 26px;
    }

    .xs-cta h2 {
        font-size: 24px;
    }

    .xs-cta .xs-btn {
        width: 100%;
    }

    .xs-cta .xs-cta-actions {
        width: 100%;
    }

    .xs-faq summary {
        font-size: 16px;
    }

    .xs-map {
        height: 300px;
    }
}

/* Header: Services mega dropdown (desktop only) */
@media only screen and (min-width: 992px) {
    .main-menu .navigation>li>ul.services-menu {
        /* multi-column (not grid) so the theme JS can keep toggling display:block/none */
        -webkit-column-count: 3;
        column-count: 3;
        -webkit-column-gap: 10px;
        column-gap: 10px;
        width: 800px;
        max-width: 96vw;
        left: 50%;
        margin-left: -400px;
        padding: 18px;
        border-top: 3px solid #a11d0f;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 18px 45px rgba(0, 0, 0, .16);
    }

    .main-menu .navigation>li>ul.services-menu>li {
        width: auto;
        padding: 0;
        -webkit-column-break-inside: avoid;
        break-inside: avoid;
        margin-bottom: 4px;
    }

    .main-menu .navigation>li>ul.services-menu>li>a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 11px 12px;
        border: 0;
        border-radius: 8px;
        font-size: 14.5px;
        font-weight: 600;
        line-height: 1.35;
        text-transform: none;
        transition: background .2s ease, color .2s ease, padding-left .2s ease;
    }

    .main-menu .navigation>li>ul.services-menu>li>a i {
        flex: 0 0 34px;
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: #fbeceb;
        color: #a11d0f;
        font-size: 14px;
        line-height: 34px;
        text-align: center;
        transition: background .2s ease, color .2s ease;
    }

    .main-menu .navigation>li>ul.services-menu>li>a:hover {
        background: #f7f7f5;
        color: #a11d0f;
        padding-left: 16px;
    }

    .main-menu .navigation>li>ul.services-menu>li>a:hover i {
        background: #a11d0f;
        color: #fff;
    }

    .main-menu .navigation>li>ul.services-menu>li.services-menu-all {
        -webkit-column-span: all;
        column-span: all;
        margin-top: 6px;
        padding-top: 10px;
        border-top: 1px solid #eee;
    }

    .main-menu .navigation>li>ul.services-menu>li.services-menu-all>a {
        justify-content: center;
        gap: 8px;
        background: #a11d0f;
        color: #fff;
    }

    .main-menu .navigation>li>ul.services-menu>li.services-menu-all>a:hover {
        background: #1d1d1b;
        color: #fff;
        padding-left: 12px;
    }

    .main-menu .navigation>li>ul.services-menu>li.services-menu-all>a i {
        flex: none;
        width: auto;
        height: auto;
        background: transparent;
        color: inherit;
        line-height: 1;
    }
}

/* Mobile menu keeps its simple stacked list; hide the icons there */
@media only screen and (max-width: 991px) {
    .mobile-menu .navigation ul.services-menu>li>a i {
        display: none;
    }
}

@media only screen and (min-width: 992px) and (max-width: 1199px) {
    .main-menu .navigation>li>ul.services-menu {
        -webkit-column-count: 2;
        column-count: 2;
        width: 560px;
        margin-left: -280px;
    }
}

/* Our Certificates (components/sections/certificates) */
.xs-cert-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    justify-content: center;
}

.xs-cert-card {
    margin: 0;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 10px;
    padding: 14px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .05);
    transition: transform .25s ease, box-shadow .25s ease;
}

.xs-cert-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .1);
}

.xs-cert-img {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 240px;
    overflow: hidden;
    border-radius: 6px;
    background: #fafafa;
}

.xs-cert-img img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.xs-cert-card figcaption {
    margin-top: 12px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: #1d1d1b;
}

@media (max-width: 991px) {
    .xs-cert-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 18px;
    }

    .xs-cert-img {
        height: 210px;
    }
}

@media (max-width: 575px) {
    .xs-cert-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .xs-cert-card {
        padding: 10px;
    }

    .xs-cert-img {
        height: 150px;
    }

    .xs-cert-card figcaption {
        font-size: 13px;
    }
}

/* Our Clients (components/sections/clients) */
.xs-client-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    justify-content: center;
}

.xs-client-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 14px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .05);
    transition: transform .25s ease, box-shadow .25s ease;
}

.xs-client-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .1);
}

.xs-client-card img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 90px;
    object-fit: contain;
}

.xs-client-card span {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #1d1d1b;
}

@media (max-width: 991px) {
    .xs-client-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 575px) {
    .xs-client-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .xs-client-card {
        padding: 12px 8px;
    }

    .xs-client-card img {
        max-height: 64px;
    }

    .xs-client-card span {
        font-size: 12px;
    }
}

/* Home hero: tablet / mobile fit */
@media (max-width: 991px) {
    .banner-section-two .content-outer {
        display: block;
    }

    .banner-section-two .content-box {
        min-height: 0;
        padding: 60px 15px 70px;
        text-align: center;
        justify-content: center;
    }

    .banner-section-two .content-box h1 {
        font-size: 48px;
        line-height: 58px;
        margin-bottom: 20px;
    }

    .banner-section-two .content-box .text {
        font-size: 18px;
        line-height: 28px;
    }
}

@media (max-width: 575px) {
    .banner-section-two .content-box {
        padding: 45px 15px 55px;
    }

    .banner-section-two .content-box h1 {
        font-size: 34px;
        line-height: 42px;
        letter-spacing: 0;
    }

    .banner-section-two .content-box h1 br {
        display: none;
    }

    .banner-section-two .content-box .text {
        font-size: 16px;
        line-height: 25px;
        margin-bottom: 22px;
    }
}

/* Home hero: desktop - keep text and photo side by side with the longer heading */
@media (min-width: 992px) {
    .banner-section-two .content-box .inner {
        flex: 0 1 560px;
        max-width: 560px;
    }

    .banner-section-two .content-box h1 {
        font-size: 64px;
        line-height: 74px;
    }
}

/* Home hero: show the photo on tablet / mobile (theme hides it below 992px) */
@media (max-width: 991px) {
    .banner-section-two .content-box .image-wrapper {
        display: block;
        width: 100%;
        max-width: 420px;
        margin: 10px auto 0;
        overflow: hidden;
    }

    .banner-section-two .content-box .image {
        margin-top: 0;
        text-align: center;
    }

    .banner-section-two .content-box .image .bg {
        left: 50%;
        width: 340px;
        height: 340px;
        max-width: 85vw;
        max-height: 85vw;
        transform: translateX(-50%);
    }

    .banner-section-two .content-box .image img {
        display: block;
        width: auto;
        max-width: 100%;
        max-height: 420px;
        margin: 0 auto;
    }

    .banner-section-two .shape-two,
    .banner-section-two .shape-three,
    .banner-section-two .video-box {
        display: none;
    }

    .banner-section-two .contact-number {
        left: 50%;
        right: auto;
        bottom: 16px;
        padding: 12px 24px;
        border-radius: 18px;
        transform: translateX(-50%) !important;
        white-space: nowrap;
    }

    .banner-section-two .contact-number h5 {
        margin-bottom: 4px;
        font-size: 14px;
    }

    .banner-section-two .contact-number .number {
        font-size: 18px;
    }
}

@media (max-width: 575px) {
    .banner-section-two .content-box .image-wrapper {
        max-width: 320px;
    }

    .banner-section-two .content-box .image img {
        max-height: 340px;
    }
}

/* Home hero mobile fixes: clear the fixed header, stop the circle being clipped */
@media (max-width: 991px) {
    .banner-section-two .content-box {
        padding-top: 120px;
    }

    .banner-section-two .content-box .image .bg {
        width: 280px;
        height: 280px;
        max-width: 78vw;
        max-height: 78vw;
    }

    .banner-section-two .content-box .image-wrapper {
        overflow: visible;
    }

    .banner-section-two .content-box .image img {
        max-height: 330px;
    }

    .banner-section-two .content-box .link-box .theme-btn {
        background: #a11d0f;
    }
}

@media (max-width: 575px) {
    .banner-section-two .content-box {
        padding-top: 105px;
    }

    .banner-section-two .content-box .image-wrapper {
        max-width: 300px;
    }

    .banner-section-two .content-box .image img {
        max-height: 300px;
    }
}

/* Home hero mobile: make sure the header clearance wins over theme/responsive.css */
@media (max-width: 991px) {
    .banner-section-two .content-outer .content-box {
        padding-top: 130px !important;
    }
}

@media (max-width: 575px) {
    .banner-section-two .content-outer .content-box {
        padding-top: 120px !important;
    }
}

/* Home hero: header is absolutely positioned (top bar + logo row), so clear its full height */
@media (max-width: 991px) {
    .banner-section-two .content-outer .content-box {
        padding-top: 175px !important;
    }
}

@media (max-width: 575px) {
    .banner-section-two .content-outer .content-box {
        padding-top: 185px !important;
    }
}
