/* ══════════════════════════════════════════════════════════════
   DENHAAG DENTALART — Shared Navigation Styles
   ══════════════════════════════════════════════════════════════ */

/* ── LABEL BANNER ── */
.label-banner {
  background: #1A5C50;
  color: white;
  text-align: center;
  padding: 10px;
  font-size: 13px;
  letter-spacing: 1px;
}
.label-banner strong { font-weight: 600; }

/* ── NAV ── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px 18px 28px;
  background: white;
  border-bottom: 1px solid #D0E8E4;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 20px;
  margin-left: 0;
  text-decoration: none;
}
.logo img {
  height: 54px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(26,92,80,0.25));
}
.logo-locatie {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1.5px solid #B8DDD8;
  padding-left: 2px;
}
.logo-locatie span {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  color: #5A6A6A;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1;
  margin-bottom: 3px;
}
.logo-locatie strong {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 700;
  color: #1A5C50;
  letter-spacing: 1px;
  line-height: 1;
}
.nav-links {
  display: flex;
  gap: 26px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: #5A6A6A;
  font-size: 14px;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: #1A5C50; }
.nav-links a.active { color: #1A5C50; font-weight: 600; }
.nav-cta {
  background: #1A5C50;
  color: white;
  padding: 10px 22px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background .2s;
  margin-left: 40px;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-cta:hover { background: #134840; }

/* ── DROPDOWN MENU ── */
.nav-item {
  position: relative;
}
.nav-item.has-dropdown > a::after {
  content: ' \25BE';
  font-size: 10px;
  margin-left: 4px;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 260px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  padding: 12px 0;
  margin-top: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all .3s;
  z-index: 1000;
  border: 1px solid #D0E8E4;
}
.nav-item:hover:not(.submenu-force-closed) .dropdown-menu,
.nav-item.has-dropdown.submenu-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: #5A6A6A;
  text-decoration: none;
  font-size: 14px;
  transition: all .2s;
}
.dropdown-menu a:hover {
  background: #F0F8F6;
  color: #1A5C50;
  padding-left: 24px;
}
.dropdown-menu a.active-sub {
  color: #1A5C50;
  font-weight: 600;
  background: #F0F8F6;
}

/* ── HAMBURGER MENU BUTTON ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: #1A1A1A;
  border-radius: 2px;
  transition: all .3s;
}
.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  nav { padding: 16px 24px; }
  .nav-links { gap: 20px; }
  .nav-links a { font-size: 13px; }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
  .label-banner { font-size: 11px; padding: 8px; }

  nav {
    flex-wrap: wrap;
    padding: 16px 20px;
    gap: 0;
  }
  .logo { margin-right: auto; margin-bottom: 0; }
  .logo img { height: 46px; }
  .logo-locatie strong { font-size: 13px; }

  .nav-hamburger { display: flex; }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 4px;
    padding-top: 16px;
    order: 3;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 14px; padding: 8px 0; display: flex; align-items: center; line-height: 1.4; }
  .nav-item { margin: 0; padding: 0; }

  .nav-cta {
    display: none;
    width: 100%;
    text-align: center;
    margin-left: 0;
    margin-top: 12px;
    order: 4;
  }
  .nav-cta.open { display: block; }

  /* Dropdown on mobile: hidden by default, toggle on click */
  .nav-item.has-dropdown > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  .nav-item.has-dropdown > a::after {
    content: '▼' !important;
    display: inline-block !important;
    font-size: 10px;
    margin-left: 8px;
    transition: transform .3s ease;
    flex-shrink: 0;
  }
  .nav-item.has-dropdown.submenu-open > a::after {
    transform: rotate(180deg);
  }

  /* Disable desktop hover dropdown on mobile */
  .nav-item:hover .dropdown-menu,
  .nav-item .dropdown-menu {
    display: none !important;
    position: static !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 0 0 16px !important;
    margin-top: 0 !important;
    background: rgba(26,92,80,0.05);
    border-radius: 8px;
    min-width: 0;
  }
  .nav-item.has-dropdown.submenu-open .dropdown-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    padding: 4px 0 4px 16px !important;
    margin-top: 4px !important;
  }
  .dropdown-menu a {
    padding: 8px 12px;
    font-size: 13px;
  }
  .dropdown-menu a:hover {
    padding-left: 16px;
  }
}
