/* ===== Ipê Claro Odontologia ===== */

/* Fontes hospedadas no próprio site (variáveis: um arquivo serve todos os pesos) */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("fonts/bricolage-grotesque-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/hanken-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/hanken-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* o ipê-amarelo e a mata */
  --ipe: #F4B400;
  --ipe-claro: #FFD45C;
  --mata: #1E3324;
  --mata-2: #2C4A33;
  --mata-3: #3F6147;
  --folha: #EEF1E8;      /* fundo neutro, puxado para o verde */
  --branco: #FBFCF8;
  --tinta: #15231A;
  --tinta-2: #3E4F42;    /* texto secundário em fundo claro */
  --linha: #C9D3C2;
  --erro: #B3261E;
  --ok-fundo: #E3F1DC;

  --display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --texto: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --raio: 18px;
  --raio-g: 28px;
  --sombra: 0 18px 40px -18px rgba(21, 35, 26, .45);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; scrollbar-color: var(--mata-3) var(--folha); }
body {
  margin: 0; font-family: var(--texto); font-size: 1.0625rem; line-height: 1.6;
  color: var(--tinta); background: var(--branco); -webkit-font-smoothing: antialiased;
  caret-color: var(--mata);
}
::selection { background: var(--ipe); color: var(--mata); }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1.5px; }
:focus-visible { outline: 3px solid var(--mata); outline-offset: 3px; border-radius: 6px; }
.agendar :focus-visible, .rodape :focus-visible, .faixa-info :focus-visible { outline-color: var(--ipe); }
h1, h2, h3 { font-family: var(--display); color: var(--mata); margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); font-weight: 750; line-height: 1.02; letter-spacing: -.03em; margin-bottom: .55em; }
h3 { font-size: 1.3rem; font-weight: 650; letter-spacing: -.01em; line-height: 1.2; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.intro { font-size: 1.15rem; color: var(--tinta-2); max-width: 36em; }
.nota { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
section { padding-block: clamp(4.5rem, 9vw, 7.5rem); }

/* ---------- Botões e links ---------- */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font: 650 1.05rem/1 var(--texto); text-decoration: none; cursor: pointer;
  padding: 1.05rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  transition: transform .25s var(--ease), background-color .2s, box-shadow .25s var(--ease);
}
.botao svg { width: 1.15em; height: 1.15em; }
.botao--verde { background: var(--mata); color: var(--branco); box-shadow: 0 10px 22px -12px rgba(21,35,26,.7); }
.botao--verde:hover { background: var(--mata-2); transform: translateY(-2px); box-shadow: 0 16px 28px -14px rgba(21,35,26,.75); }
.botao--verde:active { transform: translateY(0); }
.botao--contorno { border-color: var(--mata); color: var(--mata); background: transparent; }
.botao--contorno:hover { background: var(--mata); color: var(--branco); }
.botao--pequeno { padding: .7rem 1.15rem; font-size: .95rem; }
.botao--bloco { width: 100%; }
.botao[disabled] { opacity: .75; cursor: progress; transform: none; }
.link-forte { display: inline-flex; align-items: center; gap: .5rem; font-weight: 650; color: var(--mata); text-decoration: underline; }
.link-forte svg { width: 1.3em; height: 1.3em; }
.link-forte:hover { text-decoration-thickness: 3px; }

/* ---------- Topo ---------- */
.aviso-demo { margin: 0; background: var(--mata); color: #D8E3D3; font-size: .8rem; text-align: center; padding: .4rem 1rem; }
.topo { position: sticky; top: 0; z-index: 50; background: var(--ipe); border-bottom: 1px solid rgba(30, 51, 36, .14); }
.topo__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.marca { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--mata); }
.marca__flor { width: 40px; height: 40px; color: var(--branco); --flor-miolo: var(--mata); }
.marca__nome { font: 750 1.35rem/1 var(--display); letter-spacing: -.02em; }
.marca__nome span { display: block; font: 600 .72rem/1 var(--texto); letter-spacing: .14em; text-transform: uppercase; margin-top: .3rem; color: var(--mata-2); }
.nav { display: none; }
.nav a:not(.botao) { text-decoration: none; font-weight: 600; color: var(--mata); padding-block: .3rem; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .3s var(--ease); }
.nav a:not(.botao):hover { background-size: 100% 2px; }
.nav-toggle { background: none; border: 0; padding: .6rem; cursor: pointer; display: grid; gap: 5px; }
.nav-toggle span { width: 26px; height: 2.5px; border-radius: 2px; background: var(--mata); transition: transform .25s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.nav.is-open { display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem; position: absolute; inset: 72px 0 auto; background: var(--ipe); padding: 1.25rem var(--gutter) 1.75rem; border-bottom: 1px solid rgba(30,51,36,.18); }

/* ---------- Primeira dobra ---------- */
.abertura { background: var(--ipe); padding-block: clamp(2.5rem, 6vw, 4.5rem) 0; overflow: hidden; }
.abertura__grid { display: grid; gap: 2.5rem; align-items: end; }
.abertura__texto { padding-bottom: clamp(1rem, 5vw, 5rem); }
.abertura h1 { font-size: clamp(3.2rem, 9.5vw, 6rem); font-weight: 800; line-height: .92; letter-spacing: -.04em; max-width: 9ch; margin-bottom: .35em; }
.abertura__lead { font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.5; color: var(--mata); max-width: 30em; margin-bottom: 2rem; }
.abertura__acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.abertura__foto { position: relative; margin: 0; align-self: end; }
.abertura__foto > img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 40%; border-radius: var(--raio-g); }

/* conversa de WhatsApp: o único momento animado da página */
/* celular: a conversa fica abaixo do rosto, encostando na base da foto */
.conversa { position: relative; z-index: 1; display: grid; gap: .55rem; margin: -4.5rem .75rem 0; padding-bottom: 1.75rem; max-width: 360px; }
.conversa__rotulo { margin: 0 0 .15rem; justify-self: start; font-size: .75rem; font-weight: 600; color: var(--mata); background: var(--ipe-claro); border-radius: 999px; padding: .2rem .7rem; }
.bolha { position: relative; border-radius: 16px; padding: .65rem .85rem .45rem; font-size: .95rem; line-height: 1.4; box-shadow: var(--sombra); max-width: 92%; }
.bolha p { margin: 0 0 .2rem; }
.bolha span { display: flex; align-items: center; justify-content: flex-end; gap: .2rem; font-size: .72rem; opacity: .75; }
.bolha span svg { width: 14px; height: 14px; }
.bolha--eu { justify-self: end; background: var(--branco); color: var(--tinta); border-bottom-right-radius: 4px; }
.bolha--clinica { justify-self: start; background: var(--mata); color: var(--branco); border-bottom-left-radius: 4px; }
.bolha--clinica b { color: var(--ipe-claro); }
.bolha--digitando { justify-self: start; display: none; gap: 4px; background: var(--mata); padding: .8rem .9rem; border-bottom-left-radius: 4px; }
.bolha--digitando i { width: 7px; height: 7px; border-radius: 50%; background: var(--ipe-claro); animation: pisca .7s ease-in-out 1.2s 2; }
.bolha--digitando i:nth-child(2) { animation-delay: .15s; }
.bolha--digitando i:nth-child(3) { animation-delay: .3s; }
@keyframes pisca { 50% { opacity: .3; transform: translateY(-2px); } }

@media (prefers-reduced-motion: no-preference) {
  .js .bolha--eu { animation: entra .6s var(--ease) .5s both; }
  .js .bolha--digitando { display: flex; animation: entra .4s var(--ease) 1.2s both, some .01s linear 2.6s forwards; }
  .js .bolha--clinica { animation: entra .7s var(--ease) 2.6s both; }
}
@keyframes entra { from { opacity: 0; transform: translateY(14px) scale(.96); filter: blur(4px); } }
@keyframes some { to { opacity: 0; height: 0; padding: 0; margin: -.55rem 0 0; } }

.faixa-info { background: var(--mata); color: #E6EDE2; }
.faixa-info__inner { display: flex; flex-wrap: wrap; gap: .75rem 2.5rem; padding-block: 1.1rem; }
.faixa-info p { margin: 0; display: flex; align-items: center; gap: .55rem; font-weight: 500; }
.faixa-info svg { width: 20px; height: 20px; color: var(--ipe); flex-shrink: 0; }

/* ---------- Tratamentos ---------- */
.tratamentos__grid { display: grid; gap: 3rem; align-items: start; }
.tratamentos__foto { margin: 0; }
.tratamentos__foto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--raio-g); }
.lista-trat { list-style: none; margin: 2.25rem 0 0; padding: 0; border-top: 1.5px solid var(--mata); }
.lista-trat li { display: grid; gap: .25rem; padding: 1.15rem 0; border-bottom: 1px solid var(--linha); }
.lista-trat p { margin: 0; color: var(--tinta-2); }

