/* =====================================================
   Débora Martins Master Beauty · Bosque da Saúde, Cuiabá
   Paleta rosé/vinho derivada das fotos reais (DESIGN.md)
   ===================================================== */

:root {
  /* superfícies */
  --canvas: hsl(20, 30%, 97%);
  --superficie: hsl(15, 35%, 93%);
  --canvas-tom: hsl(16, 32%, 90%);
  --canvas-escuro: hsl(345, 20%, 14%);
  --canvas-escuro-2: hsl(345, 16%, 19%);

  /* tinta */
  --tinta: hsl(345, 18%, 16%);
  --texto-suave: hsl(348, 8%, 40%);
  --texto-inverso: hsl(20, 30%, 97%);
  --texto-inverso-suave: hsl(18, 22%, 76%);

  /* acentos */
  --acento: hsl(347, 50%, 40%);
  --acento-hover: hsl(347, 54%, 33%);
  --rose: hsl(350, 48%, 66%);
  --dourado: hsl(42, 62%, 60%);

  /* linhas e sombras */
  --hairline: hsla(345, 18%, 16%, .12);
  --hairline-forte: hsla(345, 18%, 16%, .24);
  --hairline-inversa: hsla(20, 30%, 97%, .16);
  --sombra: 0 18px 55px hsla(345, 30%, 20%, .10);
  --sombra-hover: 0 26px 70px hsla(345, 30%, 20%, .16);

  /* tipografia */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Sora", system-ui, sans-serif;
  --text-h1: clamp(2.15rem, 5.6vw, 4.1rem);
  --text-h2: clamp(1.7rem, 3.6vw, 2.8rem);
  --text-h3: clamp(1.2rem, 2vw, 1.4rem);
  --text-body: clamp(1rem, calc(.4vw + .93rem), 1.125rem);
  --text-kicker: .75rem;

  /* layout */
  --maxw: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-space: clamp(3.5rem, 7vw, 6.5rem);
  --header-h: 72px;

  /* raios e easing */
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 32px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-expo: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- base ---------- */

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  overflow-x: clip;
  background: var(--canvas);
  color: var(--tinta);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--acento); text-decoration: none; }

:focus-visible { outline: 2px solid var(--acento); outline-offset: 3px; }
.sec--escuro :focus-visible, #topo:not(.is-scrolled) :focus-visible { outline-color: var(--texto-inverso); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; }

h2 { font-size: var(--text-h2); letter-spacing: -.01em; }
h2 em { font-style: italic; color: var(--acento); }
.sec--escuro h2 em { color: var(--rose); }

.container { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.sec { padding-block: var(--section-space); }
.sec--tom { background: var(--canvas-tom); }
.sec--claro { background: var(--canvas); }
.sec--escuro { background: var(--canvas-escuro); color: var(--texto-inverso); }

.kicker {
  font-size: var(--text-kicker);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--acento);
}
.sec--escuro .kicker { color: var(--rose); }

.sec-header { max-width: 40rem; margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.sec-header h2 { margin-top: .5rem; }
.sec-sub { margin-top: .75rem; color: var(--texto-suave); }
.sec--escuro .sec-sub { color: var(--texto-inverso-suave); }

.micro { font-size: .8rem; color: var(--texto-suave); }

/* ---------- botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}

.btn--primario { background: var(--acento); color: var(--texto-inverso); }
.btn--primario:hover { background: var(--acento-hover); transform: translateY(-2px); box-shadow: var(--sombra-hover); }
.btn--primario:active { transform: translateY(0); box-shadow: var(--sombra); }

.btn--ghost { border: 1.5px solid hsla(20, 30%, 97%, .55); color: var(--texto-inverso); }
.btn--ghost:hover { border-color: var(--rose); color: var(--rose); transform: translateY(-2px); }

.btn--compacto { min-height: 42px; padding: 9px 20px; font-size: .9rem; }
.btn--grande { padding: 15px 34px; font-size: 1.05rem; }

.ico-zap { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }

/* ---------- header fixo (SÓ por id) ---------- */

#topo {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background-color .2s var(--ease), box-shadow .2s var(--ease);
}

.topo-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--texto-inverso);
  line-height: 1.1;
}
.logo span {
  display: block;
  font-family: var(--font-body);
  font-size: .62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--rose);
}

