/* ============================================
   FUTURISTIC CRYSTALLINE DESIGN SYSTEM
   Craft Chocolate & Candy Making
   ============================================ */

:root {
  /* Color Palette */
  --color-obsidian: #1A0F0E;
  --color-copper: #B87333;
  --color-iridescence: #E0B0FF;
  --color-laboratory: #F5F5F7;
  --color-dark: #0A0504;
  --color-light: #FFFFFF;
  
  /* Typography */
  --font-primary: 'Space Grotesk', sans-serif;
  --font-secondary: 'Outfit', sans-serif;
  --font-data: 'Courier New', monospace;
  
  /* 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;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(26, 15, 14, 0.1);
  --shadow-md: 0 4px 16px rgba(26, 15, 14, 0.15);
  --shadow-lg: 0 8px 32px rgba(26, 15, 14, 0.2);
  --shadow-glow: 0 0 20px rgba(184, 115, 51, 0.3);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Grid */
  --grid-gap: 1.5rem;
}

/* ============================================
   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-primary);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-obsidian);
  background-color: var(--color-laboratory);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 200;
  letter-spacing: -0.02em;
}

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

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

p {
  margin-bottom: var(--space-md);
}

/* ============================================
   HEADER
   ============================================ */

.site-header {
  position: relative;
  z-index: 1000;
  padding: var(--space-md) var(--space-lg);
  background: rgba(245, 245, 247, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(184, 115, 51, 0.1);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-lg);
}

.brand-text {
  font-family: var(--font-secondary);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 300;
  color: var(--color-obsidian);
}

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

.nav-link {
  font-size: 0.9rem;
  color: var(--color-obsidian);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  position: relative;
}

.nav-link:hover {
  color: var(--color-copper);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: var(--color-copper);
  transition: width var(--transition-base);
}

.nav-link:hover::after {
  width: 80%;
}

/* Burger Menu */
.burger-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-sm);
  background: transparent;
  z-index: 1000001;
  border: 1px solid var(--color-copper);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.burger-line {
  width: 24px;
  height: 1px;
  background: var(--color-obsidian);
  transition: all var(--transition-base);
}

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

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

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

/* Mobile Navigation */
@media (max-width: 1023px) {
  .burger-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-laboratory);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-xxl) var(--space-lg);
    box-shadow: -4px 0 20px rgba(26, 15, 14, 0.1);
    transition: right var(--transition-base);
    z-index: 999;
    gap: var(--space-md);
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-link {
    width: 100%;
    padding: var(--space-md);
    border-bottom: 1px solid rgba(184, 115, 51, 0.1);
  }
}

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

.hero-banner {
  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-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.5;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(26, 15, 14, 0.75) 0%,
    rgba(184, 115, 51, 0.4) 50%,
    rgba(224, 176, 255, 0.25) 100%
  );
  z-index: 2;
}

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

.banner-title {
  color: var(--color-laboratory);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
  margin-bottom: var(--space-lg);
}

.banner-subtitle {
  color: var(--color-laboratory);
  font-size: clamp(1rem, 2vw, 1.25rem);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
  opacity: 0.95;
}

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

main {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-xxl) var(--space-lg);
}

/* ============================================
   SECTION STYLES
   ============================================ */

.content-section {
  margin-bottom: var(--space-xxl);
  padding: var(--space-xl) 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.section-title {
  color: var(--color-obsidian);
  margin-bottom: var(--space-sm);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: var(--color-copper);
}

.section-description {
  color: rgba(26, 15, 14, 0.7);
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ============================================
   HEXAGONAL GRID SYSTEM
   ============================================ */

.hex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--grid-gap);
  margin-top: var(--space-xl);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  justify-items: center;
}

.hex-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-laboratory);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
  max-width: 280px;
  width: 100%;
}

.hex-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-glow);
}

.hex-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.hex-item:hover .hex-image {
  transform: scale(1.1);
}

.hex-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-lg);
  background: linear-gradient(to top, rgba(26, 15, 14, 0.9), transparent);
  color: var(--color-laboratory);
}

.hex-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
  color: var(--color-laboratory);
}

/* ============================================
   STANDARD GRID (For Products, etc.)
   ============================================ */

.standard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--grid-gap);
  margin-top: var(--space-xl);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  justify-items: center;
}

