:root {
  --primary-color: #8d5b4c; /* Warm Brown */
  --secondary-color: #f4e9e0; /* Creamy Beige */
  --accent-color: #d4a373; /* Soft Gold/Caramel */
  --text-color: #333333;
  --light-text-color: #ffffff;
  --border-color: #e0d8d0;
  --font-heading: "Playfair Display", serif;
  --font-body: "Open Sans", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--secondary-color);
  color: var(--text-color);
  line-height: 1.7;
  padding-bottom: 40px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 90%;
  max-width: 900px; /* Slightly wider to accommodate images */
  margin: 0 auto;
}

header {
  /* background-color: var(--primary-color); */
  color: var(--light-text-color);
  padding: clamp(20px, 5vw, 40px) 15px;
  text-align: center;
  margin-bottom: clamp(25px, 6vw, 40px);
  mask: linear-gradient(0, #0000 12px, #000 0),
    radial-gradient(12px, #000 calc(100% - 1px), #0000) bottom/22.2px 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);

  --s: 70px; /* control the size*/
  --c1: var(--accent-color);
  --c2: var(--primary-color);
  --_l: #0000 46%, var(--c1) 47% 53%, #0000 54%;
  background: radial-gradient(100% 100% at 100% 100%, var(--_l)) var(--s)
      var(--s),
    radial-gradient(100% 100% at 0 0, var(--_l)) var(--s) var(--s),
    radial-gradient(
      100% 100%,
      #0000 22%,
      var(--c1) 23% 29%,
      #0000 30% 34%,
      var(--c1) 35% 41%,
      #0000 42%
    ),
    var(--c2);
  background-size: calc(var(--s) * 2) calc(var(--s) * 2);
}

header a i {
  color: var(--light-text-color);
}
.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo img {
  width: 400px;
  height: auto;
}
header h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw + 1rem, 3.2rem);
  margin-bottom: 0.25em;
  letter-spacing: 0.5px;
}

header p {
  font-size: clamp(0.9rem, 1.5vw + 0.5rem, 1.1rem);
  opacity: 0.9;
}

.menu-section {
  background-color: #ffffff;
  margin-bottom: clamp(25px, 6vw, 40px);
  padding: clamp(20px, 4vw, 30px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  border-radius: 10px;
}

.menu-section h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw + 0.8rem, 2.2rem);
  color: var(--primary-color);
  margin-bottom: 1.25em;
  padding-bottom: 0.5em;
  border-bottom: 2px solid var(--accent-color);
  text-align: center;
}

.menu-items-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.menu-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 20px;
  align-items: center;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px dashed var(--border-color);
}
.menu-item-flex {
  display: flex;
  align-items: center;
  border-bottom: 1px dashed var(--border-color);
}

.menu-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.item-image {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

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

.item-details {
  flex-grow: 1;
}

.item-details h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(1rem, 1.2vw + 0.7rem, 1.2rem);
  color: var(--text-color);
  margin-bottom: 0.3em;
  line-height: 1.4;
}

.item-description {
  font-size: clamp(0.85rem, 1vw + 0.55rem, 0.95rem);
  color: #555;
  margin-bottom: 0.25em;
  line-height: 1.5;
}

.item-price {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(1rem, 1.2vw + 0.6rem, 1.1rem);
  color: var(--primary-color);
  white-space: nowrap;
  text-align: right;
}

.allergy-info,
.footer-info {
  text-align: center;
  font-size: clamp(0.8rem, 1vw + 0.5rem, 0.9rem);
  color: #777;
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.footer-info {
  margin-top: clamp(25px, 6vw, 40px);
  font-weight: 600;
  color: var(--primary-color);
}

/* Navigation Buttons */
.navigation-buttons {
  display: flex;
  justify-content: space-between;
  width: 90%;
  max-width: 900px;
  margin: 0 auto 20px;
}

.nav-button {
  display: inline-flex;
  align-items: center;
  background-color: var(--primary-color);
  color: var(--light-text-color);
  padding: 10px 15px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.nav-button:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.back-button i {
  margin-right: 8px;
}

.next-button i {
  margin-left: 8px;
}

/* Info Box Styling */
.info {
  text-align: center;
  font-size: clamp(0.9rem, 1.1vw + 0.5rem, 1rem);
  color: var(--primary-color);
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  border: 1px dashed var(--accent-color);
  font-weight: 600;
  font-style: italic;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .menu-item {
    grid-template-columns: 80px 1fr auto;
    gap: 15px;
  }

  .item-image {
    width: 80px;
    height: 80px;
  }

  .item-image::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to top, var(--color-bg-card), transparent);
  }
}

@media (max-width: 480px) {
  .container {
    width: 95%;
  }

  .menu-item {
    grid-template-columns: 1fr;
    grid-template-areas:
      "image"
      "details"
      "price";
  }

  .item-image {
    grid-area: image;
    width: 100%;
    height: 150px;
    justify-self: center;
  }

  .item-details {
    grid-area: details;
  }

  .item-price {
    grid-area: price;
    text-align: left;
    margin-top: 0.5rem;
  }

  .navigation-buttons {
    width: 95%;
    flex-direction: column;
    gap: 10px;
  }

  .nav-button {
    padding: 12px 15px;
    justify-content: center;
  }
}

.back-arrow {
  position: absolute;
  top: 20px;
  left: 20px;
  color: #333;
  font-size: 24px;
  text-decoration: none;
  transition: color 0.3s ease;
  z-index: 1000;
}

.back-arrow:hover {
  color: #ff7f50; /* or any color that matches your theme */
}

.language-switcher {
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 100;
}

.language-switcher select {
  padding: 6px 12px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background-color: #fff;
  color: #333;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.language-switcher select:hover,
.language-switcher select:focus {
  border-color: #888;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
}
