/* Berlin Classic – Porto Cleaning Services demo; scoped tweaks for tenant builder */
.tenant-site-root.theme-berlin-classic .main {
    /* background: #f4f4f4; */
}

/* Make classic hero banner edge-to-edge inside padded main wrapper */
.tenant-site-root.theme-berlin-classic .main > #section-hero-single {
    margin-left: -1rem !important;
    margin-right: -1rem !important;
    border-radius: 0 !important;
}
@media (min-width: 992px) {
    .tenant-site-root.theme-berlin-classic .main > #section-hero-single {
        margin-left: -3rem !important;
        margin-right: -3rem !important;
    }
}

.tenant-site-root.theme-berlin-classic #header .header-body {
    background: #fff;
}

/* Keep tenant logo aspect ratio; img-fluid + sticky shrink was stretching logos horizontally */
.tenant-site-root.theme-berlin-classic #header .header-logo img.bc-header-logo {
    width: auto;
    height: auto;
    max-width: min(240px, 100%);
    max-height: var(--tenant-logo-max-height, 48px);
    object-fit: contain;
}

html.sticky-header-active .tenant-site-root.theme-berlin-classic #header .header-logo img.bc-header-logo {
    max-height: min(40px, var(--tenant-logo-max-height, 48px));
}

.tenant-site-root.theme-berlin-classic .feature-box .feature-box-icon {
    /* background-color: var(--color-secondary, #6c757d) !important; */
    color: #fff !important;
}

/* Porto theme.js appends one .fa-chevron-down per .dropdown-toggle; theme.css hides it on desktop — show it */
.tenant-site-root.theme-berlin-classic #header .header-nav-main nav > ul > li > a.dropdown-toggle .fa-chevron-down {
    margin-left: 0.4rem;
    font-size: 0.65em;
    vertical-align: middle;
}

@media (min-width: 992px) {
    .tenant-site-root.theme-berlin-classic #header .header-nav-main nav > ul > li > a.dropdown-toggle .fa-chevron-down {
        display: inline-block !important;
    }
}

.tenant-site-root.theme-berlin-classic .bc-hero-overlap {
    margin-top: 1.25rem;
}

/* Classic home hero doctor booking panel polish */
.tenant-site-root.theme-berlin-classic .bc-hero-overlap .dotflo-doctor-booking.br-dbf--hero.br-dbf-hero-bar {
    border: 1px solid rgba(13, 32, 64, .16) !important;
    border-radius: 14px !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
    box-shadow: 0 20px 44px -28px rgba(2, 6, 23, .58) !important;
    padding: .65rem .7rem !important;
}
.tenant-site-root.theme-berlin-classic .bc-hero-overlap .br-dbf-hero-bar__label {
    font-size: .68rem !important;
    letter-spacing: .08em !important;
    margin-bottom: .3rem !important;
    color: #64748b !important;
}
.tenant-site-root.theme-berlin-classic .bc-hero-overlap .br-dbf-hero-bar__control {
    min-height: 2.5rem !important;
    border-radius: .62rem !important;
    border-color: #dbe2ea !important;
}
.tenant-site-root.theme-berlin-classic .bc-hero-overlap .br-dbf__wizard-progress {
    margin: .05rem 0 .7rem !important;
}
.tenant-site-root.theme-berlin-classic .bc-hero-overlap .br-dbf__wizard-nav {
    margin-top: .6rem !important;
}
.tenant-site-root.theme-berlin-classic .bc-hero-overlap .br-dbf__wizard-nav .btn {
    min-height: 2.45rem !important;
    border-radius: .62rem !important;
}
.tenant-site-root.theme-berlin-classic .bc-hero-overlap .br-dbf-submit.btn {
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%) !important;
    box-shadow: 0 14px 26px -18px rgba(190, 18, 60, .88) !important;
}

