/*
 * Final layout stability layer.
 * Keeps the approved black, gold and pink palette and all existing content.
 */

html {
    overflow-x: hidden;
}

body,
.page-wrapper {
    overflow-x: clip;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img {
    max-width: 100%;
}

.row > * {
    min-width: 0;
}

/* Keep every approved button label visible. */
body .page-wrapper .thm-btn,
body.inner-site .page-wrapper .inner-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 52px;
    max-width: 100%;
    color: #ffffff !important;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
    opacity: 1 !important;
    visibility: visible !important;
    isolation: isolate;
}

body .page-wrapper .thm-btn :is(i, span),
body.inner-site .page-wrapper .inner-btn :is(i, span) {
    color: inherit !important;
    opacity: 1 !important;
    visibility: visible !important;
}

body .page-wrapper .thm-btn::before,
body.inner-site .page-wrapper .inner-btn::after {
    z-index: -1 !important;
}

body .page-wrapper .thm-btn:hover,
body.inner-site .page-wrapper .inner-btn:hover {
    color: #111111 !important;
}

body.inner-site .page-wrapper .inner-btn.inner-btn--light {
    color: #e83e78 !important;
    background: #ffffff !important;
}

/* Prevent section content from being hidden by inherited opacity rules. */
body .page-wrapper section :is(h1, h2, h3, h4, h5, h6, p) {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Equal-height presentation without changing section content. */
.uniqueness .row > [class*="col-"],
.process-one .row > [class*="col-"] {
    display: flex;
}

.uniqueness__single,
.process-one__single {
    width: 100%;
    height: 100%;
}

.services-one__carousel .owl-stage {
    display: flex;
}

.services-one__carousel .owl-item,
.services-one__carousel .item,
.services-one__single,
.services-one__single-inner {
    height: 100%;
}

.services-one__single-inner {
    display: flex;
    flex-direction: column;
}

.services-one__btn {
    align-self: center;
    margin-top: auto;
}

/* About and appointment columns remain balanced at desktop sizes. */
.about-one > .container > .row,
.appointment-one > .container > .row {
    align-items: center;
}

.about-one__left,
.about-one__right,
.appointment-one__left,
.appointment-one__right,
.appointment-one__right-content {
    max-width: 100%;
}

.appointment-one__form :is(input, textarea, select, .nice-select) {
    width: 100% !important;
    max-width: 100%;
}

/* Stable four-card counter layout. */
body .counter-one .counter-one__list {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 24px !important;
    align-items: stretch;
}

body .counter-one .counter-one__list > .counter-two__single {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex: none !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 190px;
    height: auto !important;
    margin: 0 !important;
    padding: 30px 15px !important;
}

body .counter-one .counter-one__content-box {
    width: 100%;
    text-align: center;
}

body .counter-one .counter-one__content-box h3,
body .counter-one .counter-one__content-box h3 span,
body .counter-one .odometer {
    display: inline-block !important;
    white-space: nowrap !important;
    word-break: normal !important;
}

body .counter-one .counter-one__text {
    white-space: normal !important;
    overflow-wrap: normal;
    word-break: normal !important;
}

/* Companies We Serve: equal visual areas, large logos, no surrounding boxes. */
body .client-logos__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: 35px;
    width: 100%;
    max-width: 1050px;
    margin: 45px auto 0;
}

body .client-logos .client-logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-width: 0;
    min-height: 0 !important;
    aspect-ratio: 1 / 1;
    padding: 20px !important;
    border: 0 !important;
    outline: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

body .client-logos .client-logo-card::before,
body .client-logos .client-logo-card::after {
    content: none !important;
    display: none !important;
}

body .client-logos .client-logo-card img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 300px !important;
    max-height: 230px !important;
    object-fit: contain !important;
}

/* Testimonial stays contained and the gold border belongs to the card itself. */
body:not(.inner-site) .testimonial-two .container {
    width: 100%;
    max-width: 1320px;
    margin-inline: auto;
    padding-inline: 15px;
}

body:not(.inner-site) .testimonial-two__left {
    width: 100%;
    max-width: 950px;
    margin-inline: auto;
}

body:not(.inner-site) .testimonial-two .testimonial-two__carousel,
body:not(.inner-site) .testimonial-two .owl-stage-outer {
    width: 100%;
    max-width: 100%;
    overflow: hidden !important;
}

