/* CSS Variables - Organic Nordic Cottage Palette */
:root {
  --color-primary: #7C8C58;
  --color-secondary: #EDE3D5;
  --color-accent: #A67856;
  --color-accent-light: #F4D55E;
  --color-accent-mint: #B8DCD1;
  --color-text: #2c2c2c;
  --color-text-light: #5a5a5a;
  --font-heading: 'Cormorant Garamond', serif;
  --font-subheading: 'Quicksand', sans-serif;
  --font-body: 'Lato', sans-serif;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-sm: 0 2px 4px rgba(124, 140, 88, 0.1);
  --shadow-md: 0 4px 8px rgba(124, 140, 88, 0.15);
  --shadow-lg: 0 8px 16px rgba(124, 140, 88, 0.2);
  --transition-fast: 0.3s ease;
  --transition-smooth: 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);
  color: var(--color-text);
  background-color: var(--color-secondary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  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.5rem);
}

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

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

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

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

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

/* Header Styles */
.header-container {
  background: linear-gradient(135deg, var(--color-secondary) 0%, rgba(237, 227, 213, 0.95) 100%);
  padding: var(--space-md) var(--space-lg);
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-smooth);
  z-index: 999;
}

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

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

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

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

.nav-menu li a {
  font-family: var(--font-subheading);
  font-size: 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(124, 140, 88, 0.1);
}

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

.burger-toggle:hover {
  background-color: var(--color-primary);
  color: var(--color-secondary);
}

/* Main Content */
.main-content {
  flex: 1;
  width: 100%;
}

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

/* Hero Section */
.hero-banner {
  position: relative;
  width: 100%;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent-mint) 100%);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-xl);
  overflow: hidden;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-text);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: var(--space-md);
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

.hero-subtitle {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-family: var(--font-subheading);
  color: var(--color-text-light);
}

/* Section Styles */
.content-section {
  margin-bottom: var(--space-xl);
  padding: var(--space-lg);
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--color-accent-mint);
}

/* Grid Layouts */
.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: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  border: 1px solid rgba(124, 140, 88, 0.2);
}

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

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

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

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

.card-price {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-top: var(--space-md);
}

/* Ingredient Cards */
.ingredient-card {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), rgba(237, 227, 213, 0.8));
  border-left: 4px solid var(--color-primary);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

.ingredient-name {
  font-size: 1.75rem;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.safety-rating {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  background: var(--color-accent-mint);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-bottom: var(--space-md);
  font-weight: 600;
}

/* Recipe Cards */
.recipe-card {
  background: linear-gradient(135deg, rgba(237, 227, 213, 0.9), rgba(255, 255, 255, 0.9));
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  position: relative;
  box-shadow: var(--shadow-md);
}

.recipe-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--color-accent-light), var(--color-accent-mint));
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.3;
}

.recipe-title {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.recipe-instructions {
  list-style: none;
  padding-left: 0;
}

.recipe-instructions li {
  padding: var(--space-sm) 0;
  padding-left: var(--space-xl);
  position: relative;
  color: var(--color-text-light);
}

.recipe-instructions li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
  font-size: 1.2rem;
}

/* Product Cards */
.product-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
  border: 2px solid rgba(166, 120, 86, 0.2);
}

.product-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.product-image {
  width: 100%;
  max-width: 300px;
  height: 250px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin: 0 auto var(--space-md);
}

/* Buttons */
.btn-primary {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-family: var(--font-subheading);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.btn-primary:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
    color: white;
}

.btn-secondary {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-lg);
  font-family: var(--font-subheading);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: white;
}

/* Contact Form */
.contact-form {
  background: rgba(255, 255, 255, 0.8);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-xl);
}

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

.form-group label {
  display: block;
  margin-bottom: var(--space-sm);
  font-family: var(--font-subheading);
  font-weight: 600;
  color: var(--color-primary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--space-md);
  border: 2px solid rgba(124, 140, 88, 0.3);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
  background: white;
}

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

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

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

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 4px;
}

.checkbox-group label {
  margin-bottom: 0;
  font-weight: normal;
}

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

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

/* Footer */
.footer-container {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  color: white;
  padding: var(--space-xl) var(--space-lg);
  margin-top: auto;
}

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

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

.footer-bottom p{ color: white; }

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

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

.footer-menu a {
  color: rgba(255, 255, 255, 0.9);
  transition: color var(--transition-fast);
}

.footer-menu a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.8);
}

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

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

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

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

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

/* 404 Page */
.error-page {
  text-align: center;
  padding: var(--space-xl);
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
  header nav {
    width: 100%;
    position: relative;
    order: 3;
    flex-basis: 100%;
  }

  .header-wrapper {
    position: relative;
    flex-wrap: wrap;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--color-secondary);
    flex-direction: column;
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    gap: var(--space-md);
    z-index: 1000;
    margin: 0;
    border-radius: 0;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }

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

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

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

  .burger-toggle {
    display: block !important;
    z-index: 1001;
    order: 2;
  }

  .brand-text {
    order: 1;
    flex: 1;
  }

  .hero-banner {
    min-height: 300px;
    padding: var(--space-lg);
  }

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

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

  .footer-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

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

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

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

  .card-item,
  .recipe-card,
  .product-card {
    padding: var(--space-md);
  }
}

@media (max-width: 320px) {
  html {
    font-size: 12px;
  }

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

/* Utility Classes */
.text-center {
  text-align: center;
}

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

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

.fade-in {
  animation: fadeIn var(--transition-smooth);
}

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

