/* ========================================
   MOANA DESIGN - LUXURY FURNITURE
   Main Stylesheet
   ======================================== */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Montserrat:wght@200;300;400;500;600&display=swap');

/* CSS Variables */
:root {
  /* Legacy Heritage - Gold */
  --gold-primary: #B8860B;
  --gold-light: #D4AF37;
  --gold-pale: #F4E4BC;
  
  /* Neo Botanical - Green */
  --green-primary: #4a7c59;
  --green-light: #7cb342;
  --green-dark: #0d2818;
  
  /* Cosmic Luxury - Black/Gold */
  --cosmic-black: #0a0a0a;
  --cosmic-gold: #c9a227;
  
  /* Ocean Minimal - Blue/White */
  --ocean-blue: #1e3a5f;
  --ocean-light: #e8f4f8;
  
  /* Desert Zen - Earth */
  --desert-sand: #d4a574;
  --desert-terracotta: #c17f59;
  
  /* Tropical - Warm */
  --tropical-gold: #d4af37;
  
  /* Urban - Industrial */
  --urban-steel: #4a5568;
  --urban-concrete: #718096;
  
  /* Quantum - Modern */
  --quantum-cream: #f5f0e8;
  
  /* Singularity - Vibrant */
  --singularity-purple: #6b46c1;
  --singularity-pink: #ec4899;
  
  /* Base Colors */
  --cream: #f9f6f1;
  --cream-dark: #f5f0e8;
  --charcoal: #1a1510;
  --charcoal-light: #3d3225;
  --text-muted: #5c4a32;
  
  /* Typography */
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Montserrat', sans-serif;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--cream);
  color: var(--charcoal-light);
  line-height: 1.6;
  font-weight: 300;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ========================================
   NAVIGATION
   ======================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(249, 246, 241, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  transition: all 0.4s ease;
}

.navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-light) 50%, var(--gold-pale) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-subtext {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

.nav-link {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.5rem 0.8rem;
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--gold-primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover {
  color: var(--gold-primary);
}

.nav-link:hover::after {
  width: 60%;
}

.nav-link.active {
  color: var(--gold-primary);
}

.nav-link.active::after {
  width: 60%;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-muted);
  margin: 5px 0;
  transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(26, 21, 16, 0.85) 0%, rgba(26, 21, 16, 0.4) 50%, transparent 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 8rem 2rem 4rem;
  width: 100%;
}

.hero-label {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
  display: block;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-title span {
  font-style: italic;
}

.hero-title .gold {
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-light) 50%, var(--gold-pale) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 500px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gold-primary);
  color: white;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

.btn-green {
  background: var(--green-light);
  color: white;
}

.btn-green:hover {
  background: #8bc34a;
}

/* ========================================
   SECTIONS
   ======================================== */

.section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--charcoal-light);
  margin-bottom: 1rem;
}

.section-title .gold {
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-light) 50%, var(--gold-pale) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-description {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   COLLECTIONS GRID (HOME)
   ======================================== */

.collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.collection-card {
  position: relative;
  overflow: hidden;
  background: white;
  transition: all 0.5s ease;
}

.collection-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.collection-image {
  aspect-ratio: 4/5;
  overflow: hidden;
}

.collection-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.collection-card:hover .collection-image img {
  transform: scale(1.08);
}

.collection-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 21, 16, 0.8) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.collection-card:hover .collection-overlay {
  opacity: 1;
}

.collection-info {
  padding: 1.5rem;
}

.collection-category {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 0.5rem;
}

.collection-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--charcoal-light);
  margin-bottom: 0.5rem;
}

.collection-price {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.collection-btn {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.collection-card:hover .collection-btn {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   PRODUCT GRID (COLLECTION PAGES)
   ======================================== */

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.product-card {
  background: white;
  overflow: hidden;
  transition: all 0.5s ease;
}

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

.product-image {
  aspect-ratio: 4/5;
  overflow: hidden;
  position: relative;
}

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

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

.product-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 21, 16, 0.7) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1.5rem;
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.product-info {
  padding: 1.5rem;
}

.product-category {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 0.5rem;
}

.product-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--charcoal-light);
  margin-bottom: 0.5rem;
}

