/* ==========================================================
   MM Blindagem — style.css
   Sections: 1 Tokens · 2 Base · 3 Layout · 4 Buttons · 5 Header
   6 Footer · 7 Floating/Mobile CTA · (Task 2+) Components
   ========================================================== */

/* 1 Tokens */
:root {
  --bg: #0E0F11; --bg-2: #16181C; --line: #2A2D33;
  --text: #EDEBE6; --muted: #A3A39E;
  --accent: #C8A46A; --accent-hover: #D9B97F;
  --light: #F4F2EE; --ink: #15171A; --ink-muted: #4A4D52;
  --danger: #E5786D; --danger-ink: #B3261E; --success: #7BC48F;
  --font-head: "Manrope", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --fs-h1: clamp(2.5rem, 1.6rem + 3.8vw, 4.5rem);
  --fs-h2: clamp(1.875rem, 1.4rem + 2vw, 3rem);
  --fs-h3: clamp(1.25rem, 1.1rem + .5vw, 1.5rem);
  --fs-body: clamp(1.0625rem, 1rem + .2vw, 1.125rem);
  --radius: 14px; --radius-sm: 10px;
  --container: 1200px;
  --section-y: clamp(4rem, 2.5rem + 6vw, 8rem);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2 Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 var(--fs-body)/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-weight: 800; }
