/* ============================================================
   Cássia Lecink — cabelos & beleza · Londrina
   Sistema: "Salão à noite"
   Preto profundo da logo + framboesa comprometida + blush.
   Marcellus (display, eco do serifado da logo)
   Hanken Grotesk (corpo) · Great Vibes (assinatura script)
   Mobile-first · CSS-only · WCAG AA no escuro
   ============================================================ */

:root {
  --bg: oklch(17% 0.014 20);
  --bg-deep: oklch(12.5% 0.012 20);
  --surface: oklch(21.5% 0.02 16);
  --ink: oklch(95% 0.008 15);
  --soft: oklch(82% 0.022 15);
  --brand: oklch(63% 0.205 13);
  --brand-deep: oklch(50% 0.19 13);
  --blush: oklch(88% 0.055 14);
  --on-brand: oklch(17% 0.04 15);
  --wa: #22c15e;
  --line: oklch(88% 0.055 14 / 0.16);
  --font-display: "Marcellus", "Georgia", serif;
  --font-body: "Hanken Grotesk", "Segoe UI", sans-serif;
  --font-script: "Great Vibes", cursive;
  --max: 1100px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1); /* ease-out-quint */
  /* z-scale semântica */
  --z-sticky: 30;
  --z-fab: 40;
}

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

html { scroll-behavior: smooth; }

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

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

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

::selection { background: var(--brand); color: var(--on-brand); }

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

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

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

h1 { font-size: clamp(2.3rem, 6.4vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 4.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p { text-wrap: pretty; }

.script {
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--blush);
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  line-height: 1.2;
  display: block;
  margin: 0 0 0.35rem;
}

.lede {
  font-size: clamp(1.05rem, 2.4vw, 1.22rem);
  color: var(--soft);
  max-width: 56ch;
}

.measure { max-width: 68ch; }

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2rem); }

section { padding: clamp(3.5rem, 8vw, 6rem) 0; }

.section-head { max-width: 62ch; margin-bottom: clamp(1.8rem, 4vw, 3rem); }

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

.top {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: oklch(17% 0.014 20 / 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1.25rem, 4vw, 2rem) 0.55rem;
  max-width: var(--max);
  margin: 0 auto;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.06em;
  white-space: nowrap;
  line-height: 1.1;
}
.wordmark small {
  display: block;
  font-family: var(--font-script);
  font-size: 0.95rem;
  color: var(--brand);
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  gap: clamp(0.9rem, 3vw, 1.6rem);
  overflow-x: auto;
  padding: 0.15rem clamp(1.25rem, 4vw, 2rem) 0.75rem;
  max-width: var(--max);
  margin: 0 auto;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }

.nav a {
  flex: 0 0 auto;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--soft);
  text-decoration: none;
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brand); }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.9rem 1.7rem;
  min-height: 44px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn-brand {
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: 0 10px 30px oklch(63% 0.205 13 / 0.3);
}
.btn-brand:hover { background: oklch(67% 0.205 13); box-shadow: 0 14px 36px oklch(63% 0.205 13 / 0.4); }

.btn-dark {
  background: var(--bg-deep);
  color: var(--blush);
  box-shadow: 0 10px 30px oklch(12.5% 0.012 20 / 0.5);
}

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

.btn-sm { padding: 0.55rem 1.15rem; font-size: 0.88rem; min-height: 40px; }

/* WhatsApp flutuante */
.wa-fab {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: var(--z-fab);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--wa);
  color: #06140b;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.85rem 1.3rem;
  min-height: 44px;
  border-radius: 999px;
  box-shadow: 0 12px 34px rgb(34 193 94 / 0.42);
  transition: transform 0.25s var(--ease);
}
.wa-fab:hover { transform: scale(1.05); }
.wa-fab svg { width: 20px; height: 20px; flex: none; }

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

.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 8vw, 6rem); overflow: hidden; }

.hero-grid { display: grid; gap: clamp(2.2rem, 6vw, 4rem); align-items: center; }

.hero-copy .lede { margin: 1.1rem 0 2rem; }

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

/* retrato circular com anel framboesa — eco do círculo pincelado da logo */
.portrait-ring {
  position: relative;
  justify-self: center;
  width: min(74vw, 400px);
  aspect-ratio: 1;
}
.portrait-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.portrait-ring::before {
  content: "";
  position: absolute;
  inset: -13px -6px -1px -15px;
  border: 3px solid var(--brand);
  border-radius: 50%;
  transform: rotate(-8deg);
  border-right-color: transparent;
  pointer-events: none;
}
.portrait-ring::after {
  content: "";
  position: absolute;
  inset: -4px -16px -12px 2px;
  border: 2px solid oklch(63% 0.205 13 / 0.45);
  border-radius: 50%;
  transform: rotate(14deg);
  border-left-color: transparent;
  pointer-events: none;
}

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

