/* Consultório Odontológico Dra. Mirella Alencar · v1
   Paleta tirada da logo dela: fundo nude, "M" creme, "A" marrom. O fio fino que atravessa o monograma vira a linha da página. */

:root {
  --cafe: #2e1e19;
  --cafe-2: #241713;
  --marrom: #54362a;
  --marrom-suave: #74574a;
  --nude: #d6bfad;
  --nude-claro: #efe4da;
  --creme: #fbf6f1;
  --creme-logo: #f4e6da;
  --linha: rgba(84, 54, 42, .2);
  --linha-clara: rgba(244, 230, 218, .22);

  --serifa: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --sem: 'Urbanist', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --margem: clamp(20px, 5vw, 76px);
  --secao: clamp(64px, 9vw, 132px);
  --topo: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--creme);
  color: var(--marrom);
  font-family: var(--sem);
  font-size: 17.5px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, blockquote, table { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2 { font-family: var(--serifa); font-weight: 400; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.08; color: var(--cafe); }

q { quotes: '“' '”'; font-family: var(--serifa); font-style: italic; font-size: 1.04em; }

.sobretitulo {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--marrom-suave);
}

figcaption { padding-top: 9px; font-size: .86rem; color: var(--marrom-suave); }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* O fio da logo */
.fio { display: block; width: 100%; height: 70px; overflow: visible; pointer-events: none; }
.fio path { fill: none; stroke: var(--nude); stroke-width: 1.3; vector-effect: non-scaling-stroke; opacity: .75; }
.fio--escuro path { stroke: var(--marrom); opacity: .55; }

/* Botões e links */
.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 26px;
  background: var(--cafe);
  color: var(--creme-logo);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .02em;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  transition: background .2s, color .2s;
}
.botao:hover { background: var(--marrom); }
.botao .ico { width: 20px; height: 20px; flex: none; }
.botao--nude { background: var(--nude); color: var(--cafe); }
.botao--nude:hover { background: var(--creme-logo); }
.botao--pequeno { padding: 11px 16px; font-size: .92rem; white-space: nowrap; }
.botao--pequeno .ico { width: 18px; height: 18px; }
.botao__longo { display: none; }

.link-seta {
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1.5px solid currentColor;
}
.link-seta::after { content: ' →'; }
.link-seta:hover { opacity: .75; }

/* Topo */
.topo {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--topo);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 var(--margem);
  background: var(--cafe);
  border-bottom: 1px solid var(--linha-clara);
  transition: background .25s, border-color .25s;
}
.marca { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; }
.marca__mono { width: 40px; height: 40px; flex: none; }
.marca__nome { width: auto; height: 13px; min-width: 0; }
.marca__nome--escuro { display: none; }
.topo__nav { display: none; }

/* Abertura */
.abertura { padding-top: var(--topo); background: var(--cafe); color: var(--creme-logo); display: flex; flex-direction: column; }
.abertura__foto { position: relative; }
.abertura__foto > img:first-child { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 22%; }
.abertura__cartao { position: absolute; left: var(--margem); bottom: -52px; width: 172px; height: auto; }
.abertura__texto { position: relative; padding: 84px var(--margem) 30px; }
.abertura .sobretitulo { color: var(--nude); }
.abertura h1 { margin-top: 16px; font-size: clamp(2.35rem, 5.3vw, 4.9rem); line-height: 1.03; letter-spacing: -.01em; }
.abertura h1 em { font-style: italic; color: var(--nude); }
.abertura__quem { margin-top: 18px; font-size: .95rem; color: var(--nude); }
.abertura__apoio { margin-top: 24px; font-size: 1.08rem; }
.abertura__acoes { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.abertura .fio { margin-top: 26px; }

/* Faixa rápida */
.faixa { background: var(--nude); color: var(--cafe); }
.faixa ul { display: grid; }
.faixa li { padding: 16px var(--margem); border-top: 1px solid rgba(46, 30, 25, .18); }
.faixa li:first-child { border-top: 0; }
.faixa b { display: block; font-family: var(--serifa); font-weight: 400; font-size: 1.35rem; line-height: 1.2; }
.faixa span { display: block; font-size: .93rem; }

/* O canal */
.canal { display: grid; gap: 44px; padding: var(--secao) 0; background: var(--creme); }
.canal__texto { padding: 0 var(--margem); }
.canal__texto h2 { margin: 16px 0 26px; }
.canal__texto p + p { margin-top: 16px; }
.canal__foto img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; object-position: 50% 30%; }
.canal__foto figcaption { padding-left: var(--margem); padding-right: var(--margem); }
.destaque { margin-top: 34px; padding-top: 26px; border-top: 1.5px solid var(--marrom); }
.destaque p { font-family: var(--serifa); font-style: italic; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.25; color: var(--cafe); }
.destaque footer { margin-top: 14px; font-size: .92rem; color: var(--marrom-suave); }

