/* ===== VARIÁVEIS E RESET ===== */
:root {
  --primary: #1a4d8c;
  --primary-light: #2a6db8;
  --primary-dark: #0f2d52;
  --accent: #2196F3;
  --accent-light: #42a5f5;
  --success: #26a69a;
  --warning: #d67722;
  --error: #d32f2f;
  
  --text-primary: #1a1a1a;
  --text-secondary: #555;
  --text-muted: #999;
  
  --bg-primary: #ffffff;
  --bg-secondary: #f5f7fa;
  --bg-tertiary: #eff2f5;
  
  --border: #e0e0e0;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  
  --transition-fast: 200ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
}

/* Reset e Box-sizing */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

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

/* ===== TIPOGRAFIA ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--text-primary);
}

h1 { font-size: 48px; }
h2 { font-size: 36px; }
h3 { font-size: 28px; }
h4 { font-size: 22px; }
h5 { font-size: 18px; }
h6 { font-size: 14px; font-weight: 700; }

p {
  margin-bottom: 12px;
  color: var(--text-secondary);
}

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

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

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  margin-bottom: 12px;
  color: var(--primary);
}

.section-header p {
  font-size: 18px;
  color: var(--text-secondary);
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 3px solid var(--primary);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.header-wrapper {
  width: 100%;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
  letter-spacing: -1px;
}

.brand-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0;
  font-weight: 500;
}

.top-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.top-nav a {
  color: var(--primary);
  font-size: 15px;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

.top-nav a:hover {
  color: var(--primary-dark);
}

.top-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition-fast);
}

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

.nav-cta {
  background: var(--primary);
  color: white;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.nav-cta:hover {
  background: var(--primary-dark);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 80px 0;
  background: #ffffff;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background: radial-gradient(circle at right, rgba(33, 150, 243, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-text {
  animation: slideInLeft 600ms ease-out;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--primary);
}

.hero-desc {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.7;
}

.hero-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 32px 0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

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

.feature-icon {
  width: 24px;
  height: 24px;
  color: var(--primary);
  flex-shrink: 0;
}

.feature-item span {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.hero-visual {
  animation: slideInRight 600ms ease-out;
}

.hero-image-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 400px;
  background: #f5f7fa;
  border: 3px solid var(--primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== PRODUTOS ===== */
.section-produtos {
  background: var(--bg-primary);
}

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

.product-card {
  background: var(--bg-primary);
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}

.product-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 32px;
}

.product-icon svg {
  width: 36px;
  height: 36px;
}

.product-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--primary);
}

.product-card p {
  flex-grow: 1;
  margin-bottom: 20px;
  color: var(--text-secondary);
  font-size: 15px;
}

/* ===== SERVIÇOS ===== */
.section-services {
  background: #ffffff;
}

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

.service-card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.service-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  color: var(--primary);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ===== DIFERENCIAIS ===== */
.section-diferencial {
  background: #ffffff;
}

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

.diferencial-item {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  position: relative;
  padding-left: 80px;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.diferencial-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.diferencial-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 64px;
  height: 64px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

.diferencial-item h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--primary);
}

.diferencial-item p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ===== FORMULÁRIO ===== */
.section-contato {
  background: var(--bg-primary);
}

.form-wrapper {
  max-width: 700px;
  margin: 0 auto;
}

.form-orcamento {
  background: #ffffff;
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  transition: all var(--transition-fast);
  background: var(--bg-primary);
  color: var(--text-primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 77, 140, 0.1);
}

.form-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
}

/* ===== MODAL ===== */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal[aria-hidden="false"] {
  display: flex;
  animation: fadeIn 200ms ease-out;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  z-index: 1001;
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: slideUp 300ms ease-out;
}

.modal-close {
  position: absolute;
  right: 20px;
  top: 16px;
  background: transparent;
  border: none;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  z-index: 1;
}

.modal-close:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.modal-close svg {
  width: 24px;
  height: 24px;
}

.modal-header {
  padding: 32px 32px 20px;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  font-size: 24px;
  margin-bottom: 8px;
  color: var(--primary);
}

.modal-header p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

.form-modal {
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ===== BOTÕES ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
  font-family: inherit;
}

.btn:active {
  transform: scale(0.98);
}

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

.btn-primary:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background: rgba(26, 77, 140, 0.05);
  border-color: var(--primary-light);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
}

.btn-ghost:hover {
  background: rgba(26, 77, 140, 0.08);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* ===== BOTÃO FLUTUANTE WHATSAPP ===== */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
  z-index: 99;
  animation: slideUp 400ms ease-out 200ms both;
}

.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: var(--shadow-xl);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #ffffff;
  color: var(--text-primary);
  border-top: 3px solid var(--primary);
  padding: 48px 0 20px;
  margin-top: 60px;
}

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

.footer-section h4 {
  color: var(--primary);
  margin-bottom: 16px;
  font-size: 16px;
}

.footer-section p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 12px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f7fa;
  border: 2px solid var(--primary);
  border-radius: 50%;
  transition: all var(--transition-fast);
  color: var(--primary);
}

.social-link:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

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

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--primary);
  font-size: 14px;
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
}

/* ===== ANIMAÇÕES ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

/* ===== RESPONSIVO ===== */
@media (max-width: 768px) {
  :root {
    font-size: 14px;
  }

  .top-nav {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-visual {
    order: -1;
  }

  .hero-image-container {
    height: 300px;
  }

  .hero-features {
    grid-template-columns: 1fr;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .btn-lg {
    width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

  .section {
    padding: 40px 0;
  }

  .modal-content {
    margin: 0;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    max-height: 100vh;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  h3 { font-size: 20px; }

  .hero-title {
    font-size: 28px;
  }

  .container {
    padding: 0 16px;
  }

  .section {
    padding: 32px 0;
  }

  .section-header {
    margin-bottom: 32px;
  }

  .header-content {
    flex-direction: column;
    gap: 12px;
  }

  .top-nav {
    width: 100%;
    justify-content: center;
  }

  .product-card {
    padding: 24px 16px;
  }

  .form-orcamento {
    padding: 20px;
  }

  .diferencial-item {
    padding-left: 24px;
    min-height: auto;
  }

  .diferencial-number {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

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

  .whatsapp-float {
    width: 50px;
    height: 50px;
  }
}

/* ===== ACESSIBILIDADE ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