h2, .h2 { font-size: var(--fs-h2); font-weight: 700; }
h3 { font-size: var(--fs-h3); font-weight: 700; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--accent); color: var(--ink); padding: .75rem 1rem; border-radius: var(--radius-sm); }
.skip-link:focus { top: 1rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* 3 Layout */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-2); }
.section--light { background: var(--light); color: var(--ink); }
.section--light .lead, .section--light .muted { color: var(--ink-muted); }
.section__head { max-width: 760px; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.eyebrow { display: inline-block; font: 600 .8125rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.section--light .eyebrow { color: #8A6A33; }
.lead { font-size: clamp(1.125rem, 1rem + .5vw, 1.3125rem); color: var(--muted); }
.muted { color: var(--muted); }

/* 4 Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--accent); color: var(--ink); }
.btn--ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn--whatsapp { background: #25D366; color: #0B2E17; }
.section--light .btn--ghost { border-color: #CFCBC2; color: var(--ink); }
@media (hover: hover) {
  .btn--primary:hover { background: var(--accent-hover); }
  .btn--ghost:hover { border-color: var(--accent); }
}
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* 5 Header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); transition: background-color .3s var(--ease), border-color .3s var(--ease); border-bottom: 1px solid transparent; }
.site-header.is-scrolled { background: rgb(14 15 17 / .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.logo { display: inline-flex; align-items: center; gap: .625rem; text-decoration: none; font: 700 1.125rem/1 var(--font-head); letter-spacing: -.01em; }
.logo__mark { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--accent); border-radius: 9px; color: var(--accent); font: 800 .8125rem/1 var(--font-head); letter-spacing: -.02em; }
.site-nav ul { display: flex; gap: 2rem; }
.site-nav a:not(.btn) { text-decoration: none; color: var(--muted); font-weight: 500; transition: color .2s; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav { display: flex; align-items: center; gap: 2rem; }
.nav-toggle { display: none; }
@media (max-width: 959px) {
  .nav-toggle { display: grid; place-items: center; width: 48px; height: 48px; background: none; border: 1px solid var(--line); border-radius: 12px; color: var(--text); cursor: pointer; }
  .nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .25s var(--ease), background-color .25s; }
  .nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bar::before { top: -6px; } .nav-toggle__bar::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-6px) rotate(-45deg); }
  .site-nav { position: fixed; inset: var(--header-h) 0 0; background: var(--bg); flex-direction: column; align-items: stretch; padding: 2rem 1.25rem calc(2rem + env(safe-area-inset-bottom)); display: none; overflow-y: auto; }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 1rem 0; font: 700 1.5rem/1.2 var(--font-head); color: var(--text) !important; border-bottom: 1px solid var(--line); }
  .site-nav__cta { margin-top: 1.5rem; }
  body.menu-open { overflow: hidden; }
  body.menu-open .site-header { background: var(--bg); }
}

/* 6 Footer */
.site-footer { background: #0A0B0C; border-top: 1px solid var(--line); padding: 4rem 0 calc(6rem + env(safe-area-inset-bottom)); color: var(--muted); font-size: .9375rem; }
.site-footer__grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } .site-footer { padding-bottom: 3rem; } }
.site-footer .logo { color: var(--text); margin-bottom: 1rem; }
.site-footer__about { max-width: 34ch; }
.site-footer__title { font: 600 .8125rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--text); margin-bottom: 1rem; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { text-decoration: none; display: inline-block; padding-block: .25rem; }
.site-footer a:hover { color: var(--text); }
.site-footer__legal { border-top: 1px solid var(--line); margin-top: 3rem; padding-top: 1.5rem; font-size: .8125rem; }

/* 7 Floating WhatsApp + mobile CTA bar */
.wa-float { position: fixed; right: 1.25rem; bottom: calc(1.25rem + env(safe-area-inset-bottom)); z-index: 40; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: #25D366; color: #fff; box-shadow: 0 10px 30px rgb(0 0 0 / .35); transition: transform .2s var(--ease); }
@media (hover: hover) { .wa-float:hover { transform: scale(1.06); } }
.mobile-cta { display: none; }
@media (max-width: 767px) {
  .wa-float { bottom: calc(5.25rem + env(safe-area-inset-bottom)); width: 54px; height: 54px; }
  .mobile-cta { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; position: fixed; inset: auto 0 0; z-index: 45; padding: .625rem .75rem calc(.625rem + env(safe-area-inset-bottom)); background: rgb(14 15 17 / .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .mobile-cta .btn { width: 100%; }
}

/* 8 Components */

/* Hero */
.hero { position: relative; min-height: min(100svh, 920px); display: flex; align-items: flex-end; padding: calc(var(--header-h) + 4rem) 0 clamp(3rem, 2rem + 4vw, 6rem); overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -1; background: var(--bg); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__media::after { content: ""; position: absolute; inset: 0; background:
  radial-gradient(ellipse 80% 60% at 75% 30%, rgb(200 164 106 / .14), transparent 60%),
  linear-gradient(90deg, rgb(14 15 17 / .88) 0%, rgb(14 15 17 / .55) 45%, rgb(14 15 17 / .15) 100%),
  linear-gradient(180deg, rgb(14 15 17 / .35) 0%, rgb(14 15 17 / .1) 40%, var(--bg) 96%); }
.hero__content > * { max-width: 980px; }
@media (max-width: 767px) { .hero__media img { opacity: .6; } }
.hero h1 { max-width: 18ch; }
.hero .lead { max-width: 58ch; margin-bottom: 2rem; }
.hero__badges { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .9375rem; color: var(--muted); }
.hero__badges li { display: flex; align-items: center; gap: .5rem; }
.hero__badges li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.hero--page { min-height: min(78svh, 720px); padding-top: calc(var(--header-h) + clamp(4rem, 3rem + 5vw, 8rem)); }

/* Stats */
.stats { display: grid; gap: 2rem; grid-template-columns: 1fr; margin: 0 0 2rem; }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: .5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.stat__value { margin: 0; font: 800 clamp(2.75rem, 2rem + 3vw, 4rem)/1 var(--font-head); color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.stat__label { color: var(--muted); max-width: 28ch; }
.stats__note { max-width: 70ch; }

/* Cards */
.cards { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards--2, .cards--3, .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } .cards--4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; }
.section--alt .card { background: var(--bg); }
.section--light .card { background: #fff; border-color: #E4E0D8; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); margin: 0; }
.section--light .card p { color: var(--ink-muted); }
.card__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); color: var(--accent); margin-bottom: 1.25rem; }
.section--light .card__icon { border-color: #E4E0D8; color: #8A6A33; }

/* Split / panels / checklist */
.split { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.75rem, 1.25rem + 2vw, 3rem); background: linear-gradient(160deg, var(--bg-2), var(--bg)); display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-start; }
.panel h3 { margin: 0; }
.panel .checklist { flex: 1; }
.checklist li { position: relative; padding-left: 2rem; margin-bottom: .75rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1.125rem; height: 1.125rem; border-radius: 50%; border: 1px solid var(--accent); background: radial-gradient(circle, var(--accent) 0 3px, transparent 4px); }

/* Steps */
.steps { display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin: 0; padding: 0; list-style: none; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.step { padding-top: 1.5rem; border-top: 1px solid var(--accent); }
.step__num { display: block; font: 800 .875rem/1 var(--font-head); color: var(--accent); letter-spacing: .1em; margin-bottom: 1rem; }
.step p { color: var(--muted); margin: 0; }

/* Data tables (levels, comparison) */
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { text-align: left; padding: 1.125rem 1.5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table thead th { font: 600 .8125rem/1.2 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--bg-2); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table td:first-child { font: 700 1.0625rem/1.3 var(--font-head); white-space: nowrap; }
.data-table tr.is-highlight td { background: rgb(200 164 106 / .08); }
.data-table tr.is-highlight td:first-child { color: var(--accent); }
.data-table--compare td:first-child { font: inherit; white-space: normal; color: var(--muted); }
.data-table--compare td:last-child { color: var(--text); }
.section--alt .data-table thead th { background: var(--bg); }
.table-note { margin-top: 1rem; font-size: .9375rem; }
@media (max-width: 767px) {
  .table-wrap { border: 0; border-radius: 0; overflow: visible; }
  .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table tr { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .75rem; padding: .5rem 0; background: var(--bg-2); }
  .section--alt .data-table tr { background: var(--bg); }
  .data-table td { border: 0; padding: .5rem 1.25rem; white-space: normal !important; }
  .data-table td::before { content: attr(data-label); display: block; font: 600 .75rem/1.4 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .125rem; }
  .data-table tr.is-highlight { border-color: var(--accent); }
}

/* Reveal (only hides when JS present and motion allowed) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

/* 9 FAQ */
.faq { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .faq { grid-template-columns: 1fr 1.6fr; align-items: start; } .faq .section__head { position: sticky; top: calc(var(--header-h) + 2rem); } }
.faq__item { border-bottom: 1px solid #DDD8CE; }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.375rem 0; font: 700 1.125rem/1.35 var(--font-head); min-height: 44px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid #CFCBC2; display: grid; place-items: center; font: 400 1.125rem/1 var(--font-body); color: #8A6A33; transition: transform .25s var(--ease); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__answer { padding: 0 0 1.5rem; color: var(--ink-muted); max-width: 65ch; }
.faq__answer p { margin: 0; }
.faq__answer a { color: var(--ink); }

/* 10 Contact + forms */
.contact { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .contact { grid-template-columns: 1fr 1.15fr; gap: 5rem; } }
.contact__channels { display: grid; gap: 1rem; margin-top: 2rem; justify-items: start; }
.contact__channels a:not(.btn) { color: var(--text); }
.contact__form { background: var(--bg-2); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.lead-form { display: grid; gap: 1.25rem; }
.field-row { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .5rem; align-content: start; }
.field label { font-weight: 500; font-size: .9375rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .75rem 1rem; font: 400 1rem/1.4 var(--font-body);
  color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.5rem; }
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: #8A8B88; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(200 164 106 / .25); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field__error { margin: 0; color: var(--danger); font-size: .875rem; }
.field--check { grid-template-columns: auto 1fr; align-items: start; column-gap: .75rem; }
.field--check input { width: 22px; height: 22px; min-height: 0; padding: 0; margin-top: .125rem; border-radius: 6px; display: grid; place-items: center; cursor: pointer; }
.field--check input:checked { background: var(--accent); border-color: var(--accent); }
.field--check input:checked::after { content: ""; width: 10px; height: 6px; border: 2px solid var(--ink); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.field--check .field__error { grid-column: 1 / -1; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.form-success { text-align: center; padding: 3rem 1rem; }
.form-success h3 { color: var(--accent); }
.form-success:focus { outline: none; }

/* 11 Myth / fact */
.myths { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .myths { grid-template-columns: repeat(2, 1fr); } .myths .myth:last-child { grid-column: 1 / -1; } }
.myth { background: #fff; border: 1px solid #E4E0D8; border-radius: var(--radius); padding: 1.75rem; }
.myth h3 { font-size: 1.1875rem; margin: .875rem 0 .5rem; }
.myth p { margin: 0; color: var(--ink-muted); }
.myth__tag { display: inline-block; padding: .25rem .75rem; border-radius: 999px; font: 700 .75rem/1.4 var(--font-body); letter-spacing: .08em; text-transform: uppercase; }
.myth__tag--mito { background: #F6E1DE; color: var(--danger-ink); }
.myth__tag--verdade { background: #DFF0E3; color: #1E6B35; }
.myth__tag--depende { background: #F3E9D6; color: #7A5A22; }

/* 12 Callout + split helpers */
.callout { border: 1px solid var(--accent); border-radius: calc(var(--radius) + 4px); padding: clamp(2rem, 1.5rem + 3vw, 4rem); background: radial-gradient(ellipse at top right, rgb(200 164 106 / .12), transparent 60%), var(--bg-2); max-width: 900px; margin-inline: auto; text-align: center; }
.callout p { max-width: 60ch; margin-inline: auto; margin-bottom: 2rem; color: var(--muted); }
.callout strong { color: var(--text); }
.split--top { align-items: start; gap: clamp(2rem, 1rem + 4vw, 5rem); }
.split--top .section__head { margin-bottom: 0; }
.checklist--lg li { padding-block: 1rem; padding-left: 2.25rem; margin: 0; border-bottom: 1px solid var(--line); }
.checklist--lg li::before { top: 1.3em; }
.section--alt .contact__form { background: var(--bg); }
.section--alt .contact__form .field input, .section--alt .contact__form .field select, .section--alt .contact__form .field textarea { background: var(--bg-2); }
@media (min-width: 1100px) { .steps--4 { grid-template-columns: repeat(4, 1fr); } }

/* 13 Prose */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.375rem, 1.2rem + .6vw, 1.75rem); margin-top: 2.5rem; }
.prose p { color: var(--ink-muted); }
.prose a { color: var(--ink); }
.prose__notice { background: #F3E9D6; border: 1px solid #E5D3B0; color: #5C4418 !important; padding: 1rem 1.25rem; border-radius: var(--radius-sm); }
.hero--page:not(:has(.hero__media)) { min-height: auto; padding-bottom: 3rem; }
.wa-float.is-hidden { opacity: 0; visibility: hidden; transform: scale(.8); pointer-events: none; transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s; }
.wa-float { transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s; }
