/* ==========================================================
   Sorria Feital: conceito "porcelanato de mármore"
   Para trocar a identidade visual, mexa só no :root.
   ========================================================== */
:root {
    /* cores */
    --papel: #fbf8f3;
    --marmore: #f1ede5;
    --linha: #e2dacb;
    --texto: #1c2433;
    --texto-suave: #4d5669;
    --ouro: #b07f3f;
    --ouro-texto: #7a5224;      /* ouro escuro para texto sobre fundo claro */
    --ouro-claro: #dcb36a;      /* ouro para texto sobre fundo escuro */
    --azul: #1b4aa6;            /* botões */
    --azul-hover: #123a86;
    --noite: #101f3d;
    --noite-2: #1a2c52;
    --branco: #ffffff;
    --whatsapp: #128c4a;
    --whatsapp-texto: #ffffff;
    --veio-opacidade: 0.4;
    --sombra-flutuante: 0 8px 24px rgba(16, 31, 61, 0.28);
    --foco: #1b4aa6;

    /* fontes */
    --fonte-titulo: "Cormorant Garamond", Georgia, serif;
    --fonte-texto: "Figtree", Arial, sans-serif;

    /* espaçamentos e raios */
    --margem: 1.25rem;
    --espaco-secao: 4.5rem;
    --raio: 3px;
    --largura-max: 76rem;
}
@media (min-width: 768px)  { :root { --margem: 6%;  --espaco-secao: 6.5rem; } }
@media (min-width: 1200px) { :root { --margem: 8%;  --espaco-secao: 8rem; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
    margin: 0;
    font-family: var(--fonte-texto);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--texto);
    background: var(--papel);
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--fonte-titulo); font-weight: 600; line-height: 1.02; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.9rem, 11vw, 5.6rem); }
h2 { font-size: clamp(2.3rem, 8vw, 4rem); }
h3 { font-size: 1.7rem; line-height: 1.1; }
p { margin: 0; }
em { font-style: italic; color: var(--ouro-texto); }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--foco); outline-offset: 3px; }
.so-leitor { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.rotulo {
    display: flex; align-items: center; gap: 0.75rem;
    font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--ouro-texto); margin-bottom: 1.1rem;
}
.rotulo::before { content: ""; width: 2.2rem; height: 2px; background: var(--ouro); }

/* ---------- botões ---------- */
.botoes { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.75rem; }
.botao {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 3.2rem; padding: 0.8rem 1.6rem;
    font-weight: 700; font-size: 1rem; text-decoration: none;
    border: 2px solid transparent; border-radius: var(--raio);
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.botao:hover { transform: translateY(-2px); }
.botao-azul { background: var(--azul); color: var(--branco); }
.botao-azul:hover { background: var(--azul-hover); }
.botao-contorno { border-color: var(--ouro-texto); color: var(--ouro-texto); }
.botao-contorno:hover { background: var(--ouro-texto); color: var(--branco); }
.botao-ouro { background: var(--ouro-claro); color: var(--noite); }
.botao-ouro:hover { background: var(--branco); }
.botao-claro { border-color: var(--ouro-claro); color: var(--ouro-claro); }
.botao-claro:hover { background: var(--ouro-claro); color: var(--noite); }
@media (min-width: 600px) { .botoes { flex-direction: row; flex-wrap: wrap; } }

/* ---------- topo ---------- */
.topo {
    position: sticky; top: 0; z-index: 40;
    background: var(--papel); border-bottom: 1px solid var(--linha);
}
.topo-barra { display: flex; align-items: center; justify-content: space-between; padding: 0.6rem var(--margem); }
.marca { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ouro-texto); }
.marca img { width: 2.1rem; height: auto; }
.marca span { font-weight: 700; font-size: 1.05rem; line-height: 1.05; letter-spacing: 0.01em; }
.menu-botao {
    display: none; font: inherit; font-weight: 700; color: var(--ouro-texto);
    background: none; border: 2px solid var(--ouro); border-radius: var(--raio);
    padding: 0.45rem 1rem; cursor: pointer;
}
.menu { display: flex; flex-wrap: wrap; gap: 0.2rem 1.1rem; padding: 0 var(--margem) 0.7rem; font-size: 0.95rem; font-weight: 500; }
.menu a { text-decoration: none; padding: 0.3rem 0; }
.menu a:hover { color: var(--ouro-texto); text-decoration: underline; text-underline-offset: 4px; }
.menu .menu-agendar { background: var(--azul); color: var(--branco); padding: 0.4rem 1rem; border-radius: var(--raio); font-weight: 700; }
.menu .menu-agendar:hover { background: var(--azul-hover); color: var(--branco); text-decoration: none; }

/* com JavaScript, o menu vira sanfona no celular */
.js .menu-botao { display: block; }
.js .menu { display: none; flex-direction: column; padding-bottom: 1rem; border-top: 1px solid var(--linha); }
.js .menu.aberto { display: flex; }
.js .menu a { padding: 0.6rem 0; }
.js .menu .menu-agendar { text-align: center; margin-top: 0.4rem; }

