:root{
  --emh-bg:#122118CC;
  --emh-border:#264532;
  --emh-text:#ffffff;
  --emh-muted:#c7d7cf;
  --emh-accent:#38e07b;
  --emh-height:64px;
  --emh-logo-h:28px;
  --emh-maxw:1200px;
}
/* Header reset & layout */
.emh-header{
  position: sticky; top: 0; z-index: 1000;
  margin: 0 !important; padding: 0;
  background: var(--emh-bg);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--emh-border);
  color: var(--emh-text);
  font-family: "Spline Sans", "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, sans-serif;
}
/* Editör/admin bar offset */
.admin-bar .emh-header{ top: 32px; }
@media (max-width:782px){ .admin-bar .emh-header{ top: 46px; } }
/* Tema kaynaklı üst boşluğu öldür (yaygın kaplar) */
#page, .site, .site-header, .elementor-location-header, .page-header, .site-main, .content-area{
  margin-top: 0 !important; padding-top: 0 !important;
}

.emh-inner{
  height: var(--emh-height);
  max-width: var(--emh-maxw);
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* menü gerçek ortada */
  align-items: center;
  gap: 16px;
}
/* Brand (sol) */
.emh-brand{ display:flex; align-items:center; gap:12px; text-decoration:none; color: var(--emh-text); justify-self: start; }
.emh-logo-img{ display:block; height: var(--emh-logo-h); width:auto; }
.emh-logo-fallback{
  display:inline-block; width: calc(var(--emh-logo-h)); height: calc(var(--emh-logo-h));
  border-radius: 999px; background: var(--emh-accent);
  box-shadow: inset -8px 0 0 rgba(0,0,0,.15);
}
.emh-brand-text{ font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }

/* Nav (ortada) */
.emh-nav{ justify-self: center; }
.emh-menu, .emh-menu-mobile{ list-style:none; margin:0; padding:0; display:flex; gap: 28px; }
.emh-menu{ justify-content: center; }
.emh-menu li{ margin:0; }
.emh-menu a{ color: var(--emh-menu-color, var(--emh-text)); text-decoration:none; font-weight:700; font-size:14px; opacity:.95; }
.emh-menu a:hover, .emh-menu a:active{ color: var(--emh-menu-active, var(--emh-accent)); }

/* CTA (sağ) */
.emh-cta{
  justify-self: end;
  display:inline-flex; align-items:center; justify-content:center;
  height: 40px; padding: 0 18px;
  background: var(--emh-accent); color: #122118; font-weight: 800; text-decoration:none;
  border-radius: 999px; box-shadow: 0 1px 0 rgba(0,0,0,.15);
  transition: transform .08s ease, filter .18s ease;
}
.emh-cta:hover{ transform: translateY(-1px); filter: brightness(1.05); }

/* Mobile */
.emh-burger{ display:none; background:none!important; border:0; padding:8px; margin:0; cursor:pointer; justify-self:end; }
.emh-burger span{ display:block; width:22px; height:2px; background: var(--emh-text); margin:4px 0; border-radius:2px; }

@media (max-width: 900px){
  .emh-inner{ grid-template-columns: auto auto 1fr; }
  .emh-nav{ display:none; }
  .emh-burger{ display:block; }
  .emh-cta{ display:none; } /* mobile altta gösterilecek */
  .emh-mobile[hidden]{ display:none !important; }
  .emh-mobile{ display:block; border-top:1px solid var(--emh-border); background: rgba(0,0,0,.08); }
  .emh-menu-mobile{ flex-direction: column; gap: 8px; padding: 10px 16px; }
  .emh-cta-mobile{ display:block; margin: 8px 16px 12px; text-align:center; }
}

/* Elementor editörde positioning */
.elementor-editor-active .emh-header{ position: relative; }

/* Overlay mobile menu */
.emh-overlay[hidden]{ display:none !important; }
.emh-overlay{
  position: fixed; inset: 0; width:100vw; height:100vh; z-index: 2147483647;
  background: #000;
  backdrop-filter: blur(2px);
  display: grid; place-items: center;
}
.emh-overlay__panel{
  position: relative;
  width: min(92vw, 560px);
  padding: 24px 20px 32px;
  text-align: center;
}
.emh-close{
  position:fixed; top:14px; right:16px;
  display:inline-flex; align-items:center; gap:8px;
  background: var(--emh-close-bg, transparent); border:0; color: var(--emh-close-color, var(--emh-text));
  font-weight:800; font-size:16px; cursor:pointer;
}
.emh-close .emh-x{ font-size:18px; line-height:1; }
.emh-menu-mobile{ display:flex; flex-direction:column; align-items:center; gap: 16px; padding: 28px 8px; }
.emh-menu-mobile a{ color: var(--emh-menu-color, var(--emh-text)); text-decoration:none; font-weight:700; font-size:20px; line-height:1.2; }
.emh-cta-mobile{ display:block; margin: 10px 8px 24px; text-align:center; }
@media (max-width: 900px){
  .emh-inner{ grid-template-columns: 1fr auto; }
}

html.emh-lock, body.emh-lock{ overflow:hidden; }

.emh-overlay .emh-cta-mobile{ display:none !important; }

.emh-overlay__panel{ padding-top: 56px; }

/* Clean mobile block inside overlay */
.emh-overlay .emh-mobile{ border-top:0!important; background:transparent!important; }


/* Force clean overlay visuals */
.emh-overlay .emh-mobile{ border-top:0!important; background:transparent!important; }
.emh-overlay__panel{ border:0!important; outline:0!important; }
.emh-overlay hr{ display:none!important; }

.emh-menu-mobile a:hover, .emh-menu-mobile a:active{ color: var(--emh-menu-active, var(--emh-accent)); }

.emh-close:hover, .emh-close:active{ background: var(--emh-close-active-bg, var(--emh-close-bg, transparent)); color: var(--emh-close-active-color, var(--emh-close-color, var(--emh-text))); }
