* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,body{
  overflow-x: hidden;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background: #fdfdfd;
}
header {
  position: relative;
  background: url('images/hero.jpg') center/cover no-repeat;
  color: #fff;
}

/* Overlay on hero image */
header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5); /* dim effect */
  z-index: -1; /* behind everything */
}



.menubac {
  position: relative;
  background: url('images/shop.jpg') center/cover no-repeat;
  color: #fff;
  height: 500px;
}

/* Overlay on hero image */
.menubac::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5); /* dim effect */
  z-index: 0;
}


.navbar, 
.hero {
  position: relative; /* place them above overlay */
  z-index: 1;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: relative;
  z-index: 10; /* above hero overlay */
}

/* Default (desktop) menu */
.navbar ul {
  display: flex;
  list-style: none;
}

.navbar ul li {
  margin-left: 20px;
}

.navbar a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: color 0.3s;
}

.navbar a:hover {
  color: crimson;
}

/* Mobile Styles */
@media (max-width: 768px) {
  /* Hamburger menu container */
  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    position: relative;
    z-index: 9999; /* above hero section */
  }

  .hamburger span {
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
  }

  /* Mobile nav menu */
  .navbar {
    position: relative;
    z-index: 10; /* above hero section */
  }

  .navbar ul {
    position: absolute;
    top: 60px;
    right: -100%;
    width: 220px;
    background: rgba(220, 20, 60, 0.95); /* semi-transparent crimson */
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    transition: right 0.3s ease;
    z-index: 10000; /* above hero text */
  }

  .navbar ul.active {
    right: 0;
  }

  /* Links */
  .navbar ul li a {
    position: relative;
    overflow: hidden;
    display: block;
    padding: 10px 5px;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    transition: color 0.3s, background 0.3s;
  }

  /* Hover effect: background + underline */
  .navbar ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background: #fff;
    transition: width 0.3s;
  }

  .navbar ul li a:hover {
    background: rgba(255, 255, 255, 0.1); /* subtle background glow */
    color: #fff;
  }

  .navbar ul li a:hover::after {
    width: 100%; /* slide underline */
  }
}



/* Hamburger animation */
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 120px 20px;
  position: relative;
  z-index: 5; /* below mobile menu */
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.2rem;
}

.hero .btn {
  margin-top: 20px;
  padding: 12px 25px;
  background: crimson;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.hero .btn:hover {
  background: darkred;
}

/* Popular Section */
.popular {
  padding: 60px 20px;
  background: #fafafa;
  text-align: center;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #333;
}

/* Grid */
.popular-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

/* Card */
.food-card {
  background: #fff;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.food-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.food-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.food-card h3 {
  font-size: 1.2rem;
  margin: 10px 0;
  color: #222;
}

.food-card .price {
  font-weight: bold;
  color: crimson;
  margin-bottom: 10px;
}

/* Button */
.btn-add {
  padding: 8px 15px;
  border: none;
  border-radius: 5px;
  background: crimson;
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-add:hover {
  background: darkred;
}

.collection {
  background: url('images/eating.jpg') center/cover no-repeat;
  min-height: 400px;             /* allow flexible growth */
  color: #fff;
  text-align: center;
  display: flex;                 /* center content */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;            /* safe padding */
  position: relative;
  overflow: hidden;
}

/* dark overlay for readability */
.collection::before {
  content: "";
  position: absolute;
  inset: 0;                      /* shorthand for top/left/right/bottom:0 */
  background: rgba(0,0,0,0.5);
}

/* heading & button above overlay */
.collection h3,
.collection button {
  position: relative;
  z-index: 1;
}

/* heading */
.collection h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  text-transform: capitalize;
}

/* button */
.collection button {
  background: crimson;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.collection button a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
}

.collection button:hover {
  background: darkred;
}



/* Menu Section */
.menu {
  padding: 60px 20px;
  text-align: center;
  background: #fafafa;
}

.menu .section-title {
  font-size: 2rem;
  margin-bottom: 25px;
  color: #333;
}

#searchBar {
  margin: 20px auto 40px;
  padding: 10px 15px;
  width: 80%;
  max-width: 400px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

/* Grid */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 250px));
  justify-content: center;
  gap: 25px;
  align-items: stretch; /* ensure cards stretch to same height */
}

.menu-card,
.food-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%; /* stretch inside grid cell */
}



/* Menu Card */
.hidden {
  display: none !important;
}

.menu-card {
  background: #fff;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.menu-card img {
  width: 100%;
  height: 180px;       /* consistent height */
  object-fit: cover;   /* fills without stretching */
  border-radius: 10px;
  margin-bottom: 12px;
}

.menu-card h3 {
  font-size: 1.2rem;
  margin: 10px 0;
  color: #222;
}

