/* ============================================================
   header.css — Eliton Otomasyon Header
   Tüm sayfalara anamenu.php / menu.php üzerinden yüklenir.
   ============================================================ */

/* Eski bootsnav gizle */
.top-bar,
nav.navbar.bootsnav,
nav.bootsnav {
    display: none !important;
}

/* Sabit header yüksekliği kadar body padding (iç sayfalar) */
body {
    padding-top: 71px;
}

/* ============================================================
   HEADER ROOT
   ============================================================ */
.hd-root {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 9000;
    font-family: var(--font-main);
}

/* Kırmızı üst vurgu çizgisi */
.hd-root::before {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, #C8102E 0%, #9c0b22 55%, transparent 100%);
}

/* ---- Ana nav çubuğu ---- */
.hd-nav {
    height: 68px;
    background: rgba(8, 12, 20, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background 0.35s ease, box-shadow 0.35s ease, height 0.3s ease;
}

.hd-root.hd-scrolled .hd-nav {
    background: #0a0f18;
    box-shadow: 0 2px 24px rgba(0,0,0,0.55);
    height: 62px;
}

/* ---- İç düzen ---- */
.hd-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 max(28px, 4vw);
    height: 100%;
    display: flex;
    align-items: center;
    gap: 0;
}

/* ---- Logo ---- */
.hd-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    flex-shrink: 0;
    margin-right: 36px;
}

.hd-logo:hover { text-decoration: none; }

.hd-logo-img {
    height: 38px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: opacity 0.2s;
}

.hd-logo:hover .hd-logo-img { opacity: 1; }

.hd-logo-sep {
    width: 1px;
    height: 28px;
    background: rgba(255,255,255,0.12);
    flex-shrink: 0;
}

.hd-logo-tag {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.28);
    line-height: 1.4;
}

/* ---- Masaüstü link listesi ---- */
.hd-links {
    display: flex;
    align-items: stretch;
    list-style: none;
    margin: 0; padding: 0;
    height: 100%;
    gap: 0;
}

.hd-links > li {
    display: flex;
    align-items: stretch;
    position: relative;
}

/* Normal linkler */
.hd-links > li > a {
    display: flex;
    align-items: center;
    padding: 0 15px;
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-decoration: none;
    position: relative;
    white-space: nowrap;
    transition: color 0.2s;
}

/* Kayan kırmızı alt çizgi */
.hd-links > li > a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 15px; right: 15px;
    height: 2px;
    background: #C8102E;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s cubic-bezier(.4,0,.2,1);
}

.hd-links > li > a:hover { color: #fff; text-decoration: none; }
.hd-links > li > a:hover::after { transform: scaleX(1); }

/* ---- Dropdown toggle butonu ---- */
.hd-drop-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 15px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-family: var(--font-main);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    height: 100%;
    transition: color 0.2s;
}

.hd-drop-btn::after {
    content: '';
    position: absolute;
    bottom: 0; left: 15px; right: 15px;
    height: 2px;
    background: #C8102E;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s cubic-bezier(.4,0,.2,1);
}

.hd-drop-btn:hover,
.hd-has-drop.hd-open .hd-drop-btn { color: #fff; }
.hd-has-drop.hd-open .hd-drop-btn::after,
.hd-drop-btn:hover::after { transform: scaleX(1); }

.hd-chevron {
    flex-shrink: 0;
    color: rgba(255,255,255,0.35);
    transition: transform 0.25s ease, color 0.2s;
}

.hd-has-drop.hd-open .hd-chevron {
    transform: rotate(180deg);
    color: #C8102E;
}

/* ---- Dropdown paneli ---- */
.hd-drop {
    position: absolute;
    top: 100%;
    left: -1px;
    width: 360px;
    background: #0f1620;
    border: 1px solid rgba(255,255,255,0.08);
    border-top: 2px solid #C8102E;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.6);
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.hd-has-drop.hd-open .hd-drop {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.hd-drop-heading {
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.25);
    padding: 16px 20px 10px;
    margin: 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Dropdown satır */
.hd-drop-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.18s;
    position: relative;
}

.hd-drop-row::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 2px;
    background: #C8102E;
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.hd-drop-row:hover { background: rgba(255,255,255,0.04); text-decoration: none; }
.hd-drop-row:hover::before { transform: scaleY(1); }

.hd-drop-num {
    font-size: 11px;
    font-weight: 800;
    color: rgba(200,16,46,0.5);
    letter-spacing: 0.5px;
    min-width: 20px;
    font-variant-numeric: tabular-nums;
    transition: color 0.2s;
}

.hd-drop-row:hover .hd-drop-num { color: #C8102E; }

.hd-drop-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.hd-drop-name {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,0.82);
    display: block;
    transition: color 0.2s;
}

.hd-drop-row:hover .hd-drop-name { color: #fff; }

.hd-drop-meta {
    font-size: 11px;
    color: rgba(255,255,255,0.3);
    display: block;
}

.hd-drop-arrow {
    color: rgba(255,255,255,0.15);
    flex-shrink: 0;
    transform: translateX(-4px);
    transition: transform 0.2s, color 0.2s;
}

.hd-drop-row:hover .hd-drop-arrow {
    color: #C8102E;
    transform: translateX(0);
}

.hd-drop-all {
    padding: 12px 20px;
    background: rgba(200,16,46,0.05);
}

.hd-drop-all a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
    color: #C8102E;
    text-decoration: none;
    transition: gap 0.2s;
}

.hd-drop-all a:hover { gap: 11px; text-decoration: none; }

/* ---- Sağ aksiyonlar ---- */
.hd-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    padding-left: 20px;
    border-left: 1px solid rgba(255,255,255,0.08);
}

.hd-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}

