﻿/* =========================================================
   EROĞLU TİCARET - HEADER
   ========================================================= */

.ero-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--ero-border);
  backdrop-filter: blur(14px);
}

.ero-header__top {
  background: #151515;
  color: #fff;
  font-size: 13px;
}

.ero-header__top-inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.ero-header__top-link {
  font-weight: 700;
}

.ero-header__top-text,
.ero-header__top-address {
  opacity: .78;
}

.ero-header__main {
  background: rgba(255,255,255,.96);
}

.ero-header__inner {
  min-height: var(--ero-header-height);
  display: flex;
  align-items: center;
  gap: 32px;
}

.ero-header__brand {
  display: inline-flex;
  flex-direction: column;
  flex: 0 0 auto;
  line-height: .9;
  letter-spacing: -.03em;
}

.ero-header__brand-name {
  font-size: 26px;
  font-weight: 900;
}

.ero-header__brand-sub {
  margin-top: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .34em;
}

.ero-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.5vw, 28px);
}

.ero-nav__link {
  position: relative;
  padding-block: 10px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
}

.ero-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s ease;
}

.ero-nav__link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.ero-header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ero-header__call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding-inline: 22px;
  border-radius: 999px;
  background: #171717;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.ero-menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 11px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.ero-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin-block: 5px;
  background: currentColor;
  transition: transform .25s ease, opacity .25s ease;
}

.ero-mobile-menu {
  display: none;
}

@media (max-width: 1180px) {
  .ero-nav {
    gap: 14px;
  }

  .ero-nav__link {
    font-size: 13px;
  }

  .ero-header__call {
    padding-inline: 16px;
  }
}

@media (max-width: 1024px) {
  .ero-header__top-address {
    display: none;
  }

  .ero-nav,
  .ero-header__call {
    display: none;
  }

  .ero-menu-toggle {
    display: block;
    margin-left: auto;
  }

  .ero-mobile-menu {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    border-top: 1px solid transparent;
    transition:
      grid-template-rows .35s ease,
      border-color .35s ease;
  }

  .ero-mobile-menu__nav {
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding-inline: var(--ero-page-padding);
  }

  .ero-header.is-menu-open .ero-mobile-menu {
    grid-template-rows: 1fr;
    border-color: var(--ero-border);
  }

  .ero-header.is-menu-open .ero-mobile-menu__nav {
    padding-block: 14px 24px;
  }

  .ero-mobile-menu__link {
    padding: 14px 0;
    border-bottom: 1px solid var(--ero-border);
    font-size: 17px;
    font-weight: 650;
  }

  .ero-mobile-menu__call {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    border-radius: 999px;
    background: #171717;
    color: #fff;
    font-weight: 700;
  }

  .ero-header.is-menu-open .ero-menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

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

  .ero-header.is-menu-open .ero-menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (max-width: 600px) {
  .ero-header__top {
    display: none;
  }

  .ero-header__inner {
    min-height: 72px;
  }

  .ero-header__brand-name {
    font-size: 23px;
  }
}

/* WordPress admin bar uyumu */
body.admin-bar .ero-header {
  top: var(--wp-admin--admin-bar--height, 32px);
}

@media (max-width: 1024px) {
  .ero-header__actions {
    margin-left: auto;
  }
}

/* Gerçek logo */
.ero-header__brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.ero-header__logo {
  display: block;
  width: clamp(180px, 15vw, 235px);
  height: auto;
  object-fit: contain;
}

@media (max-width: 1024px) {
  .ero-header__logo {
    width: 190px;
  }
}

@media (max-width: 600px) {
  .ero-header__logo {
    width: 155px;
  }
}

/* Header hero ile aynı sabit zemin */
.ero-header,
.ero-header__main {
  background: #f8efe7;
}

/* =========================================================
   HEADER - YENİ LOGOYA UYUMLU TASARIM
   ========================================================= */

.ero-header,
.ero-header__main {
  background: #f7efe7;
}

.ero-header {
  border-bottom: 1px solid rgba(120, 72, 28, 0.10);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset;
}

.ero-header__inner {
  min-height: 78px;
  gap: 34px;
}

/* Logo */
.ero-header__brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.ero-header__logo {
  display: block;
  width: clamp(160px, 14vw, 215px);
  height: auto;
  object-fit: contain;
}

/* Menü */
.ero-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(16px, 1.4vw, 26px);
}

