/**
 * Homepage design enhancements - animations, text blocks, visual polish
 */
/* Scroll-triggered fade-in animation */
.tlw-animate-block {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.tlw-animate-block.tlw-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children - columns */
.tlw-animate-block .pagebuilder-column {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.tlw-animate-block.tlw-visible .pagebuilder-column:nth-child(1) { transition-delay: 0.1s; }
.tlw-animate-block.tlw-visible .pagebuilder-column:nth-child(2) { transition-delay: 0.2s; }
.tlw-animate-block.tlw-visible .pagebuilder-column:nth-child(3) { transition-delay: 0.3s; }
.tlw-animate-block.tlw-visible .pagebuilder-column {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger - stats & features */
.tlw-home-stats .tlw-stat-item,
.tlw-home-features .tlw-feature-item {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.tlw-home-stats.tlw-visible .tlw-stat-item:nth-child(1),
.tlw-home-features.tlw-visible .tlw-feature-item:nth-child(1) { transition-delay: 0.1s; }
.tlw-home-stats.tlw-visible .tlw-stat-item:nth-child(2),
.tlw-home-features.tlw-visible .tlw-feature-item:nth-child(2) { transition-delay: 0.2s; }
.tlw-home-stats.tlw-visible .tlw-stat-item:nth-child(3),
.tlw-home-features.tlw-visible .tlw-feature-item:nth-child(3) { transition-delay: 0.3s; }
.tlw-home-stats.tlw-visible .tlw-stat-item:nth-child(4),
.tlw-home-features.tlw-visible .tlw-feature-item:nth-child(4) { transition-delay: 0.4s; }
.tlw-home-stats.tlw-visible .tlw-stat-item,
.tlw-home-features.tlw-visible .tlw-feature-item {
  opacity: 1;
  transform: translateY(0);
}

/* Hero section - subtle entrance */
.tlw-home-hero .pagebuilder-column h2,
.tlw-home-hero .pagebuilder-column p {
  opacity: 0;
  animation: tlw-fade-in-up 1s ease forwards;
}
.tlw-home-hero .pagebuilder-column h2 { animation-delay: 0.2s; }
.tlw-home-hero .pagebuilder-column p { animation-delay: 0.4s; }

@keyframes tlw-fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Image hover effect - subtle scale */
.tlw-image-wrapper {
  overflow: hidden;
}
.tlw-image-wrapper img {
  transition: transform 0.5s ease;
}
.tlw-image-wrapper:hover img {
  transform: scale(1.03);
}

/* Stats block */
.tlw-home-stats {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #fff;
  padding: 4rem 2rem;
  text-align: center;
  margin: 3rem 0;
}
.tlw-home-stats .tlw-stats-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}
.tlw-home-stats .tlw-stat-item {
  flex: 1;
  min-width: 140px;
}
.tlw-home-stats .tlw-stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  display: block;
  color: #4fc3f7;
  margin-bottom: 0.25rem;
}
.tlw-home-stats .tlw-stat-label {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* Quote block */
.tlw-home-quote {
  padding: 4rem 2rem;
  text-align: center;
  background: linear-gradient(180deg, #f8f9fa 0%, #fff 100%);
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}
.tlw-home-quote blockquote {
  font-size: 1.5rem;
  font-style: italic;
  color: #333;
  max-width: 700px;
  margin: 0 auto 1rem;
  line-height: 1.6;
}
.tlw-home-quote .tlw-quote-author {
  font-size: 0.9rem;
  color: #666;
}

/* Features strip */
.tlw-home-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2.5rem 1.5rem;
  background: #fff;
  border-bottom: 1px solid #eee;
}
.tlw-home-features .tlw-feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 280px;
}
.tlw-home-features .tlw-feature-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #0f3460, #16213e);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tlw-home-features .tlw-feature-icon svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}
.tlw-home-features .tlw-feature-text strong {
  display: block;
  margin-bottom: 0.25rem;
}
.tlw-home-features .tlw-feature-text span {
  font-size: 0.9rem;
  color: #555;
}

/* Improve link styling in content blocks */
.page-main .pagebuilder-column a:not(.action):not(.btn) {
  transition: color 0.2s ease, opacity 0.2s ease;
}
.page-main .pagebuilder-column a:hover {
  opacity: 0.85;
}

/* CTA button style for hero */
.tlw-home-hero a[href*="shop"] {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #0f3460;
  color: #fff !important;
  border-radius: 6px;
  text-decoration: none !important;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.2s ease;
}
.tlw-home-hero a[href*="shop"]:hover {
  background: #16213e;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .tlw-home-stats { padding: 2.5rem 1rem; }
  .tlw-home-stats .tlw-stats-grid { gap: 2rem; }
  .tlw-home-stats .tlw-stat-number { font-size: 2rem; }
  .tlw-home-quote blockquote { font-size: 1.2rem; }
  .tlw-home-features { flex-direction: column; align-items: center; }
}
