/* ============================================================
   Nayara Cris — Centro de Saúde Capilar
   Mesma identidade da página do workshop: off-white, nude,
   rosé queimado, café e dourado. Cormorant Garamond + Jost.
   ============================================================ */

/* ---------- 1. TOKENS ---------- */
:root {
  --off-white:  #F8F4EE;
  --bege-claro: #EFE7DB;
  --nude:       #E3D2C2;
  --nude-soft:  #EADDD0;
  --champagne:  #E5D1B0;
  --terra:      #8C6446;   /* acento da marca */
  --terra-deep: #6B4A34;
  /* Alternativa em verde: --terra: #6F7A5C; --terra-deep: #55603F; */
  --marrom:     #5A4338;
  --cafe:       #34261E;
  --cafe-ink:   #241A14;
  --gold:       #C6A263;
  --gold-soft:  #D8BE8C;
  --oliva:      #6E745B;

  --ink:      var(--cafe-ink);
  --ink-soft: #6B594C;
  --line:      rgba(52, 38, 30, .12);
  --line-soft: rgba(52, 38, 30, .07);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans:  "Jost", -apple-system, "Segoe UI", sans-serif;

  --step--1: clamp(.78rem, .74rem + .2vw, .9rem);
  --step-0:  clamp(1rem, .95rem + .25vw, 1.12rem);
  --step-1:  clamp(1.15rem, 1.05rem + .45vw, 1.42rem);
  --step-2:  clamp(1.7rem, 1.35rem + 1.4vw, 2.6rem);
  --step-3:  clamp(2.1rem, 1.55rem + 2.4vw, 3.5rem);

  --section-y: clamp(4rem, 2.5rem + 6vw, 7.5rem);
  --radius:    18px;
  --radius-lg: 26px;
  --shadow:    0 30px 64px -34px rgba(52,38,30,.6);
  --ease:      cubic-bezier(.22,.61,.36,1);
  --maxw:      1140px;
  --gutter:    clamp(1.25rem, 2.6vw, 2rem);
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: var(--step-0);
  line-height: 1.7;
  color: var(--ink);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--terra); color: var(--off-white); }

/* ---------- 3. BASE DE TEXTO ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; color: var(--cafe); }
h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }
h1 .line { display: block; }
.serif-accent { font-family: var(--serif); font-style: italic; color: var(--terra); }
.lead { font-size: var(--step-1); font-weight: 300; line-height: 1.6; color: var(--ink-soft); }
.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2 * var(--gutter), 720px); margin-inline: auto; }
p { max-width: 62ch; }

.pill {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .48em 1.05em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.6);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: var(--step--1);
  letter-spacing: .05em;
  color: var(--marrom);
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--oliva); flex: none; }
.pill--gold { border-color: var(--gold); color: var(--terra-deep); }
.pill .stars { color: var(--gold); letter-spacing: .1em; }

/* ---------- 4. BOTÕES ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  padding: 1.02em 2.2em;
  font-family: inherit;
  font-size: var(--step-0); font-weight: 400; letter-spacing: .03em;
  color: var(--off-white); background: var(--cafe);
  border-radius: 999px;
  overflow: hidden; isolation: isolate;
  box-shadow: 0 18px 38px -22px rgba(52,38,30,.75);
  transition: transform .4s var(--ease), background-color .4s var(--ease), box-shadow .4s var(--ease);
}
.btn::before { /* brilho que atravessa no hover */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 20%, rgba(214,190,140,.5) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform .9s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 26px 48px -24px rgba(52,38,30,.8); }
.btn:hover::before { transform: translateX(120%); }
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn--terra { background: var(--terra); }
.btn--terra:hover { background: var(--terra-deep); }
.btn--light { background: var(--off-white); color: var(--cafe); }
.btn--light:hover { background: var(--champagne); }
.btn--sm { padding: .72em 1.35em; font-size: var(--step--1); box-shadow: none; }

