/* Home sections use their own content-driven spacing. The vendor template paired a fixed
       790px empty pink block with a -650px project margin, which created large empty bands as
       soon as an API-backed section was short or unavailable. */
    .landing-page {
        --landing-section-space: clamp(32px, 4vw, 56px);
        --landing-panel-radius: 22px;
        --landing-header-height: 94px;
        /* No star/rating color exists anywhere else in the theme (vendor style.css has no
           rating component) - one token here instead of the hex living only inside
           _Testimonials.cshtml's own <style>, so a second rating UI can reuse it. */
        --landing-star-color: #ffb400;
    }

    /* The navigation is fixed, so its <header> normally collapses to zero height and the hero
       starts behind it. Reserve the rendered navbar height in normal flow: the banner now begins
       immediately below the bar while the navbar remains sticky during scrolling. */
    .landing-page > header {
        height: var(--landing-header-height);
        /* Matches _Navbar.cshtml's own .headerarea--1.header__sticky background (rgba(0,0,0,.9)),
           not a one-off hex: the navbar itself always renders solid/fixed over this reserved
           space (see that rule's own comment), so this fallback fill should be the same color,
           not a lookalike that drifts if the navbar's background ever changes. */
        background: rgba(0, 0, 0, 0.9);
    }

    @media (min-width: 1366px) and (max-width: 1499px) {
        .landing-page {
            --landing-header-height: 77px;
        }
    }

    @media (min-width: 992px) and (max-width: 1365px) {
        .landing-page {
            --landing-header-height: 64px;
        }
    }

    .landing-page #tb__home__services,
    .landing-page #tb__home__projects {
        padding: var(--landing-section-space) 0;
        background:
            radial-gradient(circle at 12% 12%, color-mix(in srgb, var(--primaryColor) 9%, transparent), transparent 28%),
            linear-gradient(135deg, color-mix(in srgb, var(--pinkcolor) 72%, var(--bodyBg)), var(--bodyBg));
    }

    .landing-page #tb__home__projects {
        background:
            radial-gradient(circle at 88% 15%, color-mix(in srgb, var(--secondaryColor) 8%, transparent), transparent 30%),
            linear-gradient(135deg, var(--bodyBg), color-mix(in srgb, var(--pinkcolor) 68%, var(--bodyBg)));
    }

    .landing-page #tb__home__services .project__margin,
    .landing-page #tb__home__projects .project__margin {
        width: min(1420px, calc(100% - clamp(24px, 4vw, 64px)));
        min-height: 0;
        margin: 0 auto;
        padding: clamp(20px, 2.5vw, 32px) 0;
        border: 1px solid color-mix(in srgb, var(--borderColor) 72%, transparent);
        border-radius: var(--landing-panel-radius);
        box-shadow: 0 24px 70px rgba(10, 6, 36, .08);
    }

    .landing-page #tb__home__services .project__margin > .container,
    .landing-page #tb__home__projects .project__margin > .container {
        min-height: 0;
        padding-top: 0;
        padding-bottom: 0;
    }

    .landing-page #tb__home__services .sp_bottom_80,
    .landing-page #tb__home__projects .sp_bottom_80 {
        padding-bottom: clamp(20px, 2.5vw, 32px);
    }

    .landing-page #tb__home__services .project__single,
    .landing-page #tb__home__projects .project__single {
        height: calc(100% - 27px);
        padding: 12px 12px 18px;
        background: var(--whiteColor);
        border: 1px solid var(--borderColor);
        border-radius: 16px;
        box-shadow: 0 12px 35px rgba(10, 6, 36, .06);
        transition: transform .25s ease, box-shadow .25s ease;
    }

    .landing-page #tb__home__services .project__single:hover,
    .landing-page #tb__home__projects .project__single:hover {
        transform: translateY(-6px);
        box-shadow: 0 18px 42px rgba(10, 6, 36, .12);
    }

    .landing-page #tb__home__services .project__img,
    .landing-page #tb__home__projects .project__img {
        aspect-ratio: 16 / 10;
        margin-bottom: 18px;
        overflow: hidden;
        border-radius: 12px;
    }

    .landing-page #tb__home__services .project__img img,
    .landing-page #tb__home__projects .project__img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .35s ease;
    }

    .landing-page #tb__home__services .project__single:hover .project__img img,
    .landing-page #tb__home__projects .project__single:hover .project__img img {
        transform: scale(1.045);
    }

    .landing-page #tb__home__services .project__content,
    .landing-page #tb__home__projects .project__content {
        gap: 16px;
        padding: 0 6px;
    }

    .landing-page #tb__about {
        padding-top: var(--landing-section-space);
    }

    @media (max-width: 767px) {
        .landing-page {
            --landing-header-height: 64px;
        }

        .landing-page #tb__home__services,
        .landing-page #tb__home__projects {
            padding: 32px 0;
        }

        .landing-page #tb__home__services .project__margin,
        .landing-page #tb__home__projects .project__margin {
            width: calc(100% - 24px);
            padding: 20px 0;
            border-radius: 16px;
        }
    }

    @media (min-width: 768px) and (max-width: 991px) {
        .landing-page {
            --landing-header-height: 64px;
        }
    }