.product-price {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ========================================
   COLLECTION HERO (INDIVIDUAL PAGES)
   ======================================== */

.collection-hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
}

.collection-hero-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 2rem;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.collection-hero-image {
  position: relative;
}

.collection-hero-image img {
  width: 100%;
  height: auto;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.3);
}

.collection-hero-image::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100px;
  height: 100px;
  border: 1px solid var(--gold-primary);
  opacity: 0.4;
  z-index: -1;
}

.collection-hero-image::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  border: 1px solid var(--gold-primary);
  opacity: 0.4;
  z-index: -1;
}

.collection-hero-text h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
}

.collection-hero-text p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.collection-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.stat {
  text-align: center;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--gold-primary);
}

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

/* ========================================
   LINE-SPECIFIC STYLES
   ======================================== */

/* Neo Botanical */
.botanical-hero {
  background: var(--green-dark);
  color: white;
}

.botanical-hero .collection-hero-text p {
  color: rgba(255, 255, 255, 0.7);
}

.botanical-hero .stat-number {
  color: var(--green-light);
}

/* Cosmic Luxury */
.cosmic-hero {
  background: var(--cosmic-black);
  color: white;
}

.cosmic-hero .collection-hero-text p {
  color: rgba(255, 255, 255, 0.7);
}

.cosmic-hero .stat-number {
  color: var(--cosmic-gold);
}

/* Ocean Minimal */
.ocean-hero {
  background: var(--ocean-light);
}

.ocean-hero .stat-number {
  color: var(--ocean-blue);
}

/* Desert Zen */
.desert-hero {
  background: linear-gradient(135deg, #f5e6d3 0%, #e8d5c4 100%);
}

.desert-hero .stat-number {
  color: var(--desert-terracotta);
}

/* Tropical */
.tropical-hero {
  background: linear-gradient(135deg, #fff8e7 0%, #fef3c7 100%);
}

.tropical-hero .stat-number {
  color: var(--tropical-gold);
}

/* Urban */
.urban-hero {
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
  color: white;
}

.urban-hero .collection-hero-text p {
  color: rgba(255, 255, 255, 0.7);
}

.urban-hero .stat-number {
  color: #a0aec0;
}

/* Quantum */
.quantum-hero {
  background: var(--quantum-cream);
}

.quantum-hero .stat-number {
  color: var(--charcoal-light);
}

/* Singularity */
.singularity-hero {
  background: linear-gradient(135deg, #1a0b2e 0%, #2d1b4e 100%);
  color: white;
}

.singularity-hero .collection-hero-text p {
  color: rgba(255, 255, 255, 0.7);
}

.singularity-hero .stat-number {
  background: linear-gradient(135deg, var(--singularity-purple), var(--singularity-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  background: var(--charcoal);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.footer-brand .logo-text {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
}

.footer-column h4 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: white;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 0.75rem;
}

.footer-column a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  max-width: 1400px;
  margin: 3rem auto 0;
  padding: 2rem 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom-links {
  display: flex;
  gap: 2rem;
}

.footer-bottom-links a {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.animate-fade-in-up {
  animation: fadeInUp 1s ease-out forwards;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(249, 246, 241, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem;
    gap: 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    transform: translateY(-150%);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 999;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
  }
  
  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  }
  
  .nav-menu li:last-child {
    border-bottom: none;
  }
  
  .nav-link {
    display: block;
    padding: 1rem 0;
    font-size: 0.85rem;
    text-align: center;
  }
  
  .nav-link::after {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .collection-hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .collection-hero-image {
    order: -1;
  }
  
  .collection-stats {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .navbar-container {
    height: 70px;
    padding: 0 1rem;
  }
  
  .hero-content {
    padding: 6rem 1rem 3rem;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .collections-grid,
  .products-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--cream-dark);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold-primary), var(--gold-light));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--gold-light), var(--gold-primary));
}
