/* ==========================================================================
   Ferrero India Premium Luxury Styling
   Theme: Italian-Inspired Cocoa & Gold Editorial Catalog
   ========================================================================== */

/* 1. Global Reset & Theme Variables */
:root {
  /* Harmonious Color Palette */
  --color-cocoa-dark: #120805;      /* Deepest chocolate black */
  --color-cocoa-medium: #27140e;    /* Rich warm cocoa brown */
  --color-cocoa-light: #3f2319;     /* Light roasted brown */
  --color-cream-light: #FCFAF6;     /* Warm luxurious ivory */
  --color-cream-dark: #F2ECE0;      /* Rich linen canvas */
  --color-gold-metallic: #D4AF37;   /* Bright polished gold */
  --color-gold-matte: #C5A059;      /* Elegant antique gold */
  --color-gold-dark: #9B7832;       /* Deep bronze gold */
  --color-text-dark: #1E120D;       /* Contrast text for light backgrounds */
  --color-text-light: #F9F6F0;      /* Contrast text for dark backgrounds */
  --color-glass-cocoa: rgba(18, 8, 5, 0.85);
  
  /* Fonts */
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Inter', sans-serif;
  
  /* Spacing & Transitions */
  --transition-smooth: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: all 0.3s ease;
  --max-width-desktop: 1440px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--color-cocoa-dark);
  color: var(--color-text-light);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
}

/* Typography Defaults */
h1, h2, h3, h4, .brand-title {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

p {
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.75);
}

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

/* Common Layout Utilities */
.section-container {
  max-width: var(--max-width-desktop);
  margin: 0 auto;
  padding: 100px 80px;
}

@media (max-width: 992px) {
  .section-container {
    padding: 70px 40px;
  }
}

@media (max-width: 576px) {
  .section-container {
    padding: 50px 20px;
  }
}

.gold-line-separator {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold-matte), transparent);
  margin: 25px auto;
}

.subtitle-gold {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--color-gold-matte);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: 3rem;
  color: var(--color-cream-light);
  line-height: 1.15;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.section-intro {
  max-width: 650px;
  margin: 0 auto;
  font-size: 1.15rem;
  font-family: var(--font-serif);
  font-style: italic;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

/* ==========================================================================
   2. Header & Navigation
   ========================================================================== */
.luxury-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  background-color: transparent;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: var(--transition-smooth);
}

.luxury-header.scrolled {
  background-color: var(--color-glass-cocoa);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 10px 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.header-container {
  max-width: var(--max-width-desktop);
  margin: 0 auto;
  padding: 25px 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
}

.luxury-header.scrolled .header-container {
  padding: 15px 80px;
}

@media (max-width: 992px) {
  .header-container, .luxury-header.scrolled .header-container {
    padding: 20px 40px;
  }
}

/* Logo Styling */
.brand-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.0;
}

.brand-title {
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--color-cream-light);
  transition: var(--transition-fast);
}

.brand-subtitle {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.55em;
  color: var(--color-gold-matte);
  margin-top: 4px; /* slightly wider gap */
}

.brand-logo:hover .brand-title {
  color: var(--color-gold-metallic);
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

/* Navigation Links */
.navigation-menu {
  display: flex;
  align-items: center;
  gap: 35px;
}

.menu-link {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  padding: 5px 0;
}

.menu-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-gold-matte);
  transition: var(--transition-fast);
}

.menu-link:hover, .menu-link.active {
  color: var(--color-gold-matte);
}

.menu-link:hover::after, .menu-link.active::after {
  width: 100%;
}

.btn-cta-nav {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-cocoa-dark);
  background-color: var(--color-gold-matte);
  padding: 10px 20px;
  border-radius: 0px;
  border: 1px solid var(--color-gold-matte);
  transition: var(--transition-fast);
}

.btn-cta-nav:hover {
  background-color: transparent;
  color: var(--color-gold-matte);
  box-shadow: 0 0 15px rgba(197, 160, 89, 0.3);
}

/* Header Actions & Theme Toggle Button */
.header-actions {
  display: flex;
  align-items: center;
  gap: 25px;
}

.theme-toggle-btn {
  background: none;
  border: none;
  color: var(--color-gold-matte);
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.theme-toggle-btn:hover {
  color: var(--color-gold-metallic);
  transform: scale(1.1);
}

.theme-icon {
  width: 18px;
  height: 18px;
}

/* Language Switcher */
.language-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.4);
}

