/* -------- GLOBAL RESET -------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Lucida Sans", "Lucida Sans Regular", "Lucida Grande",
    "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
  scroll-behavior: smooth;
}

/* -------- BODY -------- */
body {
  background: linear-gradient(135deg, #fffaf0, #ffe6b7);
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

/* -------- HEADER -------- */
header {
  background: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 10;
}

.head-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 25px;
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: #ff4d00;
  padding-right: 20px;
}

.location span {
  font-size: 0.95rem;
  background: #fff0d6;
  padding: 6px 10px;
  border-radius: 20px;
  color: #333;
}

.search {
  flex: 1;
  text-align: center;
}

.search-input {
  width: 60%;
  padding: 10px 50px;
  border-radius: 25px;
  border: 1px solid #ddd;
  outline: none;
  font-size: 0.95rem;
  transition: 0.3s ease;
}

.search-input:focus {
  border-color: #ff4d00;
  box-shadow: 0 0 5px #ff8c42;
}

.user-action a {
  text-decoration: none;
  font-size: 1.4rem;
  color: #ff4d00;
}

/* -------- HERO SECTION -------- */
.hero-section {
  background: url("https://t4.ftcdn.net/jpg/09/44/50/15/360_F_944501542_VsZZ9Lv5i2ScswRo0ZrIZPxI5OOIwRfD.jpg")
    center/cover no-repeat;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero-container {
  position: relative;
  z-index: 1;
  padding: 20px;
}

.hero-container h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
}

.hero-container p {
  font-size: 1.1rem;
  margin-bottom: 25px;
}

.order-button {
  background: #ff4d00;
  padding: 12px 28px;
  border-radius: 30px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 77, 0, 0.4);
}

.order-button:hover {
  background: #ff7c33;
  transform: scale(1.05);
}

/* -------- POPULAR SECTION -------- */
.popular-section {
  padding: 50px 20px;
  text-align: center;
}

.popular-section h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  position: relative;
  color: #222;
}

.popular-section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: #ff4d00;
  margin: 10px auto;
  border-radius: 10px;
}

/* -------- ITEM GRID -------- */
.items {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  padding: 0 10px;
}

.item-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  text-align: center;
  padding: 20px;
}

.item-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.item-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 15px;
  transition: transform 0.4s ease;
}

.item-card:hover img {
  transform: scale(1.08);
}

.item-card h3 {
  margin-top: 15px;
  color: #333;
  font-size: 1.1rem;
  font-weight: 600;
}

.item-card p {
  color: #ffb300;
  font-size: 1.1rem;
  margin-top: 5px;
}

/* -------- RESPONSIVE DESIGN -------- */
@media (max-width: 768px) {
  .head-container {
    flex-direction: column;
    gap: 10px;
  }

  .search-input {
    width: 90%;
  }

  .hero-container h1 {
    font-size: 2rem;
  }

  .hero-container p {
    font-size: 1rem;
  }

  .order-button {
    padding: 10px 22px;
  }
}

@media (max-width: 480px) {
  .items {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .hero-section {
    height: 70vh;
  }
}

/* Restaurants Section */
.restaurants-section {
  padding: 50px 20px;
  text-align: center;
  background: #fff8f0;
}

.restaurants-section h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  position: relative;
  color: #ff4d00;
}

.restaurants-section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: #ff4d00;
  margin: 10px auto;
  border-radius: 10px;
}

/* Grid Layout */
.restaurants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

/* Restaurant Card */
.restaurant-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  text-align: center;
  padding-bottom: 15px;
}

.restaurant-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.restaurant-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.restaurant-card:hover img {
  transform: scale(1.08);
}

.restaurant-card h3 {
  margin-top: 15px;
  font-size: 1.2rem;
  color: #333;
}

.restaurant-card p {
  margin: 5px 0;
  font-size: 0.95rem;
  color: #ff7c33;
}

.restaurant-card span {
  font-size: 1rem;
  color: #ffb400;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .restaurants-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 480px) {
  .restaurants-grid {
    grid-template-columns: 1fr;
  }
}

/* -------- Popular Dishes Section -------- */
.dishes-section {
  padding: 50px 20px;
  text-align: center;
  background: #fff0e6;
}

.dishes-section h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  position: relative;
  color: #ff4d00;
}

.dishes-section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: #ff4d00;
  margin: 10px auto;
  border-radius: 10px;
}

/* Grid Layout */
.dishes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

/* Dish Card */
.dish-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  text-align: center;
  padding-bottom: 15px;
}

.dish-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.dish-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.dish-card:hover img {
  transform: scale(1.08);
}

.dish-card h3 {
  margin-top: 15px;
  font-size: 1.2rem;
  color: #333;
}

.dish-card p {
  margin: 5px 0;
  font-size: 0.95rem;
  color: #ff7c33;
}

.dish-card span {
  font-size: 1rem;
  color: #ffb400;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .dishes-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 480px) {
  .dishes-grid {
    grid-template-columns: 1fr;
  }
}

/* -------- OFFERS SECTION -------- */
.offers-section {
  text-align: center;
  padding: 60px 20px;
  background: #fff8f0;
}

.offers-section h2 {
  font-size: 2.5rem;
  color: #ff4d00;
  margin-bottom: 10px;
}

.offers-section p {
  color: #555;
  margin-bottom: 50px;
  font-size: 1.1rem;
}

.offers-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: 0 auto;
}

.offer-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  padding: 25px;
  transition: all 0.3s ease;
}

.offer-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.offer-card img {
  width: 100%;
  border-radius: 15px;
  margin-bottom: 15px;
}

.offer-card h3 {
  color: #ff7043;
  margin-bottom: 10px;
}

.offer-card p {
  color: #444;
  font-size: 0.95em;
}

/* Referral Section inside Offers */
.referral-section {
  margin-top: 60px;
  background: #fff;
  border-radius: 20px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.referral-section h2 {
  color: #ff7043;
  margin-bottom: 10px;
}

.referral-section p {
  color: #444;
  margin-bottom: 20px;
}

.referral-box {
  background: #f8f8f8;
  border-radius: 10px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.referral-box input {
  border: none;
  background: transparent;
  font-size: 1.3em;
  color: #333;
  text-align: center;
  outline: none;
  width: 100%;
  font-weight: 600;
}

.referral-note {
  font-size: 0.9em;
  color: #777;
  margin-top: 8px;
}

/* -------- Responsive Offers -------- */
@media (max-width: 768px) {
  .offers-container {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 480px) {
  .offers-container {
    grid-template-columns: 1fr;
  }
}

/* -------- FOOTER SECTION -------- */
.footer-section {
  background: #222;
  color: #fff;
  padding: 50px 20px 20px 20px;
  font-family: "Poppins", sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
}

.footer-column {
  flex: 1 1 250px;
}

.footer-column h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: #ff4d00;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.footer-column ul li a {
  text-decoration: none;
  color: #fff;
  transition: 0.3s;
}

.footer-column ul li a:hover {
  color: #ff7c33;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
  margin-top: 30px;
  color: #ccc;
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
  }

  .footer-column {
    text-align: center;
  }
}
