:root {
  /* Color Palette - Ethereal Neutrals */
  --color-cloud: #F7F7F7;
  --color-mist: #FAFAFA;
  --color-polar: #F2F4F5;
  --color-pure: #FFFFFF;
  --color-frost: #EDEDED;
  --color-text-primary: #2A2A2A;
  --color-text-secondary: #6B6B6B;
  --color-accent: #3A3A3A;
  --color-accent-light: #8A8A8A;
  
  /* Typography Scale */
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Work Sans', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-md: 1.125rem;
  --font-size-lg: 1.5rem;
  --font-size-xl: 2rem;
  --font-size-2xl: 2.5rem;
  --font-size-3xl: 3.5rem;
  --line-height-tight: 1.2;
  --line-height-normal: 1.6;
  --line-height-loose: 1.8;
  
  /* Spacing System */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  
  /* Layout */
  --max-width: 1200px;
  --container-padding: var(--space-md);
  --section-spacing: var(--space-2xl);
  
  /* Borders & Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --border-width: 1px;
  
  /* Shadows */
  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-medium: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-strong: 0 16px 48px rgba(0, 0, 0, 0.12);
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================================================
   Base Styles & Reset
   ================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text-primary);
  background-color: var(--color-pure);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ================================================
   Typography
   ================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: var(--line-height-tight);
  font-weight: 500;
  margin-bottom: var(--space-sm);
  color: var(--color-accent);
}

h1 {
  font-size: var(--font-size-3xl);
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--font-size-2xl);
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--font-size-xl);
}

h4 {
  font-size: var(--font-size-lg);
}

h5, h6 {
  font-size: var(--font-size-md);
}

p {
  margin-bottom: var(--space-sm);
  color: var(--color-text-secondary);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: all var(--transition-base);
}

a:hover {
  color: var(--color-text-primary);
}

/* ================================================
   Layout Components
   ================================================ */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--section-spacing) 0;
  position: relative;
}

.section-alt {
  background-color: var(--color-cloud);
}

/* ================================================
   Header - Hidden on Scroll Design
   ================================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: var(--border-width) solid var(--color-frost);
  transform: translateY(0);
  transition: transform 0.4s var(--transition-smooth);
}

.header.hidden {
  transform: translateY(-100%);
}

.header-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: var(--space-sm) var(--container-padding);
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  font-family: var(--font-display);
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: -0.01em;
}

/* Navigation */
.nav {
  display: none;
}

.nav.active {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-pure);
  justify-content: center;
  align-items: center;
  gap: var(--space-lg);
  z-index: 999;
  animation: fadeIn 0.3s ease;
}

.nav-list {
  width: 100%;
  background-color: white;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
}

.nav-link {
  font-size: var(--font-size-lg);
  font-family: var(--font-display);
  padding: var(--space-xs) var(--space-sm);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: all var(--transition-base);
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 100%;
}

/* Burger Menu */
.burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
  padding: var(--space-xs);
}

.burger span {
  width: 24px;
  height: 2px;
  background: var(--color-accent);
  transition: all var(--transition-base);
  display: block;
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ================================================
   Hero Section
   ================================================ */

.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, var(--color-mist) 0%, var(--color-polar) 100%);
  overflow: hidden;
  margin-top: 60px;
}

.hero-content {
  text-align: center;
  z-index: 2;
  position: relative;
  animation: fadeInUp 0.8s ease;
}

.hero-title {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-md);
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.2s forwards;
}

.hero-subtitle {
  font-size: var(--font-size-md);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-lg);
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.4s forwards;
}

.hero-cta {
  display: inline-flex;
  gap: var(--space-sm);
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.6s forwards;
}

/* ================================================
   3D Slider
   ================================================ */

.slider-3d {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 400px;
  margin: var(--space-xl) auto;
  perspective: 1000px;
}

.slider-track {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform var(--transition-slow);
}

.slide {
  position: absolute;
  width: 70%;
  height: 100%;
  left: 15%;
  top: 0;
  background: var(--color-pure);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-medium);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--space-xl);
  text-align: center;
  transition: all var(--transition-slow);
  opacity: 0;
}

.slide.active {
  opacity: 1;
  transform: translateZ(0) scale(1);
}

.slide.prev {
  opacity: 0.5;
  transform: translateX(-30%) translateZ(-200px) scale(0.8);
}

.slide.next {
  opacity: 0.5;
  transform: translateX(30%) translateZ(-200px) scale(0.8);
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.slider-btn {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-frost);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
}

.slider-btn.active {
  background: var(--color-accent);
  transform: scale(1.2);
}

/* ================================================
   Buttons
   ================================================ */

.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  font-weight: 500;
  text-align: center;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  border: var(--border-width) solid transparent;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-pure);
  box-shadow: var(--shadow-subtle);
}

.btn-primary:hover {
  background: var(--color-text-primary);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn-secondary:hover {
  background: var(--color-accent);
  color: var(--color-pure);
}

/* ================================================
   Cards & Product Display
   ================================================ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.card {
  background: var(--color-pure);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  transition: all var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-4px);
}

.card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--color-polar);
}

.card-content {
  padding: var(--space-md);
}

.card-title {
  font-size: var(--font-size-md);
  margin-bottom: var(--space-xs);
}

.card-text {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
}

.card-price {
  font-family: var(--font-display);
  font-size: var(--font-size-lg);
  color: var(--color-accent);
  font-weight: 600;
}

/* ================================================
   Contact Form
   ================================================ */

.contact-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  max-width: 900px;
  margin: 0 auto;
}