/* Hero inline doctor booking (below title) */
.tenant-site-root.theme-berlin-classic #section-hero-single .bl-hero-booking-inline-wrap {
    max-width: 620px;
    width: calc(100% - 1.5rem);
    margin-left: auto;
    margin-right: auto;
    padding: .25rem;
}
.tenant-site-root.theme-berlin-classic #section-hero-single .bc-hero-cta-col .dotflo-doctor-booking.br-dbf--hero.br-dbf-hero-bar {
    max-width: 100%;
    margin: 0 !important;
    padding: .55rem !important;
}
.tenant-site-root.theme-berlin-classic #section-hero-single .bc-hero-cta-col .dotflo-doctor-booking .br-dbf-hero-bar__row--schedule {
    gap: .55rem !important;
}
.tenant-site-root.theme-berlin-classic #section-hero-single .bc-hero-cta-col .dotflo-doctor-booking .br-dbf-hero-bar__row--schedule > .d-flex {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: .55rem !important;
    align-items: end !important;
}
.tenant-site-root.theme-berlin-classic #section-hero-single .bc-hero-cta-col .dotflo-doctor-booking .br-dbf-hero-bar__row--schedule .br-dbf-hero-bar__slot,
.tenant-site-root.theme-berlin-classic #section-hero-single .bc-hero-cta-col .dotflo-doctor-booking .br-dbf-hero-bar__row--schedule .br-dbf__step {
    min-width: 0 !important;
}
.tenant-site-root.theme-berlin-classic #section-hero-single .bc-hero-cta-col .dotflo-doctor-booking .br-dbf__wizard-nav {
    gap: .5rem !important;
    margin-top: .45rem !important;
}
.tenant-site-root.theme-berlin-classic #section-hero-single .bc-hero-cta-col .dotflo-doctor-booking .br-dbf-prev[style*="visibility: hidden"] {
    display: none !important;
}
.tenant-site-root.theme-berlin-classic #section-hero-single .bc-hero-cta-col .dotflo-doctor-booking .br-dbf-prev[style*="visibility: hidden"] + .br-dbf-next,
.tenant-site-root.theme-berlin-classic #section-hero-single .bc-hero-cta-col .dotflo-doctor-booking .br-dbf-prev[style*="visibility: hidden"] + .br-dbf-next + .br-dbf-submit {
    flex: 1 1 100% !important;
    width: 100% !important;
}
@media (max-width: 767.98px) {
    .tenant-site-root.theme-berlin-classic #section-hero-single .bl-hero-booking-inline-wrap {
        width: calc(100% - 1rem);
        padding: .15rem;
    }
    .tenant-site-root.theme-berlin-classic #section-hero-single .bc-hero-cta-col .dotflo-doctor-booking.br-dbf--hero.br-dbf-hero-bar {
        max-width: 100%;
        margin-top: .5rem;
    }
    .tenant-site-root.theme-berlin-classic #section-hero-single .bc-hero-cta-col .dotflo-doctor-booking .br-dbf-hero-bar__row--schedule > .d-flex {
        grid-template-columns: 1fr;
    }
}

/* Hero wave: full demo height is excessive on phones — shrinks gap before overlapping form */
.tenant-site-root.theme-berlin-classic #section-hero-single .bc-hero-shape-divider {
    height: 200px;
}

@media (min-width: 576px) {
    .tenant-site-root.theme-berlin-classic #section-hero-single .bc-hero-shape-divider {
        height: 320px;
    }
}

@media (min-width: 992px) {
    .tenant-site-root.theme-berlin-classic #section-hero-single .bc-hero-shape-divider {
        height: 576px;
    }
}

@media (max-width: 991.98px) {
    .tenant-site-root.theme-berlin-classic .bc-hero-overlap {
        margin-top: .9rem;
    }
    .tenant-site-root.theme-berlin-classic .bc-hero-overlap .dotflo-doctor-booking.br-dbf--hero.br-dbf-hero-bar {
        padding: .6rem !important;
    }
}

.tenant-site-root.theme-berlin-classic .section.section-parallax {
    min-height: 260px;
}

/* Hero banner image filter overlay */
.tenant-site-root.theme-berlin-classic #section-hero-single::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(8, 22, 34, 0.32);
    z-index: 0;
    pointer-events: none;
}

@media (min-width: 576px) {
    .tenant-site-root.theme-berlin-classic .section.section-parallax {
        min-height: 360px;
    }
}

@media (min-width: 992px) {
    .tenant-site-root.theme-berlin-classic .section.section-parallax {
        min-height: 520px;
    }
}


@media (min-width: 992px) {
    /* Keep nav vertically centered with the logo row (Y-axis alignment) */
    .tenant-site-root.theme-berlin-classic #header .header-container > .header-row,
    .tenant-site-root.theme-berlin-classic #header .header-container .header-row > .header-column > .header-row {
        align-items: center;
    }
}

/* Testimonials decorative stars */
.tenant-site-root.theme-berlin-classic .testimonials-section .custom-el-8 {
    position: absolute;
    right: 8%;
    top: 15%;
}

.tenant-site-root.theme-berlin-classic .testimonials-section .custom-el-8 i:nth-child(1) {
    opacity: 0.3;
}

.tenant-site-root.theme-berlin-classic .testimonials-section .custom-el-8 i:nth-child(2) {
    font-size: 60px;
    position: relative;
    top: 40px;
    left: 5px;
}

