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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  background-color: #F8F1E9; /* Soft Cream */
  color: #333333; /* Charcoal Grey */
  line-height: 1.5;
  font-size: 16px;
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 64px;
  background-color: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 32px;
  z-index: 1000;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
  background-color: #F8F1E9;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-left {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem; /* 16px spacing between logo and hamburger */
}

.logo {
  font-size: 1.5rem; /* 24px */
  font-weight: 700;
  color: #4CAF50; /* Sage Green */
}

.hamburger {
  display: none; /* Hidden by default on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem; /* 8px */
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #4CAF50;
  margin: 5px 0;
  transition: all 0.3s ease;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 1.5rem; /* 24px */
}

.nav-menu li a {
  text-decoration: none;
  font-size: 1rem; /* 16px */
  font-weight: 500;
  color: #333333;
  transition: color 0.3s ease;
}

.nav-menu li a:hover {
  color: #FF6F61; /* Warm Coral */
}

.cta-secondary {
  text-decoration: none;
  font-size: 1rem; /* 16px */
  font-weight: 500;
  color: #4CAF50;
  border: 2px solid #4CAF50;
  padding: 0.5rem 1rem; /* 8px 16px */
  border-radius: 0.5rem; /* 8px */
  transition: all 0.3s ease;
}

.cta-secondary:hover {
  background-color: #FF6F61;
  color: #FFFFFF !important;
  border-color: #FF6F61;
}

/* Hero Section Styles */
.hero {
  height: 60vh;
  min-height: 400px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem; /* 32px */
  margin-top: 64px;
  background-image: url('placeholder-meal-image.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(76, 175, 80, 0.1); /* 10% Sage Green overlay */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 50%;
  padding: 1rem; /* 16px */
}

h1 {
  font-size: 3rem; /* 36px */
  font-weight: 600;
  margin-bottom: 1rem; /* 16px */
}

p {
  font-size: 1rem; /* 16px */
  margin-bottom: 1.5rem; /* 24px */
}

.cta-primary {
  display: inline-block;
  text-decoration: none;
  font-size: 1rem; /* 16px */
  font-weight: 700;
  color: #FFFFFF;
  background-color: #4CAF50; /* Sage Green */
  padding: 0.75rem 2rem; /* 12px 32px */
  border-radius: 3rem; /* 48px */
  transition: background-color 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
  width: 50%;
}

.cta-primary:hover {
  background-color: #66BB6A;
}

.hero-image {
  width: 50%;
  height: 100%;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: auto; /* Changed from 100% to auto to prevent cutting */
  object-fit: contain; /* Changed from cover to contain to ensure full image visibility */
  max-height: 100%; /* Ensures it fits within the container */
}

/* Features Section Styles */
.features {
  padding: 4rem 2rem; /* 64px 32px */
  text-align: center;
}

h2 {
  font-size: 1.75rem; /* 28px */
  font-weight: 900;
  margin-bottom: 2rem; /* 32px */
}

.feature-cards {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem; /* 32px */
}

.card {
  flex: 1;
  min-width: 30%;
  background-color: #FFFFFF;
  border: 1px solid #E0E0E0; /* Light Grey */
  border-radius: 0.5rem; /* 8px */
  padding: 1rem; /* 16px */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

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

.icon {
  font-size: 1.5rem; /* 24px */
  color: #4CAF50;
  margin-bottom: 1rem; /* 16px */
}

h3 {
  font-size: 1.25rem; /* 20px */
  font-weight: 500;
  margin-bottom: 0.5rem; /* 8px */
}

/* How It Works Section Styles */
.how-it-works {
  padding: 4rem 2rem; /* 64px 32px */
  text-align: center;
  background-color: #FFFFFF;
}

.steps {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem; /* 24px */
}

.step {
  flex: 1;
  min-width: 30%;
  padding: 1rem; /* 16px */
}

.step-number {
  width: 2.5rem; /* 40px */
  height: 2.5rem; /* 40px */
  background-color: #4CAF50;
  color: #FFFFFF;
  font-size: 1.25rem; /* 20px */
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem; /* 16px */
}

/* Testimonials Section Styles */
.testimonials {
  padding: 4rem 2rem; /* 64px 32px */
  text-align: center;
}

.testimonial-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem; /* 16px */
}

.testimonial-cards .card {
  width: 300px;
  height: 150px;
  padding: 1rem; /* 16px */
  text-align: left;
}

.testimonial-cards p {
  font-style: italic;
  margin-bottom: 0.5rem; /* 8px */
}

.testimonial-cards span {
  font-size: 0.875rem; /* 14px */
  color: #E0E0E0;
}

/* Pricing Section Styles */
.pricing {
  padding: 4rem 2rem; /* 64px 32px */
  text-align: center;
}

.pricing-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem; /* 16px */
}

