:root {
  --font-display: "Fraunces", Georgia, serif;
  --font-sans: "Manrope", system-ui, sans-serif;
  --radius: 0.75rem;
  --background: oklch(0.975 0.012 85);
  --foreground: oklch(0.25 0.03 165);
  --card: oklch(0.995 0.005 85);
  --primary: oklch(0.45 0.07 165);
  --primary-foreground: oklch(0.98 0.01 85);
  --secondary: oklch(0.92 0.03 150);
  --muted: oklch(0.94 0.015 85);
  --muted-foreground: oklch(0.5 0.025 165);
  --accent: oklch(0.78 0.09 55);
  --accent-foreground: oklch(0.25 0.03 165);
  --border: oklch(0.88 0.02 120);
  --shadow-soft: 0 20px 50px -20px oklch(0.45 0.07 165 / 0.35);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid var(--border); }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); font-size: inherit; font-weight: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: inherit; }
button { font: inherit; color: inherit; background: transparent; cursor: pointer; }

/* Layout */
main { overflow-x: clip; }
section[id] { scroll-margin-top: 4.5rem; }
.container { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.section { padding-top: 4rem; padding-bottom: 4rem; }
.bg-secondary { background: var(--secondary); }
.bg-muted { background: var(--muted); }
.card { background: var(--card); border-radius: calc(var(--radius) + 8px); box-shadow: var(--shadow-soft); }
.grid { display: grid; gap: 1.5rem; margin-top: 2.5rem; }

h2 { font-size: 1.875rem; line-height: 2.25rem; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom-width: 1px;
  background: color-mix(in oklch, var(--background) 85%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.header-bar { display: flex; align-items: center; justify-content: space-between; padding-top: 1rem; padding-bottom: 1rem; }
.logo { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; color: var(--primary); }
.logo { display: flex; align-items: center; gap: 0.5rem; }
.logo img { height: 2.25rem; width: auto; }
.logo span { color: var(--muted-foreground); font-weight: 400; }
.nav-desktop { display: none; gap: 2rem; font-size: 0.875rem; line-height: 1.25rem; }
.nav-desktop a { position: relative; transition: color 0.15s; }
.nav-desktop a:hover, .nav-desktop a.ativo { color: var(--primary); }
.nav-desktop a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; border-radius: 9999px; background: var(--primary); transform: scaleX(0); transition: transform 0.25s; }
.nav-desktop a.ativo::after { transform: scaleX(1); }
.nav-desktop a.ativo, .nav-mobile a.ativo { font-weight: 700; }
.nav-mobile a.ativo { color: var(--primary); }
.menu-btn { font-size: 1.5rem; line-height: 2rem; }
.nav-mobile { display: flex; flex-direction: column; gap: 0.75rem; border-top-width: 1px; padding: 1rem 1.25rem; }
.nav-mobile[hidden] { display: none; }

/* Hero */
.hero { display: grid; align-items: center; gap: 2.5rem; padding-top: 2rem; padding-bottom: 2rem; }
.eyebrow { margin-bottom: 1rem; font-size: 0.875rem; line-height: 1.25rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); }
.hero h1 { font-size: 2.25rem; line-height: 1.25; }
.hero h1 em { color: var(--primary); }
.hero-text { margin-top: 1.5rem; max-width: 28rem; font-size: 1.125rem; line-height: 1.75rem; color: var(--muted-foreground); }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.stats { margin-top: 2.5rem; display: flex; gap: 2.5rem; }
.stat-num { font-family: var(--font-display); font-size: 1.875rem; line-height: 2.25rem; color: var(--primary); }
.stat-label { font-size: 0.875rem; line-height: 1.25rem; color: var(--muted-foreground); }
.hero-img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; object-position: center 20%; border-radius: calc(var(--radius) + 16px); box-shadow: var(--shadow-soft); }

