/* Alkış — site geneli mobil / tablet uyum */

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

html,
body {
    overflow-x: clip;
    max-width: 100%;
}

/* Bootstrap .row negatif gutter taşmasını kes */
.fourth-container-mobile,
.second-container-mobile,
.statistics-section-mobile {
    overflow-x: clip;
    max-width: 100%;
}

.fourth-container-mobile .row,
.fourth-container-mobile .header-row,
.second-container-mobile .row,
.second-container-mobile .header-row {
    --bs-gutter-x: 0;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100%;
}

img,
video,
iframe,
svg {
    max-width: 100%;
    height: auto;
}

iframe {
    max-width: 100%;
}

/* Eski menü arka plan bloğu — boş 100vh boşluk yaratmasın */
#first-container-sm-menu,
.first-container-xs-menu {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

/*
 * Tablet / küçük laptop (≤991px):
 * Bootstrap d-sm 576px’te masaüstüne geçiyor; tabletlerde yapı bozuluyor.
 * Mobil kabuğu lg’ye kadar uzat.
 */
@media (max-width: 991.98px) {
    header.position-absolute.d-none.d-sm-block,
    header.d-none.d-sm-block:not(.mobile-header) {
        display: none !important;
    }

    header.mobile-header.d-sm-none,
    .mobile-header.d-sm-none {
        display: block !important;
    }

    .mobile-header__phone-row {
        display: none !important;
    }

    #first-container-lg.d-none.d-sm-block,
    .hero-slider-wrap.d-none.d-sm-block,
    .first-container.hero-slider-wrap.d-none.d-sm-block {
        display: none !important;
    }

    #first-container-sm.d-sm-none,
    .hero-slider-wrap-mobile.d-sm-none,
    .first-container-mobile.hero-slider-wrap-mobile.d-sm-none {
        display: block !important;
    }

    #statistics-section-lg.d-none.d-sm-block,
    .fourth-container.d-none.d-sm-block {
        display: none !important;
    }

    #statistics-section-sm.d-sm-none,
    .fourth-container-mobile.d-sm-none {
        display: block !important;
    }

    /* Proje listesi / eski sayfa mobil blokları */
    #second-container-lg.d-none.d-sm-block,
    .second-container.d-none.d-sm-block {
        display: none !important;
    }

    #second-container-sm.d-sm-none,
    .second-container-mobile.d-sm-none {
        display: block !important;
    }

    .mail-content.d-none.d-sm-block,
    .link-area.d-none.d-sm-block {
        display: none !important;
    }

    .mail-content-mobile.d-sm-none,
    .link-area-mobile.d-sm-none {
        display: block !important;
    }

    .mobile-header__logo-link img {
        max-width: 86px;
    }

    .mobile-header__bar {
        min-height: 60px;
        padding: 12px 18px 14px;
    }

    .mobile-header__nav-inner {
        padding-top: 96px;
    }
}

/* ——— Mobil header (telefon) ——— */
@media (max-width: 575.98px) {
    .mobile-header__logo-link img {
        max-width: 78px;
    }

    .mobile-header__menu-btn,
    .mobile-header__close-btn {
        width: 42px;
        height: 42px;
    }
}

/* ——— Ortak about-hero (iç sayfalar) ——— */
@media (max-width: 960px) {
    .about-hero {
        min-height: min(78vh, 640px);
    }

    .about-hero__content {
        padding: clamp(108px, 22vw, 140px) 0 0;
    }

    .about-hero__brand {
        font-size: clamp(2.4rem, 12vw, 3.6rem);
    }

    .about-hero__title {
        font-size: clamp(1.35rem, 5.2vw, 1.85rem);
        max-width: 18ch;
    }

    .about-hero__lead {
        font-size: 0.98rem;
        max-width: 34rem;
    }

    .about-hero__actions {
        flex-wrap: wrap;
        gap: 12px 16px;
    }

    .about-hero__foot-inner {
        gap: 10px 18px;
        font-size: 0.68rem;
        letter-spacing: 0.12em;
        flex-wrap: wrap;
    }
}

@media (max-width: 575.98px) {
    .about-hero {
        min-height: min(88vh, 720px);
    }

    .about-hero__content {
        padding-top: 118px;
    }

    .about-hero__panel {
        gap: 22px;
        padding-bottom: 28px;
    }

    .about-hero__year strong {
        font-size: clamp(1.15rem, 6vw, 1.45rem);
    }

    .about-btn {
        min-height: 46px;
        padding: 0 18px;
        font-size: 0.75rem;
    }

    .about-wrap {
        padding-left: 18px;
        padding-right: 18px;
    }
}

/* ——— Ana sayfa hero mobil (panel detayları hero-slider.css) ——— */
@media (max-width: 575.98px) {
    .hero-slider-wrap-mobile {
        min-height: 100svh;
        min-height: 100dvh;
        overflow: hidden;
    }
}

/* ——— Güncel projeler ——— */
@media (max-width: 575.98px) {
    .cp-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .cp-cards-grid {
        max-width: 100%;
    }

    .cp-blob {
        display: none;
    }
}

/* ——— Misyon ——— */
@media (max-width: 991.98px) {
    .mission-section {
        overflow: hidden;
    }

    .mission-section__visual {
        overflow: hidden;
    }

    .mission-section__logo-wrap {
        max-width: 42vw;
        width: min(180px, 42vw) !important;
    }

    .mission-section__logo {
        max-width: 100%;
        max-height: 96px !important;
    }
}

@media (max-width: 575.98px) {
    .mission-section__inner {
        gap: 28px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .mission-section__title {
        font-size: clamp(1.55rem, 7vw, 2rem);
    }

    .mission-section__visual {
        min-height: 340px !important;
        border-radius: 0;
    }
}

/* ——— Haberler ——— */
@media (max-width: 767.98px) {
    .news-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .news-section__title {
        font-size: clamp(1.45rem, 6.5vw, 1.85rem);
    }

    .ns-card {
        flex-basis: min(280px, 82vw);
    }
}

/* ——— Footer ——— */
@media (max-width: 575.98px) {
    .site-footer__inner {
        padding: 40px 18px 24px;
    }

    .site-footer__columns {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .site-footer__col-title {
        margin-bottom: 8px;
    }

    .site-footer__disclaimer {
        font-size: 10.5px;
        line-height: 1.5;
    }
}

/* ——— Kurumsal / sus / blog / galeri / projeler ——— */
@media (max-width: 575.98px) {
    .sus-wrap,
    .blog-page .about-wrap,
    .gallery-page .about-wrap,
    .projects-page .about-wrap {
        padding-left: 18px;
        padding-right: 18px;
    }

    .sus-heading,
    .about-heading {
        font-size: clamp(1.55rem, 7vw, 2rem);
    }

    .sus-principles__list {
        grid-template-columns: 1fr !important;
    }

    .sus-principles__item:nth-child(odd) {
        border-right: 0 !important;
    }

    .sus-focus__panel {
        grid-template-columns: 1fr !important;
    }

    .sus-cta__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .projects-grid,
    .gallery-grid,
    .blog-list {
        gap: 16px;
    }
}

/* ——— İletişim ——— */
@media (max-width: 640px) {
    .cu-body {
        padding-top: 40px;
    }

    .cu-cards {
        gap: 12px;
    }

    .cu-card {
        padding: 20px 18px;
    }

    .cu-map-section__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .cu-btn {
        width: 100%;
    }
}

/* Touch hedefi */
@media (max-width: 991.98px) {
    .about-btn,
    .sus-btn,
    .cu-btn,
    .cp-view-all-btn,
    .cp-card-btn {
        min-height: 46px;
    }
}
