/* ============================================================
   Patricia Arruda - Studio Hair e Sobrancelhas
   Paleta rosé suave · Fraunces + Sora · ver DESIGN.md
   ============================================================ */

:root {
  /* superfícies */
  --canvas:          hsl(22, 34%, 97%);
  --superficie:      hsl(16, 34%, 93%);
  --canvas-tom:      hsl(16, 32%, 90%);
  --canvas-escuro:   hsl(345, 24%, 13%);
  --canvas-escuro-2: hsl(345, 18%, 18%);

  /* tinta */
  --tinta:           hsl(345, 16%, 16%);
  --texto-suave:     hsl(345, 9%, 40%);
  --texto-inverso:   hsl(22, 34%, 96%);
  --texto-inverso-suave: hsl(20, 16%, 74%);

  /* acento */
  --acento:          hsl(350, 45%, 62%);   /* rosé claro: fills/bordas/decoração */
  --acento-profundo: hsl(345, 54%, 40%);   /* rosé profundo: texto e CTA (AA) */
  --acento-hover:    hsl(345, 58%, 32%);
  --dourado:         hsl(38, 46%, 56%);

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

  /* tipografia */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Sora", system-ui, -apple-system, sans-serif;
  --text-h1: clamp(2.1rem, 6.2vw, 4.4rem);
  --text-h2: clamp(1.85rem, 4vw, 3rem);
  --text-h3: clamp(1.2rem, 2vw, 1.5rem);
  --text-body: clamp(1rem, calc(.35vw + .94rem), 1.1rem);
  --text-number: clamp(3rem, 8vw, 5.5rem);
  --text-kicker: .74rem;

  /* layout */
  --maxw: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-space: clamp(3.5rem, 7vw, 6.5rem);
  --content-gap: clamp(1.5rem, 3vw, 3rem);
  --header-h: 68px;

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

/* ---------- reset enxuto ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.65;
  color: var(--tinta);
  background: var(--canvas);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 0;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; }
em { font-style: italic; }
ul, ol { list-style: none; padding: 0; }

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

.pular {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--acento-profundo); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--r-sm) 0;
}
.pular:focus { left: 0; }

/* ---------- kicker ---------- */
.kicker {
  font-size: var(--text-kicker);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 600;
  color: var(--acento-profundo);
}
.kicker--claro { color: hsl(350 82% 94%); text-shadow: 0 1px 8px hsl(345 40% 8% / .7); }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-body); font-weight: 600; font-size: .98rem;
  line-height: 1; text-align: center;
  border: 1px solid transparent; border-radius: var(--r-pill);
  padding: 15px 26px; min-height: 48px; cursor: pointer;
  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--grande { background: var(--acento-profundo); color: #fff; box-shadow: var(--sombra); padding: 16px 30px; font-size: 1.02rem; }
.btn--grande:hover { background: var(--acento-hover); transform: translateY(-2px); box-shadow: var(--sombra-hover); }
.btn--grande:active { transform: translateY(0); }
.btn--acento { background: var(--acento-profundo); color: #fff; }
.btn--acento:hover { background: var(--acento-hover); transform: translateY(-2px); box-shadow: var(--sombra-hover); }
.btn--mini { background: var(--acento-profundo); color: #fff; padding: 11px 18px; min-height: 44px; font-size: .9rem; }
.btn--mini:hover { background: var(--acento-hover); transform: translateY(-1px); }
.btn--ghost-claro { background: hsl(22 34% 96% / .10); color: #fff; border-color: hsl(22 34% 96% / .5); backdrop-filter: blur(4px); }
.btn--ghost-claro:hover { border-color: #fff; background: hsl(22 34% 96% / .18); transform: translateY(-2px); }
.btn--full { width: 100%; }
.ico-zap { width: 20px; height: 20px; flex: 0 0 auto; fill: currentColor; }

/* ---------- traço assinatura (sobrancelha) ---------- */
.traco { color: var(--acento); width: clamp(150px, 34vw, 260px); height: auto; }
.traco--hero { color: hsl(350 55% 74%); margin-top: .3rem; }
.traco--divisor { margin: .6rem auto 0; }
.traco path { stroke-dasharray: 340; stroke-dashoffset: 340; }
.traco--hero path { animation: desenha 1s var(--ease) .5s forwards; }
[data-traco].is-in path { animation: desenha .8s var(--ease) forwards; }
@keyframes desenha { to { stroke-dashoffset: 0; } }

/* ============================================================
   HEADER
   ============================================================ */
#topo {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background-color .25s var(--ease), box-shadow .25s var(--ease), backdrop-filter .25s var(--ease);
}
.topo-in {
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding: 12px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: var(--header-h);
}
#topo.is-scrolled {
  background: hsl(22 34% 97% / .88);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--hairline), var(--sombra);
}
.marca { display: flex; flex-direction: column; line-height: 1.1; }
.marca-nome { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--tinta); }
.marca-tag { font-size: .62rem; text-transform: uppercase; letter-spacing: .2em; color: var(--acento-profundo); font-weight: 600; }
#hero .marca-nome, .hero .marca-nome { }
/* logo legível também no topo transparente sobre o hero escuro */
#topo:not(.is-scrolled) .marca-nome { color: #fff; text-shadow: 0 1px 10px hsl(345 40% 8% / .6); }
#topo:not(.is-scrolled) .marca-tag { color: hsl(350 74% 90%); text-shadow: 0 1px 8px hsl(345 40% 8% / .6); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: clamp(2.5rem, 6vh, 4.5rem);
  overflow: hidden;
  isolation: isolate;
}
.hero-midia { position: absolute; inset: 0; z-index: -2; }
.hero-midia img { position: relative; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% center; animation: hero-zoom 1.5s var(--ease-expo) both; }
/* o scrim vive DENTRO de .hero-midia (contexto de empilhamento proprio):
   precisa de z-index POSITIVO pra ficar sobre a <img>, nao negativo */
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(96deg, hsl(345 40% 10% / .8) 0%, hsl(345 38% 12% / .62) 34%, hsl(345 30% 14% / .28) 66%, hsl(345 30% 14% / .14) 88%),
    linear-gradient(0deg, hsl(345 40% 10% / .5) 0%, transparent 45%);
}
.hero-conteudo { position: relative; max-width: 46rem; color: #fff; }
.hero-conteudo > * { animation: hero-rise .85s var(--ease) both; }
.hero-conteudo > *:nth-child(2) { animation-delay: .1s; }
.hero-conteudo > *:nth-child(3) { animation-delay: .2s; }
.hero-conteudo > *:nth-child(4) { animation-delay: .32s; }
.hero-conteudo > *:nth-child(5) { animation-delay: .44s; }
.hero-conteudo > *:nth-child(6) { animation-delay: .54s; }
.hero-titulo {
  font-size: var(--text-h1); font-weight: 600;
  margin-top: 1rem; text-wrap: balance;
  text-shadow: 0 2px 24px hsl(345 40% 8% / .6), 0 1px 4px hsl(345 40% 8% / .4);
}
.hero-titulo em { color: hsl(350 72% 88%); font-weight: 500; }
.hero-sub { margin-top: 1.2rem; max-width: 34rem; color: hsl(22 30% 96%); font-size: clamp(1rem, 1.4vw, 1.18rem); text-shadow: 0 1px 10px hsl(345 40% 8% / .5); }
.hero-ctas { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: .8rem; }
.estrelas { color: var(--dourado); letter-spacing: .06em; font-size: 1rem; }
.hero-micro { margin-top: 1.2rem; font-size: .84rem; color: hsl(22 22% 92%); text-shadow: 0 1px 8px hsl(345 40% 8% / .5); }

@keyframes hero-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes hero-zoom { from { opacity: 0; transform: scale(1.07); } to { opacity: 1; transform: scale(1); } }

/* ============================================================
   SECOES - ritmo claro/tom/escuro
   ============================================================ */
.sec { padding-block: var(--section-space); position: relative; }
.sec--claro { background: var(--canvas); color: var(--tinta); }
.sec--tom { background: var(--canvas-tom); color: var(--tinta); }
.sec--escuro { background: var(--canvas-escuro); color: var(--texto-inverso); }

.sec-cabeca { max-width: 40rem; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.sec-cabeca--centro { margin-inline: auto; text-align: center; }
.sec-titulo { font-size: var(--text-h2); margin-top: .7rem; text-wrap: balance; }
.sec-titulo em { color: var(--acento-profundo); font-weight: 500; }
.sec--escuro .sec-titulo em { color: hsl(350 60% 78%); }
.sec-lead { margin-top: 1rem; color: var(--texto-suave); }
.sec--escuro .sec-lead { color: var(--texto-inverso-suave); }

/* ---------- trust strip ---------- */
.confianca-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.confianca-item { text-align: center; padding: .5rem; display: flex; flex-direction: column; gap: .25rem; }
.confianca-item + .confianca-item { border-left: 1px solid var(--hairline); }
.confianca-num { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 4vw, 2.6rem); color: var(--acento-profundo); line-height: 1; }
.confianca-num--txt { font-size: clamp(1.3rem, 3.2vw, 2.1rem); }
.confianca-estrela { color: var(--dourado); font-size: .7em; margin-left: .1em; }
.confianca-a { font-family: var(--font-body); font-weight: 400; font-size: .5em; color: var(--texto-suave); padding-inline: .18em; vertical-align: middle; }
.confianca-rot { font-size: .82rem; color: var(--texto-suave); }

/* ---------- especialidades ---------- */
.esp {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center; margin-top: clamp(2.5rem, 5vw, 4rem);
}
.esp:first-of-type { margin-top: 0; }
.esp-midia { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sombra); background: var(--superficie); }
.esp-midia img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .7s var(--ease); filter: saturate(1.05); }
.esp-midia:hover img { transform: scale(1.04); }
.esp:first-of-type .esp-midia img { object-position: center 30%; }
.esp-eyebrow { font-family: var(--font-body); font-size: var(--text-kicker); text-transform: uppercase; letter-spacing: .18em; font-weight: 600; color: var(--acento-profundo); }
.esp-titulo { font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin-top: .6rem; }
.esp-desc { margin-top: 1rem; color: var(--texto-suave); }
.citacao { margin-top: 1.4rem; padding-left: 1.1rem; border-left: 3px solid var(--acento); }
.citacao blockquote { font-family: var(--font-display); font-style: italic; font-size: 1.12rem; color: var(--tinta); }
.citacao figcaption { margin-top: .5rem; font-size: .85rem; color: var(--texto-suave); display: flex; align-items: center; gap: .5rem; }
.estrelas--mini { font-size: .8rem; }
.esp .btn--acento { margin-top: 1.6rem; }

