/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navy: #211467;
  --blue: #286CBA;
  --cyan: #33E7EC;
  --magenta: #A90F6D;
  --orange: #FE8E4A;
  --white: #FFFFFF;
  --off-white: #F4F6FA;
  --gray: #7A7A7A;
  --light-gray: #E8EAF0;
  --dark: #0D0B21;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
  font-family: var(--font);
  color: var(--gray);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

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

ul {
  list-style: none;
}

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

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
}

/* ===== UTILITY ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--cyan);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--gray);
  max-width: 640px;
  line-height: 1.7;
  margin: 0 auto;
  text-align: center;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

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

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

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

@keyframes float {

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

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

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(51, 231, 236, 0.2);
  }

  50% {
    box-shadow: 0 0 40px rgba(51, 231, 236, 0.5);
  }
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger-1 {
  transition-delay: 0.1s;
}

.stagger-2 {
  transition-delay: 0.2s;
}

.stagger-3 {
  transition-delay: 0.3s;
}

.stagger-4 {
  transition-delay: 0.4s;
}

.stagger-5 {
  transition-delay: 0.5s;
}

.stagger-6 {
  transition-delay: 0.6s;
}

.stagger-7 {
  transition-delay: 0.7s;
}

.stagger-8 {
  transition-delay: 0.8s;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--light-gray);
  transition: box-shadow 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 4px 30px rgba(33, 20, 103, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 32px;
  max-width: 1440px;
  /* Increased max-width */
  margin: 0 auto;
  gap: 24px;
  /* Explicit gap between header elements */
}

/* ===== TECH TICKER STYLES ===== */
.tech-ticker-wrapper {
  flex: 1;
  max-width: 600px;
  /* Limit width on desktop */
  height: 36px;
  background: rgba(13, 11, 33, 0.05);
  border-radius: 4px;
  border: 1px solid rgba(33, 231, 236, 0.2);
  display: flex;
  /* Flex container for the track */
  align-items: center;
  overflow: hidden;
  /* Hide overflow */
  position: relative;
  margin: 0;
  /* Margin handled by gap in header-inner */
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.tech-ticker-track {
  display: flex;
  align-items: center;
  gap: 24px;
  width: max-content;
  /* Ensure it takes necessary width */
  white-space: nowrap;
  /* Prevent wrapping */
  animation: techMarquee 40s linear infinite;
  /* Seamless loop */
  will-change: transform;
}

.tech-ticker-track span {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--navy);
  text-transform: uppercase;
  flex-shrink: 0;
  /* Prevent individual items from shrinking */
  white-space: nowrap;
}

.tech-ticker-track .separator {
  color: var(--cyan);
  font-size: 0.6rem;
  flex-shrink: 0;
}

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

  100% {
    transform: translateX(-50%);
    /* Move half way (since we duplicated content) */
  }
}

@media (max-width: 1024px) {

  /* Move Ticker to Top Bar on Mobile/Tablet */
  .tech-ticker-wrapper {
    display: flex;
    position: fixed;
    top: 70px;
    /* Adjusted: Below header (approx 70px) */
    left: 0;
    right: 0;
    width: 100%;
    margin: 0;
    max-width: none;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(51, 231, 236, 0.2);
    background: var(--navy);
    z-index: 99;
    height: 36px;
    /* Slightly taller for better readability */
    mask-image: none;
    -webkit-mask-image: none;
  }

  .tech-ticker-track {
    animation: techMarquee 20s linear infinite;
    /* Faster on mobile */
  }

  .header {
    height: 70px;
    /* Fixed header height */
    padding: 0;
  }

  .header-inner {
    height: 100%;
    padding: 0 20px;
    max-width: 100%;
  }

  /* Adjust Logo for Mobile Header */
  .header-logo img {
    height: 48px;
    /* Slightly larger logo */
    width: 48px;
  }

  .tech-ticker-track span {
    color: var(--white);
    /* White text on dark bg */
    font-size: 0.75rem;
  }

  /* Push content down to account for Header (70px) + Ticker (36px) = 106px */
  body {
    padding-top: 36px;
    /* Ticker active space visual compensation if needed */
  }

  .hero {
    padding-top: 106px;
    /* Clear header + ticker */
    min-height: auto;
    /* Allow content to dictate height properly */
    height: 100vh;
    /* Restore viewport height */
  }

  /* Adjust other section paddings slightly */
  .about,
  .services,
  .contact,
  .faq {
    padding: 80px 0;
  }
}