/* ---------- Primeira consulta ---------- */
.consulta { position: relative; padding-block: 0; background: var(--folha); }
.consulta__foto { width: 100%; height: clamp(320px, 52vw, 640px); object-fit: cover; object-position: 50% 35%; }
.consulta__painel { position: relative; margin-top: -5rem; background: var(--mata); color: var(--branco); border-radius: var(--raio-g); padding: clamp(1.75rem, 4vw, 3rem); max-width: 620px; box-shadow: var(--sombra); margin-bottom: clamp(3.5rem, 7vw, 6rem); }
.consulta__painel h2 { color: var(--branco); font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.checks li { display: flex; gap: .75rem; align-items: flex-start; font-size: 1.08rem; }
.checks svg { width: 24px; height: 24px; flex-shrink: 0; color: var(--mata); background: var(--ipe); border-radius: 50%; padding: 3px; margin-top: .1rem; }

/* ---------- Equipe ---------- */
.equipe__grid { display: grid; gap: 3rem; align-items: center; }
.pessoas { margin: 2.25rem 0 0; border-top: 1.5px solid var(--mata); }
.pessoas div { padding: 1.3rem 0; border-bottom: 1px solid var(--linha); }
.pessoas dt { font: 700 clamp(1.4rem, 2.4vw, 1.85rem)/1.15 var(--display); letter-spacing: -.02em; color: var(--mata); }
.pessoas dd { margin: .35rem 0 0; color: var(--tinta-2); }
.equipe__foto { margin: 0; position: relative; }
.equipe__foto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--raio-g); }
.equipe__foto figcaption { position: absolute; right: .9rem; bottom: .9rem; font-size: .75rem; font-weight: 600; background: rgba(251,252,248,.92); color: var(--tinta-2); padding: .2rem .65rem; border-radius: 999px; }

