/* ============================================
   Design System Variables
   ============================================ */
:root {
  /* Colors - Zen-inspired palette */
  --color-primary: #C1D0C0;
  --color-secondary: #F7F4EF;
  --color-accent: #A6C0B6;
  --color-accent-secondary: #E8CFC1;
  --color-text-primary: #857E76;
  --color-text-secondary: #DAD2C8;
  --color-highlight: #F0E6D6;
  --color-bg-section: #DAD2C8;
  --color-bg-base: #F7F4EF;
  
  /* Typography */
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Inter', sans-serif;
  --font-accent: 'Italiana', 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: 20px;
  --radius-xl: 32px;
  
  /* Shadows */
  --shadow-soft: 0 4px 20px rgba(133, 126, 118, 0.08);
  --shadow-medium: 0 8px 30px rgba(133, 126, 118, 0.12);
  --shadow-float: 0 12px 40px rgba(133, 126, 118, 0.15);
  
  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-smooth: 0.5s ease;
  --transition-slow: 0.8s ease;
  
  /* Layout */
  --max-width: 1200px;
  --header-height: 80px;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--color-text-primary);
  background-color: var(--color-bg-base);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

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

h3 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
}

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

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

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

a:hover {
  color: var(--color-primary);
}

/* ============================================
   Header & Navigation
   ============================================ */
.site-header {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-highlight) 100%);
  padding: var(--space-md) var(--space-lg);
  position: relative;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-smooth);
}

.site-header.hidden {
  transform: translateY(-100%);
}

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

.brand-text {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--color-text-primary);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  color: var(--color-text-primary);
  font-size: 1.5rem;
  z-index: 1001;
}

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

.nav-menu.active {
  display: flex;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--color-text-primary);
  font-size: clamp(0.9rem, 2vw, 1rem);
  padding: var(--space-sm) var(--space-md);
  display: block;
  transition: color var(--transition-fast);
  position: relative;
}

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

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

/* ============================================
   Main Content
   ============================================ */
.main-content {
  min-height: calc(100vh - 200px);
  padding: var(--space-xl) var(--space-lg);
}

.content-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
  position: relative;
  padding: var(--space-xxl) var(--space-lg);
  text-align: center;
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-highlight) 50%, var(--color-bg-section) 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-xxl);
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(247, 244, 239, 0.4);
  backdrop-filter: blur(1px);
  pointer-events: none;
  z-index: 0;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(247, 244, 239, 0.6) 0%, rgba(240, 230, 214, 0.5) 50%, rgba(218, 210, 200, 0.4) 100%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 10px rgba(133, 126, 118, 0.3);
}

.hero-title {
  margin-bottom: var(--space-lg);
  color: var(--color-text-primary);
  text-shadow: 0 2px 15px rgba(133, 126, 118, 0.4);
}

.hero-subtitle {
  font-family: var(--font-accent);
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  color: var(--color-text-primary);
  font-style: italic;
  margin-bottom: var(--space-xl);
  opacity: 0.95;
  text-shadow: 0 2px 10px rgba(133, 126, 118, 0.3);
}

/* ============================================
   Sections
   ============================================ */
.content-section {
  margin-bottom: var(--space-xxl);
  padding: var(--space-xl) var(--space-lg);
  background: var(--color-secondary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.content-section:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

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

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

/* ============================================
   Cards & Grids
   ============================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.content-card {
  background: var(--color-bg-section);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-smooth);
  overflow: hidden;
  position: relative;
}

.content-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-secondary));
  transform: scaleX(0);
  transition: transform var(--transition-fast);
}

.content-card:hover::before {
  transform: scaleX(1);
}

.content-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-float);
}

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

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

.card-title {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  margin-bottom: var(--space-sm);
  color: var(--color-text-primary);
}

.card-text {
  font-size: clamp(0.9rem, 2vw, 1rem);
  color: var(--color-text-primary);
  opacity: 0.85;
  line-height: 1.7;
}

/* ============================================
   Images & Media
   ============================================ */
.responsive-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  margin: var(--space-md) 0;
  transition: transform var(--transition-smooth);
}

.responsive-image:hover {
  transform: scale(1.02);
}

.image-banner {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  margin: var(--space-lg) 0;
  box-shadow: var(--shadow-medium);
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 4/3;
}

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

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

.gallery-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(193, 208, 192, 0.1), rgba(166, 192, 182, 0.1));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.gallery-item:hover::after {
  opacity: 1;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
  color: var(--color-text-primary);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 2vw, 1rem);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-soft);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--color-highlight), var(--color-accent-secondary));
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
}

.btn-outline:hover {
  background: var(--color-accent);
  color: var(--color-secondary);
}

/* ============================================
   Forms
   ============================================ */
