/* ========= base ========= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cr);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ter-d); }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.012em; margin: 0; font-weight: 800; }
h2 { font-size: clamp(30px, 4.4vw, 46px); margin-bottom: 28px; position: relative; display: inline-block; }
h2::after {
  content: ""; display: block; height: 14px; margin-top: 6px; width: 64%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 14' preserveAspectRatio='none'%3E%3Cpath d='M2 9c14-6 26-6 40 0s26 6 40 0 24-6 36 0' fill='none' stroke='%23C9663F' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat left center / 100% 100%;
}
h3 { font-size: 20px; margin-bottom: 8px; }
p { margin: 0 0 14px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
:focus-visible { outline: 3px solid var(--ter-d); outline-offset: 3px; border-radius: 6px; }

/* grão de papel, bem sutil */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 9; pointer-events: none; opacity: .045; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ========= nav ========= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 20px;
  background: rgba(251, 245, 238, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(59, 47, 42, .06);
}
.brand { font-weight: 800; font-size: 18px; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; line-height: 1; }
.brand small { display: block; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--ter-d); margin-top: 4px; font-weight: 700; }
.nav-toggle {
  width: 44px; height: 44px; border: 0; background: transparent; border-radius: 12px; cursor: pointer;
  display: grid; place-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu {
  position: absolute; left: 0; right: 0; top: 100%;
  display: none; flex-direction: column; gap: 4px;
  padding: 10px 20px 18px; background: rgba(251, 245, 238, .98);
  border-bottom: 1px solid rgba(59, 47, 42, .08);
}
.nav.open .menu { display: flex; }
.menu a { color: var(--ink); text-decoration: none; font-weight: 700; padding: 10px 6px; border-radius: 10px; }
.menu a:hover { background: var(--ros); }
.menu .btn { margin-top: 8px; justify-self: start; }
.menu a.btn { color: #fff; padding: 12px 18px; min-height: 44px; font-weight: 800; }
.menu a.btn:hover { background: var(--ter-d); color: #fff; }
@media (min-width: 900px) {
  .nav { padding: 12px 32px; }
  .nav-toggle { display: none; }
  .menu { position: static; display: flex; flex-direction: row; align-items: center; gap: 2px; padding: 0; background: transparent; border: 0; }
  .menu a { padding: 8px 12px; font-size: 15px; }
  .menu .btn { margin: 0 0 0 10px; }
}

/* ========= botões, pills, links ========= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 24px; border-radius: 999px;
  background: var(--ter-d); color: #fff; text-decoration: none;
  font-weight: 800; font-size: 15px; line-height: 1; letter-spacing: .005em;
  box-shadow: 0 12px 28px -10px rgba(181, 83, 46, .55);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 32px -10px rgba(181, 83, 46, .6); background: var(--ter); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 12px 18px; min-height: 44px; font-size: 14px; box-shadow: none; }
.btn-lg { padding: 18px 30px; font-size: 17px; }
.pill {
  display: inline-block; padding: 7px 14px; border-radius: 999px;
  background: #E6EEE4; color: var(--grn);
  font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.link { font-weight: 700; color: var(--ter-d); text-decoration: none; border-bottom: 2px solid rgba(181, 83, 46, .35); padding-bottom: 2px; }
.link:hover { border-color: var(--ter-d); }
.link::after { content: " →"; }

/* ========= hero (vídeo de fundo + letras que se organizam no scroll) ========= */
.hero { position: relative; }
.hero-stage {
  position: sticky; top: 0; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center; gap: 28px;
  padding: 112px 0 56px; overflow: hidden; isolation: isolate;
}
.hero-fallback, .hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%;
  z-index: -3; transform-origin: 50% 50%;
}
.hero-fallback { animation: kenburns 26s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero-video { z-index: -2; opacity: 0; transition: opacity .9s ease; }
.hero-video.ready { opacity: 1; }
.hero-veil {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(251,245,238,.9) 0%, rgba(251,245,238,.84) 42%, rgba(251,245,238,.3) 72%, rgba(251,245,238,.06) 100%);
}
.hero-veil-2 { position: absolute; inset: 0; z-index: -1; opacity: .3; background: linear-gradient(180deg, rgba(59,47,42,0) 70%, rgba(59,47,42,.32)); }
@media (max-width: 899px) { .hero-veil { background: rgba(251,245,238,.84); } }
.hero-inner { position: relative; display: flex; flex-direction: column; gap: 28px; }
.hero-copy { position: relative; z-index: 1; max-width: 720px; }
.hero .pill { margin-bottom: 18px; }
.hero h1 { font-size: clamp(32px, 5.6vw, 54px); margin: 0 0 20px; max-width: 15ch; }
/* título: primeira frase alinhada normal; a segunda em letra manuscrita (decisão do William, 11/10) */
.hero h1 .w { display: inline-block; }
.hero h1 .hand { display: block; margin-top: 10px; font-family: 'Caveat', 'Segoe Script', cursive; font-weight: 600; font-size: 1.22em; line-height: .95; color: var(--ter-d); transform: rotate(-1.6deg); letter-spacing: .01em; }

.lead { font-size: clamp(17px, 2vw, 20px); line-height: 1.55; max-width: 520px; margin-bottom: 26px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.trust {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  font-size: 13px; font-weight: 700; color: var(--ink); opacity: .85;
}
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sal); }
/* copy e CTA sempre visíveis (revisão: botão focável nunca fica invisível); só entram com um stagger no load */
.js .hero .fade { animation: rise .7s ease both; }
.js .hero .lead { animation-delay: .15s; }
.js .hero .cta-row { animation-delay: .3s; }
.js .hero .trust { animation-delay: .45s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (min-width: 900px) {
  .hero-stage { padding-top: 140px; }
  .trust { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-fallback { animation: none; }
  .js .hero .fade { animation: none; }
}

/* ========= seções ========= */
.section { padding: 72px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, #F7EBE1 0%, var(--cr) 100%); }
@media (min-width: 900px) { .section { padding: 112px 0; } }

/* para quem */
.signs { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; }
.signs li {
  position: relative; padding: 16px 18px 16px 54px; background: #fff; border-radius: 18px;
  font-weight: 600; box-shadow: 0 10px 30px -22px rgba(59, 47, 42, .35);
}
.signs li::before {
  content: ""; position: absolute; left: 16px; top: 15px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--sal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}
@media (min-width: 768px) { .signs { grid-template-columns: 1fr 1fr; gap: 14px; } }
.callout {
  background: var(--ros); border-radius: var(--r-sm); padding: 26px 28px;
  font-size: clamp(19px, 2.4vw, 24px); font-weight: 700; line-height: 1.4; max-width: 820px;
  transform: rotate(-.6deg); box-shadow: 0 20px 40px -30px rgba(59, 47, 42, .5);
}

/* como funciona */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; counter-reset: step; }
.steps li { position: relative; background: #fff; border-radius: var(--r-sm); padding: 28px 24px 22px; box-shadow: 0 14px 36px -28px rgba(59, 47, 42, .5); }
.steps .num {
  display: inline-block; font-size: 54px; font-weight: 800; line-height: 1; color: var(--ter);
  margin-bottom: 10px; letter-spacing: -0.04em;
}
.steps h3 { font-size: 21px; }
.steps p { margin: 0; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } .steps li { padding: 32px 28px 28px; } }

/* em casa */
.cards { display: grid; gap: 16px; }
.card { background: #fff; border-radius: var(--r-sm); padding: 24px 22px; box-shadow: 0 14px 36px -28px rgba(59, 47, 42, .5); transition: transform .2s ease; }
.card:hover { transform: translateY(-3px); }
.card h3 { font-size: 19px; color: var(--ter-d); }
.card p { margin: 0; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); } }

/* sobre */
.about { display: grid; gap: 36px; align-items: center; }
.about-photo { position: relative; margin: 0 auto; width: min(360px, 82%); aspect-ratio: 3 / 4; }
.about-photo::before { content: ""; position: absolute; inset: 10% -8% -6% 8%; background: var(--ros); border-radius: 50% 50% 36px 36px / 40% 40% 36px 36px; transform: rotate(-4deg); z-index: 0; }
.about-photo img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; border-radius: 200px 200px var(--r-lg) var(--r-lg); background: var(--sal); }
.about-text h2 { margin-bottom: 20px; }
.about-text h3 { margin-top: 24px; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--ter-d); }
.creds { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.creds li { position: relative; padding-left: 20px; font-size: 15px; }
.creds li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--sal); }
@media (min-width: 900px) {
  .about { grid-template-columns: 5fr 7fr; gap: 64px; }
  .about-photo { width: 100%; max-width: 420px; }
  .creds { grid-template-columns: 1fr 1fr; gap: 8px 20px; }
}

