@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Colors - Premium SaaS Theme */
  --primary: #5e088a;
  --primary-light: #7b0ab0;
  --secondary: #efdcf7;
  --secondary-hover: #e0bbf0;
  --bg-dark: #3e045c;
  --bg-color: #f7f5fb;
  --text-dark: #2D3748;
  --text-light: #E2E8F0;
  --text-muted: #718096;
  --white: #FFFFFF;
  --border-color: #E2E8F0;
  
  /* Typography */
  --font-main: 'Inter', sans-serif;
  
  /* Spacing & Layout */
  --max-width: 1200px;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  
  /* Utilities */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary);
  margin-bottom: var(--spacing-sm);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
p { margin-bottom: 0.5rem; }

/* Container & Grid */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--spacing-md); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--spacing-md); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: var(--transition);
}

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

.btn-primary:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

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

/* Header & Nav */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.header.scrolled {
  background: #ffffff;
  padding: 0.5rem 0;
  box-shadow: var(--shadow-md);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
}

.nav-cta {
  margin-left: 2rem;
  background-color: #FF8C00;
  color: #fff !important;
  font-weight: 700;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  border: none;
}
.nav-cta:hover {
  background-color: #e67e00;
  color: #fff !important;
  transform: translateY(-2px);
}
@media (max-width: 768px) {
  .nav-cta {
    margin-left: 0;
    width: auto !important;
    max-width: 220px;
    text-align: center;
    margin-top: 6px !important;
    padding: 0.45rem 1.2rem !important;
    font-size: 0.88rem !important;
    border-radius: 50px !important;
  }
}

.nav-links a, .dropdown > span {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  padding-bottom: 5px;
}

.nav-links a::after, .dropdown > span::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #27bcf2;
  transition: var(--transition);
}

.nav-links a:hover, .dropdown:hover > span {
  color: #27bcf2 !important;
}

.nav-links a:hover::after {
  width: 100%;
  background-color: #27bcf2;
}

.nav-links a:active, .dropdown > span:active, .nav-links a.active, .dropdown > span.active-state {
  color: #27bcf2 !important;
}

.nav-links a:active::after, .dropdown > span:active::after, .nav-links a.active::after, .dropdown > span.active-state::after {
  width: 100%;
  background-color: #27bcf2;
}

.nav-links a.nav-cta {
  padding: 0.5rem 1.5rem !important;
  border: 2px solid #27bcf2;
  border-radius: 50px;
  background-color: transparent !important;
  color: #27bcf2 !important;
  transition: all 0.3s;
}

.nav-links a.nav-cta::after {
  display: none !important;
}

.nav-links a.nav-cta:hover {
  background-color: transparent !important;
  color: #27bcf2 !important;
  border-color: #27bcf2 !important;
  box-shadow: none !important;
}

/* Dropdown CSS */
.dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  min-width: 200px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-sm);
  flex-direction: column;
  padding: 0.5rem 0;
  z-index: 1000;
}
.dropdown-content.show {
  display: flex !important;
}
.dropdown-content a {
  padding: 10px 20px;
  color: #4e1ea1;
  width: 100%;
  display: block;
  font-weight: 500;
}
.dropdown-content a:hover {
  background-color: rgba(0,0,0,0.05);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1001; /* Keep above mobile menu */
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  position: absolute;
  transition: var(--transition);
}

.mobile-menu-btn span:nth-child(1) { top: 0; }
.mobile-menu-btn span:nth-child(2) { top: 11px; }
.mobile-menu-btn span:nth-child(3) { top: 22px; }

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 11px;
}
.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 11px;
}


/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  overflow: hidden;
}

.hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.hero-video-wrapper iframe {
  width: 100vw;
  height: 56.25vw; /* 16:9 Aspect Ratio */
  min-height: 100vh;
  min-width: 177.77vh; /* 16:9 Aspect Ratio */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(10, 25, 47, 0.55), rgba(10, 25, 47, 0.75));
  z-index: -1;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  padding: 0 var(--spacing-sm);
  z-index: 1;
}

.hero-content h1 {
  color: var(--white);
  margin-bottom: var(--spacing-sm);
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: var(--spacing-md);
}

.hero-cta {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
}

/* Sections Global */
.section {
  padding: var(--spacing-xl) 0;
}

.section-dark {
  background-color: var(--primary);
  color: var(--white);
}

.section-dark h1, .section-dark h2, .section-dark h3 {
  color: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background-color: rgba(0, 229, 255, 0.1);
  color: var(--secondary);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

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

.card-icon {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: var(--spacing-sm);
}

.card-title {
  margin-bottom: var(--spacing-xs);
}

.card-text {
  color: var(--text-muted);
  flex-grow: 1;
}

.section-dark .card {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.25);
  color: #fff;
}
.section-dark .card-title {
  color: #fff;
}
.section-dark .card-text {
  color: rgba(255,255,255,0.85);
}