/* ===== SERVICES GRID UPDATE ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  position: relative;
  z-index: 2;
}

/* ===== PARTNERS GRID (Replaces Carousel styles in that section) ===== */
.partners-section {
  padding: 100px 0;
  background: var(--white);
}

.partners-header {
  text-align: center;
  margin-bottom: 64px;
}

/* Partners carousel uses the same carousel-section classes as Clientes */
.partners-section {
  padding: 100px 0;
  background: var(--white);
}

.partners-section .carousel-track-wrapper::before {
  background: linear-gradient(90deg, var(--white), transparent);
}

.partners-section .carousel-track-wrapper::after {
  background: linear-gradient(-90deg, var(--white), transparent);
}

.partner-text {
  font-weight: 700;
  color: var(--gray);
  font-size: 0.9rem;
  text-transform: uppercase;
}

.partner-card.partner-text:hover span {
  color: var(--cyan);
}


.header-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.header-logo img {
  height: 72px;
  width: 72px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

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

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-shrink: 0;
  /* Prevent nav from shrinking */
  white-space: nowrap;
  /* Prevent nav items from wrapping */
}

.header-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  transition: color 0.3s ease;
  white-space: nowrap;
  position: relative;
}

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cyan);
  transition: width 0.3s ease;
}

.header-nav a:hover {
  color: var(--blue);
}

.header-nav a:hover::after {
  width: 100%;
}

.btn-chamado {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: var(--white) !important;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 50px;
  letter-spacing: 0.5px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-chamado:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(51, 231, 236, 0.3);
}

/* Mobile menu */
.mobile-toggle {
  display: none;
  background: none;
  color: var(--navy);
  font-size: 1.5rem;
  padding: 8px;
}

.mobile-menu {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--light-gray);
  padding: 16px 24px;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 14px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  border-bottom: 1px solid var(--light-gray);
}

.mobile-menu .btn-chamado {
  display: block;
  text-align: center;
  margin-top: 16px;
  border-bottom: none;
  color: var(--white);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('/images/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.35;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(13, 11, 33, 0.95) 0%,
      rgba(33, 20, 103, 0.85) 40%,
      rgba(40, 108, 186, 0.7) 100%);
}

/* Animated particles */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0.4;
  animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) {
  left: 10%;
  top: 20%;
  animation-delay: 0s;
}

.particle:nth-child(2) {
  left: 25%;
  top: 60%;
  animation-delay: 1s;
  width: 6px;
  height: 6px;
}

.particle:nth-child(3) {
  left: 45%;
  top: 30%;
  animation-delay: 2s;
}

.particle:nth-child(4) {
  left: 65%;
  top: 70%;
  animation-delay: 0.5s;
  width: 5px;
  height: 5px;
}

.particle:nth-child(5) {
  left: 80%;
  top: 40%;
  animation-delay: 1.5s;
}

.particle:nth-child(6) {
  left: 90%;
  top: 15%;
  animation-delay: 3s;
  width: 3px;
  height: 3px;
}

.particle:nth-child(7) {
  left: 15%;
  top: 80%;
  animation-delay: 2.5s;
  width: 5px;
  height: 5px;
}

.particle:nth-child(8) {
  left: 55%;
  top: 85%;
  animation-delay: 4s;
}

.particle:nth-child(9) {
  left: 35%;
  top: 10%;
  animation-delay: 3.5s;
  width: 3px;
  height: 3px;
}

.particle:nth-child(10) {
  left: 75%;
  top: 55%;
  animation-delay: 1s;
  width: 6px;
  height: 6px;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  padding: 8px 24px;
  border: 1px solid rgba(51, 231, 236, 0.4);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
  animation: pulse-glow 3s ease-in-out infinite;
}

