/* ============================================================
   Essenza Estética — style.css
   Tokens primeiro; um acento (terracota rosé) sobre creme.
   ============================================================ */

:root {
  --bg: #FAF6F1;
  --surface: #FFFFFF;
  --surface-alt: #F2EAE2;
  --brand: #B76E5B;
  --brand-deep: #8F4E3E;
  --brand-soft: rgba(183, 110, 91, 0.12);
  --ink: #2E2924;
  --ink-2: #6E645B;
  --line: #E6DCD2;
  --font-display: "Fraunces", serif;
  --font-body: "Jost", sans-serif;
  --container: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.06rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--brand); color: #fff; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; margin: 0 0 0.6em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: 1.5rem; }
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-alt { background: var(--surface-alt); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

/* ===== mark: marca-texto que "se pinta" ===== */
mark {
  --mark-color: rgba(183, 110, 91, 0.22);
  color: inherit;
  background-color: transparent;
  background-image: linear-gradient(var(--mark-color), var(--mark-color));
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: 0% 100%;
  padding: 0.04em 0.1em 0.06em; margin: -0.04em -0.02em -0.06em;
  transition: background-size 0.55s var(--ease);
}
.reveal.is-visible mark, mark.is-drawn { background-size: 100% 100%; transition-delay: 0.35s; }

/* ===== Botões ===== */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-body); font-weight: 500; font-size: 1rem;
  padding: 0.85rem 1.7rem; border-radius: 999px; text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 24px rgba(183, 110, 91, 0.32); }
.btn-primary:hover { background: var(--brand-deep); transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-deep); transform: translateY(-2px); }
.btn-lg { padding: 1rem 2.1rem; font-size: 1.08rem; }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.nav.is-scrolled {
  background: rgba(250, 246, 241, 0.88);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  box-shadow: 0 1px 0 var(--line), 0 8px 30px rgba(46, 41, 36, 0.06);
}
.nav-progress {
  position: absolute; top: 0; left: 0; height: 2px; width: 0;
  background: var(--brand); z-index: 2;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-logo {
  display: flex; align-items: center; gap: 0.5rem; text-decoration: none;
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; letter-spacing: 0.01em;
}
.logo-mark { color: var(--brand); }
.nav-links { display: flex; align-items: center; gap: 1.8rem; }
.nav-links a {
  text-decoration: none; font-size: 0.98rem; color: var(--ink-2);
  transition: color 0.25s var(--ease);
}
.nav-links a:hover { color: var(--brand-deep); }
.nav-links a.nav-cta {
  color: #fff; background: var(--ink); padding: 0.55rem 1.2rem; border-radius: 999px;
  transition: background-color 0.25s var(--ease);
}
.nav-links a.nav-cta:hover { background: var(--brand-deep); }
.nav-toggle {
  display: none; flex-direction: column; gap: 6px; padding: 10px;
  background: none; border: 0; cursor: pointer;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform 0.3s var(--ease);
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; gap: 2.2rem;
    background: var(--bg);
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
  }
  .nav-links a { font-size: 1.4rem; font-family: var(--font-display); color: var(--ink); }
  body.menu-open .nav-links { opacity: 1; visibility: visible; transform: none; }
  body.menu-open { overflow: hidden; }
  body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  body.menu-open .nav-toggle span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; overflow: clip;
  padding: calc(72px + clamp(3rem, 8vw, 6rem)) 0 clamp(3.5rem, 7vw, 5.5rem);
}
.hero-glow {
  position: absolute; top: -20%; right: -12%; width: 55vw; height: 55vw;
  max-width: 720px; max-height: 720px;
  background: radial-gradient(circle, rgba(183, 110, 91, 0.16), transparent 65%);
  pointer-events: none;
}
.hero-line {
  position: absolute; right: 0; bottom: -4%; width: min(48vw, 560px);
  color: var(--brand); opacity: 0.35; pointer-events: none;
}
.hero-line-path {
  stroke-dasharray: 100; stroke-dashoffset: 100;
  animation: hero-draw 1.6s var(--ease) 0.6s forwards;
}
@keyframes hero-draw { to { stroke-dashoffset: 0; } }

