/* Cafe 90'lar — bütün sayfalarda kullanılan tek header geometrisi */
.custom-navbar {
  position: fixed !important;
  z-index: 1100 !important;
  inset: 0 0 auto !important;
  min-height: 100px !important;
  padding: 0 !important;
  background: #eadbbd !important;
  border-bottom: 1px solid rgba(16, 23, 24, .18) !important;
  box-shadow: none !important;
}

.custom-navbar .container-fluid {
  display: flex !important;
  width: min(1500px, calc(100% - 48px)) !important;
  height: 100px !important;
  min-height: 100px !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: nowrap !important;
  gap: 34px !important;
  margin-inline: auto !important;
  padding: 0 !important;
}

.custom-navbar .navbar-brand {
  display: flex !important;
  width: 190px !important;
  height: 100px !important;
  flex: 0 0 190px !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none;
}

.custom-navbar .site-logo {
  display: block !important;
  width: 190px !important;
  height: 98px !important;
  max-width: 100% !important;
  margin: 0 !important;
  object-fit: contain !important;
  object-position: left center !important;
}

.custom-navbar .navbar-collapse {
  display: flex !important;
  height: 100px !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

.custom-navbar .navbar-nav {
  display: flex !important;
  height: 100px !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.custom-navbar .nav-item {
  position: relative;
  display: flex;
  height: 100px;
  align-items: center;
  padding: 0 !important;
}

.custom-navbar .nav-item:not(.nav-contact)::after {
  content: "/";
  margin: 0 16px;
  color: rgba(16, 23, 24, .66);
  font: 700 1rem 'Barlow Condensed', sans-serif;
  transform: skew(-12deg);
}

.custom-navbar .nav-item:nth-last-child(2)::after {
  content: none;
}

.custom-navbar .nav-link {
  position: relative !important;
  display: inline-flex !important;
  width: auto !important;
  height: auto !important;
  min-height: 44px;
  align-items: center !important;
  padding: 10px 0 !important;
  color: #101718 !important;
  white-space: nowrap;
  text-transform: uppercase;
  font: 800 .88rem 'Barlow Condensed', sans-serif !important;
  letter-spacing: .04em;
}

.custom-navbar .nav-link::after {
  content: "";
  position: absolute;
  right: 100%;
  bottom: 5px;
  left: 0;
  height: 2px;
  background: #a52a24;
  transition: right .2s ease;
}

.custom-navbar .nav-link:hover::after,
.custom-navbar .nav-link.active::after {
  right: 0;
}

.custom-navbar .nav-link.active::before {
  display: none !important;
}

.custom-navbar .nav-contact {
  height: auto;
  margin-left: 24px;
}

.custom-navbar .nav-contact .nav-link {
  min-height: 48px;
  gap: 14px;
  padding: 0 22px !important;
  border-radius: 9px;
  background: #a52a24;
  color: #fff !important;
  box-shadow: 0 7px 18px rgba(165, 42, 36, .2);
}

.custom-navbar .nav-contact .nav-link::before,
.custom-navbar .nav-contact .nav-link::after {
  content: none !important;
}

.custom-navbar .header-socials {
  display: flex;
  align-items: center;
  margin-left: 24px;
  padding-left: 24px;
  border-left: 1px solid rgba(16, 23, 24, .18);
}

.custom-navbar .header-socials a {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #101718;
  font-size: 1.4rem;
  text-decoration: none;
}

.editorial-home .ed-hero { padding-top: 100px !important; }
.editorial-page main { padding-top: 100px !important; }

@media (min-width: 992px) and (max-width: 1199.98px) {
  .custom-navbar .container-fluid { width: calc(100% - 32px) !important; gap: 18px !important; }
  .custom-navbar .navbar-brand { width: 166px !important; flex-basis: 166px !important; }
  .custom-navbar .site-logo { width: 166px !important; height: 90px !important; }
  .custom-navbar .nav-item:not(.nav-contact)::after { margin-inline: 7px; }
  .custom-navbar .nav-link { font-size: .76rem !important; }
  .custom-navbar .nav-contact { margin-left: 10px; }
  .custom-navbar .nav-contact .nav-link { gap: 8px; padding-inline: 13px !important; }
  .custom-navbar .header-socials { margin-left: 10px; padding-left: 10px; }
}

@media (max-width: 991.98px) {
  .custom-navbar { min-height: 76px !important; }
  .custom-navbar .container-fluid { width: calc(100% - 36px) !important; height: 76px !important; min-height: 76px !important; gap: 12px !important; }
  .custom-navbar .navbar-brand { width: 175px !important; height: 76px !important; flex-basis: 175px !important; }
  .custom-navbar .site-logo { width: 170px !important; height: 54px !important; }
  .custom-navbar .navbar-toggler { display: inline-flex !important; width: 52px !important; height: 48px !important; align-items: center; justify-content: center; margin-left: auto !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; }
  .custom-navbar .navbar-collapse { position: absolute !important; top: 76px !important; right: 0 !important; left: 0 !important; display: none !important; width: 100% !important; height: auto !important; max-height: calc(100dvh - 76px) !important; padding: 12px 18px 16px !important; overflow-y: auto; background: #f3e7cf !important; border: 1px solid rgba(16, 23, 24, .18); box-shadow: 0 18px 40px rgba(0, 0, 0, .2); }
  .custom-navbar .navbar-collapse.show { display: block !important; }
  .custom-navbar .navbar-nav { width: 100% !important; height: auto !important; flex-direction: column !important; align-items: stretch !important; }
  .custom-navbar .nav-item { display: block; width: 100%; height: auto; }
  .custom-navbar .nav-item::after { content: none !important; }
  .custom-navbar .nav-link { display: flex !important; width: 100% !important; min-height: 48px; justify-content: center; padding: 12px !important; text-align: center; }
  .custom-navbar .nav-link::before,.custom-navbar .nav-link::after { content: none !important; }
  .custom-navbar .nav-contact { margin: 7px 0 0; }
  .custom-navbar .nav-contact .nav-link { gap: 12px; background: #a52a24; color: #fff !important; }
  .custom-navbar .header-socials { justify-content: center; margin: 10px 0 0; padding: 10px 0 0; border-top: 1px solid rgba(16, 23, 24, .18); border-left: 0; }
  .editorial-home .ed-hero { padding-top: 76px !important; }
  .editorial-page main { padding-top: 76px !important; }
}

@media (max-width: 420px) {
  .custom-navbar .container-fluid { width: calc(100% - 24px) !important; }
  .custom-navbar .navbar-brand { width: 155px !important; flex-basis: 155px !important; }
  .custom-navbar .site-logo { width: 150px !important; }
}

.back-to-top {
  position: fixed;
  z-index: 75;
  right: 24px;
  bottom: 24px;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  background: #101718;
  color: #f3e7cf;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .24);
  font: 700 1.55rem/1 Arial, sans-serif;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease, background .2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #a52a24;
}

.back-to-top:focus-visible {
  outline: 3px solid #e5ad2f;
  outline-offset: 3px;
}

@media (max-width: 575.98px) {
  .back-to-top {
    right: 14px;
    bottom: 82px;
    width: 46px;
    height: 46px;
    font-size: 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: none;
  }
}

/* Mobilde kaydırma sırasında daha az ekran kaplayan başlık */
@media (max-width: 991.98px) {
  .custom-navbar,
  .custom-navbar .container-fluid,
  .custom-navbar .navbar-brand,
  .custom-navbar .site-logo,
  .custom-navbar .navbar-toggler,
  .custom-navbar .navbar-collapse {
    transition: min-height .2s ease, height .2s ease, width .2s ease, top .2s ease, box-shadow .2s ease;
  }

  .custom-navbar.is-scrolled {
    min-height: 62px !important;
    box-shadow: 0 6px 18px rgba(16, 23, 24, .12) !important;
  }

  .custom-navbar.is-scrolled .container-fluid {
    height: 62px !important;
    min-height: 62px !important;
  }

  .custom-navbar.is-scrolled .navbar-brand {
    width: 145px !important;
    height: 62px !important;
    flex-basis: 145px !important;
  }

  .custom-navbar.is-scrolled .site-logo {
    width: 140px !important;
    height: 44px !important;
  }

  .custom-navbar.is-scrolled .navbar-toggler {
    width: 46px !important;
    height: 44px !important;
  }

  .custom-navbar.is-scrolled .navbar-collapse {
    top: 62px !important;
    max-height: calc(100dvh - 62px) !important;
  }
}

@media (max-width: 575.98px) {
  .back-to-top {
    z-index: 85;
    right: 7px;
    bottom: 13px;
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
    border-color: rgba(255, 255, 255, .5);
    background: #a52a24;
    box-shadow: 0 5px 14px rgba(0, 0, 0, .2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .custom-navbar,
  .custom-navbar * {
    transition: none !important;
  }
}

@media (max-width: 991.98px) {
  .custom-navbar .container-fluid {
    position: relative;
  }

  .custom-navbar .navbar-brand,
  .custom-navbar.is-scrolled .navbar-brand {
    position: absolute;
    left: 50%;
    margin: 0 !important;
    transform: translateX(-50%);
  }

  .custom-navbar .site-logo,
  .custom-navbar.is-scrolled .site-logo {
    object-position: center !important;
  }

  .custom-navbar .navbar-toggler,
  .custom-navbar.is-scrolled .navbar-toggler {
    position: fixed !important;
    top: 14px !important;
    right: 18px !important;
    left: auto !important;
    margin: 0 !important;
    transform: none !important;
  }

  .custom-navbar.is-scrolled .navbar-toggler {
    top: 9px !important;
  }
}

/* Masaüstü: logo solda, sayfa menüsü ortada, aksiyonlar sağda. */
@media (min-width: 992px) {
  .custom-navbar .container-fluid {
    position: relative;
  }

  .custom-navbar .navbar-brand {
    position: absolute;
    left: 0;
    z-index: 1;
  }

  .custom-navbar .navbar-collapse {
    position: relative;
    width: 100% !important;
    flex: 1 1 100% !important;
    justify-content: center !important;
  }

  .custom-navbar .navbar-nav {
    width: auto !important;
  }

  .custom-navbar .nav-contact {
    position: absolute;
    top: 50%;
    right: 62px;
    margin: 0 !important;
    transform: translateY(-50%);
  }

  .custom-navbar .header-socials {
    position: absolute;
    top: 50%;
    right: 0;
    margin: 0;
    padding-left: 14px;
    transform: translateY(-50%);
  }
}