/* depoimentos */
.quotes { display: grid; gap: 16px; }
.quotes blockquote { margin: 0; background: #fff; border-radius: var(--r-sm); padding: 26px 24px; box-shadow: 0 14px 36px -28px rgba(59, 47, 42, .5); }
.quotes blockquote p { font-size: 17px; }
.quotes cite { font-style: normal; font-weight: 800; color: var(--ter-d); font-size: 14px; }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(3, 1fr); } }

/* investimento */
.prices { display: grid; gap: 16px; margin-bottom: 22px; }
.price { background: #fff; border-radius: var(--r-sm); padding: 26px 24px; border: 2px solid transparent; box-shadow: 0 14px 36px -28px rgba(59, 47, 42, .5); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.price:hover { border-color: var(--ter); transform: translateY(-4px); box-shadow: 0 24px 40px -24px rgba(181, 83, 46, .45); }
.price h3 { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--ter-d); margin-bottom: 10px; }
.price .value { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; margin-bottom: 8px; }
.price .meta { margin: 0; font-weight: 600; opacity: .8; }
.note { max-width: 720px; font-size: 15px; opacity: .9; margin-bottom: 22px; }
@media (min-width: 900px) { .prices { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* dúvidas */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: #fff; border-radius: 18px; padding: 0 20px; box-shadow: 0 10px 30px -24px rgba(59, 47, 42, .5); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-weight: 800; font-size: 17px; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ros); color: var(--ter-d); font-weight: 800; transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0; padding: 0 0 18px; }

/* contato */
.contact { background: #E6EEE4; text-align: center; }
.contact .wrap { display: flex; flex-direction: column; align-items: center; }
.contact h2 { max-width: 14ch; }
.contact h2::after { margin-left: auto; margin-right: auto; }
.contact .lead { text-align: center; margin-bottom: 26px; }
.ig-pill { display: inline-flex; align-items: center; gap: 12px; margin-top: 26px; padding: 14px 22px 14px 16px; border-radius: 999px; background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; box-shadow: 0 14px 30px -20px rgba(59, 47, 42, .5); transition: transform .18s ease; }
.ig-pill svg { color: var(--ter-d); flex: none; }
.ig-pill b { color: var(--ter-d); }
.ig-pill:hover { transform: translateY(-2px); }
.contact-meta { margin: 18px 0 0; font-weight: 700; opacity: .85; }
.quotes blockquote { position: relative; }
.quotes .tag { position: absolute; top: 12px; right: 14px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--ter-d); background: var(--ros); padding: 4px 8px; border-radius: 999px; }

/* rodapé */
.footer { padding: 36px 0 110px; font-size: 14px; }
.footer p { margin: 0 0 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 12px; }
.footer-links a { color: var(--ink); text-decoration: none; font-weight: 700; opacity: .8; }
.footer .copy { opacity: .6; }
@media (min-width: 900px) { .footer { padding-bottom: 48px; } }

/* WhatsApp flutuante */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 14px 28px -8px rgba(37, 211, 102, .6);
  transition: transform .18s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(37, 211, 102, .5); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }

/* ========= revelação no scroll (classe .reveal entra pelo main.js; se ele falhar, tudo fica visível) ========= */
.reveal .section .wrap > * { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal .section.in .wrap > * { opacity: 1; transform: none; }
.reveal .section.in .wrap > *:nth-child(2) { transition-delay: .08s; }
.reveal .section.in .wrap > *:nth-child(3) { transition-delay: .16s; }
.reveal .section.in .wrap > *:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal .section .wrap > * { opacity: 1; transform: none; }
}