.lang-btn {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 2px;
  transition: var(--transition-fast);
}

.lang-btn.active, .lang-btn:hover {
  color: var(--color-gold-matte);
}

.lang-divider {
  user-select: none;
}

/* Mobile Menu Toggle Button */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background-color: var(--color-cream-light);
  transition: var(--transition-fast);
}

@media (max-width: 992px) {
  .menu-toggle {
    display: flex;
  }
  
  .navigation-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background-color: var(--color-cocoa-medium);
    border-left: 1px solid rgba(212, 175, 55, 0.15);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    z-index: 1000;
    transition: var(--transition-smooth);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  }
  
  .navigation-menu.active {
    right: 0;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(3.5px) rotate(45deg);
    background-color: var(--color-gold-matte);
  }

  .menu-toggle.active span:nth-child(2) {
    transform: translateY(-3.5px) rotate(-45deg);
    background-color: var(--color-gold-matte);
  }
  
  .language-selector {
    display: none; /* Hide language selector on mobile header to save space */
  }

  .header-actions {
    margin-right: 20px; /* Space between toggle button and hamburger menu */
  }
}

/* ==========================================================================
   3. Hero Section (The Gold Hero)
   ========================================================================== */
.hero-scroll-container {
  position: relative;
  width: 100%;
  height: 300vh; /* scroll runway */
}

.hero-section {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 120px; /* Clear fixed header to prevent overlap with logo */
  background-color: var(--color-cocoa-dark);
}

#heroCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}

/* Dark-cocoa radial background glow */
.hero-glow-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(197, 160, 89, 0.04) 0%, rgba(18, 8, 5, 0.4) 70%, rgba(18, 8, 5, 0.9) 100%);
  pointer-events: none;
  z-index: 2;
}

.hero-container-content {
  max-width: var(--max-width-desktop);
  width: 100%;
  padding: 0 80px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  z-index: 3;
}

@media (max-width: 992px) {
  .hero-container-content {
    padding: 0 40px;
  }
}

.hero-text-wrapper {
  max-width: 680px;
  text-align: left;
}

.hero-pretitle {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  color: var(--color-gold-matte);
  text-transform: uppercase;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-title {
  font-size: 4.8rem;
  color: var(--color-cream-light);
  line-height: 1.05;
  margin-bottom: 25px;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
}

.hero-description {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(252, 250, 246, 0.8);
  margin-bottom: 45px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  font-weight: 300;
}

/* Luxury button with sliding fill animation */
.btn-gold {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-cream-light);
  border: 1px solid var(--color-gold-matte);
  padding: 18px 38px;
  cursor: pointer;
  overflow: hidden;
  background-color: transparent;
  z-index: 1;
  transition: var(--transition-smooth);
}

.btn-gold::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-gold-dark), var(--color-gold-matte));
  transition: var(--transition-smooth);
  z-index: -1;
}

.btn-gold:hover {
  color: var(--color-cocoa-dark);
  border-color: var(--color-gold-metallic);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.25);
  transform: translateY(-2px);
}

.btn-gold:hover::before {
  left: 0;
}

.btn-arrow-icon {
  width: 18px;
  height: 18px;
  transition: var(--transition-fast);
}

.btn-gold:hover .btn-arrow-icon {
  transform: translateX(5px);
}

/* Scroll Mouse Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.scroll-mouse {
  width: 20px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 10px;
  position: relative;
}

.scroll-wheel {
  width: 2px;
  height: 6px;
  background-color: var(--color-gold-matte);
  border-radius: 1px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheelAnim 2s infinite;
}

.scroll-text {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
  transition: var(--transition-fast);
}

.hero-scroll-indicator:hover .scroll-text {
  color: var(--color-gold-matte);
}

@keyframes scrollWheelAnim {
  0% { opacity: 0; transform: translate(-50%, 0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 12px); }
}

/* ==========================================================================
   4. Sourcing Story ("The Ferrero Approach")
   ========================================================================== */
.story-section {
  background-color: var(--color-cream-light);
  color: var(--color-text-dark);
}

.story-section .section-title {
  color: var(--color-text-dark);
}

.story-section .section-intro {
  color: rgba(30, 18, 13, 0.7);
}

.story-header {
  text-align: center;
  margin-bottom: 80px;
}

/* Split Story Grid Block */
/* Split Story Grid Block */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 60px;
}

