/**
 * Emit Mühendislik header.
 */

.emit-site-header,
.emit-side-panel,
.emit-floating-survey {
  font-family: "Poppins", sans-serif;
}

.emit-site-header *,
.emit-side-panel *,
.emit-floating-survey * {
  box-sizing: border-box;
}

.emit-icon {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.emit-icon-fill {
  fill: currentColor;
  stroke: none;
}

.emit-header-shell {
  width: min(100% - 30px, 1600px);
  margin-inline: auto;
}

.emit-top-bar {
  position: relative;
  z-index: 1010;
  color: #ecf0f1;
  background: #e31e25;
  font-size: 14px;
}

.emit-top-bar__inner,
.emit-top-contact,
.emit-top-actions,
.emit-signature-link,
.emit-top-socials {
  display: flex;
  align-items: center;
}

.emit-top-bar__inner {
  min-height: 42px;
  justify-content: space-between;
}

.emit-top-contact,
.emit-top-actions {
  gap: 30px;
}

.emit-top-contact a,
.emit-signature-link,
.emit-top-socials a {
  color: inherit;
  text-decoration: none;
}

.emit-top-contact a,
.emit-signature-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.emit-top-contact .emit-icon {
  font-size: 13px;
}

.emit-top-contact span {
  font-weight: 400;
}

.emit-signature-link {
  gap: 10px;
}

.emit-signature-link img {
  object-fit: contain;
}

.emit-top-socials {
  gap: 14px;
}

.emit-top-socials a {
  display: grid;
  width: 18px;
  height: 22px;
  place-items: center;
  transition: transform 180ms ease;
}

.emit-top-socials a:hover {
  transform: translateY(-2px);
}

.emit-main-header {
  position: absolute;
  z-index: 1000;
  left: 0;
  width: 100%;
  padding: 15px 0;
  background: transparent;
  transition: background-color 200ms ease, box-shadow 200ms ease, padding 200ms ease;
}

.emit-main-header.is-sticky {
  position: fixed;
  top: 0;
  padding: 10px 0;
  background: #fff;
  box-shadow: 0 2px 10px rgb(0 0 0 / 12%);
  animation: emit-slide-down 350ms ease-out;
}

/* Inner pages keep the navigation in document flow so breadcrumbs never sit beneath it. */
.emit-site-header--inner .emit-main-header {
  position: relative;
  background: #fff;
  box-shadow: 0 2px 10px rgb(0 0 0 / 8%);
}

.emit-site-header--inner .emit-logo--white {
  display: none;
}

.emit-site-header--inner .emit-logo--dark {
  display: block;
}

.emit-site-header--inner .emit-primary-nav > ul > li > a {
  color: #333;
}

.emit-site-header--inner .emit-primary-nav > ul > li > a:hover,
.emit-site-header--inner .emit-primary-nav > ul > li:focus-within > a {
  color: #e31e25;
}

@media (min-width: 1101px) {
  .emit-site-header--inner.emit-site-header--sticky-placeholder .emit-desktop-header {
    padding-bottom: 118px;
  }

  .emit-site-header--inner .emit-main-header.is-sticky {
    position: fixed;
  }
}

.admin-bar .emit-main-header.is-sticky {
  top: 32px;
}

@keyframes emit-slide-down {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.emit-main-header__inner {
  display: grid;
  min-height: 88px;
  align-items: center;
  gap: 24px;
  grid-template-columns: minmax(220px, 1fr) auto 58px;
}

.emit-brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
}

.emit-logo {
  display: block;
  width: auto;
  max-width: 290px;
  max-height: 82px;
  object-fit: contain;
}

.emit-logo--dark {
  display: none;
}

.emit-main-header.is-sticky .emit-logo--white {
  display: none;
}

.emit-main-header.is-sticky .emit-logo--dark {
  display: block;
}

.emit-primary-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(16px, 1.45vw, 29px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.emit-primary-nav li {
  position: relative;
}

.emit-primary-nav > ul > li > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 22px 0;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 180ms ease, transform 180ms ease;
}

.emit-primary-nav > ul > li > a .emit-icon {
  width: 11px;
  height: 11px;
  stroke-width: 2.3;
}

.emit-primary-nav > ul > li > a:hover,
.emit-primary-nav > ul > li:focus-within > a {
  color: #e31e25;
  transform: scale(1.03);
}

.emit-main-header.is-sticky .emit-primary-nav > ul > li > a {
  color: #333;
}

.emit-main-header.is-sticky .emit-primary-nav > ul > li > a:hover,
.emit-main-header.is-sticky .emit-primary-nav > ul > li:focus-within > a {
  color: #e31e25;
}

.emit-submenu {
  position: absolute;
  top: calc(100% - 5px);
  left: 0;
  display: none;
  width: 310px;
  overflow: hidden;
  padding: 12px 0;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 15px 35px rgb(0 0 0 / 15%), 0 5px 15px rgb(0 0 0 / 7%);
}

.emit-has-submenu:hover .emit-submenu,
.emit-has-submenu:focus-within .emit-submenu {
  display: block;
  animation: emit-submenu-in 200ms ease-out;
}

@keyframes emit-submenu-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.emit-submenu > p {
  margin: 0;
  padding: 8px 24px 12px;
  color: #8a8f95;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.emit-submenu > a {
  display: grid;
  align-items: center;
  gap: 13px;
  padding: 11px 24px;
  border-left: 3px solid transparent;
  color: #2c3e50;
  grid-template-columns: 24px 1fr;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease, padding 180ms ease;
}

.emit-submenu > a:hover {
  padding-left: 29px;
  border-left-color: #e31e25;
  color: #fff;
  background: linear-gradient(90deg, #e31e25, #c41e3a);
}

.emit-submenu > a span {
  display: grid;
  font-size: 18px;
  place-items: center;
}

.emit-submenu > a strong,
.emit-submenu > a small {
  display: block;
}

.emit-submenu > a strong {
  font-size: 14px;
  font-weight: 600;
}

.emit-submenu > a small {
  margin-top: 3px;
  color: #8a8f95;
  font-size: 11px;
  font-weight: 400;
}

.emit-submenu > a:hover small {
  color: rgb(255 255 255 / 80%);
}

.emit-pdf-button {
  display: grid;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #fff;
  background: #e31e25;
  box-shadow: 0 8px 20px rgb(227 30 37 / 25%);
  cursor: pointer;
  place-items: center;
  transition: background 180ms ease, transform 180ms ease;
}

.emit-pdf-button .emit-icon {
  width: 23px;
  height: 23px;
}

.emit-pdf-button:hover {
  background: #c41e3a;
  transform: translateY(-2px);
}

.emit-mobile-header {
  display: none;
}

.emit-side-panel[hidden] {
  display: none;
}

.emit-side-panel {
  position: fixed;
  z-index: 10050;
  inset: 0;
}

.emit-panel-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgb(0 0 0 / 55%);
  cursor: default;
}

.emit-panel-dialog {
  position: absolute;
  top: 0;
  right: 0;
  width: min(430px, 90vw);
  height: 100%;
  overflow-y: auto;
  background: #fff;
  box-shadow: -20px 0 60px rgb(0 0 0 / 20%);
  animation: emit-panel-right 250ms ease-out;
}

.emit-side-panel--left .emit-panel-dialog {
  right: auto;
  left: 0;
  box-shadow: 20px 0 60px rgb(0 0 0 / 20%);
  animation-name: emit-panel-left;
}

@keyframes emit-panel-right { from { transform: translateX(100%); } }
@keyframes emit-panel-left { from { transform: translateX(-100%); } }

.emit-panel-heading {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 28px;
  border-bottom: 1px solid #eee;
}

.emit-panel-heading img {
  width: 235px;
  height: auto;
}

.emit-panel-heading h2 {
  margin: 0;
  color: #292d32;
  font-size: 22px;
}

.emit-panel-heading button {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #333;
  background: #f1f1f1;
  cursor: pointer;
  font-size: 25px;
  place-items: center;
}

.emit-panel-heading--red {
  color: #fff;
  background: linear-gradient(135deg, #e31e25, #c41e3a);
}

.emit-panel-heading--red h2,
.emit-panel-heading--red button {
  color: #fff;
}

.emit-panel-heading--red button {
  background: rgb(255 255 255 / 15%);
}

.emit-panel-content {
  padding: 35px 30px;
  color: #666;
  line-height: 1.7;
}

.emit-panel-content h3 {
  margin: 0 0 14px;
  color: #292d32;
  font-size: 22px;
  line-height: 1.4;
}

.emit-panel-cta {
  display: inline-flex;
  margin-top: 15px;
  padding: 13px 24px;
  border-radius: 25px;
  color: #fff;
  background: #e31e25;
  font-weight: 600;
  text-decoration: none;
}

.emit-mobile-nav {
  display: grid;
  padding: 16px 0 34px;
}

.emit-mobile-nav > a,
.emit-mobile-nav summary,
.emit-mobile-nav details a {
  display: block;
  padding: 14px 28px;
  border-bottom: 1px solid #eee;
  color: #333;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
}

.emit-mobile-nav summary {
  cursor: pointer;
  list-style: none;
}

.emit-mobile-nav summary::after {
  content: "+";
  float: right;
  color: #e31e25;
  font-size: 20px;
}

.emit-mobile-nav details[open] summary::after {
  content: "−";
}

.emit-mobile-nav details a {
  padding-left: 42px;
  color: #666;
  background: #fafafa;
  font-size: 13px;
  font-weight: 500;
  text-transform: none;
}

.emit-floating-survey {
  position: fixed;
  z-index: 1001;
  right: 30px;
  bottom: 30px;
  display: flex;
  min-width: 180px;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 24px;
  border: 0;
  border-radius: 50px;
  color: #fff;
  background: linear-gradient(135deg, #e31e25, #c41e3a);
  box-shadow: 0 8px 25px rgb(227 30 37 / 40%);
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  animation: emit-pulse 2s infinite;
}

.emit-floating-survey .emit-icon {
  width: 21px;
  height: 21px;
}

.emit-floating-survey:hover {
  transform: translateY(-3px) scale(1.03);
  animation: none;
}

@keyframes emit-pulse {
  50% { box-shadow: 0 8px 25px rgb(227 30 37 / 60%), 0 0 0 15px rgb(227 30 37 / 10%); }
}

body.emit-panel-open {
  overflow: hidden;
}

@media (max-width: 1320px) {
  .emit-main-header__inner { grid-template-columns: minmax(190px, 1fr) auto 52px; gap: 16px; }
  .emit-logo { max-width: 235px; }
  .emit-primary-nav ul { gap: 14px; }
  .emit-primary-nav > ul > li > a { font-size: 12px; }
  .emit-pdf-button { width: 50px; height: 50px; }
}

@media (max-width: 1100px) {
  .emit-desktop-header { display: none; }
  .emit-mobile-header {
    display: grid;
    min-height: 82px;
    align-items: center;
    padding: 10px 22px;
    border-bottom: 1px solid #eee;
    background: #fff;
    grid-template-columns: 50px 1fr 50px;
  }
  .emit-mobile-toggle {
    display: grid;
    width: 44px;
    height: 44px;
    align-content: center;
    gap: 5px;
    padding: 10px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  .emit-mobile-toggle span { display: block; width: 24px; height: 2px; background: #e31e25; }
  .emit-mobile-brand { justify-self: center; }
  .emit-mobile-brand img { display: block; width: auto; max-width: 240px; max-height: 52px; }
  .emit-mobile-turkak { justify-self: end; }
  .emit-mobile-turkak img { display: block; border-radius: 8px; object-fit: contain; }
}

@media (max-width: 782px) {
  .admin-bar .emit-main-header.is-sticky { top: 46px; }
}

@media (max-width: 600px) {
  .emit-mobile-header { min-height: 72px; padding-inline: 14px; }
  .emit-mobile-brand img { max-width: 190px; max-height: 44px; }
  .emit-mobile-turkak img { width: 40px; height: 40px; }
  .emit-floating-survey { right: 15px; bottom: 15px; min-width: 145px; min-height: 48px; padding: 11px 17px; font-size: 13px; }
}
