/*
 * ============================================
 * GESCONTABILIZE - LANDING PAGE
 * Contabilidade para Ecommerce e Dropshipping
 * ============================================
 * 
 * Design System: Corporate Premium Editorial
 * Stack: HTML5, CSS3 Vanilla (cPanel compatible)
 * Mobile-first responsive design
 */

/* ============================================
   1. DESIGN TOKENS (CSS Variables)
   ============================================ */

:root {
  /* COLORS */
  --color-primary: #202A5B;
  --color-secondary: #5981BE;
  --color-accent: #3FA9F5;
  --color-black: #000000;
  --color-white: #FFFFFF;
  --color-gray-light: #F5F7FA;
  --color-gray-medium: #E1E8ED;
  --color-gray-dark: #6B7280;

  /* TYPOGRAPHY */
  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Font Sizes - Editorial Scale */
  --text-xs: 0.75rem;
  /* 12px */
  --text-sm: 0.875rem;
  /* 14px */
  --text-base: 1rem;
  /* 16px */
  --text-lg: 1.125rem;
  /* 18px */
  --text-xl: 1.5rem;
  /* 24px */
  --text-2xl: 2rem;
  /* 32px */
  --text-3xl: 2.5rem;
  /* 40px */
  --text-4xl: 3rem;
  /* 48px */

  /* SPACING */
  --space-xs: 0.5rem;
  /* 8px */
  --space-sm: 1rem;
  /* 16px */
  --space-md: 1.5rem;
  /* 24px */
  --space-lg: 2rem;
  /* 32px */
  --space-xl: 3rem;
  /* 48px */
  --space-2xl: 4rem;
  /* 64px */
  --space-3xl: 5rem;
  /* 80px */

  /* LAYOUT */
  --container-max-width: 1200px;
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;

  /* SHADOWS */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);

  /* TRANSITIONS */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ============================================
   2. RESET & BASE STYLES
   ============================================ */

/* RESPONSIVIDADE ESSENCIAL - MOBILE FIRST */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  min-width: 0;
  /* Previne overflow em flex/grid */
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-black);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  /* Moderno: evita criar scroll container q quebra sticky */
  width: 100%;
  max-width: 100vw;
}

/* MÍDIA RESPONSIVA - Fundamental para evitar quebra de layout */
img,
video,
iframe,
lottie-player {
  max-width: 100%;
  height: auto;
  display: block;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  white-space: nowrap;
  /* Previne quebra de texto */
}

/* Inputs e formulários responsivos */
input,
textarea,
select {
  max-width: 100%;
  width: 100%;
}

/* ============================================
   3. TYPOGRAPHY SYSTEM
   ============================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary);
}

h1 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-md);
}

h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-md);
}

h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-sm);
}

h4 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

p {
  margin-bottom: var(--space-sm);
  color: var(--color-gray-dark);
}

.text-accent {
  color: var(--color-accent);
}

.text-small {
  font-size: 0.7em;
  font-weight: 400;
}

/* Mobile typography adjustments */
@media (max-width: 767px) {
  h1 {
    font-size: var(--text-3xl);
  }

  h2 {
    font-size: var(--text-2xl);
  }

  h3 {
    font-size: var(--text-xl);
  }
}

/* ============================================
   4. LAYOUT COMPONENTS
   ============================================ */

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  width: 100%;
  /* Garante que nunca ultrapasse a tela */
}

.section {
  padding: var(--space-3xl) 0;
}

.section-alt {
  background-color: var(--color-gray-light);
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 767px) {

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   5. BUTTON COMPONENTS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-base);
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  max-width: 100%;
  /* Previne overflow */
  width: auto;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-accent {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.btn-accent:hover {
  background-color: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-large {
  padding: var(--space-md) var(--space-xl);
  font-size: var(--text-lg);
}

/* Responsividade para botões em mobile */
@media (max-width: 767px) {
  .btn {
    width: 100%;
    max-width: 100%;
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-sm);
  }

  .btn-large {
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--text-base);
  }
}

/* ============================================
   6. CARD COMPONENTS
   ============================================ */

.card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-xl);
  transition: transform var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.card-content {
  color: var(--color-gray-dark);
}