/* A Dra. Mirella */
.dra { display: grid; background: var(--nude-claro); }
.dra__foto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }
.dra__foto figcaption { padding: 9px var(--margem) 0; }
.dra__texto { padding: clamp(40px, 7vw, 90px) var(--margem) var(--secao); }
.dra__texto h2 { margin: 16px 0 10px; }
.dra__registro { display: inline-block; margin-bottom: 24px; padding-bottom: 7px; border-bottom: 1.5px solid var(--marrom); font-weight: 600; letter-spacing: .06em; }
.linha { margin: 30px 0; border-left: 1.5px solid var(--marrom); }
.linha li { position: relative; padding: 0 0 22px 26px; }
.linha li:last-child { padding-bottom: 0; }
.linha li::before { content: ''; position: absolute; left: -5.5px; top: 9px; width: 10px; height: 10px; background: var(--marrom); transform: rotate(45deg); }
.linha time { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--marrom-suave); }
.linha p { margin-top: 2px; }

/* Tratamentos */
.tratamentos { padding: var(--secao) var(--margem); background: var(--creme); }
.tratamentos__cabeca h2 { margin: 16px 0 20px; }
.lista { margin-top: 38px; display: grid; }
.lista li { display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 8px; align-content: start; padding: 20px 0; border-top: 1px solid var(--linha); }
.lista li:last-child { border-bottom: 1px solid var(--linha); }
.lista__n { grid-row: span 2; font-family: var(--serifa); font-style: italic; font-size: 1.15rem; color: var(--marrom-suave); padding-top: 4px; }
.lista h3 { font-family: var(--serifa); font-weight: 400; font-size: 1.5rem; line-height: 1.2; color: var(--cafe); }
.lista p { margin-top: 5px; color: var(--marrom-suave); }
.tratamentos__nota { margin-top: 24px; font-size: .94rem; color: var(--marrom-suave); }

/* A família inteira */
.familia { position: relative; padding: clamp(40px, 6vw, 80px) var(--margem) var(--secao); background: var(--nude); color: var(--cafe); overflow: hidden; }
.familia .fio { height: 90px; margin-bottom: 20px; }
.familia .sobretitulo { color: var(--marrom); }
.familia__lista {
  margin-top: 18px;
  font-family: var(--serifa);
  font-size: clamp(2.9rem, 9.6vw, 9rem);
  line-height: .98;
  letter-spacing: -.015em;
}
.familia__lista em { font-style: italic; color: var(--marrom); }
.familia__texto { margin-top: 36px; }
.familia__texto p + p { margin-top: 14px; }
.familia__texto .link-seta { margin-top: 24px; }

/* Perguntas */
.perguntas { display: grid; gap: 34px; padding: var(--secao) var(--margem); background: var(--creme); }
.perguntas__cabeca h2 { margin: 16px 0 18px; }
.perguntas__cabeca .link-seta { margin-top: 20px; }
.perguntas details { border-top: 1px solid var(--linha); }
.perguntas details:last-child { border-bottom: 1px solid var(--linha); }
.perguntas summary { position: relative; padding: 20px 44px 20px 0; font-family: var(--serifa); font-size: 1.42rem; line-height: 1.25; color: var(--cafe); cursor: pointer; list-style: none; }
.perguntas summary::-webkit-details-marker { display: none; }
.perguntas summary::after { content: '+'; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-family: var(--sem); font-size: 1.5rem; color: var(--marrom-suave); }
.perguntas details[open] summary::after { content: '–'; }
.perguntas details p { padding: 0 0 22px; }

/* Onde */
.onde { display: grid; background: var(--nude-claro); }
.onde__info { padding: var(--secao) var(--margem) 48px; }
.onde__info h2 { margin: 16px 0 22px; }
.onde__endereco { font-size: 1.1rem; color: var(--cafe); }
.onde__fala { margin-top: 12px; }
.horarios { width: 100%; margin: 28px 0 30px; border-collapse: collapse; }
.horarios caption { text-align: left; font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--marrom-suave); padding-bottom: 10px; }
.horarios th, .horarios td { padding: 12px 0; border-top: 1px solid var(--linha); font-weight: 400; text-align: left; }
.horarios td { text-align: right; font-weight: 600; color: var(--cafe); }
.horarios tr:last-child th, .horarios tr:last-child td { border-bottom: 1px solid var(--linha); }
.onde__acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.onde__mapa { min-height: 360px; }
.onde__mapa iframe { display: block; width: 100%; height: 100%; min-height: 360px; border: 0; filter: sepia(.25) saturate(.8); }

