/* Variante taste-skill: consultório Dr. Marcelo Simões.
   Nativo, sem framework. Tema único, claro e clínico: fundo off-white,
   acento teal (odontologia), CTA verde WhatsApp. */

@font-face {
  font-family: 'Outfit';
  src: url('/assets/fonts/outfit-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Outfit';
  src: url('/assets/fonts/outfit-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Outfit';
  src: url('/assets/fonts/outfit-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'Outfit';
  src: url('/assets/fonts/outfit-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f6fafc;
  --surface: #ffffff;
  --ink: #10323e;
  --body-c: #3e5a68;
  --muted: #5f7886;
  --line: #dfeaf0;
  --brand: #0e7490;
  --tint: #e9f5f8;
  --panel: #0f6684;
  --cta: #12833f;
  --cta-h: #0e6f35;
  --shadow: 0 14px 36px rgb(13 60 76 / 0.10);
  --r: 16px;
  --pad: clamp(4rem, 9vw, 6.5rem);
}

* {
  box-sizing: border-box;
}

/* Guarda contra scroll horizontal no mobile; as causas raiz (iframe com largura
   intrínseca em grid, itens sem min-width) são tratadas individualmente abaixo. */
html,
body {
  overflow-x: clip;
}

/* iframes (mapa) nunca podem exceder o container nem impor largura intrínseca. */
iframe {
  display: block;
  border: 0;
  width: 100%;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--body-c);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.3rem, 5vw, 3.4rem);
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
}

h3 {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--brand);
}

.wrap {
  width: min(100% - 2.75rem, 1120px);
  margin-inline: auto;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.875rem;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--cta) 55%, transparent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Aviso de prévia ---------- */
.preview-note {
  margin: 0;
  padding: 0.5rem 1rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--tint);
  border-bottom: 1px solid var(--line);
}

/* ---------- Botões (pílula; cartões usam raio 16px, regra documentada) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-wa {
  background: var(--cta);
  color: #fff;
  box-shadow: 0 8px 24px rgb(18 131 63 / 0.28);
}

.btn-wa:hover {
  background: var(--cta-h);
  transform: translateY(-1px);
}

.link-quiet {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--brand);
}

.link-quiet:hover {
  text-decoration: underline;
}

/* ---------- Header ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.top-in {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}

.brand .icon {
  width: 2.1rem;
  height: 2.1rem;
  color: var(--brand);
}

.brand b {
  display: block;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.brand small {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.top-nav {
  display: flex;
  gap: 1.4rem;
}

.top-nav a {
  text-decoration: none;
  color: var(--body-c);
  font-weight: 500;
  font-size: 0.95rem;
  padding-block: 0.3rem;
  border-bottom: 2px solid transparent;
}

.top-nav a:hover,
.top-nav a[aria-current='page'] {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--ink);
  padding: 0.4rem;
  cursor: pointer;
}

.nav-toggle .icon {
  width: 1.6rem;
  height: 1.6rem;
}

.nav-toggle .i-x,
.nav-open .nav-toggle .i-list {
  display: none;
}

.nav-open .nav-toggle .i-x {
  display: block;
}

@media (max-width: 860px) {
  .top-cta span {
    display: none;
  }

  .top-cta {
    padding: 0.7rem;
  }

  .nav-toggle {
    display: block;
  }

  .top-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.4rem 1rem;
  }

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

  .top-nav a {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding-block: var(--pad);
  overflow: clip;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-grid > * {
  min-width: 0;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1.1rem;
}

.hero-sub {
  font-size: 1.15rem;
  max-width: 46ch;
  margin-bottom: 1.8rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.hero-media {
  position: relative;
}

.hero-media::before {
  content: '';
  position: absolute;
  inset: 1.5rem -1.5rem -1.5rem 1.5rem;
  background: var(--tint);
  border-radius: var(--r);
}

.hero-media img {
  position: relative;
  border-radius: var(--r);
  box-shadow: var(--shadow);
  aspect-ratio: 5 / 4;
  object-fit: cover;
  width: 100%;
}

.rating-chip {
  position: absolute;
  z-index: 2;
  left: -0.9rem;
  bottom: -1.1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 0.8rem 1.1rem;
}

.rating-chip .icon {
  width: 1.6rem;
  height: 1.6rem;
  color: var(--brand);
}

.rating-chip b {
  display: block;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.2;
}

.rating-chip small {
  color: var(--muted);
  font-size: 0.8rem;
}

@media (max-width: 820px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    margin-inline: 0 1rem;
  }
}

/* ---------- Seções ---------- */
.sec {
  padding-block: var(--pad);
}

.sec-tint {
  background: var(--tint);
}

.sec-head {
  max-width: 60ch;
  margin-bottom: 2.6rem;
}

.sec-head p {
  color: var(--muted);
  margin: 0;
}