/* ============================================
   7. HEADER
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--color-white);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: transform var(--transition-base);
  padding: 10px;
}

.header.hide {
  transform: translateY(-100%);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.logo {
  height: 50px;
  width: auto;
}

.header-cta {
  margin-left: auto;
}

@media (max-width: 767px) {
  .header-container {
    justify-content: center;
    gap: var(--space-sm);
  }

  .header-cta {
    display: none;
  }
}

/* ============================================
   8. CLIENT CAROUSEL
   ============================================ */

.client-carousel {
  overflow: hidden;
  padding: var(--space-lg) 0;
  background-color: var(--color-gray-light);
  position: relative;
}

.carousel-track {
  display: flex;
  gap: var(--space-xl);
  animation: scroll 30s linear infinite;
  width: max-content;
}

/* Carousel Item Styling */
.carousel-item {
  flex-shrink: 0;
}

.carousel-item img {
  height: 40px;
  /* User requested 40px */
  width: auto;
}

/* Fade gradient on edges of the wrapper */
.client-carousel .carousel-wrapper::before,
.client-carousel .carousel-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 150px;
  /* Increased width for smoother fade */
  z-index: 10;
  pointer-events: none;
}

.client-carousel .carousel-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #ffffff 10%, rgba(255, 255, 255, 0));
}

.client-carousel .carousel-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #ffffff 10%, rgba(255, 255, 255, 0));
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-25%);
    /* Move 1/4 (1 set out of 4) */
  }
}

/* ============================================
   9. HERO SECTION
   ============================================ */

/* ============================================
   9. HERO SCROLL ANIMATION CUSTOM
   ============================================ */

.hero-scroll-container {
  height: 100%;
  position: relative;
  overflow: hidden;
}

.hero-sticky-wrapper {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 120px;
  padding-bottom: 60px;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
  perspective: 1000px;
  overflow: hidden;
}


.hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  width: 100%;
  padding: 0 var(--space-md);
  margin-top: var(--space-lg);
  /* Add space from header */
  /* Will be animated via JS (TranslateY) */
  will-change: transform;
  /* Add smooth transition for better performance */
  transition: transform 0.1s ease-out;
}

.hero-3d-card-wrapper {
  width: 100%;
  max-width: 900px;
  /* Reduced from 1100px to prevent cutting */
  display: flex;
  justify-content: center;
  position: relative;
  margin-top: -20px;
  /* Overlap slightly with text initially */
  padding: 0 var(--space-sm);
  /* Reduced padding */
}

.hero-3d-card {
  width: 100%;
  max-width: 850px;
  /* Reduced from 1024px */
  /* Initial Styles mimicking the "start" state of Framer Motion example */
  /* rotateX(20deg) scale(0.9) roughly */
  transform: rotateX(20deg) scale(0.85) translateY(0);
  /* Reduced initial scale from 0.9 to 0.85 */
  transform-style: preserve-3d;

  /* Visual styling of the card frame */
  background-color: #222;
  border: 4px solid #6C6C6C;
  border-radius: 30px;
  padding: 10px;
  /* Mobile first padding */
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  /* Deep shadow */

  /* Will be animated via JS */
  will-change: transform;
  /* Add smooth transition for better performance - smaller value for more responsive feel */
  transition: transform 0.1s ease-out;
  /* Prevent overflow */
  max-width: 100%;
  box-sizing: border-box;
}

.hero-card-inner {
  background-color: var(--color-gray-light);
  /* bg-gray-100 */
  border-radius: 20px;
  /* rounded-2xl */
  overflow: hidden;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  /* Maintain a nice video/image ratio */
}

.hero-card-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

/* Fix Lottie Scrollbar and rendering */
lottie-player {
  display: block;
  overflow: hidden;
  outline: none;
}

/* Media Queries for Desktop Polish */
@media (min-width: 768px) {
  .hero-sticky-wrapper {
    justify-content: center;
    padding-top: 200px;
    overflow: hidden;
  }

  .hero-3d-card {
    padding: 20px;
    border-radius: 30px;
  }
}

