/* ==========================================================================
   0) GLOBAL RESETS & BASE
   ========================================================================== */

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

html,
body {
  width: 100%;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

:root {
  /* Used for the split hero background */
  --hero-green: #3f8c5b;
  /* your existing green */
  --hero-beige: #F7F3E8;
  /* same beige as page background */
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #F7F3E8;
  color: #2a2a2a;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ==========================================================================
   1) HEADER / NAV / CART / HAMBURGER
   ========================================================================== */

/* Language switcher */
.lang-switch {
  margin-left: 0.25rem;
  margin-right: 0.25rem;
}

.lang-switch select {
  font: inherit;
  color: #0a4c41;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 0.5rem;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
}

/* Header shell */
.header {
  width: 100%;
  padding: 1rem 0;
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(247, 243, 232, 0.9);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  z-index: 10;
}

/* Header inner container */
.header .container {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
  justify-content: space-between; /* Distribute logo and nav/actions evenly */
}

/* Logo */
.logo {
  font-weight: 700;
  font-size: 2.5rem;
  color: #0a4c41;
  padding: 0 1rem 0 0;
}

/* Navigation styles */
.nav {
  display: flex; /* Show nav links inline on desktop */
  align-items: center;
}

.nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.5rem; /* Space between nav links */
}

.nav li {
  list-style: none;
}

.nav a {
  font-size: 1rem;
  font-weight: 600;
  color: #0a4c41;
  padding: 0.5rem;
  display: block;
  transition: background-color 0.2s ease;
}

.nav a:hover {
  background-color: rgba(10, 76, 65, 0.06);
  border-radius: 0.5rem;
}

/* Actions wrapper: cart + language switcher (hamburger hidden on desktop) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Cart link (pill) */
.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: #0a4c41;
  padding: 0.35rem 0.6rem;
  border-radius: 0.5rem;
  background: rgba(10, 76, 65, 0.06);
  text-decoration: none;
  margin-right: 0.5rem;
  position: relative;
  z-index: 250;
}

.cart-link:hover {
  background: rgba(10, 76, 65, 0.12);
}

/* Orange circular badge */
.cart-count-badge {
  background-color: #ff5a36;
  color: #fff;
  border-radius: 50%;
  padding: 0.2rem 0.5rem;
  font-size: 0.8rem;
  margin-left: 0.3rem;
}

/* Hamburger button */
.hamburger {
  display: none; /* Hidden on desktop */
  position: relative;
  font-size: 1.8rem;
  color: #0a4c41;
  cursor: pointer;
  user-select: none;
  z-index: 300;
}

/* Media query for mobile (below 768px) */
@media (max-width: 768px) {
  .nav {
    display: none; /* Hide nav by default on mobile */
    flex-direction: column;
    position: absolute;
    top: 76px;
    right: 1rem;
    width: 180px;
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    z-index: 200;
  }

  .nav.active {
    display: flex; /* Show when hamburger toggled */
  }

  .nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  .nav a {
    padding: 0.5rem 1rem;
    width: 100%;
  }

  .nav a:hover {
    background-color: #f6f6f6;
  }

  .hamburger {
    display: block; /* Show hamburger on mobile */
  }

  .header-actions {
    margin-left: auto; /* Keep cart/lang on right */
  }
}

/* ==========================================================================
   2) BUTTONS / CONTROLS
   ========================================================================== */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #f66339;
  color: #ffffff;
  padding: 0.6rem 1rem;
  border: 0;
  border-radius: 0.6rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.05s ease, background-color 0.2s ease;
}

.btn-primary:hover {
  background-color: #e15630;
}

.btn-primary:active {
  transform: translateY(1px);
}

/* Quantity controls on cards */
.qty-controls {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e8e8e8;
  border-radius: 0.6rem;
  overflow: hidden;
  margin-right: 0.5rem;
}

.qty-btn {
  background: #fef8f1;
  color: #0a4c41;
  border: 0;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  font-size: 1rem;
  line-height: 2rem;
}

.qty-value {
  width: 2.25rem;
  text-align: center;
  font-weight: 700;
  color: #2a2a2a;
}

/* Space buttons nicely in meal cards */
.meal-actions {
  display: flex;
  align-items: center;
  margin-top: 0.6rem;
}

/* ==========================================================================
   3) HERO (HOME)
   ========================================================================== */