.grid-item {
  background: var(--color-laboratory);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  max-width: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.grid-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.grid-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.grid-content {
  padding: var(--space-lg);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.grid-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
  color: var(--color-obsidian);
}

.grid-text {
  color: rgba(26, 15, 14, 0.7);
  margin-bottom: var(--space-md);
  font-size: 0.95rem;
  line-height: 1.6;
}

.grid-price {
  font-family: var(--font-data);
  font-size: 1.25rem;
  color: var(--color-copper);
  font-weight: 600;
  margin-top: auto;
}

/* ============================================
   GLASSMORPHISM CARDS
   ============================================ */

.glass-card {
  background: rgba(245, 245, 247, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(184, 115, 51, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

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

.contact-form {
  max-width: 600px;
  margin: var(--space-xl) auto;
}

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

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

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-md);
  border: 1px solid rgba(184, 115, 51, 0.3);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  background: var(--color-laboratory);
  color: var(--color-obsidian);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-copper);
  box-shadow: 0 0 0 3px rgba(184, 115, 51, 0.1);
}

.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;
  flex-shrink: 0;
}

.checkbox-label {
  font-size: 0.9rem;
  color: rgba(26, 15, 14, 0.7);
  line-height: 1.5;
}

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

.submit-button:hover {
  background: #9d5f2a;
  transform: translateY(-2px);
  color: black;
}

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

/* ============================================
   GOOGLE MAPS
   ============================================ */

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

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

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

.site-footer {
  background: var(--color-obsidian);
  color: var(--color-laboratory);
  padding: var(--space-xl) var(--space-lg);
  margin-top: var(--space-xxl);
}

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

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

.footer-title {
  font-size: 1rem;
  margin-bottom: var(--space-md);
  color: var(--color-copper);
  font-weight: 500;
}

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

.footer-link {
  color: rgba(245, 245, 247, 0.8);
  font-size: 0.9rem;
  padding: var(--space-xs) 0;
  display: block;
  transition: color var(--transition-fast);
}

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

.footer-text {
  color: rgba(245, 245, 247, 0.7);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-lg);
  margin-top: var(--space-lg);
  border-top: 1px solid rgba(184, 115, 51, 0.2);
  color: rgba(245, 245, 247, 0.6);
  font-size: 0.85rem;
}

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

.privacy-popup {
  position: fixed;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  max-width: 600px;
  width: calc(100% - 2rem);
  background: var(--color-laboratory);
  border: 2px solid var(--color-copper);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-lg);
  z-index: 10000;
  display: none;
}

.privacy-popup.active {
  display: block;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.popup-content {
  margin-bottom: var(--space-md);
}

.popup-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
  color: var(--color-obsidian);
}

.popup-text {
  font-size: 0.9rem;
  color: rgba(26, 15, 14, 0.7);
  line-height: 1.6;
}

.popup-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: flex-end;
}

.popup-button {
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-base);
}

.popup-accept {
  background: var(--color-copper);
  color: var(--color-laboratory);
}

.popup-accept:hover {
  background: #9d5f2a;
}

.popup-decline {
  background: transparent;
  color: var(--color-obsidian);
  border: 1px solid var(--color-copper);
}

.popup-decline:hover {
  background: rgba(184, 115, 51, 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-family: var(--font-data);
  font-size: 0.85rem;
  color: rgba(26, 15, 14, 0.6);
}

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

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  main {
    padding: var(--space-lg) var(--space-md);
  }
  
  .hero-banner {
    min-height: 50vh;
  }
  
  .hex-grid,
  .standard-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
  }
  
  .privacy-popup {
    bottom: var(--space-md);
    left: var(--space-md);
    right: var(--space-md);
    transform: none;
    width: auto;
  }
  
  .privacy-popup.active {
    animation: slideUpMobile 0.3s ease;
  }
  
  @keyframes slideUpMobile {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

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

/* ============================================
   SPECULAR HIGHLIGHT EFFECT
   ============================================ */

.specular-highlight {
  position: relative;
  overflow: hidden;
}

.specular-highlight::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 70%
  );
  transform: rotate(45deg);
  transition: transform 0.6s ease;
  pointer-events: none;
  z-index: 10;
}

.specular-highlight:hover::before {
  transform: rotate(45deg) translate(100%, 100%);
}

/* ============================================
   THERMAL VISION TRANSITION
   ============================================ */

.thermal-transition {
  position: relative;
  overflow: hidden;
}

.thermal-transition::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 0, 0, 0.3) 20%,
    rgba(255, 255, 0, 0.3) 50%,
    rgba(0, 0, 255, 0.3) 80%,
    transparent
  );
  transition: left 0.5s ease;
  pointer-events: none;
  z-index: 100;
}

.thermal-transition.active::after {
  left: 100%;
}

