/* ============================================
   NORVALEO - Sistema de Design
   Paleta de Cores Exclusiva
   ============================================ */

:root {
  /* Cores Primárias - Azuis Profissionais */
  --primary-dark: #1a4d7a;
  --primary-main: #2c7fb8;
  --primary-light: #4a9dd1;
  
  /* Cores Secundárias */
  --accent-orange: #e67e22;
  --accent-gold: #f39c12;
  
  /* Cores Neutras */
  --neutral-900: #1a2332;
  --neutral-800: #2d3748;
  --neutral-700: #4a5568;
  --neutral-600: #5a6c7d;
  --neutral-500: #718096;
  --neutral-400: #a0aec0;
  --neutral-300: #cbd5e0;
  --neutral-200: #e2e8f0;
  --neutral-100: #f0f4f8;
  --neutral-50: #f7fafc;
  
  /* Backgrounds */
  --bg-primary: #ffffff;
  --bg-secondary: #f7fafc;
  --bg-accent: #f0f4f8;
  
  /* Textos */
  --text-primary: #1a2332;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  
  /* Bordas e Sombras */
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(26, 77, 122, 0.08);
  --shadow-md: 0 4px 12px rgba(26, 77, 122, 0.1);
  --shadow-lg: 0 10px 30px rgba(26, 77, 122, 0.12);
  
  /* Espaçamentos */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2.5rem;
  --spacing-xl: 4rem;
  
  /* Tipografia */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-size-base: 16px;
  --line-height-base: 1.6;
}

/* ============================================
   Reset e Base
   ============================================ */

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

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: var(--line-height-base);
}

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

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

/* ============================================
   Header e Navegação
   ============================================ */

.site-header {
  background-color: var(--bg-primary);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  height: 50px;
  width: auto;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-menu a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s ease;
  position: relative;
}

.nav-menu a:hover {
  color: var(--primary-main);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-main);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-primary);
}

/* ============================================
   Seções e Containers
   ============================================ */

.section {
  padding: var(--spacing-xl) 2rem;
}

.section-alt {
  background-color: var(--bg-secondary);
}

.section-accent {
  background-color: var(--bg-accent);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
}

/* ============================================
   Tipografia
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

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

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

.text-small {
  font-size: 0.9rem;
}

.text-large {
  font-size: 1.1rem;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  min-height: 500px;
  background-image: url('../images/hero.svg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-content {
  max-width: 700px;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.5;
}

.hero-cta {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--primary-main);
  color: white;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.hero-cta:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   Cards e Boxes
   ============================================ */

.card {
  background-color: var(--bg-primary);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.card-icon {
  width: 48px;
  height: 48px;
  background-color: var(--primary-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--primary-dark);
}

.card-text {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   Grid Systems
   ============================================ */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* ============================================
   Info Boxes
   ============================================ */

.info-box {
  background-color: var(--bg-accent);
  border-left: 4px solid var(--primary-main);
  padding: 1.5rem;
  border-radius: 4px;
  margin: 1.5rem 0;
}

.info-box-warning {
  background-color: #fff3e0;
  border-left-color: var(--accent-orange);
}

.info-box-success {
  background-color: #e8f5e9;
  border-left-color: #4caf50;
}

.info-box-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

/* ============================================
   Tables
   ============================================ */

.table-container {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--bg-primary);
}

thead {
  background-color: var(--primary-dark);
  color: white;
}

th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
}

tr:hover {
  background-color: var(--bg-secondary);
}

/* ============================================
   FAQ / Accordion
   ============================================ */

.faq-item {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  padding: 1.25rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--text-primary);
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: var(--bg-secondary);
}

.faq-icon {
  font-size: 1.2rem;
  color: var(--primary-main);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-content {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

/* ============================================
   Formulário
   ============================================ */

.form-container {
  background-color: var(--bg-primary);
  padding: 3rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

input,
textarea,
select {
  width: 100%;
  padding: 0.875rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary-main);
  box-shadow: 0 0 0 3px rgba(44, 127, 184, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-primary {
  background-color: var(--primary-main);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-block {
  width: 100%;
}

.form-message {
  padding: 1rem;
  border-radius: 6px;
  margin-top: 1rem;
  display: none;
}

.form-message.success {
  background-color: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #4caf50;
}

.form-message.error {
  background-color: #ffebee;
  color: #c62828;
  border: 1px solid #f44336;
}

/* ============================================
   Badge e Tags
   ============================================ */

.badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  background-color: var(--primary-light);
  color: white;
  margin-right: 0.5rem;
}

.badge-orange {
  background-color: var(--accent-orange);
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
  background-color: var(--neutral-900);
  color: var(--neutral-300);
  padding: 3rem 2rem 1.5rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
  color: var(--neutral-400);
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-section a:hover {
  color: var(--primary-light);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--neutral-700);
  font-size: 0.75rem;
  color: var(--neutral-500);
  opacity: 0.5;
  line-height: 1.4;
}

.footer-company-data {
  margin-top: 1rem;
  font-size: 0.7rem;
  line-height: 1.5;
}

/* ============================================
   Utilidades
   ============================================ */

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.text-center { text-align: center; }
.text-right { text-align: right; }

.section-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

/* ============================================
   Responsividade
   ============================================ */

@media (max-width: 968px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-primary);
    flex-direction: column;
    padding: 1rem 2rem;
    box-shadow: var(--shadow-md);
    display: none;
    gap: 0;
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-menu li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
  }
  
  .nav-menu li:last-child {
    border-bottom: none;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .hero-title {
    font-size: 2.25rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .section {
    padding: 2.5rem 1.5rem;
  }
  
  .form-container {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  :root {
    --font-size-base: 15px;
  }
  
  .hero {
    min-height: 400px;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .card {
    padding: 1.5rem;
  }
}