/* ---------- 5. HEADER ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .8rem clamp(1.1rem, 4vw, 3rem);
  background: rgba(248,244,238,.6);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background-color .4s var(--ease), border-color .4s var(--ease);
}
.site-header.is-scrolled { background: rgba(248,244,238,.92); border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: .75rem; }
.brand__logo { width: 44px; height: 44px; flex: none; border-radius: 50%; }
.brand__name { display: block; font-family: var(--serif); font-size: 1.22rem; color: var(--cafe); line-height: 1.2; }
.brand__role { display: block; font-size: .66rem; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- 6. HERO ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(1.9rem, 3.4vw, 3.4rem) clamp(2.3rem, 4.2vw, 4.2rem); }
.hero__bg { position: absolute; inset: 0; z-index: -2; background: linear-gradient(120deg, var(--off-white) 30%, var(--nude-soft)); }
.hero__photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 62% 45%;
  opacity: .95;
  filter: sepia(.12) saturate(.95) brightness(1.02);
  -webkit-mask-image: linear-gradient(90deg, transparent 4%, rgba(0,0,0,.28) 30%, rgba(0,0,0,.85) 58%, #000 76%);
          mask-image: linear-gradient(90deg, transparent 4%, rgba(0,0,0,.28) 30%, rgba(0,0,0,.85) 58%, #000 76%);
}
.hero__bg::after { /* véu champagne/rosé por cima da foto */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 55% at 80% 14%, rgba(214,190,140,.22), transparent 60%),
    radial-gradient(55% 60% at 10% 88%, rgba(140,100,70,.14), transparent 62%),
    linear-gradient(90deg, var(--off-white) 10%, rgba(248,244,238,.7) 36%, transparent 62%);
}

.hero__grid { display: grid; grid-template-columns: minmax(0, 620px) 1fr; align-items: center; }
.hero__copy { position: relative; }
.hero__copy::before { /* halo de luz atrás do texto, garante leitura sobre a foto */
  content: ""; position: absolute; inset: -14% -18%; z-index: -1; pointer-events: none;
  background: radial-gradient(62% 58% at 42% 48%, rgba(248,244,238,.92), rgba(248,244,238,.5) 56%, transparent 78%);
}
.hero__badges { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.2rem; }
.hero h1 { margin-bottom: 1.4rem; }
.hero__sub { max-width: 46ch; margin-bottom: 1.6rem; font-size: clamp(1.02rem, .96rem + .3vw, 1.22rem); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.4rem; }
.hero__note { flex: 1 0 100%; font-size: var(--step--1); color: var(--ink-soft); }
.hero__authority {
  margin-top: 1.6rem; padding-top: 1.1rem; border-top: 1px solid var(--line-soft);
  font-size: var(--step--1); color: var(--ink-soft); max-width: 46ch; line-height: 1.7;
}
.hero__authority strong { color: var(--marrom); font-weight: 500; }

/* Fios de cabelo desenhados (só desktop) */
.strands { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.strands svg { width: 100%; height: 100%; }
.strands path {
  fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 2400; stroke-dashoffset: 2400;
  animation: strandDraw 3.4s var(--ease) .35s forwards;
}
.strands path:nth-of-type(2) { animation-delay: .9s; }
.strands path:nth-of-type(3) { animation-delay: 1.4s; }
@keyframes strandDraw { to { stroke-dashoffset: 0; } }

/* Blobs de sérum flutuando */
.blob {
  position: absolute; z-index: -1; pointer-events: none;
  width: var(--size, 420px); height: var(--size, 420px);
  border-radius: 50%; filter: blur(70px); opacity: .5;
  background: radial-gradient(circle at 35% 35%, var(--c1, rgba(229,209,176,.55)), var(--c2, rgba(140,100,70,.22)) 70%, transparent 100%);
  animation: blobFloat var(--bdur, 20s) ease-in-out infinite alternate;
  animation-delay: var(--bdelay, 0s);
  will-change: transform;
}
@keyframes blobFloat {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(4%, -4%, 0) scale(1.12); }
}

/* Indicador de rolagem */
.scroll-cue {
  position: absolute; left: 50%; bottom: 1.4rem; translate: -50% 0;
  display: grid; gap: .5rem; justify-items: center;
  font-size: .58rem; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-soft);
}
.scroll-cue i { width: 1px; height: 40px; background: linear-gradient(var(--terra), transparent); animation: cue 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0%,100% { transform: scaleY(.4); opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }

/* ---------- 7. SEÇÃO: QUEM CUIDA ---------- */
.care { padding-block: var(--section-y); background: var(--bege-claro); }
.care__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.care__photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.care__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 60% 30%; }
.care__photo::after { /* fio dourado interno */
  content: ""; position: absolute; inset: 12px; border-radius: calc(var(--radius-lg) - 8px);
  border: 1px solid rgba(248,244,238,.35); pointer-events: none;
}
.care h2 { margin-bottom: 1.2rem; }
.care p + p { margin-top: 1.1rem; }

.needs { margin-top: 2.4rem; }
.needs__title { font-size: var(--step--1); letter-spacing: .1em; color: var(--terra-deep); margin-bottom: 1rem; }
.needs ul { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .55rem 1.6rem; }
.needs li { position: relative; padding-left: 1.5rem; font-size: .98rem; line-height: 1.55; }
.needs li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 8px; height: 8px; border-radius: 50%;
  border: 1px solid var(--gold); background: var(--champagne);
}