.story-card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-cocoa-medium);
  border: 1px solid rgba(212, 175, 55, 0.15);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
  transition: var(--transition-smooth);
}

.story-card:hover {
  border-color: var(--color-gold-matte);
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(197, 160, 89, 0.2);
}

/* Image container with elegant luxury frames */
.story-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 380px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.story-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.story-image-wrapper:hover .story-img {
  transform: scale(1.05);
}

/* Luxury border overlay inside the image frame */
.story-image-overlay {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  bottom: 20px;
  border: 1px solid rgba(197, 160, 89, 0.35);
  pointer-events: none;
  transition: var(--transition-smooth);
}

.story-image-wrapper:hover .story-image-overlay {
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border-color: var(--color-gold-matte);
}

/* Text Content within Story Block */
.story-info-wrapper {
  padding: 45px 40px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.story-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--color-gold-matte);
  margin-bottom: 10px;
}

.story-item-title {
  font-size: 2.2rem;
  color: var(--color-cream-light);
  margin-bottom: 20px;
}

.story-item-description {
  color: var(--color-text-light);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 30px;
  flex-grow: 1;
}

/* Pills under description list */
.sourcing-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.sourcing-pill {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-light);
  border: 1px solid rgba(197, 160, 89, 0.25);
  padding: 8px 18px;
  border-radius: 0px;
  background-color: rgba(197, 160, 89, 0.05);
}

/* Responsive Story layouts */
@media (max-width: 992px) {
  .story-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .story-image-wrapper {
    height: 320px;
  }
}

/* ==========================================================================
   5. Interactive Product Carousel
   ========================================================================== */
.carousel-section {
  position: relative;
  background-color: var(--color-cocoa-medium);
  overflow: hidden;
}

.carousel-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 20%, rgba(197, 160, 89, 0.02) 0%, transparent 60%),
              radial-gradient(circle at 90% 80%, rgba(197, 160, 89, 0.02) 0%, transparent 60%);
  pointer-events: none;
}

.carousel-header {
  text-align: center;
  margin-bottom: 60px;
}

/* Viewport with Navigation buttons surrounding track */
.carousel-viewport-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Track holding sliding cards */
.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 40px;
  padding: 20px 10px;
  width: 100%;
  scrollbar-width: none; /* Hide scrollbar on Firefox */
}

.carousel-track::-webkit-scrollbar {
  display: none; /* Hide scrollbar on Chrome, Safari */
}

/* Carousel Control Arrows */
.nav-arrow {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background-color: var(--color-cocoa-dark);
  color: var(--color-gold-matte);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-fast);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.nav-arrow:hover {
  background-color: var(--color-gold-matte);
  color: var(--color-cocoa-dark);
  border-color: var(--color-gold-matte);
  box-shadow: 0 0 20px rgba(197, 160, 89, 0.4);
}

.nav-arrow svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .nav-arrow {
    display: none; /* Rely on drag/swipe on tablet and mobile */
  }
}

/* Product Card Base Layout */
.product-card {
  flex: 0 0 380px;
  height: 520px;
  background-color: var(--color-cocoa-dark);
  border: 1px solid rgba(212, 175, 55, 0.15);
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.4s ease;
  user-select: none;
}

@media (max-width: 480px) {
  .product-card {
    flex: 0 0 290px;
    height: 450px;
  }
}

.product-card:hover {
  border-color: var(--color-gold-matte);
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(197, 160, 89, 0.15);
}

/* Card inner for transitions */
.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Front Visual Layout */
.card-visual {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px;
  z-index: 2;
  position: relative;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.card-badge {
  align-self: flex-start;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--color-gold-matte);
  border: 1px solid rgba(197, 160, 89, 0.4);
  padding: 6px 12px;
}

.product-img {
  width: 80%;
  max-width: 220px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

.product-card:hover .product-img {
  transform: scale(1.08) rotate(3deg);
}

.card-summary {
  text-align: center;
}

.card-summary h3 {
  font-size: 1.8rem;
  color: var(--color-cream-light);
  margin-bottom: 6px;
}

.card-tagline {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.05em;
}

/* Back Details Overlay: Swaps on Hover */
.card-details-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-cocoa-medium);
  border-top: 3px solid var(--color-gold-matte);
  padding: 45px 35px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 3;
}

.product-card:hover .card-details-overlay {
  opacity: 1;
  transform: translateY(0);
}

.detail-header {
  margin-bottom: 20px;
}

