:root {
  --background: 210 20% 98%;
  --foreground: 222 47% 11%;
  --card: 0 0% 100%;
  --primary: 215 50% 18%;
  --secondary: 210 30% 95%;
  --muted: 215 16% 47%;
  --accent: 217 91% 60%;
  --border: 220 13% 91%;
  --radius: 0.6rem;
  
  /* Novas variáveis */
  --accent-strong: 217 95% 50%;
  --success: 145 66% 28%;
  --warning: 38 92% 50%;
  --gradient: linear-gradient(135deg, hsl(217 91% 60%), hsl(217 91% 40%));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: hsl(var(--card) / 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid hsl(var(--border));
  overflow: hidden;
  height: 70px;
}

.nav-wrap {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  height: 70px;
}

.brand img { 
  width: auto;
  height: 160px;
  max-width: 280px;
  object-fit: contain;
  object-position: left center;
  transform: translateY(-1 px);
}

.menu-toggle {
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  padding: 0.5rem 0.8rem;
  font-size: 1.2rem;
  display: none;
  cursor: pointer;
  z-index: 32;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  z-index: 31;
}

.main-nav a { 
  font-size: 0.95rem; 
  color: hsl(var(--foreground));
  font-weight: 500;
  transition: color 0.2s ease;
}

.main-nav a:hover { 
  color: hsl(var(--accent)); 
}

/* Botões */
.btn {
  border-radius: var(--radius);
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: hsl(217 95% 45%);
  color: #ffffff !important;
  border: 2px solid hsl(217 95% 35%);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover { 
  background: hsl(217 95% 40%);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
  border-color: hsl(217 95% 30%);
}

.btn-secondary {
  background: hsl(var(--card));
  border: 2px solid hsl(var(--border));
  color: hsl(var(--foreground));
  font-weight: 600;
}

.btn-secondary:hover {
  background: hsl(var(--secondary));
  border-color: hsl(var(--muted));
}

/* Hero Section */
.hero {
  position: relative;
  padding: 6rem 0 4.5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 5%, hsl(var(--accent) / 0.2), transparent 40%),
    radial-gradient(circle at 10% 95%, hsl(var(--accent) / 0.15), transparent 35%);
  pointer-events: none;
}

.badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: hsl(var(--accent));
  border: 1px solid hsl(var(--accent) / 0.3);
  background: hsl(var(--accent) / 0.08);
  border-radius: 2rem;
  padding: 0.45rem 1rem;
}

h1 {
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 1.5rem 0 1rem;
  max-width: 900px;
}

.hero p {
  max-width: 740px;
  color: hsl(var(--foreground) / 0.8);
  font-size: 1.1rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero-stats {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid hsl(var(--border));
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.hero-stats article {
  text-align: center;
}

.hero-stats strong {
  display: block;
  font-size: 1.8rem;
  color: hsl(var(--foreground));
  line-height: 1.2;
}

.hero-stats span {
  font-size: 0.9rem;
  color: hsl(var(--muted));
}

/* Seções gerais */
.section { padding: 5rem 0; }
.section-muted { background: hsl(var(--secondary) / 0.5); }
.section-light { background: hsl(var(--card)); }
.section-bordered { border-top: 1px solid hsl(var(--border)); }

.mono {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: hsl(var(--accent));
  margin-bottom: 0.5rem;
  font-weight: 700;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  color: hsl(var(--foreground));
}

.section-subtitle {
  margin: 0 0 2rem;
  color: hsl(var(--muted));
  max-width: 740px;
  font-size: 1.1rem;
}

/* Cards dos Módulos */
.grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  background: hsl(var(--card));
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.15);
  border-color: hsl(var(--accent) / 0.3);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.card h3 { 
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  color: hsl(var(--foreground));
}

.card p { 
  margin: 0;
  color: hsl(var(--muted));
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Cards de Prêmios */
.awards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.award-card {
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.8rem 1.2rem;
  background: hsl(var(--card));
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
}

.award-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.15);
}

.award-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.award-card h3 {
  font-size: 1.1rem;
  margin: 0 0 0.75rem;
  color: hsl(var(--foreground));
}

.award-card p {
  font-size: 0.9rem;
  color: hsl(var(--muted));
  margin: 0 0 1rem;
  line-height: 1.5;
}

.award-year {
  display: inline-block;
  padding: 0.25rem 1rem;
  background: hsl(var(--accent) / 0.1);
  color: hsl(var(--accent));
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Grid de Estatísticas */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.stat-item {
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  background: hsl(var(--card));
  text-align: center;
  transition: all 0.3s ease;
}

.stat-item.large {
  grid-column: span 2;
  background: var(--gradient);
  color: white;
  border: none;
}

.stat-item.large strong,
.stat-item.large span {
  color: white;
}

.stat-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.1);
}

.stat-item strong {
  display: block;
  font-size: 2rem;
  color: hsl(var(--foreground));
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.stat-item span {
  color: hsl(var(--muted));
  font-size: 0.9rem;
}

/* Certificações */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.cert-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.cert-item:hover {
  border-color: hsl(var(--accent) / 0.3);
  box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.1);
}