/* Chamada final */
.chamada { display: grid; background: var(--cafe); color: var(--creme-logo); }
.chamada__foto img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 12%; }
.chamada__texto { padding: 44px var(--margem) var(--secao); }
.chamada__mono { width: 76px; height: 76px; margin-bottom: 26px; }
.chamada h2 { color: var(--creme-logo); font-size: clamp(2rem, 4.4vw, 3.7rem); }
.chamada__texto > p { margin-top: 22px; font-size: 1.08rem; }
.chamada .botao { margin-top: 30px; }
.chamada__texto > .chamada__fone { margin-top: 18px; font-size: .96rem; color: var(--nude); }
.chamada__fone a { text-decoration: none; border-bottom: 1px solid currentColor; }

/* Rodapé */
.rodape { background: var(--cafe-2); color: rgba(244, 230, 218, .8); font-size: .97rem; }
.rodape__topo { display: grid; gap: 44px; padding: 56px var(--margem) 30px; }
.rodape__logo { width: min(230px, 70%); height: auto; }
.rodape__frase { margin-top: 20px; font-family: var(--serifa); font-size: 1.4rem; line-height: 1.25; color: var(--creme-logo); }
.rodape__sociais { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.rodape__social { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border: 1px solid rgba(244, 230, 218, .4); color: var(--creme-logo); font-weight: 600; text-decoration: none; }
.rodape__social:hover { border-color: var(--creme-logo); }
.rodape__social .ico { width: 18px; height: 18px; }
.rodape__colunas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 24px; }
.rodape__colunas > div:last-child { grid-column: 1 / -1; }
.rodape h3 { margin-bottom: 12px; font-family: var(--sem); font-size: .76rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--nude); }
.rodape__link { display: inline-block; margin-top: 10px; color: var(--creme-logo); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(244, 230, 218, .45); }
.rodape ul { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.rodape ul a { text-decoration: none; }
.rodape ul a:hover, .rodape__link:hover { color: var(--nude); }
.fio--rodape { height: 54px; }
.fio--rodape path { opacity: .4; }
.rodape__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 20px var(--margem) 92px; border-top: 1px solid var(--linha-clara); font-size: .86rem; }
.rodape__base a { color: var(--creme-logo); text-decoration: none; white-space: nowrap; }