/* Botões */
.btn { display: inline-block; border-radius: 9999px; padding: 0.75rem 1.75rem; font-weight: 500; transition: opacity 0.15s, background-color 0.15s; }
.btn-primary { background: var(--primary); color: var(--primary-foreground); box-shadow: var(--shadow-soft); }
.btn-primary:hover, .btn-accent:hover { opacity: 0.9; }
.btn-outline { border: 1px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--secondary); }
.btn-instagram { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 2rem; border: 1px solid var(--primary-foreground); font-weight: 700; color: var(--primary-foreground); }
.btn-instagram:hover { background: oklch(1 0 0 / 0.1); }
.btn-instagram svg, .footer-instagram svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2; }
.btn-instagram svg circle:last-child, .footer-instagram svg circle:last-child { fill: currentColor; }
.btn-accent { padding: 0.75rem 2rem; font-weight: 700; background: var(--accent); color: var(--accent-foreground); }

/* Sobre mim */
.sobre { display: grid; align-items: center; gap: 2rem; }
.sobre-texto { margin-top: 1rem; max-width: 36rem; font-size: 1.125rem; line-height: 1.75rem; color: var(--muted-foreground); }
.formacoes-card { padding: 1.5rem; }
.formacoes-card h3 { font-size: 1.25rem; line-height: 1.75rem; color: var(--primary); }
.formacoes { margin-top: 1.25rem; display: grid; gap: 1rem; list-style: none; }
.formacoes li { display: flex; align-items: center; gap: 0.875rem; }
.formacoes strong { display: block; line-height: 1.25rem; }
.formacoes li span:not(.formacao-icone) { font-size: 0.875rem; color: var(--muted-foreground); }
.formacao-icone { display: grid; place-items: center; flex-shrink: 0; width: 2.75rem; height: 2.75rem; border-radius: 9999px; background: var(--secondary); color: var(--primary); }
.formacao-icone svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Especialidades */
.especialidade { padding: 1.5rem; }
.especialidade:nth-child(2) { transition-delay: 100ms; }
.especialidade:nth-child(3) { transition-delay: 200ms; }
.especialidade:nth-child(4) { transition-delay: 300ms; }
.especialidade .num { font-family: var(--font-display); font-size: 1.875rem; line-height: 2.25rem; color: var(--accent); }
.especialidade h3 { margin-top: 0.75rem; font-size: 1.25rem; line-height: 1.75rem; }
.especialidade p { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.25rem; color: var(--muted-foreground); }

/* Serviços */
.grid-servicos { display: grid; column-gap: 3rem; margin-top: 2.5rem; }
.servico { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; border-bottom-width: 1px; padding: 1.5rem 0; }
.servico > div { min-width: 0; }
.servico h3 { font-size: 1.25rem; line-height: 1.75rem; }
.servico p { margin-top: 0.25rem; font-size: 0.875rem; line-height: 1.25rem; color: var(--muted-foreground); }
.preco { flex-shrink: 0; font-weight: 700; color: var(--primary); }
.preco-avaliacao { flex-shrink: 0; max-width: 7rem; text-align: right; font-size: 0.8125rem; line-height: 1.125rem; color: var(--muted-foreground); }
.servico-popular, .servico-abrir { display: none; }
.servicos-nota { margin-top: 0.75rem; max-width: 36rem; color: var(--muted-foreground); }

/* Detalhes do serviço (celular) */
.sheet {
  margin: auto auto 0;
  width: 100%;
  max-width: 32rem;
  max-height: 85vh;
  padding: 0;
  border: 0;
  border-radius: 1.25rem 1.25rem 0 0;
  background: var(--card);
  color: var(--foreground);
}
.sheet[open] { animation: subir 0.25s ease; }
.sheet::backdrop { background: color-mix(in oklch, var(--foreground) 60%, transparent); }
@keyframes subir { from { transform: translateY(100%); } }
body:has(.sheet[open]) { overflow: hidden; }
.sheet-conteudo { padding: 1.5rem 1.25rem 2rem; }
.sheet-topo { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.sheet-titulo { font-size: 1.5rem; line-height: 2rem; color: var(--primary); }
.sheet-subtitulo { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); }
.sheet-fechar { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; flex-shrink: 0; border-radius: 9999px; background: var(--muted); }
.sheet-descricao { margin-top: 1rem; color: var(--muted-foreground); }
.sheet-preco { margin-top: 1rem; font-weight: 700; color: var(--primary); }
.sheet-agendar { display: block; margin-top: 1.5rem; text-align: center; }

