/* CSS Variables - Warm Atelier Palette */
:root {
  --color-primary: #2c6e49;
  --color-secondary: #f4f1de;
  --color-wax-cream: #F7EFE3;
  --color-honey-gold: #D8A867;
  --color-ember-brown: #6B4E34;
  --color-charcoal-soot: #2C2B28;
  --color-lavender-mist: #C9C0D8;
  --color-sage-leaf: #A4B8A6;
  --color-natural-linen: #EFEDE6;
  --color-dark-thyme: #4B5147;
  --color-pale-sand: #F3EDE8;
  --color-black-glass: #1E1C1C;
  --color-molten-copper: #B86F47;
  --color-frosted-gray: #D1D4D7;
  
  --font-heading: 'Cormorant', serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-accent: 'Tangerine', cursive;
  
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 4rem;
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  
  --shadow-sm: 0 2px 4px rgba(44, 46, 40, 0.1);
  --shadow-md: 0 4px 8px rgba(44, 46, 40, 0.15);
  --shadow-lg: 0 8px 16px rgba(44, 46, 40, 0.2);
  --shadow-glow: 0 0 20px rgba(216, 168, 103, 0.3);
  
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-charcoal-soot);
  background-color: var(--color-wax-cream);
  overflow-x: hidden;
}

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

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

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

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

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

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

a:hover {
  color: var(--color-honey-gold);
}

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

/* Header Styles */
.site-header {
  background: var(--color-natural-linen);
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1000;
}

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

.site-brand {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--color-charcoal-soot);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-charcoal-soot);
  cursor: pointer;
  padding: var(--space-sm);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--color-charcoal-soot);
  font-weight: 500;
  padding: var(--space-sm) var(--space-md);
  display: block;
  transition: color var(--transition-fast);
}

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

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

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

/* Mobile Navigation */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    background: var(--color-natural-linen);
    flex-direction: column;
    padding: var(--space-md);
    box-shadow: var(--shadow-md);
    gap: var(--space-sm);
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-item {
    width: 100%;
  }
  
  .nav-link {
    padding: var(--space-md);
    border-bottom: 1px solid var(--color-wax-cream);
  }
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-xl) 0;
}

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

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--color-wax-cream) 0%, var(--color-natural-linen) 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: var(--space-xxl) var(--space-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(44, 46, 40, 0.4);
  z-index: 0;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(216, 168, 103, 0.1) 0%, transparent 70%);
  animation: float 20s ease-in-out infinite;
  z-index: 0;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-30px, -30px) rotate(5deg); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  margin-bottom: var(--space-md);
  color: var(--color-wax-cream);
  text-shadow: 2px 2px 4px rgba(44, 46, 40, 0.7);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--color-wax-cream);
  margin-bottom: var(--space-lg);
  text-shadow: 1px 1px 3px rgba(44, 46, 40, 0.7);
}

.btn {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  background: var(--color-ember-brown);
  color: var(--color-wax-cream);
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
  font-family: var(--font-body);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--color-ember-brown);
  border: 2px solid var(--color-ember-brown);
  color: white;
}

.btn-secondary:hover {
  background: var(--color-ember-brown);
  color: var(--color-wax-cream);
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: var(--space-lg);
}

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

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

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Card Styles */
.card {
  background: var(--color-natural-linen);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  overflow: hidden;
}

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

.card-image {
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: auto;
  transition: transform var(--transition-slow);
}

.card:hover .card-image img {
  transform: scale(1.05);
}

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

.card-text {
  color: var(--color-ember-brown);
  margin-bottom: var(--space-md);
}

/* Scent Library Specific Styles */
.scent-category {
  margin-bottom: var(--space-xl);
}

.scent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.scent-card {
  background: var(--color-wax-cream);
  border: 2px solid var(--color-natural-linen);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  position: relative;
  transition: all var(--transition-base);
}

.scent-card:hover {
  border-color: var(--color-honey-gold);
  box-shadow: var(--shadow-glow);
}

.scent-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

.notes-pyramid {
  margin: var(--space-md) 0;
}

.notes-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-ember-brown);
  margin-bottom: var(--space-sm);
}

.note-item {
  font-size: 0.9rem;
  padding: var(--space-xs) 0;
  color: var(--color-dark-thyme);
}

.mood-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.mood-tag {
  padding: var(--space-xs) var(--space-md);
  background: var(--color-sage-leaf);
  color: var(--color-natural-linen);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
}

/* Vapor Animation */
.vapor-animation {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 60px;
  height: 60px;
  opacity: 0.3;
  pointer-events: none;
}

.vapor-animation::before,
.vapor-animation::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-honey-gold) 0%, transparent 70%);
  animation: vapor-drift 4s ease-in-out infinite;
}

.vapor-animation::after {
  animation-delay: 2s;
  opacity: 0.5;
}

@keyframes vapor-drift {
  0% {
    transform: translate(0, 0) scale(0.8);
    opacity: 0.3;
  }
  50% {
    transform: translate(-15px, -15px) scale(1.2);
    opacity: 0.6;
  }
  100% {
    transform: translate(-30px, -30px) scale(0.8);
    opacity: 0;
  }
}

/* Container Showcase Styles */
.container-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  margin: var(--space-xl) 0;
}

.container-item {
  background: var(--color-natural-linen);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  position: relative;
}

