.site-header {
  position: absolute;
  z-index: 100;
  top: clamp(1rem, 2vw, 1.75rem);
  left: var(--page-gutter);
  right: var(--page-gutter);
  width: min(
    calc(100% - (var(--page-gutter) * 2)),
    1180px
  );
  margin-inline: auto;
}

.header-shell {
  min-height: clamp(4rem, 5vw, 4.75rem);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  padding: 0.35rem clamp(0.7rem, 1.4vw, 1.15rem);

  background:
    linear-gradient(
      135deg,
      rgba(89, 24, 39, 0.98),
      rgba(105, 36, 49, 0.96)
    );

  border: 1px solid rgba(216, 200, 160, 0.42);
  box-shadow: 0 1rem 2.5rem rgba(28, 13, 16, 0.18);
}

.header-logo {
  width: clamp(3.75rem, 5vw, 4.6rem);
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-logo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.7rem, 1.3vw, 1.4rem);
  min-width: 0;
}

.desktop-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;

  padding: 0.38rem 0.62rem;

  color: rgba(255, 248, 238, 0.9);

  border: 1px solid transparent;
  border-radius: 0.22rem;

  font-family: var(--font-sans);
  font-size: clamp(0.73rem, 0.67rem + 0.12vw, 0.84rem);
  font-weight: 500;
  letter-spacing: 0.025em;

  white-space: nowrap;

  transition:
    color var(--transition-fast),
    border-color var(--transition-fast),
    background-color var(--transition-fast);
}

.desktop-nav-link:hover,
.desktop-nav-link.is-active {
  color: #ffffff;
  border-color: rgba(216, 200, 160, 0.62);
  background: rgba(255, 248, 238, 0.035);
}

.header-call {
  min-height: 2.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;

  padding-inline: clamp(0.7rem, 1vw, 1rem);

  color: #fff8ee;

  border-left: 1px solid rgba(216, 200, 160, 0.35);

  font-family: var(--font-sans);
  font-size: clamp(0.75rem, 0.69rem + 0.12vw, 0.86rem);
  font-weight: 650;

  white-space: nowrap;
}

.header-call-icon {
  display: grid;
  place-items: center;

  width: 2rem;
  aspect-ratio: 1;

  color: var(--color-accent-soft);
}

.mobile-menu-toggle {
  display: none;

  width: 3rem;
  height: 3rem;

  padding: 0.7rem;

  background: transparent;
  cursor: pointer;

  flex-direction: column;
  justify-content: center;
  gap: 0.34rem;
}

.mobile-menu-toggle span {
  display: block;

  width: 100%;
  height: 2px;

  background: #fff8ee;
  border-radius: 999px;

  transition:
    transform var(--transition-fast),
    opacity var(--transition-fast);
}

.mobile-navigation {
  margin-top: 0.5rem;
  padding: 1rem var(--page-gutter) 1.3rem;

  background: rgba(89, 24, 39, 0.98);

  border: 1px solid rgba(216, 200, 160, 0.35);

  box-shadow: var(--shadow-md);
}

.mobile-navigation[hidden] {
  display: none;
}

.mobile-navigation nav {
  display: grid;
}

.mobile-nav-link {
  min-height: 3.25rem;

  display: flex;
  align-items: center;

  color: rgba(255, 248, 238, 0.92);

  border-bottom: 1px solid rgba(216, 200, 160, 0.18);

  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
}

.mobile-nav-link.is-active {
  color: var(--color-accent-soft);
}

.mobile-call {
  min-height: 3.2rem;

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

  margin-top: 1.2rem;

  color: var(--color-primary-dark);
  background: var(--color-cream);

  font-weight: 700;
}

@media (max-width: 1180px) {
  .desktop-nav {
    gap: 0.75rem;
  }

  .header-call span:last-child {
    display: none;
  }

  .header-call {
    padding-inline: 0.4rem;
  }
}

@media (max-width: 1024px) {
  .header-shell {
    grid-template-columns: auto 1fr auto;
  }

  .desktop-nav,
  .header-call {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
    grid-column: 3;
  }

  .menu-open .mobile-menu-toggle span:nth-child(1) {
    transform: translateY(0.48rem) rotate(45deg);
  }

  .menu-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .menu-open .mobile-menu-toggle span:nth-child(3) {
    transform: translateY(-0.48rem) rotate(-45deg);
  }
}

@media (max-width: 430px) {
  .site-header {
    top: 0.75rem;
  }

  .header-logo {
    width: 3.75rem;
  }
}

/* =========================================================
   HEADER CONTACT STACK
   ========================================================= */

.header-contact-stack {
  flex: 0 0 auto;

  min-width: 8.9rem;

  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;

  gap: 0.28rem;

  padding-left: clamp(0.7rem, 1.2vw, 1.1rem);

  border-left:
    1px solid rgba(216, 200, 160, 0.24);
}

.header-contact-stack .header-call {
  width: 100%;

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

  gap: 0.45rem;

  padding: 0;

  border: 0;

  white-space: nowrap;

  font-size: clamp(0.68rem, 0.7vw, 0.78rem);
  line-height: 1.15;
}

.header-contact-stack .header-call-icon {
  flex: 0 0 auto;

  width: 1.35rem;
  height: 1.35rem;

  display: grid;
  place-items: center;

  color: var(--color-accent-soft);
}

