/* ==========================================================================
   Home Page Styles — Juice Nation JA / FORGE Meal Replacement Shake
   Requires: global.css custom properties
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. HERO SECTION
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: var(--space-2xl) 0;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle 320px at 10% 20%, rgba(255, 165, 0, 0.06) 0%, transparent 70%),
    radial-gradient(circle 260px at 85% 70%, rgba(255, 165, 0, 0.04) 0%, transparent 70%),
    radial-gradient(circle 180px at 50% 90%, rgba(0, 128, 128, 0.03) 0%, transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  order: 2;
}

.hero-tag {
  display: inline-flex;
  align-self: flex-start;
  padding: var(--space-xs) var(--space-md);
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-dark);
  margin-bottom: var(--space-md);
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--color-muted);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: var(--space-xl);
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
}

/* Hero Stats */

.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.hero-stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-dark);
  line-height: 1.2;
}

.stat-label {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background-color: var(--color-border);
}

/* Hero Image */

.hero-image {
  position: relative;
  order: 1;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  object-fit: cover;
}

.hero-image-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: transparent;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  color: var(--color-muted);
  text-align: center;
  padding: 0;
  overflow: hidden;
}

/* Floating Badges */
.floating-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--color-dark);
  box-shadow: var(--shadow-md);
  z-index: 2;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.badge-jamaica {
  bottom: 16px;
  left: 16px;
}

.badge-fruits {
  top: 16px;
  right: 16px;
}

.badge-natural {
  bottom: 16px;
  right: 16px;
}

/* Hero Image Tagline */
.hero-image-tagline {
  text-align: left;
  font-family: 'DM Sans', sans-serif;
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--color-muted);
  line-height: 1.8;
  letter-spacing: 0.02em;
  margin-top: var(--space-lg);
  padding: 0;
}

/* Scroll Indicator */

.hero-scroll-indicator {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  z-index: 1;
}

.hero-scroll-indicator span {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
}

.hero-scroll-indicator .scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-dark), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50%      { transform: scaleY(0.5); opacity: 0.4; }
}

/* --------------------------------------------------------------------------
   2. TRUST BAR
   -------------------------------------------------------------------------- */

.trust-bar {
  padding: var(--space-lg) 0;
  background-color: var(--color-light);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.trust-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  align-items: center;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-dark);
}

.trust-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--color-primary);
}

.trust-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* --------------------------------------------------------------------------
   3. PRODUCTS PREVIEW
   -------------------------------------------------------------------------- */

.products-preview,
.products-section {
  padding: var(--space-4xl) 0;
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.product-card {
  background-color: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: row;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.product-card-image {
  width: 120px;
  min-height: 120px;
  flex-shrink: 0;
  overflow: hidden;
  background-color: var(--color-light);
  border-radius: var(--radius-lg);
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card-image img {
  transform: scale(1.05);
}

.product-card-body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  flex: 1;
}

.product-card-flavor {
  display: inline-block;
  align-self: flex-start;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px var(--space-xs);
  border-radius: var(--radius-sm);
  color: var(--color-white);
  background-color: var(--color-primary);
}

.product-card-flavor--berry {
  background-color: var(--color-accent-berry);
}

.product-card-flavor--teal {
  background-color: var(--color-accent-teal);
}

.product-card-flavor--accent {
  background-color: var(--color-accent);
}

.product-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-dark);
  margin: 0;
}

.product-card-nutrition {
  display: flex;
  gap: var(--space-sm);
  margin-top: auto;
}

.nutrition-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.nutrition-badge-value {
  font-size: var(--text-sm);
  font-weight: 800;
  color: var(--color-dark);
  line-height: 1.2;
}

.nutrition-badge-label {
  font-size: 0.65rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   4. WHY FORGE
   -------------------------------------------------------------------------- */

.why-forge {
  padding: var(--space-4xl) 0;
  background-color: var(--color-dark);
  color: var(--color-white);
}

.why-forge .section-subtitle {
  color: rgba(255, 255, 255, 0.78);
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.benefit-card {
  background-color: var(--color-dark-surface, rgba(255, 255, 255, 0.06));
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 0 24px rgba(255, 165, 0, 0.1);
}

.benefit-icon {
  width: 48px;
  height: 48px;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.benefit-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.benefit-card h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.benefit-card p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
  margin: 0;
}

/* --------------------------------------------------------------------------
   5. FEATURE SPLIT
   -------------------------------------------------------------------------- */

.feature-split {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 480px;
}

.feature-split-image {
  min-height: 280px;
  background-color: var(--color-light);
  overflow: hidden;
  position: relative;
}

.feature-split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
}

.feature-split-image .hero-image-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
}

