/* Reset e Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #2563eb;
  --primary-dark: #1e40af;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f9fafb;
  --bg-white: #ffffff;
  --border-color: #e5e7eb;
  --success-color: #10b981;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
  font-size: 16px;
}

/* Header Fixo */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg-white);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 1rem 0;
}

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

.logo img {
  height: 40px;
  width: auto;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover,
nav a:focus {
  color: var(--primary-color);
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.btn-whatsapp-header {
  background: var(--success-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}

.btn-whatsapp-header:hover,
.btn-whatsapp-header:focus {
  background: #059669;
  outline: 2px solid var(--success-color);
  outline-offset: 2px;
}

/* Main Content */
main {
  margin-top: 80px;
}

section {
  padding: 4rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Hero Section */
#inicio {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
  padding: 6rem 1rem;
  margin-top: 0;
}

#inicio h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

#inicio .subheadline {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.btn {
  padding: 0.875rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

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

.btn-primary:hover,
.btn-primary:focus {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
  outline: 2px solid var(--success-color);
  outline-offset: 2px;
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: white;
  color: var(--primary-color);
  outline: 2px solid white;
  outline-offset: 2px;
}

.atendimento-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* Sobre Section */
#sobre {
  background: var(--bg-light);
}

#sobre h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

#sobre p {
  margin-bottom: 1rem;
  color: var(--text-light);
  max-width: 800px;
}

.dados-empresa {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2rem;
  margin-top: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.dados-empresa h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.dados-empresa dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1rem;
}

.dados-empresa dt {
  font-weight: 600;
  color: var(--text-dark);
}

.dados-empresa dd {
  color: var(--text-light);
  margin: 0;
}

/* Serviços Section */
#servicos h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--text-dark);
}

.servicos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.servico-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.servico-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.servico-card p {
  color: var(--text-light);
}

.cta-section {
  text-align: center;
  margin-top: 3rem;
}

/* Contato Section */
#contato {
  background: var(--bg-light);
}

#contato h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--text-dark);
}

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

.contato-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contato-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contato-item strong {
  min-width: 100px;
  color: var(--text-dark);
}

.contato-item a {
  color: var(--primary-color);
  text-decoration: none;
}

.contato-item a:hover,
.contato-item a:focus {
  text-decoration: underline;
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.contato-form {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  border-color: var(--primary-color);
}

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

.form-group input[required]::after {
  content: ' *';
  color: red;
}

/* Footer */
footer {
  background: var(--text-dark);
  color: white;
  padding: 3rem 1rem 1.5rem;
}

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

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.footer-section p,
.footer-section dl {
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
}

.footer-section dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 1rem;
}

.footer-section dt {
  font-weight: 600;
}

.footer-section dd {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus {
  color: white;
  text-decoration: underline;
  outline: 2px solid white;
  outline-offset: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Páginas Extras */
.page-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4rem 1rem 2rem;
  text-align: center;
  margin-top: 80px;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.page-content {
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.page-content h2 {
  font-size: 2rem;
  margin: 2rem 0 1rem;
  color: var(--text-dark);
}

.page-content h3 {
  font-size: 1.5rem;
  margin: 1.5rem 0 0.75rem;
  color: var(--text-dark);
}

.page-content p {
  margin-bottom: 1rem;
  color: var(--text-light);
  line-height: 1.8;
}

.page-content ul {
  margin: 1rem 0 1rem 2rem;
  color: var(--text-light);
}

.page-content li {
  margin-bottom: 0.5rem;
}

/* Responsividade Mobile-First */
@media (max-width: 768px) {
  header {
    padding: 0.75rem 0;
  }

  .header-container {
    flex-direction: column;
    gap: 1rem;
  }

  nav ul {
    gap: 1rem;
    justify-content: center;
  }

  main {
    margin-top: 120px;
  }

  #inicio h1 {
    font-size: 2rem;
  }

  #inicio .subheadline {
    font-size: 1.1rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  section {
    padding: 3rem 1rem;
  }

  #sobre h2,
  #servicos h2,
  #contato h2 {
    font-size: 2rem;
  }

  .contato-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .dados-empresa dl {
    grid-template-columns: 1fr;
  }

  .dados-empresa dt {
    margin-top: 0.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .page-header h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  nav ul {
    font-size: 0.9rem;
    gap: 0.75rem;
  }

  #inicio {
    padding: 4rem 1rem;
  }

  #inicio h1 {
    font-size: 1.75rem;
  }

  .servicos-grid {
    grid-template-columns: 1fr;
  }
}

/* Acessibilidade */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 1001;
}

.skip-link:focus {
  top: 0;
}

/* Print Styles */
@media print {
  header {
    position: static;
  }

  nav,
  .btn,
  .contato-form {
    display: none;
  }
}
