/* ============================================================
   Cassia Lecink — Cabeleireira em Londrina
   Design system: "Champagne Editorial"
   Creme quente + café + dourado. Fraunces (display) + Figtree.
   Mobile-first. Zero JS. CWV-first.
   ============================================================ */

:root {
  --cream: #faf5ee;
  --cream-2: #f3ead9;
  --ink: #241a13;
  --ink-soft: #57493c;
  --gold: #a8804a;
  --gold-deep: #7d5c30;
  --line: rgba(36, 26, 19, 0.14);
  --wa: #1fa855;
  --radius-arch: 999px 999px 18px 18px;
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --max: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--gold-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ---------- Tipografia ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 6.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }

.kicker {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold-deep);
  margin: 0 0 1rem;
}

.display-note {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  color: var(--ink-soft);
}

.lede { font-size: clamp(1.05rem, 2.5vw, 1.25rem); color: var(--ink-soft); max-width: 46ch; }

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

section { padding: 4rem 0; }

.section-head { max-width: 60ch; margin-bottom: 2.5rem; }

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

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1.25rem;
  max-width: var(--max);
  margin: 0 auto;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.logo em { font-style: italic; color: var(--gold-deep); }

.nav {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  padding: 0 1.25rem 0.7rem;
  max-width: var(--max);
  margin: 0 auto;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }

.nav a {
  flex: 0 0 auto;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.35rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: border-color 0.2s, color 0.2s;
}
.nav a:hover { color: var(--ink); border-color: var(--line); }
.nav a[aria-current="page"] {
  color: var(--gold-deep);
  border-color: var(--gold);
}

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

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.85rem 1.6rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 8px 24px rgba(36, 26, 19, 0.22);
}
.btn-primary:hover { box-shadow: 0 12px 28px rgba(36, 26, 19, 0.3); }

.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--line);
  background: transparent;
}

.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.86rem; }

/* WhatsApp flutuante */
.wa-fab {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--wa);
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(31, 168, 85, 0.45);
  transition: transform 0.15s ease;
}
.wa-fab:hover { transform: scale(1.04); }
.wa-fab svg { width: 20px; height: 20px; flex: none; }

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

.hero { padding: 3.5rem 0 4rem; overflow: hidden; }

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero-copy p.lede { margin: 1rem 0 1.8rem; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }

.hero-img {
  position: relative;
  justify-self: center;
  width: min(78vw, 380px);
}
.hero-img img {
  border-radius: var(--radius-arch);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}
.hero-img::before {
  content: "";
  position: absolute;
  inset: -14px;
  border: 1px solid var(--gold);
  border-radius: var(--radius-arch);
  opacity: 0.5;
  pointer-events: none;
}

@media (min-width: 820px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
  .hero-img { justify-self: end; }
}

/* ---------- Cards de serviço ---------- */

.cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(36, 26, 19, 0.12); }

.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

.card-body { padding: 1.25rem 1.25rem 1.5rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }

.card-body h3 { margin: 0; }

.card-price {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--gold-deep);
}
.card-price small { font-family: var(--font-body); font-size: 0.75rem; color: var(--ink-soft); display: block; letter-spacing: 0.05em; text-transform: uppercase; }

.card-body p { margin: 0.2rem 0 0.8rem; font-size: 0.94rem; color: var(--ink-soft); flex: 1; }

.card-link { font-weight: 600; font-size: 0.9rem; }

/* ---------- Faixa escura ---------- */

.band {
  background: var(--ink);
  color: var(--cream);
  padding: 4.5rem 0;
}
.band .kicker { color: var(--gold); }
.band h2 { color: var(--cream); }

.pillars {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  counter-reset: pillar;
}

.pillar { border-top: 1px solid rgba(250, 245, 238, 0.25); padding-top: 1.25rem; }
.pillar::before {
  counter-increment: pillar;
  content: "0" counter(pillar);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold);
  display: block;
  margin-bottom: 0.5rem;
}
.pillar h3 { color: var(--cream); font-size: 1.15rem; }
.pillar p { color: rgba(250, 245, 238, 0.75); font-size: 0.95rem; margin: 0; }

/* ---------- Galeria ---------- */

.gallery {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, 1fr);
}
.gallery img {
  border-radius: 14px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}
.gallery img:nth-child(3n) { border-radius: var(--radius-arch); }

@media (min-width: 700px) { .gallery { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Preços ---------- */

.price-list { border-top: 1px solid var(--line); }

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}
.price-row h3 { margin: 0; font-size: 1.15rem; }
.price-row p { margin: 0.2rem 0 0; font-size: 0.9rem; color: var(--ink-soft); max-width: 44ch; }
.price-tag {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold-deep);
  white-space: nowrap;
}
.price-tag small { font-family: var(--font-body); font-size: 0.72rem; display: block; text-align: right; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- Passos (como funciona) ---------- */

.steps { display: grid; gap: 1.5rem; counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  align-items: start;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.9rem;
  color: var(--gold);
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
}
.step h3 { margin-bottom: 0.2rem; }
.step p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }

@media (min-width: 820px) { .steps { grid-template-columns: 1fr 1fr; } }

/* ---------- FAQ ---------- */

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0.4rem 0;
}
.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  padding: 0.8rem 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-body); color: var(--gold-deep); font-size: 1.3rem; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 1rem; color: var(--ink-soft); max-width: 62ch; }

/* ---------- Bloco local / mapa ---------- */

.local {
  background: var(--cream-2);
  border-radius: 24px;
  padding: 2.5rem 1.5rem;
}
.local address { font-style: normal; font-size: 1.05rem; line-height: 1.8; }
.local strong { font-family: var(--font-display); font-weight: 600; }

@media (min-width: 820px) {
  .local { padding: 3rem; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
}

/* ---------- CTA final ---------- */

.cta-final { text-align: center; padding: 5rem 0; }
.cta-final h2 { max-width: 22ch; margin-inline: auto; }
.cta-final .lede { margin: 1rem auto 2rem; }

/* ---------- Sobre ---------- */

.bio-grid { display: grid; gap: 2.5rem; align-items: start; }
.bio-img img { border-radius: var(--radius-arch); aspect-ratio: 3 / 4; object-fit: cover; }
@media (min-width: 820px) { .bio-grid { grid-template-columns: 0.8fr 1.2fr; } }

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

footer {
  background: var(--ink);
  color: rgba(250, 245, 238, 0.8);
  padding: 3.5rem 0 6.5rem; /* espaço extra pro FAB */
  font-size: 0.95rem;
}
footer .wrap { display: grid; gap: 2rem; }
footer h3 { color: var(--cream); font-size: 1.1rem; }
footer a { color: var(--gold); }
footer address { font-style: normal; line-height: 1.8; }
footer .fine { font-size: 0.8rem; color: rgba(250, 245, 238, 0.45); border-top: 1px solid rgba(250, 245, 238, 0.15); padding-top: 1.5rem; }

@media (min-width: 820px) { footer .wrap { grid-template-columns: repeat(3, 1fr); } footer .fine { grid-column: 1 / -1; } }

/* ---------- Animação de entrada ---------- */

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

.reveal { animation: fadeUp 0.7s ease both; }
.reveal:nth-child(2) { animation-delay: 0.12s; }
.reveal:nth-child(3) { animation-delay: 0.24s; }
.reveal:nth-child(4) { animation-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { animation: none; }
  .btn:hover, .card:hover, .wa-fab:hover { transform: none; }
}
