/* ==========================================================================
   SGR GRUP - MOBILE RESPONSIVE
   Sadece mobil/tablet için çalışır, desktop bozulmaz.
   ========================================================================== */

@media (max-width: 1024px) {
    html,
    body {
        width: 100%;
        overflow-x: hidden;
    }

    body {
        -webkit-text-size-adjust: 100%;
    }

    .container {
        width: 100%;
        max-width: 100%;
        padding-left: 22px;
        padding-right: 22px;
    }

    img,
    video {
        max-width: 100%;
    }

    section {
        overflow-x: hidden;
    }

    /* HEADER */
    .header {
        height: 78px;
    }

    .nav-container {
        height: 78px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .logo {
        max-width: 76px;
        position: relative;
        z-index: 10002;
    }

    .logo img {
        width: 100%;
        height: auto;
        display: block;
    }

    .nav-menu {
        display: none !important;
    }

    .header-socials,
    .header-actions > .btn {
        display: none !important;
    }

    .menu-toggle {
        display: inline-flex !important;
        width: 46px;
        height: 46px;
        border-radius: 14px;
        border: 1px solid rgba(15, 23, 42, 0.08);
        background: #ffffff;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 5px;
        padding: 0;
        position: relative;
        z-index: 10002;
        box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    }

    .menu-toggle span {
        width: 20px;
        height: 2px;
        background: #0f172a;
        border-radius: 999px;
        display: block;
    }

    /* MOBILE MENU */
    .mobile-nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.42);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        z-index: 9998;
        transition: all 0.35s ease;
    }

    .mobile-nav-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: all;
    }

    .mobile-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: min(390px, 88vw);
        height: 100vh;
        background: #ffffff;
        z-index: 9999;
        transform: translateX(104%);
        transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
        padding: 32px 22px 26px;
        display: flex;
        flex-direction: column;
        box-shadow: -28px 0 70px rgba(15, 23, 42, 0.18);
    }

    .mobile-nav.active {
        transform: translateX(0);
    }

    .mobile-menu-close {
        width: 44px;
        height: 44px;
        border-radius: 14px;
        border: 1px solid rgba(15, 23, 42, 0.08);
        background: #f8fafc;
        color: #0f172a;
        font-size: 28px;
        line-height: 1;
        align-self: flex-end;
        margin-bottom: 30px;
        cursor: pointer;
    }

    .mobile-links {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .mobile-links a,
    .mobile-link {
        min-height: 54px;
        padding: 0 18px;
        border-radius: 16px;
        background: #f8fafc;
        color: #0f172a;
        font-size: 14px;
        font-weight: 800;
        text-decoration: none;
        border: 1px solid rgba(15, 23, 42, 0.05);
        display: flex;
        align-items: center;
    }

    .mobile-links a:hover,
    .mobile-link:hover {
        background: rgba(10, 92, 54, 0.08);
        color: #0a5c36;
    }

    body.mobile-menu-open {
        overflow: hidden;
    }

    /* HERO */
    .hero-fullscreen {
        min-height: 100svh;
    }

    .hero-fullscreen-container {
        min-height: 100svh;
        display: flex;
        align-items: flex-end;
        padding-bottom: 110px;
    }

    .hero-fullscreen-content {
        max-width: 100%;
    }

    .hero-tag {
        font-size: 10px;
        padding: 8px 12px;
    }

    .hero-fullscreen-content h1 {
        font-size: clamp(42px, 11vw, 72px);
        line-height: 0.96;
        letter-spacing: -0.065em;
    }

    .hero-fullscreen-content p {
        font-size: 15px;
        line-height: 1.75;
        max-width: 100%;
    }

    .hero-fullscreen-actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .hero-fullscreen-actions .btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .hero-slider-control-panel {
        left: 22px;
        right: 22px;
        bottom: 24px;
        width: auto;
        display: flex;
        justify-content: space-between;
        gap: 14px;
    }

    .hero-slider-dots {
        max-width: 52%;
        overflow: hidden;
    }

    /* GENEL */
    .section-padding {
        padding-top: 82px;
        padding-bottom: 82px;
    }

    .section-title,
    .hero-content h2,
    .sgr-projects-header h2,
    .sgr-detail-main h2 {
        font-size: clamp(32px, 8vw, 48px) !important;
        line-height: 1.05 !important;
        letter-spacing: -0.055em !important;
    }

    .section-desc {
        font-size: 15px;
        line-height: 1.75;
    }

    /* 360 */
    #panorama-viewer {
        height: 420px !important;
        min-height: 420px !important;
    }

    .panorama-frame-wrapper {
        border-radius: 24px;
        overflow: hidden;
    }

    .panorama-text-switcher {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .room-text-btn {
        width: 100%;
        min-height: 48px;
    }

    .panorama-tour-link {
        grid-column: 1 / -1;
        text-align: center;
    }

    /* KAMPANYA / ANA SAYFA GRID */
    .campaign-wrapper,
    .assurance-wrapper,
    .hero-grid {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 28px;
    }

    .deal-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    .hero-visual {
        min-height: 420px;
    }

    /* KURUMSAL */
    .corp-page-section,
    .corporate-content-area section {
        padding-top: 118px !important;
        padding-bottom: 82px !important;
    }

    .corp-grid,
    .corp-content-grid,
    .corp-page-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 34px !important;
    }

    .corp-visual-col {
        order: -1;
    }

    .corp-asymmetric-wrapper {
        min-height: 420px;
    }

    .corp-img-box.img-large {
        width: 78% !important;
        height: 360px !important;
    }

    .corp-img-box.img-small {
        width: 48% !important;
        height: 220px !important;
    }

    /* HİZMETLER */
    .services-content-area section {
        padding-top: 118px !important;
        padding-bottom: 82px !important;
    }

    .services-grid,
    .service-grid,
    .sgr-services-grid {
        grid-template-columns: 1fr !important;
        gap: 22px !important;
    }

    /* PROJELER */
    .sgr-projects-page {
        padding: 118px 0 82px !important;
    }

    .sgr-project-switch {
        margin: 30px auto 38px !important;
        gap: 10px;
    }

    .sgr-projects-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .sgr-project-image {
        height: 340px !important;
    }

    .sgr-project-content {
        padding: 28px 24px 30px !important;
    }

    .sgr-project-content h3 {
        font-size: 30px !important;
    }

    .sgr-project-detail-btn {
        width: 100%;
        min-height: 50px;
    }

    /* PROJE DETAY */
    .sgr-project-detail-hero {
        min-height: 64vh !important;
    }

    .sgr-project-detail-hero-content {
        padding-bottom: 58px !important;
    }

    .sgr-project-detail-hero-content h1 {
        font-size: clamp(40px, 10vw, 62px) !important;
        letter-spacing: -0.065em !important;
    }

    .sgr-detail-content-grid {
        padding: 70px 0 88px !important;
        gap: 30px !important;
    }

    .sgr-detail-main > p {
        font-size: 15.5px !important;
        line-height: 1.82 !important;
    }

    .sgr-detail-main-image {
        height: 440px !important;
        border-radius: 24px !important;
    }

    .sgr-detail-thumb-row {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 10px !important;
        overflow: visible !important;
        padding: 0 !important;
    }

    .sgr-detail-thumb {
        width: 100% !important;
        min-width: 0 !important;
        height: 78px !important;
        border-radius: 13px !important;
    }

    .sgr-detail-sidebar {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    .sgr-detail-action-row {
        grid-template-columns: 1fr 1fr !important;
    }

    /* İLETİŞİM */
    .contact-content-area section {
        padding-top: 118px !important;
        padding-bottom: 82px !important;
    }

    .contact-grid,
    .sgr-contact-grid {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
    }

    /* FOOTER */
    .footer {
        padding-top: 72px;
    }

    .footer-top {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 42px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 18px;
        padding-bottom: 34px;
    }

    .footer-bottom > div {
        flex-wrap: wrap;
        gap: 14px !important;
    }
}

