/* ============================================================
   Recovery Premium V4.1 — Visual Polish Layer
   Camada aditiva de refinamento visual aplicada por cima
   da Recovery Premium V4.1 corrigida. Não substitui o base.
   ============================================================ */

/* ---------- Tokens de polimento ---------- */
:root {
  --rvp-ease: cubic-bezier(.22, 1, .36, 1);
  --rvp-ease-soft: cubic-bezier(.4, 0, .2, 1);
  --rvp-shadow-1: 0 1px 2px rgba(20, 8, 4, .06), 0 4px 12px rgba(20, 8, 4, .08);
  --rvp-shadow-2: 0 4px 10px rgba(20, 8, 4, .08), 0 16px 36px rgba(20, 8, 4, .12);
  --rvp-shadow-3: 0 8px 18px rgba(20, 8, 4, .10), 0 28px 60px rgba(20, 8, 4, .16);
  --rvp-shadow-dark-1: 0 2px 6px rgba(0, 0, 0, .25), 0 12px 32px rgba(0, 0, 0, .28);
  --rvp-shadow-dark-2: 0 6px 14px rgba(0, 0, 0, .32), 0 24px 56px rgba(0, 0, 0, .36);
  --rvp-ring: 0 0 0 3px rgba(231, 185, 41, .35);
  --rvp-radius-card: 28px;
  --rvp-radius-pill: 999px;
}

/* ---------- Base global ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
::selection { background: rgba(231, 185, 41, .32); color: #1a0b06; }

/* Permite âncoras (#produtos) não ficarem escondidas atrás de header fixo */
[id] { scroll-margin-top: 88px; }

/* Números tabulares em estatísticas (1979, 45+, etc.) */
.hmv, .v4-number { font-variant-numeric: tabular-nums; }

/* ---------- Foco acessível e elegante ---------- */
.recovery-v4 a:focus-visible,
.recovery-v4 button:focus-visible,
.recovery-v4 .btn:focus-visible,
.recovery-v4 input:focus-visible,
.recovery-v4 select:focus-visible,
.recovery-v4 textarea:focus-visible {
  outline: none;
  box-shadow: var(--rvp-ring);
  border-radius: 12px;
}
.recovery-v4 .v4-card:focus-visible,
.recovery-v4 .blog-card:focus-visible,
.recovery-v4 .v4-artists-card:focus-visible {
  outline: none;
  box-shadow: var(--rvp-shadow-2), var(--rvp-ring);
}

/* ---------- Tipografia refinada ---------- */
.recovery-v4 .v4-section-title,
.recovery-v4 .hh,
.recovery-v4 .xl {
  letter-spacing: -.012em;
  text-wrap: balance;
}
.recovery-v4 .v4-eyebrow {
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 800;
  font-size: .76rem;
  color: var(--rv4-gold);
  display: inline-block;
  padding-bottom: 2px;
}
.recovery-v4 .v4-section.light .v4-eyebrow { color: #a36510; }
.recovery-v4 .v4-section-copy { line-height: 1.62; max-width: 64ch; }
.recovery-v4 .hsu { line-height: 1.55; max-width: 58ch; }

/* ---------- Hero ---------- */
.recovery-v4 .hero, .recovery-v4 .page-hero {
  position: relative;
}
.recovery-v4 .hero .hh, .recovery-v4 .hero .xl {
  letter-spacing: -.018em;
}
.recovery-v4 .hero .hsu { color: rgba(255, 247, 233, .82); }
.recovery-v4 .hcard {
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 247, 233, .14);
  box-shadow: var(--rvp-shadow-dark-2);
  transition: transform .42s var(--rvp-ease), box-shadow .42s var(--rvp-ease);
}
.recovery-v4 .hcard:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .38), 0 36px 80px rgba(0, 0, 0, .42);
}
.recovery-v4 .hcf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 247, 233, .08);
  border-bottom: 1px solid rgba(255, 247, 233, .1);
  font-size: .78rem;
  letter-spacing: .03em;
  color: rgba(255, 247, 233, .9);
}

/* Badges/pin/topbar */
.recovery-v4 .topbar-pin { width: 6px; height: 6px; background: var(--rv4-gold); border-radius: 50%; display: inline-block; box-shadow: 0 0 0 4px rgba(231, 185, 41, .14); }
.recovery-v4 .tb { border-bottom: 1px solid rgba(255, 247, 233, .08); }