.hero h1 {
  font-size: 3.8rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero h1 span {
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 50px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(51, 231, 236, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  padding: 16px 36px;
  border-radius: 50px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(51, 231, 236, 0.05);
}

/* ===== ABOUT ===== */
.about {
  padding: 120px 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-text .section-title {
  color: var(--navy);
}

.about-text p {
  margin-bottom: 24px;
}

.about-stats {
  display: flex;
  gap: 32px;
  margin-top: 32px;
}

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

.stat-number {
  font-size: 2.6rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.about-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-card {
  background: var(--off-white);
  border-radius: 16px;
  padding: 28px 32px;
  border-left: 4px solid var(--cyan);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
  transform: translateX(8px);
  box-shadow: 0 8px 30px rgba(33, 20, 103, 0.08);
}

.about-card:nth-child(2) {
  border-left-color: var(--blue);
}

.about-card:nth-child(3) {
  border-left-color: var(--orange);
}

.about-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}

.about-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ===== SERVICES ===== */
.services {
  padding: 120px 0;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.services::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(51, 231, 236, 0.08), transparent 70%);
}

.services::after {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -200px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(40, 108, 186, 0.08), transparent 70%);
}

.services .section-title {
  color: var(--white);
}

.services .section-subtitle {
  color: rgba(255, 255, 255, 0.6);
}

.services-header {
  text-align: center;
  margin-bottom: 64px;
  position: relative;
  z-index: 2;
}

.services-header .section-subtitle {
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 2;
}

.service-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(51, 231, 236, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--cyan);
  background: rgba(255, 255, 255, 0.06);
}

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

.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(51, 231, 236, 0.15), rgba(40, 108, 186, 0.15));
  font-size: 1.8rem;
  position: relative;
  z-index: 2;
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
}

.service-card p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  position: relative;
  z-index: 2;
}

/* ===== CAROUSEL SECTIONS ===== */
.carousel-section {
  padding: 100px 0;
}

.carousel-section.alt-bg {
  background: var(--off-white);
}

.carousel-header {
  text-align: center;
  margin-bottom: 48px;
}

.carousel-header .section-title {
  color: var(--navy);
}

.carousel-header .section-subtitle {
  margin: 0 auto;
}

.carousel-track-wrapper {
  overflow: hidden;
  position: relative;
}

.carousel-track-wrapper::before,
.carousel-track-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 3;
  pointer-events: none;
}

.carousel-track-wrapper::before {
  left: 0;
  background: linear-gradient(90deg, var(--white), transparent);
}

.carousel-track-wrapper::after {
  right: 0;
  background: linear-gradient(-90deg, var(--white), transparent);
}

.carousel-section.alt-bg .carousel-track-wrapper::before {
  background: linear-gradient(90deg, var(--off-white), transparent);
}

.carousel-section.alt-bg .carousel-track-wrapper::after {
  background: linear-gradient(-90deg, var(--off-white), transparent);
}

.carousel-track {
  display: flex;
  gap: 32px;
  animation: scrollLeft 30s linear infinite;
  width: max-content;
  padding: 16px 0;
}

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

.carousel-item {
  flex-shrink: 0;
  width: 260px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: 16px;
  padding: 16px 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carousel-section.alt-bg .carousel-item {
  background: var(--white);
}

.carousel-item:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(33, 20, 103, 0.08);
}

.carousel-item img {
  max-height: 100px;
  max-width: 220px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ===== FAQ ===== */
.faq {
  padding: 120px 0;
  background: var(--white);
}

.faq-header {
  text-align: center;
  margin-bottom: 56px;
}

.faq-header .section-title {
  color: var(--navy);
}

.faq-header .section-subtitle {
  margin: 0 auto;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--light-gray);
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
  background: var(--off-white);
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.faq-item.active {
  border-color: var(--light-gray);
  border-left-color: var(--magenta);
  background: var(--white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  background: transparent;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  transition: all 0.3s ease;
}

.faq-item.active .faq-question {
  font-weight: 700;
  color: var(--navy);
}

.faq-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
  color: var(--gray);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--magenta);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 28px 22px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--gray);
  animation: fadeIn 0.5s ease forwards;
}

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

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

/* ===== CONTACT (CLASSIC SPLIT) ===== */
.contact {
  padding: 100px 0;
  background: var(--off-white);
  position: relative;
  overflow: hidden;
}

