:root {
  /* Colors */
  --primary: #4E7C4F;
  --primary-light: #6A9C6B;
  --secondary: #2E1F14;
  --secondary-light: #4A3525;
  --accent: #B08D57;
  --bg-beige: #C4A182; /* Adjusted to exactly match 1.png background */
  --bg-dark: #191816; /* Adjusted to exactly match 2.png background */
  --white: #FFFFFF;
  --text-main: #2E1F14;
  --text-light: #4F3C2C; /* Darkened slightly for better contrast on the new beige */
  
  /* Typography */
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Outfit', sans-serif;
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-beige);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
}

.eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 15px;
  text-transform: uppercase;
}

.highlight {
  color: var(--primary);
}

.divider {
  width: 40px;
  height: 2px;
  background-color: var(--primary);
  margin: 20px 0;
}

/* BUTTONS */
.btn-primary {
  background-color: var(--secondary);
  color: var(--white);
  border: none;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: var(--secondary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(46, 31, 20, 0.2);
}

.btn-outline {
  background-color: transparent;
  color: var(--secondary);
  border: 1px solid var(--secondary);
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.btn-outline:hover {
  background-color: var(--secondary);
  color: var(--white);
}

.btn-outline.light {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline.light:hover {
  background-color: var(--white);
  color: var(--secondary);
  border-color: var(--white);
}

.btn-commander {
  background-color: var(--secondary);
  color: var(--white);
  border: none;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 15px;
  transition: var(--transition);
}

.btn-link:hover {
  gap: 10px;
}

/* NAVIGATION */
.nav-container {
  padding: 20px 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}

.nav-container nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-size: 15px;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
}

.nav-links a.active {
  position: relative;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 20px;
  height: 2px;
  background-color: var(--primary);
}

/* HERO SECTION */
.hero {
  padding: 160px 0 80px;
  position: relative;
}

.hero-wrapper {
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-content {
  flex: 1;
}

.hero-title {
  font-size: 64px;
  color: var(--secondary);
  margin-bottom: 10px;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-light);
  margin-bottom: 35px;
}

.hero-actions {
  display: flex;
  gap: 20px;
  margin-bottom: 50px;
}

.hero-features {
  display: flex;
  gap: 40px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(78, 124, 79, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 20px;
}

.feature-item p {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-light);
}

.hero-image {
  flex: 1;
  text-align: right;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  mix-blend-mode: darken;
}

/* PREMIUM PRODUCT SECTION */
.premium-product {
  background-color: var(--bg-dark);
  padding: 100px 0;
  color: var(--white);
  overflow: hidden;
  position: relative;
}

.premium-wrapper {
  display: flex;
  align-items: center;
  gap: 100px;
}

.premium-content {
  flex: 1;
}

.premium-title {
  font-size: 48px;
  margin-bottom: 10px;
}

.premium-description {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
}

.premium-icons {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
}

.icon-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.icon-item i {
  font-size: 24px;
  color: var(--accent);
}

.icon-item span {
  font-size: 13px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.6);
}

.premium-product-image {
  flex: 1;
  position: relative;
}

.premium-product-image img {
  max-width: 100%;
  height: auto;
  position: relative;
  z-index: 2;
}

.smoke-effect {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
  z-index: 1;
}

/* STORY SPLIT */
.story-split {
  display: flex;
  height: 600px;
}

.story-left, .story-right {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  padding: 80px;
}

.story-left {
  background-color: var(--bg-beige);
}

#kiosk-container {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(255,255,255,0.98);
    z-index: 99999; /* Force top priority */
    display: none;
    overflow-y: auto;
    backdrop-filter: blur(20px);
    pointer-events: auto; /* Ensure clicks are captured */
}

.k-btn-close {
    position: absolute;
    top: 30px;
    right: 40px;
    background: #f0f0f0;
    border: none;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.k-btn-close:hover {
    background: var(--error);
    color: white;
    transform: scale(1.05);
}

.story-image-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  z-index: 0;
}

.story-right {
  background: url('4.png') no-repeat center center;
  background-size: cover;
  color: var(--white);
}

.story-content {
  position: relative;
  z-index: 1;
  max-width: 450px;
}

.story-content h3 {
  font-size: 36px;
  margin-bottom: 15px;
}

.story-content p {
  font-size: 16px;
  margin-bottom: 20px;
  color: var(--text-light);
}

.story-right .story-content p {
  color: rgba(255, 255, 255, 0.7);
}

/* FLAVORS CAROUSEL */
.flavors-carousel-section {
  padding: 100px 0;
  text-align: center;
}

.carousel-header {
  margin-bottom: 60px;
}

.carousel-header h2 {
  font-size: 42px;
}

.carousel-container {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 60px;
  position: relative;
}

.carousel-track-container {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  list-style: none;
  gap: 30px;
  transition: transform 0.5s ease;
}

.carousel-slide {
  flex: 0 0 calc(20% - 24px);
  text-align: center;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  margin-bottom: 20px;
  transition: var(--transition);
}

.carousel-slide:hover img {
  transform: scale(1.05);
}

.carousel-slide h4 {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--secondary);
}

.carousel-prev, .carousel-next {
  background: white;
  border: 1px solid #EEE;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: var(--transition);
  z-index: 10;
}

.carousel-prev:hover, .carousel-next:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.btn-primary.center {
  margin: 0 auto;
}

/* BOTTOM FEATURES */
.bottom-features {
    padding: 60px 0;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-feature {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-feature i {
    font-size: 24px;
    color: var(--primary);
}

.footer-feature .text {
    display: flex;
    flex-direction: column;
}

.footer-feature strong {
    font-size: 15px;
    color: var(--secondary);
}

.footer-feature span {
    font-size: 12px;
    color: var(--text-light);
}

/* FOOTER */
footer {
  padding: 40px 0;
  background-color: var(--white);
  text-align: center;
  font-size: 14px;
  color: var(--text-light);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-wrapper, .premium-wrapper {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-title {
    font-size: 48px;
  }
  
  .hero-actions, .hero-features {
    justify-content: center;
  }
  
  .story-split {
    flex-direction: column;
    height: auto;
  }
  
  .carousel-slide {
    flex: 0 0 calc(33.333% - 20px);
  }
  
  .features-grid {
      grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .carousel-slide {
        flex: 0 0 100%;
    }
}