/* ============================================================
   Estúdio Malice — Base compartilhada (nav, footer, componentes)
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--porcelain);
  overflow-x: hidden;
}

/* grão sutil */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2000;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

em, .accent-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--rose-deep);
}

.container { width: min(var(--container), 100% - 2.5rem); margin-inline: auto; }
.container-wide { width: min(var(--container-wide), 100% - 2rem); margin-inline: auto; }

section { padding-block: var(--space-section); position: relative; }

/* ---- superfícies ---- */
.surface-blush { background: var(--blush); }
.surface-plum { background: var(--plum); color: var(--porcelain); }
.surface-plum em, .surface-plum .accent-italic { color: var(--rose-soft); }
.surface-plum .eyebrow { color: var(--gold); }

/* ---- eyebrow ---- */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--rose-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--space-sm);
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }

/* ---- títulos de seção ---- */
.section-title { font-size: var(--text-2xl); max-width: 18ch; }
.section-title.center { margin-inline: auto; text-align: center; }
.lead { font-size: var(--text-lg); color: var(--ink-soft); max-width: 56ch; }
.surface-plum .lead { color: #d9cbc4; }

/* ---- botões ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: var(--radius-pill);
  padding: 1rem 2rem;
  transition: transform var(--duration-fast) var(--ease-out-expo),
              background var(--duration-fast) ease,
              box-shadow var(--duration-fast) ease;
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--rose-deep); color: var(--white-warm); box-shadow: 0 10px 30px -12px rgba(138, 79, 66, 0.6); }
.btn-primary:hover { background: #8a4f42; transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--rose-soft); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--rose); transform: translateY(-2px); }
.surface-plum .btn-ghost { color: var(--porcelain); box-shadow: inset 0 0 0 1.5px rgba(250, 246, 241, 0.35); }
.surface-plum .btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--gold); }

.link-underline {
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--rose-deep);
  border-bottom: 1.5px solid var(--rose-soft);
  padding-bottom: 2px;
  transition: border-color var(--duration-fast) ease, color var(--duration-fast) ease;
}
.link-underline:hover { color: var(--ink); border-color: var(--ink); }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2.5px solid var(--rose-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- header ---- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background var(--duration-normal) ease, box-shadow var(--duration-normal) ease, height var(--duration-normal) var(--ease-out-expo);
}
.site-header.scrolled {
  background: rgba(250, 246, 241, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(43, 35, 32, 0.07);
  height: 68px;
}
.nav {
  width: min(var(--container-wide), 100% - 2.5rem);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 46px; width: auto; transition: height var(--duration-normal) var(--ease-out-expo); }
.site-header.scrolled .nav-logo img { height: 34px; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a:not(.btn) {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color var(--duration-fast) ease;
}
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { color: var(--rose-deep); }
.nav-links .btn { padding: 0.7rem 1.5rem; font-size: 0.85rem; }

/* dropdown ensaios */
.nav-drop { position: relative; }
.nav-drop > a { display: inline-flex; align-items: center; gap: 0.35rem; }
.nav-drop > a::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.nav-drop-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--white-warm);
  border-radius: 16px;
  box-shadow: 0 24px 60px -20px rgba(43, 35, 32, 0.25);
  padding: 0.6rem;
  min-width: 220px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-fast) var(--ease-out-expo);
}
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav-drop-menu a {
  display: block;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
}
.nav-drop-menu a:hover { background: var(--blush); color: var(--rose-deep); }

.nav-toggle { display: none; background: none; border: none; width: 44px; height: 44px; cursor: pointer; position: relative; z-index: 1002; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; position: absolute; width: 26px; height: 2px; background: var(--ink); border-radius: 2px;
  left: 9px; transition: all var(--duration-fast) ease; content: "";
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -8px; left: 0; }
.nav-toggle span::after { top: 8px; left: 0; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* ---- marquee ---- */
.marquee { overflow: hidden; white-space: nowrap; padding-block: var(--space-md); user-select: none; }
.marquee-track { display: inline-flex; gap: 3rem; animation: marquee 38s linear infinite; will-change: transform; }
.marquee-track span {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--rose);
  display: inline-flex;
  align-items: center;
  gap: 3rem;
}
.marquee-track span::after { content: "✦"; font-size: 0.8em; color: var(--gold); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- reveals ---- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity var(--duration-slow) var(--ease-out-expo), transform var(--duration-slow) var(--ease-out-expo); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 120ms; }
.reveal-d2 { transition-delay: 240ms; }
.reveal-d3 { transition-delay: 360ms; }

