:root {
  --bg: #faf8f3;
  --bg-soft: #f0ece2;
  --bg-dark: #1e2b22;
  --ink: #222a24;
  --ink-soft: #4f5a52;
  --accent: #2f6b3f;
  --accent-dark: #235232;
  --accent-light: #9bd3a8;
  --on-dark: #f1f3ec;
  --on-dark-soft: #bfc9bd;
  --line: #dcd8cb;
  --field-border: #8b9388;
  --white: #ffffff;
  --star: #b8801f;
  --wa: #25a244;
  --wa-dark: #1e7a35;
  --error: #b3261e;
  --radius: 10px;
  --font-serif: "Fraunces", Georgia, serif;
  --font-sans: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font-family: var(--font-sans); color: var(--ink); background: var(--bg); line-height: 1.6; }
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-serif); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 7vw, 4rem); }
h2 { font-size: clamp(1.9rem, 5vw, 2.8rem); }
h3 { font-size: 1.4rem; }
code { background: var(--bg-soft); padding: 0 .3em; border-radius: 4px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--white); padding: .75rem 1rem; z-index: 200; }
.skip-link:focus { left: 0; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.container--narrow { max-width: 760px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--accent-dark); margin: 0 0 .75rem; }
.section { padding: 64px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--bg-dark); color: var(--on-dark); }
.section--dark .eyebrow { color: var(--accent-light); }
.section__lead { max-width: 640px; color: var(--ink-soft); margin: 0 0 2rem; }
.section--dark .section__lead { color: var(--on-dark-soft); }
.note { margin-top: 1.25rem; font-size: .85rem; color: var(--ink-soft); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.5rem; border-radius: 999px; background: var(--accent); color: var(--white); font-weight: 600; text-decoration: none; border: 2px solid var(--accent); cursor: pointer; font-family: inherit; font-size: 1rem; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: var(--white); }
.btn--small { min-height: 44px; }
.btn--block { width: 100%; }

/* Header */
.header { position: sticky; top: 0; z-index: 100; background: var(--bg-dark); color: var(--on-dark); }
.header__bar { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--font-serif); font-weight: 700; font-size: 1.25rem; }
.brand__mark { display: grid; place-items: center; width: 34px; height: 34px; border: 2px solid var(--accent); border-radius: 6px; color: var(--accent-light); }
.nav-toggle { width: 48px; height: 48px; background: none; border: 0; display: grid; align-content: center; gap: 5px; padding: 12px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--on-dark); }
.nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-dark); padding: 8px 16px 20px; flex-direction: column; }
.nav.is-open { display: flex; }
.nav a { padding: 12px 0; min-height: 44px; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.1); }
.nav a.btn { margin-top: 12px; border-bottom: 2px solid var(--accent); justify-content: center; }

/* Hero */
.hero { position: relative; overflow: hidden; color: var(--white); background: var(--bg-dark); padding: 120px 0 104px; }
.hero__bg, .hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__bg img { object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, color-mix(in srgb, var(--bg-dark) 60%, transparent), color-mix(in srgb, var(--bg-dark) 88%, transparent)); }
.hero__inner { position: relative; z-index: 2; max-width: 820px; }
.hero .eyebrow { color: var(--accent-light); }
.hero__lead { font-size: 1.1rem; max-width: 620px; color: var(--on-dark); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }

/* Stats */
.stats { background: var(--accent); color: var(--white); }
.stats__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; padding-top: 32px; padding-bottom: 32px; text-align: center; }
.stats strong { display: block; font-family: var(--font-serif); font-size: 2.2rem; }
.stats span { font-size: .9rem; }

