/* STOA Website Styles */
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap");

:root {
  --primary-color: #2c1c50;
  --secondary-color: #00b8b3;
  --text-color: #475569;
  --light-gray: #f1f5f9;
  --border-color: #3a485a;
  --success-color: #00b8b3;
  --warning-color: #f59e0b;
  --danger-color: #f27179;
  --font-family: "DM Sans", sans-serif;
  --font-family-display: "Playfair Display", serif;
  /* Soft design tokens */
  --radius-card: 8px;
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.08);
  --border-soft: 1px solid rgba(0, 0, 0, 0.06);
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Scroll Scribble Overlay - removed */

/* Scroll Progress Bar */
#scrollProgressBar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--secondary-color), #6ff3ee);
  z-index: 1200;
  box-shadow: 0 0 8px rgba(0, 185, 179, 0.5);
  transition: width 0.1s linear;
}

/* Back To Top */
.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  border: none;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 25px rgba(44, 28, 80, 0.35);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
  z-index: 1200;
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: #1f0f3a;
}

/* Section underline reveal */
.section-header {
  position: relative;
}

.section-header .section-title {
  display: inline-block;
  position: relative;
}

.section-header.revealed .section-title::after {
  transform: scaleX(1);
}

/* Subtle tilt for cards */
.tilt-on-hover {
  transform-style: preserve-3d;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.tilt-on-hover:hover {
  transform: perspective(900px) rotateX(3deg) rotateY(-3deg) translateY(-2px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

/* Magnetic buttons */
.btn,
.btn-primary,
.btn-outline-primary {
  position: relative;
  overflow: hidden;
}

.btn .magnet,
.btn-primary .magnet,
.btn-outline-primary .magnet {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
}

/* Carousel adjustments to stabilize height during transitions */
#unifiedTestimonialCarousel .carousel-inner {
  overflow: hidden;
}

/* Ensure only the relevant slide is visible */
#unifiedTestimonialCarousel .carousel-item {
  display: none;
}

#unifiedTestimonialCarousel .carousel-item.active,
#unifiedTestimonialCarousel .carousel-item-next,
#unifiedTestimonialCarousel .carousel-item-prev {
  display: block;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #ffffff;
  overflow-x: hidden;
}

/* Typography hierarchy */
h1,
h2 {
  font-family: var(--font-family-display);
  letter-spacing: -0.01em;
}

h3,
h4,
h5,
h6 {
  font-family: var(--font-family);
  letter-spacing: -0.005em;
}

p {
  margin-bottom: 1rem;
}

/* Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ffffff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader {
  text-align: center;
}

/* Header Styles */
.header-modern {
  position: relative;
}

.header-modern .navbar {
  background-color: transparent;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: none;
}

.header-modern .navbar.navbar-dark li a {
  color: #ffffff;
}
.header-modern .navbar.navbar-dark li a:hover {
  color: #ffffff;
}
.header-modern .navbar.navbar-dark .nav-link::after {
  background-color: #ffffff;
}

.header-modern.scrolled .top-bar {
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
}

.navbar-toggler {
  display: none;
}
.header-modern.scrolled .navbar-toggler {
  display: block;
}

.header-modern.scrolled .navbar {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.top-bar {
  background-color: var(--primary-color);
  color: white;
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
  z-index: 999;
}

.contact-info .contact-item {
  color: white;
  text-decoration: none;
  margin-right: 25px;
  margin-bottom: 0;
  font-weight: 400;
  transition: opacity 0.3s ease;
  display: inline-flex;
  align-items: center;
  font-size: 13px;
}

.contact-info .contact-item:hover {
  opacity: 0.8;
}

.contact-info .contact-item i {
  margin-right: 5px;
  width: 12px;
  font-size: 12px;
}

.social-links a {
  color: white;
  /* margin-left: 8px; */
  font-size: 13px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* Navigation */
.navbar {
  padding: 12px 0;
  transition: all 0.3s ease;
}

.navbar-brand img {
  transition: all 0.3s ease;
}

.navbar-nav .nav-link {
  font-weight: 500;
  margin: 0 10px;
  padding: 8px 0 !important;
  position: relative;
  color: var(--primary-color);
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color);
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
}

/* Navbar */
.navbar {
  transition: all 0.3s ease;
  position: relative;
  z-index: 1000;
}

.navbar.navbar-scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Body offset for fixed navbar */
/* body.navbar-fixed {
    padding-top: 80px;
} */

/* Buttons */
.btn {
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  border: none;
  cursor: pointer;
}

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

.btn-primary:hover {
  background-color: #1f0f3a;
  border-color: #1f0f3a;
  transform: translateY(-2px);
}

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

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  border: none;
}

.btn-lg {
  padding: 15px 30px;
  font-size: 18px;
}

.rounded-pill {
  border-radius: 50px !important;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(137deg, #000000f7 1%, rgb(0 185 179 / 1%) 70%),
    url(../img/hero/hero-background-5.png);
  background-position: center, center;
  background-attachment: fixed;
  color: white;
  position: relative;
  overflow: hidden;
  height: 100vh;
  transform: translate3d(0px, 0px, 0px);
  background-size: cover;
}

/* Fallback para quando a imagem não estiver disponível */
.hero-section.no-image {
  background: linear-gradient(
      135deg,
      var(--primary-color) 0%,
      var(--secondary-color) 100%
    ),
    radial-gradient(
      ellipse at top right,
      rgba(44, 28, 80, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at bottom left,
      rgba(0, 185, 179, 0.3) 0%,
      transparent 50%
    );
  background-size: cover, 80% 60%, 70% 50%;
  background-position: center, top right, bottom left;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background: linear-gradient(135deg, rgba(30,41,59,0.55), rgba(0,185,179,0.25)); */
  z-index: 1;
}

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

.hero-content {
  padding-top: calc(30vh);
}

.hero-title {
  font-family: var(--font-family-display);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.hero-description {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.8;
}

/* Improve hero text readability over gradients */
.hero-title,
.hero-subtitle,
.hero-description {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

/* Hero rotating phrase animation */
.hero-title .text-stoa-secondary {
  display: inline-block;
  position: relative;
}

/* Cursor piscando estilo typewriter */
.hero-title .text-stoa-secondary::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  background: currentColor;
  margin-left: 4px;
  vertical-align: -0.15em;
  animation: caret-blink 1s steps(1, end) infinite;
}

@keyframes caret-blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-title .text-stoa-secondary::after {
    animation: none;
  }
}

.hero-actions {
  margin-bottom: 3rem;
}

.hero-tagline {
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 600;
  opacity: 0.9;
}

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

.hero-placeholder {
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin: 0 auto;
}

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-down {
  color: white;
  font-size: 24px;
  opacity: 0.7;
  animation: bounce 2s infinite;
  text-decoration: none;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Parallax Divider */
.parallax-divider {
  /* Permite customização do background via CSS var inline */
  --divider-bg: url(../img/hero/hero-background-6.png);
  position: relative;
  background-image: linear-gradient(
      137deg,
      rgba(0, 0, 0, 0.55),
      rgba(0, 185, 179, 0.15)
    ),
    var(--divider-bg);
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  color: #ffffff;
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 25vh;
}

.parallax-divider::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.15));
}