@media (max-width: 767px) {
  .hero-scroll-container {
    height: auto;
    min-height: 100vh;
  }

  .hero-sticky-wrapper {
    position: relative;
    height: auto;
    padding-top: 140px;
    /* Increased to prevent title being hidden by header */
    padding-left: var(--space-sm);
    padding-right: var(--space-sm);
  }

  .hero-content {
    margin-top: 0;
    padding: 0 var(--space-sm);
    max-width: 100%;
  }

  .hero-3d-card {
    transform: rotateX(0deg) scale(1) translateY(0);
    border-radius: 20px;
    padding: 5px;
    max-width: 100%;
    width: 100%;
  }

  .hero-3d-card-wrapper {
    padding: 0;
    margin-top: var(--space-md);
    max-width: 100%;
  }
}

/* Hero Section Additional Elements */
.hero-subtitle {
  max-width: 700px;
  font-size: var(--text-lg);
  color: var(--color-gray-dark);
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

@media (max-width: 767px) {
  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .hero-ctas .btn {
    width: 100%;
  }
}


/* ============================================
   10. TABS SYSTEM
   ============================================ */

.tabs-container {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: var(--space-xl);
  /* Added card styling for prominence */
  background-color: var(--color-white);
  padding: var(--space-xl);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-gray-medium);
  width: 100%;
  /* Garante que não ultrapasse */
  max-width: 100%;
  box-sizing: border-box;
}

.tabs-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.tab-button {
  padding: var(--space-md);
  text-align: left;
  background-color: transparent;
  border: none;
  border-left: 3px solid transparent;
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-gray-dark);
  cursor: pointer;
  transition: all var(--transition-base);
}

.tab-button:hover {
  background-color: var(--color-gray-light);
  color: var(--color-primary);
}

.tab-button.active {
  border-left-color: var(--color-accent);
  background-color: rgba(63, 169, 245, 0.1);
  /* Light accent tint */
  color: var(--color-primary);
  font-weight: 700;
  box-shadow: inset 2px 0 0 0 var(--color-accent);
  /* Reinforced border look */
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn var(--transition-base);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 767px) {
  .tabs-container {
    grid-template-columns: 1fr;
    padding: var(--space-md);
    width: 100%;
    max-width: 100%;
  }

  .tabs-nav {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: var(--space-xs);
    -webkit-overflow-scrolling: touch;
    width: 100%;
    gap: var(--space-xs);
    /* Espaço entre as abas */
    /* Esconde a scrollbar mas mantém funcionalidade */
    scrollbar-width: thin;
    -ms-overflow-style: -ms-autohiding-scrollbar;
  }

  /* Estilos para scrollbar em webkit */
  .tabs-nav::-webkit-scrollbar {
    height: 4px;
  }

  .tabs-nav::-webkit-scrollbar-track {
    background: var(--color-gray-light);
    border-radius: 2px;
  }

  .tabs-nav::-webkit-scrollbar-thumb {
    background: var(--color-gray-dark);
    border-radius: 2px;
  }

  .tab-button {
    border-left: none;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    /* Evita quebra de linha */
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-sm);
    flex-shrink: 0;
    /* CRÍTICO: Impede que as abas sejam comprimidas */
    width: 65%;
    /* Mostra 1.5 abas por vez (affordance visual) */
    min-width: 65%;
    max-width: 65%;
    display: inline-flex;
    /* Garante que o texto não quebre */
    align-items: center;
    justify-content: center;
  }

  .tab-button.active {
    border-left-color: transparent;
    border-bottom-color: var(--color-accent);
  }
}

.hero-bullets {
  list-style: none;
  font-style: italic;
  padding: 0;
  margin: var(--space-md) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.hero-bullets li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: var(--text-base);
  color: var(--color-gray-dark);
  line-height: 1.4;
  transition: transform var(--transition-fast);
}

.hero-bullets li:hover {
  transform: translateX(5px);
  color: var(--color-primary);
}

.hero-bullets li svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

/* ============================================
   11. PRICING CARDS
   ============================================ */

.pricing-tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
}

.pricing-tab {
  padding: var(--space-sm) var(--space-xl);
  background-color: var(--color-gray-light);
  border: 2px solid #202a5b9e;
  border-radius: var(--border-radius-sm);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-gray-dark);
  transition: all var(--transition-base);
}

