/* ============================================================
   Dra. Marina Azenha — Tricologia
   Dois atos: hero escuro (funde com o retrato) → marfim quente
   ============================================================ */

:root {
  --ink: #0d0b09;
  --ink-true: #020202; /* preto exato do fundo do retrato (medido) */
  --ink-soft: #17130e;
  --ink-card: #201a13;
  --ivory: #f5efe3;
  --ivory-deep: #ece2cf;
  --paper: #fffdf7;
  --espresso: #2b2117;
  --espresso-soft: #5c4d3c;
  --gold: #b28a4a;
  --gold-bright: #d9b878;
  --gold-deep: #7c5e2e; /* dourado p/ fundos claros — contraste AA (≥4.5:1) */
  --gold-faint: rgba(217, 184, 120, 0.35);
  --whats: #22b358;
  --line-dark: rgba(217, 184, 120, 0.18);
  --line-light: rgba(43, 33, 23, 0.14);

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;

  --text-hero: clamp(3rem, 1.2rem + 7.5vw, 6.8rem);
  --text-h2: clamp(1.9rem, 1.2rem + 2.6vw, 3.3rem);
  --text-h3: clamp(1.35rem, 1.1rem + 1vw, 1.9rem);
  --text-lead: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);
  --text-base: clamp(0.98rem, 0.94rem + 0.2vw, 1.08rem);

  --space-section: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --measure: 62ch;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.65;
  color: var(--espresso);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; margin: 0 0 1.2rem; }
h1 em, h2 em { font-style: italic; font-weight: 300; color: var(--gold-bright); }
p { margin: 0 0 1.1rem; max-width: var(--measure); }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Utilitários ---------- */

.section-inner {
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
}

.lead { font-size: var(--text-lead); }

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
              background-color 0.35s var(--ease-out), color 0.35s var(--ease-out);
}

.btn .ico { width: 1.15rem; height: 1.15rem; flex: none; }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: var(--ink);
  box-shadow: 0 8px 28px rgba(217, 184, 120, 0.22);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(217, 184, 120, 0.32); }
.btn-gold:active { transform: translateY(0); }

.btn-ghost {
  color: var(--ivory);
  border: 1px solid var(--line-dark);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--gold-faint); background: rgba(217, 184, 120, 0.06); }

.btn-outline {
  color: var(--gold-bright);
  border: 1px solid var(--gold-faint);
  background: transparent;
}
.btn-outline:hover { background: rgba(217, 184, 120, 0.08); transform: translateY(-2px); }

.link-arrow {
  display: inline-block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gold-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-faint);
  /* padding-top amplia o alvo de toque (~44px) sem alterar o visual */
  padding: 0.9rem 0 0.3rem;
  transition: border-color 0.3s var(--ease-out), color 0.3s var(--ease-out);
}
.link-arrow::after { content: " →"; }
.link-arrow:hover { color: var(--espresso); border-color: var(--espresso); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.site-header.scrolled {
  background: rgba(13, 11, 9, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line-dark);
}

.header-inner {
  max-width: 1140px;
  margin-inline: auto;
  padding: 0.9rem var(--gutter);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ivory);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.wordmark em { font-style: italic; color: var(--gold-bright); }

.site-header nav {
  display: flex;
  gap: 1.6rem;
  margin-left: auto;
}

.site-header nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(245, 239, 227, 0.75);
  text-decoration: none;
  transition: color 0.3s;
}
.site-header nav a:hover { color: var(--gold-bright); }

.btn-header { padding: 0.75rem 1.2rem; font-size: 0.85rem; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink-true);
  color: var(--ivory);
}

/* o brilho fica ACIMA da foto: o gradiente atravessa a borda da
   imagem sem revelá-la, já que foto e fundo têm o mesmo preto */
.hero-glow {
  position: absolute;
  right: -10%;
  top: 10%;
  width: 60vw;
  height: 60vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(circle, rgba(178, 138, 74, 0.13) 0%, transparent 65%);
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: screen;
}

.hero-inner {
  position: relative;
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding: 7rem var(--gutter) 0;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: end;
}

.hero-copy { padding-bottom: clamp(4rem, 8vh, 7rem); }

.hero h1 {
  font-size: var(--text-hero);
  font-weight: 350;
  letter-spacing: -0.015em;
  margin-bottom: 1.4rem;
}

