:root {
  /* Colors - Earth & Elegance */
  --color-umber: #1A120B;
  --color-umber-light: #3C2A21;
  --color-gold: #D4AF37;
  --color-gold-muted: #C5A059;
  --color-ivory: #FAF9F6;
  --color-clay: #F5F0E6;
  
  /* Fonts */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;

  /* Transitions */
  --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --header-height: 80px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: initial; /* Handled by Lenis */
}

body {
  background-color: var(--color-umber);
  color: var(--color-ivory);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: 0.02em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

/* Custom Font Declaration */
@font-face {
  font-family: 'Nouveau Titling JNL';
  src: url('assets/nouveau-titling-jnl.woff2') format('woff2'),
       url('assets/nouveau-titling-jnl.woff') format('woff'),
       url('assets/nouveau-titling-jnl.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cinzel Bold';
  src: url('assets/Cinzel-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

.brand-font {
  font-family: 'Cinzel Bold', 'Nouveau Titling JNL', 'Cinzel', serif;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
}

/* Layout Utilities */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-padding {
  padding: 120px 0;
}

/* Glassmorphism Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  display: flex;
  align-items: center;
  z-index: 1000;
  transition: var(--transition-smooth);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

header.scrolled {
  background: rgba(26, 18, 11, 0.85);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  height: 90px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  flex: 0 0 auto;
  margin-right: 60px; /* Resolve the "attached" issue by creating significant whitespace */
  transition: var(--transition-smooth);
}

.nav-logo-img {
  transition: var(--transition-smooth);
  filter: drop-shadow(0 0 0 rgba(212, 175, 55, 0));
}

.logo:hover .nav-logo-img {
  transform: scale(1.08); /* Modern "lift" effect */
  filter: drop-shadow(0 5px 15px rgba(212, 175, 55, 0.4)); /* Premium gold highlight/glow */
}

.nav-links {
  display: flex;
  gap: 24px; /* Ensure comfortable spacing between links */
  flex-grow: 1; /* Take up available space */
  justify-content: center; /* Push links to center, away from logo */
  margin-left: 20px;
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem; /* Slightly reduced font size */
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-gold);
  transition: var(--transition-smooth);
}

.nav-links a:hover {
  opacity: 1;
  color: var(--color-gold);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.bag-btn {
  position: relative;
  cursor: pointer;
}

.bag-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--color-gold);
  color: var(--color-umber);
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 2001;
    padding: 10px;
}

.menu-toggle .bar {
    display: block; /* Essential for span to respect width/height */
    width: 28px;
    height: 2px;
    background-color: var(--color-gold);
    transition: var(--transition-smooth);
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--color-umber);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.mobile-menu-links a {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-gold);
    text-transform: capitalize;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.mobile-menu.open .mobile-menu-links a {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.open .mobile-menu-links a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.open .mobile-menu-links a:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu.open .mobile-menu-links a:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu.open .mobile-menu-links a:nth-child(4) { transition-delay: 0.4s; }

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 110%; /* For parallax */
  background-image: url('assets/hero.png');
  background-size: cover;
  background-position: center;
  z-index: -1;
  transform: translateY(0);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(26, 18, 11, 0.4), rgba(26, 18, 11, 0.8));
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero-content h1 {
  font-size: 5rem;
  margin-bottom: 24px;
  line-height: 1.1;
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .hero-content p {
    font-size: 1.1rem;
  }
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 40px;
  opacity: 0.9;
  letter-spacing: 0.02em;
}

.cta-button {
  display: inline-block;
  padding: 18px 48px;
  background: var(--color-gold);
  color: var(--color-umber);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: var(--transition-smooth);
  border: 1px solid var(--color-gold);
}

.cta-button:hover {
  background: transparent;
  color: var(--color-gold);
}

/* Product Gallery */
.products-wrapper {
  background-color: var(--color-umber-light);
}

.section-head {
  text-align: center;
  margin-bottom: 80px;
}

.section-head h2 {
  font-size: 3rem;
  margin-bottom: 16px;
}

.section-head p {
  opacity: 0.6;
  max-width: 600px;
  margin: 0 auto;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 40px;
}

.product-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 24px;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  /* Visible by default for SEO and fail-safe */
  opacity: 1;
  transform: translateY(0);
}

.product-card.reveal {
  /* Class maintained for potential other uses, but reveal logic moved to JS .from() */
  opacity: 1;
  transform: translateY(0);
}

.product-card:hover {
  transform: translateY(-10px);
  border-color: var(--color-gold-muted);
}

.product-image {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  margin-bottom: 24px;
  background: var(--color-umber);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.product-info h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.product-highlight {
  font-size: 0.8rem;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  display: block;
}

.product-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
}

.price {
  font-size: 1.2rem;
  font-weight: 600;
}

.product-btns {
  display: flex;
  gap: 12px;
}

.add-btn, .wa-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}
@media (max-width: 768px) {
  .add-btn, .wa-btn {
    width: 44px;
    height: 44px;
  }
}

.add-btn:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-umber);
}

.wa-btn:hover {
  background: #25D366;
  border-color: #25D366;
  color: #fff;
}

/* Shopping Bag Drawer */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -450px;
  width: 450px;
  height: 100%;
  background: var(--color-umber);
  z-index: 2000;
  box-shadow: -10px 0 50px rgba(0,0,0,0.5);
  padding: 40px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.cart-drawer.open {
  right: 0;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.close-cart {
  cursor: pointer;
  font-size: 1.5rem;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
}

.cart-item {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.cart-item-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
}

.cart-item-info {
  flex: 1;
}

.cart-item-info h4 {
  margin-bottom: 4px;
}

.cart-footer {
  margin-top: auto;
  padding-top: 40px;
}

.total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
  font-size: 1.25rem;
  font-weight: 600;
}

.checkout-btn {
  width: 100%;
  padding: 20px;
  background: #25D366;
  color: #fff;
  font-weight: 700;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* About Section */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
}

.about-content h2 {
  font-size: 3rem;
  margin-bottom: 32px;
}

.about-content p {
  margin-bottom: 24px;
  opacity: 0.8;
}

.about-image {
  height: 600px;
  background-image: url('assets/green-cardamom.png');
  background-size: cover;
  background-position: center;
}

/* Testimonials */
.testimonials {
  background: var(--color-umber-light);
  text-align: center;
}

.testimonial-slide {
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-text {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 32px;
  font-style: italic;
}

.testimonial-author {
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

/* Footer */
footer {
  padding: 80px 0 40px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-gold);
  margin-bottom: 24px;
}

.footer-info p {
  opacity: 0.6;
  max-width: 300px;
}

.footer-col h4 {
  color: var(--color-gold);
  margin-bottom: 24px;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

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

.footer-col ul li {
  margin-bottom: 12px;
  opacity: 0.6;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.05);
  opacity: 0.4;
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-content h1 { font-size: 3.5rem; }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .about-image { height: 400px; order: -1; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .nav-links { display: none !important; }
  .cart-drawer { width: 100%; right: -100%; }
  .section-padding { padding: 80px 0; }
  .product-grid { grid-template-columns: 1fr; }
  .logo { margin-right: 0 !important; }
  .logo img { height: 40px !important; }
  .menu-toggle { display: flex; }
  
  nav {
    justify-content: space-between;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
    text-align: center;
  }

  .footer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    max-width: 100% !important;
  }

  .footer-info p {
    max-width: 100% !important;
    margin: 0 auto;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    align-items: center;
  }
}
