/* ========================================
   HOME.CSS - Página Inicial (index.php)
   ======================================== */

/* Header específico da home (position absolute) */
.site-header {
  position: absolute;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Header fixo na home quando o usuário faz scroll */
body.header-fixed .site-header {
  position: fixed !important;
  animation: slideDown 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 980px;
  display: flex;
  align-items: flex-end;
  padding: 104px 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 720px;
}

.hero-title {
  font-family: Urbanist, system-ui, sans-serif;
  font-weight: 600;
  font-size: 48px;
  line-height: 1.2;
  color: var(--neutral-white);
  margin: 0 0 16px;
}

.hero-sub {
  color: var(--neutral-white);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.4;
  margin: 0 0 28px;
  max-width: 620px;
}

.btn-hero {
  padding: 16px 18px;
  font-size: 18px;
}

@media (max-width: 991.98px) {
  .hero {
    min-height: 720px;
  }

  .hero-title {
    font-size: 38px;
  }
}

/* ========================================
   SEÇÃO: FEEDBACKS / DEPOIMENTOS
   ======================================== */
.section-feedbacks {
  padding: 104px 0;
  background-color: #E9E9E9;
}

.section-feedbacks .row.align-items-start>.col-lg-4 {
  display: flex;
  align-items: center;
  min-height: 100%;
}

.feedback-summary {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
  width: 100%;
  min-height: 250px;
}

.stars {
  color: var(--secondary-base);
  letter-spacing: 2px;
  font-size: 16px;
  line-height: 1;
}

.big-metric {
  font-family: Urbanist, system-ui, sans-serif;
  font-weight: 600;
  font-size: 32px;
  line-height: 1.2;
  color: #242424;
  margin: 0;
}

.testimonial-card {
  border: 1px solid rgba(19, 23, 34, .12);
  border-radius: 8px;
  padding: 24px;
  background: #FAFAFA;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease;
}

.testimonial-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.testimonial-text {
  color: var(--neutral-soft);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 20px;
  flex: 1;
}

.testimonial-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.testimonial-name {
  font-weight: 600;
  font-size: 16px;
  color: #242424;
  margin: 0;
}

.testimonial-stars {
  margin-top: 4px;
}

.testimonial-stars .stars {
  font-size: 14px;
  letter-spacing: 1px;
}

.section-feedbacks .big-metric {
  color: var(--brand-primary-full);
}

.testimonial-card .testimonial-name {
  color: var(--brand-primary-full);
}

@media (max-width: 991px) {
  .section-feedbacks {
    padding: 80px 0;
  }

  .feedback-summary {
    margin-bottom: 24px;
    text-align: center;
  }

  .big-metric {
    font-size: 28px;
  }
}

@media (max-width: 767px) {
  .feedback-summary {
    min-height: 100%;
  }
}

/* ========================================
   SEÇÃO: SERVIÇOS (Home)
   ======================================== */
.section-services {
  padding: 104px 0;
  overflow: hidden;
  width: 100%;
}

.services-header {
  margin-bottom: 40px;
}

.services-nav {
  flex-shrink: 0;
}

.btn-carousel-nav {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--brand-primary-full);
  border-radius: 4px;
  background: var(--neutral-white);
  color: var(--brand-primary-full);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-carousel-nav:hover {
  background: var(--brand-primary-full);
  color: var(--neutral-white);
}

.btn-carousel-nav:active {
  transform: scale(0.95);
}

#servicesCarousel.owl-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
}

#servicesCarousel .owl-stage-outer {
  overflow: hidden;
  position: relative;
  width: 100%;
}

#servicesCarousel .owl-stage {
  display: flex;
  width: 100%;
}