.parallax-divider .container {
  position: relative;
  z-index: 2;
}

.divider-quote {
  font-family: var(--font-family-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  line-height: 1.25;
  color: #ffffff;
  text-shadow: 0 6px 28px rgba(0, 0, 0, 0.35);
  margin: 0;
}

@media (max-width: 991.98px) {
  .parallax-divider {
    background-attachment: scroll; /* melhor compatibilidade mobile */
    min-height: 320px;
  }
  .divider-quote {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }
}

/* Sections */
.section-padding {
  padding: 100px 0;
}

.section-header {
  margin-bottom: 60px;
}

.section-title {
  font-family: var(--font-family);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-color);
  margin-bottom: 0;
  line-height: 1.8;
}

.bg-light {
  background-color: var(--light-gray) !important;
}

/* Timeline Horizontal reta com seta */
.timeline-straight {
  position: relative;
}

.timeline-straight-wrapper {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  cursor: grab;
}

.timeline-straight-wrapper:active {
  cursor: grabbing;
}
.timeline-straight-wrapper::-webkit-scrollbar {
  display: none;
}
.timeline-straight-wrapper {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Evita seleção de texto enquanto arrasta/rola a timeline */
.timeline-straight-wrapper,
.timeline-straight-track,
.timeline-straight-track * {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.timeline-straight-track {
  position: relative;
  display: flex;
  gap: 10px;
  padding: 10px 80px;
}

.t-item {
  position: relative;
  min-width: 260px;
}

.t-content {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  width: 260px;
  transition: transform 0.2s ease;
}
.t-content:hover {
  transform: translateY(-4px);
}
.t-content .timeline-year {
  font-family: var(--font-family-display);
  color: var(--secondary-color);
  font-weight: 800;
  font-style: italic;
  letter-spacing: 2px;
  font-size: 1.8rem;
  margin-bottom: 8px;
  display: block;
  position: relative;
  z-index: 1;
  background-image: none;
}

.t-content .timeline-year::before {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  top: 60%;
  transform: translateY(-60%);
  height: var(--timeline-year-line-thickness, 1px);
  background-color: var(--timeline-year-line-color, var(--danger-color));
  z-index: 0;
}

/* Bolinha no início apenas do primeiro .timeline-year */
.timeline-straight-track .t-item:first-child .timeline-year::after {
  content: "";
  position: absolute;
  left: 0;
  top: 60%;
  transform: translateY(-60%);
  width: var(--timeline-year-dot-size, 6px);
  height: var(--timeline-year-dot-size, 6px);
  background-color: var(
    --timeline-year-dot-color,
    var(--timeline-year-line-color, var(--danger-color))
  );
  border-radius: 50%;
  z-index: 1;
}

/* Seta curvada à direita nos demais .timeline-year */
.timeline-year-arrow-down::after {
  content: "";
  position: absolute;
  right: -10%;
  bottom: calc(50% - 54px);
  transform: rotate(270deg);
  width: var(--timeline-year-arrow-size, 50px);
  height: var(--timeline-year-arrow-size, 50px);
  border: var(--timeline-year-line-thickness, 1px) solid
    var(--timeline-year-line-color, var(--danger-color));
  /* border-left: 0; */
  border-radius: 100%;
  clip-path: inset(0 0 50% 50%);
  background: transparent;
  z-index: 1;
}
.timeline-year-arrow-up::after {
  content: "";
  position: absolute;
  right: -10%;
  bottom: calc(50% - 5px);
  transform: rotate(180deg);
  width: var(--timeline-year-arrow-size, 50px);
  height: var(--timeline-year-arrow-size, 50px);
  border: var(--timeline-year-line-thickness, 1px) solid
    var(--timeline-year-line-color, var(--danger-color));
  /* border-left: 0; */
  border-radius: 50%;
  clip-path: inset(0 0 50% 50%);
  background: transparent;
  z-index: 1;
}

.t-content .timeline-year .timeline-year-label {
  background: var(--timeline-year-label-bg, #ffffff);
  display: inline-block;
  padding: 0 8px;
  position: relative;
  z-index: 2;
  color: var(--danger-color);
}
.t-content:hover .timeline-year .timeline-year-label {
  color: var(--secondary-color) !important;
}
.t-content .timeline-title {
  color: var(--primary-color);
  font-weight: 800;
  font-size: 1.8rem;
}
.t-content h4 {
  color: var(--primary-color);
  font-weight: 800;
  margin-bottom: 8px;
  font-size: 1.25rem;
}
.t-content p {
  margin: 0;
  color: var(--text-color);
  font-size: 0.95rem;
}

.timeline-scroll-hint {
  position: absolute;
  bottom: 8px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-color);
  opacity: 0.75;
  font-size: 0.9rem;
}
.timeline-scroll-hint i {
  color: var(--secondary-color);
  animation: arrow-move 1.5s ease-in-out infinite;
}
@keyframes arrow-move {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(6px);
  }
}

/* Scrollbar oculta mas funcional */

/* Timeline Vertical Original (fallback para mobile) */
.timeline-container {
  margin-top: 60px;
  display: none; /* Oculto por padrão */
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::after {
  content: "";
  position: absolute;
  width: 4px;
  background-color: var(--primary-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.timeline-item {
  padding: 20px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

.timeline-item::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: var(--primary-color);
  border: 4px solid white;
  top: 25px;
  border-radius: 50%;
  z-index: 1;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-item:nth-child(even)::after {
  left: -10px;
}

.timeline-date {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.timeline-content h4 {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.timeline-content p {
  margin-bottom: 0;
}

/* Solution Categories */
.solution-category {
  background: white;
  border-radius: 15px;
  padding: 40px 30px;
  height: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Solutions Visual (gallery imagética) */
.solutions-visual {
  position: relative;
  margin-bottom: 30px;
  perspective: 1400px;
  perspective-origin: center center;
}

.solutions-visual .visual-track {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-items: center;
  height: 540px;
}

/* Oculta barra e evita scroll lateral */
.solutions-visual .visual-track::-webkit-scrollbar {
  display: none;
}

.visual-card {
  position: absolute;
  left: 50%;
  width: 360px;
  height: 520px;
  border-radius: 28px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 400ms ease,
    box-shadow 400ms ease, z-index 0s linear;
  will-change: transform, opacity;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.visual-card .visual-image {
  position: absolute;
  inset: 0;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transition: transform 600ms ease;
}

.visual-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.08) 0%,
    rgba(0, 0, 0, 0.45) 60%,
    rgba(0, 0, 0, 0.8) 100%
  );
  pointer-events: none;
}

.visual-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  z-index: 2;
  color: #fff;
}

.visual-content h3 {
  color: #fff;
  font-weight: 800;
  text-shadow: 0 6px 25px rgba(0, 0, 0, 0.6);
}

.visual-cta {
  margin-top: 14px;
  background: #ffffff;
  color: var(--primary-color);
  padding: 10px 18px;
}

/* Estados: card ativo ao centro, laterais recuadas e parcialmente ocultas */
.visual-card.active {
  z-index: 3;
  transform: translateX(-50%) translateY(-8px) scale(1.08) rotateY(0deg);
}
.visual-card.active .visual-image {
  transform: scale(1.12);
}

.visual-card.prev {
  z-index: 2;
  transform: translateX(calc(-50% - 280px)) translateY(16px) scale(0.94)
    rotateY(14deg);
  opacity: 0.92;
}

.visual-card.next {
  z-index: 2;
  transform: translateX(calc(-50% + 280px)) translateY(16px) scale(0.94)
    rotateY(-14deg);
  opacity: 0.92;
}

/* leve recorte para sugerir que há mais atrás */
.solutions-visual .visual-track::before,
.solutions-visual .visual-track::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  pointer-events: none;
  z-index: 4;
}

@media (max-width: 991.98px) {
  .solutions-visual .visual-track {
    height: 460px;
  }
  .visual-card {
    width: 300px;
    height: 460px;
  }
  .visual-card.active {
    transform: translateX(-50%) translateY(-6px) scale(1.06) rotateY(0deg);
  }
  .visual-card.prev {
    transform: translateX(calc(-50% - 220px)) translateY(12px) scale(0.94)
      rotateY(12deg);
  }
  .visual-card.next {
    transform: translateX(calc(-50% + 220px)) translateY(12px) scale(0.94)
      rotateY(-12deg);
  }
}

@media (max-width: 767.98px) {
  .solutions-visual .visual-track {
    height: 400px;
  }
  .visual-card {
    width: 240px;
    height: 400px;
  }
  .visual-card.active {
    transform: translateX(-50%) translateY(-4px) scale(1.04) rotateY(0deg);
  }
  .visual-card.prev {
    transform: translateX(calc(-50% - 190px)) translateY(10px) scale(0.93)
      rotateY(10deg);
  }
  .visual-card.next {
    transform: translateX(calc(-50% + 190px)) translateY(10px) scale(0.93)
      rotateY(-10deg);
  }
}

/* Solutions Grid (cards filtráveis) */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.solutions-grid .solution-card {
  grid-column: span 12;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  border-radius: 16px;
  padding: 22px 22px 26px 22px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  transition: transform 0.28s ease, box-shadow 0.28s ease,
    border-color 0.28s ease, background 0.3s ease;
  position: relative;
  overflow: hidden;
}

.solutions-grid .solution-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.12);
  border-color: rgba(0, 185, 179, 0.25);
}

.solutions-grid .solution-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent, var(--secondary-color));
}

