/* = Global Reset & Base Styles = */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html {
  scroll-behavior: smooth; /* enables smooth scroll for nav links */
}

body {
  background: #fffaf7;
  color: #333;
  line-height: 1;
}

/*Header + Navbar*/
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #dd0606, #eee5e5);
  color: white;
  padding: 0.5rem 1rem;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.header h1 {
  font-size: 2.5rem;
  letter-spacing: 3px;
}

.header p {
  font-size: 1rem;
  margin-top: 0.1rem;
}

/* Navbar */
.navbar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
  gap: 1.5rem;
}

.navbar li {
  display: inline-block;
}

.navbar a {
  text-decoration: none;
  font-weight: 600;
  color: white;
  padding: 0.5rem 1rem;
  transition: 0.3s;
  border-radius: 20px;
}

.navbar a:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Special Order button */
.order-btn {
  background: #333;
  border-radius: 25px;
  padding: 0.6rem 1.2rem;
}

.order-btn:hover {
  background: #222;
}

/* Content Sections (Box Layout) */
.content {
  padding: 0rem 1rem;
  max-width: 1200px;
  margin: auto;
}

.content > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin: 1rem auto;
  padding: 1.2rem;
  border: 2px solid #ff7f50;
  max-width: 900px;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Alternate layout (image left, text right) */
.content > div:nth-child(even) {
  flex-direction: row;
}

.content h2 {
  color: #ff7f50;
  margin-bottom: 1rem;
}

.content p {
  max-width: 500px;
  font-size: 1rem;
}

.content img {
  width: 300px;
  max-width: 40%;
  border-radius: 12px;
  object-fit: cover;
}

/* Products List inside content-4 */
.content-4 ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.content-4 li {
  margin: 0.4rem 0;
  font-weight: 500;
}

/* Menu Section */
.menu {
  text-align: center;
  padding: 2rem 1rem;
}

.menu h2 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: #333;
}

.menu-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.menu-item {
  background: white;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 1.5rem;
  width: 280px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: 0.3s ease;
}

.menu-item:hover {
  transform: translateY(-5px);
}

.menu-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.menu-item h3 {
  font-size: 1.2rem;
  margin: 0.5rem 0;
  color: #333;
}

.menu-item p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: #555;
}

.order-now {
  color: red;
  font-weight: bold;
  text-decoration: none;
}

.order-now:hover {
  text-decoration: underline;
}


/* Showcase Section (Grid) */
.showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 3rem 2rem;
  background: #fff3e6;
}

.showcase div {
  background: white;
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  text-align: center;
  transition: 0.3s;
}

.showcase div:hover {
  transform: translateY(-5px);
}

.showcase img {
  max-width: 100%;
  border-radius: 10px;
}

.showcase h2 {
  color: #ff7f50;
  margin: 1rem 0;
}

.showcase a {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  background: #ff7f50;
  color: white;
  border-radius: 20px;
  text-decoration: none;
  transition: 0.3s;
}

.showcase a:hover {
  background: #ff6347;
}

/*Newsletter*/
#newsletter {
  background: #ff7f50;
  color: white;
  padding: 3rem 1rem;
  text-align: center;
}

#newsletter h1 {
  margin-bottom: 1rem;
}

#newsletter input {
  padding: 0.8rem;
  width: 260px;
  max-width: 80%;
  border: none;
  border-radius: 5px;
  margin-right: 0.5rem;
}

#newsletter button {
  padding: 0.8rem 1.2rem;
  background: #333;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

#newsletter button:hover {
  background: #222;
}

/* Follow Us */
.follow {
  text-align: center;
  padding: 2rem;
}

.follow p {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.follow a {
  margin: 0 0.8rem;
  color: #ff7f50;
  font-size: 1.8rem;
  transition: 0.3s;
}

.follow a:hover {
  color: #ff6347;
}

/* Footer */
footer {
  text-align: center;
  padding:  2rem 2rem 2rem;
  background: #333;
  color: white;
  margin-top: 3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  /* navbar */
  .navbar ul{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
  }

  .navbar ul li a{
    font-size: 0.9rem;
    padding: 0.3rem 0.6rem;
  }

  .header{
    position: relative;
  }

  /* content sections */
  .content > div {
    flex-direction: column;
    text-align: center;
  }

  .content img {
    max-width: 80%;
    margin-bottom: 1rem;
  }

  .content > div:nth-child(even) {
  flex-direction: column;
  gap: 1rem;
  }

  /* menu section */

  .menu-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    justify-items: center;       
    margin: 0 auto;      
    max-width: 600px;        
  }

  /* Each menu item should also be centered */
  .menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    padding: 1rem;
    max-width: 280px;
    }

  .menu-item:last-child:nth-child(odd) {
    grid-column: span 2;
  }

  .menu-img {
    width: 80%;
  }  
  .menu-item {
    width: 90%;
    padding: 1rem;
  }
  /* showcase section */
  .showcase { 
    grid-template-columns: 1fr;
    padding: 2rem 1rem;
  }

  .showcase h1 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  }

  .showcase p {
    font-size: 1rem;
  }

  /* newsletter */
  #newsletter input {
    width: 70%;
    margin-bottom: 0.5rem;
  }

  #newsletter button {
    width: 40%;
  }
}