@media (min-width: 960px) {
    .topo { display: flex; align-items: center; justify-content: space-between; padding: 0 var(--margem); }
    .topo-barra { padding: 0.7rem 0; }
    .js .menu-botao { display: none; }
    .menu, .js .menu { display: flex; flex-direction: row; align-items: center; flex-wrap: nowrap; border: 0; padding: 0; gap: 1.6rem; }
    .js .menu a, .menu a { padding: 0.3rem 0; }
    .js .menu .menu-agendar, .menu .menu-agendar { margin: 0; padding: 0.55rem 1.2rem; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 2.5rem var(--margem) var(--espaco-secao); background: var(--marmore); }
.veios {
    position: absolute; inset: 0; width: 100%; height: 100%;
    color: var(--ouro-claro); opacity: var(--veio-opacidade); pointer-events: none;
}
.hero-texto, .hero-foto { position: relative; }
.hero-sub { margin-top: 1.4rem; max-width: 32rem; color: var(--texto-suave); font-size: 1.15rem; }
.hero-dados { display: grid; gap: 1.1rem; margin: 2.2rem 0 0; padding-top: 1.4rem; border-top: 1px solid var(--linha); }
.hero-dados dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ouro-texto); }
.hero-dados dd { margin: 0.2rem 0 0; font-size: 0.98rem; }
.hero-foto { margin: 2.5rem 0 0; }
.hero-foto img {
    width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 25% center;
    border-radius: 999px 999px var(--raio) var(--raio);
    border: 6px solid var(--branco);
}
@media (min-width: 600px) { .hero-dados { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) {
    .hero { display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 4rem; padding-top: 5rem; }
    .hero-foto { margin: 0; }
}

/* ---------- letreiro ---------- */
.letreiro { overflow: hidden; background: var(--noite); color: var(--ouro-claro); padding: 1rem 0; }
.letreiro-trilho { display: flex; width: max-content; animation: correr 36s linear infinite; }
.letreiro span {
    flex: none; padding-right: 2.5rem; white-space: nowrap;
    font-family: var(--fonte-titulo); font-style: italic; font-size: 1.7rem;
}
.letreiro span::after { content: "◆"; font-style: normal; font-size: 0.7rem; margin-left: 2.5rem; vertical-align: middle; color: var(--ouro); }
@keyframes correr { to { transform: translateX(-50%); } }

/* ---------- seções ---------- */
.secao { padding: var(--espaco-secao) var(--margem); max-width: var(--largura-max); margin: 0 auto; }
.secao-titulo { margin-bottom: 2.5rem; }
.secao-titulo > p:not(.rotulo) { margin-top: 1rem; max-width: 30rem; color: var(--texto-suave); }

/* tratamentos: linhas editoriais */
.lista-tratamentos { list-style: none; margin: 0; padding: 0; counter-reset: trat; }
.lista-tratamentos li {
    counter-increment: trat; position: relative;
    padding: 1.6rem 0 1.6rem 3.4rem; border-top: 1px solid var(--linha);
}
.lista-tratamentos li:last-child { border-bottom: 1px solid var(--linha); }
.lista-tratamentos li::before {
    content: counter(trat, decimal-leading-zero);
    position: absolute; left: 0; top: 1.7rem;
    font-family: var(--fonte-titulo); font-size: 1.5rem; font-style: italic; color: var(--ouro-texto);
}
.lista-tratamentos p { margin-top: 0.5rem; max-width: 30rem; color: var(--texto-suave); }
.lista-tratamentos a {
    display: inline-block; margin-top: 0.8rem; font-weight: 700; font-size: 0.95rem; color: var(--azul);
    text-underline-offset: 4px;
}
.lista-tratamentos a:hover { color: var(--azul-hover); }
@media (min-width: 960px) {
    .tratamentos { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 5rem; align-items: start; }
    .tratamentos .secao-titulo { position: sticky; top: 7rem; margin: 0; }
    .lista-tratamentos li { padding-left: 5rem; display: grid; grid-template-columns: 1fr; }
    .lista-tratamentos li::before { font-size: 2.4rem; top: 1.4rem; }
}

/* consulta: passos numerados */
.consulta { max-width: none; background: var(--noite); color: var(--branco); }
.consulta > * { max-width: var(--largura-max); margin-left: auto; margin-right: auto; }
.consulta .rotulo { color: var(--ouro-claro); }
.consulta .rotulo::before { background: var(--ouro-claro); }
.consulta h2 { color: var(--branco); }
.passos { list-style: none; margin: 0 auto; padding: 0; counter-reset: passo; display: grid; gap: 2rem; }
.passos li { counter-increment: passo; border-top: 1px solid var(--noite-2); padding-top: 1rem; }
.passos li::before {
    content: counter(passo, decimal-leading-zero); display: block;
    font-family: var(--fonte-titulo); font-style: italic; font-size: 4.5rem; line-height: 1; color: var(--ouro-claro);
}
.passos h3 { color: var(--branco); margin-top: 0.4rem; }
.passos p { margin-top: 0.5rem; color: var(--linha); max-width: 22rem; }
@media (min-width: 800px) { .passos { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }

/* a clínica */
.clinica { display: grid; gap: 1.5rem; }
.clinica-texto p:not(.rotulo) { margin: 1.2rem 0 1.6rem; max-width: 30rem; color: var(--texto-suave); }
.clinica-foto { margin: 0; }
.clinica-foto img { width: 100%; object-fit: cover; border-radius: var(--raio); border: 6px solid var(--branco); }
.clinica-foto-a img { aspect-ratio: 4 / 4.2; }
.clinica-foto-b img { aspect-ratio: 5 / 4; }
@media (min-width: 800px) {
    .clinica { grid-template-columns: repeat(12, 1fr); gap: 1.5rem; align-items: start; }
    .clinica-texto { grid-column: 1 / 6; grid-row: 1; padding-top: 2rem; }
    .clinica-foto-a { grid-column: 6 / 13; grid-row: 1 / 3; }
    .clinica-foto-b { grid-column: 1 / 6; grid-row: 2; margin-top: 1rem; }
}

/* avaliações */
.avaliacoes { background: var(--marmore); max-width: none; }
.avaliacoes > * { max-width: var(--largura-max); margin-left: auto; margin-right: auto; }
.depoimentos { display: grid; gap: 1.5rem; }
.depoimentos blockquote { margin: 0; padding: 1.6rem; background: var(--papel); border-left: 4px solid var(--ouro); border-radius: var(--raio); }
.estrelas { color: var(--ouro); letter-spacing: 0.2em; font-size: 1.1rem; }
.depoimentos blockquote p:not(.estrelas) {
    margin-top: 0.7rem; font-family: var(--fonte-titulo); font-size: 1.55rem; line-height: 1.25; font-weight: 500;
}
.depoimentos footer { margin-top: 1rem; font-size: 0.9rem; font-weight: 700; color: var(--ouro-texto); }
.link-seta { display: inline-block; margin-top: 1.8rem; font-weight: 700; color: var(--azul); text-underline-offset: 4px; }
.link-seta::after { content: " →"; }
@media (min-width: 800px) {
    .depoimentos { grid-template-columns: 1fr 1fr; align-items: start; }
    .depoimentos blockquote:nth-child(2) { margin-top: 3rem; }
}

/* horários */
.horarios-grade { display: grid; gap: 2.2rem; }
.tabela-horarios { width: 100%; border-collapse: collapse; }
.tabela-horarios th, .tabela-horarios td { padding: 0.85rem 0; border-top: 1px solid var(--linha); text-align: left; }
.tabela-horarios tr:last-child th, .tabela-horarios tr:last-child td { border-bottom: 1px solid var(--linha); }
.tabela-horarios th { font-weight: 500; }
.tabela-horarios td { text-align: right; font-variant-numeric: tabular-nums; }
.tabela-horarios .fechado td { color: var(--texto-suave); }
.tabela-horarios .hoje th, .tabela-horarios .hoje td { font-weight: 700; color: var(--ouro-texto); }
.tabela-horarios .hoje th::after { content: " (hoje)"; font-weight: 500; font-size: 0.85rem; }
.endereco address { font-style: normal; font-family: var(--fonte-titulo); font-size: 1.9rem; line-height: 1.2; font-weight: 500; }
.contato-linhas { display: grid; gap: 0.5rem; margin-top: 1.5rem; }
.contato-linhas a { font-weight: 700; color: var(--azul); text-underline-offset: 4px; }
.mapa { display: block; width: 100%; height: 20rem; margin-top: 2.5rem; border: 0; border-radius: var(--raio); }
@media (min-width: 800px) {
    .horarios-grade { grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
    .mapa { height: 26rem; }
}

/* chamada final */
.chamada-final { padding: var(--espaco-secao) var(--margem); background: var(--noite); color: var(--branco); }
.chamada-final > * { max-width: 40rem; }
.chamada-final .rotulo { color: var(--ouro-claro); }
.chamada-final .rotulo::before { background: var(--ouro-claro); }
.chamada-final h2 { font-size: clamp(2.8rem, 10vw, 5.2rem); }
.chamada-final em { color: var(--ouro-claro); }
.chamada-final > p:not(.rotulo) { margin-top: 1.2rem; color: var(--linha); }
@media (min-width: 960px) { .chamada-final { padding-left: 8%; } }

/* rodapé */
.rodape {
    padding: 3rem var(--margem) 6.5rem; text-align: center; background: var(--papel);
    display: grid; gap: 0.9rem; justify-items: center;
}
.rodape img { width: 5.5rem; }
.rodape a { font-weight: 700; color: var(--ouro-texto); }
.rodape small { color: var(--texto-suave); }

/* WhatsApp flutuante */
.whatsapp-flutuante {
    position: fixed; right: 1rem; bottom: 1rem; z-index: 50;
    display: flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.2rem;
    background: var(--whatsapp); color: var(--whatsapp-texto); font-weight: 700;
    text-decoration: none; border-radius: 999px; box-shadow: var(--sombra-flutuante);
}
.whatsapp-flutuante svg { width: 1.6rem; height: 1.6rem; }

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

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