/* -------- BASIC RESET -------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  background: #f5f3ef;
  color: #2e2e2e;
  transition: background 0.3s, color 0.3s;
}

/* -------- NAVIGATION -------- */
nav {
  background: #1b4d3e; /* forest green */
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav a {
  color: #f8f3e7;
  text-decoration: none;
  margin: 0 15px;
  font-weight: bold;
  transition: 0.3s;
}

nav a:hover {
  color: #a8c6b4; /* lighter green */
}

/* Dark mode toggle button */
#darkToggle {
  background: #2e2e2e;
  color: white;
  padding: 8px 14px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-left: 20px;
  transition: 0.3s;
}

#darkToggle:hover {
  background: #1b4d3e;
}

/* -------- HERO / HEADER -------- */
.hero {
  text-align: center;
  padding: 120px 20px;
  background: url('https://images.unsplash.com/photo-1509042239860-f550ce710b93') center/cover no-repeat;
  color: white;
  transition: filter 0.3s;
}

.hero h1 {
  font-size: 60px;
  text-shadow: 2px 2px 10px #000;
  animation: fadeIn 2s ease-out forwards;
}

.container {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
}

/* Menu items */
.menu-item {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  border-left: 6px solid #1b4d3e;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  transition: 0.3s;
  margin-bottom: 10px;
}

.menu-item:hover {
  transform: scale(1.05);
}

.menu-grid {
  margin-top: 30px;   /* move the menu items down slightly */
}

/* INGREDIENTS (Accordion hidden area) */
.ingredients {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  margin-top: 10px;
}

/* When item is open */
.menu-item.active .ingredients {
  max-height: 200px; /* enough for ingredients */
  opacity: 1;
}

/* Map */
.map-box {
  width: 100%;
  height: 300px;
  border: 3px solid #1b4d3e;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 20px;
}

.map-placeholder-text {
  text-align: center;
  padding: 10px;
  color: #2e2e2e;
  font-style: italic;
  transition: color 0.3s;
}

/* Middle section card */
.mid-section {
  max-width: 900px;
  margin: 60px auto;
  padding: 30px;
  background: #ffffff;         /* Card background */
  border-radius: 20px;         /* Rounded edges */
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: background 0.3s, color 0.3s;
}

/* Page background outside the card */
body.custom-bg {
  background: #e1dccc;  /* Slightly darker contrast color */
}

/* Dark mode variations */
body.dark.custom-bg {
  background: #141414;
}

body.dark .mid-section {
  background: #2a2a2a;
  color: #e6e6e6;
  box-shadow: 0 4px 15px rgba(255,255,255,0.05);
}

/* ---- DARK MODE STYLES ---- */
body.dark {
  background: #1f1f1f;
  color: #e6e6e6;
}

body.dark nav {
  background: #2e2e2e;
}

body.dark nav a {
  color: #e6e6e6;
}

body.dark nav a:hover {
  color: #b0d1c0;
}

body.dark .menu-item {
  background: #2e2e2e;
  box-shadow: 0 3px 8px rgba(255,255,255,0.05);
}

body.dark .map-placeholder-text {
  color: #e6e6e6;
}

body.dark .hero {
  filter: brightness(0.7);
}

@media (max-width: 600px) {
  nav {
    flex-direction: column;
    text-align: center;
  }

  nav div {
    margin-top: 10px;
  }

  #darkToggle {
    margin-left: 0;
    margin-top: 10px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero p {
    font-size: 18px;
  }
}