/* --- Variáveis Globais --- */
:root {
  --primary: #0052cc;
  --primary-dark: #003e99;
  --primary-light: #e6f0ff;
  --secondary: #091e42;
  --bg-light: #f8f9fa;
  --surface: #ffffff;
  --text-dark: #172b4d;
  --text-muted: #5e6c84;
  --border-color: #ebecf0;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(9, 30, 66, 0.08);
  --shadow-hover: 0 20px 40px rgba(0, 82, 204, 0.15);
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --whatsapp: #25d366;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background-color: var(--surface);
  line-height: 1.6;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 80px 0;
}

.bg-light {
  background-color: var(--bg-light);
}

.badge {
  display: inline-block;
  background: rgba(0, 82, 204, 0.1);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-subtitle {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 8px;
}

/* --- Botões --- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(0, 82, 204, 0.3);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn-outline:hover {
  background: #fff;
  color: var(--secondary);
}

/* --- Navbar --- */
.navbar {
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  z-index: 1000;
  padding: 16px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  max-height: 42px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: var(--transition);
}

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

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--text-dark);
  border-radius: 2px;
}

/* --- Banner Slider --- */
.slider-container {
  position: relative;
  background-color: var(--secondary);
  color: #fff;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.slider {
  width: 100%;
}

.slide {
  display: none;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  padding: 60px 0;
}

.slide.active {
  display: block;
  opacity: 1;
}

.slide-content {
  max-width: 800px;
}

.slide-content h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.slide-content p {
  font-size: 1.2rem;
  color: #b3bac5;
  margin-bottom: 32px;
}

.slide-actions {
  display: flex;
  gap: 16px;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  font-size: 1.5rem;
  padding: 12px 16px;
  cursor: pointer;
  border-radius: 50%;
  transition: var(--transition);
}

.slider-btn:hover {
  background: var(--primary);
}

.slider-btn.prev { left: 20px; }
.slider-btn.next { right: 20px; }

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: var(--primary);
  width: 28px;
  border-radius: 6px;
}

/* --- Quem Somos --- */
.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-mark {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.05));
}

.about-text h2 {
  font-size: 2.2rem;
  line-height: 1.25;
  margin-bottom: 16px;
  color: var(--secondary);
}

.lead {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.highlight-item h4 {
  color: var(--secondary);
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.highlight-item p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* --- Serviços (Cartões Chamativos Otimizados) --- */
.section-header.center {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px auto;
}

.section-header h2 {
  font-size: 2.2rem;
  color: var(--secondary);
  margin-bottom: 12px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.grid {
  display: grid;
  gap: 28px;
}

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

/* Estilo do Cartão Principal */
.card.service-card {
  position: relative;
  background: var(--surface);
  padding: 40px 30px 32px 30px;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

/* Linha superior decorativa no hover */
.card.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), #4c9aff);
  opacity: 0;
  transition: var(--transition);
}

/* Etiqueta de aviso interativo */
.card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 10px;
  border-radius: 20px;
  opacity: 0.8;
  transition: var(--transition);
}

/* Ícone com círculo de destaque */
.card-icon-wrapper {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary-light), #f0f5ff);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: var(--transition);
}

.card-icon {
  font-size: 2rem;
  transition: var(--transition);
}

.card h3 {
  font-size: 1.35rem;
  color: var(--secondary);
  margin-bottom: 12px;
  font-weight: 700;
}

.card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Botão de Ação nos Cartões */
.card-footer-action {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #f4f5f7;
}

.card-link {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.card-link .arrow {
  transition: var(--transition);
}

/* Efeito Chamativo ao Passar o Rato (Hover) */
.card.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0, 82, 204, 0.3);
}

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

.card.service-card:hover .card-icon-wrapper {
  background: var(--primary);
  transform: scale(1.08) rotate(-4deg);
}

.card.service-card:hover .card-icon {
  filter: brightness(0) invert(1);
}

.card.service-card:hover .card-badge {
  background: var(--primary);
  color: #fff;
  opacity: 1;
}

