/* =========================================================
   HEADER.CSS  — Topbar + Desktop Nav + Mobile Drawer
   (styles.css'ten ayrıştırıldı)
========================================================= */

:root{
  --blue:#0b2b50;
  --blue2:#081f3a;

  --mid1:#f7f8fb;
  --mid2:#e9edf3;

  --text:#0f172a;
  --line: rgba(11,43,80,.18);
  --sep: rgba(11,43,80,.30);

  --orange:#e46b2f;

  --container: 1180px;
  --h: 68px;

  --shadow: 0 10px 22px rgba(10,36,66,.12);
  --radius: 14px;
}

/* =========================
   TOPBAR (Header)
========================= */
.topbar{
  position: sticky;
  top: 0;
  z-index: 60;
  background: #fff;
  box-shadow: var(--shadow);
  border-bottom: 1px solid var(--line);
}

.topbar__inner{
  height: var(--h);
  width: min(var(--container), calc(100% - 24px));
  margin: 0 auto;
  display:flex;
  align-items: stretch;
  overflow:hidden; /* taşmayı kes */
}

/* SOL: Logo alanı */
.brand{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 16px;
  background: transparent !important;
  overflow: hidden;
}

/* Logo görseli */
.brand__logo{
  height: 62px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  filter: none;
}

/* =========================
   DESKTOP NAV
========================= */
.nav.nav--desktop{
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;

  display:flex;
  align-items:center;
  justify-content:center;

  background: linear-gradient(180deg, var(--mid1) 0%, var(--mid2) 100%);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);

  padding: 0 10px;

  mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
}

.nav.nav--desktop .nav__link{
  position: relative;
  display:inline-flex;
  align-items:center;

  height: 100%;
  padding: 0 10px;

  font-weight: 800;
  font-size: 13px;
  letter-spacing: .05px;

  color: #142337;
  white-space: nowrap;
  flex: 0 0 auto;
}

.nav.nav--desktop .nav__link:not(:last-child)::after{
  content:"|";
  margin-left: 10px;
  color: var(--sep);
  font-weight: 900;
}

.nav.nav--desktop .nav__link:hover{ color: var(--blue); }

.nav.nav--desktop .nav__link.is-active::before{
  content:"";
  position:absolute;
  left: 8px;
  right: 8px;
  bottom: 10px;
  height: 2px;
  border-radius: 999px;
  background: var(--orange);
}

/* =========================
   CTA (Teklif al)
========================= */
.cta{
  flex: 0 0 200px;
  flex-shrink: 0;

  display:flex;
  align-items:center;
  justify-content:center;

  background: linear-gradient(180deg, var(--blue) 0%, var(--blue2) 100%);
  color:#fff;
  font-weight: 900;
  font-size: 18px;

  border-left: 1px solid rgba(255,255,255,.10);
}
.cta:hover{ filter: brightness(1.06); }

/* =========================
   HAMBURGER
========================= */
.hamburger{
  display:none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(11,43,80,.18);
  background: rgba(255,255,255,.88);
  cursor:pointer;

  align-items:center;
  justify-content:center;
  gap: 4px;
  flex-direction: column;
}
.hamburger span{
  width: 18px;
  height: 2px;
  background: #0f172a;
  border-radius: 2px;
}

/* =========================
   MOBILE DRAWER MENU
========================= */
.mobileMenu{
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(320px, 85vw);

  background: linear-gradient(180deg, var(--mid1), var(--mid2));
  box-shadow: -18px 0 40px rgba(0,0,0,.25);

  transform: translateX(100%);
  transition: transform .32s ease;

  z-index: 120;
  padding: 16px 14px;

  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobileMenu.is-open{
  transform: translateX(0);
}

/* Overlay (istersen açık kalsın) */
.mobileOverlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(2px);

  z-index: 110;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.mobileOverlay.is-open{
  opacity: 1;
  pointer-events: auto;
}

/* Drawer Head */
.drawerHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;

  padding: 6px 4px 12px;
  border-bottom: 2px solid rgba(228,107,47,.85);
  margin-bottom: 10px;
}

.drawerTitle{
  font-weight: 900;
  font-size: 16px;
  letter-spacing: .6px;
  color: #0b2b50;
  text-transform: uppercase;
}

.drawerSub{
  margin-top: 2px;
  font-weight: 700;
  font-size: 12px;
  color: rgba(15,23,42,.65);
}

.drawerClose{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.14);
  background: #fff;
  cursor: pointer;
  font-weight: 900;
}