.solutions-grid .solution-card .solution-card-icon {
  position: absolute;
  left: 16px;
  top: 16px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    var(--accent, var(--secondary-color)),
    rgba(0, 185, 179, 0.75)
  );
  color: #fff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  font-size: 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.solutions-grid .solution-card:hover .solution-card-icon {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.12);
}

.solutions-grid .solution-card h5 {
  margin: 8px 0 10px 0;
  padding-left: 72px;
  font-weight: 700;
  color: var(--primary-color);
}

.solutions-grid .solution-card p {
  padding-left: 72px;
}

.solutions-grid .solution-card.is-hidden {
  display: none;
}

/* Accent color by category */
.solutions-grid .solution-card[data-category="vendas"] {
  --accent: var(--secondary-color);
}
.solutions-grid .solution-card[data-category="burocracia"] {
  --accent: var(--primary-color);
}
.solutions-grid .solution-card[data-category="aprendizado"] {
  --accent: var(--success-color);
}

@media (min-width: 992px) {
  .solutions-grid .solution-card {
    grid-column: span 6;
  }
}

@media (max-width: 575.98px) {
  .solutions-grid .solution-card {
    grid-column: span 12;
  }
}

.solution-category:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Solutions Tall Cards (novo layout) */
.solutions-filter .btn {
  margin: 0 18px 8px 0;
  padding: 10px 40px;
  border-radius: 12px !important;
}

.solutions-filter .btn:hover {
  background: inherit;
  border: inherit;
  color: inherit;
}