.detail-subtitle {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--color-gold-matte);
  display: block;
  margin-bottom: 5px;
}

.detail-header h3 {
  font-size: 1.8rem;
  color: var(--color-cream-light);
}

/* Layer Architecture List representation */
.layer-list {
  list-style: none;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}

.layer-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.8);
}

.layer-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--color-gold-matte);
  color: var(--color-gold-matte);
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.layer-text strong {
  color: var(--color-cream-light);
  font-weight: 500;
}

.detail-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 15px;
}

.taste-notes {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}

/* Indicator dots */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}

.indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: var(--transition-fast);
}

.indicator-dot.active, .indicator-dot:hover {
  background-color: var(--color-gold-matte);
  transform: scale(1.2);
}

/* ==========================================================================
   6. Gift & Occasion Hub
   ========================================================================== */
.gift-hub-section {
  background-color: var(--color-cream-dark);
  color: var(--color-text-dark);
}

.gift-hub-section .section-title {
  color: var(--color-text-dark);
}

.gift-hub-section .section-intro {
  color: rgba(30, 18, 13, 0.7);
}

.gift-header {
  text-align: center;
  margin-bottom: 70px;
}

/* Two column split card grid */
.gift-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 80px;
}

.gift-card {
  position: relative;
  background-color: var(--color-cocoa-dark);
  border: 1px solid rgba(197, 160, 89, 0.15);
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  height: 500px;
}

.gift-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.gift-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

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

/* Luxury bottom-overlay text drawer */
.gift-image-text {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(18, 8, 5, 0.95) 0%, rgba(18, 8, 5, 0.7) 60%, transparent 100%);
  padding: 40px;
  color: var(--color-text-light);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 220px;
}

.gift-image-text h3 {
  font-size: 2rem;
  color: var(--color-cream-light);
  margin-bottom: 12px;
}

.gift-image-text p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 992px) {
  .gift-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .gift-card {
    height: 400px;
  }
}

/* Step-by-Step Gift Recommender Widget container */
.gift-finder-container {
  max-width: 900px;
  margin: 0 auto;
}

.gift-finder-card {
  background-color: var(--color-cocoa-dark);
  border: 1px solid var(--color-gold-matte);
  padding: 50px 60px;
  color: var(--color-text-light);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .gift-finder-card {
    padding: 40px 30px;
  }
}

.finder-header {
  text-align: center;
  margin-bottom: 40px;
}

.finder-header h3 {
  font-size: 2.2rem;
  color: var(--color-cream-light);
  margin-top: 5px;
}

.finder-header p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 5px;
}

/* Step Layout wrapper */
.finder-step {
  display: none;
  animation: finderFadeIn 0.5s ease;
}

.finder-step.active {
  display: block;
}

.finder-question {
  font-size: 1.25rem;
  font-family: var(--font-serif);
  text-align: center;
  color: var(--color-cream-light);
  margin-bottom: 30px;
}

