/* ============================================
   CHROCHELY CREATIONS — Homepage Sections
   Hero, Collections, Bestsellers, About,
   Gallery, Reviews, Custom Orders
   ============================================ */

/* ══════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(160deg, var(--cream-light) 0%, var(--cream) 40%, var(--soft-pink-light) 70%, var(--blush) 100%);
  padding-top: var(--nav-height);
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: radial-gradient(circle at 20% 50%, var(--brown) 1px, transparent 1px),
                    radial-gradient(circle at 80% 20%, var(--brown) 1px, transparent 1px),
                    radial-gradient(circle at 60% 80%, var(--brown) 1px, transparent 1px);
  background-size: 60px 60px, 80px 80px, 100px 100px;
}

.hero-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.3;
  pointer-events: none;
}

.hero-glow-1 { background: var(--blush); top: -10%; right: -5%; }
.hero-glow-2 { background: var(--soft-pink-light); bottom: -20%; left: -10%; }
.hero-glow-3 { background: var(--warm-beige); top: 40%; left: 30%; width: 300px; height: 300px; }

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: var(--space-10) var(--space-5);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--white-70);
  backdrop-filter: blur(8px);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: var(--space-6);
  border: 1px solid rgba(231,215,201,0.3);
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--fs-6xl);
  font-weight: var(--fw-bold);
  line-height: 1.1;
  color: var(--brown-dark);
  margin-bottom: var(--space-6);
  letter-spacing: var(--ls-tight);
}

.hero-title .accent {
  color: var(--brown-light);
  font-style: italic;
}

.hero-subtitle {
  font-size: var(--fs-lg);
  color: var(--brown-light);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-8);
  max-width: 460px;
}

.hero-buttons {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: var(--space-8);
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(231,215,201,0.4);
}

.hero-stat-number {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--brown-dark);
  display: block;
}

.hero-stat-label {
  font-size: var(--fs-xs);
  color: var(--brown-light);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  margin-top: var(--space-1);
}

.hero-images {
  position: relative;
  height: 520px;
}

.hero-image-main {
  position: absolute;
  width: 320px;
  height: 400px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.hero-image-main img { width: 100%; height: 100%; object-fit: cover; }

.hero-image-float {
  position: absolute;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-image-float-1 {
  width: 180px; height: 220px;
  top: 0; left: 0;
  z-index: 1;
  animation: float-slow 6s ease-in-out infinite;
}

.hero-image-float-2 {
  width: 160px; height: 200px;
  bottom: 0; right: 0;
  z-index: 3;
  animation: float-slow 6s ease-in-out infinite 2s;
}

.hero-image-float-3 {
  width: 120px; height: 150px;
  top: 20px; right: 40px;
  z-index: 1;
  animation: float-slow 6s ease-in-out infinite 4s;
}

.hero-image-float img { width: 100%; height: 100%; object-fit: cover; }

.hero-deco {
  position: absolute;
  pointer-events: none;
  z-index: 4;
}

.hero-deco-yarn {
  width: 80px;
  height: 80px;
  opacity: 0.2;
  animation: float-rotate 10s linear infinite;
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes float-rotate {
  0% { transform: rotate(0deg) translateY(0); }
  50% { transform: rotate(180deg) translateY(-10px); }
  100% { transform: rotate(360deg) translateY(0); }
}

/* ══════════════════════════════════════
   FEATURED COLLECTIONS
   ══════════════════════════════════════ */
.collections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.collections-grid .collection-card:first-child {
  grid-row: span 2;
  aspect-ratio: auto;
}

/* ══════════════════════════════════════
   BESTSELLERS SECTION
   ══════════════════════════════════════ */
.bestsellers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.bestsellers-more {
  text-align: center;
  margin-top: var(--space-10);
}

/* ══════════════════════════════════════
   ABOUT / STORY SECTION
   ══════════════════════════════════════ */
.about-section {
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--soft-pink-light) 0%, transparent 70%);
  opacity: 0.5;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.about-images {
  position: relative;
  height: 480px;
}

.about-image-1 {
  position: absolute;
  width: 280px;
  height: 360px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  top: 0; left: 0;
  z-index: 2;
}

.about-image-2 {
  position: absolute;
  width: 240px;
  height: 300px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  bottom: 0; right: 0;
  z-index: 1;
}

.about-image-3 {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: var(--radius-full);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  bottom: 40px; left: 60px;
  z-index: 3;
  border: 4px solid var(--white);
}

.about-image-1 img,
.about-image-2 img,
.about-image-3 img { width: 100%; height: 100%; object-fit: cover; }