.ero-nav__link {
  position: relative;
  color: #4a3527;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding-block: 10px;
  transition: color .25s ease;
}

.ero-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #b81414 0%, #f28a2a 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s ease;
}

.ero-nav__link:hover {
  color: #b9491c;
}

.ero-nav__link:hover::after {
  transform: scaleX(1);
}

/* CTA */
.ero-header__call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding-inline: 22px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #b81414 0%, #f28a2a 100%);
  color: #fffaf6;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 8px 20px rgba(184, 20, 20, 0.18);
  transition:
    transform .25s ease,
    box-shadow .25s ease,
    filter .25s ease;
}

.ero-header__call:hover {
  transform: translateY(-1px);
  filter: saturate(1.05) brightness(1.02);
  box-shadow: 0 10px 24px rgba(184, 20, 20, 0.22);
}

/* Hamburger */
.ero-menu-toggle {
  color: #7b3f1f;
}

.ero-menu-toggle span {
  background: currentColor;
}

/* Mobil menü */
.ero-mobile-menu {
  background: #f7efe7;
}

.ero-mobile-menu__link {
  color: #4a3527;
  font-size: 16px;
  font-weight: 600;
}

.ero-mobile-menu__call {
  background: linear-gradient(135deg, #b81414 0%, #f28a2a 100%);
  color: #fffaf6;
  border-radius: 999px;
  font-weight: 700;
}

/* Responsive logo */
@media (max-width: 1024px) {
  .ero-header__inner {
    min-height: 72px;
  }

  .ero-header__logo {
    width: 175px;
  }
}

@media (max-width: 600px) {
  .ero-header__logo {
    width: 150px;
  }
}

/* =========================================================
   HEADER FONT + BUTTON REVISION
   ========================================================= */

.ero-header,
.ero-header * {
  font-family: "Nunito Sans", Arial, sans-serif;
}

.ero-header,
.ero-header__main {
  background: #f7efe7;
}

.ero-header {
  border-bottom: 1px solid rgba(125, 74, 28, 0.08);
}

.ero-header__inner {
  min-height: 78px;
  gap: 30px;
}

.ero-header__logo {
  width: clamp(165px, 14vw, 210px);
  height: auto;
}

/* Menü yazıları */
.ero-nav__link {
  color: #5a3928 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  padding-block: 10px;
  transition: color .25s ease;
}

.ero-nav__link::after {
  background: linear-gradient(90deg, #c31717 0%, #f28b2a 100%);
  height: 2px;
  bottom: 3px;
}

.ero-nav__link:hover {
  color: #c75d22 !important;
}

/* Yeni Hemen Ara butonu */
.ero-header__call {
  display: inline-flex !important;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 6px 16px 6px 6px;
  border-radius: 18px;
  background: #fff8f1 !important;
  border: 1px solid rgba(210, 110, 32, 0.18) !important;
  box-shadow: 0 8px 20px rgba(210, 110, 32, 0.12);
  color: #7e431f !important;
  text-decoration: none;
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    background-color .22s ease;
}

.ero-header__call:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(210, 110, 32, 0.16);
  background: #fff4e8 !important;
}

.ero-header__call-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #c31717 0%, #f28b2a 100%);
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(195, 23, 23, 0.20);
}