.solutions-filter .btn-outline-danger.active {
  background-color: var(--danger-color);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.solutions-filter .btn-outline-danger.active u {
  font-weight: 900;
}

.solutions-filter .btn-outline-primary {
  background-color: white;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.solutions-filter .btn-outline-primary:hover {
  background-color: white;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  box-shadow: none;
}

.solutions-tall-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.solution-tall-card {
  grid-column: span 12;
}

.solution-tall-card.is-hidden {
  display: none;
}

@media (min-width: 768px) {
  .solution-tall-card {
    grid-column: span 6;
  }
}

@media (min-width: 1200px) {
  .solution-tall-card {
    grid-column: span 3;
    min-height: 530px;
  }
}

.st-card {
  height: 100%;
  border: 1px solid rgba(44, 28, 80, 0.25);
  border-radius: 14px;
  padding: 22px;
  background: #f4f3f4;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.st-rule {
  width: 60px;
  height: 2px;
  background: rgba(44, 28, 80, 0.6);
  margin-bottom: 14px;
}

.st-card h4 {
  color: var(--primary-color);
  font-weight: 800;
  margin-bottom: 12px;
  min-height: 60px;
}

.st-image {
  width: 100%;
  height: 220px;
  border: 1px solid rgba(44, 28, 80, 0.2);
  border-radius: 10px;
  overflow: hidden;
  background: #f7f7fb;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.st-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.st-image.placeholder {
  background: #f2f2f6;
  color: rgba(0, 0, 0, 0.4);
  font-style: italic;
  font-weight: 600;
}

.st-image.placeholder span {
  pointer-events: none;
}

.st-subtitle {
  color: var(--text-color);
  margin: 0;
}

/* Unified hover motion for cards */
.solution-category:hover,
.pricing-card:hover,
.testimonial-card:hover,
.video-testimonial-card:hover,
.partner-item:hover,
.office-item:hover,
.featured-media-card:hover {
  transform: translateY(-6px) scale(1.01);
}

.category-header {
  text-align: center;
  margin-bottom: 30px;
}

.category-header i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.category-header h3 {
  font-family: var(--font-family);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
}

.solution-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
}

.solution-item:last-child {
  border-bottom: none;
}

.solution-item h5 {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.solution-item p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* removed legacy stats styles */

/* Benefits */
.benefits-content {
  padding-right: 30px;
}

.benefits-content.text-center {
  padding-right: 0;
  text-align: center;
}

.benefits-content h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.benefits-content p {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.benefits-list {
  list-style: none;
  padding: 0;
  display: inline-block;
  text-align: left;
}

.benefits-list li {
  padding: 10px 0;
  font-weight: 500;
}

.benefits-list li i {
  color: var(--success-color);
  margin-right: 15px;
  width: 20px;
}

.benefits-image {
  text-align: center;
  margin-top: 40px;
}

.corretor-image {
  max-width: 100%;
  height: auto;
  /* max-height: 500px; */
  width: auto;
}

.image-placeholder {
  width: 400px;
  height: 300px;
  background: var(--light-gray);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  color: var(--border-color);
  margin: 0 auto;
}

/* Footer */
.footer {
  background-color: var(--primary-color) !important;
  color: white;
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.5rem;
  }

  /* Timeline Fluid Responsive */
  .timeline-fluid-wrapper {
    min-height: 350px;
    padding: 30px 0 50px 0;
  }

  .timeline-fluid-track {
    gap: 0; /* Será controlado pelo JavaScript */
    padding: 0 100px;
  }

  .timeline-fluid-item {
    min-width: 180px;
    max-width: 220px;
  }

  .timeline-card {
    min-width: 160px;
    max-width: 200px;
    padding: 18px 15px;
  }

  /* Ajustar margens responsivas */
  .timeline-fluid-item[data-position="top"] .timeline-card {
    margin-top: 30px;
  }

  .timeline-fluid-item[data-position="bottom"] .timeline-card {
    margin-bottom: 30px;
  }

  .timeline-fluid-item::before {
    height: 30px;
  }

  .timeline-fluid-item[data-position="top"]::before {
    bottom: 30px;
  }

  .timeline-fluid-item[data-position="bottom"]::before {
    top: 30px;
  }

  .timeline-year {
    font-size: 1.5rem;
  }

  .timeline-card h4 {
    font-size: 1.1rem;
  }

  .timeline-card p {
    font-size: 0.9rem;
  }

  /* Timeline Original (fallback) */
  .timeline::after {
    left: 31px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  .timeline-item::after {
    left: 21px;
  }

  .timeline-item:nth-child(even) {
    left: 0%;
  }

  .benefits-content {
    padding-right: 0;
    margin-bottom: 40px;
  }

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

  .benefits-list {
    display: inline-block;
    text-align: left;
  }

  .corretor-image {
    max-height: 400px;
  }

  .image-placeholder,
  .hero-placeholder {
    width: 100%;
    max-width: 300px;
    height: 250px;
  }
}

@media (max-width: 767.98px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-content {
    padding-top: calc(30vh);
  }

  .section-padding {
    padding: 60px 0;
  }

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

  .btn-lg {
    padding: 12px 24px;
    font-size: 16px;
  }

  /* Timeline Fluid Mobile */
  .timeline-fluid-container {
    padding: 20px 0;
  }

  .timeline-fluid-wrapper {
    min-height: 300px;
    padding: 20px 0 40px 0;
  }

  .timeline-fluid-track {
    gap: 0; /* Será controlado pelo JavaScript */
    padding: 0 50px;
  }

  .timeline-fluid-item {
    min-width: 140px;
    max-width: 160px;
  }

  .timeline-card {
    min-width: 130px;
    max-width: 150px;
    padding: 12px 10px;
  }

  /* Posicionamento mobile mais compacto */
  .timeline-fluid-item[data-position="top"] .timeline-card {
    margin-top: 25px;
  }

  .timeline-fluid-item[data-position="bottom"] .timeline-card {
    margin-bottom: 25px;
  }

  .timeline-fluid-item::before {
    height: 25px;
  }

  .timeline-fluid-item[data-position="top"]::before {
    bottom: 25px;
  }

  .timeline-fluid-item[data-position="bottom"]::before {
    top: 25px;
  }

  .timeline-point-svg {
    r: 8; /* Pontos menores no mobile */
  }

  .timeline-year {
    font-size: 1.2rem;
    margin-bottom: 8px;
  }

  .timeline-card h4 {
    font-size: 0.95rem;
    margin-bottom: 6px;
  }

  .timeline-card p {
    font-size: 0.8rem;
    line-height: 1.3;
  }

  .timeline-point {
    width: 16px;
    height: 16px;
    border-width: 3px;
  }

  .timeline-scroll-hint {
    bottom: 5px;
    right: 15px;
    font-size: 0.8rem;
  }

  .timeline-scroll-hint span {
    display: none;
  }

  .solution-category {
    margin-bottom: 30px;
  }

  .benefits-content h3 {
    font-size: 1.5rem;
  }

  .benefits-content p {
    font-size: 1rem;
  }

  .corretor-image {
    max-height: 300px;
  }
}

/* Animation classes for AOS */
[data-aos] {
  pointer-events: none;
}

[data-aos].aos-animate {
  pointer-events: auto;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Prefer reduced motion and perf tweaks */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}

img {
  content-visibility: auto;
}

/* Focus styles for accessibility */
*:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Partners Section */
.partners-grid {
  max-width: 1000px;
  margin: 0 auto;
}

.partner-category h4 {
  color: var(--primary-color);
  font-weight: 600;
}

.partner-item {
  background: white;
  border-radius: 4px;
  /* padding: 0px 20px; */
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-item.smaller {
  padding: 20px 15px;
  height: 80px;
}

.partner-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.partner-logo span {
  font-weight: 600;
  color: gray;
  font-size: 1.1rem;
}

.partner-item.smaller .partner-logo span {
  font-size: 0.95rem;
}

/* Partner logos: image-first with graceful fallback */
.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  /* color: #ff0000; */
}

.partner-logo img {
  max-width: 100%;
  max-height: 100px;
  object-fit: contain;
  /* opacity: 0.7; */
  transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
}

.partner-item.smaller .partner-logo img {
  max-height: 36px;
}

.partner-item:hover .partner-logo img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.03);
}

.partner-logo.has-image span {
  display: none;
}

/* Wave line divider */
.wave-line-divider {
  width: 100%;
  height: 80px;
  pointer-events: none;
  position: relative;
  top: -40px;
  float: left;
}

.wave-line-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.wave-line-path {
  fill: none;
  stroke: var(--secondary-color);
  stroke-width: 3.5;
  stroke-linecap: round;
  opacity: 0.9;
}

/* Pricing Cards */
.pricing-card {
  background: white;
  border-radius: 16px;
  padding: 40px 30px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  position: relative;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hover padrão dos cards (será sobrescrito pelo hover especial) */
.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.pricing-card.featured {
  border: 1px solid var(--primary-color);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-10px);
}

/* Todos os cards com fundo teal apenas no hover */
.pricing-card {
  background: white;
  color: var(--primary-color);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-card .pricing-header h3,
.pricing-card .price .amount,
.pricing-card .price .currency,
.pricing-card .price .period,
.pricing-card .price .custom-price,
.pricing-card .plan-description {
  color: var(--primary-color);
  transition: color 0.4s ease;
}

.pricing-card .pricing-features li {
  color: var(--primary-color);
  border-bottom-color: var(--bs-border-color);
  transition: color 0.4s ease, border-bottom-color 0.4s ease;
}

.pricing-card .pricing-features li i.fa-check {
  color: var(--success-color);
  transition: color 0.4s ease;
}

.pricing-card .btn-primary,
.pricing-card .btn-outline-primary {
  transition: all 0.4s ease;
}

/* Hover para todos os cards */
.pricing-card:hover {
  background: var(--secondary-color);
  color: var(--primary-color) !important;
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 25px 60px rgba(0, 184, 179, 0.25);
  border: 1px white solid;
}

.pricing-card:hover .pricing-header h3,
.pricing-card:hover .price .amount,
.pricing-card:hover .price .currency,
.pricing-card:hover .price .period,
.pricing-card:hover .price .custom-price,
.pricing-card:hover .plan-description {
  color: var(--primary-color);
}

.pricing-card:hover .pricing-features li {
  color: var(--primary-color);
  border-bottom-color: rgba(44, 28, 80, 0.2);
}

.pricing-card:hover .pricing-features li i.fa-check {
  color: white;
}

/* Hover dos botões para todos os cards */
.pricing-card:hover .btn-primary {
  background: var(--primary-color);
  border: 1px white solid;
  color: var(--secondary-color);
  border-radius: 14px;
}

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

.pricing-badge {
  position: absolute;
  top: -15px;
  left: 30px;
  background: var(--primary-color);
  color: var(--danger-color);
  padding: 8px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px var(--danger-color) solid;
}

.pricing-header {
  text-align: center;
  margin-bottom: 30px;
  border-bottom: 1px var(--primary-color) solid;
  padding-bottom: 20px;
}

.pricing-header h3 {
  font-family: var(--font-family);
  font-size: 3.4rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 15px;
  text-align: left;
}

.price {
  margin: 20px 0;
  text-align: left;
}

.price .currency {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-color);
  vertical-align: top;
}

.price .amount {
  font-size: 3rem;
  font-weight: 500;
  color: var(--primary-color);
  line-height: 1;
}

.price .period {
  font-size: 1.1rem;
  color: var(--text-color);
  font-weight: 500;
}

.price .custom-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.2;
  display: block;
  margin: 20px 0;
}