/* Gradient Top Border */
.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--magenta), var(--orange));
  background-size: 200% 100%;
  animation: gradient-shift 4s ease infinite;
}

.contact-header {
  text-align: center;
  margin-bottom: 64px;
  position: relative;
  z-index: 2;
}

.contact .section-title {
  color: var(--navy);
}

.contact .section-subtitle {
  color: var(--gray);
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  position: relative;
}

/* Classic Split Info Bar */
.contact-info {
  background: var(--white);
  padding: 48px;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(33, 20, 103, 0.05);
  position: relative;
  z-index: 2;
  border: 1px solid var(--light-gray);
}

.contact-item {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
  align-items: flex-start;
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  background: rgba(51, 231, 236, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--cyan);
  font-size: 1.2rem;
}

.contact-item h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.contact-item p {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.6;
}

.contact-item a {
  transition: color 0.3s ease;
  color: var(--gray);
}

.contact-item a:hover {
  color: var(--cyan);
}

/* Map Section */
.contact-map {
  height: 500px;
  position: relative;
  z-index: 1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--light-gray);
  background: var(--light-gray);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

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

  .contact-info {
    padding: 32px;
  }

  .contact-map {
    height: 350px;
  }
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  padding: 64px 0 32px;
}

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

.footer-logo img {
  height: 80px;
  width: 80px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  max-width: 280px;
}

.footer h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer ul li {
  margin-bottom: 12px;
}

.footer ul a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s ease;
}

.footer ul a:hover {
  color: var(--cyan);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--cyan);
  color: var(--navy);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: var(--cyan);
}

/* ===== NAV ACTIVE STATE ===== */
.header-nav a.nav-active {
  color: var(--cyan);
}

.header-nav a.nav-active::after {
  width: 100%;
}

/* ===== LINK BUTTON ===== */
.btn-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--cyan);
  transition: color 0.3s ease, transform 0.3s ease;
}

.btn-link:hover {
  color: var(--blue);
  transform: translateX(4px);
}

/* ===== PAGE HERO (INTERNAL PAGES) ===== */
.page-hero {
  position: relative;
  padding: 160px 0 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark);
  overflow: hidden;
  text-align: center;
}

.page-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(13, 11, 33, 0.95) 0%,
      rgba(33, 20, 103, 0.85) 40%,
      rgba(40, 108, 186, 0.7) 100%);
}

.page-hero .hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
}

.page-hero-content h1 {
  font-size: 3rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 16px;
}

.page-hero-content p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== ABOUT PAGE ===== */
.about-page {
  padding: 100px 0;
  background: var(--white);
}

.about-page-intro {
  max-width: 800px;
  margin: 0 auto 64px;
  text-align: center;
}

.about-page-intro .section-title {
  color: var(--navy);
}

.about-page-intro p {
  font-size: 1.05rem;
  color: var(--gray);
  line-height: 1.8;
  margin-top: 16px;
}

/* MVV Grid */
.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 0;
}

.mvv-card {
  background: var(--off-white);
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
  border-top: 4px solid var(--cyan);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mvv-card:nth-child(2) {
  border-top-color: var(--blue);
}

.mvv-card:nth-child(3) {
  border-top-color: var(--orange);
}

.mvv-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(33, 20, 103, 0.1);
}

.mvv-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(51, 231, 236, 0.15), rgba(40, 108, 186, 0.15));
}

.mvv-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
}

.mvv-card p {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.7;
}

/* ===== SOLUCOES ===== */
.solucoes {
  padding: 100px 0;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.solucoes::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(51, 231, 236, 0.08), transparent 70%);
}

.solucoes-header {
  text-align: center;
  margin-bottom: 64px;
  position: relative;
  z-index: 2;
}

.solucoes .section-title {
  color: var(--white);
}

.solucoes .section-subtitle {
  color: rgba(255, 255, 255, 0.6);
  margin: 0 auto;
}

.solucoes-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: relative;
  z-index: 2;
}

.solucao-item {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 36px 32px;
  transition: all 0.4s ease;
}

.solucao-item:hover {
  border-color: var(--cyan);
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(8px);
}

.solucao-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(51, 231, 236, 0.15), rgba(40, 108, 186, 0.15));
  flex-shrink: 0;
}