/* ---------- 8. SEÇÃO: AGENDAMENTO ---------- */
.book {
  position: relative; overflow: hidden; text-align: center;
  padding-block: clamp(2.6rem, 1.6rem + 3vw, 4.2rem);
  background: linear-gradient(165deg, var(--marrom), var(--cafe-ink));
  color: rgba(248,244,238,.78);
}
.book__bg { position: absolute; inset: 0; }
.book__bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 20%;
  filter: blur(2px) sepia(.28) saturate(.85) brightness(.62);
  opacity: .5; transform: scale(1.06);
}
.book__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(36,26,20,.7), rgba(36,26,20,.8)); }
.book::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 0%, rgba(198,162,99,.28), transparent 60%); }
.book > .wrap { position: relative; }
.book h2 { color: var(--off-white); margin-bottom: 1.2rem; }
.book p { margin-inline: auto; }
.book .btn { margin-top: 1.7rem; }
.book__facts {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.6rem 2rem;
  margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(248,244,238,.14);
  font-size: var(--step--1); line-height: 1.6;
}
.book__facts dt { color: var(--gold-soft); letter-spacing: .16em; text-transform: uppercase; font-size: .68rem; margin-bottom: .45rem; }
.book__facts dd { color: rgba(248,244,238,.82); }
.book__facts a { border-bottom: 1px solid rgba(214,190,140,.4); transition: color .3s var(--ease); }
.book__facts a:hover { color: var(--gold-soft); }

/* ---------- 9. RODAPÉ ---------- */
.site-footer { background: var(--cafe-ink); color: rgba(248,244,238,.55); padding-block: 1.4rem; border-top: 1px solid rgba(248,244,238,.08); }
.site-footer__grid { display: flex; flex-wrap: wrap; gap: 1.4rem 2rem; align-items: center; justify-content: space-between; }
.site-footer .brand__name { color: var(--off-white); }
.site-footer small { font-size: var(--step--1); line-height: 1.7; max-width: 54ch; display: block; }
.site-footer a { color: var(--gold-soft); }

/* ---------- 10. WHATSAPP FLUTUANTE ---------- */
.wa-float[hidden] { display: none; }
.wa-float {
  position: fixed; right: clamp(.9rem, 3vw, 1.6rem); bottom: clamp(.9rem, 3vw, 1.6rem); z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(150deg, #4aa564, #2e8b57);
  box-shadow: 0 14px 30px -10px rgba(46,139,87,.6);
  transition: transform .35s var(--ease);
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }

/* ---------- 11. REVEAL NO SCROLL ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .1s; }
[data-reveal][data-delay="2"] { transition-delay: .2s; }
[data-reveal][data-delay="3"] { transition-delay: .3s; }

/* ---------- 12. RESPONSIVO ---------- */
@media (max-width: 1024px) {
  .hero__photo { -webkit-mask-image: linear-gradient(90deg, transparent 2%, rgba(0,0,0,.4) 34%, #000 78%); mask-image: linear-gradient(90deg, transparent 2%, rgba(0,0,0,.4) 34%, #000 78%); }
  .hero__grid { grid-template-columns: minmax(0, 540px) 1fr; }
}

@media (max-width: 900px) {
  /* A foto vira uma banda nítida no topo e o texto fica embaixo, sobre fundo limpo */
  .hero { padding-top: calc(clamp(190px, 52vw, 300px) + 1.7rem); padding-bottom: 2.4rem; text-align: center; }
  .hero__photo {
    height: clamp(190px, 52vw, 300px);
    opacity: 1; object-position: 60% 30%;
    filter: sepia(.08) saturate(.97);
    -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 98%);
            mask-image: linear-gradient(180deg, #000 62%, transparent 98%);
  }
  .hero__bg::after { background: radial-gradient(80% 40% at 50% 100%, rgba(214,190,140,.16), transparent 70%); }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy::before { content: none; }
  .hero__sub, .hero__authority { margin-inline: auto; }
  .hero__badges, .hero__cta { justify-content: center; }
  .hero .blob, .strands, .scroll-cue, .drops { display: none; } /* leveza no celular */

  .care__grid { grid-template-columns: 1fr; }
  .care__photo { max-width: 420px; }
  .needs ul { grid-template-columns: 1fr; }
  .book__facts { grid-template-columns: 1fr; text-align: center; }
  .site-footer__grid { justify-content: center; text-align: center; }
  .site-footer .brand { justify-content: center; }
}

@media (max-width: 520px) {
  .brand__logo { width: 38px; height: 38px; }
  .brand__role { display: none; }
  .site-header .btn { padding: .7em 1.1em; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
}

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