/* Yaren Özkök Tema · Header · v0.2.0 */

.yhn {
  width: 100%;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: var(--z-header);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  height: 88px;
  padding: 0 32px;
}

.nav-left {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.nav-right-group {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
}

.nav-right { display: flex; align-items: center; gap: 4px; }

.logo-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 196px;
}
.logo-center img { height: 72px; width: auto; display: block; }

/* ── MENÜ ── */
.menu-link {
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #2F6F5E;
  font-family: var(--yz-font);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: background .18s, color .18s;
}
.menu-link:hover { background: rgba(47, 111, 94, .09); color: #1E4D40; }
.menu-link.is-current { background: rgba(47, 111, 94, .09); color: #1E4D40; }

/* ── AÇILIR MENÜ ── */
.dropdown-wrapper { position: relative; }

.dropdown-arrow {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 5px;
  margin-top: 1px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #2F6F5E;
  flex-shrink: 0;
  transition: transform .22s;
}
.dropdown-wrapper:hover .dropdown-arrow,
.dropdown-wrapper:focus-within .dropdown-arrow { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 500;
  padding-top: 10px;
  transform: translateX(-50%);
  pointer-events: none;
}
.dropdown-wrapper:hover .dropdown-menu,
.dropdown-wrapper:focus-within .dropdown-menu { pointer-events: auto; }

.dropdown-menu-inner {
  min-width: 220px;
  padding: 6px;
  background: #F1F7F4;
  border: 1px solid #DDE7E3;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.dropdown-wrapper:hover .dropdown-menu-inner,
.dropdown-wrapper:focus-within .dropdown-menu-inner {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-menu-inner a {
  display: block;
  margin-bottom: 4px;
  padding: 10px 16px;
  border-radius: 8px;
  background: rgba(47, 93, 140, .08);
  color: #2F6F5E;
  font-family: var(--yz-font);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background .18s, color .18s;
}
.dropdown-menu-inner a:last-child { margin-bottom: 0; }
.dropdown-menu-inner a:hover { background: #2F6F5E; color: #fff; }

/* ── EKSTRALAR ── */
.extras { display: flex; align-items: center; gap: 14px; margin-left: 16px; }

.phone-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #2F6F5E;
  font-family: var(--yz-font);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s;
}
.phone-link:hover { color: #1E4D40; }
.phone-link svg { width: 15px; height: 15px; flex-shrink: 0; }

.btn-randevu {
  display: inline-block;
  padding: 11px 20px;
  border: none;
  border-radius: 8px;
  background: #2F6F5E;
  color: #fff;
  -webkit-text-fill-color: #fff;
  font-family: var(--yz-font);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background .18s;
}
.btn-randevu:hover { background: #1E4D40; color: #fff; -webkit-text-fill-color: #fff; }

/* ── HAMBURGER ── */
.hamburger-btn {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: #F1F7F4;
  cursor: pointer;
  flex-shrink: 0;
  z-index: 1200;
  transition: background .2s;
}
.hamburger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: #2F6F5E;
  transform-origin: center;
  transition: transform .3s cubic-bezier(.77, 0, .18, 1), opacity .2s, background .2s;
}
.hamburger-btn:hover { background: #2F6F5E; }
.hamburger-btn:hover span { background: #F1F7F4; }
.hamburger-btn[aria-expanded="true"] { background: #2F6F5E; }
.hamburger-btn[aria-expanded="true"] span { background: #F1F7F4; }
.hamburger-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBİL PERDE ── */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: rgba(0, 0, 0, .4);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.mobile-overlay.visible { display: block; }
.mobile-overlay.active { opacity: 1; pointer-events: auto; }

/* ── MOBİL PANEL ── */
.mobile-panel {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  width: 300px;
  max-width: 88vw;
  height: 100dvh;
  background: #fff;
  transform: translateX(-100%);
  transition: transform .36s cubic-bezier(.77, 0, .18, 1);
}
.mobile-panel.open { transform: translateX(0); }

.mobile-panel-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 24px 20px;
  border-bottom: 1px solid #DDE7E3;
}
.mobile-panel-logo img { height: 56px; width: auto; }

.mobile-nav { flex: 1; overflow-y: auto; padding: 10px 12px; }

.mobile-nav > a {
  display: block;
  margin-bottom: 2px;
  padding: 13px 16px;
  border-radius: 8px;
  color: #2F6F5E;
  font-family: var(--yz-font);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .18s, color .18s;
}
.mobile-nav > a:hover { background: rgba(47, 111, 94, .08); color: #1E4D40; }

.mobile-dd { margin-bottom: 2px; }

.mobile-dd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 8px;
  transition: background .18s;
}
.mobile-dd-header:hover { background: rgba(47, 111, 94, .08); }
.mobile-dd-header > a {
  flex: 1;
  padding: 13px 16px;
  color: #2F6F5E;
  font-family: var(--yz-font);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
}

.mobile-dd-ac {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 44px;
  border: none;
  background: none;
  cursor: pointer;
}
.mobile-dd-arrow {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #2F6F5E;
  flex-shrink: 0;
  transition: transform .25s;
}
.mobile-dd-ac[aria-expanded="true"] .mobile-dd-arrow { transform: rotate(180deg); }

.mobile-sub {
  max-height: 0;
  overflow: hidden;
  padding: 0 6px;
  transition: max-height .32s cubic-bezier(.77, 0, .18, 1);
}
.mobile-sub.open { max-height: 460px; }

.mobile-sub a {
  display: block;
  margin-bottom: 4px;
  padding: 10px 16px;
  border-radius: 8px;
  background: rgba(47, 93, 140, .08);
  color: #2F6F5E;
  font-family: var(--yz-font);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .18s, color .18s;
}
.mobile-sub a:hover { background: #2F6F5E; color: #fff; }

.mobile-panel-bottom {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 16px 20px;
  border-top: 1px solid #DDE7E3;
}

.mobile-btn-randevu {
  display: block;
  padding: 14px;
  border-radius: 8px;
  background: #2F6F5E;
  color: #fff;
  -webkit-text-fill-color: #fff;
  font-family: var(--yz-font);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .06em;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .18s;
}
.mobile-btn-randevu:hover { background: #1E4D40; }

.mobile-social { display: flex; align-items: center; justify-content: center; gap: 12px; }
.mobile-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(47, 93, 140, .08);
  color: #2F6F5E;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.mobile-social a:hover { background: #2F6F5E; color: #fff; }
.mobile-social svg { width: 17px; height: 17px; }

/* ── ORTA EKRAN ── */
@media (max-width: 1499px) {
  .header-inner { padding: 0 20px; }
  .menu-link { padding: 9px 10px; font-size: 14px; }
  .dropdown-arrow { margin-left: 4px; }
  .extras { gap: 10px; margin-left: 10px; }
  .btn-randevu { padding: 11px 16px; font-size: 13px; }
}

@media (max-width: 1249px) {
  .phone-link { gap: 0; font-size: 0; letter-spacing: 0; }
  .phone-link svg { width: 18px; height: 18px; }
  .menu-link { padding: 9px 8px; letter-spacing: .02em; }
  .nav-left, .nav-right, .nav-right-group { gap: 2px; }
}

/* ── DAR EKRAN ── */
@media (max-width: 1100px) {
  .nav-left, .nav-right-group { display: none; }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 68px;
    padding: 0 16px;
  }

  .logo-center { flex: 1; justify-content: flex-start; }
  .logo-center img { height: 50px; }

  .hamburger-btn { display: flex; }
  .mobile-overlay { display: block; }
}

/* ── JS YOKKEN ── */
html:not(.yz-js) .mobile-panel { position: static; width: auto; max-width: none; height: auto; transform: none; }
html:not(.yz-js) .mobile-sub { max-height: none; }