/* Grid of option cards */
.finder-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 576px) {
  .finder-options {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

.option-btn {
  background: none;
  border: 1px solid rgba(212, 175, 55, 0.25);
  padding: 22px 30px;
  color: var(--color-text-light);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.option-btn:hover {
  border-color: var(--color-gold-matte);
  background-color: rgba(197, 160, 89, 0.05);
  box-shadow: 0 0 15px rgba(197, 160, 89, 0.15);
}

/* Result Screen layout */
.finder-result {
  display: none;
  animation: finderFadeIn 0.6s ease;
}

.finder-result.active {
  display: block;
}

.result-details {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 768px) {
  .result-details {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
}

.result-image-wrapper {
  background-color: var(--color-cocoa-medium);
  border: 1px solid rgba(212, 175, 55, 0.15);
  padding: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.result-image-wrapper img {
  max-width: 180px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.4));
}

.result-text-wrapper {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.result-tag {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--color-gold-matte);
  font-weight: 600;
  text-transform: uppercase;
}

.result-text-wrapper h4 {
  font-size: 2.2rem;
  color: var(--color-cream-light);
}

.result-text-wrapper p {
  font-size: 0.95rem;
  line-height: 1.6;
}

.btn-restart {
  align-self: flex-start;
  background: none;
  border: none;
  color: var(--color-gold-matte);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 5px 0;
  border-bottom: 1px solid var(--color-gold-matte);
  margin-top: 15px;
  transition: var(--transition-fast);
}

.btn-restart:hover {
  color: var(--color-cream-light);
  border-color: var(--color-cream-light);
}

@media (max-width: 768px) {
  .btn-restart {
    align-self: center;
  }
}

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

/* ==========================================================================
   7. Lounge Section & Location (Heritage Lounge)
   ========================================================================== */
.lounge-section {
  background-color: var(--color-cocoa-dark);
}

.lounge-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 80px;
  align-items: center;
}

@media (max-width: 992px) {
  .lounge-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

.lounge-info-wrapper {
  padding-right: 20px;
}

.lounge-desc {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
}

.lounge-details-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.lounge-detail-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.detail-icon {
  font-size: 1.1rem;
  color: var(--color-gold-matte);
  margin-top: 2px;
}

.lounge-detail-item h4 {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-cream-light);
  margin-bottom: 8px;
}

.lounge-detail-item p {
  font-size: 0.95rem;
  line-height: 1.6;
}

.lounge-link {
  color: var(--color-gold-matte);
  border-bottom: 1px solid transparent;
}

.lounge-link:hover {
  border-bottom-color: var(--color-gold-matte);
  color: var(--color-cream-light);
}

/* Map Card Canvas layout */
.map-card-canvas {
  background-color: var(--color-cocoa-medium);
  border: 1px solid rgba(212, 175, 55, 0.2);
  padding: 15px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}

.map-header {
  padding: 10px 5px 15px 5px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  margin-bottom: 15px;
}

.map-status {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--color-gold-matte);
  font-weight: 500;
}

.map-card-canvas iframe {
  width: 100%;
  height: 380px;
  border: none;
  filter: grayscale(0.8) contrast(1.1) invert(0.9);
  transition: var(--transition-smooth);
}

.map-card-canvas:hover iframe {
  filter: grayscale(0) contrast(1) invert(0);
}

.map-footer {
  padding-top: 15px;
  display: flex;
  justify-content: flex-end;
}

.btn-map-nav {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-cocoa-dark);
  background-color: var(--color-gold-matte);
  padding: 10px 22px;
  transition: var(--transition-fast);
}

.btn-map-nav:hover {
  background-color: var(--color-cream-light);
  color: var(--color-cocoa-dark);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   8. Luxury Footer
   ========================================================================== */
.luxury-footer {
  background-color: var(--color-cocoa-dark);
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  color: var(--color-text-light);
}

.footer-container {
  max-width: var(--max-width-desktop);
  margin: 0 auto;
  padding: 80px 80px 40px 80px;
}

@media (max-width: 992px) {
  .footer-container {
    padding: 60px 40px 30px 40px;
  }
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: 50px;
  margin-bottom: 60px;
}

@media (max-width: 992px) {
  .footer-top-grid {
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
  }
}

@media (max-width: 768px) {
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.footer-column-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  line-height: 0.9;
  align-self: flex-start;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
}

.footer-social-links {
  display: flex;
  gap: 15px;
  margin-top: 5px;
}

.social-link {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  transition: var(--transition-fast);
}

.social-link:hover {
  border-color: var(--color-gold-matte);
  color: var(--color-gold-matte);
  background-color: rgba(197, 160, 89, 0.05);
}

/* Links Columns */
.footer-column-links h4, .footer-column-newsletter h4 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--color-gold-matte);
  text-transform: uppercase;
  margin-bottom: 25px;
}

.footer-column-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-column-links a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-column-links a:hover {
  color: var(--color-gold-matte);
  padding-left: 3px;
}

