/* Variaveis e Reset */
:root {
  /* Cores Principais - Baseado no modelo */
  --primary-blue: #3366CC;
  /* Azul principal do modelo */
  --primary-dark: #1e40af;
  /* Azul escuro para hover/detalhes */
  --accent-green: #22c55e;
  /* Verde do modelo */
  --text-dark: #333333;
  --text-light: #666666;
  --white: #ffffff;
  --gray-bg: #f9fafb;
  /* bg-gray-50 equivalent */
  --dark-bg: #1f2937;
  /* Footer bg */

  /* Gradientes */
  --gradient-primary: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
  --gradient-green: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);

  /* Fontes */
  --font-main: 'Poppins', sans-serif;

  /* Espaçamentos */
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 32px;
  --spacing-xl: 64px;

  /* Sombras */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  /* Tailwind shadow-lg */

  /* Transições */
  --transition-fast: 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html {
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--gray-bg);
  overflow-x: hidden;
  padding-top: 80px;
  /* Space for fixed header */
  width: 100%;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}

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

ul {
  list-style: none;
}

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

/* Utilitários */
.container {
  width: 100%;
  max-width: 1280px;
  /* max-w-7xl */
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Mobile: padding balanceado para cards */
@media (max-width: 768px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .modalities-grid {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  
  .modality-card {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
  }
}

.section {
  padding: var(--spacing-xl) 0;
}

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

.text-white {
  color: var(--white);
}

.font-bold {
  font-weight: 700;
}

.font-extrabold {
  font-weight: 800;
}

.font-semibold {
  font-weight: 600;
}

.font-medium {
  font-weight: 500;
}

.mb-4 {
  margin-bottom: 1rem;
}

/* Header */
header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 50;
  background-color: var(--white);
  box-shadow: var(--shadow-lg);
  height: 80px;
  display: flex;
  align-items: center;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  color: #374151;
  /* text-gray-700 */
  font-weight: 500;
  font-size: 1rem;
}

.nav-link:hover {
  color: #2563eb;
  /* text-blue-600 */
}

/* Menu Mobile */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #374151;
  padding: 8px;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.mobile-menu-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.mobile-menu-btn:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  background: var(--white);
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  z-index: 49;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.mobile-menu.active {
  display: block;
  max-height: 500px;
  opacity: 1;
}

.mobile-menu-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-menu-link {
  display: block;
  padding: 0.875rem 1rem;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-menu-link:hover {
  background-color: #f3f4f6;
  color: #2563eb;
}

.mobile-menu-link.mobile-menu-cta {
  background-color: #3b82f6;
  color: white;
  font-weight: 600;
  text-align: center;
  margin-top: 0.5rem;
}

.mobile-menu-link.mobile-menu-cta:hover {
  background-color: #2563eb;
  color: white;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 600px;
  background-image: url('../assets/predio-office.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(51, 102, 204, 0.75) 0%, rgba(30, 64, 175, 0.8) 100%);
  /* Overlay azul sobre a imagem - balanceado para mostrar prédio e manter legibilidade */
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* Modalities, Benefits, Testimonials, FAQ styles (kept similar but refined) */
.modalities-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

/* Desktop: 2 colunas */
@media (min-width: 768px) {
  .modalities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.modality-card {
  background: var(--white);
  border-radius: 20px;
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition-fast);
  text-align: center;
  border: 1px solid #e5e7eb;
  position: relative;
  overflow: hidden;
}

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

/* Cards com gradiente (Por que Revender) */
.modality-card[style*="gradient"] {
  border: none;
}

.modality-card[style*="gradient"]:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modality-card.premium {
  border: 2px solid #22c55e;
  /* green-500 como no modelo */
  transform: scale(1.05);
}

/* Depoimentos Grid - Desktop: 2 colunas lado a lado, Mobile: 1 coluna */
.depoimentos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 768px) {
  .depoimentos-grid {
    grid-template-columns: repeat(2, 1fr);
    display: grid;
  }
}
}

.benefit-item {
  display: flex;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
}

.benefit-icon {
  width: 50px;
  height: 50px;
  background: #22c55e;
  /* green-500 como no modelo */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

/* Footer (Detailed) */
footer {
  background-color: #3b82f6;
  /* Blue-600 como no modelo */
  color: rgba(255, 255, 255, 0.95);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.footer-section h4 {
  color: #22c55e;
  /* green-500 como no modelo */
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.footer-section h5 {
  color: var(--white);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.footer-section p,
.footer-section a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.footer-section a:hover {
  color: #93c5fd;
  /* blue-300 */
}

/* Components */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.btn-primary {
  background-color: #3b82f6;
  /* blue-500 como no modelo */
  color: white;
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.5);
}

.btn-primary:hover {
  background-color: #2563eb;
  /* blue-600 */
  transform: translateY(-2px);
}

/* Helpers */
.hidden {
  display: none;
}

.faq-answer.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.block {
  display: block;
}

.visible {
  display: block;
}

/* Form Response Styles (como no modelo) */
.form-response {
  margin-top: 20px;
  padding: 14px;
  border-radius: 10px;
  font-weight: 600;
  text-align: center;
  display: none;
}

.form-response.success {
  background-color: rgba(34, 197, 94, 0.15);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.4);
  display: block;
}

.form-response.error {
  background-color: rgba(248, 113, 113, 0.15);
  color: #dc2626;
  border: 1px solid rgba(248, 113, 113, 0.4);
  display: block;
}

/* Gradient Text (como no modelo) */
.gradient-text {
  color: #3366CC;
}

/* Alternative Options (como no modelo) */
.alternative-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.alternative-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  border: none;
  color: white;
}

.alternative-btn i {
  margin-right: 8px;
  font-size: 18px;
}

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

.alternative-btn:active {
  transform: translateY(0);
}

.alternative-btn.email {
  background-color: #3b82f6;
}

.alternative-btn.email:hover {
  background-color: #2563eb;
}

.alternative-btn.whatsapp {
  background-color: #22c55e;
}

.alternative-btn.whatsapp:hover {
  background-color: #16a34a;
}

.error-message {
  margin-bottom: 12px;
  margin-top: 8px;
  font-weight: 500;
  color: #dc2626;
  font-size: 0.875rem;
}

.error-message.hidden {
  display: none;
}

.debug-info {
  margin-top: 16px;
  padding: 12px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 12px;
  color: #475569;
  font-family: "Fira Code", monospace;
  max-height: 200px;
  overflow: auto;
  display: none;
}

.debug-info pre {
  white-space: pre-wrap;
  word-break: break-word;
}

.cors-warning {
  display: none;
}

@media (min-width: 768px) {
  .alternative-options {
    flex-direction: row;
  }

  .alternative-btn {
    flex: 1;
  }
}

/* Responsive */
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {

  header .nav-links,
  header .cta-button {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }
  
  .mobile-menu-btn i {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
  }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .hero h1 {
    font-size: 2rem !important;
  }
  
  .form-box-hero {
    margin-top: 2rem;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 3rem !important;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 3.5rem !important;
  }
}

/* CTA Green Section */
.cta-green-section {
  background-color: #22c55e;
  /* green-500 como no modelo */
  padding: 40px 0;
  color: white;
}

.cta-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0;
  color: white;
}

.btn-blue-bright {
  background-color: #3b82f6;
  /* blue-500 como no modelo */
  color: white;
  font-weight: 700;
  padding: 15px 35px;
  border-radius: 50px;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background-color 0.3s ease, transform 0.2s;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
}

.btn-blue-bright:hover {
  background-color: #2563eb;
  /* blue-600 */
  transform: translateY(-2px);
  color: white;
  box-shadow: 0 6px 8px rgba(37, 99, 235, 0.4);
}

@media (max-width: 768px) {
  .cta-content {
    justify-content: center;
    text-align: center;
  }

  .cta-green-section {
    padding: 30px 0;
  }
}

/* Botão Flutuante WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
  text-decoration: none;
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
  background: linear-gradient(135deg, #128c7e 0%, #25d366 100%);
}

.whatsapp-float i {
  position: relative;
  z-index: 2;
}

.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  background: #1e40af;
  color: white;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  border: 8px solid transparent;
  border-left-color: #1e40af;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
}

@keyframes pulse {
  0% {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4), 0 0 0 10px rgba(37, 211, 102, 0.1);
  }
  100% {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  }
}

/* Mobile: ajustar posição do botão */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    font-size: 24px;
  }

  .whatsapp-tooltip {
    right: 65px;
    font-size: 0.85rem;
    padding: 8px 12px;
  }
}

/* Botão Voltar ao Topo */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #1e40af 0%, #3366CC 100%);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
  z-index: 999;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(30, 64, 175, 0.5);
  background: linear-gradient(135deg, #3366CC 0%, #1e40af 100%);
}

.back-to-top:active {
  transform: translateY(-2px);
}

/* Mobile: ajustar posição do botão voltar ao topo */
@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    left: 20px;
    width: 46px;
    height: 46px;
    font-size: 18px;
  }
}