/* ---------- Botões refinados ---------- */
.recovery-v4 .btn {
  position: relative;
  letter-spacing: .015em;
  transition:
    transform .22s var(--rvp-ease),
    box-shadow .22s var(--rvp-ease),
    background-color .22s var(--rvp-ease-soft),
    border-color .22s var(--rvp-ease-soft),
    color .22s var(--rvp-ease-soft);
  will-change: transform;
}
.recovery-v4 .btn:hover { transform: translateY(-1px); }
.recovery-v4 .btn:active { transform: translateY(0); transition-duration: .08s; }
.recovery-v4 .btn.bg, .recovery-v4 .btn-primary {
  background: linear-gradient(135deg, #f0c43a, #d49d1b);
  color: #1a0b06;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 6px 18px rgba(231, 185, 41, .26);
}
.recovery-v4 .btn.bg:hover, .recovery-v4 .btn-primary:hover {
  box-shadow: 0 1px 0 rgba(255, 255, 255, .32) inset, 0 12px 28px rgba(231, 185, 41, .36);
  filter: brightness(1.04);
}
.recovery-v4 .btn.bgc, .recovery-v4 .btn.bw, .recovery-v4 .btn-outline {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 247, 233, .26);
  backdrop-filter: blur(2px);
}
.recovery-v4 .btn.bgc:hover, .recovery-v4 .btn.bw:hover, .recovery-v4 .btn-outline:hover {
  background: rgba(255, 247, 233, .12);
  border-color: rgba(231, 185, 41, .42);
}
.recovery-v4 .v4-section.light .btn.bgc,
.recovery-v4 .v4-section.light .btn.bw,
.recovery-v4 .v4-section.light .btn-outline {
  background: rgba(32, 16, 10, .04);
  border: 1px solid rgba(32, 16, 10, .14);
  color: var(--rv4-ink);
}
.recovery-v4 .v4-section.light .btn.bgc:hover,
.recovery-v4 .v4-section.light .btn.bw:hover {
  background: rgba(231, 185, 41, .14);
  border-color: rgba(231, 185, 41, .42);
}

/* ---------- Cards (refinamento de elevação e hover) ---------- */
.recovery-v4 .v4-card {
  position: relative;
  isolation: isolate;
  transition:
    transform .26s var(--rvp-ease),
    box-shadow .26s var(--rvp-ease),
    border-color .22s var(--rvp-ease-soft);
}
.recovery-v4 .v4-card.dark {
  box-shadow: var(--rvp-shadow-dark-1);
  background: linear-gradient(155deg, rgba(255, 247, 233, .12), rgba(255, 247, 233, .04));
}
.recovery-v4 .v4-card.dark:hover { box-shadow: var(--rvp-shadow-dark-2); }
.recovery-v4 .v4-card.light {
  box-shadow: var(--rvp-shadow-1);
  background: linear-gradient(155deg, #fffefa, #f6efdb);
}
.recovery-v4 .v4-card.light:hover { box-shadow: var(--rvp-shadow-2); }
.recovery-v4 .v4-card strong {
  display: block;
  margin-bottom: 6px;
}
.recovery-v4 .v4-card span {
  display: block;
  color: rgba(255, 247, 233, .68);
  line-height: 1.55;
  font-size: .94rem;
}
.recovery-v4 .v4-card.light span { color: rgba(32, 16, 10, .66); }

/* Quadro v4-paths refinado (premium) */
.recovery-v4 .v4-paths .v4-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 24px;
}
.recovery-v4 .v4-paths .v4-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 14px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--rv4-gold);
  background: linear-gradient(135deg, rgba(231, 185, 41, .22), rgba(231, 185, 41, .08));
  border: 1px solid rgba(231, 185, 41, .28);
  margin-bottom: 4px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .1) inset;
}
.recovery-v4 .v4-paths .v4-card strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  font-size: 1.32rem;
  letter-spacing: -.005em;
  margin-top: 2px;
}
.recovery-v4 .v4-paths .v4-action {
  margin-top: auto;
  align-self: flex-start;
}

/* Grid spacing global mais limpo */
.recovery-v4 .v4-grid { gap: 18px; }
.recovery-v4 .v4-paths .v4-grid { gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); display: grid; }

/* ---------- v4-action (CTA badge) refinado ---------- */
.recovery-v4 .v4-action {
  letter-spacing: .04em;
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 9px 16px;
  border-radius: var(--rvp-radius-pill);
  transition:
    background-color .22s var(--rvp-ease-soft),
    border-color .22s var(--rvp-ease-soft),
    color .22s var(--rvp-ease-soft),
    transform .22s var(--rvp-ease);
}

/* ---------- Section spacing rítmico ---------- */
.recovery-v4 .v4-section { padding: clamp(56px, 8vw, 96px) 0; }
.recovery-v4 .v4-section + .v4-section { border-top: 1px solid var(--rv4-line); }
.recovery-v4 .v4-section.light + .v4-section.light { border-top-color: var(--rv4-line-dark); }
.recovery-v4 .v4-section-head { margin-bottom: clamp(28px, 4vw, 44px); }