.hd-phone svg { color: #C8102E; flex-shrink: 0; }
.hd-phone:hover { color: #fff; text-decoration: none; }

.hd-contact-btn {
    display: inline-flex;
    align-items: center;
    padding: 9px 20px;
    background: #C8102E;
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-decoration: none;
    border-radius: 7px;
    white-space: nowrap;
    transition: background 0.2s, transform 0.15s;
}

.hd-contact-btn:hover {
    background: #a50d25;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

/* ---- Hamburger ---- */
.hd-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px; height: 40px;
    padding: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 8px;
    cursor: pointer;
    margin-left: 12px;
}

.hd-burger span {
    display: block;
    height: 1.5px;
    background: rgba(255,255,255,0.75);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.25s ease;
}

.hd-burger.hd-active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hd-burger.hd-active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hd-burger.hd-active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---- Mobil Drawer ---- */
.hd-drawer {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(340px, 88vw);
    background: #080d14;
    border-left: 1px solid rgba(255,255,255,0.06);
    z-index: 9100;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.38s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.hd-drawer.hd-open { transform: translateX(0); }

/* Drawer üst kısım */
.hd-drawer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}

.hd-drawer-logo {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.hd-drawer-close {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.hd-drawer-close:hover { background: rgba(200,16,46,0.2); color: #fff; }

/* Drawer navigasyon */
.hd-drawer-nav {
    flex: 1;
    padding: 8px 0 16px;
    display: flex;
    flex-direction: column;
}

.hd-drawer-link {
    display: block;
    padding: 13px 24px;
    color: rgba(255,255,255,0.65);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: color 0.18s, padding-left 0.2s;
}

.hd-drawer-link:hover {
    color: #fff;
    padding-left: 30px;
    text-decoration: none;
}

/* Drawer grup (accordion) */
.hd-drawer-group { border-bottom: 1px solid rgba(255,255,255,0.04); }

.hd-drawer-group-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 13px 24px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.65);
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.18s;
}

.hd-drawer-group-btn:hover { color: #fff; }

.hd-drawer-caret { transition: transform 0.25s ease; color: rgba(255,255,255,0.3); }

.hd-drawer-sub {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(255,255,255,0.02);
}

.hd-drawer-sub.hd-sub-open { max-height: 200px; }

.hd-drawer-sub a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 24px 11px 36px;
    color: rgba(255,255,255,0.45);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: color 0.18s, padding-left 0.2s;
}

.hd-drawer-sub a::before {
    content: '';
    width: 4px; height: 4px;
    border-radius: 50%;
    background: #C8102E;
    opacity: 0.5;
    flex-shrink: 0;
}

.hd-drawer-sub a:hover { color: #fff; padding-left: 40px; text-decoration: none; }

/* Drawer alt bölüm */
.hd-drawer-footer {
    padding: 20px 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hd-drawer-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 13px 0;
    background: #C8102E;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s;
}

.hd-drawer-cta:hover { background: #a50d25; color: #fff; text-decoration: none; }

.hd-drawer-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hd-drawer-info a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.4);
    font-size: 12.5px;
    text-decoration: none;
    transition: color 0.2s;
}

.hd-drawer-info a svg { color: #C8102E; flex-shrink: 0; }
.hd-drawer-info a:hover { color: rgba(255,255,255,0.75); text-decoration: none; }

/* Drawer sosyal */
.hd-drawer-social {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0; padding: 0;
}

.hd-drawer-social li { display: block; }

.hd-drawer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 7px;
    color: rgba(255,255,255,0.4);
    font-size: 13px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.hd-drawer-social a:hover {
    background: rgba(200,16,46,0.2);
    color: #fff;
    text-decoration: none;
}

/* ---- Overlay ---- */
.hd-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 9050;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.hd-overlay.hd-show {
    opacity: 1;
    pointer-events: auto;
}

/* ---- Hero padding düzeltmesi ---- */
.hero-modern {
    padding-top: 71px !important;
}

/* ============================================================
   HEADER RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .hd-phone { display: none; }
    .hd-actions { border-left: none; padding-left: 0; }
}

@media (max-width: 900px) {
    .hd-links, .hd-actions { display: none; }
    .hd-burger { display: flex; margin-left: auto; }
    .hd-logo { margin-right: 0; }
    .hd-logo-sep, .hd-logo-tag { display: none; }
    .hd-nav { height: 60px; }
    .hd-root.hd-scrolled .hd-nav { height: 58px; }
    .hero-modern { padding-top: 63px !important; }
}