/* TELEFON */
@media (max-width: 700px) {
    .container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .header {
        height: 72px;
    }

    .nav-container {
        height: 72px;
    }

    .logo {
        max-width: 68px;
    }

    .menu-toggle {
        width: 43px;
        height: 43px;
    }

    .mobile-nav {
        width: 86vw;
        padding: 28px 18px 24px;
    }

    .hero-fullscreen-content h1 {
        font-size: clamp(39px, 13vw, 58px);
    }

    .hero-fullscreen-container {
        padding-bottom: 118px;
    }

    .hero-slider-control-panel {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-slider-dots {
        max-width: 100%;
        display: flex;
        flex-wrap: wrap;
    }

    #panorama-viewer {
        height: 340px !important;
        min-height: 340px !important;
    }

    .panorama-text-switcher {
        grid-template-columns: 1fr;
    }

    .sgr-project-switch {
        flex-direction: column;
        align-items: stretch;
    }

    .sgr-project-switch button {
        width: 100%;
        min-height: 50px;
    }

    .sgr-project-image {
        height: 275px !important;
    }

    .sgr-project-content h3 {
        font-size: 27px !important;
    }

    .sgr-project-detail-hero {
        min-height: 62vh !important;
    }

    .sgr-detail-meta {
        gap: 8px;
    }

    .sgr-detail-meta span {
        font-size: 10px;
        padding: 9px 11px;
    }

    .sgr-detail-main-image {
        height: 305px !important;
    }

    .sgr-detail-thumb-row {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .sgr-detail-thumb {
        height: 70px !important;
    }

    .sgr-detail-info-card,
    .sgr-detail-feature-card {
        padding: 24px !important;
        border-radius: 22px !important;
    }

    .sgr-detail-action-row {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .corp-asymmetric-wrapper {
        min-height: 360px;
    }

    .corp-img-box.img-large {
        height: 310px !important;
    }

    .corp-img-box.img-small {
        height: 190px !important;
    }
}

/* KÜÇÜK TELEFON */
@media (max-width: 420px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-fullscreen-content h1 {
        font-size: 38px;
    }

    .sgr-project-image {
        height: 245px !important;
    }

    .sgr-detail-main-image {
        height: 275px !important;
    }

    .sgr-detail-thumb {
        height: 64px !important;
    }

    .corp-asymmetric-wrapper {
        min-height: 330px;
    }
}
/* ==========================================================================
   MOBILE MENU - PROJELER AÇILIR ALT MENÜ
   ========================================================================== */

.mobile-submenu {
    width: 100%;
}

.mobile-submenu-toggle {
    width: 100%;
    min-height: 54px;
    padding: 0 18px;
    border-radius: 16px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    border: 1px solid rgba(15, 23, 42, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.mobile-submenu-toggle span {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(10, 92, 54, 0.08);
    color: #0a5c36;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 900;
    transition: transform 0.3s ease;
}

.mobile-submenu.active .mobile-submenu-toggle {
    background: rgba(10, 92, 54, 0.08);
    color: #0a5c36;
}

.mobile-submenu.active .mobile-submenu-toggle span {
    transform: rotate(45deg);
}

.mobile-submenu-panel {
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 8px 0 0 14px;
}

.mobile-submenu.active .mobile-submenu-panel {
    display: flex;
}

.mobile-submenu-panel a {
    min-height: 48px;
    padding: 0 16px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(10, 92, 54, 0.08);
    color: #0f172a;
    font-size: 13px;
    font-weight: 800;
}
.mobile-submenu {
    width: 100%;
}

.mobile-submenu-toggle {
    width: 100%;
    min-height: 54px;
    padding: 0 18px;
    border-radius: 16px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 14px;
    font-weight: 800;
    border: 1px solid rgba(15, 23, 42, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.mobile-submenu-toggle span {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(10, 92, 54, 0.08);
    color: #0a5c36;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 900;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.mobile-submenu.active .mobile-submenu-toggle {
    background: rgba(10, 92, 54, 0.08);
    color: #0a5c36;
    border-color: rgba(10, 92, 54, 0.14);
}

.mobile-submenu.active .mobile-submenu-toggle span {
    transform: rotate(45deg);
    background: #0a5c36;
    color: #ffffff;
}

.mobile-submenu-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.34s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-submenu-panel > * {
    overflow: hidden;
}

.mobile-submenu.active .mobile-submenu-panel {
    grid-template-rows: 1fr;
}

.mobile-submenu-panel a {
    min-height: 48px;
    margin-top: 8px;
    padding: 0 16px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(10, 92, 54, 0.09);
    color: #0f172a;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
}
/* ==========================================================================
   MOBILE SUBMENU - KAPALI BAŞLASIN / TIKLAYINCA AÇILSIN
   ========================================================================== */

.mobile-submenu {
    width: 100%;
}

.mobile-submenu-toggle {
    width: 100%;
    min-height: 54px;
    padding: 0 18px;
    border-radius: 16px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 14px;
    font-weight: 800;
    border: 1px solid rgba(15, 23, 42, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.mobile-submenu-toggle span {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(10, 92, 54, 0.08);
    color: #0a5c36;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 900;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

/* KRİTİK KISIM: Alt menü normalde tamamen kapalı */
.mobile-submenu-panel {
    display: flex !important;
    flex-direction: column;
    gap: 8px;
    max-height: 0 !important;
    overflow: hidden !important;
    opacity: 0;
    padding: 0 0 0 12px !important;
    transition:
        max-height 0.36s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.25s ease,
        padding 0.25s ease;
}

/* Sadece active olunca açılsın */
.mobile-submenu.active .mobile-submenu-panel {
    max-height: 360px !important;
    opacity: 1;
    padding: 10px 0 0 12px !important;
}

.mobile-submenu-panel a {
    min-height: 48px;
    padding: 0 16px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(10, 92, 54, 0.09);
    color: #0f172a;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
}

.mobile-submenu.active .mobile-submenu-toggle {
    background: rgba(10, 92, 54, 0.08);
    color: #0a5c36;
    border-color: rgba(10, 92, 54, 0.14);
}

.mobile-submenu.active .mobile-submenu-toggle span {
    transform: rotate(45deg);
    background: #0a5c36;
    color: #ffffff;
}
/* ==========================================================================
   MOBILE MENU - KAPALI BAŞLASIN
   ========================================================================== */

.mobile-submenu-panel {
    display: flex !important;
    flex-direction: column;
    gap: 8px;
    max-height: 0 !important;
    overflow: hidden !important;
    opacity: 0;
    padding: 0 0 0 12px !important;
    transition:
        max-height 0.36s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.25s ease,
        padding 0.25s ease;
}

.mobile-submenu.active .mobile-submenu-panel {
    max-height: 360px !important;
    opacity: 1;
    padding: 10px 0 0 12px !important;
}

.mobile-submenu.active .mobile-submenu-toggle span {
    transform: rotate(45deg);
}
/* ==========================================================================
   MOBILE MENU - TIKLAMA GARANTİ FIX
   ========================================================================== */

.mobile-nav {
    z-index: 999999 !important;
    pointer-events: auto !important;
}

.mobile-nav-overlay {
    z-index: 999998 !important;
}

.mobile-submenu,
.mobile-submenu-toggle,
.mobile-submenu-panel,
.mobile-submenu-panel a {
    position: relative;
    z-index: 2;
    pointer-events: auto !important;
}

.mobile-submenu-toggle {
    appearance: none;
    -webkit-appearance: none;
}

.mobile-submenu-panel {
    display: flex !important;
    flex-direction: column;
    gap: 8px;
    max-height: 0 !important;
    overflow: hidden !important;
    opacity: 0;
    padding: 0 0 0 12px !important;
    transition:
        max-height 0.36s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.25s ease,
        padding 0.25s ease;
}

.mobile-submenu.active .mobile-submenu-panel {
    max-height: 420px !important;
    opacity: 1;
    padding: 10px 0 0 12px !important;
}

.mobile-submenu.active .mobile-submenu-toggle span {
    transform: rotate(45deg);
}
/* Mobil hamburger içindeki açılır menü başlıkları */
.mobile-submenu-toggle {
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    font-size: 13px !important;
    font-weight: 900 !important;
}
/* Mobil hamburgerde + işareti sade olsun */
.mobile-submenu-toggle span {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    display: inline-block !important;
    color: #0a5c36 !important;
    font-size: 20px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}

.mobile-submenu.active .mobile-submenu-toggle span {
    background: transparent !important;
    color: #0a5c36 !important;
    transform: rotate(45deg);
}
/* ==========================================================================
   SADECE MOBİLDE İLETİŞİM SAYFASINDAKİ 360 BÖLÜMÜNÜ GİZLE
   Anasayfa ve 360 Sanal Tur sayfasına dokunmaz.
   ========================================================================== */

@media (max-width: 1024px) {
    body.contact-active #virtual-tour,
    body.contact-active .premium-panorama-section {
        display: none !important;
        height: 0 !important;
        min-height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
    }
}