/* ==========================================================================
   RESPONSIVE STYLES
   ========================================================================== */

@media (max-width: 1800px) {
    .rb-wrap {
        max-width: 1550px;
    }
}

@media (max-width: 1650px) {
    .rb-wrap {
        max-width: 1400px;
    }

    .rb-leadership__line {
        margin-bottom: 25px;
    }

    .rb-leadership__subtitle {
        margin-bottom: 25px;
    }

    .rb-leadership__title {
        margin-bottom: 25px;
    }

    .rb-leadership__quote-wrap {
        margin-bottom: 25px;
    }
    .rb-nav-link,
    .rb-navbar.scrolled .rb-nav-link {
        font-size: 14px !important;
        padding: 0 10px !important;
    }
}

@media (max-width: 1500px) {
    .rb-wrap {
        max-width: 1360px;
    }

}

@media (max-width: 1350px) {
    .rb-wrap {
        max-width: 100%;
        padding-inline: clamp(1rem, 4vw, 2rem);
    }

    .top-margin {
        margin-top: 110px;
    }

    .rb-nav-link,
    .rb-navbar.scrolled .rb-nav-link {
        font-size: 13px !important;
        padding: 0 10px !important;
    }
}

@media (max-width: 1200px) {
    .main-head {
        max-width: 100%;
        width: 100%;
        flex-direction: column;
        padding-bottom: 15px !important;
    }

    p {
        line-height: 20px !important;
    }

    .rb-about {
        overflow: hidden;
        padding-bottom: 0px !important;
    }

    .rb-stat-number {
        line-height: 50px;
    }

    .rb-about p.rb-stat-label {
        margin-bottom: 0px;
    }

    .rb-about p.rb-about__text {
        margin-bottom: 30px !important;
    }

    .rb-best-builders .rb-section-title {
        margin-bottom: 0px !important;
    }

    .top-margin {
        margin-top: 100px;
    }

    .video-column {
        --bs-gutter-y: 40px;
        --bs-gutter-x: 50px;
    }

    .video-column .col-12 {
        margin-bottom: 0px;
    }
}

@media (max-width:1100px) {
    .rb-hero {
        height: auto;
        min-height: 800px;
    }

    .rb-footer__bg-text {
        display: none;
    }

    .rb-footer__bottom {
        margin-top: 40px !important;
    }

    .rb-footer .rb-footer__bottom p {
        width: 100% !important;
        max-width: 100%;
    }
}

@media (max-width:1030px) {
    .rb-hero {
        height: auto;
        min-height: 700px;
    }

    .top-margin {
        margin-top: 90px;
    }
}