.card.service-card:hover .card-link {
  color: var(--primary-dark);
}

.card.service-card:hover .card-link .arrow {
  transform: translateX(6px);
}

/* --- Modal --- */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(9, 30, 66, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--surface);
  border-radius: var(--radius);
  max-width: 600px;
  width: 100%;
  padding: 40px;
  position: relative;
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
  animation: fadeIn 0.3s ease-out;
}

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

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-body h3 {
  font-size: 1.8rem;
  color: var(--secondary);
  margin-bottom: 16px;
}

.modal-body p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.modal-body ul {
  margin-bottom: 24px;
  padding-left: 20px;
  color: var(--text-dark);
}

.modal-body li {
  margin-bottom: 8px;
}

/* --- Contacto --- */
.contact-box {
  background: var(--secondary);
  color: #fff;
  border-radius: var(--radius);
  padding: 60px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: flex-start;
}

.contact-text h2 {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.contact-text p {
  color: #b3bac5;
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  transition: var(--transition);
}

.contact-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.contact-card .card-icon {
  font-size: 1.4rem;
  background: rgba(0, 82, 204, 0.2);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  margin-bottom: 0;
}

.contact-card .card-info {
  display: flex;
  flex-direction: column;
}

.info-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #8993a4;
  margin-bottom: 2px;
}

.info-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
}

.info-value[href]:hover {
  color: #4c9aff;
  text-decoration: underline;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #8993a4;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.1);
}

/* --- Rodapé --- */
.footer {
  background-color: #030c1d;
  color: #b3bac5;
  padding-top: 60px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-logo {
  max-height: 36px;
  margin-bottom: 16px;
}

.footer-brand p {
  max-width: 320px;
  font-size: 0.9rem;
}

.footer-links h4 {
  color: #fff;
  margin-bottom: 16px;
  font-size: 1rem;
}

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

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

.footer-links a {
  color: #b3bac5;
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
}

/* --- Widgets Flutuantes --- */
.floating-widgets {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 1500;
}

.chatbot-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 82, 204, 0.4);
  transition: var(--transition);
}

.chatbot-toggle:hover {
  transform: scale(1.1);
  background: var(--primary-dark);
}

.whatsapp-btn {
  width: 56px;
  height: 56px;
  background-color: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  text-decoration: none;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
}

.whatsapp-icon {
  width: 32px;
  height: 32px;
}

.chatbot-window {
  display: none;
  position: absolute;
  bottom: 136px;
  right: 0;
  width: 340px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  border: 1px solid var(--border-color);
  overflow: hidden;
  flex-direction: column;
}

.chatbot-window.active {
  display: flex;
}

.chatbot-header {
  background: var(--secondary);
  color: #fff;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.online-dot {
  width: 8px;
  height: 8px;
  background: #36b37e;
  border-radius: 50%;
}

.chatbot-title h4 {
  font-size: 0.95rem;
  margin: 0;
}

.chatbot-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

.chatbot-messages {
  padding: 16px;
  max-height: 250px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-light);
}

.bot-message, .user-message {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.4;
  max-width: 85%;
}

.bot-message {
  background: #ebecf0;
  color: var(--text-dark);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.user-message {
  background: var(--primary);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.chatbot-options {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--surface);
  border-top: 1px solid var(--border-color);
}

.chat-opt {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
}

.chat-opt:hover {
  background: rgba(0, 82, 204, 0.1);
}

/* --- Responsividade --- */
@media (max-width: 992px) {
  .about-container,
  .contact-box {
    grid-template-columns: 1fr;
  }

  .slide-content h1 {
    font-size: 2.2rem;
  }

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

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--surface);
    flex-direction: column;
    padding: 24px;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    display: none;
  }

  .nav-menu.active {
    display: flex;
  }

  .slider-btn {
    display: none;
  }

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

  .contact-box {
    padding: 30px;
  }

  .contact-cards-grid {
    grid-template-columns: 1fr;
  }

  .chatbot-window {
    width: 290px;
    right: -10px;
  }
}