@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary-orange: #ff6b00;
  --primary-orange-hover: #e65c00;
  --bg-white: #ffffff;
  --bg-off-white: #f9f9f9;
  --text-dark: #1f1f1f;
  --text-light: #666666;
  --border-color: #eaeaea;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', sans-serif; }
body { background-color: var(--bg-off-white); color: var(--text-dark); line-height: 1.6; -webkit-font-smoothing: antialiased; display: flex; flex-direction: column; min-height: 100vh; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; }
a { text-decoration: none; color: inherit; transition: color 0.3s ease; }

/* Navbar */
header { background-color: var(--bg-white); border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 1000; box-shadow: var(--shadow-sm); }
nav { max-width: 1200px; margin: 0 auto; padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 800; display: flex; align-items: center; gap: 0.5rem; color: var(--primary-orange); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { font-weight: 500; font-size: 1rem; color: var(--text-dark); position: relative; }
.nav-links a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -4px; left: 0; background-color: var(--primary-orange); transition: width 0.3s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--primary-orange); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.btn-order { background-color: var(--primary-orange); color: var(--bg-white); padding: 0.75rem 1.5rem; border-radius: 9999px; font-weight: 600; display: flex; align-items: center; gap: 0.5rem; border: none; cursor: pointer; transition: all 0.3s ease; }
.btn-order:hover { background-color: var(--primary-orange-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--bg-white); }

/* Menu Page */
.page-header { text-align: center; padding: 4rem 2rem; background: linear-gradient(rgba(255, 107, 0, 0.05), rgba(255, 255, 255, 0)); }
.page-header h1 { font-size: 3rem; color: var(--primary-orange); }

.menu-grid { max-width: 1200px; margin: 0 auto 4rem; padding: 0 2rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; }
.menu-card { background: var(--bg-white); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-sm); transition: all 0.3s ease; border: 1px solid var(--border-color); }
.menu-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #ffe0cc; }
.menu-card img { width: 100%; height: 200px; object-fit: cover; }
.menu-card-content { padding: 1.5rem; }
.menu-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.menu-card-title { font-size: 1.25rem; font-weight: 700; }
.menu-card-price { color: var(--primary-orange); font-weight: 800; font-size: 1.25rem; }
.menu-card-desc { color: var(--text-light); font-size: 0.9rem; margin-bottom: 1.5rem; }
.menu-card-actions {
  display: flex;
  gap: 0.75rem;
}

.menu-card-btn { 
  flex: 1;
  background-color: var(--bg-off-white); 
  color: var(--primary-orange); 
  border: 1px solid var(--primary-orange); 
  padding: 0.75rem; 
  border-radius: 12px; 
  font-weight: 600; 
  cursor: pointer; 
  transition: all 0.3s ease; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  gap: 0.5rem; 
}

.menu-card-btn:hover { 
  background-color: var(--primary-orange); 
  color: var(--bg-white); 
}

.btn-view {
  width: 48px;
  flex: 0 0 48px;
  background-color: white;
  color: var(--text-dark);
  border: 1px solid var(--border-color);
}

.btn-view:hover {
  border-color: var(--primary-orange);
  color: var(--primary-orange);
  background-color: rgba(255, 107, 0, 0.05);
}

/* Modal System */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-container {
  background: white;
  max-width: 600px;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  position: relative;
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  z-index: 10;
  transition: all 0.2s ease;
}

.modal-close:hover {
  transform: rotate(90deg);
  color: var(--primary-orange);
}

.modal-content {
  display: grid;
  grid-template-columns: 240px 1fr;
}

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

.modal-info {
  padding: 2.5rem;
}

.modal-info h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.modal-price {
  color: var(--primary-orange);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  display: block;
}

.modal-desc {
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .modal-content {
    grid-template-columns: 1fr;
  }
  .modal-img {
    height: 200px;
  }
  .modal-info {
    padding: 1.5rem;
  }
}

/* Footer */
footer { background-color: var(--bg-white); border-top: 1px solid var(--border-color); padding: 3rem 2rem; text-align: center; margin-top: auto; }
footer p { color: var(--text-light); }

@media (max-width: 768px) { .nav-links { display: none; } }