.feature-split-content {
  padding: var(--space-2xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-split-content h2 {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: var(--space-md);
}

.feature-split-content p {
  font-size: var(--text-md);
  color: var(--color-body);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

/* --------------------------------------------------------------------------
   6. COMPARISON TABLE
   -------------------------------------------------------------------------- */

.comparison {
  padding: var(--space-4xl) 0;
}

.comparison-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: var(--text-sm);
}

.comparison-table thead {
  background-color: var(--color-light);
}

.comparison-table th {
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  white-space: nowrap;
}

.comparison-table th.highlight {
  background-color: rgba(255, 165, 0, 0.08);
  color: var(--color-primary);
}

.comparison-table td {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-dark);
}

.comparison-table td.highlight {
  background-color: rgba(255, 165, 0, 0.04);
  font-weight: 600;
}

.comparison-table td:first-child {
  font-weight: 600;
  position: sticky;
  left: 0;
  background-color: var(--color-white);
  z-index: 1;
}

.comparison-table .check {
  color: #16a34a;
  font-weight: 700;
  font-size: var(--text-lg);
}

.comparison-table .cross {
  color: var(--color-muted);
  font-size: var(--text-lg);
}

/* --------------------------------------------------------------------------
   7. REVIEWS
   -------------------------------------------------------------------------- */

.reviews,
.reviews-section {
  padding: var(--space-4xl) 0;
  background-color: var(--color-light);
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.review-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.review-stars {
  display: flex;
  gap: 2px;
}

.review-stars svg {
  width: 18px;
  height: 18px;
  fill: #facc15;
}

.review-text {
  font-style: italic;
  color: var(--color-dark);
  line-height: 1.7;
  font-size: var(--text-md);
}

.review-author {
  margin-top: auto;
}

.review-author-name {
  font-weight: 700;
  color: var(--color-dark);
  font-size: var(--text-sm);
}

.review-author-location {
  font-size: var(--text-xs);
  color: var(--color-muted);
}

/* --------------------------------------------------------------------------
   8. CTA SECTION
   -------------------------------------------------------------------------- */

.cta-section,
.cta-banner {
  padding: var(--space-4xl) 0;
  background: linear-gradient(135deg, var(--color-primary), #e88a00);
  color: var(--color-white);
  text-align: center;
}

.cta-section h2,
.cta-banner h2,
.cta-banner .cta-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  margin-bottom: var(--space-md);
  color: var(--color-white);
}

.cta-section p,
.cta-banner p,
.cta-banner .cta-subtitle {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.92);
  max-width: 560px;
  margin: 0 auto var(--space-xl);
  line-height: 1.7;
}

.cta-buttons,
.cta-banner-inner .cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
}

/* White buttons for CTA on orange background */
.cta-section .btn-primary,
.cta-banner .btn-primary,
.btn-white {
  background-color: var(--color-white);
  color: var(--color-primary);
  border: 2px solid var(--color-white);
  padding: 0.75rem 2rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: var(--text-md);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.cta-section .btn-primary:hover,
.cta-banner .btn-primary:hover,
.btn-white:hover {
  background-color: var(--color-light);
  transform: translateY(-2px);
}

.cta-section .btn-outline,
.cta-banner .btn-outline,
.btn-outline-white {
  border: 2px solid var(--color-white);
  color: var(--color-white);
  background: transparent;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: var(--text-md);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.cta-section .btn-outline:hover,
.cta-banner .btn-outline:hover,
.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   9. FAQ SECTION
   -------------------------------------------------------------------------- */

.faq {
  padding: var(--space-4xl) 0;
}

.faq-list {
  max-width: 740px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  width: 100%;
  padding: var(--space-lg) 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--color-dark);
  text-align: left;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  position: relative;
  transition: transform 0.3s ease;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background-color: currentColor;
  border-radius: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-icon::before {
  width: 16px;
  height: 2px;
}

.faq-icon::after {
  width: 2px;
  height: 16px;
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-answer-inner {
  padding-bottom: var(--space-lg);
  font-size: var(--text-sm);
  color: var(--color-body);
  line-height: 1.8;
}

/* Active state */

.faq-item.active .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item.active .faq-answer {
  max-height: 400px;
}

/* ==========================================================================
   RESPONSIVE — Tablet (min-width: 640px)
   ========================================================================== */

@media (min-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-card {
    flex-direction: column;
  }

  .product-card-image {
    width: 100%;
    min-height: 0;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .product-card-body {
    padding: var(--space-lg);
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-items {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ==========================================================================
   RESPONSIVE — Small Desktop (min-width: 768px)
   ========================================================================== */

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-content {
    order: 1;
  }

  .hero-image {
    order: 2;
  }

  .hero-image-placeholder {
    aspect-ratio: 3 / 4;
  }

  .feature-split {
    grid-template-columns: 1fr 1fr;
  }

  .feature-split-image {
    min-height: auto;
  }

  .feature-split-content {
    padding: var(--space-3xl) var(--space-2xl);
  }

  .feature-split--reverse .feature-split-image,
  .feature-split--reversed .feature-split-image {
    order: 2;
  }

  .feature-split--reverse .feature-split-content,
  .feature-split--reversed .feature-split-content {
    order: 1;
  }
}

/* ==========================================================================
   RESPONSIVE — Desktop (min-width: 1024px)
   ========================================================================== */

@media (min-width: 1024px) {
  .hero h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
  }

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

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

  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .feature-split-content {
    padding: var(--space-4xl) var(--space-3xl);
  }

  .feature-split-content h2 {
    font-size: var(--text-4xl);
  }

  .stat-number {
    font-size: var(--text-3xl);
  }
}

/* ==========================================================================
   RESPONSIVE — Large Desktop (min-width: 1280px)
   ========================================================================== */

@media (min-width: 1280px) {
  .hero-grid {
    gap: var(--space-3xl);
  }

  .hero-content {
    padding-right: var(--space-2xl);
  }
}

/* ==========================================================================
   MOTION PREFERENCES
   ========================================================================== */

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

  .product-card,
  .benefit-card,
  .faq-icon::after,
  .faq-answer {
    transition-duration: 0.01ms;
  }

  .product-card:hover {
    transform: none;
  }

  .product-card:hover .product-card-image img {
    transform: none;
  }
}
