/* gravitasenergy.com.br - site stylesheet v1.0 (WEB-01, 2026-11-05)
   Brand values come ONLY from the B1 token file beside this one (assets/brand/Gravitas_cores_GravOS.css, verbatim copy of the
   staged package); this file maps the tokens to page roles and defines layout. When the brand canon lands in the repository
   (_platform/brand, VI-01), the import below is re-pointed; no value is redefined here. */
@import url("brand/Gravitas_cores_GravOS.css");
@import url("fonts/fonts.css");

:root {
  --bg: var(--gravitas-gelo);
  --bg-dark: var(--gravitas-azul-profundo);
  --surface-dark: var(--gravitas-azul-noturno);
  --surface: #FFFFFF;
  --ink: var(--gravitas-azul-profundo);
  --ink-2: var(--gravitas-cinza-texto);
  --ink-on-dark: var(--gravitas-branco-malha);
  --ink-2-on-dark: var(--gravitas-nevoa-azul);
  --accent: var(--gravitas-coral);
  --accent-light: var(--gravitas-coral-fundo-claro);
  --accent-text: var(--gravitas-coral-profundo);
  --link: var(--gravitas-azul-dados);
  --line: rgba(11, 26, 51, 0.12);
  --line-on-dark: rgba(238, 242, 248, 0.14);
  --font: var(--gravitas-fonte-texto);
  --mono: var(--gravitas-fonte-numeros);
  --maxw: 1120px;
  --r: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
html, body { margin: 0; }
body { font-family: var(--font); font-size: 17px; line-height: 1.55; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
.on-dark a { color: var(--ink-on-dark); }
.on-dark a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); color: var(--ink); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.num, .mono { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; }

/* preview banner (only in the labelled preview build) */
.preview-banner { background: var(--accent-light); color: var(--ink); font-weight: 700; text-align: center; padding: 8px 12px; font-size: 14px; letter-spacing: .02em; }

/* header */
.topbar { background: var(--bg-dark); color: var(--ink-on-dark); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line-on-dark); }
.topbar .wrap { display: flex; align-items: center; gap: 14px; min-height: 68px; }
.brand { display: flex; align-items: center; }
.brand img { display: block; width: 210px; height: 35px; }
.nav { display: none; gap: 4px; margin-left: 12px; }
.nav a { color: var(--ink-on-dark); text-decoration: none; padding: 8px 10px; border-radius: 8px; font-weight: 600; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--surface-dark); color: var(--ink-on-dark); }
.spacer { flex: 1; }
.lang { display: flex; border: 1px solid var(--line-on-dark); border-radius: 999px; overflow: hidden; }
.lang button { font: inherit; font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--ink-2-on-dark); background: transparent; border: 0; padding: 7px 11px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--ink-on-dark); color: var(--bg-dark); }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid var(--line-on-dark); border-radius: 10px; background: transparent; color: var(--ink-on-dark); cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }
.mobile-nav { display: none; background: var(--surface-dark); border-top: 1px solid var(--line-on-dark); }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 14px 20px; color: var(--ink-on-dark); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line-on-dark); }
@media (min-width: 900px) { .nav { display: flex; } .menu-btn, .mobile-nav { display: none !important; } }

/* buttons: ONE coral action element per screen (B1 rule); the rest are quiet */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 12px; font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .12s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--bg-dark); }
.btn-primary:hover { background: var(--accent-light); color: var(--bg-dark); }
.on-light .btn-primary { background: var(--accent-light); }
.btn-quiet { background: transparent; color: var(--ink-on-dark); border-color: var(--ink-2-on-dark); }
.btn-quiet:hover { border-color: var(--ink-on-dark); color: var(--ink-on-dark); }
.on-light .btn-quiet { color: var(--ink); border-color: var(--ink-2); }
.on-light .btn-quiet:hover { color: var(--ink); border-color: var(--ink); }
.btn[disabled] { opacity: .55; cursor: wait; }

