/* Impressões Carousel Section */
.row-impressoes {
  padding: var(--space-20) 0;
  background-color: #f8f9fa;
}

.row-impressoes .container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.impressoes-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.impressoes-header p {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary-500);
  margin-bottom: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.impressoes-header h1 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: var(--font-weight-bold);
  color: var(--color-secondary-900);
  line-height: var(--line-height-tight);
}

/* Carousel Container */
.carousel-wrapper {
  position: relative;
  overflow: hidden;
  padding: var(--space-8) 0;
}

.carousel-track {
  display: flex;
  gap: var(--space-6);
  transition: transform 0.5s ease;
  touch-action: pan-y; /* Allow vertical scrolling, handle horizontal swipes in JS */
}

/* Carousel Card */
.materials-carousel .carousel-card,
.structures-carousel .carousel-card {
  flex: 0 0 calc(25% - var(--space-5));
  min-width: 280px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  height: 450px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform var(--transition-base);
}

.materials-carousel .carousel-card:hover,
.structures-carousel .carousel-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
}

/* Card Overlay */
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
}

/* Card Header with Number and Icon */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.card-number {
  font-size: 3rem;
  font-weight: var(--font-weight-bold);
  line-height: 1;
  opacity: 0.9;
}

.card-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-md);
  padding: var(--space-2);
}

.card-icon img,
.card-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Card Content */
.card-content {
  margin-top: auto;
}

.card-title {
  font-size: clamp(1.5rem, 2.5vw, 1.75rem);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-3);
}

.card-description {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
  opacity: 0.95;
}

/* Carousel Navigation */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.carousel-nav.prev {
  left: var(--space-4);
}

.carousel-nav.next {
  right: var(--space-4);
}

.carousel-nav button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
}

.carousel-nav button:hover {
  background-color: var(--color-primary-500);
  color: #ffffff;
  transform: scale(1.1);
}

.carousel-nav button svg {
  width: 24px;
  height: 24px;
}

/* Carousel Indicators */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-6);
}

.carousel-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #cbd5e0;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
}

.carousel-indicator.active {
  background-color: var(--color-primary-500);
  width: 32px;
  border-radius: 6px;
}

/* Estruturas Section - Same styles */
.row-estruturas {
  padding: var(--space-20) 0;
  background-color: #ffffff;
}

.row-estruturas .container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.estruturas-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.estruturas-header p {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary-500);
  margin-bottom: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.estruturas-header h1 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: var(--font-weight-bold);
  color: var(--color-secondary-900);
  line-height: var(--line-height-tight);
}

/* Responsive */
@media (max-width: 1024px) {
  .materials-carousel .carousel-card,
  .structures-carousel .carousel-card {
    flex: 0 0 calc(33.333% - var(--space-4));
    min-width: 250px;
  }
}

@media (max-width: 768px) {
  .materials-carousel .carousel-card,
  .structures-carousel .carousel-card {
    flex: 0 0 calc(50% - var(--space-3));
    min-width: 220px;
    height: 400px;
  }
  
  .card-number {
    font-size: 2.5rem;
  }
  
  .card-icon {
    width: 50px;
    height: 50px;
  }
  
  .carousel-nav button {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .materials-carousel .carousel-card,
  .structures-carousel .carousel-card {
    flex: 0 0 calc(100% - var(--space-2));
    min-width: 100%;
  }
  
  .carousel-nav {
    display: none;
  }
}