/* Benefits */
.benefits { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.benefits__list { list-style: none; margin: 0; padding: 32px 0; display: grid; gap: 20px; }
.benefits__list li { padding-left: 14px; border-left: 3px solid var(--accent); }
.benefits__list strong { display: block; font-family: var(--font-serif); font-size: 1.3rem; }
.benefits__list span { color: var(--ink-soft); font-size: .92rem; }

.section__cta { margin: 2rem 0 0; }
.rating { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0 0 1.5rem; color: var(--ink-soft); }
.rating__stars, .stars { color: var(--star); letter-spacing: .1em; }
.rating strong { color: var(--ink); font-size: 1.2rem; }
.card .stars { font-family: var(--font-sans); font-size: 1rem; margin: 0 0 .5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Cards */
.cards { display: grid; gap: 16px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 0; }
.card p { margin: 0; color: var(--ink-soft); }
.quote p { font-family: var(--font-serif); font-size: 1.3rem; color: var(--ink); }
.quote footer { margin-top: 1rem; font-size: .85rem; color: var(--ink-soft); }

/* Materials */
.materials { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.materials li { padding: 20px; border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius); }
.materials strong { display: block; font-family: var(--font-serif); font-size: 1.35rem; color: var(--accent-light); margin-bottom: .25rem; }
.materials span { color: var(--on-dark-soft); }

/* Steps — passo a passo estilo espinha de peixe (vertical no mobile, horizontal com passos alternados no desktop) */
.steps { list-style: none; counter-reset: step; padding: 0 0 0 20px; margin: 2rem 0 0; position: relative; display: grid; gap: 24px; }
.steps::before { content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 3px; background: var(--accent); border-radius: 3px; }
.steps li { counter-increment: step; position: relative; padding-left: 44px; }
.step__dot { position: absolute; left: -1px; top: 0; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--white); font-weight: 600; border: 4px solid var(--bg); }
.step__dot::before { content: counter(step); }
.step__body { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.steps h3 { margin-bottom: .25rem; }
.steps p { margin: 0; color: var(--ink-soft); }

/* Gallery */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.5rem 0; }
.chip { min-height: 44px; padding: 0 1.1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--white); cursor: pointer; font: inherit; }
.chip.is-active { background: var(--bg-dark); color: var(--white); border-color: var(--bg-dark); }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 12px; }
.gallery li[hidden] { display: none; }
.tile { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius); overflow: hidden; cursor: pointer; color: var(--white); text-align: left; padding: 0; background: var(--bg-dark); }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.tile:hover img { transform: scale(1.04); }
.tile span { position: absolute; inset: auto 0 0 0; padding: 32px 16px 14px; background: linear-gradient(transparent, rgba(0,0,0,.7)); font-weight: 500; }

/* FAQ */
details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
summary { padding: 16px 20px; min-height: 48px; cursor: pointer; font-weight: 600; }
details p { margin: 0; padding: 0 20px 18px; color: var(--ink-soft); }

/* Contact */
.contact { display: grid; gap: 40px; }
.contact__list { font-style: normal; display: grid; gap: 14px; }
.contact__list p { margin: 0; }
.contact__list a { text-decoration-color: var(--accent); text-underline-offset: 3px; }
.social { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; }
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 16px; align-content: start; }
.field label { display: block; font-weight: 500; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--field-border); border-radius: 8px; font: inherit; background: var(--white); color: var(--ink); }
.field textarea { min-height: 110px; resize: vertical; }
.field--check label { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: .9rem; color: var(--ink-soft); }
.field--check input { width: 24px; min-height: 24px; height: 24px; flex: none; margin-top: 2px; accent-color: var(--accent-dark); }
.field [aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.error { margin: 6px 0 0; color: var(--error); font-size: .88rem; min-height: 0; }
.error:not(:empty)::before { content: "⚠ " / ""; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* Footer / FAB */
.footer { background: var(--bg-dark); color: var(--on-dark-soft); padding: 28px 0; font-size: .9rem; }
.footer__bar { display: grid; gap: 6px; }
.footer p { margin: 0; }
.fab { position: fixed; right: 16px; bottom: 16px; z-index: 90; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--wa); color: var(--white); box-shadow: 0 6px 18px rgba(0,0,0,.3); }

/* Barra de contato fixa (mobile); no desktop o FAB assume */
.fab { display: none; }
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--bg-dark); box-shadow: 0 -4px 14px rgba(0,0,0,.25); }
.mobile-bar a { display: flex; align-items: center; justify-content: center; min-height: 52px; color: var(--white); font-weight: 600; text-decoration: none; }
.mobile-bar__call { background: var(--bg-dark); }
.mobile-bar__wa { background: var(--wa-dark); }
body { padding-bottom: 52px; }

/* Lightbox — backdrop nunca fecha ao clicar fora; só pelo X */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.8); display: grid; place-items: center; padding: 16px; }
.lightbox[hidden] { display: none; }
.lightbox__card { position: relative; width: 100%; max-width: 760px; background: var(--white); border-radius: var(--radius); padding: 12px 12px 16px; }
.lightbox__img { display: block; width: 100%; max-height: 70vh; object-fit: contain; border-radius: 8px; background: var(--bg-dark); }
.lightbox__card p { margin: 12px 4px 0; font-weight: 500; }
.lightbox__close { position: absolute; top: -16px; right: -4px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--accent); color: var(--white); font-size: 1.8rem; line-height: 1; cursor: pointer; }