.pricing-tab.active {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.pricing-grid {
  display: none;
}

.pricing-grid.active {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  animation: fadeIn var(--transition-base);
  margin-top: 7rem;
  margin-bottom: 4rem;
  width: 100%;
  /* Garante que não ultrapasse */
  max-width: 100%;
}

.pricing-card {
  background-color: var(--color-white);
  border: 2px solid var(--color-gray-medium);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transition: all var(--transition-base);
  width: 100%;
  /* Garante uso total do espaço disponível */
  max-width: 100%;
  /* Previne overflow */
  box-sizing: border-box;
}

.pricing-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
  border-color: var(--color-accent);
  border-width: 2px;
  transform: scale(1.05);
  box-shadow: var(--shadow-xl);
  /* Stronger shadow */
  position: relative;
  /* For badge positioning */
  z-index: 2;
  /* Lift above others */
}

/* "Mais Escolhido" Badge */
.pricing-card.featured::before {
  content: "MAIS ESCOLHIDO";
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-accent);
  color: var(--color-white);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: var(--text-sm);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.pricing-name {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
  font-family: var(--font-display);
}

.pricing-amount .currency {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-primary);
  opacity: 0.9;
}

.pricing-amount .value {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--color-primary);
}

.pricing-amount .period {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-gray-dark);
}

.pricing-description {
  font-style: italic;
  font-size: var(--text-sm);
  color: var(--color-gray-dark);
  margin-top: var(--space-sm);
  margin-bottom: var(--space-sm);
  text-align: left;
  opacity: 0.8;
}

.pricing-features {
  text-align: left;
  margin-bottom: var(--space-lg);
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  color: var(--color-gray-dark);
}

.pricing-features li::before {
  content: '✓';
  color: var(--color-accent);
  font-weight: bold;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .pricing-tabs {
    flex-direction: column;
    gap: var(--space-xs);
    width: 100%;
  }

  .pricing-tab {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
  }

  .pricing-grid.active {
    display: block;
    width: 100%;
    margin-top: 3rem;
  }

  .pricing-card,
  .pricing-card.featured {
    position: relative;
    /* No more sticky */
    width: 100%;
    max-width: 100%;
    height: auto !important;
    margin-bottom: var(--space-xl);
    background-color: var(--color-white);
    padding: var(--space-md);
    /* Remove staggered offsets */
    top: auto !important;
    z-index: 1 !important;
    transform: none !important;
  }



  /* Featured card specifics on mobile */
  .pricing-card.featured {
    transform: scale(1);
  }

  /* Featured card specifics on mobile */
  .pricing-card.featured {
    transform: scale(1);
  }

  /* Section Spacing Reduction */
  .pricing-section {
    padding-bottom: var(--space-sm);
  }

  /* CTA Banner Centering */
  .cta-banner-wrapper {
    flex-direction: column;
    text-align: center;
    gap: var(--space-lg);
  }

  .cta-banner-text {
    min-width: auto;
  }

  /* Contact Form Mobile Fix */
  .contact-form-wrapper {
    padding: var(--space-lg) !important;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
  }

  /* Smoothly hide Sticky CTA when plans are in view to focus on the cards */
  body.viewing-plans .sticky-cta {
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
  }

  .mobile-br {
    display: block;
  }

  .pricing-amount .value {
    font-size: 3rem;
    /* Reduzir tamanho em mobile */
  }
}

/* ============================================
   11.5. PRICING STICKY NAV (Tablet & Mobile)
   ============================================ */
.pricing-sticky-nav {
  display: none !important;
}

@media (max-width: 1023px) {
  .pricing-sticky-nav {
    display: flex !important;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    width: 90%;
    max-width: 400px;
    background: white;
    padding: 10px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    justify-content: space-between;
    z-index: 9999;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    opacity: 0;
    pointer-events: none;
  }

  .pricing-sticky-nav.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .pricing-sticky-nav .nav-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    color: var(--color-gray-dark);
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    white-space: nowrap;
  }

  .pricing-sticky-nav .nav-btn.active {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
}

/* ============================================
   12. ACCORDION (FAQ)
   ============================================ */

.faq-container {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: var(--space-2xl);
  align-items: flex-start;
}

.faq-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: sticky;
  top: 120px;
  padding-bottom: 50px
}

.faq-header lottie-player {
  max-width: 100%;
}

.faq-main-title {
  font-size: 6.5rem;
  line-height: 0;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 0;
}