.topo-nav { display: flex; gap: 1.4rem; margin-left: auto; }
.topo-nav a {
  color: var(--texto-inverso);
  font-size: .92rem;
  font-weight: 600;
  padding: .6rem .15rem;
  position: relative;
}
.topo-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .3rem;
  height: 2px;
  background: var(--rose);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.topo-nav a:hover::after { transform: scaleX(1); }

#topo .btn--compacto { margin-left: auto; }
#topo .topo-nav + .btn--compacto { margin-left: 0; }

#topo.is-scrolled {
  background: hsla(20, 30%, 97%, .92);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--hairline), 0 10px 30px hsla(345, 30%, 20%, .08);
}
#topo.is-scrolled .logo { color: var(--tinta); }
#topo.is-scrolled .logo span { color: var(--acento); }
#topo.is-scrolled .topo-nav a { color: var(--tinta); }
#topo.is-scrolled .topo-nav a::after { background: var(--acento); }

/* ---------- hero ---------- */

.sec-hero {
  position: relative;
  min-height: 640px;
  min-height: 92svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--texto-inverso);
}

.hero-foto {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  animation: hero-zoom 1.6s var(--ease-expo) both;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, hsla(345, 25%, 8%, .86) 0%, hsla(345, 22%, 10%, .55) 42%, hsla(345, 22%, 10%, .18) 78%, hsla(345, 22%, 10%, .3) 100%);
}

.hero-conteudo {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: calc(var(--header-h) + 3rem) var(--gutter) clamp(2.5rem, 6vh, 4.5rem);
  max-width: min(var(--maxw), 100%);
}

.hero-conteudo > * { animation: hero-rise .8s var(--ease) both; }
.hero-conteudo > *:nth-child(2) { animation-delay: .12s; }
.hero-conteudo > *:nth-child(3) { animation-delay: .24s; }
.hero-conteudo > *:nth-child(4) { animation-delay: .36s; }
.hero-conteudo > *:nth-child(5) { animation-delay: .44s; }
.hero-conteudo > *:nth-child(6) { animation-delay: .52s; }

.sec-hero .kicker { color: var(--rose); }

.sec-hero h1 {
  font-size: var(--text-h1);
  max-width: 13ch;
  margin-top: .9rem;
  text-wrap: balance;
}

.traco-wrap { position: relative; font-style: italic; white-space: nowrap; }
.traco {
  position: absolute;
  left: -2%;
  bottom: -.28em;
  width: 104%;
  height: .34em;
  overflow: visible;
  pointer-events: none;
}
.traco path {
  fill: none;
  stroke: var(--rose);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
  animation: traco-desenha .7s var(--ease-expo) .85s both;
}

.hero-sub {
  max-width: 34rem;
  margin-top: 1.1rem;
  color: hsla(20, 30%, 97%, .88);
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

.hero-micro { margin-top: .7rem; font-size: .8rem; color: hsla(20, 30%, 97%, .72); }

.badge-nota {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-top: 1.4rem;
  padding: .55rem 1rem;
  border: 1px solid var(--hairline-inversa);
  border-radius: 999px;
  background: hsla(345, 25%, 10%, .45);
  backdrop-filter: blur(6px);
  color: var(--texto-inverso);
  font-size: .9rem;
}
.badge-nota:hover { border-color: var(--rose); }

.estrelas { display: inline-flex; gap: .12rem; color: var(--dourado); font-size: 1rem; line-height: 1; }
.estrelas i { font-style: normal; }

.sec-hero .estrelas i {
  animation: estrela-in .45s var(--ease) both;
  animation-delay: calc(.95s + var(--i) * 80ms);
}

/* ---------- trust-strip ---------- */

.trust-strip {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 2.2rem;
  padding-bottom: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
  border-bottom: 1px solid var(--hairline);
  font-size: .92rem;
  color: var(--texto-suave);
}
.trust-strip strong { color: var(--tinta); }

/* ---------- serviços ---------- */

.cards-servicos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.card-servico {
  display: flex;
  flex-direction: column;
  background: var(--canvas);
  border: 1px solid transparent;
  border-radius: var(--r-md);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  box-shadow: var(--sombra);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card-servico:hover {
  transform: translateY(-4px);
  box-shadow: var(--sombra-hover);
  border-color: var(--acento);
}

.card-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--superficie);
  color: var(--acento);
  margin-bottom: 1.1rem;
}
.card-ico svg { width: 28px; height: 28px; }