.contact-info {
  background: linear-gradient(135deg, var(--color-cloud) 0%, var(--color-mist) 100%);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.contact-icon {
  font-size: var(--font-size-lg);
  color: var(--color-accent);
  margin-top: 2px;
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  margin-bottom: var(--space-xs);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-accent);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-sm);
  border: var(--border-width) solid var(--color-frost);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  transition: all var(--transition-base);
  background: var(--color-pure);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(58, 58, 58, 0.1);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.form-checkbox input {
  margin-top: 4px;
  cursor: pointer;
}

.form-checkbox label {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  cursor: pointer;
}

/* ================================================
   Map
   ================================================ */

.map-container {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  margin-top: var(--space-lg);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ================================================
   Footer
   ================================================ */

.footer {
  background: var(--color-cloud);
  padding: var(--space-lg) 0;
  margin-top: var(--space-2xl);
  border-top: var(--border-width) solid var(--color-frost);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
  text-align: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-md);
  list-style: none;
  justify-content: center;
}

.footer-link {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.footer-link:hover {
  color: var(--color-accent);
}

.footer-text {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
}

/* ================================================
   Cookie Popup
   ================================================ */

.cookie-popup {
  position: fixed;
  bottom: var(--space-md);
  left: var(--space-md);
  right: var(--space-md);
  max-width: 500px;
  background: var(--color-pure);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-strong);
  z-index: 2000;
  display: none;
  animation: slideUp 0.4s ease;
}

.cookie-popup.show {
  display: block;
}

.cookie-content {
  margin-bottom: var(--space-sm);
}

.cookie-title {
  font-size: var(--font-size-md);
  margin-bottom: var(--space-xs);
}

.cookie-text {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.cookie-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* ================================================
   Animations
   ================================================ */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

/* ================================================
   Utility Classes
   ================================================ */

.text-center {
  text-align: center;
}

.mb-sm {
  margin-bottom: var(--space-sm);
}

.mb-md {
  margin-bottom: var(--space-md);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.hidden {
  display: none;
}

/* ================================================
   Responsive Design
   ================================================ */

@media (min-width: 768px) {
  :root {
    --font-size-3xl: 4rem;
    --font-size-2xl: 3rem;
    --section-spacing: 5rem;
  }

  .nav {
    display: flex;
    position: static;
    background: transparent;
    flex-direction: row;
    justify-content: flex-end;
  }

  .nav.active {
    animation: none;
  }

  .nav-list {
    flex-direction: row;
    gap: var(--space-md);
  }

  .nav-link {
    font-size: var(--font-size-base);
  }

  .burger {
    display: none;
  }

  .contact-container {
    grid-template-columns: 1fr 1.2fr;
  }

  .slider-3d {
    height: 450px;
  }
}

@media (min-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  :root {
    --font-size-3xl: 2rem;
    --font-size-2xl: 1.75rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --section-spacing: 3rem;
  }

  .hero {
    min-height: 80vh;
  }

  .slider-3d {
    height: 350px;
  }

  .slide {
    width: 85%;
    left: 7.5%;
  }
  .nav-list {
    margin-top: 160px;
  }

}

/* ================================================
   Extra Small Screens (≤320px)
   ================================================ */
@media (max-width: 320px) {
  :root {
    --font-size-3xl: 1.5rem;
    --font-size-2xl: 1.25rem;
    --font-size-xl: 1rem;
    --font-size-lg: 0.875rem;
    --font-size-md: 0.75rem;
    --font-size-sm: 0.6875rem;
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --section-spacing: 2rem;
    --container-padding: 0.5rem;
  }

  body {
    font-size: var(--font-size-sm);
    line-height: 1.4;
  }

  h1 {
    font-size: var(--font-size-2xl);
  }

  h2 {
    font-size: var(--font-size-xl);
  }

  h3, h4 {
    font-size: var(--font-size-lg);
  }

  p {
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-xs);
  }

  .hero {
    min-height: 60vh;
    padding: var(--space-sm);
  }

  .hero-title {
    font-size: var(--font-size-2xl);
  }

  .hero-subtitle {
    font-size: var(--font-size-sm);
    max-width: 100%;
  }

  .hero-cta .btn {
    font-size: var(--font-size-xs);
    padding: 0.4rem 0.8rem;
  }

  .slider-3d {
    height: 250px;
  }

  .slide {
    width: 90%;
    left: 5%;
    padding: var(--space-md);
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .card-title {
    font-size: var(--font-size-sm);
  }

  .card-text {
    font-size: 0.625rem;
  }

  .card-price {
    font-size: var(--font-size-md);
  }

  .btn {
    padding: 0.3rem 0.6rem;
    font-size: var(--font-size-xs);
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .form-input,
  .form-textarea {
    font-size: var(--font-size-sm);
    padding: 0.5rem;
  }

  .map-container {
    height: 200px;
  }

  .footer-content {
    gap: var(--space-xs);
  }

  .footer-link {
    font-size: var(--font-size-xs);
  }

  .cookie-popup {
    bottom: var(--space-xs);
    left: var(--space-xs);
    right: var(--space-xs);
    padding: var(--space-xs);
  }
}
