/* ═══════════════════════════════════════════════════════════════
   A R SILVA CONTABILIDADE - STYLESHEET PRINCIPAL
   Paleta: Azul Marinho + Verde Esmeralda + Dourado + Neutros
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Cores principais */
  --primary-dark: #1a3a52;
  --primary-medium: #2d5a7b;
  --primary-light: #4a7ba7;
  
  --secondary-dark: #2d7a5f;
  --secondary-medium: #3d9b7a;
  --secondary-light: #5bc4a0;
  
  --accent-gold: #c9a55a;
  --accent-gold-light: #ddb76f;
  
  /* Neutros */
  --neutral-900: #1f2937;
  --neutral-800: #374151;
  --neutral-700: #4b5563;
  --neutral-600: #6b7280;
  --neutral-400: #9ca3af;
  --neutral-300: #d1d5db;
  --neutral-200: #e5e7eb;
  --neutral-100: #f3f4f6;
  --neutral-50: #fafbfc;
  
  --white: #ffffff;
  
  /* Tipografia */
  --font-display: Georgia, 'Times New Roman', serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Courier New', monospace;
  
  /* Espaçamentos */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  
  /* Transições */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Sombras */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* ═══════════════════════════════════════════════════════════════
   RESET E BASE
   ═══════════════════════════════════════════════════════════════ */

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

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--neutral-800);
  background: var(--neutral-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  transition: all var(--transition-base);
}

/* ═══════════════════════════════════════════════════════════════
   TIPOGRAFIA
   ═══════════════════════════════════════════════════════════════ */

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

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

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

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

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

h5 {
  font-size: 1.125rem;
  font-weight: 600;
}

p {
  margin-bottom: var(--space-sm);
  color: var(--neutral-700);
}

.text-large {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--neutral-600);
}

.text-small {
  font-size: 0.875rem;
  line-height: 1.6;
}

.text-mono {
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

/* ═══════════════════════════════════════════════════════════════
   LAYOUT E CONTAINER
   ═══════════════════════════════════════════════════════════════ */

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

.container-wide {
  max-width: 1400px;
}

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

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

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

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--white);
}

.section-dark p {
  color: rgba(255, 255, 255, 0.85);
}

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

.section-pattern {
  background-image: url('../img/pattern.svg');
  background-size: 400px 400px;
  background-repeat: repeat;
}

/* ═══════════════════════════════════════════════════════════════
   HEADER E NAVEGAÇÃO
   ═══════════════════════════════════════════════════════════════ */

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

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  height: 50px;
  width: auto;
  transition: transform var(--transition-base);
}

.logo:hover {
  transform: translateY(-2px);
}

nav ul {
  list-style: none;
  display: flex;
  gap: var(--space-lg);
  align-items: center;
}

nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--neutral-700);
  position: relative;
  padding: var(--space-xs) 0;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary-dark);
  transition: width var(--transition-base);
}

nav a:hover {
  color: var(--secondary-dark);
}

nav a:hover::after {
  width: 100%;
}

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

.menu-toggle span {
  width: 25px;
  height: 2px;
  background: var(--neutral-700);
  transition: all var(--transition-base);
}

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════ */

.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(26, 58, 82, 0.95) 0%, rgba(45, 122, 95, 0.9) 100%),
              url('../img/hero.svg') center/cover no-repeat;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(201, 165, 90, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  animation: fadeInUp 0.8s ease;
}

.hero h1 {
  color: var(--white);
  margin-bottom: var(--space-md);
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.1;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
  font-weight: 300;
}

.hero-accent {
  display: inline-block;
  color: var(--accent-gold-light);
  font-weight: 400;
  border-bottom: 2px solid var(--accent-gold);
  padding-bottom: 2px;
}

/* ═══════════════════════════════════════════════════════════════
   CARDS E BOXES
   ═══════════════════════════════════════════════════════════════ */

.card {
  background: var(--white);
  border-radius: 8px;
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  border-left: 4px solid transparent;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-left-color: var(--secondary-dark);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--secondary-dark), var(--secondary-medium));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
}

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

.info-box-title {
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: var(--space-xs);
  font-size: 1.125rem;
}

.warning-box {
  background: #fff8e1;
  border-left: 4px solid #f59e0b;
  padding: var(--space-md);
  margin: var(--space-md) 0;
  border-radius: 4px;
}

/* ═══════════════════════════════════════════════════════════════
   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(250px, 1fr));
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-md);
}

/* ═══════════════════════════════════════════════════════════════
   TABELAS
   ═══════════════════════════════════════════════════════════════ */

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

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.95rem;
}