.menu-card .price {
  font-weight: bold;
  color: crimson;
  margin-bottom: 12px;
}

/* Shared Card Layout Fix */
.menu-card,
.food-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;    /* full height to stretch with grid row */
}

/* Push button to bottom */
.menu-card .btn-add,
.food-card .btn-add {
  margin-top: auto;   
}

.menu-card h3,
.food-card h3 {
  overflow: hidden;        /* hide overflowing text */
  max-height: 2.4em;       /* 2 lines * line-height */
  line-height: 1.2em;      /* adjust to match font */
}


/* Button Styles */
.btn-add {
  padding: 8px 15px;
  font-size: 0.9rem;
  border: none;
  border-radius: 6px;
  background: crimson;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-add:hover {
  background: darkred;
}


/* Pagination styles */
.pagination {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.pagination button {
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  background: #eee;
  cursor: pointer;
  transition: background 0.3s ease;
  font-size: 0.95rem;
}

.pagination button.active {
  background: crimson;
  color: #fff;
}

.pagination button:hover {
  background: #ddd;
}




/* Treasure Section */
.treasure {
  display: flex;
  align-items: center;         /* vertically center text & image */
  justify-content: space-between;
  gap: 40px;                   /* spacing between text and image */
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;              /* center the section */
}

/* Left Column (Text) */
.treasure div:first-child {
  flex: 1;
}

.treasure h3 {
  font-size: 1.2rem;
  color: crimson;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.treasure h1 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #222;
}

.treasure p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #555;
}

/* Shop Button */
.treasure a {
  display: inline-block;
  padding: 12px 25px;
  background: crimson;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.treasure a:hover {
  background: darkred;
}

/* Right Column (Image) */
.treasure div:last-child {
  flex: 1;
}

.treasure img {
  width: 100%;
  max-width: 500px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Responsive for smaller screens */
@media (max-width: 768px) {
  .treasure {
    flex-direction: column;   /* stack text above image */
    text-align: center;
  }

  .treasure div:last-child {
    margin-top: 20px;
  }

  .treasure img {
    max-width: 100%;
  }
}






/* Prides Section */
.prides {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  padding: 60px 20px;
  background: #fafafa;
  text-align: center;
}

.pride-card {
  background: #fff;
  padding: 25px 20px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pride-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

.pride-card i {
  font-size: 2rem;
  color: crimson;
  margin-bottom: 15px;
}

.pride-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #222;
}

.pride-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}






/* Explore Section */
.explore {
  position: relative;
  background: url('images/explore.jpg') center/cover no-repeat;
  color: #fff;
  padding: 100px 20px;
  display: flex;
  justify-content: flex-end; /* content pushed to the right */
  align-items: center;
  min-height: 400px;
  overflow: hidden;
}

/* dark overlay */
.explore::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55); /* dim background */
  z-index: 0;
}

.explore-content {
  max-width: 500px;
  text-align: right;
  position: relative;
  z-index: 1;
}

.explore-content h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #f8d210; /* bright accent */
}

.explore-content h3 i {
  margin-right: 8px;
  color: crimson;
}

.explore-content h1 {
  font-size: 2rem;
  margin-bottom: 15px;
  line-height: 1.3;
}

.explore-content p {
  font-size: 1rem;
  margin-bottom: 25px;
  color: #eee;
}

/* button */
.btn-explore {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  background: crimson;
  color: #fff;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn-explore:hover {
  background: darkred;
}




/* footer */
:root {
  --primary: #e63946;   /* snacky red */
  --secondary: #ffb703; /* golden yellow */
  --dark: #1d3557;      /* deep navy */
  --light: #f8f9fa;     /* soft gray-white */
}

.footer {
  background: var(--light);
  padding: 40px 20px 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--dark);
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

.footer-column h3 {
  font-size: 18px;
  margin-bottom: 12px;
  font-weight: bold;
  color: var(--primary);
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin: 8px 0;
}

.footer-column ul li a {
  color: #444;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-column ul li a:hover {
  color: var(--secondary);
}

.footer-socials {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  align-items: flex-start;
}

.footer-socials a {
  font-size: 20px;
  color: var(--dark);
  transition: color 0.3s;
}

.footer-socials a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  font-size: 14px;
  color: #555;
  border-top: 1px solid #ddd;
  margin-top: 20px;
}



/* Cart Section */
.cart {
  padding: 50px 20px;
  background: #fff;
  max-width: 1000px;
  margin: 40px auto;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.cart h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 30px;
  color: crimson;
}

.cart-count {
  background: crimson;
  color: #fff;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 50%;
  margin-left: 4px;
  font-weight: bold;
}

.cart-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cart-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cart-items li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f9f9f9;
  margin-bottom: 12px;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.cart-items img {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  object-fit: cover;
  margin-right: 15px;
}

