/* Home page only (loaded by index.html). Uses the existing site palette and font. */

/* ---------- Hero ---------- */
body[data-page="home"] .home-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  padding: clamp(2.75rem, 6vw, 4.75rem) 1.25rem;
  background: linear-gradient(135deg, #6D28D9 0%, #4C1D95 55%, #1A1028 100%);
  color: #fff;
  text-align: center;
}
body[data-page="home"] .home-hero::before {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
body[data-page="home"] .home-hero::before {
  width: 520px;
  height: 520px;
  top: -260px;
  left: -160px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.35) 0%, rgba(167, 139, 250, 0) 70%);
}
body[data-page="home"] .home-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 64rem;
  margin: 0 auto;
}
body[data-page="home"] .home-hero-eyebrow {
  display: inline-block;
  margin: 0 0 1.1rem;
  padding: 0.42rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-wrap: balance;
}
body[data-page="home"] .home-hero-title {
  margin: 0 0 1rem;
  color: #fff;
  font-size: clamp(2.1rem, 5.4vw, 3.8rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
body[data-page="home"] .home-hero-accent {
  color: #C4B5FD;
  white-space: nowrap;
}
body[data-page="home"] .home-hero-sub {
  max-width: 40rem;
  margin: 0 auto 1.75rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.55;
}
body[data-page="home"] .home-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}
body[data-page="home"] .home-hero-ctas .btn {
  min-width: 12.5rem;
}
body[data-page="home"] .home-btn-ghost {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  color: #fff;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
body[data-page="home"] .home-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
body[data-page="home"] .home-hero a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* Hero photo carousel (shows only when hero photos are configured) */
body[data-page="home"] #hero-carousel {
  min-height: 0;
}
body[data-page="home"] #hero-carousel .hero-carousel-fallback {
  display: none !important;
}

/* ---------- Benefit strip ---------- */
body[data-page="home"] .home-benefits {
  background: #fff;
  border-bottom: 1px solid rgba(109, 40, 217, 0.12);
  padding: 1.35rem 1.25rem;
}
body[data-page="home"] .home-benefits-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1200px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem 1.5rem;
}
body[data-page="home"] .home-benefit {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
body[data-page="home"] .home-benefit-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 10px;
  background: #EDE9FE;
  color: #6D28D9;
}
body[data-page="home"] .home-benefit strong {
  display: block;
  color: #1A1028;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.3;
}
body[data-page="home"] .home-benefit span {
  display: block;
  color: #5B5670;
  font-size: 0.85rem;
  line-height: 1.4;
}

/* ---------- Shop by category: quick links ---------- */
body[data-page="home"] .home-cats-band .section-title {
  margin-bottom: 0.9rem;
}
body[data-page="home"] .home-quicknav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1.75rem;
}
body[data-page="home"] .home-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.95rem;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
body[data-page="home"] .home-chip:hover {
  background: #fff;
  border-color: #fff;
  color: #6A2CDB;
}
body[data-page="home"] .home-chip-all {
  background: #fff;
  border-color: #fff;
  color: #6A2CDB;
  font-weight: 800;
}
body[data-page="home"] .home-chip-all:hover {
  background: #EDE9FE;
  border-color: #EDE9FE;
}
body[data-page="home"] .home-chip:focus-visible,
body[data-page="home"] .home-cats-band a:focus-visible {
  outline: 3px solid #C4B5FD;
  outline-offset: 3px;
}

