/* ZW Odontologia — site institucional */
:root {
  --teal: #46a093;
  --teal-600: #36857a;
  --teal-700: #2a6a61;
  --teal-50: #eef7f5;
  --teal-100: #d7ece8;
  --ink: #1d2a2f;
  --ink-2: #3b4a50;
  --muted: #6b7a80;
  --line: #e3e9e8;
  --bg: #ffffff;
  --bg-soft: #f6f8f8;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 40, 45, .06), 0 8px 24px rgba(20, 40, 45, .08);
  --shadow-lg: 0 24px 60px rgba(20, 40, 45, .16);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink-2);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0; }
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  border: 1.5px solid transparent; cursor: pointer; transition: transform .15s, background .2s, box-shadow .2s, color .2s;
  font-family: inherit; white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 8px 20px rgba(70, 160, 147, .35); }
.btn-primary:hover { background: var(--teal-600); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-700); }
.btn-light { background: #fff; color: var(--teal-700); }
.btn-outline-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); }

/* Top bar */
.topbar { background: var(--ink); color: #c9d4d6; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 9px; }
.topbar a { display: inline-flex; align-items: center; gap: 7px; transition: color .2s; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 15px; height: 15px; color: var(--teal); }
.topbar-left, .topbar-right { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50; background: #fff;
  backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(20,40,45,.05); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 24px; }
.brand img { height: 60px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { font-weight: 600; font-size: .95rem; color: var(--ink-2); position: relative; padding-block: 6px; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--teal); transform: scaleX(0); transition: transform .2s; }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { padding: 11px 18px; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.menu-toggle svg { width: 28px; height: 28px; }

/* Hero */
.hero { position: relative; padding: 72px 0 96px; background: linear-gradient(180deg, var(--teal-50) 0%, #fff 100%); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; right: -200px; top: -200px; width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(circle, rgba(70,160,147,.16), transparent 65%);
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--teal-700);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--teal); }
.hero h1 { font-size: clamp(2.6rem, 5vw, 4.1rem); margin: 18px 0 20px; }
.hero h1 em { font-style: italic; color: var(--teal-600); }
.hero .lead { font-size: 1.12rem; color: var(--muted); max-width: 520px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-trust { display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.hero-trust div { display: flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.hero-trust svg { width: 22px; height: 22px; color: var(--teal); flex: none; }

.hero-media { position: relative; }
.hero-media .photo { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3.4; }
.hero-media .photo img { width: 100%; height: 100%; object-fit: cover; }
.hours-card {
  position: absolute; left: -36px; bottom: -36px; background: #fff; border-radius: var(--radius); padding: 20px 22px;
  box-shadow: var(--shadow-lg); min-width: 250px;
}
.hours-card .title { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--ink); font-size: .95rem; margin-bottom: 10px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #9aa5a8; box-shadow: 0 0 0 4px rgba(154,165,168,.18); }
.status-dot.open { background: #2fb36d; box-shadow: 0 0 0 4px rgba(47,179,109,.18); }
.hours-card .row { display: flex; justify-content: space-between; gap: 24px; font-size: .9rem; padding: 3px 0; }
.hours-card .row span:first-child { color: var(--muted); }
.hours-card .row strong { color: var(--ink); font-weight: 700; }
.hours-card .note { margin-top: 10px; font-size: .78rem; color: var(--teal-700); font-weight: 700; letter-spacing: .02em; }
.badge-card {
  position: absolute; right: -20px; top: 28px; background: #fff; border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .88rem; color: var(--ink);
}
.badge-card .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--teal-50); color: var(--teal-600); display: grid; place-items: center; }
.badge-card .ic svg { width: 20px; height: 20px; }
.badge-card small { display: block; color: var(--muted); font-weight: 600; font-size: .75rem; }

/* Sections */
.section { padding: 100px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .eyebrow::after { content: ""; width: 26px; height: 2px; background: var(--teal); }
.section-head h2 { font-size: clamp(2.1rem, 3.6vw, 3rem); margin: 14px 0 14px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* Services */
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.service {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px;
  transition: transform .2s, box-shadow .2s, border-color .2s; display: flex; flex-direction: column; gap: 10px;
}
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--teal-100); }
.service .ic { width: 50px; height: 50px; border-radius: 14px; background: var(--teal-50); color: var(--teal-600); display: grid; place-items: center; margin-bottom: 6px; transition: background .2s, color .2s; }
.service:hover .ic { background: var(--teal); color: #fff; }
.service .ic svg { width: 26px; height: 26px; }
.service p { font-size: .93rem; color: var(--muted); }
.service.featured { background: var(--ink); border-color: var(--ink); }
.service.featured h3 { color: #fff; }
.service.featured p { color: #b7c3c6; }
.service.featured .ic { background: rgba(70,160,147,.2); color: #7fd0c3; }
.services-cta { margin-top: 36px; display: flex; justify-content: center; }

/* Steps / Paciente novo */
.newpatient { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: center; }
.steps { display: grid; gap: 16px; counter-reset: step; }
.step {
  display: flex; gap: 18px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; transition: border-color .2s, box-shadow .2s;
}
.step:hover { border-color: var(--teal); box-shadow: var(--shadow); }
.step .num {
  counter-increment: step; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--teal-50); color: var(--teal-700);
  display: grid; place-items: center; font-weight: 800;
}
.step .num::before { content: counter(step); }
.step h3 { margin-bottom: 4px; }
.step p { font-size: .93rem; color: var(--muted); }
.step .link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 700; color: var(--teal-700); font-size: .92rem; }
.step .link svg { width: 16px; height: 16px; transition: transform .2s; }
.step:hover .link svg { transform: translateX(3px); }

/* Clinic */
.clinic { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.gallery { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; height: 480px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; }
.gallery figure:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery figure:hover img { transform: scale(1.04); }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; margin-top: 34px; }
.feature { display: flex; gap: 14px; }
.feature .ic { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--teal-50); color: var(--teal-600); display: grid; place-items: center; }
.feature .ic svg { width: 22px; height: 22px; }
.feature h3 { font-size: .98rem; margin-bottom: 2px; }
.feature p { font-size: .88rem; color: var(--muted); }

/* Location */
.location { display: grid; grid-template-columns: 1fr 1.4fr; gap: 0; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.location-info { padding: 44px 40px; display: flex; flex-direction: column; gap: 26px; }
.info-item { display: flex; gap: 14px; }
.info-item .ic { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--teal-50); color: var(--teal-600); display: grid; place-items: center; }
.info-item .ic svg { width: 21px; height: 21px; }
.info-item small { display: block; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; font-weight: 700; color: var(--muted); margin-bottom: 2px; }
.info-item a, .info-item span { color: var(--ink); font-weight: 600; }
.info-item a:hover { color: var(--teal-700); }
.hours-table { width: 100%; border-collapse: collapse; font-size: .92rem; margin-top: 4px; }
.hours-table td { padding: 4px 0; }
.hours-table td:last-child { text-align: right; font-weight: 700; color: var(--ink); }
.hours-table tr.today td { color: var(--teal-700); }
.hours-table tr.closed td:last-child { color: var(--muted); font-weight: 600; }
.map { min-height: 440px; background: var(--teal-50); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; min-height: 440px; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--teal-700), var(--teal)); color: #fff; border-radius: 28px; padding: 60px 56px; display: flex; justify-content: space-between; align-items: center; gap: 32px; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 360px; height: 360px; border-radius: 50%; border: 50px solid rgba(255,255,255,.07); }
.cta-band h2 { color: #fff; font-size: clamp(2rem, 3.4vw, 2.7rem); }
.cta-band p { color: rgba(255,255,255,.85); margin-top: 8px; font-size: 1.05rem; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }

/* Footer */
.footer { background: var(--ink); color: #aebbbe; padding: 70px 0 28px; margin-top: 100px; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; }
.footer .logo-box { background: #fff; display: inline-block; padding: 10px 14px; border-radius: 12px; }
.footer .logo-box img { height: 44px; }
.footer h4 { color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a:hover { color: #fff; }
.footer .about { margin-top: 18px; max-width: 300px; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); display: grid; place-items: center; transition: background .2s, border-color .2s; }
.socials a:hover { background: var(--teal); border-color: var(--teal); }
.socials svg { width: 18px; height: 18px; color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 52px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; }

/* WhatsApp FAB */
.wa-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 28px rgba(37,211,102,.45);
  transition: transform .2s;
}
.wa-fab:hover { transform: scale(1.07); }
.wa-fab svg { width: 32px; height: 32px; }
.wa-fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }

/* Page hero (contato) */
.page-hero { background: linear-gradient(180deg, var(--teal-50), #fff); padding: 64px 0 40px; }
.page-hero h1 { font-size: clamp(2.5rem, 4.6vw, 3.6rem); margin: 14px 0 12px; }
.page-hero p { color: var(--muted); font-size: 1.1rem; max-width: 580px; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--teal-700); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 36px; box-shadow: var(--shadow); }
.card h2 { font-size: 2rem; margin-bottom: 8px; }
.card > p { color: var(--muted); margin-bottom: 26px; }
.notice { display: flex; gap: 10px; align-items: center; background: var(--teal-50); color: var(--teal-700); border-radius: 12px; padding: 12px 16px; font-weight: 700; font-size: .9rem; margin-bottom: 26px; }
.notice svg { width: 20px; height: 20px; flex: none; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 700; color: var(--ink); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .95rem; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg-soft);
  color: var(--ink); transition: border-color .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: #fff; }
.field textarea { resize: vertical; min-height: 110px; }
.form .actions { grid-column: 1 / -1; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.form .hint { font-size: .82rem; color: var(--muted); }
.side { display: grid; gap: 20px; }
.side .card { padding: 28px; }
.side .card h3 { font-size: 1.1rem; margin-bottom: 16px; }
.quick { display: grid; gap: 10px; }
.quick a {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line);
  transition: border-color .2s, background .2s;
}
.quick a:hover { border-color: var(--teal); background: var(--teal-50); }
.quick .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--teal-50); color: var(--teal-600); flex: none; }
.quick .ic svg { width: 20px; height: 20px; }
.quick small { display: block; color: var(--muted); font-size: .78rem; font-weight: 600; }
.quick strong { color: var(--ink); font-size: .95rem; }
.quick .wa .ic { background: #e6f9ee; color: #1ea952; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .wa-fab::before { animation: none; }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero .container, .newpatient, .clinic, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-media { max-width: 620px; margin-left: 36px; }
  .location { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 48px 36px; }
}
@media (max-width: 860px) {
  .topbar .hide-sm { display: none; }
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 20px 24px; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(20,40,45,.1);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 16px; }
  .section { padding: 72px 0; }
  .hero { padding: 48px 0 80px; }
}
@media (max-width: 600px) {
  .topbar-right { display: none; }
  .brand img { height: 44px; }
  .hero-media { margin-left: 0; }
  .hours-card { position: relative; left: 0; bottom: 0; margin: -40px 16px 0; }
  .badge-card { right: 12px; top: 12px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .gallery { height: 360px; }
  .features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .card { padding: 26px 22px; }
  .location-info { padding: 32px 24px; }
  .cta-band { padding: 40px 26px; }
}

/* CTA card inside services grid */
.service.cta-card {
  grid-column: span 2; background: linear-gradient(120deg, var(--teal-700), var(--teal)); border: 0; color: #fff;
  flex-direction: row; align-items: center; justify-content: space-between; gap: 24px;
}
.service.cta-card h3 { color: #fff; font-size: 1.2rem; margin-bottom: 6px; }
.service.cta-card p { color: rgba(255,255,255,.85); }
.service.cta-card:hover { box-shadow: 0 16px 36px rgba(42,106,97,.35); }
@media (max-width: 860px) { .service.cta-card { flex-direction: column; align-items: flex-start; } }
@media (max-width: 600px) { .service.cta-card { grid-column: auto; } }
.topbar-item { display: inline-flex; align-items: center; gap: 7px; }
@media (max-width: 860px) { .topbar .hide-sm { display: none; } }
@media (max-width: 600px) { .topbar { font-size: .8rem; } .topbar .container { justify-content: center; } }
