/* ===========================================================
   DENTISTA — Büyük (mega) menü stilleri
   Referans görseldeki gibi: ekran genişliğinde koyu panel,
   solda koyu kutu, sağda numaralı başlık sütunları.
   =========================================================== */

/* --- Menü çubuğu: daha büyük ve ferah --- */
header.site .nav {
  height: 96px;
  gap: 30px;
}
header.site .logo-mark { width: 52px; height: 52px; border-radius: 15px; }
header.site .logo-mark svg { width: 27px; height: 27px; }
header.site .logo-text b { font-size: 21px; letter-spacing: .15em; }
header.site .logo-text small { font-size: 10px; }

header.site .menu { gap: 2px; }
header.site .menu > a,
header.site .mega-trigger {
  background: none; border: none; font-family: inherit;
  font-size: 15.5px; font-weight: 500; color: var(--ink);
  padding: 12px 17px; border-radius: 10px;
  display: inline-flex; align-items: center; gap: 7px;
  cursor: pointer; transition: background .2s, color .2s;
  letter-spacing: -.005em;
}
header.site .menu > a:hover,
header.site .mega-trigger:hover,
header.site .has-mega.open .mega-trigger { background: var(--teal-soft); color: var(--teal); }

header.site .nav-tel { font-size: 15.5px; }
header.site .nav-tel .ico { width: 40px; height: 40px; }

/* --- Mega panel --- */
.has-mega { position: static; }

.mega-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 0 20px;
  display: none;
  z-index: 70;
}
.has-mega.open .mega-panel { display: block; }

