/* Roel TI — estilos do site (identidade visual v2)
 * Tema claro é o padrão. Tema escuro: <html data-theme="dark">, escolhido pelo visitante no botão sol/lua.
 */
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); }

:root {
  /* cores da marca */
  --navy: #0E2A3F;
  --cyan: #12B5CB;
  --teal: #0B7C8C;
  --night: #0E1B26;
  --wa: #25d366;
  --wa-ink: #06260f;

  /* tema claro (padrão) */
  --bg: #FFFFFF;
  --bg-2: #F6F8FA;
  --card: #FFFFFF;
  --line: #E4E9EE;
  --text: #0E1B26;
  --muted: #55636F;
  --accent: #0B7C8C;          /* links, destaques de texto */
  --accent-soft: #E8F6F8;     /* fundo dos ícones */
  --eyebrow: #0B7C8C;
  --brand-ti: #0B7C8C;
  --btn-bg: #0E2A3F;
  --btn-ink: #FFFFFF;
  --btn-hover: #163a55;
  --input-bg: #FFFFFF;
  --header-bg: rgba(255, 255, 255, .9);
  --footer-bg: #F6F8FA;
  --ok-bg: #E7F6EC;
  --ok-ink: #17803d;
  --glow-1: rgba(18, 181, 203, .10);
  --glow-2: rgba(11, 124, 140, .06);
  --grid: rgba(14, 42, 63, .05);
  --shadow: 0 1px 2px rgba(14, 27, 38, .04), 0 8px 24px rgba(14, 27, 38, .06);
  --shadow-hover: 0 2px 4px rgba(14, 27, 38, .05), 0 14px 32px rgba(14, 27, 38, .10);
  --msg-ok-bg: #E7F6EC; --msg-ok-ink: #14632f; --msg-ok-line: #b7e4c5;
  --msg-err-bg: #FFF7E0; --msg-err-ink: #7a5300; --msg-err-line: #f3dc95;

  --radius: 14px;
  --max: 1160px;
  --display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0E1B26;
  --bg-2: #10222f;
  --card: #0E2A3F;
  --line: #1d3d54;
  --text: #FFFFFF;
  --muted: #a9bfcd;
  --accent: #12B5CB;
  --accent-soft: rgba(18, 181, 203, .14);
  --eyebrow: #12B5CB;
  --brand-ti: #12B5CB;
  --btn-bg: #12B5CB;
  --btn-ink: #0E1B26;
  --btn-hover: #2cc6db;
  --input-bg: #0E1B26;
  --header-bg: rgba(14, 27, 38, .92);
  --footer-bg: #0a141c;
  --ok-bg: rgba(34, 197, 94, .15);
  --ok-ink: #4ade80;
  --glow-1: rgba(18, 181, 203, .22);
  --glow-2: rgba(11, 124, 140, .22);
  --grid: rgba(29, 61, 84, .9);
  --shadow: 0 10px 30px rgba(3, 10, 25, .35);
  --shadow-hover: 0 14px 36px rgba(3, 10, 25, .45);
  --msg-ok-bg: rgba(34, 197, 94, .14); --msg-ok-ink: #86efac; --msg-ok-line: rgba(34, 197, 94, .35);
  --msg-err-bg: rgba(251, 191, 36, .12); --msg-err-ink: #fde68a; --msg-err-line: rgba(251, 191, 36, .35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); }
a:hover { color: var(--text); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; color: var(--text); }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }

.skip { position: absolute; left: -999px; top: 0; background: #fff; color: #000; padding: .6em 1em; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 84px 0; }
.section.alt { background: var(--bg-2); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--eyebrow); margin-bottom: .8em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46em; }
.section-head { max-width: 760px; margin-bottom: 44px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.35em; border-radius: 10px; font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s, border-color .15s;
  font-family: inherit; line-height: 1.2;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--btn-bg); color: var(--btn-ink); }
.btn-primary:hover { background: var(--btn-hover); color: var(--btn-ink); }
.btn-wa { background: var(--wa); color: var(--wa-ink); }
.btn-wa:hover { background: #1fbf5a; color: var(--wa-ink); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Cabeçalho */
.header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-family: var(--display); font-weight: 700; font-size: 1.45rem; letter-spacing: -.04em; }
.brand:hover { color: var(--text); }
.brand svg { width: 38px; height: 38px; }
.brand span b { color: var(--brand-ti); font-weight: 700; }
.header-tools { display: flex; align-items: center; gap: 8px; }
.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; align-items: center; }
.nav a { display: block; padding: .5em .8em; border-radius: 8px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .97rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--bg-2); }
[data-theme="dark"] .nav a:hover, [data-theme="dark"] .nav a[aria-current="page"] { background: var(--card); }
.nav .btn { display: inline-flex; padding: .6em 1em; margin-left: 8px; color: var(--wa-ink); background: var(--wa); }
.nav .btn:hover { color: var(--wa-ink); background: #1fbf5a; }
.icon-btn { background: none; border: 1px solid var(--line); border-radius: 10px; color: var(--text); width: 42px; height: 42px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.icon-btn:hover { border-color: var(--accent); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .moon { display: block; }
.theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
.menu-toggle { display: none; }

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; width: 46px; height: 46px; }
  .menu-toggle svg { width: 24px; height: 24px; }
  .nav { position: fixed; inset: 70px 0 auto 0; background: var(--bg); border-bottom: 1px solid var(--line); display: none; padding: 12px 20px 20px; max-height: calc(100vh - 70px); overflow-y: auto; box-shadow: var(--shadow); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; }
  .nav a { padding: .85em 1em; font-size: 1.05rem; }
  .nav .btn { display: flex; margin: 8px 0 0; }
}

/* Hero */
.hero { position: relative; padding: 96px 0 88px; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(700px 380px at 85% 10%, var(--glow-1), transparent 60%),
    radial-gradient(520px 320px at 5% 90%, var(--glow-2), transparent 60%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin-bottom: 1.6em; }
.hero-checks { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: .97rem; }
.hero-checks li { display: flex; align-items: center; gap: 8px; }
.hero-checks svg { width: 18px; height: 18px; color: var(--ok-ink); }
.hero-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px; box-shadow: var(--shadow); }
.status-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px dashed var(--line); font-size: .97rem; }
.status-row:last-child { border-bottom: 0; }
.status-row span { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.status-row svg { width: 20px; height: 20px; color: var(--accent); }
.pill { font-size: .78rem; font-weight: 700; padding: .3em .7em; border-radius: 99px; background: var(--ok-bg); color: var(--ok-ink); }
.hero-card h3 { font-size: 1rem; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.page-hero { padding: 72px 0 56px; }
.page-hero .container { display: block; }
.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--text); }