/* FAQ Accordion */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
  padding: var(--spacing-sm) 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--primary);
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--secondary-hover);
}

.faq-icon {
  transition: transform 0.3s ease;
  font-size: 1.5rem;
  color: var(--secondary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  color: var(--text-muted);
}

.faq-answer p {
  padding-top: var(--spacing-sm);
  margin-bottom: 0;
}

.faq-item.active .faq-answer {
  max-height: 300px; /* Adjust based on content */
}

.faq-item.active .faq-question .faq-icon {
  transform: rotate(45deg);
}

/* Footer */
.footer {
  background-color: var(--primary);
  color: var(--white);
  padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--spacing-md);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.footer h4 {
  color: var(--white);
  margin-bottom: var(--spacing-sm);
}

.footer-links li {
  margin-bottom: 0.2rem;
}

.footer-links a {
  color: var(--white);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--white);
}

/* Contact Details */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--secondary);
}

.form-group {
  margin-bottom: var(--spacing-sm);
}

.form-control {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.2);
}

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


/* Media Queries for Mobile Responsiveness */
@media (max-width: 992px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--spacing-md); }
  .contact-grid { grid-template-columns: 1fr; }
  
  .header {
    background-color: #ffffff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  }

  .mobile-menu-btn {
    display: block;
  }
  .mobile-menu-btn span {
    background: var(--primary) !important;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: var(--primary); /* Escurecendo o fundo para contraste */
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 5rem;
    transition: right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
  }

  .nav-links.active {
    right: 0;
    box-shadow: -10px 0 20px rgba(0,0,0,0.5);
  }

  .nav-links a, .dropdown > span {
    color: var(--white) !important;
    font-size: 1.05rem;
    margin: 4px 0;
    text-align: center;
    width: 100%;
    display: block;
    padding: 6px 0;
  }

  .nav-links a::after, .dropdown > span::after {
    display: none; /* remove trace line indicator on mobile to look cleaner */
  }

  .dropdown {
    width: 100%;
    flex-direction: column;
  }

  .dropdown-content {
    position: static;
    box-shadow: none;
    background-color: transparent !important;
    width: 100%;
    padding: 0;
    margin-top: 5px;
  }
  
  .dropdown-content.show {
    display: flex !important;
    flex-direction: column !important;
  }

  .dropdown-content a {
    color: rgba(255, 255, 255, 0.7) !important;
    padding: 8px 0;
    font-size: 1.05rem;
    margin: 5px 0;
    font-weight: 500;
    text-align: center;
  }

  .hero-content h1 { font-size: 2rem; }
  .hero-cta { flex-direction: column; }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-sm);
  }
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
  color: #FFF;
  border-radius: 50px;
  box-shadow: var(--shadow-lg);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.whatsapp-float:hover {
  background-color: #128C7E;
  color: #FFF;
  transform: translateY(-5px);
  box-shadow: 0 15px 20px rgba(37, 211, 102, 0.3);
}
.whatsapp-float svg {
  width: 35px;
  height: 35px;
}
@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }
  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--primary);
  color: var(--white);
  padding: 1rem 2rem;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  z-index: 10001; /* Above mobile wpp */
  display: flex;
  justify-content: space-between;
  align-items: center;
  transform: translateY(100%);
  transition: transform 0.5s ease-in-out;
}
.cookie-banner.show {
  transform: translateY(0);
}
.cookie-text {
  font-size: 0.9rem;
  margin-right: 1rem;
}
.cookie-text a {
  color: var(--secondary);
  text-decoration: underline;
}
.cookie-btn {
  background-color: var(--secondary);
  color: var(--primary);
  border: none;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1rem;
  }
}

/* ===== Footer consultoria neon button ===== */
@keyframes footerNeonPulse {
  0%, 100% { box-shadow: 0 0 8px #FF8C00, 0 0 20px rgba(255,140,0,0.4); }
  50%       { box-shadow: 0 0 18px #FF8C00, 0 0 40px rgba(255,140,0,0.75), 0 0 60px rgba(255,140,0,0.25); }
}
.footer-consult-btn {
  display: inline-block;
  margin-top: 1.25rem;
  background: linear-gradient(135deg, #FF8C00, #e07000);
  color: #fff !important;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  padding: 0.65rem 1.6rem;
  border-radius: 50px;
  text-decoration: none !important;
  animation: footerNeonPulse 2.2s ease-in-out infinite;
  transition: transform 0.18s, filter 0.18s;
}
.footer-consult-btn:hover { transform: scale(1.05); filter: brightness(1.12); }