.mega-inner {
  max-width: 1400px;
  margin: 0 auto;
  background: #fffdfa;
  border-radius: 26px;
  box-shadow: 0 40px 90px -30px rgba(11, 26, 38, .5), 0 2px 10px rgba(11, 26, 38, .08);
  overflow: hidden;
  display: grid;
  grid-template-columns: 400px 1fr;
  min-height: 470px;
  animation: megaIn .3s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes megaIn {
  from { opacity: 0; transform: translateY(-10px); }
}

/* Sol koyu kutu */
.mega-aside {
  background:
    radial-gradient(600px 300px at 100% 0%, #3a1220 0%, transparent 60%),
    linear-gradient(160deg, #1b0710 0%, #2a0c16 55%, #150509 100%);
  color: #f2e9ea;
  padding: 44px 38px 38px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.mega-aside::after {
  content: '';
  position: absolute;
  inset: auto -60px -80px auto;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .07), transparent 70%);
}

.mega-icon {
  width: 62px; height: 62px; border-radius: 18px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, #8d1f33, #5a1020);
  color: #f7d9d3;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 12px 26px -12px rgba(0, 0, 0, .8);
  margin-bottom: 26px;
}
.mega-icon svg { width: 30px; height: 30px; }

.mega-kicker {
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #c98e93;
  font-weight: 600;
  margin-bottom: 10px;
}
.mega-aside h3 {
  margin: 0 0 16px;
  font-size: 40px;
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 800;
  color: #fdf6f4;
}
.mega-aside p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.68;
  color: #c9b0b3;
  max-width: 300px;
}

.mega-pulse {
  display: block;
  margin: 28px 0 22px;
  color: #c98e93;
  opacity: .85;
}
.mega-pulse svg { width: 100%; max-width: 210px; height: 26px; }

.mega-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f3d9a4;
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: -.01em;
  text-decoration: none;
  transition: gap .2s, color .2s;
}
.mega-cta span {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid rgba(243, 217, 164, .45);
  display: grid; place-items: center;
  font-size: 12px;
  transition: background .2s, transform .2s;
}
.mega-cta:hover { color: #fff3d4; gap: 14px; }
.mega-cta:hover span { background: rgba(243, 217, 164, .18); transform: rotate(45deg); }

/* Sağ taraf: numaralı sütunlar */
.mega-body {
  padding: 42px 44px 40px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px 30px;
  align-content: start;
  background:
    radial-gradient(900px 400px at 80% 0%, #fdf3ec 0%, transparent 55%),
    #fffdfa;
}

.mega-col-head {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding-bottom: 13px;
  margin-bottom: 6px;
  border-bottom: 1px solid #eae0d8;
}
.mega-no {
  font-size: 12px;
  font-weight: 700;
  color: #b0885f;
  letter-spacing: .02em;
  padding-top: 3px;
  flex: 0 0 auto;
}
.mega-col h4 {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.28;
  letter-spacing: -.022em;
  color: #1c2b33;
  font-weight: 700;
  flex: 1;
}
.mega-count {
  flex: 0 0 auto;
  min-width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f2ece6;
  color: #8d7a67;
  font-size: 11.5px;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-top: 1px;
}

.mega-col ul { list-style: none; margin: 0; padding: 0; }
.mega-col li { margin: 0; }
.mega-col a {
  display: flex;
  gap: 9px;
  padding: 9px 0;
  font-size: 14px;
  line-height: 1.42;
  color: #4b5a63;
  text-decoration: none;
  transition: color .18s, transform .18s;
}
.mega-col a .dash { color: #c2ab93; transition: color .18s; flex: 0 0 auto; }
.mega-col a:hover { color: #8d1f33; transform: translateX(3px); }
.mega-col a:hover .dash { color: #8d1f33; }

/* Arka plan karartması */
header.site.mega-open::after {
  content: '';
  position: fixed;
  inset: 96px 0 0 0;
  background: rgba(10, 24, 34, .38);
  backdrop-filter: blur(2px);
  z-index: -1;
  animation: fadeDim .25s ease both;
}
@keyframes fadeDim { from { opacity: 0; } }

/* ================= DUYARLI ================= */
@media (max-width: 1300px) {
  .mega-inner { grid-template-columns: 340px 1fr; }
  .mega-aside { padding: 36px 30px 32px; }
  .mega-aside h3 { font-size: 34px; }
  .mega-body { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 34px 32px; gap: 28px 26px; }
}

@media (max-width: 1080px) {
  header.site .nav { height: 84px; }
  header.site .menu > a, header.site .mega-trigger { font-size: 14.5px; padding: 10px 12px; }
  .mega-inner { grid-template-columns: 300px 1fr; }
  .mega-body { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Mobil / tablet: menü açılınca panel statik akışa girer */
@media (max-width: 980px) {
  header.site .menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 16px 24px;
    max-height: calc(100vh - 84px);
    overflow-y: auto;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 50px -20px rgba(15, 43, 61, .3);
  }
  header.site .menu.open { display: flex; }
  header.site .menu > a,
  header.site .mega-trigger {
    width: 100%;
    justify-content: space-between;
    font-size: 16px;
    padding: 14px 12px;
    border-radius: 10px;
  }
  .has-mega { width: 100%; }
  .mega-panel {
    position: static;
    padding: 0;
    display: none;
  }
  .has-mega.open .mega-panel { display: block; }
  .mega-inner {
    grid-template-columns: 1fr;
    border-radius: 16px;
    min-height: 0;
    box-shadow: none;
    border: 1px solid var(--line);
    margin-bottom: 10px;
  }
  .mega-aside { padding: 26px 22px; }
  .mega-aside h3 { font-size: 28px; }
  .mega-aside p { max-width: none; font-size: 13.5px; }
  .mega-pulse { margin: 18px 0 14px; }
  .mega-body { grid-template-columns: 1fr; padding: 22px; gap: 22px; }
  header.site.mega-open::after { display: none; }
}

@media (max-width: 520px) {
  header.site .nav { height: 74px; }
  header.site .logo-mark { width: 44px; height: 44px; }
  header.site .logo-text b { font-size: 18px; }
  header.site .logo-text small { font-size: 8.5px; letter-spacing: .14em; }
  .mega-aside h3 { font-size: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  .mega-inner, header.site.mega-open::after { animation: none !important; }
}