/* Tratamentos */
.tratamento { overflow: hidden; text-align: left; }
.tratamento-img { overflow: hidden; }
.tratamento-img img { aspect-ratio: 1 / 1; width: 100%; object-fit: cover; transition: transform 0.5s; }
.tratamento:hover .tratamento-img img { transform: scale(1.05); }
.tratamento-info { padding: 1.25rem; }
.tag { font-size: 0.75rem; line-height: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); }
.tratamento h3 { margin-top: 0.25rem; font-size: 1.125rem; line-height: 1.75rem; }

/* Depoimentos */
.depoimentos { max-width: 48rem; margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; text-align: center; }
.depoimento { margin-top: 2.5rem; padding: 2rem; border-radius: calc(var(--radius) + 16px); }
.estrelas { font-size: 1.25rem; line-height: 1.75rem; color: var(--accent); }
.carrossel { margin-top: 1rem; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.5rem; }
.carrossel-janela { overflow: hidden; touch-action: pan-y; user-select: none; }
.carrossel-trilho { display: flex; align-items: center; transition: transform 0.5s ease; }
.slide { flex: 0 0 100%; padding: 0 0.25rem; }
.seta { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 9999px; border: 1px solid var(--border); font-size: 1.5rem; line-height: 1; color: var(--primary); transition: background-color 0.15s; }
.seta:hover { background: var(--secondary); }
.depoimento-texto { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.75rem; }
.depoimento-autor { margin-top: 1rem; font-weight: 700; color: var(--primary); }
.btn-avaliar { margin-top: 2rem; }
.dots { margin-top: 1.5rem; display: flex; justify-content: center; gap: 0.5rem; }
.dots button { height: 0.625rem; width: 0.625rem; border-radius: 9999px; background: var(--border); transition: all 0.15s; }
.dots button.ativo { width: 2rem; background: var(--primary); }

/* Contato */
.contato { background: var(--primary); color: var(--primary-foreground); text-align: center; }
.contato-acoes { margin-top: 2rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.contato-endereco { margin-top: 1rem; font-style: normal; line-height: 1.75rem; }
.contato-info { margin-top: 0.5rem; opacity: 0.8; }
.contato-mapa { display: block; width: fit-content; margin: 0.5rem auto 0; font-size: 0.875rem; text-decoration: underline; text-underline-offset: 3px; opacity: 0.9; }
.contato-mapa:hover { opacity: 1; }

/* Rodapé */
.footer { background: var(--foreground); color: oklch(0.85 0.02 150); font-size: 0.875rem; line-height: 1.5rem; }
.footer-grid { display: grid; gap: 2.5rem; padding-top: 2rem; padding-bottom: 1.5rem; }
.footer-marca p, .footer-col { display: none; }
.footer-logo { display: flex; align-items: center; justify-content: center; gap: 0.5rem; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--primary-foreground); }
.footer-logo img { height: 2.25rem; width: auto; filter: brightness(0) invert(1); }
.footer-marca { display: flex; justify-content: center; align-items: center; gap: 1rem; }
.footer-marca p { margin-top: 1rem; max-width: 20rem; }
.footer-instagram { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 9999px; border: 1px solid oklch(1 0 0 / 0.25); color: var(--primary-foreground); transition: background-color 0.15s; }
.footer-instagram:hover { background: oklch(1 0 0 / 0.1); }
.footer-col { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
.footer-col h3 { margin-bottom: 0.25rem; font-family: var(--font-sans); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); }
.footer-col address { font-style: normal; }
.footer-col a, .footer-dev a { transition: color 0.15s; }
.footer-col a:hover { color: var(--primary-foreground); }
.footer-base { display: flex; flex-direction: column; gap: 0.5rem; border-top: 1px solid oklch(1 0 0 / 0.12); padding-top: 1.5rem; padding-bottom: 5.5rem; font-size: 0.75rem; line-height: 1.25rem; text-align: center; opacity: 0.85; }
.footer-dev a { color: var(--primary-foreground); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.footer-dev a:hover { color: var(--accent); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 1.25rem; background: color-mix(in oklch, var(--foreground) 80%, transparent); }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 85vh; border-radius: calc(var(--radius) + 8px); }