/* Category cards (static grid; the script-drawn tiles are not shown on the home page) */
body[data-page="home"] #home-categories {
  display: none !important;
}
body[data-page="home"] .home-cat-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}
body[data-page="home"] .home-cat-grid > li {
  display: flex;
}
body[data-page="home"] .home-cat-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  color: #1A1028;
  text-decoration: none;
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.55);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
body[data-page="home"] .home-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px -16px rgba(0, 0, 0, 0.6), 0 0 0 2px #A78BFA;
}
body[data-page="home"] .home-cat-card:focus-visible {
  outline: 3px solid #C4B5FD;
  outline-offset: 3px;
}
body[data-page="home"] .home-cat-media {
  display: block;
  aspect-ratio: 1 / 1;
  background: #fff;
  border-bottom: 1px solid #EDE9FE;
  overflow: hidden;
}
body[data-page="home"] .home-cat-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}
body[data-page="home"] .home-cat-card:hover .home-cat-media img {
  transform: scale(1.04);
}
body[data-page="home"] .home-cat-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.9rem 1rem 1rem;
  border-top: 3px solid #6A2CDB;
}
body[data-page="home"] .home-cat-name {
  color: #1A1028;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
}
body[data-page="home"] .home-cat-cta {
  color: #6A2CDB;
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- Closing call to action ---------- */
body[data-page="home"] .home-cta-band {
  background: #EDE9FE;
  padding: clamp(2.25rem, 5vw, 3.25rem) 1.25rem;
  text-align: center;
}
body[data-page="home"] .home-cta-inner {
  max-width: 44rem;
  margin: 0 auto;
}
body[data-page="home"] .home-cta-title {
  margin: 0 0 0.6rem;
  color: #1A1028;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  font-weight: 850;
  letter-spacing: -0.02em;
}
body[data-page="home"] .home-cta-sub {
  margin: 0 auto 1.4rem;
  color: #3F3A52;
  font-size: 1rem;
  line-height: 1.55;
}
body[data-page="home"] .home-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
body[data-page="home"] .home-cta-actions .btn {
  min-width: 11.5rem;
  border-radius: 8px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
body[data-page="home"] .home-btn-outline {
  background: transparent;
  border: 2px solid #6A2CDB;
  color: #6A2CDB;
}
body[data-page="home"] .home-btn-outline:hover {
  background: #fff;
  color: #5B21B6;
}
body[data-page="home"] .home-cta-band a:focus-visible,
body[data-page="home"] .home-benefits a:focus-visible {
  outline: 3px solid #6D28D9;
  outline-offset: 3px;
}

/* ---------- Tablet / mobile ---------- */
@media (min-width: 641px) and (max-width: 1024px) {
  body[data-page="home"] .home-cat-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
  }
  body[data-page="home"] .home-cat-grid > li {
    flex: 0 0 calc((100% - 2.5rem) / 3);
  }
}
@media (max-width: 900px) {
  body[data-page="home"] .home-benefits-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  body[data-page="home"] .home-hero {
    min-height: 0;
    padding: 2.5rem 1.1rem 2.75rem;
  }
  body[data-page="home"] .home-hero-eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.05em;
    border-radius: 14px;
    line-height: 1.45;
  }
  body[data-page="home"] .home-hero-ctas {
    flex-direction: column;
    align-items: stretch;
    max-width: 20rem;
    margin: 0 auto;
  }
  body[data-page="home"] .home-hero-ctas .btn {
    min-width: 0;
    width: 100%;
  }
  body[data-page="home"] .home-benefits {
    padding: 1.1rem 1rem;
  }
  body[data-page="home"] .home-benefits-list {
    gap: 1rem 0.9rem;
  }
  body[data-page="home"] .home-benefit {
    gap: 0.6rem;
  }
  body[data-page="home"] .home-benefit-icon {
    width: 34px;
    height: 34px;
    padding: 7px;
  }
  body[data-page="home"] .home-benefit strong {
    font-size: 0.88rem;
  }
  body[data-page="home"] .home-benefit span {
    font-size: 0.8rem;
  }
  body[data-page="home"] .home-quicknav {
    gap: 0.45rem;
    margin-bottom: 1.4rem;
  }
  body[data-page="home"] .home-chip {
    padding: 0.45rem 0.8rem;
    font-size: 0.8rem;
  }
  body[data-page="home"] .home-cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }
  body[data-page="home"] .home-cat-body {
    padding: 0.7rem 0.75rem 0.8rem;
  }
  body[data-page="home"] .home-cat-name {
    font-size: 0.9rem;
  }
  body[data-page="home"] .home-cat-cta {
    font-size: 0.72rem;
  }
  body[data-page="home"] .home-cta-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 20rem;
    margin: 0 auto;
  }
  body[data-page="home"] .home-cta-actions .btn {
    min-width: 0;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .home-chip,
  body[data-page="home"] .home-cat-card,
  body[data-page="home"] .home-cat-media img {
    transition: none;
  }
  body[data-page="home"] .home-cat-card:hover,
  body[data-page="home"] .home-cat-card:hover .home-cat-media img {
    transform: none;
  }
}
