/**
 * CONECTE-SE — SENAC SERGIPE 2026
 * Base CSS (base.css)
 * Reset, Tipografia Base, Acessibilidade e Elementos Nativos
 */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-normal);
  color: var(--color-text-secondary);
  background-color: var(--color-bg-deep);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(0, 102, 179, 0.09) 0%, transparent 45%),
    radial-gradient(circle at 85% 45%, rgba(204, 161, 59, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 20% 75%, rgba(0, 210, 255, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 95%, rgba(255, 106, 0, 0.06) 0%, transparent 50%);
  background-attachment: fixed;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   ACESSIBILIDADE: SKIP LINK E FOCUS VISIBLE
   ========================================================================== */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-md);
  z-index: 10000;
  padding: var(--space-sm) var(--space-lg);
  background: var(--color-orange-brand);
  color: var(--color-text-primary);
  font-weight: var(--font-weight-bold);
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-md);
  outline: 3px solid var(--color-yellow-energy);
  outline-offset: 2px;
}

:focus-visible {
  outline: 2px solid var(--color-cyan-glow);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

/* Redução de Movimento */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   TIPOGRAFIA BASE
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-text-primary);
  line-height: var(--line-height-tight);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.02em;
}

h1 { font-size: var(--font-size-display); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

p {
  margin-bottom: var(--space-md);
  max-width: 68ch;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-cyan-bright);
  text-decoration: none;
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

a:hover {
  color: var(--color-yellow-energy);
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* Seleção de Texto */
::selection {
  background-color: var(--color-orange-brand);
  color: var(--color-text-primary);
}

/* Scrollbar Customizada */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-deep);
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: var(--radius-pill);
  border: 2px solid var(--color-bg-deep);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-senac-blue);
}

/* ==========================================================================
   LEGIBILIDADE & CONTRASTE REFORÇADO (WCAG AAA)
   Garante que classes de texto de apoio nunca fiquem escuras ou apagadas
   ========================================================================== */
.text-muted {
  color: var(--color-text-muted) !important; /* #cbd5e1 - contraste 10.5:1 */
}

.text-secondary {
  color: var(--color-text-secondary) !important; /* #f1f5f9 - contraste 16:1 */
}

.text-white {
  color: #ffffff !important;
}

.text-amber {
  color: var(--color-text-amber) !important;
}

address {
  font-style: normal;
  line-height: inherit;
}