/* Newsletter Column */
.footer-column-newsletter {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

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

.newsletter-subscription-form {
  display: flex;
  width: 100%;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  padding-bottom: 5px;
  margin-top: 10px;
}

.newsletter-input {
  flex-grow: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--color-cream-light);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  padding: 5px;
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.newsletter-btn {
  background: none;
  border: none;
  color: var(--color-gold-matte);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  cursor: pointer;
  padding: 5px;
  transition: var(--transition-fast);
}

.newsletter-btn:hover {
  color: var(--color-cream-light);
}

/* Bottom Bar */
.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

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

.design-credit {
  letter-spacing: 0.1em;
  color: var(--color-gold-matte) !important;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   9. Scroll-Linked Animations (IntersectionObserver triggered)
   ========================================================================== */
.reveal, .reveal-left, .reveal-right {
  opacity: 0;
  transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1), opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal {
  transform: translateY(40px);
}

.reveal-left {
  transform: translateX(-55px);
}

.reveal-right {
  transform: translateX(55px);
}

.reveal.active, .reveal-left.active, .reveal-right.active {
  opacity: 1;
  transform: translate(0);
}

/* ==========================================================================
   10. Light Mode Theme Styles & Overrides
   ========================================================================== */
body.light-mode {
  --color-cocoa-dark: #FAF7F2;      /* soft luxurious cream background */
  --color-cocoa-medium: #F2ECE0;    /* linen cream */
  --color-cocoa-light: #E6DCD0;     /* light warm gray */
  --color-cream-light: #1A0F0A;     /* dark titles */
  --color-cream-dark: #2C1710;      /* medium cocoa dark titles */
  --color-text-dark: #FAF7F2;       /* light text on dark elements */
  --color-text-light: #2C1710;      /* dark text on light elements */
  --color-glass-cocoa: rgba(250, 247, 242, 0.95);
}

/* Maintain light icons on header scrolled */
body.light-mode .luxury-header.scrolled {
  border-bottom-color: rgba(197, 160, 89, 0.25);
  background-color: var(--color-glass-cocoa);
}

body.light-mode .menu-link {
  color: rgba(30, 18, 13, 0.7);
}

body.light-mode .menu-link:hover, body.light-mode .menu-link.active {
  color: var(--color-gold-matte);
}

body.light-mode .menu-toggle span {
  background-color: var(--color-cream-light);
}

body.light-mode .hero-section {
  background-color: var(--color-cocoa-dark);
  background-image: none;
}

body.light-mode .hero-glow-overlay {
  background: radial-gradient(circle at center, rgba(197, 160, 89, 0.03) 0%, rgba(250, 247, 242, 0.3) 70%, rgba(250, 247, 242, 0.85) 100%);
  z-index: 2;
}

body.light-mode .hero-pretitle {
  text-shadow: none;
}

body.light-mode .hero-title {
  text-shadow: none;
}

body.light-mode .hero-description {
  text-shadow: none;
  color: rgba(30, 18, 13, 0.8) !important;
}

body.light-mode .scroll-mouse {
  border-color: rgba(30, 18, 13, 0.4);
}

body.light-mode .scroll-text {
  color: rgba(30, 18, 13, 0.5);
}

/* Sourcing section automatically alternates in light mode */
body.light-mode .story-section {
  background-color: var(--color-cocoa-dark);
  color: var(--color-text-light);
}

body.light-mode .story-section .section-title {
  color: var(--color-cream-light);
}

body.light-mode .story-section .section-intro {
  color: rgba(30, 18, 13, 0.7);
}

body.light-mode .story-item-title {
  color: var(--color-cream-light);
}

body.light-mode .story-item-description {
  color: rgba(30, 18, 13, 0.75);
}

body.light-mode .sourcing-pill {
  color: var(--color-text-light);
  border-color: rgba(197, 160, 89, 0.3);
  background-color: rgba(197, 160, 89, 0.05);
}

/* Product Carousel Contrast Overrides */
body.light-mode .product-card {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  background-color: var(--color-cocoa-medium);
  border-color: rgba(197, 160, 89, 0.2);
}

body.light-mode .product-card:hover {
  box-shadow: 0 15px 35px rgba(197, 160, 89, 0.2);
}

body.light-mode .card-summary h3 {
  color: var(--color-cream-light);
}

body.light-mode .card-tagline {
  color: rgba(30, 18, 13, 0.65);
}

body.light-mode .card-details-overlay {
  background-color: var(--color-cocoa-dark);
}

body.light-mode .layer-list li {
  color: rgba(30, 18, 13, 0.8);
}

body.light-mode .layer-list li strong {
  color: var(--color-cream-light);
}

body.light-mode .taste-notes {
  color: rgba(30, 18, 13, 0.6);
}

body.light-mode .carousel-indicators .indicator-dot {
  background-color: rgba(30, 18, 13, 0.2);
}

body.light-mode .carousel-indicators .indicator-dot.active {
  background-color: var(--color-gold-matte);
}

/* Gifting Grid Text Overlay (Always High Contrast Light Text on Dark Img Overlay) */
body.light-mode .gift-image-text {
  color: #F9F6F0 !important;
}

body.light-mode .gift-image-text h3 {
  color: #FCFAF6 !important;
}

body.light-mode .gift-image-text p {
  color: rgba(255, 255, 255, 0.75) !important;
}

body.light-mode .gift-finder-card {
  background-color: var(--color-cocoa-medium);
  box-shadow: 0 20px 50px rgba(39, 20, 14, 0.1);
}

body.light-mode .finder-header h3 {
  color: var(--color-cream-light);
}

body.light-mode .finder-header p {
  color: rgba(30, 18, 13, 0.6) !important;
}

body.light-mode .finder-question {
  color: var(--color-cream-light);
}

/* Gifting Assistant Option Cards */
body.light-mode .option-btn {
  border-color: rgba(197, 160, 89, 0.4);
  color: var(--color-text-light);
}

body.light-mode .option-btn:hover {
  background-color: rgba(197, 160, 89, 0.08);
}

body.light-mode .result-text-wrapper h4 {
  color: var(--color-cream-light);
}

body.light-mode .result-text-wrapper p {
  color: rgba(30, 18, 13, 0.75) !important;
}

body.light-mode .btn-restart {
  color: var(--color-gold-matte);
  border-bottom-color: var(--color-gold-matte);
}

body.light-mode .btn-restart:hover {
  color: var(--color-cream-light);
  border-color: var(--color-cream-light);
}

/* Boutique Lounge overrides */
body.light-mode .lounge-desc {
  color: rgba(30, 18, 13, 0.75) !important;
}

body.light-mode .lounge-detail-item h4 {
  color: var(--color-cream-light);
}

body.light-mode .lounge-detail-item p {
  color: rgba(30, 18, 13, 0.75) !important;
}

body.light-mode .lounge-link {
  color: var(--color-gold-matte);
}

body.light-mode .lounge-link:hover {
  color: var(--color-cream-light);
  border-bottom-color: var(--color-cream-light);
}

body.light-mode .map-card-canvas {
  background-color: var(--color-cocoa-medium);
  box-shadow: 0 20px 45px rgba(39, 20, 14, 0.1);
}

/* Maps Grayscale Mode without inversion */
body.light-mode .map-card-canvas iframe {
  filter: grayscale(0.6) contrast(1.0);
}

body.light-mode .map-card-canvas:hover iframe {
  filter: grayscale(0) contrast(1.0);
}

body.light-mode .btn-map-nav {
  color: var(--color-cocoa-dark);
}

body.light-mode .btn-map-nav:hover {
  background-color: var(--color-cream-light);
  color: var(--color-cocoa-dark);
}

/* Footer UI Overrides */
body.light-mode .footer-desc {
  color: rgba(30, 18, 13, 0.7) !important;
}

body.light-mode .footer-column-links a {
  color: rgba(30, 18, 13, 0.75) !important;
}

body.light-mode .footer-column-links a:hover {
  color: var(--color-gold-matte) !important;
}

body.light-mode .footer-column-newsletter p {
  color: rgba(30, 18, 13, 0.7) !important;
}

body.light-mode .footer-bottom-bar p {
  color: rgba(30, 18, 13, 0.5) !important;
}

body.light-mode .newsletter-input {
  color: var(--color-cream-light);
}

body.light-mode .newsletter-input::placeholder {
  color: rgba(30, 18, 13, 0.45);
}

body.light-mode .newsletter-subscription-form {
  border-bottom-color: rgba(39, 20, 14, 0.3);
}

body.light-mode .footer-brand .brand-title {
  color: var(--color-cream-light);
}

body.light-mode .social-link {
  border-color: rgba(39, 20, 14, 0.2);
  color: rgba(39, 20, 14, 0.6);
}

body.light-mode .social-link:hover {
  border-color: var(--color-gold-matte);
  color: var(--color-gold-matte);
  background-color: rgba(197, 160, 89, 0.05);
}

/* Header actions text contrast fix */
body.light-mode .language-selector {
  color: rgba(39, 20, 14, 0.5);
}

body.light-mode .lang-btn {
  color: inherit;
}

body.light-mode .lang-btn.active,
body.light-mode .lang-btn:hover {
  color: var(--color-gold-matte);
}

body.light-mode .btn-cta-nav {
  color: var(--color-cocoa-dark);
}

body.light-mode .btn-cta-nav:hover {
  color: var(--color-gold-matte);
  background-color: transparent;
}

/* Global paragraph element font colors in light mode */
body.light-mode p {
  color: rgba(39, 20, 14, 0.75) !important;
}
