/* ============================================
   MOLECULAR BREW - Zen-Tech Design System
   ============================================ */

:root {
  /* Color Palette - Roast & Leaf */
  --color-espresso: #1B1411;
  --color-matcha-cream: #F1F8E9;
  --color-amber-glow: #FFBF00;
  --color-copper-steam: #B87333;
  --color-smoke: rgba(255, 255, 255, 0.1);
  --color-dark-bg: #0F0A08;
  --color-light-bg: #FAF9F6;
  
  /* Typography */
  --font-header: 'Tenor Sans', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 4rem;
  
  /* Border & Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.6s ease;
  
  /* Shadows */
  --shadow-smoke: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 8px 32px rgba(184, 115, 51, 0.15);
  --shadow-deep: 0 12px 48px rgba(27, 20, 17, 0.3);
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-espresso);
  background-color: var(--color-light-bg);
  overflow-x: hidden;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

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

h1 {
  font-size: clamp(2rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  margin-bottom: var(--space-md);
  max-width: 65ch;
}

a {
  color: var(--color-copper-steam);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--color-amber-glow);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.site-header {
  position: relative;
  width: 100%;
  padding: var(--space-lg) var(--space-md);
  background: var(--color-light-bg);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
}

.brand-text {
  font-family: var(--font-header);
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--color-espresso);
  font-weight: 400;
  flex: 1;
}

.main-navigation {
  display: flex;
  gap: 15px;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}

.main-navigation a {
  font-size: 0.95rem;
  text-transform: lowercase;
  letter-spacing: 0.03em;
  color: var(--color-espresso);
  position: relative;
  padding: var(--space-xs) 0;
  white-space: nowrap;
}

.main-navigation a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-copper-steam);
  transition: width var(--transition-base);
}

.main-navigation a:hover::after {
  width: 100%;
}

/* Burger Menu - Always visible in header */
.menu-toggle {
  display: block;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  z-index: 1001;
  margin-left: var(--space-md);
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-espresso);
  margin: 5px 0;
  transition: all var(--transition-base);
}

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

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

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

/* Desktop Navigation */
@media (min-width: 1024px) {
  .main-navigation {
    display: flex;
  }
  
  .menu-toggle {
    display: none;
  }
}

/* Mobile Navigation - Separate overlay */
@media (max-width: 1023px) {
  .main-navigation {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-matcha-cream);
    flex-direction: column;
    justify-content: flex-start;
    padding: var(--space-xxl) var(--space-lg);
    gap: var(--space-lg);
    box-shadow: var(--shadow-deep);
    transition: right var(--transition-base);
    z-index: 999;
  }
  
  .main-navigation.active {
    right: 0;
  }
  
  .main-navigation a {
    font-size: 1.1rem;
    width: 100%;
    padding: var(--space-sm) 0;
  }
}

/* ============================================
   HERO BANNERS (Full-Width)
   ============================================ */

.hero-banner {
  width: 100vw;
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  max-width: 1200px;
  width: 100%;
  background: rgba(250, 249, 246, 0.85);
  backdrop-filter: blur(4px);
  margin: var(--space-xl) 0;
}

.hero-image {
  display: none;
}

.hero-content h1 {
  color: var(--color-espresso);
  margin-bottom: var(--space-lg);
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.8);
}

.hero-content p {
  color: var(--color-espresso);
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin: 0 auto var(--space-lg);
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.6);
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */

main {
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

.content-section {
  margin-bottom: var(--space-xxl);
  padding: var(--space-xl) 0;
  text-align: center;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-xl);
  color: var(--color-espresso);
}

/* ============================================
   GRID LAYOUTS
   ============================================ */

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--space-md);
}

.content-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
}

.card-element {
  background: var(--color-matcha-cream);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-smoke);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card-element:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
  color: var(--color-espresso);
}

.card-description {
  color: var(--color-espresso);
  opacity: 0.8;
  margin-bottom: var(--space-md);
}

.card-price {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-copper-steam);
  margin-top: var(--space-md);
}

.card-link {
  display: inline-block;
  margin-top: var(--space-md);
  color: var(--color-copper-steam);
  font-weight: 500;
  transition: color var(--transition-base);
}

.card-link:hover {
  color: var(--color-amber-glow);
}

/* ============================================
   INTERACTIVE ELEMENTS
   ============================================ */

.control-group {
  margin-bottom: var(--space-xl);
}

.control-label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 500;
  color: var(--color-espresso);
}

.range-input {
  width: 100%;
  height: 6px;
  border-radius: var(--radius-sm);
  background: var(--color-matcha-cream);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-copper-steam);
  cursor: pointer;
  box-shadow: var(--shadow-smoke);
}

.range-input::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-copper-steam);
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow-smoke);
}

.value-display {
  display: inline-block;
  margin-left: var(--space-sm);
  font-weight: 600;
  color: var(--color-copper-steam);
}

.flavor-chart {
  width: 100%;
  height: 300px;
  background: var(--color-matcha-cream);
  border-radius: var(--radius-md);
  margin-top: var(--space-lg);
  position: relative;
  overflow: hidden;
}

.chart-line {
  stroke: var(--color-copper-steam);
  stroke-width: 3;
  fill: none;
}

.chart-area {
  fill: var(--color-smoke);
}

/* ============================================
   TERROIR MAP / GLOBE
   ============================================ */

.map-container {
  width: 100%;
  height: 500px;
  background: var(--color-dark-bg);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  margin: var(--space-xl) 0;
}