body:not(.inner-site) .testimonial-two .testimonial-two__single {
    padding-top: 48px;
    border: 0 !important;
    background: transparent !important;
}

body:not(.inner-site) .testimonial-two .testimonial-two__single-inner {
    border: 2px solid #d4af37 !important;
    border-radius: 16px !important;
    background: #0b0b0b !important;
}

body:not(.inner-site) .testimonial-two__single-content-bottom {
    flex-wrap: wrap;
    row-gap: 12px;
}

/* Inner pages: balanced cards and readable CTAs. */
body.inner-site .inner-card-grid > *,
body.inner-site .inner-steps > * {
    min-width: 0;
    height: 100%;
}

body.inner-site .inner-card {
    display: flex;
    flex-direction: column;
}

body.inner-site .inner-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
}

body.inner-site .inner-card__link {
    margin-top: auto;
}

body.inner-site .inner-detail-layout > *,
body.inner-site .inner-form-grid > * {
    min-width: 0;
}

body.inner-site .inner-cta {
    isolation: isolate;
}

body.inner-site .inner-cta::before {
    z-index: -1 !important;
}

body.inner-site .inner-cta > * {
    position: relative;
    z-index: 2;
}

body.inner-site .inner-cta h2 {
    color: #ffffff !important;
    opacity: 1 !important;
}

body.inner-site .inner-cta p {
    color: rgba(255, 255, 255, 0.95) !important;
    opacity: 1 !important;
}

/* Distinct footer using the already approved colors. */
body .site-footer {
    position: relative;
    overflow: hidden;
    border-top: 4px solid #d4af37 !important;
    background: linear-gradient(135deg, #170b12 0%, #0b090a 50%, #1d0d15 100%) !important;
}

body .site-footer .site-footer__bg {
    opacity: 0.08 !important;
}

body .site-footer .site-footer__pattern {
    opacity: 0.12 !important;
}

body .site-footer .site-footer__top {
    background: transparent !important;
}

body .site-footer .site-footer__bottom {
    border-top: 1px solid rgba(212, 175, 55, 0.45) !important;
    background: rgba(0, 0, 0, 0.5) !important;
}

body .site-footer .footer-widget__column,
body .site-footer .footer-widget__newsletter,
body .site-footer .footer-widget__newsletter p,
body .site-footer .footer-widget__newsletter a,
.mobile-nav__contact li,
.mobile-nav__contact a {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

body .site-footer .footer-widget__title-box {
    position: relative;
    padding-bottom: 14px;
    margin-bottom: 24px;
}

body .site-footer .footer-widget__title-box::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 45px;
    height: 3px;
    border-radius: 20px;
    background: #d4af37;
}

/* Laptop and tablet stability. */
@media (max-width: 1199px) {
    .main-menu__wrapper-inner {
        gap: 18px;
    }

    .services-one__single-inner,
    .services-one__title,
    .services-one__text {
        min-height: auto;
    }
}

@media (max-width: 991px) {
    body .counter-one .counter-one__list {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .about-one__right,
    .appointment-one__right {
        margin-top: 45px;
    }

    .appointment-one__left,
    .appointment-one__right-content {
        margin-inline: auto;
    }

    body .site-footer .footer-widget__column {
        margin-bottom: 35px;
    }
}

@media (max-width: 767px) {
    body .client-logos__grid {
        grid-template-columns: 1fr;
        gap: 25px;
        max-width: 320px;
    }

    body .client-logos .client-logo-card {
        height: 220px;
        aspect-ratio: auto;
        padding: 10px !important;
    }

    body:not(.inner-site) .testimonial-two__left {
        max-width: 100%;
    }

    body:not(.inner-site) .testimonial-two .testimonial-two__single-inner {
        padding: 70px 22px 28px;
    }

    body:not(.inner-site) .testimonial-two__single-content-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    body:not(.inner-site) .testimonial-two .rating {
        margin-left: 0;
    }

    body.inner-site .inner-cta__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    body.inner-site .inner-cta__actions .inner-btn {
        width: 100%;
    }

    .site-footer__bottom-inner {
        gap: 18px;
        text-align: center;
    }
}

@media (max-width: 575px) {
    body .counter-one .counter-one__list {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    body .counter-one .counter-one__list > .counter-two__single {
        min-height: 165px;
    }

    .appointment-one__form .row > [class*="col-"] {
        width: 100%;
    }

    .appointment-one__right-content {
        padding-inline: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
