html { scroll-behavior: smooth; scroll-padding-top: 80px; }

/* Header ganha fundo ao rolar */
#header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(15, 26, 51, 0.06);
}

.nav-link { position: relative; transition: color .3s; }
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 1px; background: #b08a3e;
  transform: scaleX(0); transform-origin: left; transition: transform .4s ease;
}
.nav-link:hover::after { transform: scaleX(1); }

.mobile-menu {
  max-height: 0; overflow: hidden; opacity: 0;
  background: rgba(255, 255, 255, 0.96);
  transition: max-height .5s ease, opacity .4s ease;
}
.mobile-menu.open { max-height: 400px; opacity: 1; }

/* Revelar ao rolar */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .9s cubic-bezier(.22, 1, .36, 1), transform .9s cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--d, 0ms);
}
.reveal.visible { opacity: 1; transform: none; }

/* Botões */
.btn-primary, .btn-gold {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.75rem; border-radius: 999px;
  font-size: .9rem; font-weight: 500;
  transition: transform .35s ease, box-shadow .35s ease, background .35s ease;
}
.btn-primary { background: #0f1a33; color: #fff; box-shadow: 0 10px 30px -12px rgba(15, 26, 51, .5); }
.btn-primary:hover { background: #18264a; transform: translateY(-2px); }
.btn-gold { background: #d4b26a; color: #0b1429; box-shadow: 0 10px 30px -12px rgba(212, 178, 106, .6); }
.btn-gold:hover { background: #e6d3a3; transform: translateY(-2px); }

/* Placeholders de imagem */
.placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #efe9dd 0%, #f7f5f0 50%, #ebe4d4 100%);
  border: 1px solid rgba(176, 138, 62, .2);
  color: rgba(15, 26, 51, .45); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase;
}
.placeholder-dark {
  background: linear-gradient(135deg, #18264a 0%, #0f1a33 100%);
  border-color: rgba(212, 178, 106, .25); color: rgba(230, 211, 163, .6);
}

/* Cards */
.step-card {
  padding: 2rem; border-radius: 1.5rem;
  border: 1px solid rgba(212, 178, 106, .2); background: rgba(255, 255, 255, .03);
  transition: border-color .4s, transform .4s;
}
.step-card:hover { border-color: rgba(212, 178, 106, .5); transform: translateY(-4px); }
.step-num { font-family: 'Allura', cursive; font-size: 2.5rem; color: #d4b26a; line-height: 1; }

.treat-card {
  padding: 2rem; border-radius: 1.5rem; background: #fff;
  border: 1px solid #eee9de;
  transition: transform .4s ease, box-shadow .4s ease, border-color .4s;
}
.treat-card:hover {
  transform: translateY(-6px); border-color: rgba(176, 138, 62, .35);
  box-shadow: 0 20px 40px -24px rgba(15, 26, 51, .25);
}
.treat-icon {
  width: 3rem; height: 3rem; border-radius: 999px; padding: .7rem;
  background: #f7f5f0; color: #b08a3e;
}

.consult-card { padding: 2rem; border-radius: 1.5rem; background: #f7f5f0; }
.consult-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; border-radius: 999px;
  border: 1px solid rgba(176, 138, 62, .4); background: #fff;
  font-size: .8rem; letter-spacing: .1em; color: #b08a3e;
}

/* WhatsApp flutuante */
.wa-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40;
  width: 3.5rem; height: 3.5rem; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: #0f1a33; color: #d4b26a;
  box-shadow: 0 12px 30px -10px rgba(15, 26, 51, .6);
  opacity: 0; transform: translateY(20px) scale(.9); pointer-events: none;
  transition: opacity .5s ease, transform .5s ease, background .3s;
}
.wa-float.show { opacity: 1; transform: none; pointer-events: auto; }
.wa-float:hover { background: #18264a; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .wa-float { transition: none; }
  .reveal { opacity: 1; transform: none; }
}

.ortho-item { display: flex; gap: 1.25rem; align-items: flex-start; }
.ortho-num {
  flex-shrink: 0; width: 3rem; height: 3rem; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: #0f1a33; color: #d4b26a;
  font-family: 'Allura', cursive; font-size: 1.6rem; line-height: 1;
}

/* Mapa do rodapé */
.map-frame {
  overflow: hidden; border-radius: 1.5rem;
  border: 1px solid rgba(176, 138, 62, .25);
  box-shadow: 0 20px 40px -28px rgba(15, 26, 51, .35);
  height: 320px;
}
.map-frame iframe {
  width: 100%; height: 100%; border: 0;
  filter: grayscale(.35) contrast(1.05);
  transition: filter .5s ease;
}
.map-frame:hover iframe { filter: none; }