.item-info {
  flex: 1;
  display: flex;
  align-items: center;
}

.item-details {
  display: flex;
  flex-direction: column;
}

.item-name {
  font-weight: bold;
  font-size: 16px;
}

.item-price {
  color: #666;
  font-size: 14px;
}

.item-quantity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.item-quantity button {
  background: crimson;
  color: #fff;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 6px;
  font-size: 14px;
  transition: background 0.3s ease;
}

.item-quantity button:hover {
  background: darkred;
}

.cart-summary {
  text-align: right;
}

.cart-summary p {
  font-size: 18px;
  margin-bottom: 10px;
}

.btn-checkout {
  background: crimson;
  color: #fff;
  border: none;
  padding: 12px 25px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
  text-decoration: none;
}

.btn-checkout:hover {
  background: darkred;
  text-decoration: none;
}


/* About Page */
.about-section, .mission-section {
  padding: 60px 20px;
  text-align: center;
  background: #fff;
}

.about-section h2, .mission-section h2 {
  font-size: 2rem;
  color: crimson;
  margin-bottom: 15px;
}

.about-section p, .mission-section p {
  max-width: 800px;
  margin: auto;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #333;
}

.highlight {
  color: crimson;
  font-weight: bold;
}

.values-section {
  background: #f9f9f9;
  padding: 60px 20px;
  text-align: center;
}

.values-section h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: crimson;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: auto;
}

.value-card {
  background: #fff;
  border-radius: 10px;
  padding: 30px 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.value-card:hover {
  transform: translateY(-5px);
}

.value-card i {
  font-size: 2rem;
  color: crimson;
  margin-bottom: 10px;
}

.aboutbac {
  position: relative;
  background: url('images/behind.jpg') center/cover no-repeat;
  color: #fff;
  height: 500px;
}

/* Overlay on hero image */
.aboutbac::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5); /* dim effect */
  z-index: 0;
}


/* Contact Page */
.contactbac {
  position: relative;
  background: url('images/behind.jpg') center/cover no-repeat;
  color: #fff;
  height: 500px;
}

/* Overlay on hero image */
.contactbac::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5); /* dim effect */
  z-index: 0;
}

.contact-hero {
  background: crimson;
  color: #fff;
  text-align: center;
  padding: 60px 20px;
}

.contact-hero h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.contact-hero p {
  font-size: 1.2rem;
}

.contact-section {
  padding: 60px 20px;
}

.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: auto;
}

.contact-info {
  background: #f9f9f9;
  padding: 25px;
  border-radius: 10px;
}

.contact-info h3 {
  color: crimson;
  margin-bottom: 15px;
}

.contact-info p {
  margin: 10px 0;
  font-size: 1rem;
  color: #333;
}

.contact-info i {
  color: crimson;
  margin-right: 8px;
}

.contact-form {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.contact-form h3 {
  margin-bottom: 15px;
  color: crimson;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin: 8px 0;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form button {
  background: crimson;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background: darkred;
}

.map-section {
  padding: 60px 20px;
  text-align: center;
}

.map-section h3 {
  color: crimson;
  margin-bottom: 15px;
}

.map-placeholder {
  background: #f0f0f0;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

/* Checkout Section */
.checkout {
  padding: 60px 20px;
  background: #fdfdfd;
}

.checkout-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.checkout .billing,
.checkout .order-summary {
  flex: 1 1 400px;
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.checkout h3 {
  margin-bottom: 20px;
  color: crimson;
}

.checkout label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.checkout input {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.checkout .order-summary ul {
  list-style: none;
  margin-bottom: 20px;
}

.checkout .order-summary ul li {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.checkout input:focus {
  border-color: crimson;
  outline: none;
  box-shadow: 0 0 5px rgba(220,20,60,0.3);
}


.checkout .total {
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.btn-checkout {
  display: inline-block;
  padding: 12px 25px;
  background: crimson;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.btn-checkout:hover {
  background: darkred;
  transform: scale(1.03);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .checkout-container {
    flex-direction: column;
  }
  .checkout .billing,
  .checkout .order-summary {
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .popular-grid,
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;

    /* Add this */
    align-items: stretch;  /* ensures all cards in a row have same height */
  }

  .food-card,
  .menu-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;  /* full height to stretch */
  }

  .food-card img,
  .menu-card img {
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
  }

  .food-card h3,
  .menu-card h3 {
    font-size: 1rem;
  }

  .food-card .price,
  .menu-card .price {
    font-size: 0.9rem;
  }
}


@media (max-width: 480px) {
  .popular-grid,
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
    align-items: stretch;  /* keep cards equal height */
  }

  .food-card,
  .menu-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
  }
}