.plan-description {
  color: var(--text-color);
  margin-bottom: 0;
  font-weight: 700;
  text-align: left;
}

.pricing-features {
  flex-grow: 1;
  margin-bottom: 30px;
}

.pricing-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pricing-features li {
  padding: 8px 0;
  /* border-bottom: 1px solid var(--bs-border-color); */
  display: flex;
  align-items: center;
  font-weight: 600;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li i {
  width: 20px;
  margin-right: 15px;
  font-size: 1.1rem;
}

.pricing-features li i.fa-check {
  color: var(--success-color);
}

.pricing-features li i.fa-times {
  color: var(--text-color);
}

.pricing-footer {
  margin-top: auto;
}

/* Botões dos cards por padrão */
.pricing-card .btn-outline-primary {
  background: white;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

.pricing-card .btn-primary {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  /* font-size: 1.4rem; */
}

/* Estilos específicos para a seção de preços */
#planos {
  background: url("../img/bg.jpg");
  position: relative;
  background-size: 10%;
}

#planos .container {
  position: relative;
  z-index: 2;
}

#planos .section-title {
  color: white;
}

#planos .section-subtitle {
  color: #e2e8f0;
}

/* Footer da seção de preços */
#planos .text-muted {
  color: #cbd5e1 !important;
}

#planos .text-muted .asterisk {
  color: #ff6b81;
  font-weight: bold;
}