@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .materials { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(4, 1fr); }
  .benefits__list { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav { display: flex; position: static; flex-direction: row; align-items: center; gap: 24px; padding: 0; background: none; }
  .nav a { border: 0; padding: 0; min-height: 0; }
  .nav a.btn { margin: 0; padding: 0 1.25rem; min-height: 44px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .materials { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(6, 1fr); gap: 0 12px; padding: 0; }
  .steps::before { left: 0; right: 0; top: 50%; bottom: auto; width: auto; height: 3px; transform: translateY(-50%); }
  .steps li { padding: 0; min-height: 380px; display: grid; grid-template-rows: 1fr 40px 1fr; justify-items: center; }
  .step__dot { position: static; grid-row: 2; z-index: 1; }
  .step__body { grid-row: 1; align-self: end; position: relative; width: 100%; margin-bottom: 20px; }
  .steps li:nth-child(even) .step__body { grid-row: 3; align-self: start; margin: 20px 0 0; }
  .step__body::after { content: ""; position: absolute; left: 50%; width: 3px; height: 20px; background: var(--accent); transform: translateX(-50%); top: 100%; }
  .steps li:nth-child(even) .step__body::after { top: auto; bottom: 100%; }
  .steps h3 { font-size: 1.15rem; }
  .steps p { font-size: .9rem; }
  .benefits__list { grid-template-columns: repeat(3, 1fr); }
  .mobile-bar { display: none; }
  body { padding-bottom: 0; }
  .fab { display: grid; }
  .contact { grid-template-columns: 1fr 1fr; }
  .footer__bar { grid-template-columns: 1fr auto; }
  .section { padding: 96px 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Faixas promocionais do template — remover ao vender para cliente real */
.promo { background: var(--bg-dark); color: var(--on-dark); font-size: .9rem; }
.promo__bar { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 8px; padding-bottom: 8px; text-align: center; }
.promo__links, .promo-about__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; }
.promo a, .promo-about a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-dark); text-underline-offset: 3px; }
.promo-about { background: var(--bg-dark); color: var(--on-dark); padding: 56px 0; border-top: 1px solid var(--line); }
.promo-about__grid { display: grid; gap: 32px; }
.promo-about h2 { font-size: 1.8rem; }
.promo-about h3 { font-size: 1.4rem; }
.promo-about p { color: var(--on-dark-soft); }
.promo-about__list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 8px; color: var(--on-dark-soft); }
.promo-about__list li { padding-left: 1.5rem; position: relative; }
.promo-about__list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-light); }
.promo-about__list--plus li::before { content: "+"; }
.promo-about__links { justify-content: flex-start; }
@media (min-width: 900px) {
  .promo__bar { flex-direction: row; justify-content: center; gap: 20px; }
  .promo-about__grid { grid-template-columns: 1fr 1fr; gap: 56px; }
}

/* Animação de entrada ao rolar — só com JS e sem preferência por menos movimento */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .js .reveal .card, .js .reveal .steps li, .js .reveal .gallery li { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.is-visible .card, .js .reveal.is-visible .steps li, .js .reveal.is-visible .gallery li { opacity: 1; transform: none; }
  .js .reveal.is-visible .card:nth-child(2), .js .reveal.is-visible .steps li:nth-child(2), .js .reveal.is-visible .gallery li:nth-child(2) { transition-delay: .08s; }
  .js .reveal.is-visible .card:nth-child(3), .js .reveal.is-visible .steps li:nth-child(3), .js .reveal.is-visible .gallery li:nth-child(3) { transition-delay: .16s; }
  .js .reveal.is-visible .card:nth-child(4), .js .reveal.is-visible .steps li:nth-child(4), .js .reveal.is-visible .gallery li:nth-child(4) { transition-delay: .24s; }
  .js .reveal.is-visible .card:nth-child(5), .js .reveal.is-visible .steps li:nth-child(5), .js .reveal.is-visible .gallery li:nth-child(5) { transition-delay: .32s; }
  .js .reveal.is-visible .card:nth-child(6), .js .reveal.is-visible .steps li:nth-child(6), .js .reveal.is-visible .gallery li:nth-child(6) { transition-delay: .4s; }
}
