/* Thermal Flow Design System - Tea & Coffee Rituals */

:root {
  /* Color Palette */
  --color-vapor-white: #F2F2F2;
  --color-roasted-obsidian: #1A120B;
  --color-infusion-amber: #FFBF00;
  --color-anodized-violet: #4B0082;
  --color-steam-gray: #E8E8E8;
  --color-thermal-red: #FF4444;
  --color-thermal-blue: #4488FF;
  
  /* Typography */
  --font-primary: 'Orbitron', sans-serif;
  --font-secondary: 'Inter', sans-serif;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 4rem;
  
  /* Borders & Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 50%;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(26, 18, 11, 0.1);
  --shadow-md: 0 4px 12px rgba(26, 18, 11, 0.15);
  --shadow-lg: 0 8px 24px rgba(26, 18, 11, 0.2);
  --shadow-glow: 0 0 20px rgba(255, 191, 0, 0.3);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Layout */
  --max-width: 1400px;
  --header-height: 80px;
}

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

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

body {
  font-family: var(--font-secondary);
  color: var(--color-roasted-obsidian);
  background-color: var(--color-vapor-white);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

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

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
  margin-bottom: var(--space-md);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
}

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

a:hover {
  color: var(--color-anodized-violet);
}

/* Header */
.site-header {
  position: relative;
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  background: rgba(242, 242, 242, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(26, 18, 11, 0.1);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.brand-text {
  font-family: var(--font-primary);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 700;
  color: var(--color-roasted-obsidian);
}

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

.nav-link {
  font-size: clamp(0.85rem, 2vw, 1rem);
  color: var(--color-roasted-obsidian);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  position: relative;
}

.nav-link:hover {
  background: rgba(255, 191, 0, 0.1);
  color: var(--color-infusion-amber);
}

/* Burger Menu */
.burger-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  z-index: 100001;
  order: 999;
}

.burger-icon {
  width: 28px;
  height: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.burger-icon span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--color-roasted-obsidian);
  border-radius: 2px;
  transition: all var(--transition-base);
}

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

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

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

@media (max-width: 1023px) {
  .burger-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 50px;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: calc(100vh - var(--header-height));
    background: rgba(242, 242, 242, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: var(--space-xl) var(--space-lg);
    gap: var(--space-md);
    transition: right var(--transition-base);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-link {
    width: 100%;
    text-align: left;
    padding: var(--space-md);
    border-bottom: 1px solid rgba(26, 18, 11, 0.1);
  }
}

/* Main Content */
.main-content {
  min-height: calc(100vh - 200px);
}

/* Full-Width Banner Sections */
.banner-section {
  width: 100vw;
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

.banner-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.4;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(242, 242, 242, 0.9) 0%,
    rgba(242, 242, 242, 0.7) 50%,
    rgba(75, 0, 130, 0.3) 100%
  );
  z-index: 1;
}

.banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  max-width: 900px;
  margin: 0 auto;
}

.banner-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: var(--space-lg);
  color: var(--color-roasted-obsidian);
  text-shadow: 2px 2px 4px rgba(242, 242, 242, 0.8);
}

.banner-subtitle {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--color-roasted-obsidian);
  font-weight: 300;
  max-width: 700px;
  margin: 0 auto;
}

/* Section Styles */
.content-section {
  padding: var(--space-xxl) var(--space-lg);
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.content-section > * {
  text-align: left;
}

.content-section > .section-title,
.content-section > p.text-center {
  text-align: center;
}

.feature-card-content,
.workshop-card > div:not(.card-image) {
  text-align: left;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-xl);
  color: var(--color-roasted-obsidian);
  position: relative;
  padding-bottom: var(--space-md);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-infusion-amber), transparent);
}

/* Grid Layouts */
.grid-container {
  display: grid;
  gap: var(--space-lg);
  margin: var(--space-xl) auto 0;
  justify-items: center;
  align-items: start;
}

.grid-two {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  max-width: 1000px;
}

.grid-three {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: 1200px;
}

.grid-four {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  max-width: 1400px;
}

@media (max-width: 768px) {
  .grid-two,
  .grid-three,
  .grid-four {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
}

/* Card Components */
.feature-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  border: 1px solid rgba(26, 18, 11, 0.1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(255, 191, 0, 0) 0%,
    rgba(255, 191, 0, 0.1) 50%,
    rgba(75, 0, 130, 0.1) 100%
  );
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: 0;
}

.feature-card:hover::before {
  opacity: 1;
}

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

.feature-card-content {
  position: relative;
  z-index: 1;
}

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

@media (min-width: 769px) {
  .card-image {
    height: 200px;
  }
}

.feature-card:hover .card-image {
  filter: brightness(1.1) saturate(1.2);
}

/* Thermal Glow Effect */
.thermal-glow {
  position: relative;
  overflow: hidden;
}

.thermal-glow::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: var(--radius-full);
  background: radial-gradient(
    circle,
    rgba(255, 68, 68, 0.4) 0%,
    rgba(68, 136, 255, 0.4) 50%,
    transparent 100%
  );
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  pointer-events: none;
  z-index: 2;
}

.thermal-glow:hover::after {
  width: 300px;
  height: 300px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  background: var(--color-infusion-amber);
  color: var(--color-roasted-obsidian);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: clamp(0.9rem, 2vw, 1rem);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
  box-shadow: var(--shadow-sm);
  margin-top: 10px;
}