/* ---------- Hero tools bar (refinamento) ---------- */
.recovery-v4 .hero-tools-bar {
  background: linear-gradient(135deg, rgba(255, 247, 233, .06), rgba(255, 247, 233, .02));
  border: 1px solid rgba(255, 247, 233, .12);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .28);
}
.recovery-v4 .hero-tools-bar > span {
  font-size: .85rem;
  letter-spacing: .02em;
  color: rgba(255, 247, 233, .8);
  font-weight: 600;
}

/* ---------- Color palette (paleta inferior do hero) ---------- */
.recovery-v4 .hero-color-lab-track,
.recovery-v4 .v4-palette {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.recovery-v4 .hero-color-lab-track i,
.recovery-v4 .v4-palette i {
  display: block;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--sw, #ddd);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 4px 10px rgba(0, 0, 0, .14);
  border: 1px solid rgba(255, 255, 255, .12);
  transition: transform .22s var(--rvp-ease);
}
.recovery-v4 .hero-color-lab-track i:hover,
.recovery-v4 .v4-palette i:hover { transform: scale(1.1); }
.recovery-v4 .v4-palette { gap: 8px; }
.recovery-v4 .v4-palette i { width: 36px; height: 36px; border-radius: 10px; }

/* ---------- Color page entry cards (cores/index) ---------- */
.recovery-v4 .v4-color-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.recovery-v4 .v4-color-links a {
  display: block;
  padding: 18px 18px;
  border-radius: 18px;
  background: rgba(255, 247, 233, .07);
  border: 1px solid rgba(255, 247, 233, .14);
  text-decoration: none;
  color: var(--rv4-cream);
  transition:
    transform .22s var(--rvp-ease),
    background .22s var(--rvp-ease-soft),
    border-color .22s var(--rvp-ease-soft);
}
.recovery-v4 .v4-color-links a:hover {
  transform: translateY(-2px);
  background: rgba(255, 247, 233, .12);
  border-color: rgba(231, 185, 41, .42);
}
.recovery-v4 .v4-color-links strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.recovery-v4 .v4-color-links span {
  display: block;
  font-size: .82rem;
  color: rgba(255, 247, 233, .65);
}

/* ---------- Contact band ---------- */
.recovery-v4 .v4-contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(231, 185, 41, .14), rgba(231, 185, 41, .04));
  border: 1px solid rgba(32, 16, 10, .12);
  flex-wrap: wrap;
}

/* ---------- Footer refinado ---------- */
.recovery-v4 footer { background: var(--rv4-bg); color: rgba(255, 247, 233, .82); padding: 56px 0 28px; border-top: 1px solid rgba(255, 247, 233, .08); }
.recovery-v4 footer .fch { color: var(--rv4-gold); letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; font-weight: 800; margin-bottom: 14px; }
.recovery-v4 footer .fl { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.recovery-v4 footer .fl a { color: rgba(255, 247, 233, .76); text-decoration: none; font-size: .92rem; transition: color .18s ease; }
.recovery-v4 footer .fl a:hover { color: var(--rv4-gold); }
.recovery-v4 footer .fb { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255, 247, 233, .08); display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; font-size: .78rem; color: rgba(255, 247, 233, .56); }
.recovery-v4 footer .fb a { color: rgba(255, 247, 233, .68); text-decoration: none; transition: color .18s ease; }
.recovery-v4 footer .fb a:hover { color: var(--rv4-gold); }
.recovery-v4 footer .fci { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; font-size: .9rem; color: rgba(255, 247, 233, .8); }
.recovery-v4 footer .fci a { color: rgba(255, 247, 233, .9); text-decoration: none; }
.recovery-v4 footer .fci a:hover { color: var(--rv4-gold); }

/* WhatsApp FAB */
.recovery-v4 .wf .wfab {
  width: 58px; height: 58px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #1eaa4f);
  box-shadow: 0 8px 24px rgba(37, 211, 102, .42);
  transition: transform .26s var(--rvp-ease), box-shadow .26s var(--rvp-ease);
}
.recovery-v4 .wf .wfab:hover { transform: scale(1.06); box-shadow: 0 12px 32px rgba(37, 211, 102, .55); }
.recovery-v4 .wf .wt {
  background: rgba(255, 247, 233, .96);
  color: #1a0b06;
  font-size: .82rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
}