.hero-sub {
  font-size: var(--text-lead);
  font-weight: 300;
  color: rgba(245, 239, 227, 0.82);
  max-width: 34ch;
  margin-bottom: 2.2rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.4rem;
}

.hero-phone {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: rgba(245, 239, 227, 0.62);
}

.hero-photo {
  margin: 0;
  align-self: end;
  position: relative;
}

.hero-photo img {
  width: 100%;
  max-height: 88svh;
  object-fit: contain;
  object-position: bottom center;
  -webkit-mask-image: linear-gradient(to bottom, black 82%, transparent 100%);
          mask-image: linear-gradient(to bottom, black 82%, transparent 100%);
}

/* vinhete: dissolve as bordas da foto no fundo da página */
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(95% 92% at 50% 46%, transparent 58%, var(--ink-true) 96%);
}

/* ---------- Fio de cabelo (assinatura) ---------- */

.strand {
  position: absolute;
  left: 0;
  right: 0;
  height: clamp(60px, 8vw, 120px);
  pointer-events: none;
  z-index: 2;
}

.strand svg { width: 100%; height: 100%; display: block; }

.strand path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.4;
  opacity: 0.7;
}

.strand path.faint { stroke: var(--gold-bright); opacity: 0.22; stroke-width: 1; }

.strand-hero { bottom: -1px; }
.strand-cta { top: -1px; }

/* ---------- Sobre (marfim) ---------- */

.sobre {
  background: var(--ivory);
  padding-block: var(--space-section);
  position: relative;
}

.sobre h2, .tricologia h2, .tratamentos h2 { color: var(--espresso); }
.sobre h2 em, .tricologia h2 em, .tratamentos h2 em { color: var(--gold-deep); }

/* dourado escurecido nas seções claras: legibilidade AA */
.sobre .eyebrow, .tricologia .eyebrow, .tratamentos .eyebrow { color: var(--gold-deep); }
.sobre h2 { font-size: var(--text-h2); }

.sobre-photo {
  margin: 0;
  justify-self: center;
  max-width: 420px;
  border-radius: 999px 999px 20px 20px;
  overflow: hidden;
  border: 1px solid var(--line-light);
  box-shadow: 0 30px 60px -30px rgba(43, 33, 23, 0.35);
  background: #fdfcfa;
}

.sobre p { color: var(--espresso-soft); }

/* ---------- Tricologia ---------- */

.tricologia {
  background: var(--ivory-deep);
  padding-block: var(--space-section);
}

.tricologia h2 { font-size: var(--text-h2); max-width: 22ch; }
.tricologia .lead { color: var(--espresso-soft); }

.signs-title {
  font-size: var(--text-h3);
  color: var(--espresso);
  margin-top: 3.5rem;
}

.signs {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

.signs li {
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: 16px;
  padding: 1.6rem 1.7rem;
  display: grid;
  gap: 0.45rem;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.signs li:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -24px rgba(43, 33, 23, 0.4);
}

.signs strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--espresso);
}

.signs span { color: var(--espresso-soft); font-size: 0.96rem; }

/* ---------- Tratamentos ---------- */

.tratamentos {
  background: var(--ivory);
  padding-block: var(--space-section);
}

.tratamentos h2 { max-width: 24ch; margin-bottom: 3rem; }

.treatment {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: 2.6rem 0;
  border-top: 1px solid var(--line-light);
  transition: background-color 0.35s var(--ease-out);
}

.treatment:last-child { border-bottom: 1px solid var(--line-light); }

.treatment-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.7rem;
}

.treatment h3 {
  font-size: var(--text-h3);
  color: var(--espresso);
  margin: 0;
  max-width: 18ch;
}

.treatment h3 sup { font-size: 0.5em; }

/* nome por extenso do procedimento, como subtítulo do h3 */
.treatment h3 .h3-sub {
  display: block;
  font-size: 0.62em;
  font-style: italic;
  font-weight: 300;
  color: var(--espresso-soft);
  margin-top: 0.35rem;
}

.treatment-body p { color: var(--espresso-soft); }

/* ---------- CTA final (escuro) ---------- */

.cta-final {
  position: relative;
  background: var(--ink-soft);
  color: var(--ivory);
  padding-block: calc(var(--space-section) + 2rem) var(--space-section);
}

.cta-grid { grid-template-columns: 0.8fr 1.2fr; }

