/* ===== Luna 215 Split Layout UI ===== */

/* Section 1: Hero */
.luna-hero {
  position: relative;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--edge-padding);
  overflow: hidden;
}

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

.luna-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: slowZoom 20s ease-out forwards;
}

.luna-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10, 26, 18, 0.95) 0%, rgba(10, 26, 18, 0.6) 50%, transparent 100%);
  z-index: 1;
}

.luna-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1600px;
  margin-top: 40px;
}

.luna-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(212, 168, 67, 0.15);
  border: 1px solid rgba(212, 168, 67, 0.3);
  border-radius: 20px;
  color: var(--color-amber);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: var(--space-xl);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.luna-hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: var(--space-sm);
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.luna-hero-tagline {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--color-amber);
  margin-bottom: var(--space-2xl);
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.luna-hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

/* Sections General */
.luna-section {
  padding: var(--space-4xl) var(--edge-padding);
  background: var(--color-cream);
}

.luna-bg-dark {
  background: var(--color-forest-deep);
  color: #fff;
}

.luna-bg-dark h2 {
  color: #fff !important;
}

.luna-bg-dark .luna-desc-text {
  color: rgba(255, 255, 255, 0.7);
}

/* Split Layout */
.luna-split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  max-width: 1600px;
  margin: 0 auto;
  align-items: center;
}

.luna-split-layout.reverse .luna-left-gallery {
  order: 2;
}
.luna-split-layout.reverse .luna-right-content {
  order: 1;
}

/* Left: Gallery Grid */
.luna-left-gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gallery-grid-main {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 8px;
}

.gallery-grid-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-grid-main img:hover {
  transform: scale(1.05);
}

.gallery-grid-subs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.gallery-grid-subs img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-grid-subs img:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

/* Plans Container */
.plans-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.plans-container img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  background: #fff;
  padding: 10px;
}

/* Right: Content */
.luna-right-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-label {
  color: var(--color-amber);
  margin-bottom: var(--space-sm);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.85rem;
  font-weight: 700;
}

.luna-right-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--color-forest-deep);
  line-height: 1.1;
  margin-bottom: var(--space-lg);
}

.luna-desc-text {
  font-size: 1.1rem;
  color: var(--color-forest-muted);
  line-height: 1.8;
  margin-bottom: var(--space-2xl);
}

/* Bullet List */
.luna-bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.luna-bullet-list li {
  position: relative;
  padding-left: 30px;
  font-size: 1.05rem;
  color: var(--color-forest-muted);
  line-height: 1.6;
}

.luna-bullet-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--color-amber);
  font-weight: bold;
  font-size: 1.2rem;
}

.luna-bullet-list li strong {
  color: var(--color-forest-deep);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.product-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 20px;
  border-radius: 6px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-item span {
  font-family: var(--font-heading);
  color: var(--color-amber);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Animations */
@keyframes slowZoom {
  0% { transform: scale(1.05); }
  100% { transform: scale(1.15); }
}

/* Responsive */
@media (max-width: 1024px) {
  .luna-split-layout {
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
  }

  .luna-split-layout.reverse .luna-left-gallery {
    order: 1; /* Reset order for mobile */
  }
  .luna-split-layout.reverse .luna-right-content {
    order: 2; /* Reset order for mobile */
  }
}

@media (max-width: 768px) {
  .luna-hero {
    height: 75vh;
  }
  
  .gallery-grid-subs {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  transform: scale(0.92);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox.active .lightbox-content img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 10;
  transition: color 0.3s ease, transform 0.3s ease;
  line-height: 1;
  padding: 8px;
}

.lightbox-close:hover {
  color: var(--color-amber);
  transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 2.5rem;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  line-height: 1;
  padding: 0;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(212, 168, 67, 0.15);
  border-color: var(--color-amber);
  color: var(--color-amber);
}

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 2px;
}

@media (max-width: 768px) {
  .lightbox-prev,
  .lightbox-next {
    width: 42px;
    height: 42px;
    font-size: 1.8rem;
  }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}
