/* ============================================================
   navbar.css — AR Odontologia e Estética
   ============================================================ */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  background: rgba(250, 246, 243, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(196, 169, 154, 0.18);
  transition: box-shadow .3s ease;
}

nav.scrolled {
  box-shadow: 0 4px 32px rgba(139, 111, 98, 0.12);
}

/* Logo */
.nav-logo-wrap {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 48px;
  width: 48px;
  object-fit: contain;
  border-radius: 50%;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1.1;
}

.nav-logo-sub {
  font-family: var(--font-body);
  font-size: .65rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-light);
}

/* Links desktop */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 400;
  color: var(--text-mid);
  letter-spacing: .04em;
  transition: color .2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--primary-deep);
  transition: width .3s ease;
}

.nav-links a:hover {
  color: var(--primary-deep);
}

.nav-links a:hover::after {
  width: 100%;
}

/* CTA nav */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1.25rem;
  background: var(--primary-deep);
  color: var(--white) !important;
  border-radius: 50px;
  font-size: .82rem !important;
  font-weight: 500 !important;
  letter-spacing: .06em;
  transition: background .25s, transform .2s !important;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  background: var(--secondary) !important;
  color: var(--white) !important;
  transform: translateY(-1px);
}

/* Hamburguer */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--secondary);
  border-radius: 2px;
  transition: all .3s ease;
}

/* Menu mobile */
.nav-mobile {
  display: none;
  position: fixed;
  top: 70px; left: 0; right: 0;
  background: var(--cream);
  border-bottom: 1px solid rgba(196, 169, 154, 0.2);
  padding: 1.5rem 5% 2rem;
  flex-direction: column;
  gap: 1rem;
  z-index: 999;
  box-shadow: 0 12px 40px rgba(139, 111, 98, 0.12);
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-mid);
  padding: .5rem 0;
  border-bottom: 1px solid rgba(196, 169, 154, 0.15);
}

.nav-mobile .nav-cta {
  margin-top: .5rem;
  justify-content: center;
  padding: .75rem 1.5rem;
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}
