/* ════════════════════════════════════════════════════════════════════
   ACCONTAX - Sistema de Design
   Paleta: Azul Institucional + Verde Estratégico + Neutros Sofisticados
   ════════════════════════════════════════════════════════════════════ */

:root {
  /* Cores Primárias */
  --primary-dark: #0f3854;
  --primary: #1a4d7a;
  --primary-light: #2d7ab8;
  --accent: #0a8a6e;
  --accent-light: #0ea888;
  
  /* Neutros */
  --neutral-50: #f8fafb;
  --neutral-100: #e8ecef;
  --neutral-200: #d4dbe1;
  --neutral-300: #b8c4ce;
  --neutral-400: #8a9aa8;
  --neutral-500: #5a7a95;
  --neutral-600: #3d5a73;
  --neutral-700: #2c3e50;
  --neutral-800: #1a2733;
  --neutral-900: #0d1520;
  
  /* Semântica */
  --success: #0a8a6e;
  --warning: #e67e22;
  --danger: #c0392b;
  --info: #2d7ab8;
  
  /* Tipografia */
  --font-system: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 
                  Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', 
               Consolas, 'Courier New', monospace;
  
  /* Espaçamento */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  
  /* Sombras */
  --shadow-sm: 0 1px 3px rgba(15, 56, 84, 0.08);
  --shadow-md: 0 4px 12px rgba(15, 56, 84, 0.12);
  --shadow-lg: 0 12px 28px rgba(15, 56, 84, 0.15);
  
  /* Transições */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ════════════════════════════════════════════════════════════════════
   Reset e Base
   ════════════════════════════════════════════════════════════════════ */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-system);
  font-size: 16px;
  line-height: 1.6;
  color: var(--neutral-700);
  background: var(--neutral-50);
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ════════════════════════════════════════════════════════════════════
   Tipografia
   ════════════════════════════════════════════════════════════════════ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-dark);
  margin-bottom: var(--space-md);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  letter-spacing: -0.015em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.01em;
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
  margin-bottom: var(--space-sm);
  max-width: 70ch;
}

.lead {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--neutral-600);
  font-weight: 400;
}

.small {
  font-size: 0.875rem;
  color: var(--neutral-500);
}

/* ════════════════════════════════════════════════════════════════════
   Layout Components
   ════════════════════════════════════════════════════════════════════ */

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

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

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

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

.section-bg-pattern {
  background-image: url('../assets/pattern.svg');
  background-size: 200px 200px;
  background-repeat: repeat;
}

.section-bg-accent {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: white;
}

.section-bg-accent h2,
.section-bg-accent h3,
.section-bg-accent h4 {
  color: white;
}

.section-bg-accent .lead {
  color: rgba(255, 255, 255, 0.9);
}

/* ════════════════════════════════════════════════════════════════════
   Header & Navigation
   ════════════════════════════════════════════════════════════════════ */

.header {
  background: white;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow var(--transition-base);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  min-height: 70px;
}

.logo {
  height: 45px;
  width: auto;
  transition: opacity var(--transition-fast);
}

.logo:hover {
  opacity: 0.8;
}

.nav {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--neutral-600);
  padding: var(--space-xs) var(--space-sm);
  border-radius: 6px;
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--primary);
  background: var(--neutral-100);
}

.nav-link.active {
  color: var(--primary);
  font-weight: 600;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-xs);
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

/* ════════════════════════════════════════════════════════════════════
   Hero Section
   ════════════════════════════════════════════════════════════════════ */

