/* ========================================
   Alpha v2 — Homepage Styles
   Styles specific to index.html
   ======================================== */

/* ========================================
   1. HERO
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--home-hero-gradient);
  padding: var(--hero-pad-top) var(--space-page-x) var(--hero-pad-bottom);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 80%;
  height: 100%;
  background: radial-gradient(ellipse at center, var(--overlay-accent-faint) 0%, transparent 65%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 10%;
  left: -15%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse at center, var(--overlay-accent-soft) 0%, transparent 60%);
  pointer-events: none;
}

.hero-ripple {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 200px at 20% 80%, var(--overlay-primary-light) 0%, transparent 100%),
    radial-gradient(ellipse 400px 150px at 75% 30%, var(--overlay-silver-faint) 0%, transparent 100%),
    radial-gradient(ellipse 500px 180px at 50% 60%, var(--overlay-primary-faint) 0%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 80%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent);
  pointer-events: none;
  animation: rippleShift var(--anim-ripple) ease-in-out infinite alternate;
}

@keyframes rippleShift {
  0% { opacity: 0.6; transform: scale(1) translateY(0); }
  50% { opacity: 1; transform: scale(1.02) translateY(-5px); }
  100% { opacity: 0.7; transform: scale(0.99) translateY(3px); }
}

.hero-content {
  position: relative;
  z-index: var(--z-raised);
  max-width: 780px;
  text-align: center;
}

.hero h1 em {
  font-style: normal;
  color: var(--text-on-dark-em);
}

.hero-sub {
  font-size: var(--text-body-lg);
  color: var(--text-on-dark-sub);
  max-width: 560px;
  margin: 0 auto var(--space-2xl);
  line-height: var(--lh-prose);
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  flex-wrap: wrap;
  margin-bottom: var(--space-3xl);
}
/* Both hero CTAs render at the same width — sized to the wider label.
   Colours are semantic: Explore Products = blue (ordinary action),
   Get in Touch = white (leads to the contact form). */
.hero-buttons .btn-primary,
.hero-buttons .btn-white {
  min-width: 190px;
}

/* ========================================
   2. PRODUCTS
   ======================================== */
.products {
  background: var(--home-products-gradient);
  padding: var(--space-section-y) var(--space-page-x) var(--space-4);
  position: relative;
}


.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-card);
}

/* ========================================
   3. SHOWER FILTER
   ======================================== */
.shower {
  background: var(--home-shower-gradient);
  padding: var(--space-section-y) var(--space-page-x);
  position: relative;
  overflow: hidden;
}


.shower-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-xl);
  align-items: center;
}

.shower-visual {
  position: relative;
  height: 400px;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: linear-gradient(135deg, var(--overlay-primary-soft) 0%, var(--overlay-primary-light) 100%);
  border: var(--lg-border);
  box-shadow: var(--lg-shadow);
}

.shower-visual-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.3);
}

.shower-content h2 {
  font-size: var(--text-h2);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
  letter-spacing: -0.02em;
}

.shower-content .shower-sub {
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-1-8);
  line-height: var(--lh-prose);
}

.shower-benefits {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.shower-benefit {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  /* Content row — translucent fill only, no blur (content is never glass). */
  background: var(--glass-regular);
  border-radius: var(--radius-sm);
  padding: var(--padding-card-sm);
  border: 1px solid var(--border-medium);
}

.shower-benefit svg {
  width: var(--icon-sm);
  height: var(--icon-sm);
  color: var(--color-deep);
  flex-shrink: 0;
  margin-top: 1px;
}

.shower-benefit-text {
  font-size: var(--text-sm-plus);
  color: var(--color-text);
  font-weight: 500;
  line-height: var(--lh-normal-5);
}

/* ========================================
   4. WHY CHOOSE US
   Single horizontal-scrolling row of cards. The pin/scrub mechanic is
   shared with the product-detail "Key Features" row (Alpha.horizontalScroll
   in shared.js).
   ======================================== */
.why {
  background: var(--home-why-gradient);
  /* Fills the viewport so that, while pinned, the whole screen IS this
     section — the Shower section above and the CTA below are off-screen
     and cannot appear to move during the horizontal card scrub. Content
     is vertically centred within that full-height frame. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-section-y) var(--space-page-x);
  position: relative;
  overflow: hidden;
}

/* The .section-container caps content at the same max-width as every other
   section, so the scroll track scrubs within that window — not full-bleed. */

.why__header {
  text-align: center;
  margin-bottom: var(--gap-lg);
}

.why__header .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* Horizontal scroll clipping window — shared .hscroll-wrapper primitive
   (primitives.css): overflow clip + directional edge-fade mask. */

.why-track {
  display: flex;
  gap: var(--gap-card);
  width: max-content;
  will-change: transform;
}

/* Static informational card — not clickable, so no hover affordance. */
.why-card {
  flex-shrink: 0;
  width: 380px;
  background: var(--color-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: var(--space-2xl);
  box-shadow: var(--card-shadow);
}

.why-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-pool);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
  color: var(--color-primary);
}

.why-card-icon svg {
  width: 24px;
  height: 24px;
}

.why-card h3 {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
  letter-spacing: -0.01em;
}

.why-card p {
  font-size: var(--text-sm-plus);
  color: var(--color-text-secondary);
  line-height: var(--lh-body);
}

/* CTA — styles in global.css */

/* Scroll to top — styles in global.css */

/* ========================================
   8. RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .shower-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .shower-visual {
    height: 300px;
  }

  .why-card {
    width: 340px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: var(--hero-pad-top-m) var(--space-page-x-m) var(--hero-pad-bottom-m);
  }

  .products-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .why-card {
    width: 300px;
    padding: var(--space-xl);
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-buttons .btn-primary,
  .hero-buttons .btn-white {
    justify-content: center;
    width: 100%;
  }

  .why-card {
    width: 260px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-buttons .btn-white {
    justify-content: center;
    width: 100%;
  }

  .cta-contact {
    flex-direction: column;
    gap: var(--space-sm);
  }

}

/* ========================================
   REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  .hero-ripple,
  .hero-content::before,
  .ring,
  .wave-divider::after {
    animation: none !important;
  }
}