.hero {
  display: flex;
  flex-wrap: wrap;
  width: 1200px;
  height: 525px;
  border-radius: 5px;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  margin-top: 140px;
  background: linear-gradient(90deg, var(--hero-green) 0 50%, var(--hero-beige) 50% 100%);
}

/* Shrink width slightly on smaller desktops */
@media only screen and (max-width: 1200px) {
  .hero {
    width: 90%;
  }
}

/* Left half (text column) */
.hero-left {
  flex: 1 1 50%;
  padding: 2rem;
  background: transparent;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-left div {
  position: absolute;
  z-index: 11;
  width: 350px;
}

.hero-left div p {
  width: 250px;
}

.hero-left h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-left .subtitle {
  font-size: 1rem;
  color: #fef8f1;
  margin-bottom: 1.5rem;
}

/* Call-to-action */
.cta-button {
  display: inline-block;
  background-color: #f66339;
  color: #ffffff;
  padding: 0.8rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
  margin-top: 0.5rem;
  width: fit-content;
}

.cta-button:hover {
  background-color: #e15630;
}

/* Center illustration */
#heroImage {
  position: absolute;
  z-index: 10;
  width: 650px;
  left: 50%;
  transform: translate(-50%);
  border-radius: 20%;
}

/* Right half (icon column) */
.hero-right {
  flex: 1 1 50%;
  padding: 2rem;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: right;
  position: relative;
}

/* Illustration wrapper & overlay icons */
.image-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-wrapper img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  z-index: 1;
}

/* Flip + tooltip for hero emojis */
.icon-item {
  position: relative;
  perspective: 600px;
  outline: none;
}

.icon-item .emoji {
  display: inline-block;
  transition: transform 0.35s ease;
  transform-style: preserve-3d;
}

.icon-item:hover .emoji,
.icon-item:focus .emoji,
.icon-item:focus-visible .emoji {
  transform: rotateY(180deg);
}

.icon-item::after {
  content: attr(data-label);
  position: absolute;
  left: 50%;
  bottom: -2.1rem;
  transform: translateX(-50%) translateY(6px);
  background: #0a4c41;
  color: #fff;
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.4rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.icon-item:hover::after,
.icon-item:focus::after,
.icon-item:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.icon-item:focus-visible {
  box-shadow: 0 0 0 3px rgba(15, 135, 110, 0.25);
  border-radius: 999px;
}

.icons {
  position: absolute;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 2;
}

.icon-item {
  width: 75px;
  height: 75px;
  background-color: #f6f6f6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 60px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.icon-item i {
  font-size: 1.6rem;
  color: #0a4c41;
}

.icon-item .emoji {
  font-size: 5rem;
}

/* Icon colors */
.icons .icon-item:nth-child(1) {
  background-color: #faefd3;
}

.icons .icon-item:nth-child(2) {
  background-color: #e8f5e9;
}

.icons .icon-item:nth-child(3) {
  background-color: #e0f2f1;
}

.icons .icon-item:nth-child(1) i {
  color: #f66339;
}

.icons .icon-item:nth-child(2) i {
  color: #0a4c41;
}

.icons .icon-item:nth-child(3) i {
  color: #0a4c41;
}

/* ==========================================================================
   4) FOOTER
   ========================================================================== */

.footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  color: #777;
}

/* ==========================================================================
   5) RESPONSIVE (GLOBAL)
   ========================================================================== */

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    margin: 5rem auto 1rem;
    background: var(--hero-beige);
  }

  .hero-left,
  .hero-right {
    max-width: 100%;
  }

  .hero-left {
    background: var(--hero-green);
    border-radius: 1rem 1rem 0 0;
    text-align: center;
    align-items: center;
    padding: 1.5rem;
  }

  .hero-right {
    border-radius: 0 0 1rem 1rem;
  }

  .hero-left h1 {
    font-size: 2rem;
    text-align: center;
  }

  .hero-left .subtitle {
    text-align: center;
  }

  .icons {
    flex-direction: row;
    top: auto;
    bottom: 5%;
    right: 50%;
    transform: translateX(50%);
  }
}