/* WhatsApp fixo (celular) */
.whats-fixo { position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: #1f8f55; color: #fff; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s; }
.whats-fixo svg { width: 30px; height: 30px; }
.whats-fixo.aparece { opacity: 1; transform: none; pointer-events: auto; }

/* Revelar ao rolar */
.js .revelar { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .revelar.visivel { opacity: 1; transform: none; }

/* Telas estreitas: nada passa da largura da tela */
@media (max-width: 480px) {
  h1, h2, h3, p, summary, a { overflow-wrap: anywhere; }
  .botao { white-space: normal; }
  .botao--pequeno { white-space: nowrap; }
  .abertura__acoes .botao, .chamada .botao, .onde__acoes .botao { width: 100%; }
}
@media (max-width: 379px) {
  .marca__nome { display: none !important; }
}
@media (max-width: 339px) {
  .botao--pequeno { padding: 11px 13px; }
  .botao--pequeno span { display: none; }
  .abertura__cartao { width: 140px; bottom: -42px; }
  .rodape__colunas { grid-template-columns: minmax(0, 1fr); }
  .lista li { grid-template-columns: 34px minmax(0, 1fr); }
  .familia__lista { font-size: 2.3rem; }
}

@media (min-width: 420px) {
  .botao__curto { display: none; }
  .botao__longo { display: inline; }
  .marca__nome { height: 14px; }
}

@media (min-width: 640px) {
  .marca__mono { width: 44px; height: 44px; }
  .marca__nome { height: 16px; }
  .abertura__foto > img:first-child { aspect-ratio: 16 / 11; object-position: 50% 16%; }
  .abertura__cartao { width: 220px; bottom: -66px; }
  .abertura__texto { padding-top: 104px; }
  .faixa ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .faixa li { border-top: 0; border-left: 1px solid rgba(46, 30, 25, .18); padding: 22px clamp(18px, 3vw, 40px); }
  .faixa li:first-child { border-left: 0; padding-left: var(--margem); }
  .lista { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 44px; }
  .lista li:nth-last-child(2) { border-bottom: 1px solid var(--linha); }
  .familia__texto { max-width: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 44px; }
  .familia__texto p + p { margin-top: 0; }
  .familia__texto .link-seta { grid-column: 1 / -1; justify-self: start; }
  .chamada__foto img { aspect-ratio: 16 / 10; }
  .rodape__colunas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rodape__colunas > div:last-child { grid-column: auto; }
  .rodape ul { display: block; }
  .rodape ul li + li { margin-top: 6px; }
  .rodape__base { padding-bottom: 24px; }
  .whats-fixo { display: none; }
}

@media (min-width: 1024px) {
  :root { --topo: 86px; }

  .topo { background: transparent; border-bottom-color: transparent; }
  .topo.rolou { background: rgba(251, 246, 241, .97); border-bottom-color: var(--linha); }
  .topo.rolou .marca__nome--claro { display: none; }
  .topo.rolou .marca__nome--escuro { display: block; }
  .topo.rolou .botao--nude { background: var(--cafe); color: var(--creme-logo); }
  .topo.rolou .topo__nav a { color: var(--cafe); }
  .marca__mono { width: 50px; height: 50px; }
  .marca__nome { height: 17px; }
  .topo__nav a { font-size: .95rem; font-weight: 500; letter-spacing: .03em; color: var(--creme-logo); text-decoration: none; padding: 6px 0; border-bottom: 1.5px solid transparent; white-space: nowrap; }
  .topo__nav a:hover { border-bottom-color: currentColor; }

  .abertura { padding-top: 0; display: grid; grid-template-columns: minmax(0, 58fr) minmax(0, 42fr); min-height: min(100vh, 900px); }
  .abertura__foto { order: 2; }
  .abertura__foto > img:first-child { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-position: 50% 12%; }
  .abertura__cartao { left: 0; bottom: clamp(40px, 7vh, 76px); transform: translateX(-46%); width: clamp(230px, 20vw, 300px); }
  .abertura__texto { order: 1; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--topo) + 16px) clamp(150px, 14vw, 210px) 104px var(--margem); }
  .abertura__apoio { font-size: 1.14rem; }
  .abertura .fio { position: absolute; left: 0; right: 0; bottom: 18px; margin: 0; height: 84px; }

  .canal { grid-template-columns: minmax(0, 54fr) minmax(0, 46fr); gap: 0; align-items: stretch; }
  .canal__texto { align-self: center; padding-right: clamp(44px, 5vw, 84px); }
  .canal__lado { display: flex; }
  .canal__foto { position: relative; flex: 1; min-height: 640px; }
  .canal__foto img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
  .canal__foto figcaption { position: absolute; right: 0; bottom: 0; padding: 10px 16px; background: var(--creme); }

  .dra { grid-template-columns: minmax(0, 44fr) minmax(0, 56fr); align-items: stretch; }
  .dra__foto { position: relative; min-height: 720px; }
  .dra__foto img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
  .dra__foto figcaption { position: absolute; left: 0; bottom: 0; padding: 10px 16px; background: var(--nude-claro); }
  .dra__texto { align-self: center; padding: var(--secao) var(--margem) var(--secao) clamp(44px, 5vw, 84px); }

  .tratamentos { display: grid; grid-template-columns: minmax(0, 36fr) minmax(0, 64fr); gap: 0 clamp(44px, 5vw, 84px); align-items: start; }
  .tratamentos__cabeca { position: sticky; top: calc(var(--topo) + 24px); grid-row: span 2; }
  .lista { margin-top: 0; }

  .familia__texto { gap: 0 clamp(44px, 5vw, 84px); margin-top: 48px; }

  .perguntas { grid-template-columns: minmax(0, 36fr) minmax(0, 64fr); gap: clamp(44px, 5vw, 84px); align-items: start; }
  .perguntas__cabeca { position: sticky; top: calc(var(--topo) + 24px); }

  .onde { grid-template-columns: minmax(0, 44fr) minmax(0, 56fr); }
  .onde__info { padding: var(--secao) clamp(44px, 5vw, 84px) var(--secao) var(--margem); }
  .onde__mapa iframe { min-height: 100%; }

  .chamada { grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); align-items: stretch; }
  .chamada__foto { position: relative; min-height: 560px; }
  .chamada__foto img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
  .chamada__texto { align-self: center; padding: var(--secao) var(--margem) var(--secao) clamp(44px, 5vw, 84px); }

  .rodape__topo { grid-template-columns: minmax(0, 40fr) minmax(0, 60fr); gap: clamp(44px, 6vw, 96px); padding-top: 72px; }
}

/* O menu só aparece quando cabe inteiro na parte escura, sem encostar no retrato */
@media (min-width: 1240px) {
  .topo__nav { display: flex; gap: clamp(16px, 2vw, 30px); margin-right: auto; margin-left: clamp(18px, 2.4vw, 40px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .revelar { opacity: 1; transform: none; transition: none; }
  .whats-fixo { transition: none; }
}
