/* ========================================
   Home — Hero Carousel
   ======================================== */
.hero-carousel {
  position: relative;
  height: 55vh;
  min-height: 380px;
  overflow: hidden;
}

.hero-carousel .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-carousel .slide.active {
  opacity: 1;
}

.hero-carousel .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 74, 46, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.hero-content {
  text-align: center;
  color: var(--color-white);
  padding: 0 20px;
  max-width: 700px;
}

.hero-content h1 {
  color: var(--color-white);
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  animation: heroFadeUp 0.9s ease forwards;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: heroFadeUp 0.9s ease 0.2s forwards;
}

.hero-content .btn {
  opacity: 0;
  animation: heroFadeUp 0.9s ease 0.4s forwards;
}

/* ========================================
   Home — Recent Work Preview
   ======================================== */
.project-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.project-showcase-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-showcase-grid img:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* ========================================
   Home — Selling Points
   ======================================== */
.recommendations-wrap {
  padding-bottom: 2rem;
}

.points-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.recommendation-card {
  background: var(--color-surface);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  border-top: 4px solid var(--color-light-green);
}

.recommendation-card h3 {
  margin-bottom: 0.75rem;
}

/* ========================================
   Home — Responsive
   ======================================== */
@media (max-width: 768px) {
  .project-subtitle {
    display: none;
  }

  .project-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-showcase-grid img:last-child {
    grid-column: span 2;
  }

  .hero-carousel {
    height: 35vh;
    min-height: 220px;
  }


  .hero-content h1 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
  }

  .hero-content p {
    display: none;
  }

  .points-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero-content .btn {
    display: none;
  }
}

@media (max-width: 480px) {
  /* Merge all point cards into one unified card */
  .points-grid {
    display: block;
    background: var(--color-surface);
    border-radius: 8px;
    border-top: 4px solid var(--color-light-green);
    padding: 0 1.5rem;
    gap: 0;
  }

  .recommendation-card {
    background: none;
    border-radius: 0;
    border-top: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    padding: 1rem 0;
    text-align: left;
  }

  .recommendation-card:last-child {
    border-bottom: none;
  }

  .recommendation-card h3 {
    font-size: 1rem;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
  }

  .recommendation-card h3::before {
    content: '✓';
    color: var(--color-light-green);
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
  }

  .recommendation-card p {
    display: none;
  }

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

@media (max-width: 375px) {
  .hero-carousel {
    height: 40vh;
    min-height: 250px;
  }

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

  .points-grid {
    gap: 1rem;
  }

  .recommendation-card {
    padding: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-content h1,
  .hero-content p,
  .hero-content .btn {
    animation: none;
    opacity: 1;
  }
}
