/* ==========================================================================
   Ekipamentus — Landing page institucional (dark)
   Sem frameworks. Mobile-first. Troque as cores nas variáveis abaixo.
   ========================================================================== */

:root {
  color-scheme: dark;

  --bg: #000000;
  --bg-alt: #0a0a0a;
  --surface: #141414;
  --surface-2: #1a1a1a;
  --line: #2a2a2a;
  --line-strong: #3a3a3a;

  --text: #ffffff;
  --muted: #b0b0b0;
  --accent: #800000;
  --accent-bright: #cc0000;
  --accent-soft: rgba(128, 0, 0, .15);
  --wa: #25d366;
  --wa-dark: #1ebe5a;
  --danger: #ff7b7b;

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;

  --radius: 14px;
  --radius-lg: 22px;
  --container: 1160px;
  --header-h: 68px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
}

/* ---------- Reset leve ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dl, dd, address { margin: 0; font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--accent); color: #ffffff; padding: .6rem 1rem; border-radius: 8px; font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* ---------- Tipografia ---------- */
.eyebrow {
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}
h1, .section-title, .form-title, .brand-name { font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 6.2vw, 4.2rem); line-height: 1.06; }
h1 em { font-style: italic; color: var(--accent-bright); }
.section-title { font-size: clamp(1.75rem, 4vw, 2.7rem); line-height: 1.15; }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 56ch; margin-top: 1.4rem; }
.section-lead { color: var(--muted); font-size: 1.08rem; max-width: 60ch; margin-top: 1rem; }
.center .section-lead { margin-inline: auto; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .85rem 1.4rem; border-radius: 999px; border: 1px solid transparent;
  font-weight: 650; text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.btn-wa { background: var(--wa); color: #04210f; box-shadow: 0 10px 30px -10px rgba(37, 211, 102, .55); }
.btn-wa:hover { background: #3be07b; transform: translateY(-2px); }
.btn-wa:active { transform: translateY(0); }
.btn-sm { padding: .6rem 1.1rem; font-size: .92rem; }
.btn-lg { padding: 1.05rem 1.9rem; font-size: 1.08rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(0, 0, 0, .8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s, background .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(0, 0, 0, .92); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--accent); }
.brand-image { height: 62px; width: auto; max-width: 300px; }
.footer .brand-image { height: 45px; }
.brand-name { font-size: 1.3rem; color: var(--text); }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav ul { display: flex; gap: 1.8rem; }
.nav ul a { text-decoration: none; color: var(--muted); font-size: .95rem; font-weight: 500; transition: color .2s; }
.nav ul a:hover { color: var(--text); }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); width: 44px; height: 44px; border-radius: 12px; cursor: pointer; place-items: center; }
.nav-toggle .ico-close { display: none; }
.nav-toggle[aria-expanded="true"] .ico-open { display: none; }
.nav-toggle[aria-expanded="true"] .ico-close { display: block; }

@media (max-width: 860px) {
  .nav-toggle { display: grid; }
  .nav {
    position: absolute; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 1rem;
    padding: 1.2rem 1rem 1.5rem; background: rgba(10, 12, 16, .98); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s ease;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: .9rem .2rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(3rem, 7vw, 6rem);
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(128, 0, 0, .15), transparent 60%),
    radial-gradient(700px 420px at -10% 30%, rgba(50, 50, 50, .12), transparent 60%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
          mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
}
.hero-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } }

.checks { display: grid; gap: .8rem; margin-top: 1.8rem; }
.checks li { display: flex; gap: .7rem; align-items: flex-start; color: var(--text); }
.checks svg { color: var(--accent); flex: none; margin-top: .15rem; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 1.5rem 2.8rem; margin-top: 2.4rem; padding-top: 1.8rem; border-top: 1px solid var(--line); }
.hero-stats div { display: flex; flex-direction: column-reverse; }
.hero-stats dd { font-family: var(--font-display); font-size: 2rem; color: var(--accent-bright); line-height: 1.1; }
.hero-stats dt { font-size: .85rem; color: var(--muted); }

/* ---------- Formulário ---------- */
.form-card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2.1rem); box-shadow: var(--shadow); scroll-margin-top: calc(var(--header-h) + 16px);
}
.form-title { font-size: 1.6rem; line-height: 1.2; }
.form-sub { color: var(--muted); font-size: .95rem; margin-top: .4rem; }
.lead-form { display: grid; gap: 1rem; margin-top: 1.4rem; }
.field { display: grid; gap: .4rem; }
.field-row { display: grid; gap: 1rem; }
@media (min-width: 520px) { .field-row { grid-template-columns: 1fr 1fr; } }
.label { font-size: .85rem; font-weight: 600; color: var(--text); }
.label small { color: var(--muted); font-weight: 400; }