/* Keep branch-configurable sections compact regardless of their order. */
.landing-page :is(#tb__about, #tb__news, #tb__testimonial, #tb__contact, #tb__home__events) {
    padding-block: var(--landing-section-space);
}

.landing-page :is(.section__title.sp_bottom_70, .section__title.sp_bottom_90, .row.sp_bottom_80) {
    padding-bottom: clamp(20px, 2.5vw, 32px);
}

.landing-page .section__title__heading {
    max-width: min(100%, 800px);
}

.landing-page .section__title__heading h3 {
    font-size: clamp(24px, 2.5vw, 36px);
    line-height: 1.3;
    text-wrap: balance;
}

.landing-page .section__title__text {
    max-width: min(100%, 680px);
}

.landing-page .section__title__button {
    margin-bottom: 12px;
}

/* Events use the same vendor panel that otherwise pulls content up by 650px. */
.landing-page #tb__home__events .project__margin {
    margin: 0 auto;
    width: min(1420px, calc(100% - clamp(24px, 4vw, 64px)));
    border: 1px solid var(--borderColor);
    border-radius: var(--landing-panel-radius);
    padding-block: clamp(20px, 2.5vw, 32px);
}

.landing-page #tb__home__events .project__margin > .container {
    padding-block: 0;
}

.landing-page #tb__home .herobanner__content__wrapper {
    padding-top: 24px;
}

.landing-page #dmw-banner-slider .dmw-banner-slide-row {
    min-height: 320px;
    max-height: none;
    height: auto;
}

.landing-page #tb__contact .contact__input__wrapper {
    padding: clamp(20px, 3vw, 36px);
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(10, 6, 36, .05);
}

.landing-page #tb__contact .contact__common__input {
    margin-bottom: 16px;
    border-radius: 10px;
}

.landing-page #tb__contact .contact__info {
    padding: 28px;
    margin-bottom: 20px;
    border-radius: 18px;
}

.landing-page #footer__area {
    /* No top padding: the wrapper has no background, so any padding here shows the page's white
       above the (dark) admin-authored footer. */
    padding-top: 0;
}

.landing-page #footer__area .footer__wrapper {
    padding-bottom: clamp(24px, 3vw, 40px);
}

.landing-page :is(#tb__home__services, #tb__home__projects) .project__single:focus-within {
    box-shadow: 0 12px 35px rgba(10, 6, 36, .12);
    border-color: var(--primaryColor);
}

@media (max-width: 991px) {
    .landing-page #tb__team {
        padding-block: var(--landing-section-space);
    }

    .landing-page #tb__team .team__left {
        padding-bottom: 24px;
    }
}

@media (max-width: 767px) {
    .landing-page #dmw-banner-slider .dmw-banner-slide-row {
        min-height: 280px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .landing-page :is(#tb__home__services, #tb__home__projects) .project__single,
    .landing-page :is(#tb__home__services, #tb__home__projects) .project__img img {
        transition: none;
        transform: none;
    }
}
