/* CSS Variables & Theme Core */
:root {
  /* Colors */
  --color-dark-bg: #09090b;
  --color-dark-surface: #18181b;
  --color-dark-border: #27272a;
  --color-dark-text: #fafafa;
  --color-dark-text-muted: #a1a1aa;

  --color-light-bg: #F7F4F3;
  --color-light-surface: #FFFFFF;
  --color-light-border: #e4e4e7;
  --color-light-text: #0F2470;
  --color-light-text-muted: #564D4A;

  --color-brand-primary: #0F2470;
  --color-brand-primary-rgb: 15, 36, 112;
  --color-brand-accent: #193BA1;
  --color-brand-hover: #2E56C8;
  --color-text-support: #564D4A;
  --color-surface-light: #F7F4F3;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.14);
  --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.18);

  --theme-color: var(--color-brand-accent);
  /* Replaced by JS per variant */

  /* Fonts */
  --font-primary: 'Inter', sans-serif;

  /* Geometry & Animations */
  --radius-full: 9999px;
  --radius-lg: 16px;
  --radius-md: 12px;

  --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.3s ease;
}

[data-theme="dark"] {
  --bg-color: var(--color-dark-bg);
  --surface-color: var(--color-dark-surface);
  --border-color: var(--color-dark-border);
  --text-main: var(--color-dark-text);
  --text-muted: var(--color-dark-text-muted);

  --glass-bg: rgba(24, 24, 27, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);

  --btn-solid-bg: var(--color-brand-accent);
  --btn-solid-text: #FFFFFF;

  --nav-bg: rgba(9, 9, 11, 0.7);
}

[data-theme="light"] {
  --bg-color: var(--color-light-bg);
  --surface-color: var(--color-light-surface);
  --border-color: var(--color-light-border);
  --text-main: var(--color-light-text);
  --text-muted: var(--color-light-text-muted);

  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(0, 0, 0, 0.05);

  --btn-solid-bg: var(--color-brand-accent);
  --btn-solid-text: #FFFFFF;

  --nav-bg: rgba(253, 253, 253, 0.8);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  transition: var(--transition-smooth);
}

a {
  text-decoration: none;
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-brand-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Typography Utilities */
.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 2rem;
}

.mt-5 {
  margin-top: 3rem;
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--bg-color);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s;
}

.loading-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: 100%;
  max-width: 300px;
}

.brand-logo-img {
  max-width: 250px;
  height: auto;
  margin-bottom: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
}

.nav-logo-img {
  max-height: 40px;
  width: auto;
  transition: transform 0.3s ease;
}

.nav-logo-img:hover {
  transform: scale(1.05);
}

.loading-bar-container {
  width: 100%;
  height: 4px;
  background: var(--surface-color);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.loading-bar {
  height: 100%;
  width: 0%;
  background: var(--text-main);
  transition: width 0.1s ease-out;
}

#loading-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Navbar Premium Glassmorphism */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 1000;
  transition: var(--transition-smooth);
  /* Optional Glassmorphism background when scrolled */
}

.navbar.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1rem 0;
  border-bottom: 1px solid var(--glass-border);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 4vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Removing text logo styles related to span */

.nav-links {
  display: none;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
    gap: 2rem;
  }
}

.nav-links a {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  transition: var(--transition-fast);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-main);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .nav-container {
    justify-content: center;
    /* Centraliza a logo */
    position: relative;
  }

  .nav-brand {
    margin: 0 auto;
    /* Força o centro absoluto */
  }

  .nav-controls {
    position: absolute;
    right: 4vw;
    /* Mantém na direita */
    gap: 0.5rem;
  }

  .nav-btn {
    display: none;
    /* Esconde botão de orçamento no topo do mobile para focar na logo */
  }
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  border-radius: 50%;
  transition: var(--transition-fast);
}

.theme-toggle:hover {
  background: var(--surface-color);
}

.nav-btn {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  background: var(--btn-solid-bg);
  color: var(--btn-solid-text);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}