/* ---------- Bento de serviços ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.cell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.7rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cell:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.cell p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.cell-wide {
  grid-column: span 2;
  background: var(--tint);
  border-color: transparent;
}

.cell-full {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--brand), var(--panel));
  border-color: transparent;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.cell-full h3,
.cell-full p {
  color: #f2f7f4;
  margin: 0;
}

.cell-full p {
  opacity: 0.85;
}

.cell-full .chip {
  background: rgb(255 255 255 / 0.12);
  color: #eaf4ee;
}

.chip {
  display: inline-grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 12px;
  background: var(--surface);
  color: var(--brand);
  margin-bottom: 1rem;
  border: 1px solid var(--line);
}

.cell-full .chip {
  margin: 0;
  border: 0;
}

.chip .icon {
  width: 1.45rem;
  height: 1.45rem;
}

.bento-more {
  margin-top: 1.6rem;
}

@media (max-width: 820px) {
  .bento {
    grid-template-columns: 1fr;
  }

  .cell-wide,
  .cell-full {
    grid-column: auto;
  }
}

/* ---------- Split (texto + foto) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.split img {
  border-radius: var(--r);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.checks {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  display: grid;
  gap: 1rem;
}

.checks li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}

.checks .icon {
  color: var(--cta);
  margin-top: 0.2rem;
}

@media (max-width: 820px) {
  .split {
    grid-template-columns: 1fr;
  }

  .split img {
    order: -1;
  }
}

/* ---------- Processo ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

.step {
  border-top: 2px solid var(--line);
  padding-top: 1.3rem;
}

.step em {
  font-style: normal;
  font-weight: 700;
  font-size: 2rem;
  color: var(--brand);
  opacity: 0.35;
  display: block;
  line-height: 1;
  margin-bottom: 0.6rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

@media (max-width: 820px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ---------- Depoimentos ---------- */
.quotes {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.1rem;
}

.q {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.q-featured {
  grid-row: span 2;
  justify-content: center;
}

.q-featured blockquote {
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.q blockquote {
  margin: 0;
}

.q figcaption {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.avatar {
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--tint);
  color: var(--brand);
  font-weight: 700;
  font-size: 0.85rem;
}

.q figcaption b {
  color: var(--ink);
  font-weight: 600;
  display: block;
  line-height: 1.2;
}

@media (max-width: 820px) {
  .quotes {
    grid-template-columns: 1fr;
  }

  .q-featured {
    grid-row: auto;
  }
}

/* ---------- Localização ---------- */
.loc {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.1rem;
  align-items: stretch;
}

/* min-width: 0 permite o item de grid encolher abaixo da largura intrínseca
   do iframe do mapa (300px) em telas estreitas; sem isso a track estoura. */
.loc > *,
.split > *,
.map {
  min-width: 0;
}

.loc-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.8rem;
}

.loc-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}

.loc-card li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}

.loc-card .icon {
  color: var(--brand);
  margin-top: 0.2rem;
}

.loc-card b {
  color: var(--ink);
  font-weight: 600;
  display: block;
}

.map {
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 320px;
}

.map iframe {
  height: 100%;
}

.map-wide {
  aspect-ratio: 16 / 9;
  min-height: 280px;
}

@media (max-width: 820px) {
  .loc {
    grid-template-columns: 1fr;
  }

  .map {
    aspect-ratio: 4 / 3;
    min-height: 0;
  }
}

/* ---------- Faixa final ---------- */
.band {
  background: linear-gradient(135deg, var(--brand), var(--panel));
  padding-block: var(--pad);
}

.band h2,
.band p {
  color: #f2f7f4;
}

.band p {
  opacity: 0.85;
  max-width: 52ch;
}

.band .btn {
  margin-top: 0.6rem;
}

/* ---------- Footer (claro, clínico) ---------- */
footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.foot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 2rem;
  padding-block: 3rem 2rem;
}

.foot-grid b {
  color: var(--ink);
  font-size: 1rem;
  display: block;
  margin-bottom: 0.5rem;
}

footer a {
  color: var(--body-c);
  text-decoration: none;
}

footer a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.foot-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.foot-legal {
  border-top: 1px solid var(--line);
  padding-block: 1.1rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.foot-legal p {
  margin: 0;
}

/* ---------- Barra móvel fixa ---------- */
.mobile-cta {
  display: none;
}

@media (max-width: 820px) {
  .mobile-cta {
    display: flex;
    position: fixed;
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0.9rem;
    z-index: 50;
    justify-content: center;
    box-shadow: 0 14px 34px rgb(18 131 63 / 0.45);
  }

  body {
    padding-bottom: 4.6rem;
  }
}

/* ---------- Cabeçalho de página interna ---------- */
.page-head {
  background: var(--tint);
  padding-block: clamp(2.4rem, 6vw, 3.8rem);
  border-bottom: 1px solid var(--line);
}

.page-head h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 0.2em;
}

.page-head p {
  margin: 0;
  color: var(--muted);
  max-width: 60ch;
}

/* ---------- Grade de serviços (página interna) ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

@media (max-width: 820px) {
  .svc-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Prosa ---------- */
.prose {
  max-width: 66ch;
}

.prose h2 {
  font-size: 1.25rem;
  margin-top: 1.9em;
}

/* ---------- Revelação no scroll (desliga sob prefers-reduced-motion e sem JS) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--d, 0s);
  }

  .js [data-reveal].in {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .cell {
    transition: none;
  }
}
