/* ==================================================
   GENEL FIXED HEADER AYARLARI
================================================== */
body {
    padding-top: 140px; /* top-bar + header toplam yüksekliği */
}

/* ==================================================
   TOP BAR (SABİT)
================================================== */
.top-bar {
    background: #fff;
    border-bottom: 1px solid #eee;
    font-size: 16px;
    padding-left: 5px;

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

/* GRID */
.topbar-flex {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 8px 0;
}

/* TELEFON */
.top-phone {
    background: transparent;
    padding: 8px 24px 8px 16px;
    position: relative;
    border-left: 1px solid #e9ecef;
}

.top-phone:hover {
    background: linear-gradient(135deg, rgba(194,139,99,0.08), transparent);
}

.top-phone::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 24px;
    background: rgba(0, 0, 0, 0.15);
}

.top-phone a {
    color: #222 !important;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-decoration: none;
}

.top-phone a:hover {
    color: #c28b63;
}

/* SLOGAN */
.slogan-bg {
    justify-self: center;
    background: linear-gradient(135deg,#f5f1ed,#ffffff);
    padding: 6px 22px;
    border-radius: 30px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

/* SOSYAL */
.top-social {
    display: inline-flex;
    align-items: center;
}

.top-social a {
    position: relative;
    margin-left: 10px;
    color: #444;
    font-size: 15px;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.1);
    transition: all .3s ease;
}

.top-social a:hover {
    color: #c28b63;
    background: rgba(194, 139, 99, 0.1);
    transform: translateY(-2px);
}

.btn-teklif {
    margin-left: 14px;
    background: #c28b63;
    color: #fff !important;
    padding: 8px 22px;
    border-radius: 6px;
    font-weight: 600;
}

.btn-teklif:hover {
    background: #a76f46;
}

/* ==================================================
   HEADER (SABİT)
================================================== */
.header-main {
    background: #fff;
    border-bottom: 1px solid #eee;

    position: fixed;
    top: 52px; /* top-bar yüksekliği */
    left: 0;
    width: 100%;
    z-index: 999;
}

.main-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 70px;
}

.menu-left,
.menu-right {
    display: flex;
    gap: 42px;
}

/* Menü linkleri */
.main-menu a {
    font-weight: 600;
    color: #222;
    text-decoration: none;
    padding: 8px 0;
    position: relative;
}

.main-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: #c28b63;
    transition: width .3s;
}

.main-menu a:hover {
    color: #c28b63;
}

.main-menu a:hover::after {
    width: 100%;
}

/* Logo */
.logo-center img {
    width: 260px;
    padding-top: 10px;
}

/* ==================================================
   MOBILE
================================================== */
.mobile-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

/* Hamburger */
.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: #222;
    margin: 5px 0;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    left: 0;
    width: 100%;
    background: #fff;
    display: none;
    flex-direction: column;
    border-top: 1px solid #eee;
    z-index: 998;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    padding: 14px;
    text-align: center;
    font-weight: 600;
    color: #222;
    text-decoration: none;
}

.mobile-menu a:hover {
    background: #f8f9fa;
    color: #c28b63;
}

/* ==================================================
   RESPONSIVE
================================================== */
@media (max-width: 991px) {

    body {
        padding-top: 120px;
    }

    .main-menu,
    .desktop-only {
        display: none;
    }

    .mobile-bar {
        display: flex;
    }

    .logo-center img {
        width: 180px;
    }

    .slogan-bg {
        display: none;
    }
}
/* ==================================================
   TOP BAR SCROLL'DA KAYBOLSUN (SADECE EK)
================================================== */
.top-bar {
    transition: transform 0.3s ease;
}
/* ==================================================
   TOP BAR GİZLENİNCE BOŞLUK KAPAT (OVERRIDE)
================================================== */
body.topbar-hidden {
    padding-top: 88px !important;
}

body.topbar-hidden .header-main {
    top: 0 !important;
}

/* MOBİL OVERRIDE */
@media (max-width: 991px) {
    body.topbar-hidden {
        padding-top: 70px !important;
    }
}

.top-bar.topbar-hide {
    transform: translateY(-100%);
}
/* ==================================================
   TOP BAR GİZLENİNCE BOŞLUK KAPAT (OVERRIDE)
================================================== */
body.topbar-hidden {
    padding-top: 88px !important;
}

body.topbar-hidden .header-main {
    top: 0 !important;
}

/* MOBİL OVERRIDE */
@media (max-width: 991px) {
    body.topbar-hidden {
        padding-top: 70px !important;
    }
}

