/* ===========================================================
   Yolun Başı Rent a Car — Ortak Header (tüm sayfalarda birebir aynı)
   Bu dosya, menünün sayfa geçişlerinde "zıplamasını" engellemek için
   her sayfada tamamen aynı yapı ve stille kullanılır.
=========================================================== */

:root{
  --ybc-header-h: 80px;
  --ybc-red: #E53935;
  --ybc-orange: #F5A623;
  --ybc-dark: #1A1A1A;
  --ybc-border: #ECECEC;
}

.site-header{
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--ybc-header-h);
  background: #ffffff;
  border-bottom: 1px solid var(--ybc-border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  z-index: 999;
}

.site-header__inner{
  max-width: 1440px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Logo — sadece görsel, yazı yok */
.site-header__logo{
  display: flex;
  align-items: center;
  flex-shrink: 0;
  height: 100%;
}
.site-header__logo img{
  height: 56px;
  width: auto;
  display: block;
}

/* Menü */
.site-header__nav{
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.site-header__nav a{
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ybc-dark);
  text-decoration: none;
  white-space: nowrap;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.site-header__nav a:hover{
  color: var(--ybc-red);
}
.site-header__nav a.is-active{
  color: var(--ybc-red);
  border-bottom-color: var(--ybc-red);
}

/* Sağ taraf butonlar */
.site-header__actions{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.site-header__actions .btn-outline{
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ybc-dark);
  background: #fff;
  border: 1px solid #D9D9D9;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .15s ease, color .15s ease;
}
.site-header__actions .btn-outline:hover{
  border-color: var(--ybc-red);
  color: var(--ybc-red);
}
.site-header__actions .btn-solid{
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #1A1A1A;
  background: var(--ybc-orange);
  border: none;
  padding: 11px 22px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: filter .15s ease, transform .15s ease;
}
.site-header__actions .btn-solid:hover{
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* Mobil menü butonu */
.site-header__toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.site-header__toggle span{
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ybc-dark);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

@media (max-width: 900px){
  .site-header__nav{
    position: fixed;
    top: var(--ybc-header-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--ybc-border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 16px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    max-height: calc(100vh - var(--ybc-header-h));
    overflow-y: auto;
  }
  .site-header__nav.is-open{
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
  }
  .site-header__nav a{
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--ybc-border);
  }
  .site-header__actions .btn-outline{
    display: none;
  }
  .site-header__toggle{
    display: flex;
  }
}

@media (max-width: 640px){
  .site-header__inner{ padding: 0 16px; }
  .site-header__logo img{ height: 44px; }
  .site-header__actions .btn-solid{
    padding: 9px 14px;
    font-size: 12px;
  }
}

/* Sayfalara özel CSS'lerin menüyü kaydırmasını engelleyen kesin reset */
html { scrollbar-gutter: stable; }
.site-header, .site-header * { box-sizing: border-box; }
.site-header { margin: 0 !important; padding: 0 !important; line-height: normal; }
.site-header__inner { width: 100%; min-height: var(--ybc-header-h); }
.site-header__nav, .site-header__actions { margin: 0; padding-top: 0; padding-bottom: 0; }
.site-header__nav a, .site-header__actions a { line-height: 1.2; }
body.page-kampanyalar .site-header,
body.page-ofislerimiz .site-header { width: 100vw; max-width: 100%; }