.cta-photo {
  margin: 0;
  justify-self: center;
  max-width: 360px;
  border-radius: 999px 999px 20px 20px;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}

.cta-copy h2 { font-size: var(--text-h2); }
.cta-copy p { color: rgba(245, 239, 227, 0.75); }
.cta-copy .btn { margin-top: 0.6rem; }

/* ---------- Localização ---------- */

.localizacao {
  background: var(--ink);
  color: var(--ivory);
  padding-block: var(--space-section);
  text-align: center;
  border-top: 1px solid var(--line-dark);
}

.localizacao .section-inner { display: grid; justify-items: center; }

.localizacao h2 { font-size: var(--text-h2); }

.localizacao address {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.5rem);
  line-height: 1.5;
  color: rgba(245, 239, 227, 0.85);
  margin-bottom: 2.2rem;
}

.map-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; }

/* ---------- Footer ---------- */

.site-footer {
  background: #090705;
  color: var(--ivory);
  padding: 3.5rem var(--gutter) 6rem;
  text-align: center;
}

.footer-inner { display: grid; justify-items: center; gap: 1.4rem; }

.footer-links { display: flex; gap: 1.8rem; }

.footer-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(245, 239, 227, 0.7);
  text-decoration: none;
  padding: 0.7rem 0.2rem;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--gold-bright); }

.footer-note {
  font-size: 0.78rem;
  color: rgba(245, 239, 227, 0.6);
  line-height: 1.7;
  margin: 0;
}

/* ---------- WhatsApp flutuante ---------- */

.whats-fab {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 60;
  width: 3.4rem;
  height: 3.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--whats);
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  /* invisível no hero (que já tem CTA); aparece após rolar */
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
              opacity 0.35s var(--ease-out);
}

.whats-fab.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.whats-fab svg { width: 1.7rem; height: 1.7rem; }
.whats-fab.show:hover { transform: scale(1.08); box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45); }

/* ---------- Animações ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal-load { animation: rise 0.9s var(--ease-out) both; }
.reveal-load.delay-1 { animation-delay: 0.12s; }
.reveal-load.delay-2 { animation-delay: 0.24s; }
.reveal-load.delay-3 { animation-delay: 0.38s; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-load { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .signs li, .whats-fab { transition: none; }
}

/* ---------- Responsivo ---------- */

@media (max-width: 900px) {
  /* nav vira uma linha compacta rolável — âncoras continuam acessíveis */
  .header-inner {
    flex-wrap: wrap;
    justify-content: space-between;
    row-gap: 0.1rem;
    padding-bottom: 0.4rem;
  }

  .site-header nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    gap: 1.2rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .site-header nav::-webkit-scrollbar { display: none; }

  .site-header nav a {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.5rem 0;
    white-space: nowrap;
  }

  .hero { align-items: stretch; }

  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 5rem;
    gap: 0;
  }

  .hero-photo {
    order: -1;
    margin-inline: auto;
    max-width: min(64vw, 340px);
  }

  .hero-photo img {
    max-height: 44svh;
    -webkit-mask-image: linear-gradient(to bottom, black 68%, transparent 97%);
            mask-image: linear-gradient(to bottom, black 68%, transparent 97%);
  }

  .hero-copy {
    text-align: center;
    padding-bottom: 4rem;
    margin-top: -3rem;
    position: relative;
    z-index: 3;
  }

  .hero h1 { margin-bottom: 1rem; }
  .hero-sub { margin-bottom: 1.6rem; }

  .hero-sub { margin-inline: auto; }
  .hero-ctas { justify-content: center; }

  .grid-2, .cta-grid { grid-template-columns: 1fr; }

  .sobre-photo, .cta-photo { max-width: 320px; }

  .signs { grid-template-columns: 1fr; }

  .treatment { grid-template-columns: 1fr; gap: 1rem; padding: 2.2rem 0; }
  .treatment h3 { max-width: none; }
}

/* telas baixas (celulares pequenos): garante o CTA acima da dobra */
@media (max-width: 900px) and (max-height: 700px) {
  .hero-photo img { max-height: 36svh; }
  .hero-copy { padding-bottom: 3rem; }
}

@media (max-width: 480px) {
  .btn-header { padding: 0.7rem 1rem; font-size: 0.8rem; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .map-ctas { width: 100%; }
  .map-ctas .btn { width: 100%; justify-content: center; }
}