.btn:hover {
  background: var(--color-anodized-violet);
  color: var(--color-vapor-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--color-infusion-amber);
  color: var(--color-infusion-amber);
}

.btn-secondary:hover {
  background: var(--color-infusion-amber);
  color: var(--color-roasted-obsidian);
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

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

.form-label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 600;
  color: var(--color-roasted-obsidian);
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-md);
  border: 2px solid rgba(26, 18, 11, 0.2);
  border-radius: var(--radius-md);
  font-family: var(--font-secondary);
  font-size: clamp(0.9rem, 2vw, 1rem);
  background: rgba(255, 255, 255, 0.8);
  transition: all var(--transition-base);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-infusion-amber);
  box-shadow: 0 0 0 3px rgba(255, 191, 0, 0.2);
}

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

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

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

.checkbox-label {
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  line-height: 1.5;
}

/* Google Maps */
.map-container {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: var(--space-xl);
}

.map-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Products Grid */
.product-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  text-align: center;
}

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

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

.product-title {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  margin-bottom: var(--space-sm);
  color: var(--color-roasted-obsidian);
}

.product-price {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 700;
  color: var(--color-infusion-amber);
  margin-top: var(--space-md);
}

/* Footer */
.site-footer {
  background: var(--color-roasted-obsidian);
  color: var(--color-vapor-white);
  padding: var(--space-xl) var(--space-lg);
  margin-top: var(--space-xxl);
}

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

.footer-section h3 {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  margin-bottom: var(--space-md);
  color: var(--color-infusion-amber);
}

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

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

.footer-link {
  color: var(--color-steam-gray);
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-infusion-amber);
}

.footer-bottom {
  text-align: center;
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(242, 242, 242, 0.2);
  font-size: clamp(0.8rem, 2vw, 0.9rem);
}

/* Privacy Popup */
.privacy-popup {
  position: fixed;
  bottom: var(--space-lg);
  left: var(--space-lg);
  right: var(--space-lg);
  max-width: 500px;
  background: rgba(26, 18, 11, 0.95);
  backdrop-filter: blur(20px);
  color: var(--color-vapor-white);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  transform: translateY(150%);
  transition: transform var(--transition-base);
}

.privacy-popup.active {
  transform: translateY(0);
}

.privacy-popup-content {
  margin-bottom: var(--space-md);
  font-size: clamp(0.85rem, 2vw, 0.95rem);
}

.privacy-buttons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Scroll Progress Bar (Brew Timer) */
.scroll-progress {
  position: fixed;
  right: 0;
  top: 0;
  width: 6px;
  height: 100vh;
  background: rgba(26, 18, 11, 0.1);
  z-index: 999;
  pointer-events: none;
}

.scroll-progress-fill {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: linear-gradient(
    to top,
    var(--color-infusion-amber) 0%,
    var(--color-anodized-violet) 100%
  );
  transition: height 0.1s ease;
  border-radius: 3px 0 0 3px;
}


/* Steam Cursor Particles */
.steam-cursor {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  width: 20px;
  height: 20px;
  transform: translate(-50%, -50%);
}

.steam-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(242, 242, 242, 0.6);
  border-radius: var(--radius-full);
  animation: steam-rise 2s ease-out forwards;
}

@keyframes steam-rise {
  0% {
    opacity: 0.8;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(
      calc(var(--random-x) * 20px),
      calc(var(--random-y) * -40px)
    ) scale(0.3);
  }
}

/* Radar Chart Container */
.radar-container {
  max-width: 600px;
  margin: var(--space-xl) auto;
  padding: var(--space-lg);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.radar-chart {
  width: 100%;
  height: 400px;
  position: relative;
}

#flavorRadar {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Workshop Cards */
.workshop-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  border-left: 4px solid var(--color-anodized-violet);
  position: relative;
  overflow: hidden;
}

.workshop-card:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-glow);
}

.workshop-card .card-image {
  margin-bottom: var(--space-md);
}

.workshop-date {
  font-family: var(--font-primary);
  font-size: clamp(0.9rem, 2vw, 1rem);
  color: var(--color-anodized-violet);
  margin-bottom: var(--space-sm);
}

/* Utility Classes */
.text-center {
  text-align: center;
}

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

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

/* 404 Page */
.error-page {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl);
}

.error-code {
  font-size: clamp(4rem, 10vw, 8rem);
  font-family: var(--font-primary);
  color: var(--color-infusion-amber);
  margin-bottom: var(--space-md);
}

/* Thank You Page */
.thank-you-section {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xxl) var(--space-lg);
}

.thank-you-icon {
  font-size: clamp(3rem, 8vw, 5rem);
  margin-bottom: var(--space-lg);
  color: var(--color-infusion-amber);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .content-section {
    padding: var(--space-lg) var(--space-md);
  }
  
  .banner-section {
    min-height: 50vh;
  }
  
  .contact-form {
    padding: var(--space-lg);
  }
  
  .privacy-popup {
    left: var(--space-md);
    right: var(--space-md);
  }
  
}

@media (max-width: 480px) {
  .site-header {
    padding: var(--space-sm) var(--space-md);
  }
  
  .banner-content {
    padding: var(--space-lg) var(--space-md);
  }
  
  .grid-container {
    gap: var(--space-md);
  }
}

/* Print Styles */
@media print {
  .site-header,
  .site-footer,
  .privacy-popup,
  .scroll-progress {
    display: none;
  }
}