.card-servico h3 { font-size: var(--text-h3); margin-bottom: .5rem; }
.card-servico p { color: var(--texto-suave); font-size: .95rem; }

.card-link {
  margin-top: auto;
  padding-top: 1.2rem;
  align-self: flex-start;
  font-weight: 600;
  font-size: .92rem;
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: flex-end;
}
.card-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--acento);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.card-link:hover::after { transform: scaleX(1); }

/* ---------- galeria ---------- */

.galeria-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(.9rem, 2vw, 1.5rem);
}

.galeria-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  aspect-ratio: 4 / 3;
  box-shadow: var(--sombra);
}
.galeria-item--grande { grid-row: span 2; aspect-ratio: auto; }

.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.galeria-item--grande img { position: absolute; inset: 0; }
.galeria-item:nth-child(3) img { object-position: center 30%; }

.galeria-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.2rem 1.1rem .85rem;
  background: linear-gradient(to top, hsla(345, 25%, 8%, .78), hsla(345, 25%, 8%, 0));
  color: var(--texto-inverso);
  font-size: .82rem;
  line-height: 1.4;
}

@media (hover: hover) and (pointer: fine) {
  .galeria-item:hover img { transform: scale(1.03); }
}

.galeria-cta {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}

/* ---------- avaliações ---------- */

.nota-grande {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-top: 1.1rem;
  font-size: 1.05rem;
  color: var(--texto-inverso-suave);
}
.nota-grande strong {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  color: var(--texto-inverso);
}

.estrelas--grande { font-size: clamp(1.3rem, 2.6vw, 1.7rem); gap: .2rem; }
.estrelas--grande i {
  opacity: 0;
  transform: translateY(8px) scale(.6);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  transition-delay: calc(var(--i) * 90ms + .15s);
}
.nota-grande.is-in .estrelas--grande i { opacity: 1; transform: none; }

.cards-review {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.card-review {
  position: relative;
  background: var(--canvas-escuro-2);
  border: 1px solid var(--hairline-inversa);
  border-radius: var(--r-md);
  padding: clamp(1.5rem, 3vw, 2rem);
  padding-top: clamp(2.2rem, 4vw, 2.8rem);
}
.card-review::before {
  content: "\201C";
  position: absolute;
  top: .4rem;
  left: 1.2rem;
  font-family: var(--font-display);
  font-size: 3.2rem;
  line-height: 1;
  color: var(--rose);
  opacity: .8;
}
.card-review p { font-size: .95rem; color: hsla(20, 30%, 97%, .88); }
.card-review footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: 1.1rem;
  padding-top: .9rem;
  border-top: 1px solid var(--hairline-inversa);
}
.card-review cite { font-style: normal; font-weight: 600; font-size: .9rem; }
.review-estrelas { color: var(--dourado); font-size: .8rem; letter-spacing: .1em; }

.reviews-fonte {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1.5rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  font-size: .82rem;
  color: var(--texto-inverso-suave);
}
.reviews-fonte a {
  color: var(--rose);
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.reviews-fonte a:hover { text-decoration: underline; }

/* ---------- fechamento ---------- */

.fechamento {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-top: var(--section-space);
  padding-top: var(--section-space);
  border-top: 1px solid var(--hairline-inversa);
}

.fechamento-foto {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sombra-hover);
}
.fechamento-foto img { width: 100%; height: auto; }
.fechamento-foto figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.2rem 1.1rem .85rem;
  background: linear-gradient(to top, hsla(345, 25%, 8%, .8), hsla(345, 25%, 8%, 0));
  font-size: .82rem;
}

.fechamento-info h2 { max-width: 15ch; }
.fechamento-info > p { margin-top: .9rem; max-width: 32rem; color: var(--texto-inverso-suave); }
.fechamento-info .btn { margin-top: 1.5rem; }

.fechamento-endereco { margin-top: 1.75rem; font-style: normal; line-height: 1.6; }
.fechamento-endereco a { display: block; color: var(--texto-inverso); padding-block: .3rem; }
.fechamento-endereco a:hover { color: var(--rose); }
.fechamento-endereco a span { font-size: .85rem; color: var(--texto-inverso-suave); }
.fechamento-tel { font-weight: 600; font-size: 1.05rem; }

