:root {
  --primary-color: #ff7a18; /* Orange */
  --secondary-color: #1e88e5; /* Blue */
  --dark-bg: #62422e; /* Dark Brown for Footer (matched to provided swatch) */
  --text-dark: #1f2937;
  --text-light: #ffffff;
  --text-grey: #1f2937;
  --bg-light-grey: #ffffff;
  --bg-light-peach: #fff7ed;
  --border-light: #f3f4f6;
  --radius: 10px;
  --container-width: 1320px;
}

/* Scroll-to-top button */
.scroll-top {
  right: 60px;
  bottom: 40px;
  width: 48px;
  height: 48px;
  background: #0aa3ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition:
    transform 0.15s ease,
    opacity 0.15s ease;
}
.scroll-top img {
  width: 52px;
  height: 52px;
  display: block;
}
.scroll-top:hover {
  transform: translateY(-4px);
  opacity: 0.95;
}

@media (max-width: 767px) {
  .scroll-top {
    right: 20px;
    bottom: 20px;
  }
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial;
  background: var(--bg);
  color: #111827;
  -webkit-font-smoothing: antialiased;
}
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 3rem;
}
.logo {
  font-family: "Island Moments", cursive;
  font-weight: 400;
  font-size: 40.81px;
  font-style: "regular";
  color: var(--primary-color);
}
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 10px;
  display: flex;
  gap: 15rem;
}
.main-nav a {
  text-decoration: none;
  color: #374151;
  padding: 8px 0;
  font-family: "Inter", sans-serif;
  font-style: "medium";
  font-weight: 500;
  font-size: 16px;
}
.main-nav a.active {
  color: var(--primary-color);
}
.header-cta .btn {
  margin-left: 20px;
}

/* Buttons */
.btn {
  display: inline-block;
}

.btn-secondary {
  background: var(--primary-color);
  color: #fff;
  padding: 0.9rem 3rem;
  border-radius: 10px;
  text-decoration: none;
  font-family: "Inter", sans-serif;
  font-style: "semi-bold";
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
}
.btn-primary {
  background: var(--primary-color);
  color: #fff;
  padding: 15px 196px 15px 196px;
  border-radius: 10px;
  text-decoration: none;
  font-family: "Inter", sans-serif;
  font-style: "semi-bold";
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
}
.btn-primary:hover {
  background: #e56810; /* Darker shade of primary color */
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: #111;
  display: block;
}

.food-hero {
  position: relative;
  min-height: 603px;
  background-image: url("../assets/img/Main\ Menu.png");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.food-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.food-hero-content {
  position: relative;
  color: #fff;
  padding-left: 3rem;
}

.food-hero-content h1 {
  font-size: 48px;
  font-weight: 700;
  font-style: "bold";
  font-family: "Inter", sans-serif;
  line-height: 61px;
  margin-bottom: 10px;
}

.food-hero-content p {
  font-size: 24px;
  font-weight: 500;
  font-style: "medium";
  font-family: "Inter", sans-serif;
  line-height: 34px;
}

.menu-layout {
  display: flex;
  flex-direction: column;
  padding: 5rem;
  background: #f3f4f6;
}

.menu-sidebar {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 8px;
}

.menu-sidebar h3 {
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 24px;
  font-family: "Inter", sans-serif;
  font-style: "semi-bold";
  line-height: 34px;
}

.menu-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-sidebar li {
  padding: 12px;
  cursor: pointer;
  font-weight: 500;
  font-size: 24px;
  font-family: "Inter", sans-serif;
  font-style: "medium";
  line-height: 34px;
}

.menu-sidebar li.active {
  background: #f5d0a9;
  border-left: 4px solid var(--primary-color);
  font-weight: 500;
  font-size: 24px;
  font-family: "Inter", sans-serif;
  font-style: "medium";
  line-height: 34px;
}

.menu-content h2 {
  margin-bottom: 1.5rem;
  font-size: 32px;
  font-family: "Inter", sans-serif;
  font-style: "Bold";
  font-weight: 700;
  line-height: 1.2;
  color: #1f2937;
}

.food-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 0rem;
  row-gap: 4rem;
}

.food-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  width: 75%;
  height: 100%;
}

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

.food-card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.food-card-body h3 {
  font-size: 24px;
  font-family: "Inter", sans-serif;
  font-style: "semi-bold";
  font-weight: 600;
  line-height: 34px;
  margin-bottom: 8px;
  color: #1f2937;
}

.food-card-body p {
  font-size: 16px;
  font-family: "Inter", sans-serif;
  font-style: "medium";
  font-weight: 500;
  line-height: 24px;
  color: var(--text-dark);
  flex: 1;
}

.food-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

/* Remove underline for links inside food cards and keep text color consistent */
.food-card a,
.food-card-link {
  text-decoration: none;
  color: inherit;
}