@media (max-width: 480px) {
  .hero {
    margin: 5.2rem auto 1rem;
    width: 100%;
  }

  .logo a {
    font-size: 1.5rem;
  }

  #heroImage {
    width: 90%;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
  }

  .hero-left {
    background: var(--hero-green);
    border-radius: 0;
  }

  .hero-right {
    background: var(--hero-beige);
  }

  .hero-left .hero-right {
    flex: none;
  }

  .hero-left div {
    margin-top: 5px;
  }

  .hero-left h1 {
    margin-bottom: 0.5rem;
    font-size: 1.7rem;
  }

  .hero-left .subtitle {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0.5rem;
  }

  .icons {
    display: none;
  }

  .footer {
    display: none;
  }
}

/* ==========================================================================
   6) MENU (PRODUCT GRID)
   ========================================================================== */

.menu-section {
  max-width: 1200px;
  margin: 4rem auto 2rem;
  padding: 2rem 1rem;
  background-color: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.menu-section h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: #0a4c41;
  margin-bottom: 2rem;
}

.meal-category {
  margin-bottom: 2rem;
}

.meal-category h3 {
  font-size: 1.6rem;
  font-weight: 600;
  color: #0a4c41;
  margin-bottom: 1rem;
}

.meal-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.meal-card {
  background-color: #ffffff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.meal-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.meal-info {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.meal-info h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #0a4c41;
  margin-bottom: 0.5rem;
}

.meal-info .macros {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 0.5rem;
}

.meal-info .price {
  font-size: 1rem;
  font-weight: 700;
  color: #f66339;
}

.meal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   7) ABOUT
   ========================================================================== */

.about-section {
  max-width: 1000px;
  margin: 6rem auto 2rem;
  padding: 2rem;
  background-color: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.about-container h1 {
  flex: 1 1 100%;
  font-size: 2rem;
  font-weight: 700;
  color: #0a4c41;
  margin-bottom: 1rem;
  text-align: center;
}

.about-text {
  flex: 1 1 60%;
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

.about-image {
  flex: 1 1 35%;
  text-align: center;
}

.about-image img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

/* ==========================================================================
   8) CONTACT
   ========================================================================== */

.contact-section {
  max-width: 800px;
  margin: 6rem auto 2rem;
  padding: 2rem;
  background-color: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.contact-container h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #0a4c41;
  margin-bottom: 1rem;
  text-align: center;
}

.contact-subtitle {
  font-size: 1rem;
  color: #555;
  margin-bottom: 2rem;
  text-align: center;
}

.contact-icons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.2rem;
  background-color: #fef8f1;
  color: #0a4c41;
  border-radius: 0.5rem;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.contact-link:hover {
  background-color: #f3ece1;
}

.contact-link i {
  font-size: 1.5rem;
  color: #f66339;
}

.contact-link:nth-child(2) i {
  color: #3f8c5b;
}

/* ==========================================================================
   9) MODAL (INGREDIENTS)
   ========================================================================== */

.cf-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  padding: 16px;
  z-index: 2000;
}

.cf-modal.cf-show {
  display: flex;
}

.cf-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: #fff;
  border-radius: 16px;
  padding: 20px 18px 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.cf-modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.cf-modal__title {
  margin: 0 0 8px 0;
  font-size: 1.15rem;
}

.cf-modal__list {
  margin: 0;
  padding-left: 18px;
}

/* ==========================================================================
   10) LEGACY / NOT NEEDED RIGHT NOW (SAFE TO REMOVE LATER)
   ========================================================================== */

/*
.header .container {
  justify-content: space-between;
}
*/

/* Make logo bigger only on the home page */
.logo a {
  font-size: 2.2rem;
}

.delivery-note {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  color: #0a4c41;
  opacity: 0.9;
}

/* --- Diet chips --- */
.diet-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin: 0.75rem 0 1.25rem;
}

.diet-chip {
  appearance: none;
  border: 1.5px solid #0a4c41;
  background: #ffffff;
  color: #0a4c41;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.diet-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.diet-chip:active {
  transform: translateY(0);
}

.diet-chip.active {
  background: #f66339;
  color: #fff;
  border-color: #f66339;
  box-shadow: 0 2px 10px rgba(246, 99, 57, 0.25);
}

.diet-chip:focus-visible {
  outline: 3px solid rgba(10, 76, 65, 0.35);
  outline-offset: 2px;
  border-color: #0a4c41;
}

.diet-feedback {
  margin-left: 0.5rem;
  font-weight: 700;
  color: #0a4c41;
  opacity: 0.85;
}
