/* ===========================================
   RESPONSIVE CSS - Deniz Kombi (Premium Mobile Fix)
   Footer: 2-Column Layout
   Header: Compact 60px Fixed
   Scrollbar: Custom Premium Style
   =========================================== */

/* ============================================
   GLOBAL SCROLLBAR (PREMIUM)
   ============================================ */
::-webkit-scrollbar {
    width: 10px !important;
    background-color: #121212;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #002347 0%, #3b82f6 100%);
    border-radius: 5px;
    border: 2px solid #121212;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #003366 0%, #60a5fa 100%);
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 0;
}

/* ============================================
   HEADER RESPONSIVE (PREMIUM)
   ============================================ */

@media (max-width: 1024px) {
    .header-bottom .wrapper {
        grid-template-columns: 1fr 180px 1fr !important;
        gap: 20px !important;
    }

    .other-menu {
        padding-right: 20px !important;
    }

    .logo-field .image img {
        transform: scale(0.9) !important;
    }
}

@media (max-width: 768px) {
    /* ============================================
       HEADER RESPONSIVE (COMPACT & FIXED)
       Height: 60px
       ============================================ */

    /* Grid Yapısı: Sol (Menü) - Orta (Logo) - Sağ (Buton) */
    .header-bottom .wrapper {
        grid-template-columns: 50px 1fr 90px !important;
        gap: 5px !important;
        padding: 0 10px !important;
        align-items: center !important;
        height: 60px !important;
        /* Header yüksekliğini sabitle */
    }

    /* 1. SOL: Menü Butonu */
    .menu {
        padding-left: 0 !important;
        justify-content: flex-start !important;
        margin-left: -5px !important;
    }

    .custom-menu-btn {
        margin-left: 0 !important;
        transform: scale(0.75);
        /* Daha da küçült */
        transform-origin: left center;
    }

    .custom-search-btn {
        display: none !important;
    }

    /* 2. ORTA: Logo (Kompakt) */
    .logo-field {
        height: 60px !important;
        /* Wrapper ile aynı yükseklik */
        padding-top: 0 !important;
        /* Yukarıdaki boşluğu al */
        align-items: center !important;
        /* Tam ortala */
        display: flex !important;
        justify-content: center !important;
    }

    .logo-link {
        height: 100% !important;
        align-items: center !important;
        transform: none !important;
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
    }

    .logo-field .image {
        height: 45px !important;
        /* Logoyu küçült */
        width: auto !important;
        align-items: center !important;
        transform: none !important;
        display: flex !important;
    }

    .logo-field .image img {
        transform: scale(1.0) !important;
        /* Abartılı büyütmeyi iptal et, sığdır */
        height: 100% !important;
        width: auto !important;
    }

    .logo-field .logo-text {
        display: none !important;
    }

    /* 3. SAĞ: buton */
    .other-menu {
        padding-right: 0 !important;
        margin-right: 0 !important;
        justify-content: flex-end !important;
        gap: 5px !important;
    }

    /* Hizmetler Butonu */
    .hero-cta-btn {
        font-size: 10px !important;
        padding: 5px 8px !important;
        /* Daha kompakt padding */
        height: 30px !important;
        /* Sabit yükseklik */
        line-height: 18px !important;
        /* Dikey ortalama */
        display: flex !important;
        align-items: center !important;
        margin-right: 0 !important;
        white-space: nowrap !important;
        border-radius: 4px !important;
        background: #002347 !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        color: white !important;
    }

    /* Tel icon */
    .other-menu a[href^="tel:"] {
        width: 28px !important;
        height: 28px !important;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-right: 0 !important;
    }

    .other-menu a[href^="tel:"] span {
        display: none !important;
    }

    .other-menu a[href^="tel:"] svg {
        width: 12px !important;
        height: 12px !important;
    }

    /* Header Container Yüksekliği */
    header.header-field {
        height: 60px !important;
        min-height: 60px !important;
    }

    .header-field.is-fixed {
        height: 60px !important;
    }

    .header-bottom::before {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(18, 18, 18, 0.95);
        z-index: -1;
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* ============================================
       FOOTER REVİZYON (CLEAN SPACING)
       ============================================ */

    .footer-section {
        display: flex !important;
        flex-direction: column !important;
        padding-bottom: 20px !important;
        padding-top: 20px !important;
    }

    /* 1. İLETİŞİM KUTUSU (Üstte) */
    .footer-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        padding: 20px 15px !important;
        border-bottom: none !important;
        margin-bottom: 20px !important;
        /* ALAN AÇMA */
        background: rgba(255, 255, 255, 0.02);
        border-radius: 12px;
        margin-top: 20px !important;
        margin-left: 15px !important;
        margin-right: 15px !important;
        height: auto !important;
    }

    .phone-email-container {
        order: 1 !important;
        padding: 0 !important;
        gap: 20px !important;
        /* Tel ile Mail arasını aç */
        justify-content: center !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .phone-email-container .contact-link {
        font-size: 14px !important;
        justify-content: center !important;
    }

    .instagram-container {
        order: 2 !important;
        padding: 0 !important;
        margin-top: 10px !important;
        justify-content: center !important;
    }

    .logo-section,
    .footer-line-container::after,
    .footer-nav {
        display: none !important;
    }

    /* 2. KONUM KARTI (Ortada - Bol Boşluklu) */
    .address-box {
        order: 2 !important;
        margin: 0 15px 30px 15px !important;
        /* ALAN AÇMA */
        padding: 25px !important;
        background: #111 !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        position: relative;
        z-index: 2;
    }

    .address-title {
        font-size: 1.1rem !important;
        margin-bottom: 15px !important;
    }

    .address-text {
        font-size: 0.95rem !important;
    }

    /* 3. POLİTİKALAR (En Altta) */
    .footer-bottom {
        order: 3 !important;
        display: flex !important;
        flex-direction: column-reverse !important;
        gap: 15px !important;
        padding-top: 0 !important;
        margin-top: 0 !important;
        border-top: none !important;
    }

    .policy-links {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
    }

    .policy-links a {
        padding: 10px !important;
        background: rgba(255, 255, 255, 0.02);
        border-radius: 6px;
        font-size: 12px !important;
    }

    .copyright {
        font-size: 11px !important;
        opacity: 0.6;
        margin-top: 10px;
    }
}

/* ============================================
   PAGE CONTENT FIXES
   ============================================ */
@media (max-width: 768px) {

    .hero-left-content h1,
    h1.text-6xl {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }

    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .grid.lg\\:grid-cols-3,
    .stats-container {
        grid-template-columns: 1fr !important;
    }

    body {
        overflow-x: hidden !important;
    }
}