.ero-header__call-text {
  color: #7e431f;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

/* Hamburger */
.ero-menu-toggle {
  color: #7e431f;
}

/* Mobil menü */
.ero-mobile-menu {
  background: #f7efe7;
}

.ero-mobile-menu__link {
  color: #5a3928;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ero-mobile-menu__call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 18px;
  background: linear-gradient(135deg, #c31717 0%, #f28b2a 100%);
  color: #fffaf6;
  font-weight: 800;
}

/* Responsive */
@media (max-width: 1024px) {
  .ero-header__inner {
    min-height: 72px;
  }

  .ero-header__logo {
    width: 175px;
  }
}

@media (max-width: 600px) {
  .ero-header__logo {
    width: 150px;
  }
}

/* Hemen Ara gerçek 3D ikon */
.ero-header__call-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 14px;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.ero-header__call-icon img {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.ero-header__call {
  gap: 10px;
  padding: 5px 16px 5px 5px;
  background: #fff8f1 !important;
  border: 1px solid rgba(222, 95, 24, .18) !important;
  box-shadow: 0 7px 18px rgba(196, 51, 19, .10);
}

.ero-header__call-text {
  color: #b73517;
  font-weight: 800;
}

/* Menü rengini koyu bordo-siyaha yaklaştır */
.ero-nav__link {
  color: #2f1a17 !important;
}

.ero-nav__link:hover {
  color: #a92d18 !important;
}

.ero-mobile-menu__link {
  color: #2f1a17;
}

/* =========================================================
   ELLE ÇİZİLMİŞ MENÜ ÇEMBERİ
   ========================================================= */

.ero-nav__link {
  position: relative;
  z-index: 1;
  padding: 10px 9px;
}

/* Eski alt çizgiyi iptal et */
.ero-nav__link::after {
  content: "";
  position: absolute;
  z-index: -1;

  inset: 3px -5px;

  width: auto;
  height: auto;

  border: 2px solid #c3381c;
  border-radius:
    48% 52% 46% 54%
    /
    55% 45% 53% 47%;

  background: transparent;

  opacity: 0;

  transform:
    rotate(-3deg)
    scale(.88);

  transition:
    opacity .22s ease,
    transform .28s cubic-bezier(.2,.8,.2,1);

  pointer-events: none;
}

/* İkinci, hafif kaymış kalem izi */
.ero-nav__link::before {
  content: "";
  position: absolute;
  z-index: -1;

  inset: 1px -7px;

  border: 1px solid rgba(242, 123, 35, .70);

  border-radius:
    53% 47% 55% 45%
    /
    46% 54% 48% 52%;

  opacity: 0;

  transform:
    rotate(2deg)
    scale(.92);

  transition:
    opacity .22s ease,
    transform .32s cubic-bezier(.2,.8,.2,1);

  pointer-events: none;
}

.ero-nav__link:hover::before,
.ero-nav__link:hover::after,
.ero-nav__link.is-active::before,
.ero-nav__link.is-active::after {
  opacity: 1;
  transform: rotate(-2deg) scale(1);
}

.ero-nav__link:hover::before,
.ero-nav__link.is-active::before {
  transform: rotate(2deg) scale(1);
}

/* Aktif sayfa yazısı */
.ero-nav__link.is-active {
  color: #a92d18 !important;
}

/* =========================================================
   HEMEN ARA - ELLE ÇİZİLMİŞ ÇERÇEVE
   ========================================================= */

.ero-header__call {
  position: relative;
  isolation: isolate;

  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;

  padding: 6px 16px 6px 6px;
}

/* Ana elde çizilmiş çerçeve */
.ero-header__call::after {
  content: "";
  position: absolute;
  z-index: -1;

  inset: -2px -4px;

  border: 2px solid #c3381c;

  border-radius:
    24px 20px 23px 19px
    /
    19px 24px 20px 23px;

  transform: rotate(-1.2deg);

  pointer-events: none;

  transition:
    transform .25s ease,
    border-color .25s ease;
}

/* İkinci hafif kaymış kalem izi */
.ero-header__call::before {
  content: "";
  position: absolute;
  z-index: -2;

  inset: 1px -2px -3px 1px;

  border: 1px solid rgba(242, 123, 35, .78);

  border-radius:
    21px 25px 18px 24px
    /
    24px 18px 25px 20px;

  transform: rotate(1.4deg);

  pointer-events: none;

  transition:
    transform .28s ease,
    border-color .25s ease;
}

/* Hover: çerçeveler çok hafif hareket eder */
.ero-header__call:hover {
  transform: translateY(-1px);
}

.ero-header__call:hover::after {
  transform: rotate(-2deg) scale(1.02);
  border-color: #b72816;
}

.ero-header__call:hover::before {
  transform: rotate(2deg) scale(1.01);
  border-color: rgba(242, 123, 35, .95);
}

/* Yazı */
.ero-header__call-text {
  color: #8f2d18;
  font-weight: 900;
}

/* =========================================================
   MOBİL HEADER KESİN DÜZELTME
   ========================================================= */

@media (max-width: 1024px) {

  /* Masaüstü menüsünü kapat */
  .ero-nav {
    display: none !important;
  }

  /* Masaüstü Hemen Ara butonunu kapat */
  .ero-header__call {
    display: none !important;
  }

  /* Burger sağ tarafta */
  .ero-header__actions {
    margin-left: auto;
  }

  .ero-menu-toggle {
    display: block !important;
    margin-left: auto;
    flex: 0 0 46px;
  }

  /* Logo + burger tek satır */
  .ero-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  /* Mobil açılır menü */
  .ero-mobile-menu {
    display: grid !important;
  }
}

@media (max-width: 600px) {

  .ero-header__inner {
    min-height: 70px;
  }

  .ero-header__logo {
    width: 150px;
  }

  .ero-menu-toggle {
    width: 44px;
    height: 44px;
  }
}

/* kilit testi */

/* =========================================================
   MOBİL MENÜ SON TASARIM
   ========================================================= */

@media (max-width: 1024px) {

  .ero-mobile-menu__link {
    position: relative;
    padding: 15px 0;
    border-bottom: 0 !important;
    color: #2f1a17;
    font-weight: 800;
  }

  .ero-mobile-menu__link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(116, 63, 42, .14) 8%,
      rgba(116, 63, 42, .14) 92%,
      transparent 100%
    );
  }

  .ero-menu-toggle {
    position: relative;
    border: 0 !important;
    background: transparent !important;
    color: #7f351d;
  }

  .ero-menu-toggle::before {
    content: "";
    position: absolute;
    inset: 5px;
    border: 1.5px solid rgba(173, 60, 28, .55);
    border-radius: 11px 8px 10px 7px / 8px 11px 7px 10px;
    transform: rotate(-1.5deg);
    opacity: 0;
  }

  .ero-header.is-menu-open .ero-menu-toggle::before {
    opacity: 1;
    transform: rotate(1deg);
  }

  .ero-mobile-menu__call {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    min-height: 58px;
    margin-top: 24px;
    padding: 6px 18px 6px 6px;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: #922f19;
  }

  .ero-mobile-menu__call::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -2px -3px;
    border: 2px solid #c3381c;
    border-radius: 23px 19px 24px 20px / 19px 24px 20px 23px;
    transform: rotate(-.8deg);
  }

  .ero-mobile-menu__call::before {
    content: "";
    position: absolute;
    z-index: -2;
    inset: 1px -1px -3px 1px;
    border: 1px solid rgba(242, 123, 35, .78);
    border-radius: 20px 25px 19px 24px / 24px 19px 26px 20px;
    transform: rotate(1.1deg);
  }

  .ero-mobile-menu__call-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
  }

  .ero-mobile-menu__call-icon img {
    display: block;
    width: 46px;
    height: 46px;
    object-fit: contain;
  }

  .ero-mobile-menu__call-text {
    font-size: 15px;
    font-weight: 900;
  }
}

/* Mobil hamburger - logo ile uyumlu elle çizilmiş çerçeve */
@media (max-width: 1024px) {
  .ero-menu-toggle {
    position: relative;
    border: 0 !important;
    outline: 0;
    background: transparent !important;
    color: #8f2d18;
  }

  .ero-menu-toggle::before {
    content: "";
    position: absolute;
    inset: 5px;

    border: 2px solid #c3381c;

    border-radius:
      10px 7px 11px 8px
      /
      8px 11px 7px 10px;

    transform: rotate(-1.5deg);

    opacity: 1;
    pointer-events: none;
  }

  .ero-menu-toggle::after {
    content: "";
    position: absolute;
    inset: 7px 4px 4px 7px;

    border: 1px solid rgba(242, 123, 35, .70);

    border-radius:
      8px 11px 7px 10px
      /
      11px 7px 10px 8px;

    transform: rotate(1.5deg);

    pointer-events: none;
  }
}

/* Hamburger çizgisini incelt */
@media (max-width: 1024px) {
  .ero-menu-toggle::before {
    border-width: 1.2px;
  }

  .ero-menu-toggle::after {
    border-width: .7px;
    opacity: .75;
  }
}
