/*
 * home.css — Home page styles
 *
 * Requirements: 1.2, 1.3
 */

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
  background-color: var(--color-black);
  color: var(--color-white);
  padding: var(--space-3xl) var(--space-lg);
  text-align: center;
}

.hero__inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.hero__logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: var(--radius-lg);
}

.hero__heading {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero__intro {
  font-size: var(--font-size-lg);
  color: rgba(255, 255, 255, 0.8);
  line-height: var(--line-height);
  max-width: 60ch;
  margin-bottom: 0;
  white-space: pre-line;
}

/* CTA buttons — Requirements 1.3 */
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
  margin-top: var(--space-sm);
}

/* ============================================================
   Featured Gallery Preview
   ============================================================ */
.featured-gallery {
  padding: var(--space-3xl) var(--space-lg);
  background-color: var(--color-light);
}

.featured-gallery__inner {
  max-width: 1280px;
  margin: 0 auto;
}

.featured-gallery__heading {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: var(--space-xl);
  text-align: center;
}

.featured-gallery__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.featured-gallery__item {
  overflow: hidden;
  border-radius: var(--radius-md);
  background-color: var(--color-white);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.featured-gallery__item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.featured-gallery__item a {
  display: block;
  overflow: hidden;
}

.featured-gallery__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.featured-gallery__item:hover .featured-gallery__img {
  transform: scale(1.04);
}

.featured-gallery__caption {
  padding: var(--space-sm) var(--space-md);
  font-size: var(--font-size-sm);
  color: var(--color-gray);
  margin-bottom: 0;
}

.featured-gallery__more {
  text-align: center;
  margin-top: var(--space-xl);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (min-width: 480px) {
  .hero__heading {
    font-size: var(--font-size-4xl);
  }

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

@media (min-width: 768px) {
  .hero {
    padding: var(--space-3xl) var(--space-2xl);
  }

  .hero__logo {
    width: 120px;
    height: 120px;
  }

  .featured-gallery__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .featured-gallery__img {
    height: 220px;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding: 6rem var(--space-2xl);
  }

  .hero__heading {
    font-size: 3rem;
  }

  .featured-gallery__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .featured-gallery__img {
    height: 240px;
  }
}

/* ============================================================
   Dark Mode Support for Home Page
   ============================================================ */
@media (prefers-color-scheme: dark) {
  /* Hero section - keep dark background, white text is fine */
  .hero {
    background-color: #1a1a1a;
  }

  .hero__heading {
    color: #ffffff;
  }

  .hero__intro {
    color: rgba(255, 255, 255, 0.8);
  }

  /* Featured gallery section */
  .featured-gallery {
    background-color: #121212;
  }

  .featured-gallery__heading {
    color: #e5e5e5;
  }

  .featured-gallery__item {
    background-color: #1e1e1e;
    border: 1px solid #3a3a3a;
  }

  .featured-gallery__caption {
    color: #a0a0a0;
    background-color: #1e1e1e;
  }
}