.pricing-cards .card {
  width: 300px;
  height: 200px;
  padding: 1rem; /* 16px */
}

.pricing-cards h3 {
  margin-bottom: 0.5rem; /* 8px */
}

/* FAQ Section Styles */
.faq {
  padding: 4rem 2rem; /* 64px 32px */
  text-align: center;
  background-color: #FFFFFF;
}

.faq-items {
  max-width: 800px;
  margin: 0 auto;
}

details {
  margin-bottom: 1rem; /* 16px */
}

summary {
  font-size: 1rem; /* 16px */
  font-weight: 500;
  padding: 1rem; /* 16px */
  background-color: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 0.5rem; /* 8px */
  cursor: pointer;
}

details[open] summary {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

details p {
  padding: 1rem; /* 16px */
  border: 1px solid #E0E0E0;
  border-top: none;
  border-bottom-left-radius: 0.5rem; /* 8px */
  border-bottom-right-radius: 0.5rem; /* 8px */
  background-color: #FFFFFF;
}

/* Footer Styles */
footer {
  padding: 1.5rem; /* 24px */
  background-color: #4CAF50;
  color: #FFFFFF;
  text-align: center;
}

footer .logo {
  font-size: 1.25rem; /* 20px */
  margin-bottom: 0.5rem; /* 8px */
}

footer p {
  font-size: 0.875rem; /* 14px */
  margin-bottom: 0.5rem; /* 8px */
}

.social-links a {
  color: #FFFFFF;
  text-decoration: none;
  margin: 0 0.5rem; /* 8px */
}

.social-links a:hover {
  color: #FF6F61;
}

/* Responsive Design Media Queries */
@media (max-width: 1024px) {
  .hero-content, .hero-image {
    width: 100%;
  }

  .hero-image {
    height: 300px;
  }

  .feature-cards .card, .step, .testimonial-cards .card, .pricing-cards .card {
    min-width: 45%;
  }
}

@media (max-width: 768px) {
  header {
    padding: 0 16px;
    justify-content: center;
  }

   .header-left {
    display: flex;
    align-items: center;
    gap: 10rem; /* 16px */
    order: 1; /* Move to the left side */
  }

  .hamburger {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background-color: #F8F1E9;
    flex-direction: column;
    padding: 1rem; /* 16px */
    text-align: center;
  }

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

  .nav-menu li {
    margin: 0.5rem 0; /* 8px */
  }

  .hero {
    flex-direction: column;
    height: auto;
    padding: 1.5rem; /* 24px */
    text-align: center;
  }

  h1 {
    font-size: 1.75rem; /* 28px */
  }

  .cta-primary {
    padding: 0.5rem 1.5rem; /* 8px 24px */
  }

  .feature-cards .card, .step, .testimonial-cards .card, .pricing-cards .card {
    min-width: 100%;
    margin-bottom: 1rem; /* 16px */
  }

  .steps {
    flex-direction: column;
    align-items: center;
  }

  .testimonial-cards, .pricing-cards {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem; /* 24px */
  }

  p {
    font-size: 0.875rem; /* 14px */
  }

  .hero-image {
    height: 200px;
  }

  .cta-primary {
    width: 100%;
    padding: 0.75rem;
  }

  .faq-items {
    max-width: 100%;
  }

  .hamburger .bar {
    width: 20px;
  }

}

/* Hamburger Animation */
.hamburger.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}