.hero {
  background: url('../assets/hero.svg') center/cover no-repeat;
  color: white;
  padding: var(--space-2xl) 0;
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 56, 84, 0.9) 0%, rgba(26, 77, 122, 0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero h1 {
  color: white;
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero .lead {
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--space-lg);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

/* ════════════════════════════════════════════════════════════════════
   Cards
   ════════════════════════════════════════════════════════════════════ */

.card {
  background: white;
  border-radius: 12px;
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  border: 1px solid var(--neutral-200);
}

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

.card-title {
  color: var(--primary);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.card-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-light);
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.card-content p:last-child {
  margin-bottom: 0;
}

/* ════════════════════════════════════════════════════════════════════
   Grid Systems
   ════════════════════════════════════════════════════════════════════ */

.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* ════════════════════════════════════════════════════════════════════
   Info Blocks
   ════════════════════════════════════════════════════════════════════ */

.info-block {
  background: var(--neutral-100);
  border-left: 4px solid var(--accent);
  padding: var(--space-md);
  border-radius: 8px;
  margin: var(--space-lg) 0;
}

.info-block h4 {
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.warning-block {
  background: #fff4e6;
  border-left-color: var(--warning);
}

.warning-block h4 {
  color: var(--warning);
}

/* ════════════════════════════════════════════════════════════════════
   Tables
   ════════════════════════════════════════════════════════════════════ */

.table-wrapper {
  overflow-x: auto;
  margin: var(--space-lg) 0;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

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

th {
  padding: var(--space-md);
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

td {
  padding: var(--space-md);
  border-bottom: 1px solid var(--neutral-200);
}

tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background: var(--neutral-50);
}

/* ════════════════════════════════════════════════════════════════════
   FAQ Accordion
   ════════════════════════════════════════════════════════════════════ */

.faq-item {
  background: white;
  border: 1px solid var(--neutral-200);
  border-radius: 8px;
  margin-bottom: var(--space-sm);
  overflow: hidden;
  transition: all var(--transition-base);
}

.faq-item:hover {
  border-color: var(--primary-light);
}

.faq-question {
  width: 100%;
  padding: var(--space-md);
  text-align: left;
  font-weight: 600;
  color: var(--primary-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.faq-question:hover {
  background: var(--neutral-50);
}

.faq-toggle {
  font-size: 1.5rem;
  color: var(--primary-light);
  transition: transform var(--transition-base);
  line-height: 1;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

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

.faq-answer-content {
  padding: 0 var(--space-md) var(--space-md) var(--space-md);
  color: var(--neutral-600);
}

/* ════════════════════════════════════════════════════════════════════
   Form Elements
   ════════════════════════════════════════════════════════════════════ */

.form-group {
  margin-bottom: var(--space-md);
}

label {
  display: block;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: var(--space-xs);
  font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: 2px solid var(--neutral-200);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: all var(--transition-fast);
  background: white;
  color: var(--neutral-700);
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-lg);
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition-fast);
  cursor: pointer;
  text-align: center;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-sm);
}

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

.btn-accent {
  background: var(--accent);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-accent:hover {
  background: var(--accent-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

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

.btn-lg {
  padding: var(--space-md) var(--space-xl);
  font-size: 1.1rem;
}

.form-message {
  padding: var(--space-md);
  border-radius: 8px;
  margin-bottom: var(--space-md);
  display: none;
}

.form-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  display: block;
}

.form-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  display: block;
}

/* ════════════════════════════════════════════════════════════════════
   Footer
   ════════════════════════════════════════════════════════════════════ */

.footer {
  background: var(--neutral-900);
  color: var(--neutral-300);
  padding: var(--space-xl) 0 var(--space-sm) 0;
}

.footer-main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--neutral-700);
  margin-bottom: var(--space-md);
}

.footer-section h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: var(--space-sm);
}

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

.footer-links li {
  margin-bottom: var(--space-xs);
}

.footer-links a {
  color: var(--neutral-400);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--neutral-500);
  opacity: 0.7;
}

.footer-bottom p {
  margin-bottom: var(--space-xs);
  max-width: none;
}

.footer-bottom strong {
  color: var(--neutral-400);
}

/* ════════════════════════════════════════════════════════════════════
   Utilities
   ════════════════════════════════════════════════════════════════════ */

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

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

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

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

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

/* ════════════════════════════════════════════════════════════════════
   Responsive Design
   ════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: white;
    flex-direction: column;
    padding: var(--space-lg);
    gap: var(--space-sm);
    align-items: stretch;
    transition: left var(--transition-base);
    box-shadow: var(--shadow-lg);
  }
  
  .nav.active {
    left: 0;
  }
  
  .nav-link {
    padding: var(--space-md);
    text-align: center;
    font-size: 1.1rem;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(7px);
  }
  
  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-7px);
  }
  
  .section {
    padding: var(--space-xl) 0;
  }
  
  .hero {
    min-height: 400px;
    padding: var(--space-xl) 0;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .footer-main {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-sm);
  }
  
  .card {
    padding: var(--space-md);
  }
  
  th, td {
    padding: var(--space-sm);
    font-size: 0.85rem;
  }
}