.solucao-content h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}

.solucao-content p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin-bottom: 16px;
}

.solucao-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.solucao-tags li {
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan);
  background: rgba(51, 231, 236, 0.1);
  border: 1px solid rgba(51, 231, 236, 0.2);
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 80px 0;
  background: var(--off-white);
}

.cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.2;
}

.cta-content p {
  font-size: 1.1rem;
  color: var(--gray);
  margin-bottom: 32px;
}

/* ===== CONTACT PAGE ===== */
.contact-page {
  padding: 100px 0;
  background: var(--white);
}

.contact-page-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-form-wrapper .section-title {
  color: var(--navy);
  font-size: 2rem;
}

.contact-form-wrapper .section-subtitle {
  margin-bottom: 32px;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--light-gray);
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(51, 231, 236, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray);
  opacity: 0.6;
}

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

.btn-orange {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 50px;
  border: none;
  font-family: var(--font);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  letter-spacing: 0.5px;
}

.btn-orange:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(254, 142, 74, 0.35);
}

/* Contact info card */
.contact-info-card {
  background: var(--dark);
  border-radius: 20px;
  padding: 36px 32px;
  margin-bottom: 24px;
}

.contact-info-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 28px;
}

.contact-info-card .contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.contact-info-card .contact-item:last-child {
  margin-bottom: 0;
}

.contact-info-card .contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(51, 231, 236, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-card .contact-item h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.contact-info-card .contact-item p,
.contact-info-card .contact-item a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s ease;
}

.contact-info-card .contact-item a:hover {
  color: var(--cyan);
}

.contact-map-page {
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid var(--light-gray);
  height: 280px;
}

.contact-map-page iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Contact CTA on home */
.contact-cta {
  margin-top: 12px;
}

/* ===== FORM RESPONSE MESSAGE ===== */
#form-response {
  display: none;
  padding: 14px 18px;
  border-radius: 12px;
  margin-top: 16px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

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

#form-response.success {
  background-color: #d4edda;
  color: #155724;
  border-color: #c3e6cb;
}

#form-response.error {
  background-color: #f8d7da;
  color: #721c24;
  border-color: #f5c6cb;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  .header-nav {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

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

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

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .carousel-item {
    width: 220px;
    height: 100px;
  }

  .carousel-item img {
    max-height: 60px;
    max-width: 160px;
  }

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

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

  .solucao-item {
    flex-direction: column;
  }

  .contact-page-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.9rem;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .page-hero-content h1 {
    font-size: 1.8rem;
  }
}

/* ===== COOKIE CONSENT (Layout.md spec) ===== */
#cookie-consent {
  position: fixed;
  bottom: 24px;
  left: 24px;
  max-width: 400px;
  width: calc(100% - 48px);
  z-index: 1000;
  padding: 24px;
  border-radius: 16px;
  background: rgba(13, 11, 33, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  display: none;
  /* Controlled by JS handle */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#cookie-consent.visible {
  opacity: 1;
  transform: translateY(0);
}

.cookie-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  text-align: left;
}

.cookie-text p {
  color: var(--white);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.cookie-text a {
  color: var(--cyan);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed var(--cyan);
}

.btn-accept {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 24px;
  border-radius: 50px;
  width: auto;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(51, 231, 236, 0.4);
}

@media (max-width: 768px) {
  #cookie-consent {
    bottom: 16px;
    left: 16px;
    width: calc(100% - 32px);
    margin: 0;
  }
}

/* ===== LEGAL CONTENT (Privacy Policy) ===== */
.legal-content .container {
  max-width: 800px;
  margin: 0 auto;
  padding-top: 120px;
  padding-bottom: 120px;
}

.legal-content h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 1rem;
  text-align: center;
}

.legal-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--gray);
  margin-bottom: 24px;
}

.legal-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--light-gray);
}

.legal-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--blue);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content ul,
.legal-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
  color: var(--gray);
}

/* ===== ADDITIONAL OPTIMIZATIONS ===== */
/* Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Ensure mobile menu stays hidden on desktop even if toggled */
@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
  }

  .mobile-toggle {
    display: none !important;
  }
}