.tenant-site-root.theme-berlin-classic .testimonials-section .custom-el-8 i:nth-child(3) {
    font-size: 80px;
    position: relative;
    top: 100px;
    filter: blur(5px);
}

.tenant-site-root.theme-berlin-classic .testimonials-section .custom-text-color-2 {
    color: #f8e095;
}

.tenant-site-root.theme-berlin-classic .testimonials-section .rotate-l-45 {
    transform: rotate(-45deg);
}

/* Testimonials layout alignment (scoped replacement for generic utility rules) */
.tenant-site-root.theme-berlin-classic .testimonials-section .align-items-center {
    align-items: center !important;
}

.tenant-site-root.theme-berlin-classic .testimonials-section .row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(-1 * var(--bs-gutter-y));
    margin-right: calc(-.5 * var(--bs-gutter-x));
    margin-left: calc(-.5 * var(--bs-gutter-x));
}

.tenant-site-root.theme-berlin-classic .testimonials-section .pb-4 {
    padding-bottom: 1.5rem !important;
}

.tenant-site-root.theme-berlin-classic .testimonials-section .pt-5 {
    padding-top: 3rem !important;
}

.tenant-site-root.theme-berlin-classic .testimonials-section .align-items-end {
    align-items: flex-end !important;
}

.tenant-site-root.theme-berlin-classic .testimonials-section .justify-content-center {
    justify-content: center !important;
}

.tenant-site-root.theme-berlin-classic .testimonials-section .z-index-1 {
    z-index: 1 !important;
}

.tenant-site-root.theme-berlin-classic .testimonials-section .p-relative {
    position: relative !important;
}

.tenant-site-root.theme-berlin-classic .testimonials-section .py-4 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