.cert-icon {
  width: 40px;
  height: 40px;
  background: hsl(var(--accent) / 0.1);
  color: hsl(var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
}

.cert-item strong {
  display: block;
  font-size: 1rem;
  color: hsl(var(--foreground));
  margin-bottom: 0.2rem;
}

.cert-item span {
  font-size: 0.85rem;
  color: hsl(var(--muted));
}

/* Cases de Sucesso */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.case-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.15);
}

.case-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.case-content {
  padding: 1.5rem;
}

.case-content h3 {
  font-size: 1.1rem;
  margin: 0 0 0.75rem;
  color: hsl(var(--foreground));
  line-height: 1.4;
}

.case-content p {
  font-size: 0.9rem;
  color: hsl(var(--muted));
  margin: 0 0 1rem;
  line-height: 1.6;
}

.case-results {
  display: flex;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid hsl(var(--border));
}

.case-results span {
  font-size: 0.85rem;
  color: hsl(var(--foreground));
  background: hsl(var(--secondary) / 0.5);
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
}

/* Contato */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-info {
  padding-right: 2rem;
}

.contact-details {
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid hsl(var(--border));
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-icon {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  background: hsl(var(--accent) / 0.1);
  color: hsl(var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item strong {
  display: block;
  font-size: 0.9rem;
  color: hsl(var(--muted));
  margin-bottom: 0.25rem;
}

.contact-item p {
  margin: 0;
  color: hsl(var(--foreground));
  font-weight: 500;
}

.contact-form {
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--card));
  padding: 2rem;
  box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.05);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  font: inherit;
  color: hsl(var(--foreground));
  background: hsl(var(--card));
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: hsl(var(--accent));
  box-shadow: 0 0 0 3px hsl(var(--accent) / 0.1);
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.form-checkbox input {
  width: auto;
  margin: 0;
}

.form-checkbox label {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 400;
  color: hsl(var(--muted));
}

.error {
  color: hsl(0 72% 45%);
  font-size: 0.75rem;
  min-height: 1.2rem;
  display: inline-block;
  margin-top: 0.25rem;
}

.success {
  margin-top: 1rem;
  color: hsl(var(--success));
  font-weight: 600;
  font-size: 0.95rem;
  background: hsl(var(--success) / 0.1);
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--success) / 0.2);
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  background: hsl(var(--primary));
  color: hsl(210 40% 98%);
  padding: 4rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-brand img {
  height: 160px;
  width: auto;
  margin-bottom: 1rem;
  background: white;
  padding: 5px 10px;
  border-radius: var(--radius);
}

.footer-brand p {
  color: hsl(210 40% 98% / 0.8);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-links a {
  width: 36px;
  height: 36px;
  background: hsl(210 40% 98% / 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.social-links a:hover {
  background: hsl(var(--accent));
  transform: translateY(-2px);
}

.site-footer h3 {
  font-size: 0.9rem;
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: hsl(210 40% 98%);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.6rem;
}

.site-footer a,
.site-footer li {
  color: hsl(210 40% 98% / 0.7);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: hsl(210 40% 98%);
}

.footer-bottom {
  border-top: 1px solid hsl(210 40% 98% / 0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: hsl(210 40% 98% / 0.6);
  font-size: 0.85rem;
}

/* Media Queries */
@media (max-width: 980px) {
  .cards,
  .awards,
  .cases-grid,
  .cert-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-wrap,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-grid {
    gap: 2.5rem;
  }
  
  .brand img {
    height: 160px;
    transform: translateY(-15px);
  }
  
  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .site-header {
    height: 60px;
  }
  
  .nav-wrap {
    height: 60px;
  }
  
  .brand {
    height: 60px;
  }
  
  .menu-toggle { 
    display: block;
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
  }

  .main-nav {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: hsl(var(--card));
    border-bottom: 2px solid hsl(var(--border));
    padding: 1.5rem 4vw;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }

  .main-nav.open { display: flex; }
  
  .main-nav a {
    padding: 0.8rem 0;
    border-bottom: 1px solid hsl(var(--border) / 0.5);
    font-size: 1rem;
  }
  
  .main-nav a:last-child {
    border-bottom: none;
  }
  
  .btn-primary {
    margin-top: 0.5rem;
    text-align: center;
  }

  .hero { padding-top: 4rem; }

  .cards,
  .awards,
  .cases-grid,
  .cert-grid,
  .stats-grid,
  .field-row {
    grid-template-columns: 1fr;
  }
  
  .stat-item.large {
    grid-column: auto;
  }
  
  .brand img {
    height: 140px;
    transform: translateY(-2px) !important;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }
  
  .contact-wrap {
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .site-header {
    height: 50px;
  }
  
  .nav-wrap {
    height: 50px;
  }
  
  .brand {
    height: 50px;
  }
  
  .brand img {
    height: 120px;
    transform: translateY(-10px);
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  .hero-stats {
    grid-template-columns: 1fr;
  }
  
  .hero-stats article {
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .hero-stats strong {
    font-size: 1.5rem;
  }
}

/* Utilitários */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }