/* =============================================================
   PAGE — HOME
   ============================================================= */

/* -----------------------------------------------------------
   HERO — Full-viewport cinematic
----------------------------------------------------------- */

.hero-section {
  position: relative;
  height: 100svh;
  min-height: 600px;
  /* Cap prevents hero from dominating very wide / zoomed-out screens.
     Without this, 100svh at 67% browser zoom ≈ 1600px+ — enormous
     relative to the 560px-wide text block anchored to the bottom-left. */
  max-height: 860px;
  background-image: url('/assets/images/hero/wonderland-hero-printer.png');
  background-size: cover;
  background-position: right center;
  background-color: #08080c;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Gradient overlay: heavy on left + bottom for text, clears right */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      rgba(8, 8, 12, 0.88) 0%,
      rgba(8, 8, 12, 0.65) 38%,
      rgba(8, 8, 12, 0.22) 65%,
      rgba(8, 8, 12, 0.04) 100%
    ),
    linear-gradient(
      to top,
      rgba(8, 8, 12, 0.80) 0%,
      rgba(8, 8, 12, 0.28) 18%,
      transparent 45%
    );
  pointer-events: none;
}

/* Content block: bottom-left */
.hero__inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: flex-end;
  width: 100%;
  max-width: 1600px;
  margin-inline: auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem) clamp(3.5rem, 7vh, 5.5rem);
}

.hero__content {
  max-width: 560px;
}

.hero__eyebrow {
  font-size: 11px;
  font-family: var(--font-body);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-5);
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.5vw, 5.5rem);
  font-weight: var(--weight-regular);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: var(--space-5);
}

.hero__body {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.65);
  line-height: var(--leading-relaxed);
  max-width: 440px;
  margin-bottom: var(--space-9);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Outline button on dark hero needs a visible white border */
.hero__actions .btn--outline {
  border-color: rgba(255, 255, 255, 0.50);
  color: rgba(255, 255, 255, 0.88);
}

.hero__actions .btn--outline:hover {
  border-color: rgba(255, 255, 255, 0.80);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
}

/* Scroll indicator */
.hero__scroll {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding-bottom: var(--space-7);
  flex-shrink: 0;
}

.hero__scroll-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.42);
  transition: color var(--transition-fast);
  animation: hero-bounce 2.4s ease-in-out infinite;
}

.hero__scroll-btn:hover {
  color: rgba(255, 255, 255, 0.82);
}

@keyframes hero-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

/* --- Tablet --- */
@media (max-width: 900px) {
  .hero__inner {
    padding-bottom: clamp(3rem, 6vh, 4.5rem);
  }
}

/* --- Mobile --- */
@media (max-width: 640px) {
  .hero-section {
    min-height: 560px;
    background-position: center;
  }

  .hero__inner {
    padding-bottom: clamp(2.5rem, 5vh, 3.5rem);
  }

  .hero__headline {
    font-size: clamp(2.2rem, 9vw, 2.8rem);
  }

  .hero__body {
    font-size: var(--text-sm);
  }
}


/* -----------------------------------------------------------
   SECTION BACKGROUND TREATMENTS
   Each homepage section has its own background to feel distinct.
   No hard borders — colour changes and subtle glows do the work.
----------------------------------------------------------- */

/* Shop Products — near-black with a soft gold glow behind heading/cards */
#shop-preview-section {
  background-color: var(--color-bg-base);
  background-image: radial-gradient(
    ellipse 100% 80% at 50% 15%,
    rgba(201, 168, 76, 0.055) 0%,
    transparent 65%
  );
}

/* Custom Fabrication — charcoal band, slightly lighter than base,
   with a faint industrial grid texture and soft gold glow at top */
#home-fab-section {
  background-color: var(--color-bg-surface);
  background-image:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(201, 168, 76, 0.06) 0%, transparent 60%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 47px,
      rgba(201, 168, 76, 0.022) 47px,
      rgba(201, 168, 76, 0.022) 48px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 47px,
      rgba(201, 168, 76, 0.022) 47px,
      rgba(201, 168, 76, 0.022) 48px
    );
}

/* -----------------------------------------------------------
   SHOP PRODUCTS PREVIEW — First section below hero
   Cards left-align naturally via auto-fill (no centering).
----------------------------------------------------------- */

.shop-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-10);
}

.shop-preview-footer {
  text-align: center;
  margin-top: var(--space-12);
}

@media (max-width: 900px) {
  .shop-preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Keep 2-column on mobile — compact card styles in card.css handle the narrow width */
@media (max-width: 560px) {
  .shop-preview-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
    margin-top: var(--space-6);
  }
}

/* --- Mobile: reduce fab section vertical padding so steps + CTA stay compact --- */
@media (max-width: 767px) {
  #home-fab-section {
    padding-block: clamp(var(--space-8), 5vw, var(--space-12));
  }

  #home-fab-section .section-header {
    margin-bottom: var(--space-6);
  }
}