.horarios {
  list-style: none;
  margin-top: 1.25rem;
  max-width: 24rem;
  font-size: .9rem;
}
.horarios li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .45rem;
  border-bottom: 1px solid var(--hairline-inversa);
  color: var(--texto-inverso-suave);
}
.horarios li.is-hoje { color: var(--texto-inverso); font-weight: 600; }
.horarios li.is-hoje span:first-child::after { content: " · hoje"; color: var(--rose); }

/* ---------- rodapé ---------- */

.rodape {
  margin-top: var(--section-space);
  border-top: 1px solid var(--hairline-inversa);
  padding-block: 2.25rem;
  font-size: .88rem;
  color: var(--texto-inverso-suave);
}
.rodape-inner { display: grid; gap: .45rem; }
.rodape-nome { font-family: var(--font-display); font-size: 1.1rem; color: var(--texto-inverso); }
.rodape-nome span { font-family: var(--font-body); font-size: .62rem; text-transform: uppercase; letter-spacing: .22em; color: var(--rose); display: block; }
.rodape a { color: var(--texto-inverso-suave); text-decoration: underline; text-underline-offset: 3px; }
.rodape a:hover { color: var(--rose); }
.rodape-legal { margin-top: .8rem; font-size: .78rem; }

/* ---------- sticky CTA bar (mobile) ---------- */

.cta-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 60;
  padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom));
  background: hsla(345, 25%, 10%, .9);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--hairline-inversa);
  transform: translateY(110%);
  transition: transform .35s var(--ease);
}
.cta-bar.is-on { transform: none; }
.cta-bar.is-on.is-off { transform: translateY(110%); }

.cta-bar-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 50px;
  border-radius: var(--r-sm);
  background: var(--acento);
  color: var(--texto-inverso);
  font-weight: 600;
}
.cta-bar-link:active { background: var(--acento-hover); }

/* ---------- zap-float (desktop) ---------- */

.zap-float {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 60;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--acento);
  color: var(--texto-inverso);
  box-shadow: var(--sombra-hover);
  animation: zap-in .4s var(--ease) 1.2s both;
  transition: opacity .25s var(--ease), transform .25s var(--ease), background-color .2s var(--ease);
}
.zap-float .ico-zap { width: 28px; height: 28px; }
.zap-float:hover { background: var(--acento-hover); transform: translateY(-3px); }
.zap-float.is-hidden { opacity: 0; transform: scale(.6); pointer-events: none; }

/* ---------- reveals (SÓ verticais) ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
[data-reveal="zoom"] {
  transform: translateY(10px) scale(.96);
  transition-duration: .8s;
  transition-timing-function: var(--ease-expo);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- keyframes ---------- */

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
@keyframes hero-zoom {
  from { opacity: 0; transform: scale(1.03); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes traco-desenha {
  to { stroke-dashoffset: 0; }
}
@keyframes estrela-in {
  from { opacity: 0; transform: translateY(8px) scale(.6); }
  to { opacity: 1; transform: none; }
}
@keyframes zap-in {
  from { opacity: 0; transform: scale(.6); }
  to { opacity: 1; transform: scale(1); }
}

/* ---------- responsivo ---------- */

@media (min-width: 769px) {
  .cta-bar { display: none; }
}

@media (max-width: 900px) {
  .cards-servicos { grid-template-columns: 1fr; }
  .cards-review { grid-template-columns: 1fr; }
  .fechamento { grid-template-columns: 1fr; }
  .fechamento-foto { max-width: 420px; }
}

@media (max-width: 768px) {
  .zap-float { display: none; }
  .topo-nav { display: none; }
  .rodape { padding-bottom: calc(2.25rem + 70px + env(safe-area-inset-bottom)); }
}

@media (max-width: 640px) {
  .galeria-grid { grid-template-columns: 1fr; }
  .galeria-item--grande { grid-row: auto; aspect-ratio: 4 / 5; }
  .galeria-item--grande img { position: static; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .badge-nota { font-size: .84rem; }
}

/* ---------- reduced motion (regra dura) ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
}