.price {
  color: var(--primary-color);
  font-size: 16px;
  font-family: "Inter", sans-serif;
  font-style: "medium";
  font-weight: 500;
  line-height: 24px;
}

.add-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--primary-color);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

/* 'View All Categories' base (hidden on desktop) */
.view-all-wrapper {
  display: block;
}
.view-all-categories {
  display: none; /* shown only on mobile via media query */
}

/* --- Footer --- */
.footer {
  background-color: var(--dark-bg);
  color: #ffffff;
  padding: 70px 100px 30px;
  font-family: "Poppins", sans-serif;
}

.footer-container {
  font-family: "Jost", sans-serif;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
}

.footer-col {
  flex: 1;
}

.footer-col h4 {
  font-size: 1.55rem;
  margin-bottom: 20px;
  font-weight: 400;
}

.footer-col.brand p {
  font-family: "Jost", sans-serif;
  font-size: 1.55rem;
  font-weight: 500;
  font-style: medium;
  line-height: 1.6;
  color: #f5f5f5;
  width: 65%;
}

.footer-col p {
  font-size: 15px;
  line-height: 2.5;
  color: #f5f5f5;
}
.footer-col li {
  font-size: 15px;
  line-height: 1.8;
  color: #f5f5f5;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a {
  text-decoration: none;
  color: #f5f5f5;
  transition: 0.3s ease;
}

.footer-col a:hover {
  color: #ffd9b3;
}

.brand .logo {
  font-family: "Island Moments", cursive;
  font-weight: 400;
  font-size: 2.5rem;
  color: var(--primary-color); /* orange logo color */
}

.footer-bottom {
  margin-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 20px;
  font-size: 14px;
  color: #e0e0e0;
}

@media (max-width: 1024px) {
  .food-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
  }

  /* Container */
  .container {
    max-width: 100%;
    padding: 0 16px;
  }

  /* Header */
  .header-inner {
    padding: 1rem 1.5rem;
  }

  .logo {
    font-size: 24px;
  }

  .main-nav {
    display: none; /* hide desktop nav */
  }

  .header-cta {
    display: none; /* hide desktop button */
  }

  .menu-toggle {
    display: flex; /* show hamburger */
  }
  /* Style for the cloned CTA inside the mobile nav */
  .main-nav .nav-cta {
    padding: 8px 12px;
  }
  .main-nav .nav-cta .header-cta,
  .main-nav .nav-cta .btn {
    display: block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
  .main-nav .nav-cta .btn {
    padding: 12px 16px;
    border-radius: 8px;
  }

  /* Mobile nav dropdown (becomes visible when JS sets display:block) */
  .main-nav {
    position: absolute;
    top: 100%;
    left: -16px;
    right: -16px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.12);
    z-index: 2000;
    padding: 12px 8px;
  }

  .main-nav ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .main-nav a {
    display: block;
    padding: 12px 16px;
    border-radius: 8px;
    color: #374151;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
  }

  .main-nav a:hover {
    background: rgba(0, 0, 0, 0.04);
  }

  .menu-layout {
    padding: 0rem;
  }

  .menu-content {
    padding: 1rem;
  }

  .food-card:nth-child(n + 4) {
    display: none;
  }

  /* Show 'View All Categories' link on mobile */
  .view-all-categories {
    display: inline-block;
    margin-top: 24px;
    color: var(--secondary-color);
    font-weight: 400;
    font-size: 16px;
    font-style: "regular";
    text-decoration: none;
  }
  .view-all-wrapper {
    text-align: center;
  }

  /* 1 column instead of 3 */
  .food-grid {
    grid-template-columns: 1fr;
    row-gap: 0.5rem;
  }

  /* Card becomes horizontal */
  .food-card {
    flex-direction: row;
    width: 100%;
    height: 80%;
    align-items: center;
    padding: 0.5rem;
    gap: 0.75rem;
  }

  /* Smaller image on the left */
  .food-card img {
    width: 110px;
    height: 110px;
    border-radius: 8px;
  }

  .food-card-body {
    padding: 0.5rem;
    gap: -6px;
  }

  /* Reduce text sizes */
  .food-card-body h3 {
    font-size: 16px;
    font-weight: 600;
    font-style: "semi-bold";
    line-height: 1.3;
    margin-bottom: -0.5rem;
  }

  .food-card-body p {
    font-size: 12px;
    font-weight: 400;
    font-style: "regular";
    line-height: 1.3;
  }

  .food-card-footer {
    margin-top: -0.5rem;
  }

  .add-btn {
    width: 28px;
    height: 28px;
    font-size: 16px;
  }

  /* Section headings */
  .menu-content h2 {
    font-size: 20px;
    margin-bottom: 1rem;
  }

  .footer {
    display: none;
  }
}
