/* ================================================================
   NRA ARQUITETURA - NORMALIZAÇÃO E PADRONIZAÇÃO GLOBAL V3.0

   PROPÓSITO: Uniformizar TODAS as páginas com Design System consistente
   Aplica-se a: WordPress + HTML estático
   ================================================================ */

/* ========== RESET GLOBAL ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  background-color: #f8fafc !important;
  color: #1a1a1a !important;
  line-height: 1.7 !important;
  font-size: 16px !important;
  font-weight: 400;
}

/* ========== TIPOGRAFIA - HEADINGS ========== */
h1, .h1,
h2, .h2,
h3, .h3,
h4, .h4,
h5, .h5,
h6, .h6 {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin-top: 1.5em !important;
  margin-bottom: 0.75em !important;
  line-height: 1.2 !important;
  letter-spacing: -0.02em !important;
}

h1, .h1 {
  font-size: clamp(1.75rem, 5vw, 3rem) !important;
  line-height: 1.1 !important;
  margin-top: 1.2em !important;
  margin-bottom: 0.8em !important;
}

h2, .h2 {
  font-size: clamp(1.375rem, 3vw, 2rem) !important;
  line-height: 1.3 !important;
  margin-top: 1.5em !important;
  margin-bottom: 0.75em !important;
  padding-left: 15px !important;
  border-left: 4px solid #38bdf8 !important;
}

h3, .h3 {
  font-size: clamp(1.125rem, 2vw, 1.5rem) !important;
  line-height: 1.4 !important;
  margin-top: 1.3em !important;
  margin-bottom: 0.6em !important;
}

h4, .h4 {
  font-size: 1.125rem !important;
  line-height: 1.4 !important;
  margin-top: 1.2em !important;
  margin-bottom: 0.5em !important;
}

h5, .h5,
h6, .h6 {
  font-size: 1rem !important;
  line-height: 1.5 !important;
}

/* ========== TIPOGRAFIA - CORPO ========== */
p {
  margin: 0 0 1.5rem 0 !important;
  line-height: 1.8 !important;
  color: #1a1a1a !important;
}

small, .text-small {
  font-size: 0.875rem !important;
  color: #555555 !important;
}

strong, b {
  font-weight: 600 !important;
  color: #0f172a !important;
}

em, i {
  font-style: italic;
}

/* ========== LINKS ========== */
a {
  color: #38bdf8 !important;
  text-decoration: none !important;
  transition: color 0.3s, text-decoration 0.3s !important;
  font-weight: 500 !important;
}

a:hover {
  color: #0ea5e9 !important;
  text-decoration: underline !important;
}

a:visited {
  color: #0c6ba6 !important;
}

/* ========== LISTAS ========== */
ul, ol {
  margin: 1.5rem 0 1.5rem 2rem !important;
  line-height: 1.8 !important;
}

li {
  margin-bottom: 0.5rem !important;
  color: #1a1a1a !important;
}

ul li {
  list-style-type: disc;
}

ol li {
  list-style-type: decimal;
}

li > strong {
  color: #0f172a !important;
}

/* ========== BLOCKQUOTE ========== */
blockquote {
  border-left: 4px solid #38bdf8 !important;
  padding-left: 20px !important;
  margin: 2rem 0 !important;
  font-style: italic;
  color: #555555 !important;
  background: rgba(56, 189, 248, 0.05) !important;
  padding: 20px !important;
  border-radius: 4px !important;
  line-height: 1.8 !important;
}

/* ========== CÓDIGO ========== */
code {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace !important;
  background: #f1f5f9 !important;
  padding: 2px 6px !important;
  border-radius: 3px !important;
  font-size: 0.9em !important;
  color: #0f172a !important;
}

pre {
  background: #1a1a1a !important;
  color: #38bdf8 !important;
  padding: 20px !important;
  border-radius: 8px !important;
  overflow-x: auto !important;
  margin: 1.5rem 0 !important;
  line-height: 1.5 !important;
}

pre code {
  background: transparent !important;
  padding: 0 !important;
  color: #38bdf8 !important;
}

/* ========== TABELAS ========== */
table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 1.5rem 0 !important;
  border: 1px solid #e2e8f0 !important;
}

thead {
  background: #f8fafc !important;
}

