/* ===== GOLD LOGO ===== */
.gold-logo-wrapper {
  display: inline-grid;
  grid-template-areas: 'overlap';
  text-transform: uppercase;
}
.gold-logo-wrapper > div {
  background-clip: text;
  -webkit-background-clip: text;
  font-family: Arial, sans-serif;
  font-weight: 900;
  font-size: 28px;
  grid-area: overlap;
  letter-spacing: 1px;
  -webkit-text-stroke: 2px transparent;
  margin: 0; padding: 0;
}
.gold-logo-wrapper .gold-fg {
  background-image: repeating-linear-gradient(5deg, #ffb338 0%, #77571d 23%, #ffb338 31%);
  color: #D3D3D3;
  transform: scale(1);
  z-index: 2;
}
.gold-logo-wrapper .gold-bg {
  background-image: repeating-linear-gradient(105deg, #ffb338 0%, #3e2904 5%, #ffb338 12%);
  color: transparent;
  filter: drop-shadow(3px 5px 8px rgba(0,0,0,0.8));
  transform: scaleY(1.05);
  transform-origin: top;
  z-index: 1;
}

/* ===== HEADER 2 — NEW DESIGN ===== */
.mg-header-wrap {
  width: 100%;
  background: #fff;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 9999;
}

/* --- TOP BAR --- */
.mg-top-bar {
  position: relative;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
}

.mg-logo-area {
  padding-left: 100px;
  z-index: 2;
  display: flex;
  align-items: center;
  text-decoration: none;
}
.mg-logo-area img { max-height: 56px; }

/* Clip-path kırmızı şekil */
.mg-top-shape {
  position: absolute;
  width: 470px;
  height: 85px;
  background: var(--primary-color);
  left: 50%;
  transform: translateX(-50%);
  clip-path: polygon(12% 0, 88% 0, 100% 100%, 24% 100%);
  z-index: 1;
  pointer-events: none;
}

/* Telefon alanı */
.mg-phone-area {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-right: 80px;
  z-index: 2;
}
.mg-phone-icon {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  text-decoration: none;
  animation: mg-pulse 2s infinite;
  flex-shrink: 0;
}
@keyframes mg-pulse {
  0%   { box-shadow: 0 0 0 0 var(--primary-color-80); }
  70%  { box-shadow: 0 0 0 15px var(--primary-color-00); }
  100% { box-shadow: 0 0 0 0 var(--primary-color-00); }
}
.mg-phone-number {
  font-size: 22px;
  font-weight: 700;
  color: #444;
  letter-spacing: 1px;
  text-decoration: none;
  transition: color .2s;
}
.mg-phone-number:hover { color: var(--primary-color); }


/* --- NAV BAR --- */
.mg-nav-bar {
  background: #f3f3f3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 52px;
  padding: 0 30px 0 100px;
  border-top: 1px solid #e8e8e8;
}

.mg-nav-links {
  display: flex;
  list-style: none;
  margin: 0; padding: 0;
  gap: 4px;
}
.mg-nav-links li { position: relative; }
.mg-nav-links li > a {
  text-decoration: none;
  color: #000;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: background .25s, color .25s;
  white-space: nowrap;
}
.mg-nav-links li > a:hover,
.mg-nav-links li > a.mg-active {
  background: var(--primary-color);
  color: #fff;
}

/* Dropdown */
.mg-nav-links li > ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 200px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.13);
  z-index: 999;
  flex-direction: column;
  border-top: 3px solid var(--primary-color);
  list-style: none;
  padding: 0; margin: 0;
}
.mg-nav-links li:hover > ul { display: flex; }
.mg-nav-links li > ul li a {
  padding: 10px 18px;
  font-size: 13px;
  border-bottom: 1px solid #f0f0f0;
  text-transform: none;
  letter-spacing: 0;
  display: block;
  text-decoration: none;
  color: #333;
  transition: background .2s, color .2s, padding-left .2s;
}
.mg-nav-links li > ul li:last-child a { border-bottom: none; }
.mg-nav-links li > ul li a:hover {
  background: var(--primary-color);
  color: #fff;
  padding-left: 24px;
}
/* Dropdown arrow */
.mg-nav-links li.has-children > a::after {
  content: "\F0140";
  font-family: "Material Design Icons";
  font-size: 16px;
  margin-left: 2px;
  opacity: 0.6;
}