/* ---------- Marquee de serviços ---------- */

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 0.85rem 0;
  background: var(--bg-deep);
}
.marquee-track {
  display: flex;
  gap: 2.75rem;
  width: max-content;
  animation: ticker 36s linear infinite;
}
.marquee span {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soft);
  white-space: nowrap;
}
.marquee span::after {
  content: "·";
  color: var(--brand);
  margin-left: 2.75rem;
  font-size: 1.4rem;
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Menu de salão (serviços + preços) ---------- */

.menu { display: grid; gap: 0.4rem; }

.menu-row {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 1rem;
  align-items: baseline;
  padding: 1.3rem 0.25rem;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.3s var(--ease), padding 0.3s var(--ease);
}
a.menu-row:hover { background: var(--surface); padding-inline: 1rem; }

.menu-name {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  min-width: 0;
}
.menu-name::after {
  content: "";
  flex: 1;
  min-width: 2rem;
  border-bottom: 2px dotted oklch(88% 0.055 14 / 0.28);
  transform: translateY(-0.35em);
}

.menu-price {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  color: var(--brand);
  white-space: nowrap;
}
.menu-price small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--soft);
  text-align: right;
}

.menu-desc {
  grid-column: 1 / -1;
  margin: 0.35rem 0 0;
  color: var(--soft);
  font-size: 0.97rem;
  max-width: 58ch;
}

.menu-note { color: var(--soft); font-size: 0.95rem; max-width: 62ch; margin-top: 1.5rem; }

/* ---------- Quebra de imagem full-bleed ---------- */

.fullbleed {
  position: relative;
  padding: 0;
}
.fullbleed img {
  width: 100%;
  max-height: 72vh;
  object-fit: cover;
}
.fullbleed figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: clamp(1.5rem, 5vw, 3rem);
  background: linear-gradient(to top, oklch(12.5% 0.012 20 / 0.92), transparent);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3vw, 1.7rem);
  text-align: center;
  text-wrap: balance;
}
.fullbleed figcaption em { font-style: normal; color: var(--blush); }

/* ---------- A regra da casa (declarações) ---------- */

.statements { display: grid; gap: clamp(2rem, 5vw, 3rem); }

.statement { max-width: 60ch; }
.statement h3 {
  font-size: clamp(1.4rem, 3.4vw, 1.9rem);
  margin-bottom: 0.35rem;
}
.statement h3 em { font-style: normal; color: var(--brand); }
.statement p { margin: 0; color: var(--soft); }

.statement:nth-child(2) { justify-self: center; }
.statement:nth-child(3) { justify-self: end; text-align: right; }
.statement:nth-child(3) p { margin-left: auto; }

@media (max-width: 640px) {
  .statement:nth-child(2), .statement:nth-child(3) { justify-self: start; text-align: left; }
}

/* divisor rosa — haste da flor da logo */
.rose-divider {
  display: block;
  width: 130px;
  margin: 0 auto;
  color: var(--brand);
}

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

.gallery {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, 1fr);
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  transition: transform 0.5s var(--ease);
}
.gallery a { display: block; overflow: hidden; border-radius: 18px; }
.gallery a:hover img { transform: scale(1.045); }

@media (min-width: 720px) {
  .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; }
  .gallery .tall { grid-row: span 2; }
  .gallery .wide { grid-column: span 2; }
  .gallery img { height: 100%; }
}
@media (max-width: 719px) {
  .gallery img { aspect-ratio: 4 / 5; }
}

/* ---------- Passos (sequência real) ---------- */

.steps { display: grid; gap: 1.75rem; counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: 1.1rem;
  align-items: start;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--brand);
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 3.4rem;
  height: 3.4rem;
  display: grid;
  place-items: center;
}
.step h3 { margin-bottom: 0.25rem; font-size: 1.25rem; }
.step p { margin: 0; color: var(--soft); font-size: 0.98rem; }

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

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

.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.18rem;
  padding: 1.1rem 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  transition: color 0.25s var(--ease);
}
.faq summary:hover { color: var(--blush); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--brand);
  font-size: 1.5rem;
  flex: none;
  transition: rotate 0.3s var(--ease);
}
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { margin: 0 0 1.25rem; color: var(--soft); max-width: 64ch; }

/* ---------- Painel local ---------- */

.local {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: clamp(2rem, 5vw, 3.25rem);
  display: grid;
  gap: 2rem;
}
.local address {
  font-style: normal;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3.4vw, 1.9rem);
  line-height: 1.45;
}
.local address span { display: block; font-family: var(--font-body); font-size: 1rem; color: var(--soft); margin-top: 0.6rem; }
.local-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; align-content: center; }

@media (min-width: 840px) { .local { grid-template-columns: 1.2fr 0.8fr; align-items: center; } }

/* ---------- Faixa framboesa (CTA drench) ---------- */