/* Comparison Table */
.comparison-table-wrapper {
  background: white;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.comparison-table {
  margin-bottom: 0;
  border: none;
}

.comparison-table thead th {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 30px 20px;
  vertical-align: middle;
  position: relative;
}

.comparison-table thead th.featured-column {
  background: var(--secondary-color);
  position: relative;
}

.comparison-table thead th.featured-column::after {
  content: "";
  position: absolute;
  top: 0;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--primary-color)
  );
  z-index: -1;
  border-radius: 0;
}

.plan-header h4 {
  margin: 10px 0;
  font-family: var(--font-family-display);
  font-size: 1.5rem;
  font-weight: 600;
}

.plan-price {
  font-size: 1.8rem;
  font-weight: 700;
  margin-top: 10px;
}

.plan-price small {
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.9;
}

.plan-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 5px;
}

.comparison-table tbody tr {
  border-bottom: 1px solid var(--border-color);
}

.comparison-table tbody tr:hover {
  background-color: rgba(44, 28, 80, 0.02);
}

.comparison-table tbody td {
  padding: 20px;
  vertical-align: middle;
  border: none;
}

.comparison-table tbody td.featured-column {
  background-color: rgba(0, 185, 179, 0.05);
  position: relative;
}

.comparison-table tbody td.featured-column::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--secondary-color);
}

.comparison-table .category-header td {
  background-color: var(--light-gray);
  font-weight: 600;
  color: var(--primary-color);
  font-size: 1.1rem;
  padding: 15px 20px;
}

.comparison-table .category-header td.featured-column {
  background-color: rgba(0, 185, 179, 0.1);
}

.comparison-table i.fa-check {
  font-size: 1.2rem;
}

.comparison-table i.fa-times {
  font-size: 1.2rem;
}

.comparison-table i.fa-check-double {
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .comparison-table {
    font-size: 0.9rem;
  }

  .comparison-table tbody td {
    padding: 15px 10px;
  }

  .plan-header h4 {
    font-size: 1.2rem;
  }

  .plan-price {
    font-size: 1.4rem;
  }

  /* Ajustes mobile para carousel unificado */
  #unifiedTestimonialCarousel {
    min-height: 400px;
  }

  #unifiedTestimonialCarousel .carousel-item {
    min-height: 400px;
  }

  .video-description {
    padding: 15px;
  }
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border-radius: 50%;
  top: 30%;
  transform: translateY(-50%);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.carousel-control-prev {
  left: -25px;
}

.carousel-control-next {
  right: -25px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
  background: var(--secondary-color);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 20px;
  height: 20px;
}

.carousel-indicators {
  bottom: -50px;
  margin-bottom: 0;
}

.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border-color);
  border: none;
  margin: 0 5px;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.carousel-indicators button.active {
  background: var(--primary-color);
  opacity: 1;
  transform: scale(1.2);
}

/* Testimonials */
.testimonial-card {
  background: white;
  border-radius: 15px;
  padding: 35px 30px;
  /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); */
  transition: all 0.3s ease;
  height: 100%;
}

/* Fix carousel height to prevent jumping */
#unifiedTestimonialCarousel .carousel-inner {
  height: 100%;
}

#unifiedTestimonialCarousel .carousel-item {
  height: 100%;
}

#unifiedTestimonialCarousel .carousel-item .row {
  height: 100%;
  align-items: stretch;
}

#unifiedTestimonialCarousel .carousel-item .col-lg-4 {
  display: flex;
  flex-direction: column;
}

#unifiedTestimonialCarousel .testimonial-card,
#unifiedTestimonialCarousel .video-testimonial-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  /* box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15); */
}

.testimonial-rating {
  margin-bottom: 20px;
}

.testimonial-rating i {
  color: #ffd700;
  font-size: 1.1rem;
  margin-right: 2px;
}

.testimonial-content p {
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 25px;
  color: var(--text-color);
}

.testimonial-author {
  display: flex;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--bs-border-color);
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  color: var(--text-color);
  font-size: 1.5rem;
}

.author-info h5 {
  margin-bottom: 5px;
  font-weight: 600;
  color: var(--primary-color);
}

.author-info span {
  color: var(--text-color);
  font-size: 0.9rem;
}

/* Video Testimonials */
.video-testimonial-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); */
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.video-testimonial-card:hover {
  transform: translateY(-5px);
  /* box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15); */
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  flex-shrink: 0; /* Evita que o vídeo encolha */
}

.video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.video-placeholder:hover .video-overlay {
  background: rgba(0, 0, 0, 0.6);
}

.play-button {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary-color);
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.play-button:hover {
  background: var(--secondary-color);
  transform: scale(1.1);
}

.play-button i {
  margin-left: 3px; /* Adjust play icon position */
}

.video-info {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: white;
  z-index: 1;
}

.video-info h5 {
  margin: 0 0 5px 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.video-info span {
  font-size: 0.9rem;
  opacity: 0.9;
}

.video-description {
  padding: 20px;
  flex-grow: 1; /* Ocupa o espaço restante */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.video-description p {
  margin: 0;
  color: var(--text-color);
  font-style: italic;
  line-height: 1.5;
}

/* Video Modal */
.video-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.video-modal.active {
  display: flex;
}

.video-modal-content {
  position: relative;
  width: 90%;
  max-width: 800px;
  aspect-ratio: 16/9;
}

.video-modal iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 10px;
}

.video-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 5px;
}

@media (max-width: 768px) {
  .play-button {
    width: 60px;
    height: 60px;
    font-size: 18px;
  }

  .video-info {
    bottom: 10px;
    left: 10px;
  }

  .video-info h5 {
    font-size: 1rem;
  }

  .video-info span {
    font-size: 0.8rem;
  }

  .video-description {
    padding: 15px;
  }
}

/* Media Section */
.featured-media-card {
  background: white;
  border-radius: 8px !important;
  padding: 20px 40px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid var(--primary-color) !important;
  box-shadow: none !important;
}

.featured-media-card:hover {
  transform: translateY(-5px);
}

/* Unified soft card styling */
.solution-category,
.testimonial-card,
.video-testimonial-card,
.partner-item,
.office-item,
.featured-media-card {
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  border: var(--border-soft);
}