/* WhatsApp Btn */
.mg-wp-btn {
  background: #22a85a;
  color: #fff !important;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background .3s, transform .2s;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.05em;
}
.mg-wp-btn:hover { background: #1a8a48; transform: translateY(-2px); }
.mg-wp-btn i { font-size: 16px; }

/* Hamburger toggle (mobilde görünür) */
.mg-menu-toggle {
  display: none;
  font-size: 26px;
  cursor: pointer;
  padding: 14px 18px;
  color: #333;
  background: none;
  border: none;
  margin-left: auto;
  line-height: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .mg-top-shape { display: none; }
  .mg-logo-area { padding-left: 20px; }
  .mg-phone-area { padding-right: 16px; gap: 14px; }
  .mg-phone-number { font-size: 14px; font-weight: 700; }

  .mg-nav-bar { flex-wrap: wrap; padding: 0; }
  .mg-menu-toggle { display: block; }

  .mg-nav-links {
    width: 100%;
    display: none;
    flex-direction: column;
    gap: 0;
  }
  .mg-nav-links.mg-open { display: flex; }
  .mg-nav-links li > a {
    width: 100%;
    padding: 16px 20px;
    border-top: 1px solid #ddd;
    text-transform: none;
  }
  .mg-nav-links li > a::after { float: right; }

  /* Dropdown mobilde inline */
  .mg-nav-links li > ul {
    position: static;
    box-shadow: none;
    border-top: none;
    border-left: 3px solid var(--primary-color);
    background: #fafafa;
    display: none;
  }
  .mg-nav-links li.mg-open-child > ul { display: flex; }
  .mg-nav-links li > ul li a { padding-left: 28px; }
  .mg-wp-btn { margin: 12px 16px; }
}

@media (max-width: 380px) {
  .mg-phone-number { font-size: 15px; }
  .mg-phone-area { padding-right: 10px; gap: 10px; }
  .mg-logo-area { padding-left: 14px; }
}

/* ===== LEGACY MOBILE HEADER ===== */
.mg-legacy-header .cs_site_header:not(.cs-gescout_sticky) {
  background-color: rgba(0,0,0,0.45);
}
.mg-legacy-header .top-wp-btn {
  background: var(--btn2-bg);
  color: var(--btn2-color) !important;
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Legacy Header Dropdown Menu */
.mg-legacy-header .cs_nav_list .menu-item-has-children {
  position: relative;
}
.mg-legacy-header .cs_nav_list .menu-item-has-children > ul {
  display: none !important;
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  background: #fff !important;
  min-width: 240px !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
  list-style: none !important;
  padding: 10px 0 !important;
  margin: 0 !important;
  z-index: 99999 !important;
  border-radius: 0 0 6px 6px !important;
  border-top: 3px solid var(--primary-color) !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.mg-legacy-header .cs_nav_list .menu-item-has-children:hover > ul {
  display: block !important;
  animation: fadeIn 0.2s ease;
}
.mg-legacy-header .cs_nav_list .menu-item-has-children > ul > li {
  width: 100% !important;
  display: block !important;
  margin: 0 !important;
}
.mg-legacy-header .cs_nav_list .menu-item-has-children > ul > li > a {
  display: block !important;
  padding: 12px 20px !important;
  color: #333 !important;
  font-size: 14px !important;
  text-transform: none !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  border-bottom: 1px solid #f5f5f5 !important;
  font-weight: 500 !important;
}
.mg-legacy-header .cs_nav_list .menu-item-has-children > ul > li:last-child > a {
  border-bottom: none !important;
}
.mg-legacy-header .cs_nav_list .menu-item-has-children > ul > li > a:hover {
  background-color: #f9f9f9 !important;
  color: var(--primary-color) !important;
  padding-left: 25px !important;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media screen and (max-width: 767px) {
  .mg-legacy-header .cs_site_header.cs_style_1 .cs_top_header_in { height: auto; min-height: auto; }
  .mg-legacy-header .cs_top_header_right { width: 100%; }
  .mg-legacy-header .cs_top_header_right ul { width: 100%; display: block !important; }
  .mg-legacy-header .cs_top_header_right ul li { width: 100%; display: block; }
  .mg-legacy-header .cs_top_header_right ul li::after { display: none !important; }
  .mg-legacy-header .top-wp-btn { width: 100%; border-radius: 0; padding: 10px 15px; font-size: 15px; }
  .mg-legacy-header .cs_top_header { padding: 0 !important; }
  .mg-legacy-header .cs_top_header .container { padding: 0 !important; max-width: 100%; }
}