.band-brand {
  background: linear-gradient(160deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: var(--on-brand);
  text-align: center;
  padding: clamp(4rem, 10vw, 6.5rem) 0;
}
.band-brand .script { color: oklch(20% 0.05 15 / 0.85); }
.band-brand h2 { color: var(--on-brand); max-width: 24ch; margin-inline: auto; }
.band-brand p { color: oklch(24% 0.05 15); max-width: 52ch; margin: 1rem auto 2.2rem; font-size: 1.08rem; }

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

.bio-grid { display: grid; gap: clamp(2.2rem, 6vw, 4rem); align-items: start; }
@media (min-width: 840px) { .bio-grid { grid-template-columns: 0.8fr 1.2fr; } }
.bio-grid .portrait-ring { width: min(70vw, 360px); }

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

footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  color: var(--soft);
  padding: 3.5rem 0 7rem; /* respiro pro FAB */
  font-size: 0.97rem;
}
footer .wrap { display: grid; gap: 2.25rem; }
footer h3 { color: var(--ink); font-size: 1.1rem; margin-bottom: 0.5rem; }
footer address { font-style: normal; line-height: 1.8; }
footer img.logo { width: 150px; mix-blend-mode: screen; }
footer .fine {
  font-size: 0.8rem;
  color: oklch(82% 0.022 15 / 0.7); /* mínimo 4.5:1 sobre --bg-deep (WCAG AA em 12.8px) */
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}

@media (min-width: 840px) {
  footer .wrap { grid-template-columns: auto 1fr 1fr 1fr; align-items: start; }
  footer .fine { grid-column: 1 / -1; }
}

/* ---------- Blog: índice ---------- */

.post-list { display: grid; gap: 1.5rem; }
.post-card {
  display: grid;
  gap: 1.4rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
  align-items: center;
}
.post-card:hover { border-color: var(--brand); background: var(--surface); }
.post-card img { border-radius: 14px; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.post-card h3 { margin: 0 0 0.4rem; font-size: clamp(1.3rem, 3.2vw, 1.7rem); }
.post-card p { margin: 0; color: var(--soft); font-size: 0.98rem; }
.post-card .meta { font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand); margin-bottom: 0.5rem; }
@media (min-width: 680px) { .post-card { grid-template-columns: 240px 1fr; } }

/* ---------- Blog: artigo ---------- */

.article { max-width: 44rem; margin: 0 auto; }
.article-head { text-align: center; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.article-head .meta {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.8rem;
}
.article-head p.lede { margin: 1rem auto 0; }

.article-body { font-size: 1.08rem; line-height: 1.75; }
.article-body > p { margin: 0 0 1.4rem; }
.article-body h2 { font-size: clamp(1.5rem, 3.6vw, 2rem); margin: 2.6rem 0 1rem; }
.article-body h3 { font-size: 1.3rem; margin: 2rem 0 0.6rem; }
.article-body strong { color: var(--ink); }
.article-body ul { margin: 0 0 1.4rem; padding-left: 1.3rem; }
.article-body li { margin-bottom: 0.6rem; color: var(--soft); }
.article-body li::marker { color: var(--brand); }
.article-body a { color: var(--blush); }

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6rem 0;
  font-size: 0.98rem;
}
.article-body th, .article-body td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
}
.article-body th { font-family: var(--font-display); font-weight: 400; color: var(--ink); }
.article-body td:last-child { color: var(--brand); font-family: var(--font-display); white-space: nowrap; }
.table-scroll { overflow-x: auto; }

.pull {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.6vw, 1.9rem);
  line-height: 1.3;
  color: var(--ink);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.6rem 0;
  margin: 2.2rem 0;
  text-wrap: balance;
}
.pull em { font-style: normal; color: var(--brand); }

.article-cta {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(1.6rem, 4vw, 2.4rem);
  margin: 2.6rem 0 0;
  text-align: center;
}
.article-cta h3 { margin: 0 0 0.6rem; }
.article-cta p { color: var(--soft); margin: 0 0 1.4rem; }

/* ---------- Motion ---------- */

@keyframes rise {
  from { opacity: 0; translate: 0 22px; }
  to { opacity: 1; translate: 0 0; }
}

/* entrada do hero: coreografia única de carregamento */
.r1, .r2, .r3, .r4 { animation: rise 0.9s var(--ease) both; }
.r2 { animation-delay: 0.1s; }
.r3 { animation-delay: 0.2s; }
.r4 { animation-delay: 0.32s; }

/* o retrato (elemento LCP) entra sem fade: opacity 0 segura o LCP até o fim da animação */
@keyframes rise-solid {
  from { translate: 0 22px; }
  to { translate: 0 0; }
}
.portrait-ring.r1, .portrait-ring.r2, .portrait-ring.r3, .portrait-ring.r4 { animation-name: rise-solid; }

/* reveals por scroll: progressivos, conteúdo visível por padrão */
@supports (animation-timeline: view()) {
  .vt {
    animation: rise 0.9s var(--ease) both;
    animation-timeline: view();
    animation-range: entry 0% entry 38%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .r1, .r2, .r3, .r4, .vt { animation: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .btn:hover, .wa-fab:hover, .gallery a:hover img { transform: none; }
}