#servicesCarousel .owl-item {
  opacity: 1;
  transition: opacity 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.service-item-card {
  width: 100%;
  height: 100%;
  background: var(--neutral-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.service-item-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.service-item-img {
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: #f0f0f0;
}

.service-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.service-item-card:hover .service-item-img img {
  transform: scale(1.05);
}

.service-item-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-item-title {
  font-family: Urbanist, system-ui, sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
  color: #242424;
  margin: 0;
}

.service-item-text {
  color: var(--neutral-soft);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.btn-service-more {
  width: 100%;
  background: var(--brand-primary-full);
  border: none;
  border-radius: 4px;
  color: var(--neutral-white);
  font-weight: 500;
  font-size: 12px;
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: background 0.2s ease;
  margin-top: 4px;
  text-align: center;
}

.btn-service-more:hover {
  background: var(--brand-primary-dark);
  color: var(--neutral-white);
}

.btn-service-more .btn-icon {
  font-size: 14px;
  transition: transform 0.2s ease;
}

.btn-service-more:hover .btn-icon {
  transform: translateX(2px);
}

#servicesCarousel .owl-nav {
  display: none;
}

#servicesCarousel .owl-dots {
  display: none;
}

.section-services .container-page {
  overflow: hidden;
  position: relative;
}

@media (max-width: 991px) {
  .services-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 767px) {
  .section-services {
    padding: 80px 0;
  }
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta {
  padding: 120px 0;
  background: linear-gradient(90deg, var(--brand-primary-full) 0%, rgba(3, 7, 17, 1) 100%);
}

.cta-title {
  font-family: Urbanist, system-ui, sans-serif;
  font-weight: 600;
  font-size: 48px;
  line-height: 1.2;
  margin: 0 0 16px;
}

.cta-sub {
  color: var(--neutral-light);
  font-size: 18px;
  line-height: 1.4;
  margin: 0;
  max-width: 520px;
}

.cta-img {
  border-radius: 2px;
  overflow: hidden;
  height: 378px;
}

.cta-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 991.98px) {
  .cta-title {
    font-size: 34px;
  }
}

/* ========================================
   SEÇÃO: PORTFÓLIO (Home)
   ======================================== */
.section-light#portfolio {
  padding: 104px 0;
}

.portfolio-layout {
  display: flex;
  gap: 16px;
  align-items: flex-end;
}

.portfolio-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.portfolio-column-small {
  flex: 0 0 auto;
  width: calc(25% - 12px);
}

.portfolio-column-medium {
  flex: 0 0 auto;
  width: calc(35% - 12px);
}

.portfolio-column-large {
  flex: 0 0 auto;
  width: calc(40% - 12px);
}

.portfolio-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #f0f0f0;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
}

.portfolio-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.portfolio-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  transition: transform 0.3s ease;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-column-small .portfolio-item {
  aspect-ratio: 4/3;
  min-height: 180px;
}

.portfolio-column-medium .portfolio-item {
  aspect-ratio: 4/3;
  min-height: 240px;
}

.portfolio-item-tall {
  height: 100%;
  min-height: 567px;
  aspect-ratio: auto;
}

@media (max-width: 991px) {
  .section-light#portfolio {
    padding: 80px 0;
  }

  .portfolio-layout {
    flex-direction: column;
    gap: 16px;
  }

  .portfolio-column-small,
  .portfolio-column-medium,
  .portfolio-column-large {
    width: 100%;
  }

  .portfolio-column-small .portfolio-item,
  .portfolio-column-medium .portfolio-item {
    aspect-ratio: 16/9;
    min-height: 250px;
  }

  .portfolio-item-tall {
    min-height: 400px;
  }
}

@media (max-width: 767px) {
  .portfolio-layout {
    gap: 12px;
  }

  .portfolio-column {
    gap: 12px;
  }

  .portfolio-item-tall {
    min-height: 300px;
  }
}

/* ========================================
   SEÇÃO: ARTIGOS / BLOG (Home)
   ======================================== */
.section-blog {
  padding: 104px 0;
  overflow: hidden;
  width: 100%;
}

#blogCarousel.owl-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
}

#blogCarousel .owl-stage-outer {
  overflow: hidden;
  position: relative;
  width: 100%;
}

#blogCarousel .owl-stage {
  display: flex;
  width: 100%;
}

#blogCarousel .owl-item {
  opacity: 1;
  transition: opacity 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.blog-img {
  height: 230px;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  background: #eee;
}

.blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-body {
  padding: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.blog-badge {
  width: fit-content;
  background: var(--neutral-white);
  border: 1px solid var(--secondary-lighter);
  border-radius: 2px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--secondary-base);
}

.blog-title {
  font-family: Urbanist, system-ui, sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
  color: #242424;
  margin: 0;
}

.blog-excerpt {
  color: var(--neutral-soft);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#blogCarousel .owl-nav {
  display: none;
}

#blogCarousel .owl-dots {
  display: none;
}

.section-blog .container-page {
  overflow: hidden;
  position: relative;
}

@media (max-width: 991px) {
  .section-blog {
    padding: 80px 0;
  }
}

/* ========================================
   SEÇÃO: CLIENTES / PARCEIROS
   ======================================== */
.section-clients {
  padding: 104px 0;
  overflow: hidden;
  width: 100%;
}

#clientsCarousel.owl-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-top: 16px;
}

#clientsCarousel .owl-stage-outer {
  overflow: hidden;
  position: relative;
  width: 100%;
}

