/* ============================================================
   AthleteLab360 — landing page (estático, sem dependências externas)
   Paleta/tipografia em variáveis. Contraste alvo: WCAG 2.2 AA.
   ============================================================ */

:root {
  --ink: #0d1b2a;
  --ink-2: #13263c;
  --accent: #2dd4bf;        /* teal claro — só sobre fundos ESCUROS */
  --accent-ink: #0f766e;    /* teal escuro — texto sobre fundos CLAROS (AA) */
  --text: #1b2733;
  --text-soft: #51617a;     /* >= 4.5:1 sobre branco */
  --bg: #ffffff;
  --bg-alt: #f4f7fa;
  --border: #e3e9f0;
  --radius: 14px;
  --maxw: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--text);
  background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased;
}

/* Foco visível para navegação por teclado (a11y) */
:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 2px; border-radius: 4px; }

/* Skip link (a11y) */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.eyebrow {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem;
  font-weight: 700; color: var(--accent-ink); margin: 0 0 12px;
}
.eyebrow.on-dark { color: var(--accent); }
.section-title { font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.2; margin: 0 0 16px; letter-spacing: -0.01em; }
.section-title.light { color: #fff; }
.lead { font-size: 1.12rem; color: var(--text-soft); }
.lead.light { color: #c7d3e2; }
.accent { color: var(--accent-ink); }
.hero .accent { color: var(--accent); }

/* ── Botões ──────────────────────────────────────────────── */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px;
  font-weight: 600; font-size: 0.98rem; text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #06231f; }
.btn-primary:hover { background: #14b8a6; }
.btn-outline { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.btn-block { width: 100%; border: 0; }

/* ── Cabeçalho + navegação ───────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 24px; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  background: var(--ink); color: var(--accent); font-weight: 800; font-size: 1.1rem;
}
.brand-name { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand-name.small { font-size: 1rem; color: #fff; }
.brand-accent { color: var(--accent-ink); }
.brand-name.small .brand-accent { color: var(--accent); }

.header-right { display: flex; align-items: center; gap: 18px; }
.main-nav { display: flex; gap: 18px; }
.main-nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.main-nav a:hover { color: var(--accent-ink); }

.lang-switch { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 999px; padding: 3px; background: #fff; }
.lang-switch a {
  text-decoration: none; font: 700 0.8rem/1 var(--font); color: var(--text-soft);
  padding: 6px 11px; border-radius: 999px; letter-spacing: 0.03em;
}
.lang-switch a:hover { color: var(--text); }
.lang-switch a[aria-current="true"] { background: var(--ink); color: var(--accent); }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  background: radial-gradient(1200px 500px at 50% -10%, #1c3a5e 0%, var(--ink) 55%);
  color: #fff; padding: 92px 24px 104px; text-align: center;
}
.hero-inner { max-width: 820px; margin: 0 auto; }
.badge {
  display: inline-block; background: rgba(45,212,191,.12); color: var(--accent);
  border: 1px solid rgba(45,212,191,.35); padding: 7px 16px; border-radius: 999px;
  font-size: 0.85rem; font-weight: 600; margin-bottom: 26px;
}
.hero-title { font-size: clamp(2.1rem, 5.5vw, 3.4rem); line-height: 1.12; margin: 0 0 18px; letter-spacing: -0.02em; }
.hero-sub { font-size: 1.18rem; color: #c7d3e2; max-width: 620px; margin: 0 auto 34px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Secções ─────────────────────────────────────────────── */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--ink); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px -20px rgba(13,27,42,.35); }
.card-icon { font-size: 2rem; margin-bottom: 14px; }
.card h3 { margin: 0 0 8px; font-size: 1.2rem; }
.card p { margin: 0; color: var(--text-soft); }

/* ── Contacto ────────────────────────────────────────────── */
.email-link {
  display: inline-block; margin-top: 8px; color: var(--accent); font-weight: 700;
  font-size: 1.1rem; text-decoration: none; border-bottom: 1px dashed rgba(45,212,191,.5);
}
.email-link:hover { color: #fff; }
.contact-form {
  margin: 40px auto 0; max-width: 560px; background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 28px;
}
.field { margin-bottom: 18px; }
.field label { display: block; color: #dbe5f0; font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.2); border-radius: 10px; color: #fff;
  font-size: 1rem; font-family: inherit;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: rgba(255,255,255,.12); }
.field textarea { resize: vertical; }
.form-status { margin: 14px 0 0; font-size: 0.95rem; color: var(--accent); min-height: 1.2em; }

/* ── Rodapé ──────────────────────────────────────────────── */
.site-footer { background: #081420; color: #9fb0c4; padding: 32px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.site-footer p { margin: 0; font-size: 0.9rem; }
.site-footer a { color: var(--accent); text-decoration: none; }
.site-footer a:hover { color: #fff; }

/* ── Página de erro 404 ──────────────────────────────────── */
.error-wrap { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px 24px; }
.error-wrap .btn { margin-top: 24px; }

/* ── Responsivo ──────────────────────────────────────────── */
@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
  .main-nav { display: none; }        /* página curta: âncoras cobertas pelos CTAs do hero */
}
@media (max-width: 520px) {
  .section { padding: 60px 0; }
  .hero { padding: 68px 20px 78px; }
}
