/* Header Fix CSS - Inline CSS'lerin taşındığı dosya */

/* Header normal başlangıç - Sticky sadece scroll'da */
body .header {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    z-index: 9999 !important;
    background: #18276a !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Scroll yapıldığında sticky olur - Tüm özellikleri override et */
body .header.scrolled {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    background: rgb(248 249 250 / 85%) !important;
    backdrop-filter: blur(2px) !important;
    -webkit-backdrop-filter: blur(2px) !important;
    box-shadow: 0 5px 20px rgb(105 105 105 / 37%) !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Scroll: yalnızca html kaydırır — ayrıntılar scroll-fix.css */

body.open-header {
    overflow: hidden !important;
}

/* Tüm scroll engelleme CSS'lerini kaldır */
.scrollDisabled {
    overflow: visible !important;
    position: static !important;
}

/* First-screen CSS override */
.first-screen {
    position: relative !important;
    height: auto !important;
    min-height: 100vh !important;
}

/* Content padding for fixed header */
body .content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Breadcrumb z-index düzeltmesi */
.breadcrumb {
    position: relative !important;
    z-index: 1 !important;
    background: #f8f9fa !important;
    padding: 15px 0 !important;
    margin-bottom: 20px !important;
}

/* First screen padding for fixed header */
.first-screen {
    padding-top: 0 !important;
    margin-top: 0 !important;
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    position: relative !important;
}

/* Image sizing fixes */
.about__picture img,
.about__img {
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
}

/* Scroll behavior */
html {
    scroll-behavior: smooth !important;
    scroll-padding-top: 0 !important;
    overflow-x: hidden !important;
    position: relative !important;
}

body {
    padding-top: 0 !important;
    margin-top: 0 !important;
    overflow-x: hidden !important;
    position: relative !important;
    width: 100% !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .first-screen {
        padding-top: 0 !important;
        min-height: 100vh !important;
    }
    
    #bizkimiz,
    #ozellikler,
    #sektorler,
    #fiyatlandirma {
        padding-top: 0 !important;
    }
    
    body .header {
        position: relative !important;
    }
    
    body .content {
        padding-top: 0 !important;
    }
    
    html {
        scroll-padding-top: 0 !important;
    }
}

/* Header layout - menü taşmasını önle */
body .header .wrapper {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
    box-sizing: border-box !important;
    gap: 1rem;
}

body .header .nav-logo {
    flex: 0 1 auto;
    max-width: 16.5rem;
    min-width: 0;
}

/* TEMP: 15 Temmuz header logo testi — yan yana, üst üste binmesin */
body .header .nav-logo {
    display: inline-flex !important;
    align-items: center;
    gap: 1rem;
    max-width: none !important;
    width: auto !important;
    flex: 0 0 auto !important;
    min-width: auto !important;
    overflow: visible !important;
}

body .header .nav-logo > .logo {
    flex: 0 0 auto !important;
    max-width: none !important;
    min-width: auto !important;
}

body .header .nav-logo-15temmuz {
    position: relative;
    z-index: 2;
    display: block;
    height: 4.8rem;
    width: auto;
    flex: 0 0 auto !important;
    object-fit: contain;
    filter:
        drop-shadow(0 0 0.35rem rgba(255, 255, 255, 0.55))
        drop-shadow(0 0 0.9rem rgba(255, 255, 255, 0.28));
}

@media (max-width: 768px) {
    body .header .nav-logo-15temmuz {
        height: 3.2rem;
    }
}

body .header .header-right {
    flex: 1 1 0;
    min-width: 0;
}

body .header .menu-box {
    flex: 1 1 auto;
    min-width: 0;
    margin-right: 0.75rem;
}

body .header .header-buttons {
    flex-shrink: 0;
}

@media (min-width: 769px) {
    body .header .main-menu {
        font-size: 1.5rem;
    }

    body .header .main-menu > li {
        margin: 0 1.65rem;
    }
}

@media (min-width: 769px) and (max-width: 1400px) {
    body .header .main-menu {
        font-size: 1.28rem;
    }

    body .header .main-menu > li {
        margin: 0 1.65rem;
    }
}

/* Normal header: koyu mavi arka plan + beyaz menü/logo yazısı */
/* logo_type.png: 1546x216 — amblem sol ~216px; kanat ucu biraz daha sağa taşar */
body .header:not(.scrolled) .logo {
    --logo-h: 5.2rem;
    --logo-emblem-w: calc(var(--logo-h) * 1.1);
    --logo-wordmark-w: 32rem;
    display: inline-flex;
    align-items: center;
    max-width: 100%;
}

body .header:not(.scrolled) .logo-full {
    display: none;
}

body .header:not(.scrolled) .logo-split {
    display: inline-flex;
    align-items: center;
    gap: 0;
}

/* Amblem: renkli, oran korunur */
body .header:not(.scrolled) .logo-emblem {
    flex-shrink: 0;
    width: var(--logo-emblem-w);
    height: var(--logo-h);
    overflow: hidden;
}

body .header:not(.scrolled) .logo-emblem img {
    height: var(--logo-h);
    width: auto;
    max-width: none;
    display: block;
}

/* Yazı kısmı: görsel, beyaz */
body .header:not(.scrolled) .logo-wordmark {
    flex-shrink: 0;
    width: var(--logo-wordmark-w);
    height: var(--logo-h);
    overflow: hidden;
}

body .header:not(.scrolled) .logo-wordmark img {
    height: var(--logo-h);
    width: auto;
    max-width: none;
    display: block;
    /* 1546x216 görselde amblem sol 216px kare — tam hizalama için -1 */
    margin-left: calc(var(--logo-emblem-w) * -1);
    filter: brightness(0) invert(1);
}

body .header.scrolled .logo-split {
    display: inline-flex !important;
    align-items: center;
    gap: 0;
}

/* Sticky: koyu zemindeki split yerine açık barda renkli amblem + koyu yazı, büyük boyut */
body .header.scrolled .logo {
    --logo-h: 5rem;
    --logo-emblem-w: calc(var(--logo-h) * 1.1);
    --logo-wordmark-w: calc(var(--logo-h) * 1330 / 216);
    display: inline-flex;
    align-items: center;
    max-width: 100%;
}

body .header.scrolled .logo-full {
    display: none !important;
}

body .header.scrolled .logo-emblem,
body .header.scrolled .logo-wordmark {
    height: var(--logo-h);
    overflow: hidden;
    flex-shrink: 0;
}

body .header.scrolled .logo-emblem {
    width: var(--logo-emblem-w);
}

body .header.scrolled .logo-wordmark {
    width: var(--logo-wordmark-w);
}

body .header.scrolled .logo-emblem img,
body .header.scrolled .logo-wordmark img {
    height: var(--logo-h) !important;
    width: auto !important;
    max-width: none !important;
    display: block;
}

body .header.scrolled .logo-wordmark img {
    margin-left: calc(var(--logo-emblem-w) * -1) !important;
    filter: none !important;
}

body .header.scrolled .bars-mob .hamburger span,
body .header.scrolled .bars-mob .cross span {
    background: #0c153d !important;
}

body .header:not(.scrolled) .main-menu > li > a,
body .header:not(.scrolled) .main-menu > li > a i,
body .header:not(.scrolled) .main-menu > li > a .arrow-down {
    color: #fff !important;
}

body .header:not(.scrolled) .main-menu > li:hover > a,
body .header:not(.scrolled) .main-menu > li.has-submenu:hover > a,
body .header:not(.scrolled) .main-menu > li:hover > a i,
body .header:not(.scrolled) .main-menu > li:hover > a .arrow-down {
    color: rgba(255, 255, 255, 0.9) !important;
}

body .header:not(.scrolled) .main-menu > li > a:before {
    border-color: #fff !important;
}

/* Alt menü: beyaz panel üzerinde koyu yazı */
body .header:not(.scrolled) .main-menu .submenu a,
body .header:not(.scrolled) .main-menu .submenu a i {
    color: #646A89 !important;
}

body .header:not(.scrolled) .main-menu .submenu a:hover,
body .header:not(.scrolled) .main-menu .submenu a:hover i {
    color: var(--color1) !important;
}

body .header:not(.scrolled) .main-menu .submenu a:before {
    display: none !important;
}

body .header:not(.scrolled) .main-menu .submenu .submenu a,
body .header:not(.scrolled) .main-menu .submenu .submenu a i {
    color: #646A89 !important;
}

body .header:not(.scrolled) .main-menu .submenu .submenu a:hover,
body .header:not(.scrolled) .main-menu .submenu .submenu a:hover i {
    color: var(--color1) !important;
}

body .header:not(.scrolled) .bars-mob .hamburger span,
body .header:not(.scrolled) .bars-mob .cross span {
    background: #fff !important;
}

/* Mobil header: logo yazısı tam görünsün; Bağış kompakt sağda */
@media (max-width: 768px) {
    body .header .wrapper {
        padding: 0.55rem 0.7rem !important;
        gap: 0.35rem !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
    }

    body .header .nav-logo {
        flex: 1 1 auto !important;
        max-width: none !important;
        min-width: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    /*
     * logo_type.png = 1546x216, amblem sol 216px.
     * Yazı genişliği = yükseklik * (1330/216). Kısaltma yok.
     */
    body .header:not(.scrolled) .logo {
        --logo-h: clamp(1.85rem, 4.8vw, 2.35rem);
        --logo-emblem-w: calc(var(--logo-h) * 1.1);
        --logo-wordmark-w: calc(var(--logo-h) * 1330 / 216);
        max-width: 100%;
    }

    /* Sticky: üst bardaki 150. yıl logosu ve Bağış butonuyla çakışmaması için normal header ile aynı boyut */
    body .header.scrolled .logo {
        --logo-h: clamp(1.85rem, 4.8vw, 2.35rem);
        --logo-emblem-w: calc(var(--logo-h) * 1.1);
        --logo-wordmark-w: calc(var(--logo-h) * 1330 / 216);
        max-width: 100%;
    }

    body .header:not(.scrolled) .logo-split,
    body .header.scrolled .logo-split {
        gap: 0;
        max-width: 100%;
    }

    body .header:not(.scrolled) .logo-emblem,
    body .header:not(.scrolled) .logo-wordmark,
    body .header.scrolled .logo-emblem,
    body .header.scrolled .logo-wordmark {
        height: var(--logo-h);
        flex-shrink: 0;
    }

    body .header:not(.scrolled) .logo-emblem,
    body .header.scrolled .logo-emblem {
        width: var(--logo-emblem-w);
    }

    body .header:not(.scrolled) .logo-wordmark,
    body .header.scrolled .logo-wordmark {
        width: var(--logo-wordmark-w);
        max-width: none;
        overflow: hidden;
    }

    body .header:not(.scrolled) .logo-emblem img,
    body .header:not(.scrolled) .logo-wordmark img,
    body .header.scrolled .logo-emblem img,
    body .header.scrolled .logo-wordmark img {
        height: var(--logo-h) !important;
        width: auto !important;
        max-width: none !important;
    }

    body .header:not(.scrolled) .logo-wordmark img {
        margin-left: calc(var(--logo-emblem-w) * -1) !important;
    }

    body .header.scrolled .logo-wordmark img {
        margin-left: calc(var(--logo-emblem-w) * -1) !important;
        filter: none !important;
    }

    body .header.scrolled .logo-full {
        display: none !important;
    }

    body .header .header-right {
        flex: 0 0 auto !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 0.3rem !important;
        width: auto !important;
        max-width: none !important;
        align-self: center !important;
    }

    body .header .header-buttons {
        flex-direction: row !important;
        flex-shrink: 0 !important;
        width: auto !important;
        max-width: none !important;
        gap: 0.25rem !important;
        align-items: center !important;
        margin: 0 !important;
    }

    body .header .header-buttons .btn-2,
    body .header .btn_started-header {
        width: auto !important;
        max-width: none !important;
        height: 2rem !important;
        min-height: 2rem !important;
        min-width: 0 !important;
        padding: 0 0.65rem !important;
        margin: 0 !important;
        font-size: 0.75rem !important;
        line-height: 1 !important;
        border-radius: 999px !important;
        white-space: nowrap !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
        top: auto !important;
        transform: none !important;
    }

    body .header .bars-mob {
        position: relative !important;
        top: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
    }
}

@media (max-width: 380px) {
    body .header:not(.scrolled) .logo {
        --logo-h: clamp(1.7rem, 4.6vw, 2rem);
    }

    body .header.scrolled .logo {
        --logo-h: clamp(1.7rem, 4.6vw, 2rem);
    }

    body .header .header-buttons .btn-2,
    body .header .btn_started-header {
        padding: 0 0.55rem !important;
        font-size: 0.7rem !important;
        height: 1.85rem !important;
        min-height: 1.85rem !important;
    }
}
