/* CSS Variables */
:root {
  --color-primary: #2c6e49;
  --color-secondary: #f4f1de;
  --color-amber: #FFBF00;
  --color-walnut: #3D2B1F;
  --color-vellum: #F3E5AB;
  --font-primary: 'Lato', sans-serif;
  --font-heading: 'Recoleta', serif;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --radius-md: 8px;
  --radius-lg: 20px;
  --transition-fast: 0.3s ease;
  --transition-slow: 0.6s ease;
  --shadow-sm: 0 2px 8px rgba(61, 43, 31, 0.1);
  --shadow-md: 0 4px 16px rgba(61, 43, 31, 0.15);
  --shadow-lg: 0 8px 32px rgba(61, 43, 31, 0.2);
}

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

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

body {
  font-family: var(--font-primary);
  color: var(--color-walnut);
  background-color: var(--color-vellum);
  line-height: 1.6;
  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-walnut);
}

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(1rem, 2vw, 1.125rem);
}

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

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

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

/* Header */
.header-container {
  background: linear-gradient(135deg, var(--color-walnut) 0%, rgba(61, 43, 31, 0.95) 100%);
  padding: var(--space-md) var(--space-lg);
  position: relative;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

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

.brand-name {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2vw, 1.45rem);
  color: var(--color-vellum);
  font-weight: 600;
  letter-spacing: 0.5px;
}

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

.nav-menu li a {
  color: var(--color-vellum);
  font-size: clamp(0.9rem, 2vw, 1rem);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  transition: background-color var(--transition-fast);
}

.nav-menu li a:hover {
  background-color: rgba(255, 191, 0, 0.2);
  color: var(--color-amber);
}

.burger-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--color-vellum);
  color: var(--color-vellum);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 1.5rem;
  transition: all var(--transition-fast);
  order: 999;
}

.burger-toggle:hover {
  background-color: rgba(255, 191, 0, 0.2);
  border-color: var(--color-amber);
  color: var(--color-amber);
}

/* Mobile Menu */
@media (max-width: 1023px) {
  .burger-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-walnut);
    flex-direction: column;
    padding: var(--space-lg);
    box-shadow: var(--shadow-lg);
    gap: var(--space-md);
    width: 100%;
  }

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

  .nav-menu li {
    width: 100%;
  }

  .nav-menu li a {
    display: block;
    width: 100%;
    text-align: center;
    padding: var(--space-md);
  }
}

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

/* Banner Sections */
.banner-section {
  position: relative;
  padding: var(--space-xl) var(--space-lg);
  margin-bottom: var(--space-xl);
  overflow: hidden;
}

.banner-content {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.banner-text {
  background: rgba(243, 229, 171, 0.95);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
}

.banner-image {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin-top: var(--space-lg);
  object-fit: cover;
}

/* Parallax Background */
.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.3;
  z-index: 1;
  transform: translateZ(0);
  background-image: var(--bg-image-url);
  transform: translateY(var(--scroll-offset, 0)) translateZ(0);
}

/* Puddle-shaped Containers */
.puddle-container {
  background: rgba(243, 229, 171, 0.9);
  padding: var(--space-xl);
  border-radius: 50px 20px 50px 20px;
  margin: var(--space-lg) 0;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

/* Section Styles */
.content-section {
  padding: var(--space-xl) var(--space-lg);
  max-width: 1400px;
  margin: 0 auto;
}

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

.section-title::after {
  content: '';
  display: block;
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-amber), transparent);
  margin: var(--space-md) auto;
}

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

.card-item {
  background: var(--color-vellum);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

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

/* Rub-to-Reveal Effect */
.rub-reveal-container {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: none;
  margin: var(--space-lg) 0;
}

.rub-reveal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) brightness(0.5);
  transition: filter 0.1s ease;
}

.rub-reveal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), transparent 0%, rgba(0, 0, 0, 0.8) 100px);
  pointer-events: none;
  mix-blend-mode: overlay;
}

.rub-reveal-container:hover .rub-reveal-image {
  filter: grayscale(0%) brightness(1);
}

/* Form Styles */
.form-container {
  max-width: 600px;
  margin: var(--space-xl) auto;
  background: rgba(243, 229, 171, 0.95);
  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-walnut);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-md);
  border: 2px solid rgba(61, 43, 31, 0.2);
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: 1rem;
  background: var(--color-vellum);
  color: var(--color-walnut);
  transition: border-color var(--transition-fast);
}

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

.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: 0.9rem;
  line-height: 1.5;
}

.submit-button {
  background: linear-gradient(135deg, var(--color-walnut) 0%, var(--color-primary) 100%);
  color: var(--color-vellum);
  padding: var(--space-md) var(--space-xl);
  border: none;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  width: 100%;
  margin-top: 10px;
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.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-lg) 0;
}

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

/* Footer */
.footer-container {
  background: var(--color-walnut);
  color: var(--color-vellum);
  padding: var(--space-xl) var(--space-lg);
  margin-top: var(--space-xl);
}

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

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

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

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

.footer-menu a {
  color: var(--color-vellum);
  transition: color var(--transition-fast);
}

.footer-menu a:hover {
  color: var(--color-amber);
}

.footer-bottom {
  text-align: center;
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 191, 0, 0.2);
  font-size: 0.9rem;
}

/* Privacy Popup */
.privacy-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(61, 43, 31, 0.9);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

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

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

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

.privacy-popup-close:hover {
  background: var(--color-amber);
}

/* Products Grid */
.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-vellum);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

.product-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

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

.product-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
  color: var(--color-walnut);
}

.product-description {
  color: rgba(61, 43, 31, 0.8);
  margin-bottom: var(--space-md);
}

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-amber);
  margin-top: var(--space-md);
}

/* Thank You Page */
.thank-you-container {
  text-align: center;
  padding: var(--space-xl);
  max-width: 800px;
  margin: var(--space-xl) auto;
}

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

.return-home-link {
  display: inline-block;
  text-align: center;
  margin-top: var(--space-md);
}

/* 404 Page */
.error-container {
  text-align: center;
  padding: var(--space-xl);
  max-width: 800px;
  margin: var(--space-xl) auto;
}

.error-code {
  font-size: 6rem;
  font-weight: 700;
  color: var(--color-amber);
  margin-bottom: var(--space-md);
}

/* Date Display */
.date {
  font-style: italic;
  color: rgba(61, 43, 31, 0.7);
  font-size: 0.9rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  :root {
    --space-xl: 2rem;
    --space-lg: 1.5rem;
  }

  .banner-section {
    padding: var(--space-lg) var(--space-md);
  }

  .banner-text {
    padding: var(--space-lg);
  }

  .content-section {
    padding: var(--space-lg) var(--space-md);
  }

  .puddle-container {
    padding: var(--space-lg);
    border-radius: 30px 15px 30px 15px;
  }

  .rub-reveal-container {
    height: 300px;
  }

  .form-container {
    padding: var(--space-lg);
  }

  .products-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .header-container {
    padding: var(--space-md);
  }

  .banner-section {
    padding: var(--space-md);
  }

  .content-section {
    padding: var(--space-md);
  }
}

/* Accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--color-walnut);
  color: var(--color-vellum);
  padding: var(--space-md);
  z-index: 10001;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

/* Print Styles */
@media print {
  .header-container,
  .footer-container,
  .burger-toggle,
  .privacy-popup {
    display: none;
  }
}

