body {
  background-color: #f6f5f5;
}

.solucoes-content {
  position: relative;
  padding-bottom: 15rem;
}

.solucoes-wave {
  position: absolute;
  bottom: -7px;
  pointer-events: none;
  left: 0;
  width: 100%;
}

.solucoes-wave svg {
  width: 100%;
  height: fit-content;
}

.solucoes-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin: 80px 0 32px;
}

.solucoes-cards__card {
  border-radius: 10px 50px 10px 10px;
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
}

.solucoes-cards__card:hover .card-main::after {
  opacity: 0.4;
}

.card-main {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background-color: #000;
  display: block;
}

.card-main::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.3s ease;
  opacity: 1;
}

.card-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 20; /* Above everything except buttons */
}

.carousel-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

.carousel-img.active {
  opacity: 1;
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  animation: zoom 0.3s;
}

@keyframes zoom {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  transition: 0.3s;
  cursor: pointer;
  z-index: 1001;
}

.lightbox-close svg {
  width: 20px;
}

.lightbox-close:hover,
.lightbox-close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

.card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 24px;
  z-index: 5;
  pointer-events: none;
}

.card-content a {
  pointer-events: auto;
  text-decoration: none;
}

.card-content h2 {
  font-size: 1.75rem;
  color: white;
  font-weight: 500;
  line-height: 130%;
  letter-spacing: -0.36px;
  position: relative;
  z-index: 2;
}

.card-content p {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 130%;
  position: relative;
  z-index: 2;
}

.card-thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  overflow-x: auto;
  opacity: 1;
  transition: all 0.3s ease;
  scrollbar-width: thin;
  scrollbar-color: #3565b1 transparent;
}

.card-thumbnails::-webkit-scrollbar {
  height: 6px;
}

.card-thumbnails::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 3px;
}

.card-thumbnails::-webkit-scrollbar-thumb {
  background-color: #3565b1;
  border-radius: 3px;
}

@media screen and (min-width: 1024px) {
  .card-thumbnails {
    opacity: 0;
  }

  .solucoes-cards__card:hover .card-thumbnails {
    opacity: 1;
  }
}

.thumbnail-wrapper {
  width: 68px;
  height: 50px;
  flex-shrink: 0;
  cursor: pointer;
  border-radius: 3px;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.3s;
  border: 1px solid transparent;
  position: relative;
  z-index: 30; /* Ensure clickable above anything else if needed */
}

.thumbnail-wrapper.active {
  opacity: 1;
  width: 104px;
}

.thumbnail-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* PROJETOS PERSONALIZADOS */
.projetos-personalizados {
  padding: 2.5rem 0;
  background-color: #13233e;
  position: relative;
}

.projetos-personalizados-wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.projetos-personalizados-wave svg {
  width: 100%;
  height: fit-content;
}

.projetos-personalizados .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.projetos-personalizados-content p {
  color: #fff;
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: 130%;
  margin-bottom: 24px;
}

.projetos-personalizados img {
  border-radius: 10px 50px;
}

@media screen and (min-width: 1024px) {
  .projetos-personalizados .container {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
  }
  .projetos-personalizados img {
    border-radius: 10px 75px;
  }
}

/* PROCESSO DE INOVAÇÃO */
.processo-de-inovacao {
  padding: 5rem 0 15rem;
  background-color: #13233e;
  position: relative;
}

.processo-de-inovacao .section-title__variant + p {
  color: #fff;
}

.processo-de-inovacao .container {
  max-width: 1400px;
}

.accordion-container {
  display: flex;
  flex-direction: row;
  height: 600px;
  gap: 20px;
  width: 100%;
  margin-top: 60px;
}

.accordion-item {
  position: relative;
  height: 100%;
  flex: 1;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.accordion-item.active {
  flex: 3.5;
  cursor: default;
}

.bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
  transition: transform 0.7s ease;
}

.accordion-item:not(.active) .bg-overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 11, 28, 0.6);
  z-index: 2;
}

.accordion-content {
  position: relative;
  z-index: 3;
  height: 100%;
  width: 100%;
  padding: 30px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.inactive-content {
  display: flex;
  flex-direction: column-reverse;
  justify-content: space-between;
  align-items: center;
  opacity: 1;
  transition: opacity 0.3s ease;
  padding-bottom: 0;
  gap: 40px;
}

.accordion-item.active .inactive-content {
  opacity: 0;
  pointer-events: none;
  position: absolute;
}

.vertical-title {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
  margin-top: auto;
  margin-bottom: auto;
  text-align: center;
}

.vertical-title span {
  color: #fff;
  font-size: 2.5rem;
  font-style: normal;
  font-weight: 600;
  line-height: 125%;
  letter-spacing: -1.44px;
}

.bottom-number {
  margin-bottom: 0;
}

.bottom-number span {
  color: #fff;
  font-size: 2.5rem;
  font-style: normal;
  font-weight: 600;
  line-height: 125%;
  letter-spacing: -1.44px;
}

/* --- Active State Styles --- */
.active-content {
  position: absolute;
  bottom: 40px;
  left: 40px;
  right: 40px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 600px;
}

.accordion-item.active .active-content {
  opacity: 1;
  transform: translateY(0);
}

.active-header {
  display: flex;
  align-items: center;
  gap: 20px;
}

.active-number {
  color: #fff;
  font-size: 2.25rem;
  font-style: normal;
  font-weight: 600;
  line-height: 125%;
  letter-spacing: -1.44px;
}

.active-title {
  color: #fff;
  font-size: 2.25rem;
  font-style: normal;
  font-weight: 600;
  line-height: 125%;
  letter-spacing: -1.44px;
}

.active-description {
  color: #fff;
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: 130%;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 10px;
}

.processo-de-inovacao-wave {
  position: absolute;
  bottom: -7px;
  pointer-events: none;
  left: 0;
  width: 100%;
}

.processo-de-inovacao-wave svg {
  width: 100%;
  height: fit-content;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .accordion-container {
    flex-direction: column;
    height: auto;
    gap: 15px;
  }

  .accordion-item {
    width: 100%;
    height: 140px;
    flex: none;
    border-radius: 15px;
  }

  .accordion-item.active {
    height: 500px;
    flex: none;
  }

  .inactive-content {
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 10px;
    gap: 0;
  }

  .vertical-title {
    writing-mode: horizontal-tb;
    transform: none;
    margin: 0;
  }

  .vertical-title span {
    font-size: 2rem;
  }

  .bottom-number {
    margin: 0;
  }

  .bottom-number span {
    font-size: 2rem;
  }

  /* Active Mobile */
  .active-content {
    bottom: 20px;
    left: 20px;
    right: 20px;
  }

  .active-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .active-number,
  .active-title {
    font-size: 2rem;
  }
}