/* Mobile collapsed menu and smaller screens */
@media (max-width: 991.98px) {
    .rb-navbar {
        background-color: rgb(15 15 15);
        padding: 12px 0;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    }

    .top-margin {
        margin-top: 80px;
    }

    .people-behind-section {
        padding-top: 0px !important;
    }

    .rb-btn-primary,
    .rb-btn-dark,
    .rb-btn-outline {
        height: auto;
    }

    header .nav-item{
        padding:10px 0px;
    }

    .rb-hero {
        height: auto;
        min-height: 600px;
        margin-top: 100px;
    }

    .main-head {
        max-width: 100%;
        width: 100%;
        flex-direction: row;
        padding-bottom: 0px !important;
    }

    .rb-nav-list {
        padding: 16px 0;
    }

    .rb-navbar .rb-logo-white {
        display: block !important;
    }

    .rb-navbar .rb-logo-black {
        display: none !important;
    }

    .rb-video-card__play-icon {
        width: 53.33px;
        height: 53.33px;
    }

    .rb-btn-contact {
        margin-left: 0;
        margin-top: 1rem;
        margin: 12px 24px;
        width: calc(100% - 48px);
        justify-content: center;
    }

    .rb-about__title {
        font-size: 48px;
        line-height: 1.1;
    }

    .rb-about__image-wrap {
        padding-left: 0;
        padding-bottom: 0;
    }

    .rb-about__badge {
        width: 180px;
        padding: 20px;
    }

    .rb-badge-number {
        font-size: 42px;
    }

    .rb-stat-item {
        border-right: none;
        margin-bottom: 40px;
    }

    .rb-logo-wrap svg,
    .rb-logo-wrap img {
        width: 90px;
        height: auto;
    }

    /* Leadership Section Mobile Adjustments */
    .rb-leadership__title {
        font-size: 32px;
        line-height: 40px;
    }

    .rb-leadership__quote {
        font-size: 16px;
        line-height: 28px;
    }

    .rb-leadership__name {
        font-size: 20px;
        line-height: 28px;
    }

    .rb-about__divider {
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .rb-google-map {
        height: 300px;
    }

}

@media (max-width: 767.98px) {
    .rb-hero__caption {
        bottom: 100px;
        left: 24px;
        right: 24px;
    }

    .rb-career-card {
        padding: 25px;
    }

    .rb-service-grid__list {
        grid-template-columns: 1fr;
        gap: 0px;
    }

    .rb-footer__bottom {
        margin-top: 20px !important;
    }

    .rb-projects {
        padding-bottom: 0px !important;
    }

    .rb-lorem-section {
        padding-top: 0px !important;
    }

    .rb-leadership {
        padding-bottom: 0px !important;
    }

    .page-id-25 .rb-leadership {
        padding-bottom: 50px !important;
    }

    .rb-best-builders {
        padding-top: 0px !important;
    }

    .rb-hero {
        height: auto;
        min-height: 500px;
    }

    .rb-best-builders__text-wrap {
        margin-top: 25px;
        padding-left: 20px;
    }

    .rb-hero__play-btn {
        width: 60px;
        height: 60px;
    }

    .rb-faq-desc {
        width: 100%
    }

    .rb-about__img {
        height: auto;
    }

    .rb-ongoing-card__actions .btn {
        font-size: 11px;
        display: block;
    }

    .rb-ongoing-card__actions .btn svg {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .rb-hero__title {
        font-size: 28px;
    }
    .rb-stat-item {
        padding: 0px;
    }
    .video-column {
        --bs-gutter-y: 10px;
        --bs-gutter-x: 20px;
    }

    .rb-about p {
        font-size: 12px; 
    }

    .rb-about .rb-about__text p{
        font-size: 14px!important;
    }

    .rb-hero {
        height: auto;
        min-height: 400px;
    }
}

@media (max-width: 767.98px) {
    .rb-care-card {
        padding: 24px;
    }

    .rb-care-card__title {
        font-size: 20px;
    }
}

/* ── Gallery Responsive ───────────────────────────── */
@media (max-width: 991.98px) {
    .rb-gallery-hero {
        min-height: 55vh;
        padding-bottom: 60px;
    }

    .rb-gallery-tabs {
        gap: 32px;
    }

    .rb-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }

    .rb-lightbox__wrap {
        padding: 60px 60px;
    }
}

@media (max-width: 767.98px) {
    .rb-gallery-hero {
        min-height: 45vh;
        padding-bottom: 48px;
    }

    .rb-gallery-tabs {
        gap: 20px;
    }

    .rb-gallery-tab {
        font-size: 13px;
        letter-spacing: 2px;
    }

    .rb-photo-tabs-toggle {
        display: flex;
    }

    .rb-photo-tabs-toggle[aria-expanded="true"] .rb-photo-tabs-toggle__icon {
        transform: rotate(180deg);
    }

    .rb-photo-tabs {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 10;
        flex-direction: column;
        gap: 0;
        padding: 8px 0;
        border-radius: 8px;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
        background: #fff;
        margin-top: 8px;
    }

    .rb-photo-tabs.is-open {
        display: flex;
    }

    .rb-photo-tab {
        font-size: 11px;
        padding: 12px 20px;
        border: none;
        border-radius: 0;
        background: transparent;
        color: var(--rb-heading);
        text-align: left;
    }

    .rb-photo-tab.active {
        background: var(--rb-highlight);
        color: #fff;
    }

    .rb-photo-tab:hover {
        background: #f8f8f8;
        color: var(--rb-highlight);
    }

    .rb-photo-tab.active:hover {
        background: var(--rb-highlight);
        color: #fff;
    }

    .rb-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .rb-gallery-group-title {
        font-size: 22px;
        line-height: 1.3;
    }

    .rb-lightbox__wrap {
        padding: 60px 12px;
    }

    .rb-lightbox__prev {
        left: 8px;
    }

    .rb-lightbox__next {
        right: 8px;
    }

    .rb-lightbox__nav {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .rb-gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   SINGLE PROJECT — RESPONSIVE
   ========================================================================== */

@media (max-width: 991.98px) {
    .rb-project-hero-img {
        height: 360px;
    }

    .rb-project-tab-btn {
        padding: 12px 14px;
        font-size: 11px;
        letter-spacing: 0.5px;
    }

    .rb-details-value {
        font-size: 18px;
    }

    .rb-spec-title {
        font-size: 18px;
    }

    .rb-spec-content {
        font-size: 16px;
    }

    .rb-related-projects .row {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
        scrollbar-width: none;
        /* Firefox */
        margin-left: 0;
        margin-right: 0;
        justify-content: flex-start !important;
    }

    .rb-related-projects .row::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari */
    }

    .rb-related-projects .col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
        scroll-snap-align: center;
    }
}

@media (max-width: 767.98px) {
    .rb-project-hero-img {
        height: 280px;
    }

    .rb-related-projects .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
        scroll-snap-align: center;
    }

    .rb-project-tabs-nav {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .rb-project-tab-btn {
        flex-shrink: 0;
        padding: 10px 12px;
        font-size: 10px;
    }

    .rb-details-value {
        font-size: 16px;
        padding-left: 0;
    }

    .rb-spec-content {
        font-size: 14px;
        padding-left: 0;
    }

    .rb-project-map {
        height: 320px;
    }

    .rb-status-gallery-item {
        height: 300px;
    }

    .rb-plan-item img {
        height: 300px;
    }
}