/*
  Tesa Importadora LTDA — Estilos Globais
  - Layout mobile-first, acessível e performático
  - Cores sóbrias, tipografia legível
  - Microinterações sutis
*/

:root {
  --bg: #0f172a;           /* azul anil escuro */
  --surface: #111827;      /* azul grafite */
  --card: #0b1220;         /* fundo cartões */
  --muted: #94a3b8;        /* cinza-azulado */
  --text: #e2e8f0;         /* quase branco */
  --primary: #1d4ed8;      /* azul principal */
  --primary-700: #1e40af;
  --accent: #22d3ee;       /* ciano-acento */
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --focus: #fef08a;        /* amarelo suave para foco */
  --radius: 12px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

/* Reset simples e base de tipografia */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { height: 100%; }
body {
  margin: 0;
  background: radial-gradient(1200px 800px at 80% -20%, rgba(34,211,238,0.1), transparent),
              radial-gradient(1000px 700px at -10% 20%, rgba(29,78,216,0.15), transparent),
              var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: min(1200px, 92vw); margin-inline: auto; }
.section { padding: 56px 0; }
.section-tight { padding: 32px 0; }

/* Acessibilidade: foco visível */
:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Skip to content */
.skip-link {
  position: absolute; left: 8px; top: -40px; z-index: 10000;
  background: var(--focus); color: #111; padding: 8px 12px; border-radius: 8px;
  transition: top .2s ease; font-weight: 600;
}
.skip-link:focus { top: 8px; }

/* Header fixo */
.header {
  position: sticky; top: 0; z-index: 999;
  backdrop-filter: saturate(180%) blur(12px);
  background: color-mix(in oklab, var(--surface) 88%, transparent);
  border-bottom: 1px solid color-mix(in oklab, var(--text) 12%, transparent);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; }
.nav .brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .4px; }
.nav img.logo { width: 36px; height: 36px; }
.nav ul { list-style: none; display: flex; gap: 10px; margin: 0; padding: 0; }
.nav a { padding: 8px 12px; border-radius: 8px; color: var(--text); }
.nav a[aria-current="page"] { background: color-mix(in oklab, var(--primary) 22%, transparent); }
.nav a:hover { background: color-mix(in oklab, var(--text) 8%, transparent); }

/* Hero */
.hero {
  padding: 80px 0 40px;
}
.hero .content { display: grid; gap: 18px; max-width: 820px; }
.hero h1 { font-size: clamp(28px, 5vw, 44px); line-height: 1.15; margin: 0; letter-spacing: .3px; }
.hero p.sub { color: var(--muted); margin: 0; font-size: clamp(16px, 2.5vw, 18px); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }

/* Botões e microinterações */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform .08s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(180deg, color-mix(in oklab, var(--primary) 90%, white) 0%, var(--primary-700) 100%);
  color: #fff; box-shadow: 0 8px 20px rgba(29,78,216,.3); }
.btn-primary:hover { box-shadow: 0 10px 26px rgba(29,78,216,.45); }
.btn-secondary { background: color-mix(in oklab, var(--text) 8%, transparent); color: var(--text); border-color: color-mix(in oklab, var(--text) 16%, transparent); }

/* Grids responsivas */
.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; } }

/* Cards */
.card {
  background: linear-gradient(180deg, color-mix(in oklab, var(--card) 94%, transparent) 0%, color-mix(in oklab, var(--card) 100%, transparent) 100%);
  border: 1px solid color-mix(in oklab, var(--text) 10%, transparent);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset;
  transition: transform .18s ease, box-shadow .18s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in oklab, var(--accent) 22%, transparent); }
.card h3 { margin: 4px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }

/* Títulos de seção */
.h-section { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.h-section h2 { margin: 0; font-size: clamp(22px, 4vw, 28px); }
.h-section p { margin: 0; color: var(--muted); }

/* Etapas / Como funciona */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 46px; }
.step::before { counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; background: var(--primary); color: white;
}

/* FAQ acessível com <details> */
.faq details { border: 1px solid color-mix(in oklab, var(--text) 10%, transparent); border-radius: 10px; padding: 10px 14px; background: color-mix(in oklab, var(--surface) 78%, transparent); }
.faq details + details { margin-top: 10px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 8px 0 0; color: var(--muted); }

/* Depoimentos simples */
.testimonial { display: grid; gap: 8px; }
.testimonial .who { color: var(--muted); font-size: 14px; }

/* Formulários */
form { display: grid; gap: 12px; }
label { font-weight: 600; }
input, select, textarea {
  width: 100%; color: var(--text); background: color-mix(in oklab, var(--surface) 75%, transparent);
  border: 1px solid color-mix(in oklab, var(--text) 12%, transparent); border-radius: 10px; padding: 10px 12px;
}
input::placeholder, textarea::placeholder { color: color-mix(in oklab, var(--muted) 80%, transparent); }
.helper { color: var(--muted); font-size: 14px; }
.field-error { color: var(--danger); font-size: 14px; }
.success-msg { color: var(--success); font-weight: 600; }

/* Rodapé */
.footer { padding: 28px 0; border-top: 1px solid color-mix(in oklab, var(--text) 12%, transparent); background: color-mix(in oklab, var(--surface) 92%, transparent); margin-top: 32px; }
.footer small, .footer a { color: var(--muted); }
.footer .grid { align-items: center; }

/* Botão Voltar ao Topo */
.to-top { position: fixed; right: 16px; bottom: 16px; z-index: 900; opacity: 0; pointer-events: none; transform: translateY(10px); }
.to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* Animações no scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Banner e Modal de Cookies */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000;
  display: none; gap: 12px; align-items: center; justify-content: space-between;
  background: color-mix(in oklab, var(--surface) 95%, transparent); border: 1px solid color-mix(in oklab, var(--text) 12%, transparent);
  border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow);
}
.cookie-banner.show { display: grid; grid-template-columns: 1fr auto; }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.cookie-modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: none; place-items: center; z-index: 1001; }
.cookie-modal-backdrop.show { display: grid; }
.cookie-modal { width: min(720px, 92vw); background: var(--surface); border: 1px solid color-mix(in oklab, var(--text) 12%, transparent); border-radius: 16px; box-shadow: var(--shadow); padding: 16px; }
.cookie-modal .grid { align-items: start; }

/* Utilidades */
.muted { color: var(--muted); }
.center { text-align: center; }
.inline { display: inline; }
.hidden { display: none !important; }

/* Responsividade leve do cabeçalho */
@media (max-width: 820px) {
  .nav { flex-wrap: wrap; }
  .nav ul { flex-wrap: wrap; }
}