.hero-inner {
  position: relative; display: grid; gap: clamp(2.5rem, 5vw, 4rem);
  grid-template-columns: 1.1fr 0.9fr; align-items: center;
}
.hero-eyebrow, .section-eyebrow {
  font-size: 0.82rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--brand-deep); font-weight: 600; margin-bottom: 1rem;
}
.hero-title { font-size: clamp(2.4rem, 5.4vw, 4rem); margin-bottom: 0.5em; }
.hero-sub { color: var(--ink-2); max-width: 34rem; font-size: 1.12rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 1.8rem 0 1.1rem; }
.hero-note { font-size: 0.92rem; color: var(--ink-2); }

@keyframes hero-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-eyebrow { animation: hero-in 0.7s var(--ease) 0.05s backwards; }
.hero-title   { animation: hero-in 0.7s var(--ease) 0.18s backwards; }
.hero-sub     { animation: hero-in 0.7s var(--ease) 0.32s backwards; }
.hero-ctas    { animation: hero-in 0.7s var(--ease) 0.46s backwards; }
.hero-note    { animation: hero-in 0.7s var(--ease) 0.58s backwards; }
.hero-figure  { animation: hero-in 0.9s var(--ease) 0.35s backwards; }

.hero-figure { position: relative; }
.hero-photo { aspect-ratio: 4 / 5; border-radius: var(--radius) var(--radius) 50% 50% / var(--radius) var(--radius) 38% 38%; }
.hero-card {
  position: absolute; left: -1rem; bottom: 1.6rem;
  display: flex; flex-direction: column; gap: 0.15rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 0.8rem 1.1rem; font-size: 0.88rem; color: var(--ink-2);
  box-shadow: 0 14px 40px rgba(46, 41, 36, 0.12);
}
.hero-card-stars { color: var(--brand); letter-spacing: 2px; font-size: 0.95rem; }

/* placeholder de foto (rascunho — trocar por <picture> depois) */
.photo-ph {
  position: relative;
  background:
    linear-gradient(160deg, rgba(183, 110, 91, 0.18), rgba(183, 110, 91, 0.04)),
    var(--surface-alt);
  border: 1px dashed rgba(143, 78, 62, 0.35);
  display: grid; place-items: center;
}
.photo-ph-label {
  font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--brand-deep); opacity: 0.7;
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-figure { max-width: 420px; }
  .hero-card { left: 0.8rem; }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.strip { background: var(--ink); color: #F5EFE9; padding: 1.05rem 0; }
.strip-viewport { overflow: clip; }
.strip-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.strip-viewport:hover .strip-track { animation-play-state: paused; }
.strip-list {
  display: flex; align-items: center; gap: 2.2rem;
  list-style: none; margin: 0; padding: 0 1.1rem;
  font-family: var(--font-display); font-size: 1.05rem; letter-spacing: 0.04em; white-space: nowrap;
}
.strip-list li:nth-child(even) { color: var(--brand); font-size: 0.7rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   SEÇÕES — cabeçalho comum
   ============================================================ */
.section-head { max-width: 42rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-lead { color: var(--ink-2); font-size: 1.1rem; }

/* ===== reveal (scroll) ===== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.grid-3 .reveal:nth-child(1) { transition-delay: 0s; }
.grid-3 .reveal:nth-child(2) { transition-delay: 0.12s; }
.grid-3 .reveal:nth-child(3) { transition-delay: 0.24s; }

/* ============================================================
   TRATAMENTOS — cards
   ============================================================ */
.cards { display: grid; gap: 1.4rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.8rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease),
              opacity 0.7s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(183, 110, 91, 0.4);
  box-shadow: 0 18px 44px rgba(46, 41, 36, 0.1);
}
.card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--brand-soft); color: var(--brand-deep);
  display: grid; place-items: center; margin-bottom: 1.2rem;
}
.card-icon svg { width: 28px; height: 28px; }
.card p { color: var(--ink-2); font-size: 0.98rem; }
.card-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  text-decoration: none; color: var(--brand-deep); font-weight: 500; font-size: 0.95rem;
}
.card-link span { transition: transform 0.25s var(--ease); }
.card-link:hover span { transform: translateX(4px); }

