/**
 * Elite BioDental — header, footer, bară mobilă, containere aliniate cu homepage-ul.
 * Sursă: index.html (fără redesign).
 */
:root {
  --navy: #0E1F70;
  --navy-dark: #091660;
  --navy-light: #1a2f8a;
  --gold: #C9A84C;
  --gold-light: #e8c97a;
  --white: #ffffff;
  --off-white: #F8F9FC;
  --gray: #6b7280;
  --gray-light: #f1f3f9;
  --text: #1a1a2e;
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'DM Sans', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 4px 24px rgba(14, 31, 112, 0.1);
  --shadow-lg: 0 12px 48px rgba(14, 31, 112, 0.18);
  --page-max: 1140px;
  --page-pad-x: clamp(16px, 4vw, 24px);
  --section-pad-y-sm: 60px;
}

/* HEADER */
.site-header .container {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--page-pad-x);
  box-sizing: border-box;
}
.site-header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.25s ease;
}
/* Mobile overlay: păstrează header deasupra panoului de meniu */
@media (max-width: 768px) {
  body.nav-open .site-header {
    z-index: 1002;
  }
}
.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(14, 31, 112, 0.08);
}
.top-bar {
  background: #f3eddc;
  text-align: center;
  font-size: 13px;
  padding: 6px 0;
  color: rgba(26, 26, 46, 0.85);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.nav-bar {
  padding: 18px 0;
}
.nav-inner {
  display: grid;
  grid-template-columns: 3fr 4fr 3fr;
  align-items: center;
  column-gap: clamp(12px, 2vw, 20px);
  min-width: 0;
}
.logo {
  flex-shrink: 0;
  line-height: 0;
  justify-self: start;
  min-width: 0;
}
.logo img {
  max-height: 56px;
  height: auto;
  width: auto;
  display: block;
  object-fit: contain;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  gap: 32px;
  flex-wrap: nowrap;
  min-width: 0;
}
.main-nav a {
  text-decoration: none;
  color: #1a1464;
  font-weight: 500;
  font-size: 0.9375rem;
  position: relative;
  white-space: nowrap;
}
.main-nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #c9a84c;
  transition: 0.25s;
}
.main-nav a:hover::after {
  width: 100%;
}

/* Servicii — dropdown (selectori stricți: evită conflicte cu .dropdown-menu din alte surse) */
header.site-header .main-nav .nav-item-dropdown {
  position: relative;
  align-self: center;
}
header.site-header .main-nav .nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  max-width: 100%;
}
header.site-header .main-nav .nav-item-dropdown .nav-link-dropdown {
  padding-right: 0;
}
header.site-header .main-nav .nav-item-dropdown .dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin: 0 0 0 8px;
  padding: 0;
  border: 1px solid rgba(26, 20, 100, 0.18);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  color: #1a1464;
  flex-shrink: 0;
  line-height: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}
@media (hover: hover) {
  header.site-header .main-nav .nav-item-dropdown .dropdown-toggle:hover {
    background: rgba(26, 20, 100, 0.06);
    border-color: rgba(26, 20, 100, 0.28);
  }
}
header.site-header .main-nav .nav-item-dropdown .dropdown-toggle svg {
  display: block;
  width: 12px !important;
  height: 12px !important;
  max-width: 14px !important;
  max-height: 14px !important;
  transition: transform 0.2s ease;
}
@media (min-width: 769px) {
  header.site-header .main-nav .nav-item-dropdown:hover .dropdown-toggle svg,
  header.site-header .main-nav .nav-item-dropdown.is-open .dropdown-toggle svg {
    transform: rotate(180deg);
  }
}

/* Panou: ascuns implicit pe desktop (nu afectează înălțimea header-ului — position absolute) */
header.site-header .main-nav .nav-item-dropdown > .dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 260px;
  box-sizing: border-box;
  display: block;
  margin: 0;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(26, 20, 100, 0.08);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 1000;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
header.site-header .main-nav .nav-item-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 14px;
  z-index: 999;
}
@media (min-width: 769px) {
  header.site-header .main-nav .nav-item-dropdown::after {
    pointer-events: auto;
  }
  /* Vizibil doar la hover (desktop) sau la click pe săgeată (.is-open) */
  header.site-header .main-nav .nav-item-dropdown:hover > .dropdown-menu,
  header.site-header .main-nav .nav-item-dropdown.is-open > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
}