.region-marker {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--color-amber-glow);
  border-radius: 50%;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  box-shadow: 0 0 0 0 rgba(255, 191, 0, 0.4);
}

.region-marker:hover {
  transform: translate(-50%, -50%) scale(1.5);
  box-shadow: 0 0 20px 8px rgba(255, 191, 0, 0.6);
}

.region-info {
  position: absolute;
  background: var(--color-matcha-cream);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  max-width: 300px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
  box-shadow: var(--shadow-deep);
}

.region-info.active {
  opacity: 1;
  pointer-events: auto;
}

/* ============================================
   EXPLODED VIEW PRODUCTS
   ============================================ */

.exploded-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  margin: var(--space-xl) 0;
}

.exploded-visual {
  position: relative;
  height: 400px;
  background: var(--color-matcha-cream);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.component-part {
  position: absolute;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-smoke);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--color-espresso);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.exploded-details {
  padding: var(--space-lg);
}

.detail-list {
  list-style: none;
  margin-top: var(--space-md);
}

.detail-list li {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(27, 20, 17, 0.1);
}

.detail-list li:last-child {
  border-bottom: none;
}

/* ============================================
   CONTACT FORM
   ============================================ */

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  margin: var(--space-xl) 0;
}

.form-container {
  background: var(--color-matcha-cream);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 500;
  color: var(--color-espresso);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-md);
  border: 1px solid rgba(27, 20, 17, 0.2);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  background: white;
  color: var(--color-espresso);
  transition: border-color var(--transition-base);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-copper-steam);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.checkbox-input {
  margin-top: 4px;
  cursor: pointer;
}

.checkbox-label {
  font-size: 0.9rem;
  color: var(--color-espresso);
  opacity: 0.8;
}

.submit-button {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  background: var(--color-copper-steam);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition-base), transform var(--transition-fast);
  margin-top: var(--space-lg);
}

.submit-button:hover {
  background: var(--color-amber-glow);
  color: black;
  transform: translateY(-2px);
}
.footer-bottom{
  display: flex;
  justify-content: center;
}

.submit-button:active {
  transform: translateY(0);
}

.map-iframe {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: var(--radius-lg);
}

.contact-info {
  background: var(--color-matcha-cream);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
}

.info-item {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(27, 20, 17, 0.1);
}

.info-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.info-label {
  font-weight: 600;
  color: var(--color-espresso);
  margin-bottom: var(--space-xs);
}

.info-value {
  color: var(--color-espresso);
  opacity: 0.8;
}

/* ============================================
   FLAVOR PROFILE VISUALIZER
   ============================================ */

.flavor-shape {
  width: 100px;
  height: 100px;
  margin: var(--space-md) auto;
  border-radius: 50%;
  animation: pulse 3s ease-in-out infinite;
}

.flavor-shape.citrus {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.flavor-shape.chocolate {
  background: linear-gradient(135deg, #8B4513, #654321);
  border-radius: 50%;
  animation: slowMove 4s ease-in-out infinite;
}

.flavor-shape.floral {
  background: linear-gradient(135deg, #FFB6C1, #FF69B4);
  clip-path: polygon(50% 0%, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0% 50%, 40% 40%);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes slowMove {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.05); }
}

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

.site-footer {
  background: var(--color-espresso);
  color: var(--color-matcha-cream);
  padding: var(--space-xl) var(--space-md);
  margin-top: var(--space-xxl);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
}

.footer-section h4 {
  color: var(--color-matcha-cream);
  margin-bottom: var(--space-md);
  font-size: 1rem;
}

.footer-menu {
  list-style: none;
}

.footer-menu li {
  margin-bottom: var(--space-sm);
}

.footer-menu a {
  color: var(--color-matcha-cream);
  opacity: 0.8;
  font-size: 0.9rem;
  transition: opacity var(--transition-base);
}

.footer-menu a:hover {
  opacity: 1;
  color: var(--color-amber-glow);
}

.footer-bottom {
  text-align: center;
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(241, 248, 233, 0.2);
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ============================================
   PRIVACY POPUP
   ============================================ */

.privacy-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(27, 20, 17, 0.9);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.privacy-overlay.active {
  display: flex;
}

.privacy-popup {
  background: var(--color-matcha-cream);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.close-privacy {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-espresso);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: background var(--transition-base);
}

.close-privacy:hover {
  background: rgba(27, 20, 17, 0.1);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

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

.mt-lg {
  margin-top: var(--space-lg);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.date {
  font-size: 0.9rem;
  color: var(--color-espresso);
  opacity: 0.7;
  margin-top: var(--space-md);
}

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

@media (max-width: 768px) {
  .hero-banner {
    min-height: 50vh;
  }
  
  .exploded-container {
    grid-template-columns: 1fr;
  }
  
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  
  .map-container {
    height: 300px;
  }
  
  .flavor-chart {
    height: 200px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  .site-header {
    padding: var(--space-md) var(--space-sm);
  }
  
  main {
    padding: var(--space-lg) var(--space-sm);
  }
  
  .content-section {
    padding: var(--space-lg) 0;
  }
  
  .card-element {
    padding: var(--space-md);
  }
}

@media (max-width: 320px) {
  html {
    font-size: 13px;
  }
  
  .grid-container {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   VAPOR SCROLL EFFECT
   ============================================ */

.vapor-trail {
  position: fixed;
  width: 200px;
  height: 200px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity var(--transition-slow);
  z-index: 999;
}

.vapor-trail.active {
  opacity: 1;
}