.header-contact-stack .header-call-icon svg {
  width: 0.95rem;
  height: 0.95rem;
}

.header-whatsapp {
  width: 100%;
  min-height: 1.55rem;

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

  gap: 0.42rem;

  padding:
    0.22rem
    0.45rem;

  color: rgba(255, 250, 240, 0.82);

  text-decoration: none;

  border:
    1px solid rgba(216, 200, 160, 0.25);

  background:
    rgba(255, 255, 255, 0.035);

  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 500;

  letter-spacing: 0.025em;

  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.header-whatsapp-icon {
  flex: 0 0 auto;

  width: 1rem;
  height: 1rem;

  display: grid;
  place-items: center;

  color: var(--color-accent-soft);
}

.header-whatsapp-icon svg {
  width: 0.85rem;
  height: 0.85rem;
}

.header-whatsapp:hover {
  color: #fffaf0;

  border-color:
    rgba(216, 200, 160, 0.48);

  background:
    rgba(216, 200, 160, 0.08);
}

.header-whatsapp:focus-visible,
.header-contact-stack .header-call:focus-visible {
  outline:
    1px solid var(--color-accent-soft);

  outline-offset: 0.2rem;
}


/* Tablet ve mobil headerda bu blok görünmez.
   Mobilde sabit Hemen Ara + WhatsApp butonları kullanılıyor. */

@media (max-width: 900px) {
  .header-contact-stack {
    display: none;
  }
}

/* =========================================================
   HEADER CONTACT STACK ALIGN FIX
   ========================================================= */

.header-contact-stack {
  gap: 0.14rem;
}

.header-contact-stack .header-call,
.header-whatsapp {
  min-height: 1.55rem;
}

.header-contact-stack .header-call {
  display: flex;
  align-items: center;

  padding:
    0.12rem
    0.45rem;
}

.header-whatsapp {
  display: flex;
  align-items: center;

  padding:
    0.12rem
    0.45rem;
}


/* =========================================================
   HEADER TABLET CONTACT
   901px - 1100px
   Telefon + WhatsApp kompakt alt alta
   ========================================================= */

@media (min-width: 901px) and (max-width: 1100px) {

  .header-contact-stack {
    display: flex !important;
    flex: 0 0 auto !important;

    flex-direction: column !important;
    align-items: stretch !important;

    width: 8.4rem !important;
    min-width: 8.4rem !important;

    margin-left: auto !important;

    gap: 0.18rem !important;
  }


  .header-contact-stack .header-call,
  .header-contact-stack .header-whatsapp {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 1.65rem !important;

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

    gap: 0.4rem !important;

    margin: 0 !important;

    padding:
      0.15rem
      0.45rem !important;

    color: #fffaf0 !important;

    border:
      1px solid rgba(216, 200, 160, 0.25) !important;

    background:
      rgba(255, 255, 255, 0.025) !important;

    white-space: nowrap !important;

    font-size: 0.58rem !important;
    font-weight: 700 !important;

    line-height: 1 !important;
  }


  .header-contact-stack .header-call span,
  .header-contact-stack .header-call strong,
  .header-contact-stack .header-whatsapp span,
  .header-contact-stack .header-whatsapp strong {
    display: inline !important;

    width: auto !important;

    opacity: 1 !important;
    visibility: visible !important;

    white-space: nowrap !important;

    font-size: inherit !important;
  }


  .header-contact-stack .header-call svg,
  .header-contact-stack .header-whatsapp svg {
    flex: 0 0 auto !important;

    width: 0.78rem !important;
    height: 0.78rem !important;
  }

}


/* =========================================================
   HEADER LOGO PLATE
   ========================================================= */

/*
 * Logo bordo header üzerinde kaybolmasın diye
 * açık krem, premium bir plaka içerisinde gösterilir.
 */

.site-header .header-logo {
  position: relative;

  flex: 0 0 auto;

  width: clamp(5rem, 6vw, 5.8rem);
  height: clamp(4rem, 5vw, 4.7rem);

  display: grid;
  place-items: center;

  padding: 0.3rem;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 50% 38%,
      #fffdf8 0%,
      #f3ead9 62%,
      #e4d3b7 100%
    );

  border:
    1px solid rgba(216, 200, 160, 0.72);

  border-radius:
    0.8rem;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    0 0.35rem 1rem rgba(30,8,13,0.16);

  text-decoration: none;
}


/* ince iç altın çerçeve */

.site-header .header-logo::after {
  content: "";

  position: absolute;
  inset: 0.28rem;

  border:
    1px solid rgba(179,154,102,0.32);

  border-radius:
    0.58rem;

  pointer-events: none;
}


/* logo */

.site-header .header-logo img {
  position: relative;
  z-index: 2;

  width: 100%;
  height: 100%;

  max-width: none;

  object-fit: contain;

  filter: none;

  transform: scale(1.08);

  transition:
    transform 180ms ease;
}


/* çok hafif hover */

.site-header .header-logo:hover img {
  transform: scale(1.12);
}


/* tablet */

@media (max-width: 1100px) {

  .site-header .header-logo {
    width: 4.6rem;
    height: 3.8rem;
  }

}


/* mobil */

@media (max-width: 768px) {

  .site-header .header-logo {
    width: 4.2rem;
    height: 3.5rem;

    border-radius: 0.7rem;
  }

}