.about-content { position: relative; z-index: 2; }

.about-content h2 {
  font-family: var(--font-display);
  margin-bottom: var(--space-6);
}

.about-content p { margin-bottom: var(--space-4); }

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.about-feature {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--white-70);
  border-radius: var(--radius-md);
}

.about-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--blush);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: var(--fs-lg);
}

.about-feature-text {
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--brown-dark);
}

/* ══════════════════════════════════════
   PINTEREST GALLERY (Masonry)
   ══════════════════════════════════════ */
.gallery-masonry {
  columns: 4;
  column-gap: var(--space-4);
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: var(--space-4);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-normal) var(--ease-smooth);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform var(--duration-slower) var(--ease-smooth);
}

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

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(107,78,69,0.6) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-smooth);
  display: flex;
  align-items: flex-end;
  padding: var(--space-4);
}

.gallery-item:hover .gallery-item-overlay { opacity: 1; }

.gallery-item-overlay span {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
}

/* ══════════════════════════════════════
   REVIEWS SECTION
   ══════════════════════════════════════ */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

/* ══════════════════════════════════════
   CUSTOM ORDERS CTA
   ══════════════════════════════════════ */
.custom-cta {
  background: linear-gradient(135deg, var(--cream) 0%, var(--soft-pink-light) 50%, var(--blush) 100%);
  border-radius: var(--radius-2xl);
  padding: var(--space-16);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.custom-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.4) 0%, transparent 60%);
}

.custom-cta-content { position: relative; z-index: 2; max-width: 560px; margin: 0 auto; }

.custom-cta h2 {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  margin-bottom: var(--space-4);
}

.custom-cta p {
  font-size: var(--fs-md);
  margin-bottom: var(--space-8);
  color: var(--brown-light);
}

.custom-cta-features {
  display: flex;
  justify-content: center;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}

.custom-cta-feature {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--brown);
  font-weight: var(--fw-medium);
}

.custom-cta-feature svg { width: 18px; height: 18px; color: var(--success); }

/* ══════════════════════════════════════
   RESPONSIVE — Homepage
   ══════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-title { font-size: var(--fs-4xl); }
  .hero-images { height: 420px; }
  .hero-image-main { width: 260px; height: 340px; }
  .hero-image-float-1 { width: 150px; height: 180px; }
  .hero-image-float-2 { width: 130px; height: 170px; }
  .hero-image-float-3 { width: 100px; height: 120px; }
  .bestsellers-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-masonry { columns: 3; }
}

@media (max-width: 768px) {
  .hero { min-height: auto; padding: calc(var(--mobile-nav-height) + var(--space-8)) 0 var(--space-10); }
  .hero-inner { grid-template-columns: 1fr; gap: var(--space-8); text-align: center; }
  .hero-content { max-width: 100%; }
  .hero-title { font-size: var(--fs-3xl); }
  .hero-subtitle { max-width: 100%; font-size: var(--fs-base); }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-images { height: 300px; }
  .hero-image-main { width: 200px; height: 260px; }
  .hero-image-float-1 { width: 110px; height: 140px; }
  .hero-image-float-2 { width: 100px; height: 130px; }
  .hero-image-float-3 { display: none; }

  .collections-grid { grid-template-columns: repeat(2, 1fr); }
  .collections-grid .collection-card:first-child { grid-row: auto; }

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

  .about-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .about-images { height: 300px; order: -1; }
  .about-image-1 { width: 200px; height: 260px; }
  .about-image-2 { width: 170px; height: 220px; }
  .about-image-3 { width: 100px; height: 100px; bottom: 20px; left: 40px; }
  .about-features { grid-template-columns: 1fr; }

  .gallery-masonry { columns: 2; }
  .reviews-grid { grid-template-columns: 1fr; }

  .custom-cta { padding: var(--space-10) var(--space-6); border-radius: var(--radius-xl); }
  .custom-cta h2 { font-size: var(--fs-2xl); }
  .custom-cta-features { gap: var(--space-4); }
}

@media (max-width: 480px) {
  .hero-title { font-size: var(--fs-2xl); }
  .hero-stats { flex-direction: column; gap: var(--space-4); align-items: center; }
  .hero-images { height: 240px; }
  .hero-image-main { width: 170px; height: 220px; }
  .hero-image-float-1 { width: 90px; height: 110px; }
  .hero-image-float-2 { width: 80px; height: 100px; }
  .collections-grid { grid-template-columns: 1fr; }
  .gallery-masonry { columns: 2; column-gap: var(--space-3); }
}