#clientsCarousel .owl-stage {
  display: flex;
  width: 100%;
  align-items: center;
}

#clientsCarousel .owl-item {
  opacity: 0.6;
  transition: opacity 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

#clientsCarousel .owl-item.active {
  opacity: 1;
}

.client-pill {
  background: #f3f4f6;
  color: #9aa0aa;
  border-radius: 999px;
  padding: 14px 24px;
  min-width: 160px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.3s ease;
  margin: 0 auto;
}

.client-pill:hover {
  background: #e5e7eb;
  color: #6b7280;
  transform: translateY(-2px);
}

#clientsCarousel .owl-nav {
  display: none;
}

#clientsCarousel .owl-dots {
  display: none;
}

.section-clients .container-page {
  overflow: hidden;
  position: relative;
}

.section-clients .badge-mini-bar {
  display: inline-block;
  margin: 0 auto;
}

@media (max-width: 991px) {
  .section-clients {
    padding: 80px 0;
  }

  .client-pill {
    min-width: 140px;
    padding: 12px 20px;
  }
}

@media (max-width: 767px) {
  .client-pill {
    min-width: 120px;
    padding: 10px 16px;
    font-size: 12px;
  }
}

/* ========================================
   SEÇÃO: DESTAQUES / SERVIÇOS EM DESTAQUE
   ======================================== */
.section-destaques {
  padding: 104px 0;
}

.service-card {
  height: 180px;
  background: #f9fafb;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Link do card */
.service-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  width: 100%;
  height: 100%;
}

.service-card-link:hover {
  text-decoration: none;
  color: inherit;
}

/* Card com imagem e título sobreposto */
.service-card-image {
  height: 180px;
  padding: 0;
  background: transparent;
  border-radius: 8px;
  overflow: hidden;
}

.service-card-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.service-card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.service-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.4s ease;
  z-index: 1;
}

.service-card-title {
  font-family: Urbanist, system-ui, sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  color: #ffffff;
  margin: 0;
  text-align: center;
  padding: 0 16px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s ease, opacity 0.4s ease;
  opacity: 1;
}

/* Efeitos de hover */
.service-card-image:hover .service-card-image-wrapper img {
  transform: scale(1.1);
  filter: brightness(0.7);
}

.service-card-image:hover .service-card-overlay {
  background: rgba(0, 0, 0, 0.5);
}

.service-card-image:hover .service-card-title {
  transform: scale(1.05);
}

.service-card-text {
  font-size: 14px;
  color: #242424;
  font-weight: 500;
  margin-bottom: 16px;
}

.service-icon-box {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
}

.service-icon {
  width: 80px;
  height: 80px;
  background: #e5e7eb;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon svg {
  width: 40px;
  height: 40px;
}

.section-destaques .badge-mini-bar {
  display: inline-block;
  margin: 0 auto;
}

@media (max-width: 991px) {
  .section-destaques {
    padding: 80px 0;
  }

  .service-card {
    height: 160px;
    padding: 20px;
  }

  .service-card-image {
    height: 160px;
  }

  .service-card-title {
    font-size: 16px;
  }

  .service-icon {
    width: 70px;
    height: 70px;
  }
}

@media (max-width: 767px) {
  .service-card {
    height: 150px;
    padding: 18px;
  }

  .service-card-image {
    height: 150px;
  }

  .service-card-title {
    font-size: 14px;
    padding: 0 12px;
  }

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

  .service-icon svg {
    width: 35px;
    height: 35px;
  }
}

/* ========================================
   LOGO MARQUEE
   ======================================== */
.logo-marquee-section {
  background-color: #FAFAFA;
  padding: 24px 0;
}

.logo-marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.logo-marquee::before,
.logo-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  width: 200px;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.logo-marquee::before {
  left: 0;
  background: linear-gradient(to right, rgba(250, 250, 250, 1), rgba(250, 250, 250, 0));
}

.logo-marquee::after {
  right: 0;
  background: linear-gradient(to left, rgba(250, 250, 250, 1), rgba(250, 250, 250, 0));
}

.logo-marquee__track {
  display: flex;
  align-items: center;
  gap: 120px;
  width: max-content;
  animation: logo-marquee-scroll 30s linear infinite;
  padding: 0 100px;
}

.logo-marquee__img {
  height: 40px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.badge-mini-text {
  color: var(--brand-primary-full);
}

.section-dark .badge-mini-text {
  color: var(--neutral-white);
}

@keyframes logo-marquee-scroll {
  from {
    transform: translateX(0);
  }

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

@media (prefers-reduced-motion: reduce) {
  .logo-marquee__track {
    animation: none;
  }
}
