/* ========================================
   ESTILOS GLOBAIS - DEVOCIONAL PROJECT
   ======================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  /* Padding superior para não sobrepor o header fixo */
  padding-top: var(--header-height);
}

/* *** TIPOGRAFIA *** */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  margin-bottom: var(--space-base);
}

h1 {
  font-size: var(--font-size-2xl);
}

h2 {
  font-size: var(--font-size-xl);
}

h3 {
  font-size: var(--font-size-lg);
}

h4, h5, h6 {
  font-size: var(--font-size-md);
}

p {
  margin-bottom: var(--space-base);
  color: var(--text-secondary);
}

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

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

/* *** ELEMENTOS DE FORMULÁRIO *** */
button, .btn {
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-weight: var(--font-weight-semibold);
  background-color: var(--accent-yellow); /* default botão principal amarelo */
  color: var(--bg-primary);
}

button:active, .btn:active {
  transform: scale(0.98);
}

input, textarea, select {
  font-family: inherit;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: var(--space-sm) var(--space-base);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent-yellow);
  box-shadow: 0 0 0 2px rgba(255, 255, 0, 0.2);
}

/* *** PADRÕES DE LAYOUT *** */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--space-base);
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-sm);
  }
}

/* *** UTILITÁRIOS DE ESPAÇAMENTO *** */
.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-base { margin-top: var(--space-base); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-base { margin-bottom: var(--space-base); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.p-xs { padding: var(--space-xs); }
.p-sm { padding: var(--space-sm); }
.p-base { padding: var(--space-base); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
.p-xl { padding: var(--space-xl); }
.p-2xl { padding: var(--space-2xl); }

/* *** UTILITÁRIOS DE DISPLAY *** */
.text-center { text-align: center; }
.text-right { text-align: right; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { flex-direction: column; }

.grid { display: grid; }

.hidden { display: none; }
.visible { display: block; }

/* *** SCROLLBAR ESTILIZADO *** */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* *** RESPONSIVIDADE MOBILE-FIRST *** */
@media (max-width: 1200px) {
  html {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  h1 {
    font-size: var(--font-size-xl);
  }

  h2 {
    font-size: var(--font-size-lg);
  }
}

@media (max-width: 480px) {
  html {
    font-size: 13px;
  }

  h1 {
    font-size: var(--font-size-lg);
  }
}