.container-image-wrapper {
  position: relative;
  margin-bottom: var(--space-lg);
  perspective: 1000px;
}

.container-image {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  transition: transform var(--transition-slow);
}

.container-item:hover .container-image {
  transform: rotateY(15deg) scale(1.05);
}

.light-simulation {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  height: 80%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(216, 168, 103, 0.4) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.container-item:hover .light-simulation {
  opacity: 1;
  animation: flicker 2s ease-in-out infinite;
}

@keyframes flicker {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.6; }
}

.specs-list {
  list-style: none;
  text-align: left;
  margin-top: var(--space-md);
}

.spec-item {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-wax-cream);
  display: flex;
  justify-content: space-between;
}

.spec-label {
  font-weight: 600;
  color: var(--color-ember-brown);
}

/* Label Design Studio Styles */
.design-studio {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  margin: var(--space-xl) 0;
}

@media (max-width: 968px) {
  .design-studio {
    grid-template-columns: 1fr;
  }
}

.design-controls {
  background: var(--color-natural-linen);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
}

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

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

.control-input,
.control-select,
.control-textarea {
  width: 100%;
  padding: var(--space-md);
  border: 2px solid var(--color-wax-cream);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--color-wax-cream);
  transition: border-color var(--transition-fast);
}

.control-input:focus,
.control-select:focus,
.control-textarea:focus {
  outline: none;
  border-color: var(--color-honey-gold);
}

.icon-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.icon-option {
  aspect-ratio: 1;
  border: 2px solid var(--color-wax-cream);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: var(--color-wax-cream);
  font-size: 1.5rem;
}

.icon-option:hover {
  border-color: var(--color-honey-gold);
  transform: scale(1.1);
}

.icon-option.selected {
  border-color: var(--color-ember-brown);
  background: var(--color-honey-gold);
  color: var(--color-wax-cream);
}

.preview-area {
  background: var(--color-wax-cream);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--color-ember-brown);
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: var(--space-lg);
}

.label-preview {
  background: var(--color-natural-linen);
  padding: var(--space-xl);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  max-width: 300px;
  width: 100%;
  text-align: center;
  transition: transform var(--transition-base);
  position: relative;
}

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

.label-preview-icon {
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

.label-preview-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
  color: var(--color-charcoal-soot);
}

.label-preview-message {
  font-size: 0.9rem;
  color: var(--color-ember-brown);
  font-style: italic;
}

/* Contact Form Styles */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  margin: var(--space-xl) 0;
}

@media (max-width: 768px) {
  .contact-section {
    grid-template-columns: 1fr;
  }
}

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

.contact-item {
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: start;
  gap: var(--space-md);
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--color-honey-gold);
  flex-shrink: 0;
}

.contact-form {
  background: var(--color-natural-linen);
  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: 600;
  color: var(--color-charcoal-soot);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-md);
  border: 2px solid var(--color-wax-cream);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--color-wax-cream);
  transition: border-color var(--transition-fast);
}

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

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

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

.checkbox-input {
  margin-top: 4px;
  flex-shrink: 0;
}

.checkbox-label {
  font-size: 0.9rem;
  line-height: 1.5;
}

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

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

/* Products Page */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  margin: var(--space-xl) 0;
}

.product-card {
  background: var(--color-natural-linen);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

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

.product-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

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

.product-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
  color: var(--color-charcoal-soot);
}

.product-description {
  color: var(--color-ember-brown);
  margin-bottom: var(--space-md);
}

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-ember-brown);
  font-family: var(--font-heading);
}

/* Footer */
.site-footer {
  background: var(--color-charcoal-soot);
  color: var(--color-wax-cream);
  padding: var(--space-xl) var(--space-lg);
  margin-top: var(--space-xxl);
}

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

.footer-section h3 {
  color: var(--color-honey-gold);
  margin-bottom: var(--space-md);
  font-size: 1.25rem;
}

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

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

.footer-link {
  color: var(--color-wax-cream);
  transition: color var(--transition-fast);
}

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

.footer-copyright {
  text-align: center;
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(247, 239, 227, 0.2);
  font-size: 0.9rem;
}

/* Privacy Policy Popup */
.privacy-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(44, 46, 40, 0.8);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

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

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

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

.privacy-close:hover {
  background: var(--color-natural-linen);
}

.privacy-title {
  margin-bottom: var(--space-lg);
  color: var(--color-charcoal-soot);
}

/* 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 Styles */
.error-page {
  text-align: center;
  padding: var(--space-xxl) var(--space-lg);
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.error-message {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  margin-bottom: var(--space-lg);
  color: var(--color-charcoal-soot);
}

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

.thank-you-icon {
  font-size: 4rem;
  color: var(--color-honey-gold);
  margin-bottom: var(--space-lg);
  animation: float 3s ease-in-out infinite;
}

/* Responsive Typography */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  .container {
    padding: 0 var(--space-md);
  }
  
  .section {
    padding: var(--space-lg) 0;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  .hero-section {
    padding: var(--space-xl) var(--space-md);
  }
  
  .btn {
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.9rem;
  }
}

/* Print Styles */
@media print {
  .site-header,
  .site-footer,
  .nav-toggle,
  .privacy-popup {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  a {
    color: black;
    text-decoration: underline;
  }
}