/* ---- imagens editoriais ---- */
.img-frame { border-radius: var(--radius-img); overflow: hidden; }
.img-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out-expo); }
.img-frame:hover img { transform: scale(1.04); }

/* ---- FAQ ---- */
.faq-list { max-width: 760px; margin-inline: auto; display: grid; gap: 0.9rem; }
.faq-item {
  background: var(--white-warm);
  border-radius: 18px;
  border: 1px solid rgba(201, 138, 125, 0.18);
  overflow: hidden;
  transition: border-color var(--duration-fast) ease;
}
.faq-item[open] { border-color: var(--rose-soft); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.3rem 1.6rem;
  font-weight: 600;
  font-size: 1.02rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--rose);
  line-height: 1;
  transition: transform var(--duration-fast) ease;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 1.6rem 1.4rem; color: var(--ink-soft); }

/* ---- depoimentos ---- */
.stars { color: var(--gold); letter-spacing: 0.2em; font-size: 0.95rem; }
.quote-card {
  background: var(--white-warm);
  border-radius: var(--radius-card);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  border: 1px solid rgba(201, 138, 125, 0.14);
}
.quote-card blockquote { font-family: var(--font-display); font-size: 1.15rem; font-style: italic; line-height: 1.45; color: var(--ink); }
.quote-card figcaption { font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); }
.quote-card figcaption small { display: block; font-weight: 400; color: var(--rose); margin-top: 2px; }

/* ---- CTA final assinatura ---- */
.cta-final { text-align: center; }
.cta-final h2 { font-size: var(--text-hero); max-width: 16ch; margin-inline: auto; }
.cta-final .lead { margin: var(--space-md) auto; }
.cta-final .btn-row { justify-content: center; }
.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; margin-top: var(--space-md); }

/* ---- footer ---- */
.site-footer { background: var(--plum-deep); color: #cbbcb5; padding: var(--space-xl) 0 var(--space-md); font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--space-lg); margin-bottom: var(--space-xl); }
.footer-logo { width: 200px; height: auto; margin-bottom: 1rem; filter: brightness(1.35) saturate(0.75); }
.footer-brand em { color: var(--rose-soft); font-size: 1.05rem; }
.footer-grid h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.22em; color: var(--gold); margin-bottom: 1.1rem; font-family: var(--font-body); font-weight: 600; }
.footer-grid ul { list-style: none; display: grid; gap: 0.55rem; }
.footer-grid a { text-decoration: none; color: #cbbcb5; transition: color var(--duration-fast) ease; }
.footer-grid a:hover { color: var(--porcelain); }
.footer-bottom { border-top: 1px solid rgba(250, 246, 241, 0.12); padding-top: var(--space-md); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.82rem; color: #9d8d86; }

/* ---- whatsapp flutuante ---- */
.wa-float {
  position: fixed;
  bottom: 22px; right: 22px;
  z-index: 900;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--rose);
  display: grid;
  place-items: center;
  box-shadow: 0 14px 34px -10px rgba(169, 100, 85, 0.6);
  transition: transform var(--duration-fast) var(--ease-out-expo), background var(--duration-fast) ease;
}
.wa-float:hover { transform: scale(1.08); background: var(--rose-deep); }
.wa-float svg { width: 28px; height: 28px; fill: var(--white-warm); }

/* ---- responsivo ---- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--porcelain);
    flex-direction: column;
    justify-content: center;
    gap: 1.6rem;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--duration-normal) ease;
    z-index: 1001;
  }
  .nav-links.open { opacity: 1; visibility: visible; }
  .nav-links a:not(.btn) { font-size: 1.25rem; }
  .nav-drop-menu {
    position: static; transform: none; opacity: 1; visibility: visible;
    box-shadow: none; background: transparent; text-align: center; min-width: 0; padding: 0;
  }
  .nav-drop > a::after { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-md); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .img-frame img, .btn { transition: none; }
}

/* crédito Wise Start no rodapé */
.footer-credit { text-align: center; margin-top: var(--space-md); padding-top: 1.1rem; border-top: 1px solid rgba(250, 246, 241, 0.08); }
.footer-credit a { display: inline-flex; align-items: center; gap: 0.55rem; color: #9d8d86; text-decoration: none; font-size: 0.8rem; letter-spacing: 0.01em; transition: color var(--duration-fast) ease, opacity var(--duration-fast) ease; }
.footer-credit a:hover { color: #e9ddd6; }
.footer-credit img { height: 19px; width: auto; opacity: 0.85; transition: opacity var(--duration-fast) ease; }
.footer-credit a:hover img { opacity: 1; }