.tenant-site-root.theme-berlin-classic .testimonials-section .container,
.tenant-site-root.theme-berlin-classic .testimonials-section .container-fluid,
.tenant-site-root.theme-berlin-classic .testimonials-section .container-lg,
.tenant-site-root.theme-berlin-classic .testimonials-section .container-md,
.tenant-site-root.theme-berlin-classic .testimonials-section .container-sm,
.tenant-site-root.theme-berlin-classic .testimonials-section .container-xl,
.tenant-site-root.theme-berlin-classic .testimonials-section .container-xxl {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    width: 100%;
    padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left: calc(var(--bs-gutter-x) * .5);
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .tenant-site-root.theme-berlin-classic .testimonials-section .container,
    .tenant-site-root.theme-berlin-classic .testimonials-section .container-sm {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .tenant-site-root.theme-berlin-classic .testimonials-section .container,
    .tenant-site-root.theme-berlin-classic .testimonials-section .container-md,
    .tenant-site-root.theme-berlin-classic .testimonials-section .container-sm {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .tenant-site-root.theme-berlin-classic .testimonials-section .container,
    .tenant-site-root.theme-berlin-classic .testimonials-section .container-lg,
    .tenant-site-root.theme-berlin-classic .testimonials-section .container-md,
    .tenant-site-root.theme-berlin-classic .testimonials-section .container-sm {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .tenant-site-root.theme-berlin-classic .testimonials-section .container,
    .tenant-site-root.theme-berlin-classic .testimonials-section .container-lg,
    .tenant-site-root.theme-berlin-classic .testimonials-section .container-md,
    .tenant-site-root.theme-berlin-classic .testimonials-section .container-sm,
    .tenant-site-root.theme-berlin-classic .testimonials-section .container-xl {
        max-width: 1140px;
    }

    .tenant-site-root.theme-berlin-classic .testimonials-section .container:not(.container-bs):not(.container-xl-custom):not(.container-xxl-custom) {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .tenant-site-root.theme-berlin-classic .testimonials-section .container,
    .tenant-site-root.theme-berlin-classic .testimonials-section .container-lg,
    .tenant-site-root.theme-berlin-classic .testimonials-section .container-md,
    .tenant-site-root.theme-berlin-classic .testimonials-section .container-sm,
    .tenant-site-root.theme-berlin-classic .testimonials-section .container-xl,
    .tenant-site-root.theme-berlin-classic .testimonials-section .container-xxl {
        max-width: 1320px;
    }
}

@media (min-width: 1460px) {
    .tenant-site-root.theme-berlin-classic .testimonials-section .container {
        max-width: 1420px !important;
    }
}

/* Testimonials section visual match (screenshot style) */
.tenant-site-root.theme-berlin-classic .testimonials-section .bg-custom-color-1 {
    border-radius: 16px;
}

.tenant-site-root.theme-berlin-classic .testimonials-section .badge {
    letter-spacing: 0.08em;
    font-size: 0.62rem;
}

.tenant-site-root.theme-berlin-classic .testimonials-section h2 {
    color: #121212;
}

.tenant-site-root.theme-berlin-classic .testimonials-section .row.pb-5 .custom-font-tertiary {
    color: #3e3e3e;
    font-size: 2rem;
    line-height: 1.65;
}

.tenant-site-root.theme-berlin-classic .testimonials-section .custom-el-7 {
    width: 56px;
    height: 56px;
    left: -14px;
    top: 8px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.tenant-site-root.theme-berlin-classic .testimonials-section .custom-el-7 i {
    font-size: 1.15rem;
}

.tenant-site-root.theme-berlin-classic .testimonials-section .owl-carousel .owl-item img {
    width: 210px !important;
    height: 210px;
    object-fit: cover;
}

.tenant-site-root.theme-berlin-classic .testimonials-section .owl-carousel .owl-nav button.owl-prev,
.tenant-site-root.theme-berlin-classic .testimonials-section .owl-carousel .owl-nav button.owl-next {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(32, 32, 32, 0.12) !important;
    background: transparent !important;
    color: #292929 !important;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.tenant-site-root.theme-berlin-classic .testimonials-section .owl-carousel .owl-nav button.owl-prev {
    left: -64px;
}

.tenant-site-root.theme-berlin-classic .testimonials-section .owl-carousel .owl-nav button.owl-next {
    right: -64px;
}

@media (max-width: 1199.98px) {
    .tenant-site-root.theme-berlin-classic .testimonials-section .row.pb-5 .custom-font-tertiary {
        font-size: 1.5rem;
        line-height: 1.5;
    }
}

@media (max-width: 991.98px) {
    .tenant-site-root.theme-berlin-classic .testimonials-section .custom-el-8 {
        right: 4%;
        top: 10%;
        transform: scale(0.8);
        transform-origin: top right;
    }

    .tenant-site-root.theme-berlin-classic .testimonials-section .owl-carousel .owl-nav button.owl-prev,
    .tenant-site-root.theme-berlin-classic .testimonials-section .owl-carousel .owl-nav button.owl-next {
        position: static !important;
        margin: 12px 6px 0 !important;
    }

    .tenant-site-root.theme-berlin-classic .testimonials-section .col-lg-4.ps-5.pt-4 {
        padding-left: 0 !important;
        text-align: center;
    }

    .tenant-site-root.theme-berlin-classic .testimonials-section .col-lg-8.text-start.ps-4 {
        padding-left: 0 !important;
        text-align: center !important;
    }

    .tenant-site-root.theme-berlin-classic .testimonials-section .col-lg-5.ps-5.pt-4,
    .tenant-site-root.theme-berlin-classic .testimonials-section .col-lg-7.text-start.ps-4 {
        padding-left: 0 !important;
        text-align: center !important;
    }
}

/* Testimonials layout stabilization */
.tenant-site-root.theme-berlin-classic .testimonials-section .bc-testimonials-shell {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0 !important;
}

.tenant-site-root.theme-berlin-classic .testimonials-section .bc-testimonials-head {
    padding-top: 2.7rem !important;
    padding-bottom: 1.3rem !important;
}

.tenant-site-root.theme-berlin-classic .testimonials-section .bc-testimonials-intro {
    max-width: 1080px;
}

.tenant-site-root.theme-berlin-classic .testimonials-section .bc-testimonials-badge {
    background: #f7f7f7 !important;
    border-color: rgba(28, 37, 44, 0.08) !important;
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    color: #273139 !important;
}

.tenant-site-root.theme-berlin-classic .testimonials-section .bc-testimonials-title {
    font-size: 2.95rem;
    line-height: 1.1 !important;
    letter-spacing: -0.02em;
    margin-top: 0.75rem !important;
    margin-bottom: 0.75rem !important;
}

.tenant-site-root.theme-berlin-classic .testimonials-section .bc-testimonials-description {
    max-width: 980px;
    margin: 0 auto;
    color: #5f7154;
    font-size: 1.08rem;
    line-height: 1.6;
    font-weight: 500;
}

.tenant-site-root.theme-berlin-classic .testimonials-section .bc-testimonials-hint {
    margin-top: 0.8rem;
    color: #5f7154;
    font-size: 1.35rem;
    font-weight: 700;
}

.tenant-site-root.theme-berlin-classic .testimonials-section .bc-testimonials-carousel-row {
    padding-top: 0.4rem;
    padding-bottom: 2.75rem !important;
}

.tenant-site-root.theme-berlin-classic .testimonials-section .bc-testimonial-slide {
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
}

.tenant-site-root.theme-berlin-classic .testimonials-section .bc-testimonial-slide--video {
    max-width: 980px;
}

.tenant-site-root.theme-berlin-classic .testimonials-section .bc-testimonial-video-wrap {
    position: relative;
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
    overflow: hidden;
    padding-bottom: 56.25%;
    height: 0;
    background: #0b0b0b;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}

.tenant-site-root.theme-berlin-classic .testimonials-section .bc-testimonial-video-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.tenant-site-root.theme-berlin-classic .testimonials-section .bc-testimonial-media {
    display: flex;
    justify-content: center;
    padding-left: 0 !important;
    padding-top: 0.5rem !important;
}

.tenant-site-root.theme-berlin-classic .testimonials-section .bc-testimonial-copy {
    padding-left: 1rem !important;
}

.tenant-site-root.theme-berlin-classic .testimonials-section .bc-testimonial-copy .custom-font-tertiary {
    font-size: 1.28rem;
    line-height: 1.6;
    margin-bottom: 1.1rem !important;
    color: #202020;
}

.tenant-site-root.theme-berlin-classic .testimonials-section .bc-testimonial-author {
    display: inline-block;
    font-size: 1rem;
    font-weight: 700;
}

@media (max-width: 1199.98px) {
    .tenant-site-root.theme-berlin-classic .testimonials-section .bc-testimonials-title {
        font-size: 2.4rem;
    }

    .tenant-site-root.theme-berlin-classic .testimonials-section .bc-testimonials-description {
        font-size: 1rem;
    }

    .tenant-site-root.theme-berlin-classic .testimonials-section .bc-testimonials-hint {
        font-size: 1.15rem;
    }

    .tenant-site-root.theme-berlin-classic .testimonials-section .bc-testimonial-copy .custom-font-tertiary {
        font-size: 1.15rem;
    }
}

@media (max-width: 991.98px) {
    .tenant-site-root.theme-berlin-classic .testimonials-section .bc-testimonials-head {
        padding-top: 2.2rem !important;
        padding-bottom: 1rem !important;
    }

    .tenant-site-root.theme-berlin-classic .testimonials-section .bc-testimonials-title {
        font-size: 1.95rem;
    }

    .tenant-site-root.theme-berlin-classic .testimonials-section .bc-testimonial-copy {
        text-align: center !important;
        padding-top: 1rem;
        padding-left: 0 !important;
    }

    .tenant-site-root.theme-berlin-classic .testimonials-section .bc-testimonial-copy .custom-font-tertiary {
        font-size: 1.05rem;
        line-height: 1.5;
    }

    .tenant-site-root.theme-berlin-classic .testimonials-section .bc-testimonial-author {
        font-size: 1rem;
    }

    .tenant-site-root.theme-berlin-classic .testimonials-section .bc-testimonials-description {
        font-size: 0.95rem;
        line-height: 1.45;
    }

    .tenant-site-root.theme-berlin-classic .testimonials-section .bc-testimonials-hint {
        font-size: 1rem;
        margin-top: 0.75rem;
    }

    .tenant-site-root.theme-berlin-classic .testimonials-section .owl-carousel .owl-item img {
        width: 170px !important;
        height: 170px;
    }
}

/* Services section — match cleaning-services demo: white cards, carousel, uniform circles */
.tenant-site-root.theme-berlin-classic .bc-services-section .bc-services-card {
    background: #fff;
    border-radius: 0.35rem;
    box-shadow: 0 0 40px -20px rgba(0, 0, 0, 0.14);
}

.tenant-site-root.theme-berlin-classic .bc-services-section .bc-services-card .card-body {
    position: relative;
    z-index: 1;
}

/* Equal-height cards inside Owl */
.tenant-site-root.theme-berlin-classic .bc-services-section .owl-carousel .owl-item > div {
    display: flex;
    width: 100%;
    height: 100%;
}

.tenant-site-root.theme-berlin-classic .bc-services-section .owl-carousel .owl-item a.text-decoration-none {
    display: flex;
    width: 100%;
}

.tenant-site-root.theme-berlin-classic .bc-services-section .owl-carousel .owl-item .bc-services-card {
    flex: 1 1 auto;
    width: 100%;
}

/* One size for all service images (any aspect ratio / resolution) */
.tenant-site-root.theme-berlin-classic .bc-services-section .bc-services-card-image {
    width: 140px;
    height: 140px;
    overflow: hidden;
    vertical-align: middle;
}

.tenant-site-root.theme-berlin-classic .bc-services-section .bc-services-card-img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
}