/* spacing utilities (no inline styles: the CSP forbids them) */
.mt { margin-top: 22px; } .mt0 { margin-top: 0; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .steps.one { grid-template-columns: 1fr; }

/* sections */
section { padding: 56px 0; }
@media (min-width: 760px) { section { padding: 80px 0; } }
.on-dark { background: var(--bg-dark); color: var(--ink-on-dark); }
.on-dark .muted { color: var(--ink-2-on-dark); }
.on-light { background: var(--bg); color: var(--ink); }
.on-white { background: var(--surface); color: var(--ink); }
.on-light .muted, .on-white .muted { color: var(--ink-2); }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 12px; color: var(--accent-text); }
.on-dark .kicker { color: var(--accent); }
h1, h2, h3 { font-family: var(--font); line-height: 1.15; margin: 0 0 14px; letter-spacing: -.01em; }
h1 { font-size: 36px; font-weight: 800; }
h2 { font-size: 28px; font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
@media (min-width: 760px) { h1 { font-size: 52px; } h2 { font-size: 36px; } }
.lede { font-size: 19px; line-height: 1.5; max-width: 680px; margin: 0 0 24px; }
@media (min-width: 760px) { .lede { font-size: 21px; } }
p { margin: 0 0 14px; }
.grid { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 760px) { .c2 { grid-template-columns: 1fr 1fr; } .c3 { grid-template-columns: repeat(3, 1fr); } .c4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.card p { color: var(--ink-2); font-size: 16px; margin: 0; }
.on-dark .card { background: var(--surface-dark); border-color: var(--line-on-dark); }
.on-dark .card p { color: var(--ink-2-on-dark); }
.card .n { font-family: var(--mono); font-weight: 500; font-size: 14px; color: var(--accent-text); margin-bottom: 8px; display: block; }
.on-dark .card .n { color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.note { font-size: 14px; color: var(--ink-2); margin-top: 18px; }
.on-dark .note { color: var(--ink-2-on-dark); }
.hero { padding: 64px 0 56px; }
@media (min-width: 760px) { .hero { padding: 96px 0 80px; } .hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; } }
.symbol { width: 180px; height: 180px; margin: 24px auto 0; display: block; }
@media (min-width: 760px) { .symbol { width: 260px; height: 260px; margin: 0 0 0 auto; } }
.pillars { counter-reset: p; }
.pillars .card .n { letter-spacing: .08em; }
.steps { display: grid; gap: 14px; margin-top: 24px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); } .steps.s7 { grid-template-columns: repeat(4, 1fr); } }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.on-dark .step { background: var(--surface-dark); border-color: var(--line-on-dark); }
.step b { display: block; font-family: var(--mono); font-weight: 500; color: var(--accent-text); font-size: 15px; margin-bottom: 6px; }
.on-dark .step b { color: var(--accent); }
.step p { margin: 0; font-size: 15px; color: var(--ink-2); }
.on-dark .step p { color: var(--ink-2-on-dark); }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; margin-top: 10px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--accent-text); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--ink-2); padding-bottom: 16px; }
.band { padding: 34px 0; border-top: 1px solid var(--line-on-dark); border-bottom: 1px solid var(--line-on-dark); }
.band p { margin: 0; max-width: 820px; }

/* forms */
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; max-width: 720px; }
.on-dark .form { background: var(--surface-dark); border-color: var(--line-on-dark); }
.field { margin-bottom: 16px; }
label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=tel], input[type=file], select, textarea { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--ink-2); border-radius: 10px; background: #FFFFFF; color: var(--ink); }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--ink); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.check input { width: 20px; height: 20px; margin-top: 3px; flex: 0 0 auto; accent-color: var(--accent-light); }
.check label { font-weight: 400; margin: 0; }
.help { font-size: 14px; color: var(--ink-2); margin-top: 6px; }
.on-dark .help { color: var(--ink-2-on-dark); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { display: none; border-radius: 12px; padding: 14px 16px; margin-top: 16px; font-size: 15px; }
.msg.show { display: block; }
.msg.err { background: #FFFFFF; border: 2px solid var(--accent-text); color: var(--ink); }
.msg.ok { background: #FFFFFF; border: 2px solid var(--accent-light); color: var(--ink); }
.case-id { font-family: var(--mono); font-size: 22px; font-weight: 500; letter-spacing: .04em; display: block; margin: 8px 0; }
.stage { border-left: 4px solid var(--accent-light); padding: 6px 0 6px 16px; margin: 16px 0; }
.stage b { display: block; }

/* legal text */
.legal { max-width: 760px; }
.legal h2 { font-size: 22px; margin-top: 34px; }
.legal p, .legal li { color: var(--ink); font-size: 16px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0 18px; }
.legal th, .legal td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { font-weight: 700; }

/* footer */
footer { background: var(--bg-dark); color: var(--ink-2-on-dark); padding: 44px 0 36px; font-size: 14px; }
footer .wrap { display: grid; gap: 22px; }
@media (min-width: 760px) { footer .wrap { grid-template-columns: 1.4fr 1fr 1fr; } }
footer img { width: 180px; height: 30px; display: block; margin-bottom: 14px; }
footer .slogan { color: var(--ink-on-dark); font-weight: 700; margin: 0 0 10px; }
footer a { color: var(--ink-on-dark); text-decoration: none; display: block; margin-bottom: 8px; }
footer a:hover { color: var(--accent); }
footer p { margin: 0 0 6px; }
.footer-line { grid-column: 1 / -1; border-top: 1px solid var(--line-on-dark); padding-top: 16px; margin-top: 8px; }
