/* =============================================================================
   ZenSleepZone — Home Page + Footer
   File: css/zsz-home-footer.css
   Loaded: functions.php — home page (is_front_page) + every page (footer)
   Depends: zsz-tokens.css, zsz-shared.css
   ============================================================================= */

/* ═══════════════════════════════════════════════════════════════════════════
   HOME — HERO
   ═══════════════════════════════════════════════════════════════════════════ */
.zsz-home-hero {
  padding: 4rem 0 3rem;
  min-height: 30vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.zsz-home-hero__content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: center;
  text-align: center;
}
@media (min-width: 768px) {
  .zsz-home-hero__content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    text-align: left;
  }
}
.zsz-home-hero h1 {
  font-family: var(--ast-heading-font-family,'Lora',serif);
  font-size: clamp(2.2rem,4.5vw,3.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1.2rem;
  background: linear-gradient(45deg,#fff,#f0f8ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.zsz-home-hero__sub {
  font-size: clamp(1rem,2.2vw,1.25rem);
  color: rgba(255,255,255,.92);
  margin-bottom: 1.8rem;
  line-height: 1.65;
}
/* Stats row */
.zsz-hero-stats {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
.zsz-hero-stat__num {
  font-size: clamp(1.5rem,3vw,2rem);
  font-weight: 700;
  color: #fff;
  display: block;
}
.zsz-hero-stat__lbl {
  font-size: clamp(.75rem,1.5vw,.9rem);
  color: rgba(255,255,255,.82);
}
/* Sleep visualisation orb */
.zsz-sleep-orb {
  position: relative;
  width: clamp(200px,35vw,380px);
  height: clamp(200px,35vw,380px);
  margin: 0 auto;
  background: rgba(255,255,255,.10);
  border-radius: 50%;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.20);
  display: flex; align-items: center; justify-content: center;
  animation: zsz-breathe 4s ease-in-out infinite;
}
.zsz-sleep-orb__ring {
  position: absolute;
  border: 2px solid rgba(255,255,255,.28);
  border-radius: 50%;
  animation: zsz-pulse-ring 3s ease-in-out infinite;
}
.zsz-sleep-orb__ring:nth-child(1){width:100%;height:100%;animation-delay:0s}
.zsz-sleep-orb__ring:nth-child(2){width:78%;height:78%;top:11%;left:11%;animation-delay:.5s}
.zsz-sleep-orb__ring:nth-child(3){width:56%;height:56%;top:22%;left:22%;animation-delay:1s}
.zsz-sleep-orb__icon {
  font-size: clamp(2.5rem,5vw,4rem);
  color: #fff;
  z-index: 3;
  animation: zsz-float 3s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HOME — INTRO STRIP
   ═══════════════════════════════════════════════════════════════════════════ */
.zsz-intro {
  background: linear-gradient(135deg,#f0f4ff 0%,#fdf0ff 100%);
  padding: 3rem 0;
  text-align: center;
  border-bottom: 1px solid var(--zsz-border);
}
.zsz-intro__inner { max-width: 820px; margin: 0 auto; padding: 0 20px; }
.zsz-intro h2 {
  font-family: var(--ast-heading-font-family,'Lora',serif);
  font-size: clamp(1.5rem,3vw,2rem); font-weight:700; color:var(--zsz-t1);
  margin-bottom:.75rem;
}
.zsz-intro p { font-size:1rem; color:var(--zsz-t2); line-height:1.75; }

/* ═══════════════════════════════════════════════════════════════════════════
   HOME — SECTIONS (generic layout wrapper)
   ═══════════════════════════════════════════════════════════════════════════ */
.zsz-home-section {
  padding: 4.5rem 0;
}
.zsz-home-section--alt {
  background: var(--zsz-bg);
}
.zsz-home-section--white {
  background: var(--zsz-bg-white);
}

/* ═══════════════════════════════════════════════════════════════════════════
   HOME — CATEGORY CARDS GRID
   ═══════════════════════════════════════════════════════════════════════════ */
.zsz-home-cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap: 1.75rem;
}
.zsz-home-cat-card {
  background: var(--zsz-bg-card);
  border-radius: var(--zsz-r-lg);
  overflow: hidden;
  box-shadow: var(--zsz-sh);
  border: 1.5px solid var(--zsz-border);
  transition: transform var(--zsz-ease), box-shadow var(--zsz-ease);
  text-decoration: none;
  display: block;
}
.zsz-home-cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--zsz-sh-lg);
}
.zsz-home-cat-card__img {
  height: 180px; overflow: hidden; position: relative;
}
.zsz-home-cat-card__img img {
  width:100%; height:100%; object-fit:cover;
  transition:transform var(--zsz-ease);
}
.zsz-home-cat-card:hover .zsz-home-cat-card__img img { transform:scale(1.06); }
.zsz-home-cat-card__body { padding:1.25rem; }
.zsz-home-cat-card__title {
  font-family: var(--ast-heading-font-family,'Lora',serif);
  font-size:1.05rem; font-weight:700; color:var(--zsz-t1);
  margin-bottom:.4rem;
}
.zsz-home-cat-card__desc { font-size:.85rem; color:var(--zsz-t2); line-height:1.55; }

/* ═══════════════════════════════════════════════════════════════════════════
   HOME — FEATURE CARDS (3-col highlights)
   ═══════════════════════════════════════════════════════════════════════════ */
.zsz-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap: 1.75rem;
}
.zsz-feature-card {
  background: var(--zsz-bg-card);
  border-radius: var(--zsz-r-lg);
  padding: 2rem;
  border: 1.5px solid var(--zsz-border);
  box-shadow: var(--zsz-sh);
  transition: transform var(--zsz-ease), box-shadow var(--zsz-ease);
}
.zsz-feature-card:hover { transform:translateY(-5px); box-shadow:var(--zsz-sh-lg); }
.zsz-feature-card__icon {
  font-size: 2.5rem; margin-bottom:1rem; display:block;
}
.zsz-feature-card__title {
  font-family: var(--ast-heading-font-family,'Lora',serif);
  font-size:1.1rem; font-weight:700; color:var(--zsz-t1); margin-bottom:.5rem;
}
.zsz-feature-card__text { font-size:.9rem; color:var(--zsz-t2); line-height:1.65; }

