/* ==========================================================================
   LOGAN TECHNOLOGY - BASE & RESET STYLES
   Acessibilidade, Performance, Sem Overflow, Tipografia Sólida
   ========================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-main);
  background-color: var(--color-bg-light);
  overflow-x: hidden;
  position: relative;
  width: 100%;
  min-height: 100vh;
}

/* Headings com forte hierarquia visual e cores sólidas */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-primary-dark);
  font-weight: var(--font-weight-bold);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 4vw + 0.5rem, 3.125rem);
  line-height: 1.18;
}

h2 {
  font-size: clamp(1.75rem, 3vw + 0.25rem, 2.375rem);
  line-height: 1.22;
}

h3 {
  font-size: clamp(1.25rem, 2vw + 0.1rem, 1.5rem);
  line-height: 1.3;
}

h4 {
  font-size: 1.125rem;
  line-height: 1.4;
}

p {
  margin-bottom: 1rem;
  color: var(--color-text-secondary);
}

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

a {
  color: var(--color-accent-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-hover);
}

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

ul, ol {
  list-style: none;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* Acessibilidade de Foco */
:focus-visible {
  outline: 2px solid var(--color-accent-blue);
  outline-offset: 3px;
}

/* Classes Utilitárias */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--spacing-lg);
  padding-right: var(--spacing-lg);
}

@media (max-width: 768px) {
  .container {
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
  }
}

/* Respeito à preferência de 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;
  }
}