@media (max-width: 992px) {
  .faq-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .faq-header {
    position: static;
    gap: var(--space-md);
  }

  .faq-main-title {
    font-size: 4.5rem;
    margin-bottom: var(--space-lg);
  }
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.accordion-item {
  background-color: var(--color-white);
  border: 1px solid var(--color-gray-medium);
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

.accordion-button {
  width: 100%;
  padding: var(--space-md);
  text-align: left;
  background-color: transparent;
  border: none;
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background-color var(--transition-base);
  white-space: normal;
  /* Permite quebra de linha */
}

.accordion-button span:first-child {
  padding-right: var(--space-sm);
  /* Espaço entre texto e ícone */
}

.accordion-button:hover {
  background-color: var(--color-gray-light);
}

.accordion-icon {
  font-size: var(--text-2xl);
  transition: transform var(--transition-base);
  flex-shrink: 0;
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}

.accordion-item.active .accordion-content {
  max-height: 500px;
}

.accordion-body {
  padding: 0 var(--space-md) var(--space-md);
  color: var(--color-gray-dark);
}

@media (max-width: 768px) {
  .faq-container {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   13. FORM COMPONENTS
   ============================================ */

.form-grid {
  display: grid;
  gap: var(--space-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-label {
  font-weight: 600;
  color: var(--color-primary);
  font-size: var(--text-sm);
}

.form-input,
.form-select,
.form-textarea {
  padding: var(--space-sm);
  border: 2px solid var(--color-gray-medium);
  border-radius: var(--border-radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-base);
  transition: border-color var(--transition-base);
  width: 100%;
  /* Garante que use todo o espaço */
  max-width: 100%;
  /* Previne overflow */
  box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: #EF4444;
}

.form-error {
  color: #EF4444;
  font-size: var(--text-sm);
  display: none;
}

.form-error.show {
  display: block;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* ============================================
   14. STICKY CTA BOTTOM
   ============================================ */

.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color-primary);
  padding: var(--space-md);
  box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateY(110%);
  pointer-events: none;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  z-index: 999;
}

.sticky-cta.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.sticky-cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.sticky-cta-text {
  color: var(--color-white);
  font-weight: 600;
  font-size: var(--text-lg);
}

@media (max-width: 768px) {
  .sticky-cta-content {
    flex-direction: row;
    justify-content: center;
    text-align: center;
  }

  .sticky-cta-text {
    display: none;
  }

  .sticky-cta .btn {
    padding: 12px 24px;
    font-size: 16px;
    width: 100%;
    max-width: 320px;
  }
}

/* ============================================
   15. FOOTER
   ============================================ */

.footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-2xl) 0 var(--space-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-column h4 {
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition-base);
}

.footer-links a:hover {
  color: var(--color-white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--text-sm);
}

.dev-link {
  color: inherit;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition-fast), text-decoration var(--transition-fast);
}

.dev-link:hover {
  color: var(--color-white);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}

/* ============================================
   16. LOADING SPINNER
   ============================================ */
.loading-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================
   17. CONTACT SECTION REDESIGN
   ============================================ */

.contact-header {
  max-width: 900px;
  margin: 0 auto var(--space-2xl);
}

.bullets-horizontal {
  flex-direction: row !important;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-md) !important;
  margin-top: var(--space-lg) !important;
}

.bullets-horizontal li {
  background-color: rgba(63, 169, 245, 0.1);
  padding: 12px 24px;
  border-radius: 8px;
  font-style: normal !important;
  font-weight: 600;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.bullets-horizontal li:hover {
  transform: translateY(-2px);
  background-color: rgba(63, 169, 245, 0.15);
}

.bullets-horizontal li::before {
  display: none !important;
}

.contact-form-wrapper {
  grid-template-columns: 1fr !important;
  max-width: 800px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .bullets-horizontal {
    flex-direction: column !important;
    align-items: center;
    gap: var(--space-sm) !important;
  }
}

/* ============================================
   18. UTILITY CLASSES
   ============================================ */

.text-center {
  text-align: center;
}

.mb-sm {
  margin-bottom: var(--space-sm);
}

.mb-md {
  margin-bottom: var(--space-md);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.mb-xl {
  margin-bottom: var(--space-xl);
}

.mt-sm {
  margin-top: var(--space-sm);
}

.mt-md {
  margin-top: var(--space-md);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mt-xl {
  margin-top: var(--space-xl);
}

/* CTA Banner Section Styling */
.cta-banner-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: var(--color-white);
}

.cta-banner-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.cta-banner-text {
  flex: 1;
  min-width: 300px;
}

.cta-banner-text h2 {
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.cta-banner-text p {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* Scroll Reveal Animation */
.fade-up-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up-element.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Lazy Loading */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity var(--transition-base);
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* ============================================
   17. CUSTOM BEHAVIORS
   ============================================ */

/* Header Scroll Behavior */
.header.hide {
  transform: translateY(-100%);
}

/* Client Carousel Width Constraint */
.client-carousel .carousel-wrapper {
  max-width: 1152px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  /* For gradients */
}

/* Pricing Card Alignment */
.pricing-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  /* Ensure full height in grid */
}

.pricing-card .btn {
  margin-top: auto;
}

/* ============================================
   VIDEO CONTAINER
   ============================================ */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
}

.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s;
}

@media (max-width: 768px) {
  .video-container {
    padding-bottom: 177.78% !important;
    /* 9:16 Aspect Ratio for Mobile */
  }
}

/* Video Player Overlay State */
.video-container.playing .video-overlay {
  opacity: 0;
  pointer-events: none;
}

.video-overlay img {
  width: 95% !important;
  /* Optimized for visibility and mobile */
  height: auto !important;
}

@media (min-width: 768px) {
  .video-overlay img {
    width: 380px !important;
    /* User requested 380px for desktop */
    height: 380px !important;
  }
}

/* ============================================
   RESPONSIVE UTILITIES & BREAKPOINTS
   ============================================ */

.desktop-br {
  display: block;
}

.mobile-br {
  display: none;
}

/* ============================================
   BREAKPOINTS PROFISSIONAIS - MOBILE FIRST
   ============================================ */

/* Mobile: <= 767px (default - mobile first) */
@media (max-width: 767px) {
  .container {
    padding: 15px;
    max-width: 100%;
  }

  button,
  input,
  textarea {
    width: 100%;
    max-width: 100%;
  }

  .desktop-br {
    display: none;
  }

  .mobile-br {
    display: block;
  }
}

/* Tablet: 768px até 1023px */
@media (min-width: 768px) and (max-width: 1023px) {
  .container {
    max-width: 720px;
    margin: auto;
  }
}

/* Notebook: 1024px até 1439px */
@media (min-width: 1024px) and (max-width: 1439px) {
  .container {
    max-width: 960px;
    margin: auto;
  }
}

/* Desktop: >= 1440px */
@media (min-width: 1440px) {
  .container {
    max-width: 1200px;
    margin: auto;
  }
}

/* ============================================
   16. TESTIMONIALS (GOOGLE REVIEWS STYLE)
   ============================================ */

.testimonials {
  background-color: var(--color-white);
  padding: var(--space-3xl) 0;
}

.reviews-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  text-align: center;
}

.google-badge {
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--color-gray-light);
  padding: 12px 24px;
  border-radius: 50px;
  border: 1px solid var(--color-gray-medium);
  margin-top: var(--space-xs);
}

.google-logo {
  height: 32px;
}

.google-rating {
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 2.2rem;
  font-family: var(--font-display);
}

@media (max-width: 768px) {
  .google-rating {
    font-size: 1.5rem;
  }

  .google-badge {
    padding: 8px 16px;
    gap: 10px;
  }

  .google-logo {
    height: 24px;
  }
}

.google-rating lottie-player {
  margin-top: -4px;
  /* Slight alignment fix */
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.review-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-medium);
  border-radius: var(--border-radius-md);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
  position: relative;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}

.review-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-secondary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-lg);
  text-transform: uppercase;
}

.review-info h4 {
  font-size: var(--text-base);
  margin-bottom: 2px;
  color: var(--color-primary);
  margin-top: 0;
}

.review-date {
  font-size: var(--text-xs);
  color: var(--color-gray-dark);
}

.review-stars {
  color: #FBBC04;
  /* Google Star Color */
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-sm);
}

.review-text {
  font-size: var(--text-sm);
  color: var(--color-gray-dark);
  line-height: 1.6;
  font-style: italic;
  flex-grow: 1;
  margin-bottom: 0;
}

.google-icon-card {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  width: 18px;
  opacity: 0.6;
}

@media (max-width: 992px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}