th {
  text-align: left !important;
  padding: 12px !important;
  font-weight: 600 !important;
  border-bottom: 2px solid #e2e8f0 !important;
  color: #0f172a !important;
}

td {
  padding: 12px !important;
  border-bottom: 1px solid #e2e8f0 !important;
  color: #1a1a1a !important;
}

tbody tr:hover {
  background: #f8fafc !important;
}

/* ========== IMAGENS ========== */
img {
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
  border-radius: 8px !important;
}

figure {
  margin: 2rem 0 !important;
}

figcaption {
  font-size: 0.875rem !important;
  color: #555555 !important;
  text-align: center !important;
  margin-top: 0.5rem !important;
}

/* ========== BOTÕES ========== */
button, .button, a.button, input[type="button"], input[type="submit"] {
  display: inline-block !important;
  padding: 12px 28px !important;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
  color: white !important;
  border: none !important;
  border-radius: 50px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: all 0.3s !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

button:hover, .button:hover, a.button:hover {
  background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 20px rgba(56, 189, 248, 0.3) !important;
}

button:active, .button:active {
  transform: translateY(0) !important;
}

/* ========== FORMULÁRIOS ========== */
input, textarea, select {
  width: 100% !important;
  padding: 12px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 14px !important;
  color: #1a1a1a !important;
  margin-bottom: 1rem !important;
  transition: border-color 0.3s !important;
}

input:focus, textarea:focus, select:focus {
  outline: none !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1) !important;
}

label {
  display: block !important;
  margin-bottom: 0.5rem !important;
  font-weight: 600 !important;
  color: #0f172a !important;
}

/* ========== CONTAINER & ESPAÇAMENTO ========== */
.container, .content-wrapper {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
}

section, article, main {
  padding: 60px 0 !important;
}

section + section {
  border-top: 1px solid #e2e8f0 !important;
}

/* ========== GRID & FLEX ========== */
.grid, .row {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
  gap: 30px !important;
}

/* ========== CARDS ========== */
.card {
  background: white !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 30px !important;
  transition: all 0.3s !important;
}

.card:hover {
  border-color: #38bdf8 !important;
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.15) !important;
  transform: translateY(-4px) !important;
}

/* ========== HEADER/NAV ========== */
header, nav {
  background: white !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

nav a {
  padding: 8px 16px !important;
  display: inline-block !important;
  color: #1a1a1a !important;
  font-weight: 500 !important;
}

nav a:hover {
  color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.05) !important;
  border-radius: 4px !important;
}

/* ========== FOOTER ========== */
footer {
  background: #0f172a !important;
  color: white !important;
  padding: 50px 0 20px !important;
  margin-top: 100px !important;
}

footer p {
  color: rgba(255, 255, 255, 0.8) !important;
}

footer a {
  color: #38bdf8 !important;
}

footer a:hover {
  color: white !important;
}

/* ========== RESPONSIVO ========== */
@media (max-width: 768px) {
  body {
    font-size: 15px !important;
  }

  h1, .h1 {
    font-size: clamp(1.5rem, 4vw, 2rem) !important;
  }

  h2, .h2 {
    font-size: clamp(1.25rem, 3vw, 1.75rem) !important;
  }

  h3, .h3 {
    font-size: clamp(1rem, 2vw, 1.3rem) !important;
  }

  section, article, main {
    padding: 40px 0 !important;
  }

  .grid, .row {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  ul, ol {
    margin: 1rem 0 1rem 1.5rem !important;
  }

  .container, .content-wrapper {
    padding: 0 15px !important;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px !important;
    line-height: 1.6 !important;
  }

  h1, .h1 {
    font-size: 1.5rem !important;
    margin-bottom: 0.6em !important;
  }

  h2, .h2 {
    font-size: 1.25rem !important;
  }

  p {
    line-height: 1.7 !important;
  }

  button, .button, a.button {
    padding: 10px 20px !important;
    font-size: 13px !important;
  }

  .container, .content-wrapper {
    padding: 0 12px !important;
  }
}

/* ========== ACESSIBILIDADE ========== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========== PRINT ========== */
@media print {
  a[href]:after {
    content: none !important;
  }

  body {
    background: white !important;
  }

  h1, h2, h3 {
    page-break-after: avoid !important;
  }
}