header.site-header .main-nav .nav-item-dropdown .dropdown-menu .dropdown-link {
  display: block;
  padding: 12px 18px;
  color: #1a1464;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}
header.site-header .main-nav .nav-item-dropdown .dropdown-menu .dropdown-link:hover {
  background: rgba(26, 20, 100, 0.05);
}
header.site-header .main-nav .nav-item-dropdown .dropdown-menu .dropdown-link-main {
  font-weight: 600;
  border-bottom: 1px solid rgba(26, 20, 100, 0.08);
  margin-bottom: 4px;
  padding-bottom: 14px;
}
header.site-header .main-nav .nav-item-dropdown .dropdown-menu a::after {
  display: none !important;
}

.header-actions {
  flex-shrink: 0;
  justify-self: end;
  min-width: 0;
}
.cta-call {
  background: #c9a84c;
  color: #1a1464;
  padding: 9px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: 0.25s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.cta-call:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}
.menu-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.25s ease, background 0.2s ease;
}
.menu-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}
.menu-toggle:active {
  transform: scale(0.95);
}
.menu-toggle span {
  width: 24px;
  height: 2.5px;
  background: #1a1464;
  display: block;
  transition: 0.25s;
}
/* Alias hamburger (același buton ca .menu-toggle) */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
.hamburger-btn span {
  display: block;
  height: 2px;
  width: 100%;
  max-width: 26px;
  margin: 0 auto;
  background: #1a1464;
  transition: all 0.3s ease;
}
@media (max-width: 768px) {
  .site-header .container {
    padding: 0 var(--page-pad-x);
  }
  .nav-inner {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    align-content: center;
    gap: 10px;
  }
  .logo,
  .header-actions {
    justify-self: auto;
  }
  .logo {
    display: flex;
    align-items: center;
    margin: 0;
  }
  .logo img {
    max-height: 48px;
  }
  .header-actions {
    display: flex;
    align-items: center;
    margin: 0;
    flex: 1;
    justify-content: center;
    min-width: 0;
  }
  .cta-call {
    line-height: 1;
    margin: 0;
  }
  .cta-call:hover {
    transform: none;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
  }
  .menu-toggle,
  .hamburger-btn {
    display: flex;
    flex-shrink: 0;
    margin: 0;
    align-self: center;
    position: relative;
    z-index: 1003;
  }
  body.nav-open header.site-header .menu-toggle,
  body.nav-open header.site-header .hamburger-btn {
    position: fixed;
    top: max(14px, env(safe-area-inset-top, 0px));
    right: max(14px, env(safe-area-inset-right, 0px));
    z-index: 1004;
  }
  body.nav-open {
    overflow: hidden;
    touch-action: none;
  }
  .main-nav,
  header.site-header .nav-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    background: #fff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: max(96px, calc(env(safe-area-inset-top, 0px) + 72px)) var(--page-pad-x) max(40px, env(safe-area-inset-bottom, 0px));
    gap: 20px;
    border-top: none;
    box-sizing: border-box;
    z-index: 1001;
    box-shadow: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .main-nav a {
    white-space: normal;
  }
  .main-nav a::after {
    display: none;
  }
  header.site-header .main-nav .nav-dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
  }
  header.site-header .main-nav .nav-item-dropdown .nav-link-dropdown {
    flex: 1;
    min-width: 0;
    white-space: normal;
  }
  header.site-header .main-nav .nav-item-dropdown .dropdown-toggle {
    margin-left: 0;
  }
  header.site-header .main-nav .nav-item-dropdown.is-open .dropdown-toggle svg {
    transform: rotate(180deg);
  }
  header.site-header .main-nav .nav-item-dropdown::after {
    display: none;
  }
  /* Mobil: ascuns cu display:none până la .is-open (fără listă permanentă) */
  header.site-header .main-nav .nav-item-dropdown > .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 8px 0 0 12px;
    display: none;
    min-width: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  header.site-header .main-nav .nav-item-dropdown.is-open > .dropdown-menu {
    display: block;
  }
  header.site-header .main-nav .nav-item-dropdown .dropdown-menu .dropdown-link {
    padding: 10px 0;
    font-size: 0.9375rem;
  }
  header.site-header .main-nav .nav-item-dropdown .dropdown-menu .dropdown-link-main {
    margin-bottom: 6px;
    padding-bottom: 10px;
  }
  .main-nav.active,
  header.site-header .nav-menu.active {
    display: flex;
  }
}