/* WhatsApp flutuante */
.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 45;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 25px -8px rgb(0 0 0 / 0.35);
  transition: transform 0.2s;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 1.75rem; height: 1.75rem; fill: currentColor; }

/* Animação ao rolar */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-left { transform: translateX(-60px); }
.reveal-right { transform: translateX(60px); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Reduzir movimento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; transition-delay: 0s !important; animation: none !important; }
  .reveal, .reveal-left, .reveal-right { opacity: 1; transform: none; }
}

/* Breakpoints */
@media (min-width: 640px) {
  .grid-especialidades, .grid-tratamentos { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .menu-btn, .nav-mobile { display: none; }
  .hero { grid-template-columns: repeat(2, 1fr); gap: 3rem; padding-top: 3.5rem; padding-bottom: 5rem; }
  .hero h1 { font-size: 3.75rem; }
  h2 { font-size: 2.25rem; line-height: 2.5rem; }
  .contato h2 { font-size: 3rem; line-height: 1; }
  .grid-servicos { grid-template-columns: repeat(2, 1fr); }
  .sobre { grid-template-columns: 3fr 2fr; gap: 4rem; }
  .formacoes-card { padding: 2rem; }
  .depoimento { padding: 3rem; }
  .footer-grid { grid-template-columns: 2fr 1fr 1.5fr; padding-top: 3.5rem; padding-bottom: 2.5rem; }
  .footer-logo { justify-content: flex-start; }
  .footer-marca { display: block; }
  .footer-instagram { display: none; }
  .footer-marca p { display: block; }
  .footer-col { display: flex; }
  .footer-base { flex-direction: row; justify-content: space-between; padding-bottom: 1.5rem; padding-right: 5rem; text-align: left; }
  .depoimento-texto { font-size: 1.5rem; line-height: 2rem; }
}
@media (min-width: 1024px) {
  .grid-especialidades { grid-template-columns: repeat(4, 1fr); }
  .grid-tratamentos { grid-template-columns: repeat(3, 1fr); }
}

/* Celular: página mais curta */
@media (max-width: 767px) {
  .section { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .section.sobre { padding-top: 2rem; }

  /* Serviços em grade 2×4; detalhes abrem ao tocar */
  .grid-servicos { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-top: 2rem; }
  .servico {
    position: relative;
    align-items: center;
    gap: 0.5rem;
    min-height: 4.5rem;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 4px);
    background: var(--card);
  }
  .servico::after { content: "›"; font-size: 1.5rem; line-height: 1; color: var(--primary); }
  .servico p, .servico .preco, .servico .preco-avaliacao { display: none; }
  .servico > div { display: flex; flex-direction: column; }
  .servico h3 { font-family: var(--font-sans); font-weight: 700; font-size: 0.9375rem; line-height: 1.25rem; }
  .servico-popular:not(:empty) { display: block; order: 1; margin-top: 0.125rem; font-size: 0.8125rem; line-height: 1.125rem; color: var(--muted-foreground); }
  .servico-popular::before { content: "("; }
  .servico-popular::after { content: ")"; }
  .servico-abrir { display: block; position: absolute; inset: 0; border-radius: inherit; }
  .grid-servicos .reveal-left, .grid-servicos .reveal-right { transform: none; }
}
@media (max-width: 639px) {
  .grid-especialidades { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .especialidade { padding: 1rem; }
  .especialidade .num { font-size: 1.5rem; line-height: 2rem; }
  .especialidade h3 { margin-top: 0.5rem; font-size: 1rem; line-height: 1.375rem; }
  .especialidade p { font-size: 0.8125rem; line-height: 1.125rem; }

  /* Tratamentos com rolagem lateral */
  .grid-tratamentos {
    display: flex;
    gap: 1rem;
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    padding: 0 1.25rem 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 1.25rem;
    scrollbar-width: none;
  }
  .grid-tratamentos::-webkit-scrollbar { display: none; }
  .tratamento { flex: 0 0 80%; scroll-snap-align: start; }
}