.media-source {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.media-logo {
  height: 40px;
  object-fit: contain;
}

.media-date {
  color: var(--text-color);
  font-size: 0.9rem;
  font-weight: 500;
}

.featured-content h3 {
  font-family: var(--font-family-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 15px;
  line-height: 1.3;
}

.featured-content p {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-color);
  margin-bottom: 25px;
}

.featured-stats {
  display: flex;
  gap: 30px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

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

.stat-item strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.stat-item span {
  font-size: 0.9rem;
  color: var(--text-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Media Outlets Section */
.media-outlets-section {
  padding: 40px 0;
}

.media-outlets-section h4 {
  font-family: var(--font-family-display);
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 30px;
}

.media-outlets-carousel {
  overflow: hidden;
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 20px 0;
}

.media-outlets-track {
  display: flex;
  animation: slide-back-forth 35s ease-in-out infinite;
  width: calc(220px * 5); /* 5 items apenas */
}

@keyframes slide-back-forth {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(
      calc(-220px)
    ); /* Move apenas 0.2 items para reduzir espaço em branco */
  }
  100% {
    transform: translateX(0);
  }
}

/* Nova animação para o carousel com elementos duplicados */
@keyframes media-carousel-flow {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(
      calc(-220px * 5)
    ); /* Move exatamente o tamanho dos elementos originais */
  }
}

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

.media-outlet-item {
  position: relative;
  border-radius: 12px;
  margin: 0 10px;
  padding: 20px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  width: 200px;
  flex-shrink: 0;
  overflow: hidden;
}

.media-outlet-item:hover {
  text-decoration: none;
}

.outlet-logo {
  max-width: 100%;
  max-height: 60px;
  object-fit: contain;
  transition: all 0.3s ease;
  filter: grayscale(100%);
  opacity: 0.6;
}

.media-outlet-item:hover .outlet-logo {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

.outlet-overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.outlet-overlay i {
  color: var(--primary-color);
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
  padding: 6px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.media-outlet-item:hover .outlet-overlay {
  opacity: 1;
}

.media-achievements {
  background: var(--light-gray);
  border-radius: 20px;
  padding: 40px 30px;
}

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

.achievement-icon {
  width: 70px;
  height: 70px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: all 0.3s ease;
}

.achievement-icon i {
  font-size: 2rem;
  color: white;
}

.achievement-item:hover .achievement-icon {
  background: var(--secondary-color);
  transform: scale(1.1);
}

.achievement-item h5 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.achievement-item p {
  color: var(--text-color);
  margin: 0;
  font-size: 0.9rem;
}

.media-cta {
  text-align: center;
  padding: 40px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 20px;
  color: white;
}

.media-cta h4 {
  color: white;
  margin-bottom: 15px;
  font-family: var(--font-family-display);
}

.media-cta p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 25px;
}

@media (max-width: 768px) {
  .featured-media-card {
    padding: 25px;
  }

  .featured-content h3 {
    font-size: 1.5rem;
  }

  .featured-stats {
    justify-content: center;
    gap: 20px;
  }

  .media-outlets-track {
    animation: slide-back-forth-mobile 28s ease-in-out infinite;
    width: calc(180px * 5);
  }

  @keyframes slide-back-forth-mobile {
    0% {
      transform: translateX(0);
    }
    50% {
      transform: translateX(
        calc(-180px * 1.5)
      ); /* Movimento mais sutil no mobile */
    }
    100% {
      transform: translateX(0);
    }
  }

  /* Animação mobile para carousel com elementos duplicados */
  @keyframes media-carousel-flow-mobile {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(
        calc(-180px * 5)
      ); /* Move exatamente o tamanho dos elementos originais */
    }
  }

  .media-outlet-item {
    width: 160px;
    margin: 0 8px;
    padding: 15px;
    min-height: 80px;
  }

  .outlet-logo {
    max-height: 50px;
  }

  .achievement-icon {
    width: 60px;
    height: 60px;
  }

  .achievement-icon i {
    font-size: 1.5rem;
  }

  .achievement-item h5 {
    font-size: 1.5rem;
  }

  .media-cta {
    padding: 30px 20px;
  }
}

/* Offices */
/* Map container removed per request */

.offices-accordion .accordion-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(58, 72, 90, 0.3);
}

.offices-accordion .accordion-button {
  font-family: var(--font-family);
  font-weight: 800;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  color: #9aa4b2; /* cinza claro para itens fechados */
  padding: 18px 60px 18px 0; /* espaço para o ícone */
  background: transparent;
  box-shadow: none;
  position: relative;
}

.offices-accordion .accordion-button:not(.collapsed) {
  color: var(--secondary-color); /* teal ativo */
}

.offices-accordion .accordion-button::after {
  flex: 0 0 auto;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: transparent;
  background-image: none;
  content: "";
  position: absolute;
  right: 1px;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: inset 0 0 0 1px rgba(0, 184, 179, 1);
  pointer-events: none;
}

/* ícone plus/minus dentro do círculo */
.offices-accordion .accordion-button::before {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: block;
  line-height: 33px;
  text-align: center;
  color: var(--secondary-color);
  font-size: 54px;
  font-weight: 100;
  z-index: 1;
  pointer-events: none;
}

.offices-accordion .accordion-button:not(.collapsed)::before {
  content: "−"; /* minus */
  color: #9aa4b2;
}

.offices-accordion .accordion-button:not(.collapsed)::after {
  box-shadow: inset 0 0 0 1px rgba(154, 164, 178, 1);
}

.offices-accordion .accordion-body {
  padding: 8px 0 18px 0;
}

.offices-accordion .accordion-button:focus {
  box-shadow: none;
}

.office-item {
  background: linear-gradient(180deg, #fff, #fafcff);
  border-radius: 14px;
  padding: 22px 20px;
  margin-bottom: 18px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.office-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
  border-color: rgba(0, 185, 179, 0.25);
}

.office-header h4 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.office-badge {
  background: var(--secondary-color);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 6px 10px;
}

.office-info p {
  margin-bottom: 8px;
  color: var(--text-color);
}

.office-actions {
  display: flex;
  gap: 10px;
}

.address-link {
  color: var(--primary-color);
  text-decoration: none;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.15);
}

.address-link:hover {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.office-info i {
  color: var(--primary-color);
  width: 20px;
}

/* Contact Section */
.contact-info {
  padding-right: 30px;
}

.contact-info h3 {
  color: white;
  margin-bottom: 30px;
}

#contato .contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: all 0.3s ease;
}

#contato .contact-item:hover {
  background: rgba(255, 255, 255, 0.15);
}

