/* --- Değişkenler --- */
:root {
    --c-orange: #FF6B00;
    --c-blue: #0A2B5E;
    --c-light-bg: #F8F9FA;
    --c-border: #EAEAEA;
    --font-main: 'Jost', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- Reset & Temel --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-main); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; width: 100%; }
a { text-decoration: none; transition: var(--transition); }
ul { list-style: none; }

/* Masaüstünde Menu Overlay ve Mobil Logo Gizli */
.menu-overlay { display: none; }
.mobile-menu-logo { display: none; }

/* --- HEADER TOP --- */
.main-header {
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    position: relative;
    z-index: 999;
}

.header-top {
    padding: 20px 0;
    border-bottom: 1px solid var(--c-border);
}

.header-top-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo img {
    max-height: 100px;
    object-fit: contain;
    transition: transform 0.4s ease;
}
.logo img:hover {
    transform: scale(1.03) rotate(-1deg);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-circle {
    width: 45px;
    height: 45px;
    border: 1px solid var(--c-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--c-orange);
    transition: var(--transition);
}
.action-item:hover .icon-circle {
    background: var(--c-orange);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
}

.action-text {
    display: flex;
    flex-direction: column;
}
.action-text .title {
    font-size: 0.85rem;
    color: var(--c-blue);
    font-weight: 400;
}
.action-text .value {
    font-size: 1.05rem;
    color: var(--c-blue);
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap; 
}
.address-action .action-text .value {
    font-weight: 400; 
    font-size: 0.95rem;
    white-space: normal;

    max-width: 280px;
}

.action-divider {
    width: 1px;
    height: 40px;
    background: var(--c-border);
}
.mobile-divider {
    display: none; 
}

/* E-Katalog Butonu */
.e-catalog-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid var(--c-orange);
    border-radius: 30px;
    color: var(--c-blue);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    white-space: nowrap;
}
.e-catalog-btn i {
    color: var(--c-orange);
    transition: var(--transition);
}
.e-catalog-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 0; height: 100%;
    background: var(--c-orange);
    z-index: -1;
    transition: var(--transition);
}
.e-catalog-btn:hover {
    color: #fff;
    border-color: var(--c-orange);
}
.e-catalog-btn:hover::before {
    width: 100%;
}
.e-catalog-btn:hover i {
    color: #fff;
}
.e-catalog-btn:hover .hover-arrow {
    transform: translateX(5px);
}

/* Hamburger Menü Butonu */
.hamburger-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--c-blue);
    color: var(--c-blue);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}
.hamburger-menu-btn:hover {
    background: var(--c-blue);
    color: #fff;
}

/* --- HEADER BOTTOM (Navigasyon) --- */
.header-bottom {
    background: #fff;
    position: relative;
}
.bottom-stripe {
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--c-orange) 0%, var(--c-orange) 30%, var(--c-blue) 30%, var(--c-blue) 100%);
    position: absolute;
    bottom: 0;
    left: 0;
}
.main-nav {
    transition: all 0.3s ease;
}
.main-nav ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.main-nav > ul > li {
    position: relative;
}
.main-nav > ul > li > a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 20px 10px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--c-blue);
    position: relative;
    z-index: 2;
}
.main-nav > ul > li > a i {
    font-size: 1.2rem;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.main-nav > ul > li:hover > a i {
    transform: scale(1.2) translateY(-2px);
    color: var(--c-orange);
}
.main-nav > ul > li::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 0; height: 4px;
    background: var(--c-orange);
    z-index: 3;
    transition: width 0.3s ease;
}
.main-nav > ul > li:hover::after,
.main-nav > ul > li.active::after {
    width: 100%;
}
.main-nav > ul > li.active > a,
.main-nav > ul > li:hover > a {
    color: var(--c-orange);
}
.main-nav > ul > li.active > a i,
.main-nav > ul > li:hover > a i {
    color: var(--c-orange);
}

/* --- YENİ MOBİL YAPI (Off-Canvas Menü) --- */
@media (max-width: 991px) {
    .desktop-only { display: none !important; }
    
    .header-top-flex {
        flex-wrap: wrap;
        gap: 0;
    }
    
    .logo {
        order: 1;
        width: calc(100% - 60px);
        text-align: left; 
    }
    .logo img {
        max-height: 85px;
    }

    .hamburger-menu-btn {
        order: 2;
        margin-left: auto;
        position: relative;
        z-index: 1001; 
    }

    .header-actions {
        order: 3;
        width: 100%;
        margin-top: 5px; 
        padding-top: 10px; 
        border-top: 1px solid var(--c-border);
        display: flex;
        justify-content: space-between; 
        align-items: center;
        gap: 10px;
    }

    .mobile-divider {
        display: block;
        height: 35px;
    }

    .action-item { gap: 10px; }
    .action-item .value { font-size: 1rem; }
    .action-item .title { font-size: 0.75rem; }
    
    .icon-circle {
        width: 40px; height: 40px; font-size: 1rem;
    }

    .e-catalog-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    /* Sağ taraftaki karartılmış boşluk (Overlay) */
    .menu-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        cursor: pointer; /* iOS Safari'de div'e click düşmesi için */
        -webkit-tap-highlight-color: transparent;
        background: rgba(10, 43, 94, 0.6); 
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
    }
    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Sol Kanat (Off-Canvas) Menü */
    .main-nav {
        display: block; 
        position: fixed;
        top: 0;
        left: -100%; 
        width: 75%; 
        max-width: 320px;
        height: 100vh;
        height: 100dvh; /* mobil adres çubuğu taşmasını önler */
        padding-bottom: 80px; /* alttaki linkler tarayıcı çubuğunun arkasında kalmasın */
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        background: #fff;
        box-shadow: 5px 0 25px rgba(0,0,0,0.15); 
        z-index: 1000;
        transition: left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); 
        overflow-y: auto;
        padding-top: 0; /* Eski 80px boşluğu iptal ettik, logo orayı dolduracak */
    }
    .main-nav.active {
        left: 0; 
    }

    /* Menü açıkken header'ı sabit butonların (hızlı iletişim vb.) üstüne çıkar */
    body.menu-open .main-header {
        z-index: 99999;
    }
    
    /* Mobil Menü Üst Logosu */
    .mobile-menu-logo {
        display: block;
        padding: 30px 15px 20px 15px;
        text-align: center;
        border-bottom: 1px solid var(--c-border);
        background: #fff;
    }
    .mobile-menu-logo img {
        max-height: 70px; /* Logoyu ekrana güzel sığacak şekilde ayarladık */
        object-fit: contain;
    }

    /* Mobil Menü Link Düzeni */
    .main-nav ul {
        flex-direction: column;
        padding: 0 15px;
    }
    .main-nav > ul > li {
        width: 100%;
        border-bottom: 1px solid var(--c-border);
    }
    .main-nav > ul > li > a {
        padding: 18px 15px;
        font-size: 1.05rem;
    }
    .main-nav > ul > li::after {
        display: none; 
    }
}