/* ============================================
   YUN TEA — Landing Page Styles
   ============================================ */

/* --- Hero Scroll Wrapper --- */
.hero-wrapper {
  height: calc(100vh + 1100px);
  position: relative;
}

/* --- Hero --- */
.hero {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

/* --- Hero Canvas --- */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.05) 40%,
    rgba(0, 0, 0, 0.25) 100%
  );
  z-index: 1;
}

[data-theme="dark"] .hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.15) 40%,
    rgba(0, 0, 0, 0.5) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: var(--space-3);
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: var(--text-hero);
  color: var(--color-hero-text);
  margin-bottom: var(--space-1);
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 1.2s ease forwards;
  animation-delay: 0.3s;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 300;
  color: var(--color-hero-text);
  opacity: 0.85;
  max-width: 520px;
  margin: 0 auto var(--space-5);
  line-height: 1.8;
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(16px);
  animation: heroFadeIn 1s ease forwards;
  animation-delay: 0.7s;
}

.hero-ctas {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(16px);
  animation: heroFadeIn 1s ease forwards;
  animation-delay: 1s;
}

.hero .btn-primary {
  background: var(--color-accent);
  color: #FFF8E7;
  border-color: var(--color-accent);
}

.hero .btn-outline {
  color: var(--color-hero-text);
  border-color: rgba(255, 248, 231, 0.6);
}

.hero .btn-outline:hover {
  background: rgba(255, 248, 231, 0.15);
  border-color: var(--color-hero-text);
  color: var(--color-hero-text);
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-title,
  .hero-subtitle,
  .hero-ctas {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* Hero scroll hint */
.hero-scroll {
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  color: var(--color-hero-text);
  opacity: 0.5;
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}

.hero-scroll svg {
  width: 20px;
  height: 20px;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll { animation: none; }
}

/* --- Features Section --- */
.features {
  padding: var(--space-12) var(--space-3);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  text-align: center;
  padding: var(--space-4);
}

.feature-img-wrap {
  width: 240px;
  height: 240px;
  margin: 0 auto var(--space-4);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.feature-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.feature-card:hover .feature-img-wrap img {
  transform: scale(1.05);
}

.feature-card h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
}

.feature-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 280px;
  margin: 0 auto;
  line-height: 1.8;
}

/* --- Testimonials Section --- */
.testimonials {
  padding: var(--space-12) var(--space-3);
  background: var(--color-section-alt);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  max-width: 1100px;
  margin: 0 auto;
}

/* Google reviews meta row */
.reviews-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-2);
  flex-wrap: wrap;
}

.reviews-stars {
  display: flex;
  gap: 2px;
  color: #FBBC05;
}

.reviews-stars svg {
  width: 20px;
  height: 20px;
}

.reviews-google-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  padding: 6px var(--space-2);
  border-radius: var(--radius-full);
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.reviews-google-link:hover {
  border-color: var(--color-border-strong);
  color: var(--color-text-secondary);
}

.google-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.google-icon-sm {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.8;
}

.testimonial-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  box-shadow: 0 2px 16px var(--color-shadow);
  border: 1px solid var(--color-border);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px var(--color-shadow);
}

.testimonial-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.testimonial-stars {
  font-size: 14px;
  color: #FBBC05;
  letter-spacing: 1px;
}

.testimonial-card blockquote {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin: 0;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.testimonial-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.testimonial-name {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  line-height: 1.2;
}

.testimonial-date {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* --- Final CTA Section --- */
.final-cta {
  padding: var(--space-16) var(--space-3);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -20%;
  right: -20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border-strong), transparent);
}

.final-cta h2 {
  margin-bottom: var(--space-3);
}

.final-cta p {
  margin: 0 auto var(--space-5);
  font-size: var(--text-lg);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(3.5rem, 12vw, 5.5rem);
  }

  .hero-subtitle {
    font-size: var(--text-base);
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .reviews-meta {
    flex-direction: column;
    gap: var(--space-2);
  }
}

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

  .hero-ctas .btn {
    width: 100%;
    max-width: 240px;
  }
}