.contact-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  flex-shrink: 0;
}

.contact-icon i {
  font-size: 1.5rem;
  color: white;
}

.contact-details h5 {
  color: white;
  margin-bottom: 8px;
  font-weight: 600;
}

.contact-details a {
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
}

.contact-details a:hover {
  text-decoration: underline;
}

.contact-form-container {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 35px;
  backdrop-filter: blur(10px);
}

.contact-form .form-label {
  color: white;
  font-weight: 500;
  margin-bottom: 8px;
}

.contact-form .form-control {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 8px;
  padding: 12px 15px;
  font-size: 1rem;
}

.contact-form .form-control:focus {
  background: white;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
  outline: none;
}

/* Footer */
.footer {
  background-color: var(--primary-color) !important;
}

.footer-brand img {
  filter: brightness(0) invert(1);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}

.footer h5 {
  color: white;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-contact {
  list-style: none;
  padding: 0;
}

.footer-contact li {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.footer-contact i {
  width: 20px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.footer-bottom p,
.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0;
}

.footer-bottom a:hover {
  color: white;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin-right: 10px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-links a:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

/* Typography Classes */
.font-display {
  font-family: var(--font-family-display) !important;
}

.font-sans {
  font-family: var(--font-family) !important;
}

/* Text Color Utilities */
.text-stoa-primary {
  color: var(--primary-color) !important;
}

.hero-title .text-stoa-secondary {
  font-style: italic;
}

.text-stoa-secondary {
  color: var(--secondary-color) !important;
}

/* Override Bootstrap text-primary to use STOA colors */
.text-primary {
  color: var(--primary-color) !important;
}

.text-secondary {
  color: var(--secondary-color) !important;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #1f0f3a;
}

/* Stats Around Image Layout */
/* removed legacy stats around image layout */

/* Why STOA (new) */
.why-stoa-section {
  position: relative;
  background-image: linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.55),
      rgba(0, 0, 0, 0.45)
    ),
    var(--why-bg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #ffffff;
  padding: 70px 0;
}

.why-card {
  background: #00b8b3;
  color: #0b3a36;
  border-radius: 8px;
  padding: 28px 24px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--primary-color);
}

.why-title {
  font-family: var(--font-family-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.15;
  margin: 0 0 16px 0;
  color: var(--primary-color);
}

.why-title b {
  font-weight: 900;
}

.why-title span.fst-italic {
  font-family: var(--font-family);
  font-weight: 200;
}

.why-subtitle {
  margin: 0;
  font-size: 0.95rem;
}

.why-stat-grid {
  padding: 90px 0 0 0;
}

.why-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.why-stat-value-container {
  display: flex;
  flex-direction: row;
}

.why-stat-plus-sign {
  font-size: 3rem;
  font-weight: 100;
  margin-left: -5px;
  margin-top: -25px;
  color: var(--secondary-color);
}

.why-stat-number {
  font-family: var(--font-family-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 4.2vw, 2.8rem);
  font-style: italic;
  line-height: 1;
}

.why-stat-number::after {
  content: attr(data-suffix);
  margin-left: 2px;
  font-weight: 800;
}

.why-stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

@media (max-width: 767.98px) {
  .why-stoa-section {
    padding: 50px 0;
    background-attachment: scroll;
  }
  .why-card {
    margin-bottom: 10px;
  }
}

#na-midia-2 {
  background-color: #f4f3f3;
}

#depoimentos {
  background-color: #d9d6e1;
}

.hero-actions .btn-outline-danger {
  border: 1px var(--danger-color) solid;
  color: var(--danger-color);
  border-radius: 12px !important;
  padding: 10px 40px;
}

.hero-actions .btn-outline-danger:hover {
  background-color: var(--danger-color);
  color: white;
}

/* Modal de Contato */
#contactModal .modal-content {
  border: none;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

#contactModal .modal-header {
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 16px 16px 0 0;
  padding: 20px 25px;
}

#contactModal .modal-title {
  font-weight: 600;
  font-size: 1.3rem;
}

#contactModal .btn-close {
  filter: invert(1);
  opacity: 0.8;
}

#contactModal .btn-close:hover {
  opacity: 1;
}

#contactModal .modal-body {
  padding: 30px 25px;
}

#contactModal .plan-selected-info .alert {
  background: rgba(0, 185, 179, 0.1);
  border: 1px solid rgba(0, 185, 179, 0.2);
  color: var(--primary-color);
  border-radius: 8px;
}

#contactModal .form-label {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 8px;
}

#contactModal .form-control {
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 15px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

#contactModal .form-control:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(0, 185, 179, 0.1);
}

#contactModal .form-control.is-invalid {
  border-color: var(--danger-color);
}

#contactModal .form-control.is-valid {
  border-color: var(--success-color);
}

#contactModal #submitBtn {
  background: var(--primary-color);
  border: none;
  border-radius: 8px;
  padding: 15px 30px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

#contactModal #submitBtn:hover {
  background: #1f0f3a;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(44, 28, 80, 0.3);
}

#contactModal #submitBtn:disabled {
  opacity: 0.6;
  transform: none;
  box-shadow: none;
}

/* Modal de Sucesso */
#successModal .modal-content {
  border: none;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

#successModal .success-modal {
  background: #f8fffe;
}

#successModal .success-icon {
  font-size: 4rem;
  color: var(--success-color);
  animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

#successModal .modal-title {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.5rem;
}

#successModal .alert-success {
  background: rgba(0, 185, 179, 0.1);
  border: 1px solid rgba(0, 185, 179, 0.2);
  color: var(--primary-color);
  border-radius: 8px;
}

#successModal .btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 8px;
  padding: 12px 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

#successModal .btn-outline-primary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* Animações do modal */
.modal.fade .modal-dialog {
  transform: scale(0.8) translateY(-50px);
  transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog {
  transform: scale(1) translateY(0);
}

/* Responsividade do modal */
@media (max-width: 576px) {
  #contactModal .modal-dialog {
    margin: 20px;
  }

  #contactModal .modal-body {
    padding: 20px 15px;
  }

  #successModal .success-icon {
    font-size: 3rem;
  }

  #successModal .modal-title {
    font-size: 1.3rem;
  }
}