/* ============================================================
   JORNADA — linha que se desenha
   ============================================================ */
.journey { position: relative; max-width: 46rem; margin-inline: auto; }
.journey-svg {
  position: absolute; top: 0; bottom: 0; left: 25px; width: 8px; height: 100%;
}
.journey-track { stroke: var(--line); }
.journey-draw { stroke: var(--brand); }

.journey-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(2.2rem, 5vw, 3.2rem); }
.journey-step { display: grid; grid-template-columns: 52px 1fr; gap: 1.4rem; align-items: start; }
.journey-dot {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--line);
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.15rem; color: var(--ink-2);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease),
              transform 0.4s var(--ease);
  position: relative; z-index: 1;
}
.journey-step.lit .journey-dot {
  background: var(--brand); border-color: var(--brand); color: #fff;
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(183, 110, 91, 0.35);
}
.journey-step p { color: var(--ink-2); font-size: 0.98rem; margin: 0; }
.journey-step h3 { margin-bottom: 0.35em; }

/* ============================================================
   SOBRE
   ============================================================ */
.about { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.about-photo { aspect-ratio: 4 / 5; border-radius: var(--radius); }
.about-copy p { color: var(--ink-2); }
.about-stats {
  list-style: none; margin: 2rem 0 0; padding: 1.6rem 0 0;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(3, auto); gap: 2rem; justify-content: start;
}
.about-stats strong {
  display: block; font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem); color: var(--brand-deep);
}
.about-stats span { font-size: 0.88rem; color: var(--ink-2); }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about-media { max-width: 380px; }
}

/* ============================================================
   DEPOIMENTOS
   ============================================================ */
.quote {
  margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem 1.7rem; display: flex; flex-direction: column; gap: 0.9rem;
}
.quote-stars { color: var(--brand); letter-spacing: 3px; }
.quote blockquote { margin: 0; font-size: 1.02rem; line-height: 1.6; flex: 1; }
.quote figcaption { font-size: 0.88rem; color: var(--ink-2); }

/* ============================================================
   FRASE DE IMPACTO
   ============================================================ */
.statement { background: var(--ink); color: #F5EFE9; text-align: center; }
.statement-text {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.6rem, 4vw, 2.6rem); line-height: 1.35; margin: 0;
}
.statement mark { --mark-color: rgba(183, 110, 91, 0.45); color: #fff; }

/* ============================================================
   CONTATO
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.contact .btn-lg { margin-top: 0.6rem; }
.contact-info dl { margin: 0; display: grid; gap: 1.4rem; }
.contact-info dt {
  font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brand-deep); font-weight: 600; margin-bottom: 0.25rem;
}
.contact-info dd { margin: 0; color: var(--ink-2); }
.contact-info a { color: var(--ink); text-decoration-color: var(--brand); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding: 1.6rem 0; }
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between;
  font-size: 0.88rem; color: var(--ink-2);
}
.footer p { margin: 0; }

/* ============================================================
   CTA MOBILE PERSISTENTE
   ============================================================ */
.mobile-cta {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 90;
  display: none; align-items: center; justify-content: center; gap: 0.55rem;
  background: var(--brand); color: #fff; text-decoration: none;
  font-weight: 500; padding: 0.95rem; border-radius: 999px;
  box-shadow: 0 12px 32px rgba(143, 78, 62, 0.4);
  transform: translateY(0); opacity: 1;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.mobile-cta.is-hidden { transform: translateY(120%); opacity: 0; pointer-events: none; }
@media (max-width: 860px) {
  .mobile-cta { display: flex; }
  body { padding-bottom: 4.5rem; }
}

/* ============================================================
   prefers-reduced-motion — fallback estático por efeito
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-eyebrow, .hero-title, .hero-sub, .hero-ctas, .hero-note, .hero-figure { animation: none; }
  .hero-line-path { animation: none; stroke-dashoffset: 0; }
  .strip-track { animation: none; }
  .journey-draw { stroke-dashoffset: 0 !important; }
  mark { transition: none; background-size: 100% 100%; }
  .btn:hover, .card:hover, .journey-step.lit .journey-dot { transform: none; }
  .mobile-cta { transition: none; }
}
