/**
 * styles.css — base, tipografia, layout geral
 */

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--uvtek-background-light);
  color: var(--uvtek-text-primary);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 var(--space-sm);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 var(--space-md); color: var(--uvtek-text-primary); }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

button, input, select { font-family: var(--font-body); }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-2xl) 0;
}

.section-title {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-xl);
}

.section-title p { color: var(--uvtek-text-muted); }

.text-center { text-align: center; }
.text-muted { color: var(--uvtek-text-muted); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--uvtek-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

#app { min-height: 60vh; }

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--uvtek-primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 999;
}
.skip-link:focus {
  left: 0;
  top: 0;
}

.loading-state,
.empty-state,
.error-state {
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
  color: var(--uvtek-text-muted);
}

.loading-spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--uvtek-border-light);
  border-top-color: var(--uvtek-primary);
  border-radius: 50%;
  margin: 0 auto var(--space-md);
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.fade-in {
  animation: fadeIn var(--transition-base) ease both;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