thead {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-medium));
  color: var(--white);
}

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

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

tbody tr {
  transition: background var(--transition-fast);
}

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

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

/* ═══════════════════════════════════════════════════════════════
   LISTAS
   ═══════════════════════════════════════════════════════════════ */

.list-check {
  list-style: none;
  padding: 0;
}

.list-check li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: var(--space-sm);
  line-height: 1.8;
}

.list-check li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  background: var(--secondary-dark);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

.list-numbered {
  counter-reset: item;
  list-style: none;
  padding: 0;
}

.list-numbered li {
  position: relative;
  padding-left: 3rem;
  margin-bottom: var(--space-md);
  counter-increment: item;
}

.list-numbered li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
  color: var(--white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1.125rem;
}

/* ═══════════════════════════════════════════════════════════════
   BOTÕES E CTAs
   ═══════════════════════════════════════════════════════════════ */

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border-radius: 6px;
  transition: all var(--transition-base);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--secondary-dark), var(--secondary-medium));
  color: var(--white);
  box-shadow: 0 4px 12px rgba(45, 122, 95, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45, 122, 95, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-dark);
  border-color: var(--primary-dark);
}

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

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

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

/* ═══════════════════════════════════════════════════════════════
   FORMULÁRIO
   ═══════════════════════════════════════════════════════════════ */

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

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

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--neutral-300);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  transition: all var(--transition-base);
  background: var(--white);
}

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

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

.form-message {
  padding: var(--space-md);
  border-radius: 6px;
  margin-top: var(--space-md);
  font-weight: 500;
  display: none;
}

.form-message.success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #34d399;
  display: block;
}

.form-message.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #f87171;
  display: block;
}

/* ═══════════════════════════════════════════════════════════════
   FAQ ACCORDION
   ═══════════════════════════════════════════════════════════════ */

.faq-item {
  background: var(--white);
  border-radius: 8px;
  margin-bottom: var(--space-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

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

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

.faq-icon {
  font-size: 1.25rem;
  color: var(--secondary-dark);
  transition: transform var(--transition-base);
  font-weight: 700;
}

.faq-item.active .faq-icon {
  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);
  color: var(--neutral-700);
  line-height: 1.8;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */

footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--space-lg) 0 var(--space-md);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  text-align: center;
}

.footer-brand {
  margin-bottom: var(--space-md);
}

.footer-brand img {
  height: 50px;
  margin: 0 auto var(--space-sm);
  opacity: 0.9;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: color var(--transition-base);
}

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

.footer-info {
  font-size: 0.8rem;
  line-height: 1.6;
  opacity: 0.5;
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-info p {
  margin-bottom: 0.25rem;
  color: inherit;
}

/* ═══════════════════════════════════════════════════════════════
   BADGES E TAGS
   ═══════════════════════════════════════════════════════════════ */

.badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-primary {
  background: var(--secondary-dark);
  color: var(--white);
}

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

.badge-outline {
  background: transparent;
  border: 2px solid currentColor;
}

/* ═══════════════════════════════════════════════════════════════
   ANIMAÇÕES
   ═══════════════════════════════════════════════════════════════ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 0.6s ease;
}

.fade-in-up {
  animation: fadeInUp 0.8s ease;
}

/* ═══════════════════════════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════════════════════════ */

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

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

.mb-sm {
  margin-bottom: var(--space-sm);
}

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

.mb-lg {
  margin-bottom: var(--space-lg);
}

.mt-sm {
  margin-top: var(--space-sm);
}

.mt-md {
  margin-top: var(--space-md);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.divider {
  height: 1px;
  background: var(--neutral-300);
  margin: var(--space-lg) 0;
}

.divider-lg {
  margin: var(--space-2xl) 0;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVO
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  :root {
    --space-xl: 3rem;
    --space-2xl: 4rem;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  nav {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--white);
    transition: left var(--transition-base);
    box-shadow: var(--shadow-lg);
  }
  
  nav.active {
    left: 0;
  }
  
  nav ul {
    flex-direction: column;
    padding: var(--space-lg);
    gap: var(--space-sm);
    align-items: flex-start;
  }
  
  nav a {
    font-size: 1.125rem;
    padding: var(--space-sm) 0;
    width: 100%;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .table-wrapper {
    font-size: 0.85rem;
  }
  
  th, td {
    padding: var(--space-sm);
  }
}

@media (max-width: 480px) {
  html {
    font-size: 15px;
  }
  
  .container {
    padding: 0 var(--space-sm);
  }
  
  section {
    padding: var(--space-xl) 0;
  }
  
  .btn {
    width: 100%;
    padding: 1rem;
  }
}