@media (min-width: 721px) {
  .esp--inverte .esp-midia { order: 2; }
  .esp--inverte .esp-texto { order: 1; }
}

/* ---------- como funciona ---------- */
.passos { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 3vw, 2rem); }
.passo {
  position: relative; background: var(--canvas); border: 1px solid var(--hairline);
  border-radius: var(--r-md); padding: 2rem 1.6rem 1.8rem; overflow: hidden;
}
.passo-num {
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-number);
  color: var(--acento); opacity: .22; line-height: .8; display: block;
  position: absolute; top: .3rem; right: 1rem;
}
.passo-titulo { font-size: 1.3rem; position: relative; }
.passo p { margin-top: .6rem; color: var(--texto-suave); position: relative; }

.quem {
  margin-top: clamp(2rem, 4vw, 3.2rem);
  display: grid; grid-template-columns: auto 1fr; gap: clamp(1.2rem, 3vw, 2.5rem);
  align-items: center;
  background: var(--canvas); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); padding: clamp(1.6rem, 3vw, 2.6rem);
}
.quem-selo {
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--superficie); display: grid; place-items: center;
}
.quem-selo .traco { width: 54px; color: var(--acento-profundo); }
.quem-selo .traco path { stroke-dashoffset: 0; }
.quem-titulo { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-top: .4rem; }
.quem-texto p:last-child { margin-top: .7rem; color: var(--texto-suave); }