/* FOOTER */
.site-footer .container {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}
.site-footer .contact-footer {
  position: relative;
  z-index: 0;
  background: #0f0b3d;
  color: #ffffff;
  padding: 68px var(--page-pad-x) 40px;
  box-sizing: border-box;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.contact-footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 500px));
  justify-content: center;
  align-items: start;
  gap: clamp(48px, 5vw, 72px);
  width: 100%;
  margin: 0;
}
.contact-footer .footer-left,
.contact-footer .footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  min-width: 0;
  max-width: 500px;
  width: 100%;
  padding: 0;
  margin: 0;
}
.contact-footer .footer-left > h3,
.contact-footer .footer-right > h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  color: #ffffff;
}
.contact-footer .footer-left > h3 {
  margin: 0 0 16px;
}
.contact-footer .footer-right > h3 {
  margin: 0 0 14px;
}
.contact-footer .footer-left p {
  margin: 0 0 11px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}
.contact-footer .footer-left p:last-of-type {
  margin-bottom: 0;
}
.contact-footer .footer-left > p:nth-of-type(1) {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.contact-footer .footer-left > p:nth-of-type(1) strong {
  font-weight: 700;
}
.contact-footer .footer-left > p:nth-of-type(2),
.contact-footer .footer-left > p:nth-of-type(3) {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.82);
}
.contact-footer .footer-left > p:nth-of-type(2) strong,
.contact-footer .footer-left > p:nth-of-type(3) strong {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}
.contact-footer .footer-left strong {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 700;
}
.contact-footer .footer-right .footer-program {
  margin: 0 0 0;
  font-size: 14px;
  line-height: 1.65;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.82);
}
.contact-footer .footer-right .footer-links {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-footer .footer-right .footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}
@media (hover: hover) {
  .contact-footer .footer-right .footer-links a:hover {
    color: #ffffff;
  }
}
@media (max-width: 768px) {
  .site-footer .contact-footer {
    padding: calc(var(--section-pad-y-sm) + 8px) var(--page-pad-x) 36px;
    box-sizing: border-box;
  }
  .contact-footer .footer-grid {
    grid-template-columns: 1fr;
    justify-content: stretch;
    gap: 36px;
  }
  .contact-footer .footer-left,
  .contact-footer .footer-right {
    max-width: none;
  }
}
.contact-footer .footer-logo-link {
  display: inline-block;
  line-height: 0;
}
.contact-footer .footer-logo {
  max-width: 128px;
  height: auto;
  margin-bottom: 22px;
  display: block;
}
.site-footer .subfooter {
  background: #0b0830;
  padding: 22px var(--page-pad-x);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  box-sizing: border-box;
}
.site-footer .subfooter .container {
  text-align: center;
}
.subfooter p,
.site-footer .subfooter p.copyright {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

/* Sticky mobile contact bar — call + WhatsApp (mobile only) */
.mobile-sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(26, 20, 100, 0.08);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
  z-index: 9999;
  box-sizing: border-box;
}
.mobile-sticky-btn {
  flex: 1;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  transition: all 0.25s ease;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
.mobile-call {
  background: #1a1464;
  color: #ffffff;
}
.mobile-whatsapp {
  background: #25d366;
  color: #ffffff;
}
.mobile-sticky-btn:active {
  transform: translateY(1px);
}
@media (max-width: 768px) {
  .mobile-sticky-bar {
    display: flex;
  }
  body {
    padding-bottom: 84px;
  }
}
@media (min-width: 769px) {
  .mobile-sticky-bar {
    display: none !important;
  }
}

/* Mobile nav — suprascrie stiluri inline vechi (ex. .menu-toggle { display: none } fără media query) */
@media (max-width: 768px) {
  header.site-header button.hamburger-btn,
  header.site-header button.menu-toggle.hamburger-btn,
  header.site-header #hamburgerBtn {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  header.site-header #mainNav.main-nav.active,
  header.site-header #mainNav.main-nav.open,
  header.site-header nav.main-nav.nav-menu.active,
  header.site-header nav.main-nav.nav-menu.open {
    display: flex !important;
  }
}