/* Scroll Proxy - To create page scroll height for canvas animation */
#scroll-proxy {
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  /* Altura será setada via JS dinamicamente baseada nos frames */
  /* default: fallback */
  height: 300vh;
  z-index: -10;
}

/* Hero Section */
.hero {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh; /* Default to full height (mobile/tablet) */
  z-index: 10;
  overflow: hidden;
  background-color: var(--bg-color);
  transition: filter 0.8s ease;
}

@media (min-width: 1024px) {
  .hero {
    height: 42.85vw; /* 21:9 Aspect Ratio on Desktop */
  }
}

#parallax-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      rgba(9, 9, 11, 0.8) 0%,
      rgba(9, 9, 11, 0.3) 30%,
      rgba(9, 9, 11, 0.1) 70%,
      rgba(9, 9, 11, 0.6) 100%);
  z-index: 0;
  pointer-events: none;
}

[data-theme="light"] .hero-overlay {
  background: linear-gradient(90deg,
      rgba(253, 253, 253, 0.85) 0%,
      rgba(253, 253, 253, 0.4) 30%,
      rgba(253, 253, 253, 0.2) 70%,
      rgba(253, 253, 253, 0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 4vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Hero Typography */
.hero-text-block {
  max-width: 600px;
  margin-top: 5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.brand-subtitle {
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.title-wrapper {
  overflow: visible;
  /* Permitir que o brilho/texto transborde sem cortar */
}

#hero-title {
  font-size: clamp(4rem, 8vw, 8rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.02em;
  padding-right: 0.05em;
  /* Prevenir corte na última letra */
  margin-bottom: 0.5rem;
  background: linear-gradient(to right, var(--text-main), var(--text-muted));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

#hero-subtitle {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 300;
  letter-spacing: 0.2em;
  margin-bottom: 2rem;
  color: var(--theme-color);
  transition: opacity 0.5s ease;
  text-align: left;
}

#hero-description {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 450px;
  margin-bottom: 3rem;
  line-height: 1.8;
  transition: opacity 0.4s ease;
  text-align: left;
}

/* CTAs */
.hero-actions-center {
  position: absolute;
  left: 50%;
  bottom: 3%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  z-index: 10;
}

.cta-group {
  display: flex;
  gap: 1rem;
}

.btn-cta {
  padding: 1rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-outline {
  padding: 1rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-main);
  backdrop-filter: blur(8px);
}

.btn-outline:hover,
.btn-outline:active {
  background: var(--surface-color);
  transform: translateY(-2px);
}

.btn-solid {
  padding: 1rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  background: var(--btn-solid-bg);
  color: var(--btn-solid-text);
  border: 1px solid var(--btn-solid-bg);
}

.btn-solid:hover,
.btn-solid:active {
  background: var(--color-brand-hover);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Hero Controls */
.hero-controls {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.large-index {
  font-size: clamp(6rem, 12vw, 12rem);
  font-weight: 800;
  line-height: 1;
  opacity: 0.1;
  transition: opacity 0.3s;
  display: none !important;
}

/* Hero Controls Navigation (PREV/NEXT) */
.vertical-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.5rem 0.5rem;
  border-radius: var(--radius-full);
}

[data-theme="light"] .vertical-nav {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.divider {
  width: 1px;
  height: 40px;
  background: var(--text-muted);
  opacity: 0.3;
}

.nav-arrow {
  background: transparent;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  opacity: 0.6;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0.65rem;
  border-radius: var(--radius-full);
}

.nav-arrow svg {
  transition: transform 0.4s ease;
}

.nav-arrow:hover {
  opacity: 1;
  color: var(--theme-color);
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .nav-arrow:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* Arrow micro-animations */
#btn-prev:hover svg {
  transform: translateY(-4px);
}

#btn-next:hover svg {
  transform: translateY(4px);
}


.nav-arrow .label {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  font-weight: 600;
  writing-mode: vertical-rl;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.bg-loader {
  display: none;
  /* hidden by default */
  flex-direction: column;
  align-items: center;
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.bg-loader.active {
  display: flex;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--border-color);
  border-top-color: var(--theme-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 0.5rem;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

/* Cinematic LUT for Solar variant */
.lut-cinematic #parallax-canvas {
  filter: saturate(1.4) contrast(1.2) brightness(1.1) hue-rotate(5deg);
}

.lut-cinematic .hero-overlay {
  background: linear-gradient(90deg,
      rgba(9, 9, 11, 0.6) 0%,
      rgba(9, 9, 11, 0.2) 30%,
      rgba(9, 9, 11, 0) 70%,
      rgba(9, 9, 11, 0.4) 100%);
}

/* Socials Flow */
.hero-social-flow {
  display: flex;
  gap: 1.5rem;
  opacity: 0.7;
  justify-content: center;
}

.hero-social-flow a {
  color: var(--text-main);
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  margin: -0.75rem;
}

.hero-social-flow a:hover {
  color: var(--theme-color);
  opacity: 1;
  transform: translateY(-2px);
}

/* State Classes & Animations */
.fade-out {
  opacity: 0 !important;
  transform: translateY(10px) !important;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

/* WhatsApp Flutuante */
.wa-float {
  position: fixed;
  right: -60px;
  /* Começa escondido da tela pela direita */
  bottom: 30px;
  width: 55px;
  height: 55px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  visibility: hidden;
  opacity: 0;
}

.wa-float:hover {
  background-color: #1ebe57;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
  color: #fff;
}

.wa-float.visible {
  right: 30px;
  /* Move para dentro da tela e fica visível */
  visibility: visible;
  opacity: 1;
}

@media (max-width: 768px) {
  .wa-float.visible {
    right: 20px;
    bottom: 20px;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active,
.section.active .reveal {
  opacity: 1;
  transform: translateY(0);
}


/* Estilos de depoimentos removidos desta posição e consolidados ao final do arquivo */


.animated-service-img {
  width: 100%;
  max-width: 450px;
  border-radius: var(--radius-lg);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  animation: float 6s ease-in-out infinite;
  object-fit: cover;
  display: block;
}

.servicos-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .servicos-container {
    grid-template-columns: 1fr 1fr;
  }
}

.servicos-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Post-Hero Main Content */
.page-content {
  position: relative;
  z-index: 20;
  background-color: var(--bg-color) !important;
  /* The margin-top maps to the scroll-proxy height to ensure the content appears 
     after the user scrolls through the entire parallax animation */
  /* This value is managed by JS, fallback: */
  margin-top: 300vh;
}

.section {
  padding: 4rem 4vw;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
  color: var(--color-brand-primary);
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
}

.section-text {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 800px;
  line-height: 1.8;
}

@media (max-width: 768px) {

  .section-title,
  .section-subtitle,
  .section-text {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  #hero-title {
    text-align: center;
  }

  #hero-subtitle,
  #hero-description {
    text-align: left;
    margin-left: 0;
    margin-right: auto;
  }

  .hero-text-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    margin-top: 8rem;
  }

  .hero-actions-center {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: max-content;
  }

  .cta-group {
    justify-content: center;
    width: 100%;
    gap: 0.75rem;
  }

  .btn-cta {
    min-width: 140px;
    padding: 0.8rem 1rem;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
  }
}

.glass-section {
  background: var(--surface-color);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

[data-theme="light"] .glass-section {
  background: var(--color-surface-light);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  text-align: center;
  font-weight: 600;
  transition: var(--transition-fast);
}

.card:hover {
  border-color: var(--theme-color);
  transform: translateY(-5px);
}

.cta-section {
  background: linear-gradient(to top, var(--surface-color), var(--bg-color));
}

.btn-large {
  font-size: 1.125rem;
  padding: 1.25rem 3rem;
  border-radius: var(--radius-full);
  display: inline-block;
}

.footer {
  position: relative;
  z-index: 20;
  background: #000;
  /* Forçando preto premium como pedido */
  color: #fff;
  padding: 5rem 4vw 2rem;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand {
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  font-weight: 800;
  margin-bottom: 1rem;
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: #a1a1aa;
}

.footer-col p {
  color: #a1a1aa;
  margin-bottom: 1rem;
}

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

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col a {
  color: #a1a1aa;
  transition: color 0.3s;
}

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

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #52525b;
  font-size: 0.875rem;
}

/* Marcas Slider (Refinado conforme referência) */
.marcas-carousel-section {
  background-color: #fff !important;
  padding: 2rem 0;
}

[data-theme="dark"] .marcas-carousel-section {
  background-color: #09090b !important;
}

.title-marcas {
  color: var(--color-brand-primary) !important;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 3rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ccc;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background-color: #000;
  transform: scale(1.2);
}

[data-theme="dark"] .dot.active {
  background-color: #fff;
}

/* Serviços Logo Theme Switching */
.servicos-logo {
  max-width: 100%;
  width: 120px;
  /* Aumentado de 80px para 120px */
  height: auto;
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
  margin-top: 2rem;
  display: none !important;
}

.servicos-logo:hover {
  transform: translateY(-5px) scale(1.02);
}

html[data-theme="light"] .theme-light-logo {
  display: block !important;
}

html[data-theme="dark"] .theme-dark-logo {
  display: block !important;
}

/* --- Nossos Serviços Section --- */
.servicos-premium {
  background: var(--bg-color);
  color: var(--text-main);
  padding: 60px 0;
  overflow: hidden;
  position: relative;
}

.servicos-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 40px;
}

.servicos-header-text {
  flex: 1.2;
}

.servicos-header-text .section-title {
  color: var(--color-brand-primary);
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 25px;
  text-align: left;
}

.servicos-header-text .section-description {
  font-size: 1.2rem;
  line-height: 1.7;
  max-width: 550px;
  margin-bottom: 40px;
  color: var(--text-muted);
}

.btn-orcamento {
  display: inline-block;
  padding: 16px 45px;
  background-color: var(--color-brand-primary);
  color: #FFFFFF;
  font-weight: 800;
  border-radius: 12px;
  font-size: 1.1rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: var(--shadow-lg);
}

.btn-orcamento:hover {
  transform: translateY(-5px) scale(1.02);
  background-color: var(--color-brand-accent);
  color: #FFFFFF;
}

.servicos-header-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  position: relative;
}

.image-border-decoration {
  position: relative;
  z-index: 1;
}

.image-border-decoration::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  right: -20px;
  bottom: -20px;
  background-color: var(--color-brand-primary);
  border-radius: 40px;
  z-index: -1;
  opacity: 0.2;
}

.servicos-header-image img {
  width: 100%;
  max-width: 480px;
  height: 400px;
  border-radius: 40px;
  box-shadow: var(--shadow-xl);
  object-fit: cover;
  border: 1px solid var(--border-color);
}

/* Responsividade */
@media (max-width: 992px) {
  .servicos-header {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .servicos-header-text .section-title {
    text-align: center;
    font-size: 2.8rem;
  }

  .servicos-header-text .section-description {
    margin: 0 auto 30px;
  }

  .servicos-header-image {
    justify-content: center;
    margin-top: 20px;
    padding-right: 20px;
  }

  .servicos-header-image img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 600px) {
  .servicos-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 45px 25px;
  }
}

/* --- Glowing Effect (Aceternity UI Style) --- */
.glowing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.servicos-premium .glowing-grid {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1200px) {
  .servicos-premium .glowing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .servicos-premium .glowing-grid {
    grid-template-columns: 1fr;
  }
}


.glowing-card-wrapper {
  position: relative;
  min-height: 280px;
  list-style: none;
}

.glowing-card {
  position: relative;
  height: 100%;
  border-radius: 1.5rem;
  padding: 2px;
  background: transparent;
  overflow: hidden;
}

.glow-layer {
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;

  --blur: 0px;
  --spread: 40;
  --start: 0;
  --active: 0;
  --glowingeffect-border-width: 3px;
  --repeating-conic-gradient-times: 5;
  --gradient: radial-gradient(circle, #dd7bbb 10%, #dd7bbb00 20%),
    radial-gradient(circle at 40% 40%, #d79f1e 5%, #d79f1e00 15%),
    radial-gradient(circle at 60% 60%, #5a922c 10%, #5a922c00 20%),
    radial-gradient(circle at 40% 60%, #4c7894 10%, #4c789400 20%),
    repeating-conic-gradient(from 236.84deg at 50% 50%,
      #dd7bbb 0%,
      #d79f1e calc(25% / var(--repeating-conic-gradient-times)),
      #5a922c calc(50% / var(--repeating-conic-gradient-times)),
      #4c7894 calc(75% / var(--repeating-conic-gradient-times)),
      #dd7bbb calc(100% / var(--repeating-conic-gradient-times)));
}

.glowing-card-wrapper:hover .glow-layer {
  opacity: 1;
}

.glow-layer::after {
  content: "";
  position: absolute;
  inset: calc(-1 * var(--glowingeffect-border-width));
  border-radius: inherit;
  border: var(--glowingeffect-border-width) solid transparent;
  background: var(--gradient);
  background-attachment: fixed;
  opacity: var(--active);
  transition: opacity 0.3s;

  -webkit-mask-clip: padding-box, border-box;
  mask-clip: padding-box, border-box;
  -webkit-mask-composite: intersect;
  mask-composite: intersect;
  -webkit-mask-image: linear-gradient(#0000, #0000),
    conic-gradient(from calc((var(--start) - var(--spread)) * 1deg), #00000000 0deg, #fff, #00000000 calc(var(--spread) * 2deg));
  mask-image: linear-gradient(#0000, #0000),
    conic-gradient(from calc((var(--start) - var(--spread)) * 1deg), #00000000 0deg, #fff, #00000000 calc(var(--spread) * 2deg));
}

.card-content {
  position: relative;
  z-index: 1;
  height: 100%;
  background: var(--surface-color);
  border-radius: 1.25rem;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

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


.card-icon-box {
  width: fit-content;
  padding: 0.75rem;
  border-radius: 0.75rem;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--color-brand-primary);
  margin: 0 auto;
}

.card-icon-box img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

[data-theme="dark"] .card-icon-box {
  color: #fff;
  background: var(--color-dark-surface);
}

.card-content h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 0.5rem;
  line-height: 1.2;
}

.card-content p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--theme-color);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: auto;
  transition: var(--transition-fast);
  position: relative;
  z-index: 11;
}

.card-link span {
  display: flex;
  align-items: center;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-content:hover .card-link {
  color: var(--color-brand-primary);
}

[data-theme="dark"] .card-content:hover .card-link {
  color: #fff;
}

.card-content:hover .card-link span {
  transform: translateX(5px);
}

/* Tornar o card inteiro clicável */
.card-link::after {
  content: '';
  position: absolute;
  inset: -2.5rem;
  /* Expande para cobrir o padding do card-content */
  z-index: 10;
}


.card-link:hover {
  gap: 0.8rem;
}

/* --- Variantes de Serviços (Estilo Botão Ciano) --- */
.servicos-premium .card-content {
  background-color: #00D1FF;
  color: #001a2c;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 209, 255, 0.3);
}

.servicos-premium .card-content:hover {
  background-color: #FFFFFF;
  color: #001a2c;
}


.servicos-premium .card-icon-box {
  background-color: rgba(0, 26, 44, 0.1);
  color: #001a2c;
  border-color: rgba(0, 26, 44, 0.1);
}

.servicos-premium .card-content h3,
.servicos-premium .card-content p,
.servicos-premium .card-content .card-link {
  color: #001a2c;
}

.servicos-premium .card-link span {
  transition: transform 0.3s ease;
}

.servicos-premium .card-content:hover .card-link {
  color: #001a2c;
}

.depoimentos-marquee {
  padding: 4rem 0;
  background: var(--bg-color);
}

/* --- Marquee Testimonials --- */
.marquee-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 40px 0;
}

.marquee-track-container {
  display: flex;
  width: max-content;
}

.testimonials-grid.animate-marquee {
  display: flex;
  gap: 2rem;
  padding-right: 2rem;
  animation: marquee 40s linear infinite;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }

  /* Rolar até a metade (onde as duplicatas começam) */
}

/* Pause on Hover */
.marquee-wrapper:hover .testimonials-grid.animate-marquee {
  animation-play-state: paused;
}

.testimonial-card {
  flex: 0 0 320px;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}

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

.marquee-gradient-left,
.marquee-gradient-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 150px;
  z-index: 2;
  pointer-events: none;
}

.marquee-gradient-left {
  left: 0;
  background: linear-gradient(to right, var(--bg-color), transparent);
}

.marquee-gradient-right {
  right: 0;
  background: linear-gradient(to left, var(--bg-color), transparent);
}

/* Dark Theme Adjustments for Testimonials */
[data-theme="dark"] .testimonial-card {
  background: rgba(24, 24, 27, 0.4);
  backdrop-filter: blur(10px);
}

.stars {
  color: #FFD700;
  font-size: 1.2rem;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

/* --- Marcas Carousel Refined --- */
.marca-item {
  flex: 0 0 350px;
  /* Aumentado de 250px para 350px */
  padding: 2rem;
  /* Aumentado o respiro */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.marcas-track.animate-marquee {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
  /* Velocidade ajustada para o novo tamanho */
}

.marcas-slider:hover .marcas-track {
  animation-play-state: paused;
}

.marca-item:hover {
  transform: scale(1.1);
}

.marca-item img {
  max-width: 100%;
  max-height: 180px;
  /* Aumentado de 120px para 180px */
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.12));
}

@media (max-width: 768px) {
  .marca-item {
    flex: 0 0 220px;
    padding: 1.5rem;
  }

  .marca-item img {
    max-height: 100px;
  }
}

/* --- Stats Section (Sobre Nós) --- */
.stats-grid {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat-header {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-brand-primary);
}

.stat-sublabel {
  font-size: 1rem;
  color: var(--text-muted);
}

.stat-value-container {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  position: relative;
}

.stat-value {
  font-size: 5rem;
  font-weight: 800;
  color: var(--color-brand-primary);
  line-height: 1;
}

.stat-plus {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--color-brand-primary);
}

.stat-arrow {
  color: #555;
  margin-left: 1.5rem;
  width: 32px;
  height: 32px;
  opacity: 0.8;
}

@media (max-width: 600px) {
  .stats-grid {
    gap: 2.5rem;
    justify-content: center;
    text-align: center;
  }

  .stat-value {
    font-size: 4rem;
  }

  .stat-plus {
    font-size: 2.5rem;
  }
}

/* --- FAQ & Contact Section --- */
.faq-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active {
  border-color: var(--color-brand-primary);
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: rgba(var(--color-brand-primary-rgb, 0, 75, 99), 0.05);
}

.faq-question .chevron {
  transition: transform 0.3s ease;
}

.faq-item.active .chevron {
  transform: rotate(180deg);
  color: var(--color-brand-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.5rem;
  background: rgba(var(--color-brand-primary-rgb, 0, 75, 99), 0.02);
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* Info Card & Map */
.faq-info-card {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 100px;
}

.contact-card-content h3 {
  color: var(--color-brand-primary);
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.contact-card-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.location-details p {
  font-size: 0.95rem;
  color: var(--text-main);
}

.map-container {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.btn-full {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 992px) {
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .faq-info-card {
    position: static;
  }
}