/* ---------- avaliações ---------- */
.nota-grande { display: inline-flex; align-items: center; gap: 1rem; margin-top: .8rem; }
.nota-valor { font-family: var(--font-display); font-weight: 600; font-size: var(--text-number); line-height: .9; color: #fff; }
.nota-lado { display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; }
.estrelas--grande { font-size: 1.4rem; }
.nota-info { font-size: .9rem; color: var(--texto-inverso-suave); }
.link-google {
  display: inline-block; margin-top: 1rem; color: hsl(350 60% 82%); font-weight: 600; font-size: .95rem;
  border-bottom: 1px solid hsl(350 60% 82% / .5); padding-bottom: 2px;
}
.link-google:hover { color: #fff; border-color: #fff; }

.reviews { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: clamp(2rem, 4vw, 3rem); }
.review {
  position: relative; background: var(--canvas-escuro-2); border: 1px solid var(--hairline-inversa);
  border-radius: var(--r-md); padding: 2.2rem 1.5rem 1.5rem;
}
.review-aspas { position: absolute; top: .1rem; left: 1rem; font-family: var(--font-display); font-size: 3.4rem; line-height: 1; color: var(--acento); opacity: .5; }
.review blockquote { position: relative; color: var(--texto-inverso); font-size: 1.02rem; }
.review figcaption { margin-top: 1.1rem; display: flex; flex-direction: column; gap: .3rem; }
.review-nome { font-weight: 600; font-size: .9rem; color: var(--texto-inverso); }
.consulta { margin-top: 1.8rem; text-align: center; font-size: .82rem; color: var(--texto-inverso-suave); }

/* ---------- agendar / localização ---------- */
.agendar-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.8rem, 4vw, 3.5rem); align-items: start; }
.info { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1.8rem; }
.info-titulo { font-size: 1rem; font-family: var(--font-body); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--acento-profundo); margin-bottom: .6rem; }
.info-bloco p { color: var(--texto-suave); }
.horarios li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid var(--hairline); font-size: .95rem; }
.horarios li span:first-child { color: var(--tinta); }
.horarios li span:last-child { color: var(--texto-suave); font-variant-numeric: tabular-nums; }
.horarios-fechado span:last-child { color: var(--acento-profundo); font-weight: 600; }
.agendar-texto .btn--grande { margin-top: 2rem; }
.agendar-mapa { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sombra); border: 1px solid var(--hairline); background: var(--superficie); }
.agendar-mapa iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.rodape { background: var(--canvas-escuro); color: var(--texto-inverso); padding-top: clamp(3rem, 6vw, 5rem); }
.rodape-in { display: grid; grid-template-columns: 1.2fr 2fr; gap: clamp(1.8rem, 4vw, 3rem); padding-bottom: 2.5rem; }
.rodape-marca .marca-nome { color: #fff; font-size: 1.4rem; }
.rodape-marca .marca-tag { color: hsl(350 60% 80%); }
.rodape-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.rodape-col h4 { font-family: var(--font-body); font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: hsl(350 55% 78%); margin-bottom: .7rem; }
.rodape-col a, .rodape-col p { display: block; color: var(--texto-inverso-suave); font-size: .92rem; margin-bottom: .35rem; }
.rodape-col a:hover { color: #fff; }
.rodape-fim {
  border-top: 1px solid var(--hairline-inversa); padding-block: 1.4rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem;
  font-size: .8rem; color: var(--texto-inverso-suave);
}

/* ============================================================
   REVEAL (motion)
   ============================================================ */
[data-reveal] {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--d, 0) * 80ms);
}
[data-reveal="zoom"] { transform: translateY(24px) scale(.97); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ============================================================
   STICKY CTA MOBILE + ZAP FLOAT
   ============================================================ */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: hsl(22 34% 97% / .92); backdrop-filter: blur(10px);
  box-shadow: 0 -1px 0 var(--hairline), 0 -10px 30px hsl(345 30% 20% / .10);
  transform: translateY(120%); transition: transform .35s var(--ease);
}
.sticky-cta.is-on { transform: translateY(0); }
@media (min-width: 721px) { .sticky-cta { display: none; } }

