:root {
  --primary: #00b894; 
  --primary-dark: #00a884; 
  --accent: #fdcb6e;
  --dark: #2d3436; 
  --light: #dfe6e9; 
  --bg: #f9fbfd; 
  --white: #ffffff;
  --shadow-card: 0 10px 20px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.1);
  --radius: 12px;
  --transition: all 0.3s ease;
}

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

body {
  font-family: "Montserrat", sans-serif;
  background-color: var(--bg);
  color: var(--dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(0, 184, 148, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-white {
  background-color: var(--white);
  color: var(--primary);
}

.btn-white:hover {
  background-color: var(--light);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
}

.section-subtitle {
  color: #636e72;
  font-weight: 500;
}

/* --- Header / Navigation --- */
.navbar {
  background-color: var(--white);
  padding: 1.2rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo i {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-link {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-icons {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.icon-btn {
  position: relative;
  font-size: 1.2rem;
  color: var(--dark);
}

.badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--primary);
  color: var(--white);
  font-size: 0.7rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* --- Hero Section (Centered Layout) --- */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("https://images.unsplash.com/photo-1504674900247-0877df9cc836?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80");
  background-size: cover;
  background-position: center;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  margin-bottom: 4rem;
}

.hero-content {
  max-width: 700px;
  padding: 0 20px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-title span {
  color: var(--primary);
}

.hero-text {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.search-box {
  background: var(--white);
  padding: 0.5rem;
  border-radius: 50px;
  display: flex;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.search-box input {
  border: none;
  outline: none;
  padding: 0 1.5rem;
  flex: 1;
  font-size: 1rem;
  font-family: inherit;
}

.search-box button {
  padding: 0.8rem 2.5rem;
}

/* --- How It Works (3 Steps) --- */
.steps-section {
  padding: 2rem 0 4rem;
  text-align: center;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.step-card {
  padding: 2rem;
}

.step-icon {
  width: 80px;
  height: 80px;
  background-color: rgba(0, 184, 148, 0.1);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
}

.step-card h3 {
  margin-bottom: 0.5rem;
}
.step-card p {
  color: #636e72;
  font-size: 0.9rem;
}

/* --- Categories (Circular) --- */
.categories-section {
  padding: 2rem 0;
  background-color: var(--white);
}

.category-scroll {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding: 1rem 0 2rem;
  scrollbar-width: none; /* Hide scrollbar Firefox */
}

.category-scroll::-webkit-scrollbar {
  display: none;
}

.cat-item {
  min-width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
}

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

.cat-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: #eee;
  margin-bottom: 0.8rem;
  object-fit: cover;
  border: 3px solid transparent;
  transition: var(--transition);
}

.cat-item:hover .cat-img {
  border-color: var(--primary);
}

.cat-item span {
  font-weight: 600;
  font-size: 0.9rem;
}

/* --- Featured Restaurants (Grid) --- */
.restaurants-section {
  padding: 4rem 0;
}

.grid-rest {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.rest-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  position: relative;
}

.rest-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.rest-img-wrapper {
  position: relative;
  height: 180px;
}

.rest-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.time-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: var(--white);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.9);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b2bec3;
  cursor: pointer;
  transition: var(--transition);
}

.fav-btn:hover {
  color: #ff7675;
}

.rest-info {
  padding: 1.5rem;
}

.rest-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
}

.rating {
  color: var(--accent);
  font-size: 0.9rem;
}

.rest-meta {
  display: flex;
  gap: 15px;
  font-size: 0.85rem;
  color: #636e72;
  margin-bottom: 1rem;
}

.rest-meta i {
  color: var(--primary);
  margin-right: 4px;
}

.tags {
  font-size: 0.8rem;
  color: #b2bec3;
  background: #f1f2f6;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
}

/* --- Footer --- */
footer {
  background-color: var(--dark);
  color: #b2bec3;
  padding: 4rem 0 1rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h2 {
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-brand p {
  font-size: 0.9rem;
  max-width: 300px;
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}
.footer-col ul li a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
}

/* --- Contact Section Styles --- */
.contact-section {
  padding: 4rem 0;
  background-color: #f0f7f4; /* Slightly different bg to separate from white sections */
}

.contact-wrapper {
  display: flex;
  gap: 4rem;
  align-items: center;
  justify-content: center;
}

.contact-image-col {
  flex: 1;
  display: block; /* Visible on desktop */
}

.contact-image-col img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  object-fit: cover;
  height: 100%;
  max-height: 500px;
}

.contact-form-container {
  flex: 1;
  max-width: 500px;
  width: 100%;
  padding: 2.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--dark);
  font-size: 0.9rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 2px solid #ecf0f1;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
  background-color: #f9fbfd;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--primary);
  background-color: var(--white);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

/* --- RESPONSIVE BREAKPOINTS --- */

/* Tablet (≤ 1024px) */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.8rem;
  }
  .grid-rest {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Contact section tablet adjust */
  .contact-wrapper {
    gap: 2rem;
  }
  .contact-form-container {
    padding: 2rem;
  }
}

/* Mobile (≤ 768px) */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  } /* Use JS for hamburger usually, hiding for static CSS demo */
  .nav-icons .btn {
    display: none;
  }

  .hero {
    height: 500px;
    padding-top: 60px;
  }
  .hero-title {
    font-size: 2rem;
  }
  .search-box {
    flex-direction: column;
    background: transparent;
    gap: 10px;
  }
  .search-box input {
    height: 50px;
    border-radius: 50px;
  }
  .search-box button {
    width: 100%;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .grid-rest {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .footer-brand p {
    margin: 0 auto;
  }

  /* Contact Form Mobile Compatibility */
  .contact-wrapper {
    flex-direction: column-reverse; /* Stack form on top or bottom? Standard is column */
  }

  .contact-image-col {
    display: none; /* Hide decorative image on mobile to save scroll space */
  }

  .contact-form-container {
    padding: 1.5rem;
    box-shadow: none; /* Flatter design on mobile */
    border: 1px solid #eee;
  }
}