/* ---------- Depoimentos ---------- */
.depo { background: var(--ipe); }
.depo figure { margin: 0; }
.depo blockquote { margin: 0; font-family: var(--display); color: var(--mata); letter-spacing: -.02em; }
.depo figcaption { margin-top: 1rem; font-weight: 600; color: var(--mata-2); }
.depo__principal blockquote { font-size: clamp(1.9rem, 4.6vw, 3.6rem); font-weight: 700; line-height: 1.12; max-width: 20ch; }
.depo__menores { display: grid; gap: 2rem; margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: 2rem; border-top: 1.5px solid var(--mata); }
.depo__menores blockquote { font-size: clamp(1.3rem, 2.2vw, 1.65rem); font-weight: 600; line-height: 1.32; }
.depo__aviso { margin: 3rem 0 0; font-size: .85rem; color: var(--mata-2); }

/* ---------- Agendar ---------- */
.agendar { background: var(--mata); color: #E6EDE2; }
.agendar__grid { display: grid; gap: 2.75rem; align-items: start; }
.agendar h2 { color: var(--ipe); }
.agendar__texto p { font-size: 1.15rem; max-width: 30em; }
.agendar__miudo { font-size: .95rem !important; color: #B9C8B5; }
.form { background: var(--branco); color: var(--tinta); border-radius: var(--raio-g); padding: clamp(1.5rem, 3.5vw, 2.5rem); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.field { margin: 0 0 1.25rem; border: 0; padding: 0; }
.field label, .field legend { display: block; font-weight: 650; color: var(--mata); margin-bottom: .45rem; padding: 0; }
.field input, .field select {
  width: 100%; font: inherit; color: var(--tinta); background: var(--folha);
  padding: .9rem 1rem; border: 1.5px solid transparent; border-radius: 12px;
  transition: border-color .2s, background-color .2s;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%231E3324' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 20px; padding-right: 3rem; }
.field input::placeholder { color: #56665A; }
.field input:hover, .field select:hover { border-color: var(--linha); }
.field input:focus, .field select:focus { outline: none; border-color: var(--mata); background: var(--branco); box-shadow: 0 0 0 4px rgba(244,180,0,.45); }
.field.has-error input, .field.has-error select { border-color: var(--erro); background: #FBEDEC; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips label { display: inline-flex; align-items: center; gap: .45rem; margin: 0; cursor: pointer; font-weight: 600; color: var(--mata); padding: .6rem 1.05rem; border-radius: 999px; background: var(--folha); border: 1.5px solid transparent; transition: background-color .2s, border-color .2s; }
.chips label:hover { border-color: var(--linha); }
.chips input { accent-color: var(--mata); margin: 0; }
.chips label:has(input:checked) { background: var(--ipe); border-color: var(--mata); }
.chips label:has(input:focus-visible) { outline: 3px solid var(--mata); outline-offset: 2px; }
.consent { display: flex; gap: .7rem; align-items: flex-start; cursor: pointer; font-size: .95rem; color: var(--tinta-2); }
.consent input { width: 20px; height: 20px; margin-top: .15rem; accent-color: var(--mata); flex-shrink: 0; }
.error { display: block; color: var(--erro); font-size: .85rem; font-weight: 500; min-height: 1.1em; margin-top: .3rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .botao--bloco { margin-top: 1rem; }
.spinner { display: none; width: 18px; height: 18px; border: 2.5px solid rgba(251,252,248,.35); border-top-color: var(--branco); border-radius: 50%; animation: gira .8s linear infinite; }
.is-loading .spinner { display: inline-block; }
@keyframes gira { to { transform: rotate(360deg); } }
.form-status { margin-top: 1rem; border-radius: 12px; }
.form-status:empty { display: none; }
.form-status.ok { background: var(--ok-fundo); color: var(--mata); padding: 1rem 1.1rem; }
.form-status.err { background: #FBEDEC; color: #7D1B15; padding: 1rem 1.1rem; }
.form-status a { font-weight: 700; color: inherit; }
.previa-whats { margin: .9rem 0 .6rem; max-width: 34ch; background: var(--mata); color: var(--branco); border-radius: 16px 16px 16px 4px; padding: .75rem .9rem .5rem; font-size: .95rem; line-height: 1.45; box-shadow: var(--sombra); }
.previa-whats p { margin: 0 0 .5rem; }
.previa-whats b { color: var(--ipe-claro); }
.previa-whats span { display: block; text-align: right; font-size: .72rem; opacity: .75; }
.previa-nota { display: block; font-size: .85rem; color: var(--tinta-2); }

/* ---------- Contato ---------- */
.contato { background: var(--folha); }
.contato__grid { display: grid; gap: 2.75rem; align-items: center; }
address { font-style: normal; font-size: 1.2rem; line-height: 1.5; margin-bottom: 1.5rem; }
.horarios { margin: 0 0 2rem; max-width: 340px; border-top: 1.5px solid var(--mata); }
.horarios div { display: flex; justify-content: space-between; padding: .7rem 0; border-bottom: 1px solid var(--linha); }
.horarios dt { font-weight: 600; }
.horarios dd { margin: 0; font-variant-numeric: tabular-nums; }
.mapa { position: relative; border-radius: var(--raio-g); overflow: hidden; aspect-ratio: 3 / 2; background: #EEF1E8; border: 1.5px solid var(--linha); }
.mapa svg { width: 100%; height: 100%; }
.mapa__rotulo { position: absolute; left: .9rem; bottom: .9rem; font-size: .75rem; font-weight: 600; background: var(--branco); color: var(--tinta-2); border-radius: 999px; padding: .2rem .7rem; }

/* ---------- Rodapé ---------- */
.rodape { background: var(--tinta); color: #C4D0C0; padding: 3rem 0 6.5rem; font-size: .95rem; }
.rodape__inner { display: grid; gap: .5rem; }
.marca--claro { color: var(--branco); margin-bottom: 1rem; }
.marca--claro .marca__flor { color: var(--ipe); --flor-miolo: var(--tinta); }
.marca--claro .marca__nome span { color: #AFC0AB; }
.rodape p { margin: 0; }
.rodape__miudo { color: #93A58F; font-size: .85rem; }

/* ---------- WhatsApp flutuante ---------- */
.wa-flutuante { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 60; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: #25D366; color: #fff; box-shadow: 0 14px 28px -10px rgba(21,35,26,.6); transition: transform .25s var(--ease); }
.wa-flutuante:hover { transform: scale(1.07); }
.wa-flutuante svg { width: 32px; height: 32px; }

/* ---------- Tablet ---------- */
@media (min-width: 720px) {
  .depo__menores { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .lista-trat { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
}

/* ---------- Desktop ---------- */
@media (min-width: 980px) {
  .nav-toggle { display: none; }
  .nav { display: flex; align-items: center; gap: 1.9rem; }
  .abertura__grid { grid-template-columns: 1.08fr .92fr; gap: 3.5rem; }
  .abertura__texto { align-self: center; padding-bottom: 4rem; }
  .abertura__foto > img { aspect-ratio: 4 / 4.7; object-position: 50% 30%; border-radius: var(--raio-g) var(--raio-g) 0 0; }
  /* computador: a conversa sai da foto para o amarelo, sem cobrir o rosto */
  .conversa { position: absolute; left: -8rem; bottom: 2rem; margin: 0; padding: 0; width: 330px; }
  .abertura__lead { max-width: 24em; }
  .tratamentos__grid { grid-template-columns: .8fr 1.2fr; gap: 4.5rem; }
  .tratamentos__foto { position: sticky; top: 110px; }
  .equipe__grid { grid-template-columns: 1.15fr .85fr; gap: 5rem; }
  .agendar__grid { grid-template-columns: .85fr 1.15fr; gap: 5rem; }
  .contato__grid { grid-template-columns: .9fr 1.1fr; gap: 4.5rem; }
  .rodape { padding-bottom: 3rem; }
  .rodape__inner { grid-template-columns: auto 1fr; column-gap: 3rem; align-items: center; }
  .rodape__inner .marca { grid-row: span 2; margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