.zap-float {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 85;
  width: 58px; height: 58px; border-radius: 50%;
  background: hsl(145 63% 42%); color: #fff;
  display: grid; place-items: center; box-shadow: var(--sombra-hover);
  transition: transform .25s var(--ease), opacity .25s var(--ease);
  animation: zap-in .4s var(--ease) 1.2s both;
}
.zap-float svg { width: 30px; height: 30px; fill: currentColor; }
.zap-float:hover { transform: scale(1.08); }
.zap-float.is-hidden { opacity: 0; transform: scale(.6); pointer-events: none; }
@keyframes zap-in { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: scale(1); } }

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 960px) {
  .reviews { grid-template-columns: repeat(2, 1fr); }
  .agendar-grid { grid-template-columns: 1fr; }
  .agendar-mapa iframe { min-height: 300px; }
  .rodape-in { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  /* no mobile o texto ocupa a largura toda: o scrim precisa ser vertical,
     senao a coluna cai na parte transparente do gradiente horizontal */
  .hero-scrim {
    background:
      linear-gradient(0deg, hsl(345 42% 9% / .88) 0%, hsl(345 40% 10% / .74) 45%, hsl(345 34% 12% / .5) 78%, hsl(345 32% 13% / .42) 100%);
  }
  .esp { grid-template-columns: 1fr; gap: 1.4rem; }
  .esp-midia img { aspect-ratio: 3 / 2; }
  .esp:first-of-type .esp-midia img { object-position: center 28%; }
  .passos { grid-template-columns: 1fr; }
  .quem { grid-template-columns: 1fr; text-align: left; }
  .confianca-grid { grid-template-columns: repeat(2, 1fr); gap: 1.2rem 1rem; }
  .confianca-item:nth-child(odd) { border-left: none; }
  .confianca-item:nth-child(3) { border-top: 1px solid var(--hairline); padding-top: 1.2rem; }
  .confianca-item:nth-child(4) { border-top: 1px solid var(--hairline); padding-top: 1.2rem; }
  /* espaço para a sticky bar não cobrir conteúdo */
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .zap-float { display: none; }
  .rodape-fim { flex-direction: column; }
}

@media (max-width: 480px) {
  .reviews { grid-template-columns: 1fr; }
  .info { grid-template-columns: 1fr; }
  .rodape-cols { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; }
}

/* header CTA some no mobile bem estreito (a sticky bar cobre) */
@media (max-width: 420px) {
  .btn--mini span { display: none; }
  .btn--mini { padding: 11px 14px; }
}

/* ============================================================
   PREFERS-REDUCED-MOTION (regra dura)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .traco path { stroke-dashoffset: 0 !important; }
}