/* Drawer Nav */
.nav.nav--mobile{
  display:flex;
  flex-direction: column;
  padding: 0;
  gap: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.nav.nav--mobile .nav__link{
  position: relative;
  display:flex;
  align-items:center;
  gap: 10px;

  padding: 14px 6px;
  background: transparent;
  border-radius: 0;

  font-size: 15px;
  font-weight: 900;
  color: #0b2b50;

  border-bottom: 2px solid rgba(228,107,47,.55);
}

.nav.nav--mobile .nav__link:last-child{
  border-bottom: none;
}

.nav__icon{
  width: 28px;
  height: 28px;
  display:grid;
  place-items:center;
  font-size: 18px;
  flex: 0 0 28px;
}

.nav__text{
  min-width: 0;
}

.nav.nav--mobile .nav__link.is-active{
  color: #e46b2f;
}

/* Drawer CTA */
.drawerCta{
  margin-top: 14px;
  display:flex;
  align-items:center;
  justify-content:center;

  height: 52px;
  border-radius: 12px;

  background: linear-gradient(180deg, var(--blue) 0%, var(--blue2) 100%);
  color: #fff;
  font-weight: 900;
  font-size: 16px;

  box-shadow: 0 14px 26px rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.12);
}
.drawerCta:hover{ filter: brightness(1.06); }

/* =========================
   RESPONSIVE (Header)
========================= */
@media (max-width: 980px){
  .brand{ flex-basis: 250px; }
  .cta{ flex-basis: 185px; font-size: 17px; }
  .nav.nav--desktop .nav__link{ font-size: 12.5px; padding: 0 9px; }
}

@media (max-width: 900px){
  .nav.nav--desktop{ display:none !important; }
  .cta{ display:none !important; }
  .hamburger{ display:flex; }

  .topbar__inner{
    align-items:center;
    justify-content: space-between;
  }

  .brand{
    flex: 0 0 235px;
    padding: 0 12px;
  }
  .brand__logo{ height: 46px; }
}

@media (max-width: 420px){
  .brand{ flex: 0 0 210px; }
  .brand__logo{ height: 54px; }
}
.langModal{
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;               /* kapalı */
}

.langModal.is-open{
  display: block;
}

.langModal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(2px);
}

.langModal__panel{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

  width: min(420px, calc(100% - 32px));
  padding: 18px 18px 16px;
  border-radius: 16px;

  background: rgba(255,255,255,.96);
  border: 1px solid rgba(15,23,42,.14);
  box-shadow: 0 26px 70px rgba(0,0,0,.30);
}

.langModal__close{
  position: absolute;
  right: 10px;
  top: 10px;

  width: 38px;
  height: 38px;
  border-radius: 12px;

  border: 1px solid rgba(15,23,42,.14);
  background: #fff;
  cursor: pointer;

  font-weight: 900;
}

.langModal__flags{
  margin-top: 8px;
  display: flex;
  justify-content: center;
  gap: 14px;
}

.langFlag{
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  line-height: 0;
}

.langFlag img{
  width: 64px;     /* dikdörtgen bayrak */
  height: 40px;
  object-fit: cover;
  border-radius: 10px;

  box-shadow: 0 14px 24px rgba(0,0,0,.18);
  opacity: .82;
  transition: transform .12s ease, filter .12s ease, opacity .12s ease;
}

.langFlag.is-active img{
  opacity: 1;
  outline: 3px solid rgba(228,107,47,.92);
  outline-offset: 3px;
}

@media (hover:hover){
  .langFlag:hover img{
    transform: translateY(-2px);
    filter: brightness(1.04);
  }
}
/* Nav alanı header yüksekliğini taşısın */
.nav.nav--desktop{ height: var(--h); align-items: stretch; }
.navLinks{ height: 100%; display:flex; align-items: stretch; }
.nav__link{ height: 100%; display:flex; align-items:center; }

/* aktif çizgi doğru yere gelsin */
.nav__link.is-active::after{
  bottom: 12px;     /* istersen 10-14 arası oynat */
}
.nav__icon{
  width: 32px;
  height: 32px;
  color: #0b2b50;
  stroke-width: 2.2;
}
@media (max-width: 900px){
  .drawerCta{
    height: 46px;
    font-size: 14px;
  }
}
/* ✅ Mobil Menü Teklif Al butonu: yükseklik kilidi */
.mobileMenu .drawerCta{
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 52px;          /* masaüstü drawer */
  min-height: 52px;

  padding: 0 16px;       /* iç boşluğu sabitle */
  line-height: 1;        /* yazı yüzünden uzamasın */

  border-radius: 12px;
  box-sizing: border-box;
}

/* ✅ Mobilde daha kompakt */
@media (max-width: 900px){
  .mobileMenu .drawerCta{
    height: 56px;
    min-height: 46px;
    font-size: 14px;
  }
}