/* ---------- Blog premium card ---------- */
.recovery-v4 .blog-card { box-shadow: var(--rvp-shadow-1); }
.recovery-v4 .blog-card:hover { box-shadow: var(--rvp-shadow-3); }
.recovery-v4 .blog-card-thumb { background: linear-gradient(135deg, #2a1409, #3b1d10); }
.recovery-v4 .blog-card-tag {
  display: inline-block;
  background: rgba(231, 185, 41, .14);
  color: #7a4810;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(231, 185, 41, .26);
  align-self: flex-start;
}
.recovery-v4 .blog-card-cta { letter-spacing: .06em; }

/* ---------- Artists card refinado ---------- */
.recovery-v4 .v4-artists-card {
  position: relative;
  overflow: hidden;
  box-shadow: var(--rvp-shadow-1);
}
.recovery-v4 .v4-artists-card::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 320px; height: 320px;
  background: radial-gradient(circle at center, rgba(231, 185, 41, .26), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.recovery-v4 .v4-artists-card > * { position: relative; z-index: 1; }
.recovery-v4 .v4-artists-card:hover { box-shadow: var(--rvp-shadow-3); }

/* ---------- Imagens do hero ---------- */
.recovery-v4 .hcard img { transition: transform .6s var(--rvp-ease); }
.recovery-v4 .hcard:hover img { transform: scale(1.02); }

/* ---------- Calculadora & páginas internas ---------- */
.recovery-v4 input, .recovery-v4 select, .recovery-v4 textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(32, 16, 10, .14);
  background: #fffaf0;
  color: var(--rv4-ink);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.recovery-v4 input:focus, .recovery-v4 select:focus, .recovery-v4 textarea:focus {
  outline: none;
  border-color: rgba(231, 185, 41, .58);
  box-shadow: var(--rvp-ring);
}

/* ---------- Mobile breakpoints refinados ---------- */
@media (max-width: 1024px) {
  .recovery-v4 .v4-paths .v4-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .recovery-v4 .v4-section { padding: clamp(44px, 10vw, 72px) 0; }
  .recovery-v4 .v4-paths .v4-card { padding: 22px 20px; min-height: 168px; }
  .recovery-v4 .v4-paths .v4-card strong { font-size: 1.18rem; }
  .recovery-v4 .v4-color-links { grid-template-columns: 1fr; gap: 10px; }
  .recovery-v4 .v4-contact-band { flex-direction: column; align-items: flex-start; }
  .recovery-v4 .v4-contact-band .btn { width: 100%; justify-content: center; }
  .recovery-v4 .hero-tools-bar { padding: 18px !important; border-radius: 22px !important; }
  .recovery-v4 .hero-tools-bar > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .recovery-v4 .hero-tools-bar .btn { padding: 10px 12px; font-size: .85rem; }
  .recovery-v4 footer .fg { display: grid; grid-template-columns: 1fr; gap: 32px; }
  .recovery-v4 footer .fb { flex-direction: column; align-items: flex-start; gap: 14px; }
  .recovery-v4 footer .fb > div { flex-wrap: wrap; gap: 10px 14px !important; }
}
@media (max-width: 420px) {
  .recovery-v4 .v4-paths .v4-grid { grid-template-columns: 1fr; }
  .recovery-v4 .hero-tools-bar > div { grid-template-columns: 1fr; }
  .recovery-v4 .hmt { gap: 14px; }
  .recovery-v4 .hm { padding: 8px 0; }
  .recovery-v4 .hmv { font-size: 1.4rem; }
  .recovery-v4 .v4-section-title { font-size: clamp(1.7rem, 7vw, 2.2rem); }
}

/* ---------- Tablet ---------- */
@media (min-width: 761px) and (max-width: 1024px) {
  .recovery-v4 .v4-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Print ---------- */
@media print {
  .recovery-v4 .wf, .recovery-v4 .tb, .recovery-v4 .page-nav, .recovery-v4 nav,
  .recovery-v4 .hero-tools-bar, .recovery-v4 .v4-artists-card { display: none !important; }
  .recovery-v4 a { color: #000 !important; text-decoration: underline; }
  .recovery-v4 .v4-section, .recovery-v4 .hero { page-break-inside: avoid; padding: 16px 0 !important; }
}

/* ---------- Image rendering hints ---------- */
.recovery-v4 img { image-rendering: -webkit-optimize-contrast; }
.recovery-v4 .blog-card-thumb img,
.recovery-v4 .hcard img { image-rendering: auto; }

/* ---------- Refinamento de page-hero (páginas internas) ---------- */
.recovery-v4 .page-hero { padding: clamp(56px, 8vw, 100px) 0 clamp(40px, 6vw, 72px); }
.recovery-v4 .page-hero .page-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.recovery-v4 .page-actions .btn { min-width: 220px; }
@media (max-width: 540px) {
  .recovery-v4 .page-actions .btn { min-width: 0; width: 100%; }
}

/* ---------- Catálogo de cores: cards refinados ---------- */
.recovery-v4 .color-tile,
.recovery-v4 .swatch-tile {
  border-radius: 16px;
  overflow: hidden;
  transition: transform .22s var(--rvp-ease), box-shadow .22s var(--rvp-ease);
  box-shadow: var(--rvp-shadow-1);
}
.recovery-v4 .color-tile:hover,
.recovery-v4 .swatch-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--rvp-shadow-2);
}