/* ═══════════════════════════════════════════════════════════════════════════
   HOME — RECENT POSTS STRIP
   ═══════════════════════════════════════════════════════════════════════════ */
.zsz-home-posts-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.75rem;
}
@media (max-width:960px) { .zsz-home-posts-grid { grid-template-columns:repeat(2,1fr); } }
@media (max-width:600px) { .zsz-home-posts-grid { grid-template-columns:1fr; } }
/* The card itself reuses .zsz-card from shared */
.zsz-home-posts-grid .zsz-card__img { height:180px; }
.zsz-home-posts-grid .zsz-card__title {
  font-family: var(--ast-heading-font-family,'Lora',serif);
  font-size:1.05rem; font-weight:700; color:var(--zsz-t1);
  line-height:1.35; margin-bottom:.5rem;
}
.zsz-home-posts-grid .zsz-card__title a { color:inherit; text-decoration:none; }
.zsz-home-posts-grid .zsz-card__title a:hover { color:var(--zsz-primary); }
.zsz-home-posts-grid .zsz-card__excerpt {
  font-size:.85rem; color:var(--zsz-t2); line-height:1.6;
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
  flex:1; margin-bottom:.75rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HOME — PRODUCTS SECTION
   ═══════════════════════════════════════════════════════════════════════════ */
.zsz-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.zsz-product-card {
  background: var(--zsz-bg-white);
  border-radius: var(--zsz-r-lg);
  overflow: hidden;
  box-shadow: var(--zsz-sh-md);
  transition: all .4s ease;
  border: 1px solid rgba(74,144,226,.10);
}
.zsz-product-card:hover { transform:translateY(-8px); box-shadow:var(--zsz-sh-xl); }
.zsz-product-card__img {
  height: 200px; background:var(--zsz-grad);
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-size:3rem; overflow:hidden;
}
.zsz-product-card__img img {
  width:100%; height:100%; object-fit:cover;
  transition:transform .4s ease;
}
.zsz-product-card:hover .zsz-product-card__img img { transform:scale(1.05); }
.zsz-product-card__body { padding:1.75rem; }
.zsz-product-card__title { font-weight:600; color:var(--zsz-t1); margin-bottom:.35rem; }
.zsz-product-card__rating { color:#f39c12; margin-bottom:.35rem; }
.zsz-product-card__price {
  font-size:1.3rem; font-weight:600; color:var(--zsz-primary); margin-bottom:.75rem;
}
.zsz-product-card__desc {
  color:var(--zsz-t2); font-size:.9rem; line-height:1.6; margin-bottom:1.25rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HOME — TESTIMONIALS
   ═══════════════════════════════════════════════════════════════════════════ */
.zsz-testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}
@media (min-width:768px)  { .zsz-testimonials-grid { grid-template-columns:repeat(2,1fr); } }
@media (min-width:1024px) { .zsz-testimonials-grid { grid-template-columns:repeat(3,1fr); } }
.zsz-testimonial {
  background: linear-gradient(135deg,#f8f9ff 0%,#f0f4ff 100%);
  padding: 2rem;
  border-radius: var(--zsz-r-lg);
  position: relative;
  border: 1px solid rgba(102,126,234,.10);
  box-shadow: var(--zsz-sh);
}
.zsz-testimonial::before {
  content: '"';
  position: absolute; top:-10px; left:20px;
  font-size:3.5rem; color:#667eea; opacity:.28; font-family:serif; line-height:1;
}
.zsz-testimonial__text {
  font-size:1rem; line-height:1.7; color:var(--zsz-t1);
  font-style:italic; margin-bottom:1.5rem;
}
.zsz-testimonial__author { display:flex; align-items:center; gap:1rem; }
.zsz-testimonial__avatar {
  width:48px; height:48px;
  background:var(--zsz-grad); border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-weight:600; font-size:1.15rem; flex-shrink:0;
}
.zsz-testimonial__name { font-weight:600; color:var(--zsz-t1); font-size:.95rem; }
.zsz-testimonial__role { color:var(--zsz-t3); font-size:.8rem; }

/* ═══════════════════════════════════════════════════════════════════════════
   HOME — CTA BAND
   ═══════════════════════════════════════════════════════════════════════════ */
.zsz-cta-band {
  background: var(--zsz-grad);
  padding: 3rem 0;
  text-align: center;
  color: #fff;
}
.zsz-cta-band h2 {
  font-size: clamp(1.75rem,3.5vw,2.5rem); font-weight:700; margin-bottom:.75rem;
  color: #fff;
}
.zsz-cta-band p {
  font-size:clamp(.95rem,2vw,1.15rem); opacity:.92;
  max-width:580px; margin:0 auto 2rem; line-height:1.65;
}
/* Accent button for CTA band */
.zsz-cta-band .zsz-btn--accent {
  background: #f39c12; color:#fff;
  box-shadow: 0 6px 20px rgba(243,156,18,.30);
  font-size:1.05rem; padding:.9rem 2.2rem;
}
.zsz-cta-band .zsz-btn--accent:hover {
  transform:translateY(-3px);
  box-shadow:0 8px 25px rgba(243,156,18,.45);
  color:#fff;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */
.zsz-footer {
  background: linear-gradient(135deg,#1a202c 0%,#2d3748 100%);
  color: var(--zsz-t4);
  padding: 3rem 0 1.5rem;
  margin-top: 5rem;
  position: relative;
  overflow: hidden;
}
/* Top rainbow stripe */
.zsz-footer::before {
  content: '';
  position: absolute; top:0; left:0; right:0; height:3px;
  background: var(--zsz-grad-full);
}
/* Main 2-col layout */
.zsz-footer__main {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
@media (max-width:768px) {
  .zsz-footer__main { grid-template-columns:1fr; gap:2rem; }
}
/* Brand column */
.zsz-footer__brand { display:flex; flex-direction:column; gap:1rem; }
.zsz-footer__logo {
  font-size:1.8rem; font-weight:800;
  background:var(--zsz-grad-full);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
}
.zsz-footer__tagline {
  color:#a0aec0; font-size:.95rem; line-height:1.65; max-width:400px;
}
/* Social icons */
.zsz-footer__social { display:flex; gap:1rem; margin-top:.75rem; }
.zsz-social-link {
  display:flex; align-items:center; justify-content:center;
  width:40px; height:40px;
  background:rgba(255,255,255,.10); border-radius:50%;
  color:var(--zsz-t4); text-decoration:none; font-size:1.2rem;
  transition:all var(--zsz-ease);
}
.zsz-social-link:hover {
  background:var(--zsz-grad); color:#fff; transform:translateY(-3px);
}
/* Links column */
.zsz-footer__links { display:flex; flex-direction:column; gap:1rem; }
.zsz-footer__links h4 {
  color:#fff; font-size:1rem; font-weight:700;
  text-transform:uppercase; letter-spacing:1px; margin-bottom:.35rem;
}
.zsz-footer__nav { display:flex; flex-direction:column; gap:.55rem; }
.zsz-footer__nav-link {
  color:var(--zsz-t4); text-decoration:none; font-size:.9rem;
  display:inline-block; transition:all var(--zsz-ease);
}
.zsz-footer__nav-link:hover { color:var(--zsz-primary); transform:translateX(5px); }
/* Bottom bar */
.zsz-footer__bottom {
  display:flex; justify-content:space-between; align-items:center;
  padding-top:1.5rem; flex-wrap:wrap; gap:1rem;
}
.zsz-footer__copy { color:#718096; font-size:.85rem; }
.zsz-footer__legal { display:flex; gap:1.5rem; flex-wrap:wrap; }
.zsz-footer__legal a { color:#718096; text-decoration:none; font-size:.85rem; transition:color var(--zsz-ease); }
.zsz-footer__legal a:hover { color:var(--zsz-primary); }
@media (max-width:768px) {
  .zsz-footer { padding:2rem 0 1rem; }
  .zsz-footer__bottom { flex-direction:column; text-align:center; }
  .zsz-footer__legal { justify-content:center; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   HOME RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width:768px) {
  .zsz-home-hero { padding:3rem 0 2.5rem; }
  .zsz-home-cats-grid { grid-template-columns:repeat(2,1fr); }
  .zsz-home-section { padding:3rem 0; }
}
@media (max-width:480px) {
  .zsz-home-cats-grid { grid-template-columns:1fr; }
  .zsz-hero-stats { gap:.75rem; }
}
