/* ===== Uni.AB Odontologia — Design System ===== */
:root {
  --navy-900: #000A2D;
  --navy-700: #1A365C;
  --blue-500: #465A92;
  --blue-300: #8FA3C8;
  --ice-100: #F1F8FF;
  --ice-200: #E3EEFA;
  --text-600: #4A5568;
  --text-400: #7A869B;
  --white: #FFFFFF;
  --wa-500: #25D366;
  --wa-600: #1DA851;
  --alert-500: #E8503A;
  --alert-600: #D03A24;
  --radius: 16px;
  --shadow-sm: 0 2px 10px rgba(0, 10, 45, .06);
  --shadow-md: 0 10px 30px rgba(0, 10, 45, .12);
  --shadow-lg: 0 24px 60px rgba(0, 10, 45, .18);
  --font-body: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-display: 'Archivo', 'Manrope', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  font-family: var(--font-body);
  color: var(--text-600);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy-700); line-height: 1.15; }
em { font-style: normal; color: var(--alert-500); }

.container { width: min(1160px, 92%); margin-inline: auto; }
.section { padding: 88px 0; }
.section-ice { background: var(--ice-100); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 14px 0 12px; }
.section-head p { color: var(--text-400); }

/* ===== Chips e botões ===== */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ice-200); color: var(--navy-700);
  font-size: .72rem; font-weight: 800; letter-spacing: .08em;
  padding: 7px 14px; border-radius: 999px; text-transform: uppercase;
}
.chip-alert { background: #FDEAE6; color: var(--alert-600); }
.chip-soft { text-transform: none; letter-spacing: 0; font-size: .8rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 800; font-size: .95rem;
  padding: 13px 24px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-lg { padding: 16px 30px; font-size: 1.02rem; }
.btn-xl { padding: 18px 38px; font-size: 1.12rem; }
.btn-primary { background: var(--navy-700); color: var(--white); }
.btn-wa { background: var(--wa-500); color: #fff; }
.btn-wa:hover { background: var(--wa-600); }
.btn-alert { background: var(--alert-500); color: #fff; }
.btn-alert:hover { background: var(--alert-600); }
.btn-outline { border-color: var(--navy-700); color: var(--navy-700); background: transparent; }
.btn-outline:hover { background: var(--navy-700); color: #fff; }

.pulse-dot {
  width: 9px; height: 9px; border-radius: 50%; background: currentColor;
  position: relative; flex-shrink: 0;
}
.pulse-dot::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid currentColor; opacity: .6; animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse { from { transform: scale(.6); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }

/* ===== Topbar ===== */
.topbar {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(90deg, var(--navy-900), var(--navy-700));
  color: #fff; font-size: .84rem; padding: 9px 16px; text-align: center;
}
.topbar .pulse-dot { color: #FF8A75; background: #FF8A75; }
.topbar:hover strong { text-decoration: underline; }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.header.scrolled { border-color: var(--ice-200); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; }
.brand img { width: 132px; height: auto; }
.nav { display: flex; gap: 26px; }
.nav a { font-weight: 700; font-size: .92rem; color: var(--navy-700); position: relative; }
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--alert-500); transition: width .2s;
}
.nav a:hover::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-actions .btn-alert { font-size: .85rem; padding: 11px 20px; }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.menu-toggle span { display: block; width: 24px; height: 2.5px; background: var(--navy-700); margin: 5px 0; border-radius: 2px; transition: .2s; }

/* ===== Hero ===== */
.hero { background: radial-gradient(1100px 600px at 85% -10%, var(--ice-200), transparent), var(--ice-100); overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px;
  align-items: center; padding: 64px 0 0;
}
.hero-copy h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); margin: 20px 0 18px; }
.hero-copy h1 strong { color: var(--blue-500); }
.hero-sub { font-size: 1.06rem; max-width: 520px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 26px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 24px; list-style: none; padding-bottom: 48px; }
.hero-trust li { font-size: .92rem; color: var(--text-400); }
.hero-trust strong { color: var(--navy-700); }

.hero-media { position: relative; align-self: end; }
.hero-media img { position: relative; z-index: 2; margin-inline: auto; max-height: 620px; width: auto; }
.hero-blob {
  position: absolute; z-index: 1; inset: auto 0 0 0; height: 78%;
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
  border-radius: 300px 300px 0 0;
}
.float-chip {
  position: absolute; z-index: 3; background: #fff; color: var(--navy-700);
  font-size: .8rem; font-weight: 800; padding: 10px 16px; border-radius: 999px;
  box-shadow: var(--shadow-md); animation: floaty 4s ease-in-out infinite;
}
.fc-1 { top: 26%; left: -2%; }
.fc-2 { bottom: 14%; right: 0; animation-delay: 2s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ===== Stats ===== */
.stats { background: var(--navy-900); color: #fff; padding: 44px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-n { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 2.6rem); display: block; }
.stat-n::after { content: '+'; color: var(--alert-500); }
.stat-l { font-size: .86rem; color: var(--blue-300); }

/* ===== Cards de serviços ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--ice-200); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card h3 { font-size: 1.14rem; margin: 16px 0 10px; }
.card p { font-size: .93rem; flex: 1; }
.card-icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--ice-100); color: var(--blue-500);
}
.icon-alert { background: #FDEAE6; color: var(--alert-500); }
.card-featured { border: 2px solid var(--alert-500); position: relative; }
.card-featured::before {
  content: '24H TODOS OS DIAS'; position: absolute; top: -12px; right: 20px;
  background: var(--alert-500); color: #fff; font-size: .66rem; font-weight: 800;
  letter-spacing: .08em; padding: 4px 12px; border-radius: 999px;
}
.card-link { font-weight: 800; font-size: .9rem; color: var(--blue-500); margin-top: 16px; }
.card-link:hover { color: var(--navy-700); }
.card-featured .card-link { color: var(--alert-500); }

/* ===== Carrossel de transformações ===== */
.carousel { position: relative; }
.car-track {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding: 6px 4px 18px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.car-track::-webkit-scrollbar { display: none; }
.car-slide {
  flex: 0 0 min(390px, 84%); scroll-snap-align: center;
  background: #fff; border: 1px solid var(--ice-200); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.car-slide:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.car-media { position: relative; }
.car-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.car-tag {
  position: absolute; left: 14px; bottom: 14px;
  background: rgba(0, 10, 45, .82); color: #fff; backdrop-filter: blur(4px);
  font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 13px; border-radius: 999px;
}
.car-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.car-body h3 { font-size: 1.1rem; margin-bottom: 8px; }
.car-body p { font-size: .9rem; flex: 1; }
.car-btn {
  position: absolute; top: 42%; z-index: 5; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--ice-200);
  background: #fff; color: var(--navy-700); cursor: pointer;
  display: grid; place-items: center; box-shadow: var(--shadow-md);
  transition: background .15s, color .15s, transform .15s;
}
.car-btn:hover { background: var(--navy-700); color: #fff; transform: translateY(-50%) scale(1.06); }
.car-prev { left: -12px; }
.car-next { right: -12px; }
.car-dots { display: flex; justify-content: center; gap: 8px; margin-top: 6px; }
.car-dots button {
  width: 9px; height: 9px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--ice-200); transition: width .2s, background .2s; padding: 0;
}
.car-dots button.on { width: 26px; background: var(--alert-500); }
.ba-note { text-align: center; margin-top: 26px; font-size: .93rem; color: var(--text-400); }
.ba-note a { color: var(--wa-600); font-weight: 800; text-decoration: underline; }

/* Par antes/depois (pronto para fotos reais de casos) */
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; }
.car-media:has(.ba-pair) .car-tag { top: 14px; bottom: auto; }
.ba-pair figure { position: relative; margin: 0; }
.ba-pair img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.ba-pair figcaption {
  position: absolute; left: 10px; bottom: 10px;
  font-size: .68rem; font-weight: 800; letter-spacing: .08em;
  background: rgba(0, 10, 45, .82); color: #fff; padding: 4px 10px; border-radius: 999px;
}
.ba-pair figure:last-child figcaption { background: var(--wa-600); }

/* ===== Urgência ===== */
.urgency { background: linear-gradient(120deg, var(--navy-900) 30%, var(--navy-700)); color: #fff; padding: 72px 0; }
.urgency-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.urgency h2 { color: #fff; font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 14px; }
.urgency p { color: var(--blue-300); max-width: 520px; }
.urgency p strong { color: #fff; }
.urgency-list { list-style: none; margin-top: 18px; display: grid; gap: 8px; font-size: .95rem; }
.urgency-cta { text-align: center; display: grid; gap: 14px; justify-items: center; }
.urgency-note { font-size: .82rem; color: var(--blue-300); }

/* ===== Sobre ===== */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }
.about-media { position: relative; }
.about-media::before {
  content: ''; position: absolute; inset: 12% -14px -14px 12%;
  background: var(--ice-200); border-radius: var(--radius); z-index: 0;
}
.about-media img { position: relative; z-index: 1; border-radius: var(--radius); }
.about-grid h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin: 14px 0 16px; }
.about-grid p { margin-bottom: 14px; }
.checks { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 22px 0; }
.checks li { font-weight: 700; color: var(--navy-700); font-size: .95rem; }
.checks li::before { content: '✓  '; color: var(--wa-600); font-weight: 800; }
.values { display: flex; gap: 10px; margin-bottom: 26px; }

/* ===== Equipe ===== */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 980px; margin-inline: auto; }
.team-card {
  display: grid; grid-template-columns: 190px 1fr; gap: 22px; align-items: center;
  background: var(--ice-100); border-radius: var(--radius); padding: 26px;
}
.team-photo { background: linear-gradient(160deg, var(--blue-500), var(--navy-900)); border-radius: 14px; overflow: hidden; }
.team-photo img { width: 100%; height: 230px; object-fit: cover; object-position: top; }
.team-info h3 { font-size: 1.08rem; }
.team-cro { display: block; font-size: .8rem; font-weight: 800; color: var(--alert-500); margin: 6px 0 12px; }
.team-info ul { list-style: none; display: grid; gap: 6px; font-size: .86rem; }
.team-info li::before { content: '•  '; color: var(--blue-500); }

/* ===== Galeria ===== */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.gallery img:hover { transform: scale(1.03); box-shadow: var(--shadow-md); }

/* ===== Localização ===== */
.loc-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 52px; align-items: center; }
.loc-grid h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 14px 0 18px; }
address { font-style: normal; margin-bottom: 22px; line-height: 1.7; }
address strong { color: var(--navy-700); }
.hours { width: 100%; border-collapse: collapse; margin-bottom: 26px; font-size: .93rem; }
.hours td { padding: 10px 0; border-bottom: 1px solid var(--ice-200); }
.hours td:last-child { text-align: right; color: var(--navy-700); font-weight: 700; }
.hours-urgency td { color: var(--alert-600) !important; }
.loc-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.map iframe { width: 100%; height: 420px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow-md); }

/* ===== CTA final ===== */
.final-cta { background: linear-gradient(160deg, var(--navy-700), var(--navy-900)); text-align: center; padding: 84px 0; }
.final-cta img { margin: 0 auto 22px; }
.final-cta h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 10px; }
.final-cta p { color: var(--blue-300); margin-bottom: 30px; }

/* ===== Footer ===== */
.footer { background: var(--navy-900); color: var(--blue-300); font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 36px; padding: 56px 0 36px; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid img { margin-bottom: 14px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0; font-size: .8rem;
}

/* ===== Flutuantes ===== */
.wa-fab {
  position: fixed; right: 26px; bottom: 26px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wa-500); color: #fff; box-shadow: var(--shadow-lg);
  transition: transform .15s;
}
.wa-fab:hover { transform: scale(1.08); }
.mobile-bar { display: none; }

/* ===== Animações de entrada ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-chip, .pulse-dot::after { animation: none; }
}

/* ===== Responsivo ===== */
@media (max-width: 1024px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .team { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav {
    position: fixed; inset: 0 0 auto 0; top: 0; flex-direction: column; gap: 0;
    background: #fff; padding: 96px 8% 28px; box-shadow: var(--shadow-lg);
    transform: translateY(-110%); transition: transform .25s ease; z-index: 45;
  }
  .nav.open { transform: none; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--ice-200); font-size: 1.05rem; }
  .menu-toggle { display: block; z-index: 46; }
  .header-actions .btn-alert { display: none; }

  .hero-grid { grid-template-columns: 1fr; padding-top: 44px; }
  .hero-media { order: -1; max-width: 320px; margin-inline: auto; }
  .hero-media img { max-height: 380px; }
  .fc-1 { left: -8%; } .fc-2 { right: -4%; }
  .hero-trust { padding-bottom: 40px; }

  .stats-grid { grid-template-columns: 1fr 1fr; gap: 28px 12px; }
  .cards { grid-template-columns: 1fr; }
  .urgency-inner, .about-grid, .loc-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 380px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .team-card { grid-template-columns: 1fr; text-align: center; }
  .team-photo img { height: 300px; }
  .team-info ul { text-align: left; }
  .map iframe { height: 320px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; padding: 44px 0 26px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .section { padding: 64px 0; }

  body { padding-bottom: 74px; }
  .wa-fab { display: none; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: #fff; padding: 12px 4%; box-shadow: 0 -6px 24px rgba(0, 10, 45, .14);
  }
  .mobile-bar .btn { padding: 13px 10px; font-size: .92rem; }
}
@media (max-width: 380px) {
  .gallery { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; }
}