.form-container {
  max-width: 600px;
  margin: var(--space-xl) auto;
  padding: var(--space-xl);
  background: var(--color-secondary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-medium);
}

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

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

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-md);
  border: 2px solid var(--color-text-secondary);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 2vw, 1rem);
  color: var(--color-text-primary);
  background: var(--color-bg-base);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(193, 208, 192, 0.1);
}

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

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

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

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

.checkbox-label a {
  text-decoration: underline;
}

/* ============================================
   Interactive Elements
   ============================================ */
.tip-container {
  margin: var(--space-lg) 0;
}

.tip-trigger {
  background: var(--color-highlight);
  border: none;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 2vw, 1rem);
  color: var(--color-text-primary);
  width: 100%;
  text-align: left;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-soft);
  position: relative;
}

.tip-trigger::after {
  content: '+';
  position: absolute;
  right: var(--space-md);
  font-size: 1.5rem;
  transition: transform var(--transition-fast);
}

.tip-trigger.active::after {
  transform: rotate(45deg);
}

.tip-trigger:hover {
  background: var(--color-accent-secondary);
  transform: translateX(4px);
}

.tip-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-smooth);
  background: var(--color-secondary);
  border-radius: var(--radius-md);
  margin-top: var(--space-sm);
  padding: 0 var(--space-lg);
}

.tip-content.active {
  max-height: 500px;
  padding: var(--space-lg);
}

.hover-glow {
  transition: box-shadow var(--transition-smooth);
}

.hover-glow:hover {
  box-shadow: 0 0 30px rgba(193, 208, 192, 0.4);
}

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

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

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: linear-gradient(135deg, var(--color-text-primary) 0%, var(--color-bg-section) 100%);
  color: var(--color-secondary);
  padding: var(--space-xl) var(--space-lg);
  margin-top: var(--space-xxl);
}

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

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

.footer-title {
  font-family: var(--font-heading);
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  margin-bottom: var(--space-md);
  color: var(--color-secondary);
}

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

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

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

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

.footer-text {
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  opacity: 0.9;
  margin-top: var(--space-md);
}

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

/* ============================================
   Privacy Popup
   ============================================ */
.privacy-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(133, 126, 118, 0.7);
  z-index: 10000;
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

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

.privacy-popup {
  background: var(--color-secondary);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-float);
  position: relative;
  animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.privacy-close:hover {
  background: var(--color-text-secondary);
}

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

/* ============================================
   Products
   ============================================ */
.product-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-secondary);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-smooth);
  text-align: center;
}

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

.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.25rem, 3vw, 1.75rem);
  margin-bottom: var(--space-sm);
}

.product-description {
  font-size: clamp(0.9rem, 2vw, 1rem);
  margin-bottom: var(--space-md);
  color: var(--color-text-primary);
  opacity: 0.85;
}

.product-price {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: var(--space-md);
}

/* ============================================
   Thank You Page
   ============================================ */
.thank-you-container {
  text-align: center;
  padding: var(--space-xxl) var(--space-lg);
  max-width: 700px;
  margin: 0 auto;
}

.thank-you-icon {
  font-size: 4rem;
  color: var(--color-accent);
  margin-bottom: var(--space-lg);
}

.thank-you-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: var(--space-lg);
}

.thank-you-message {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  line-height: 1.8;
  margin-bottom: var(--space-xl);
}

/* ============================================
   Error 404 Page
   ============================================ */
.error-container {
  text-align: center;
  padding: var(--space-xxl) var(--space-lg);
  max-width: 600px;
  margin: 0 auto;
}

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

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

/* ============================================
   Swatches & Textures
   ============================================ */
.swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.swatch-item {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.swatch-color {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
}

.swatch-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(247, 244, 239, 0.9);
  padding: var(--space-sm);
  font-size: 0.85rem;
  text-align: center;
  color: var(--color-text-primary);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--color-secondary);
    flex-direction: column;
    padding: var(--space-lg);
    box-shadow: var(--shadow-medium);
    z-index: 1000;
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .hero-section {
    padding: var(--space-xl) var(--space-md);
    min-height: 300px;
  }
  
  .content-section {
    padding: var(--space-lg) var(--space-md);
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .product-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
  }
  
  .image-gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  :root {
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-xxl: 3rem;
  }
  
  .main-content {
    padding: var(--space-lg) var(--space-md);
  }
  
  .form-container {
    padding: var(--space-lg);
  }
  
  .map-container {
    height: 300px;
  }
}

@media (max-width: 320px) {
  html {
    font-size: 14px;
  }
  
  .header-container {
    padding: var(--space-sm);
  }
  
  .main-content {
    padding: var(--space-md) var(--space-sm);
  }
  
  .hero-section {
    min-height: 250px;
    padding: var(--space-lg) var(--space-md);
  }
}

/* ============================================
   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);
}

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

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