input[type="text"], input[type="tel"], select, textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 12px;
  padding: .85rem 1rem; font-size: 1rem; /* 16px evita zoom no iOS */
  transition: border-color .2s, box-shadow .2s;
}
input::placeholder, textarea::placeholder { color: #606060; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%239ba5b7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.4rem; }
select:invalid { color: #707070; }
select option { color: var(--text); background: var(--surface); }
textarea { resize: vertical; min-height: 72px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field.has-error input, .field.has-error select { border-color: var(--danger); }
.error { color: var(--danger); font-size: .8rem; min-height: 0; }
.error:empty { display: none; }

.form-note { display: flex; gap: .5rem; align-items: flex-start; font-size: .78rem; color: var(--muted); line-height: 1.5; }
.form-note svg { flex: none; margin-top: .1rem; color: var(--accent); }
.form-note a { color: var(--accent-bright); }

.form-success { background: var(--accent-soft); border: 1px solid rgba(217, 179, 106, .35); border-radius: 12px; padding: 1rem; display: grid; gap: .8rem; font-size: .95rem; }
.form-success[hidden] { display: none; }

/* ---------- Seções ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { margin-bottom: clamp(2rem, 4vw, 3.2rem); max-width: 720px; }
.section-head.center, .center .section-head { margin-inline: auto; }

.answer { margin-top: 1.2rem; font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); border-left: 3px solid var(--accent); padding-left: 1.2rem; }
.answer strong { color: var(--text); font-weight: 600; }

/* Cards de serviços */
.cards { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.8rem; display: flex; flex-direction: column; gap: .8rem;
  transition: transform .25s, border-color .25s, background .25s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(217, 179, 106, .5); background: var(--surface-2); }
.card-ico { color: var(--accent); padding: 8px; width: 52px; height: 52px; background: var(--accent-soft); border-radius: 12px; }
.card h3 { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.25; margin-top: .4rem; }
.card p { color: var(--muted); font-size: .98rem; flex: 1; }
.card-link { display: inline-flex; align-items: center; gap: .4rem; color: var(--accent-bright); font-weight: 600; font-size: .92rem; text-decoration: none; margin-top: .4rem; }
.card-link svg { transition: transform .2s; }
.card-link:hover svg { transform: translateX(4px); }

/* Segmentos */
.segment-grid { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 2rem; }
.segment-pill {
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: .8rem 1.6rem; font-weight: 600; color: var(--text);
  transition: border-color .25s, background .25s, transform .2s;
}
.segment-pill:hover { border-color: var(--accent); background: var(--surface-2); transform: translateY(-2px); }

/* Passos */
.steps { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: s; margin-bottom: 2.8rem; }
.step { position: relative; padding: 1.8rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.step-num { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--accent); opacity: .85; }
.step h3 { font-family: var(--font-display); font-size: 1.3rem; margin: .8rem 0 .4rem; }
.step p { color: var(--muted); }

/* Diferenciais */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.1fr .9fr; } }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem 1.2rem; text-align: center; }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); color: var(--accent-bright); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .9rem; }

/* FAQ */
.faq { display: grid; gap: .8rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s; }
.faq details[open] { border-color: rgba(217, 179, 106, .45); }
.faq summary { list-style: none; cursor: pointer; padding: 1.1rem 3.2rem 1.1rem 1.3rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 1.05rem; font-weight: 600; font-family: var(--font-body); }
.faq summary::after {
  content: ""; position: absolute; right: 1.3rem; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 1.3rem 1.3rem; color: var(--muted); }
.faq details a { color: var(--accent-bright); }

/* CTA final */
.cta-final { background: radial-gradient(700px 320px at 50% 100%, rgba(128, 0, 0, .14), transparent 70%), var(--bg); }
.cta-final .btn { margin-top: 2rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding-top: clamp(2.5rem, 5vw, 4rem); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.footer-about { color: var(--muted); font-size: .95rem; margin-top: 1rem; max-width: 34ch; }
.footer-title { font-family: var(--font-body); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.footer-list { display: grid; gap: .55rem; color: var(--muted); font-size: .95rem; }
.footer-list a { text-decoration: none; }
.footer-list a:hover { color: var(--text); text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 2.5rem; padding-block: 1.4rem; color: var(--muted); font-size: .85rem; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 60;
  width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%;
  background: var(--wa); color: #04210f; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .6);
  transform: translateY(90px); opacity: 0; transition: transform .35s ease, opacity .35s ease;
}
.wa-float.is-visible { transform: none; opacity: 1; }
.wa-float:hover { background: #3be07b; }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- Revelar ao rolar (só com JS ativo) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Página de política ---------- */
.legal { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1.5rem; }
.legal h2 { font-family: var(--font-display); font-size: 1.5rem; margin: 2.2rem 0 .6rem; }
.legal p, .legal li { color: var(--muted); }
.legal ul { list-style: disc; padding-left: 1.4rem; display: grid; gap: .4rem; margin-top: .6rem; }
.legal a { color: var(--accent-bright); }

/* ---------- Preferências do usuário ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media (max-width: 480px) {
  .stat-grid { gap: .7rem; }
  .btn-lg { width: 100%; }
}