@media (max-width: 900px) {
  .hero { padding: 64px 0 56px; }
  .hero .container { grid-template-columns: 1fr; }
}

/* Cards */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: border-color .2s, transform .2s, box-shadow .2s; box-shadow: var(--shadow); }
.card p { color: var(--muted); }
a.card { text-decoration: none; color: var(--text); display: flex; flex-direction: column; }
a.card:hover { border-color: var(--accent); transform: translateY(-3px); color: var(--text); box-shadow: var(--shadow-hover); }
.card .more { margin-top: auto; color: var(--accent); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.card .more svg { width: 18px; height: 18px; }
.icon { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 18px; }
.icon svg { width: 26px; height: 26px; }

/* Para quem */
.audience { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.audience span { background: var(--bg-2); border: 1px solid var(--line); padding: .55em 1em; border-radius: 99px; font-weight: 600; font-size: .95rem; color: var(--text); }
[data-theme="dark"] .audience span { background: var(--card); }

/* Passos */
.steps { counter-reset: step; }
.step { position: relative; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 26px; left: 26px; width: 40px; height: 40px; border-radius: 50%; background: var(--btn-bg); color: var(--btn-ink); font-family: var(--display); font-weight: 700; display: grid; place-items: center; }
.step.card { padding-top: 84px; }

/* Lista com check */
.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { position: relative; padding-left: 32px; margin-bottom: .7em; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; background: var(--ok-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322a352' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }

/* CTA — bloco azul-noite nos dois temas */
.cta { background: linear-gradient(120deg, var(--navy), #0f3a52); border: 1px solid transparent; border-radius: 22px; padding: 48px; display: flex; gap: 28px; align-items: center; justify-content: space-between; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(18, 181, 203, .35), transparent 70%); pointer-events: none; }
[data-theme="dark"] .cta { background: linear-gradient(120deg, var(--navy), #0B5E6E 55%, var(--teal)); }
.cta > * { position: relative; z-index: 1; }
.cta h2 { margin-bottom: .3em; color: #fff; }
.cta p { color: #cfe3ea; margin: 0; max-width: 40em; }
.cta .btn-ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.cta .btn-ghost:hover { border-color: #fff; color: #fff; }
@media (max-width: 640px) { .cta { padding: 32px 24px; } }

/* FAQ */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 52px 18px 22px; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--accent); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 22px 18px; color: var(--muted); }
.faq details > div p:last-child { margin: 0; }

/* Formulário */
.form { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 30px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .8em .9em; border-radius: 10px; border: 1px solid var(--line); background: var(--input-bg);
  color: var(--text); font: inherit; font-size: 1rem;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .75; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(18, 181, 203, .25); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--muted); margin-bottom: 20px; }
.consent input { margin-top: .3em; width: 18px; height: 18px; flex: none; accent-color: var(--teal); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin-top: 16px; padding: 14px 16px; border-radius: 10px; display: none; }
.form-msg.show { display: block; }
.form-msg.ok { background: var(--msg-ok-bg); color: var(--msg-ok-ink); border: 1px solid var(--msg-ok-line); }
.form-msg.err { background: var(--msg-err-bg); color: var(--msg-err-ink); border: 1px solid var(--msg-err-line); }
.form-msg .btn { margin-top: 12px; }

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list svg { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: 3px; }
.contact-list strong { display: block; }
.contact-list span, .contact-list a { color: var(--muted); }

/* Texto longo */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.45rem; margin-top: 1.8em; }
.prose p, .prose li { color: var(--muted); }

/* Rodapé */
.footer { background: var(--footer-bg); border-top: 1px solid var(--line); padding: 56px 0 28px; font-size: .95rem; color: var(--muted); }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
@media (max-width: 860px) { .footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer .cols { grid-template-columns: 1fr; } }
.footer h4 { color: var(--text); font-size: 1rem; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); }
.footer .bottom { border-top: 1px solid var(--line); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .88rem; }

/* WhatsApp flutuante */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: var(--wa-ink); display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); transition: transform .15s; }
.wa-float:hover { transform: scale(1.06); color: var(--wa-ink); }
.wa-float svg { width: 30px; height: 30px; }

.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.notfound .code { font-family: var(--display); font-size: 5rem; font-weight: 700; color: var(--accent); line-height: 1; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
