/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-red: #DC143C;
  --gold: #FFD700;
  --dark-gold: #B8860B;
  --white: #FFFFFF;
  --off-white: #FAFAFA;
  --light-gray: #F5F5F5;
  --gray: #666666;
  --dark-gray: #333333;
  --black: #1A1A1A;
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-dark: rgba(0, 0, 0, 0.2);
}

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  line-height: 1.6;
  color: var(--dark-gray);
  background-color: var(--white);
}

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

/* Navigation */
.navbar {
  background: var(--white);
  box-shadow: 0 2px 10px var(--shadow);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo h2 {
  color: var(--primary-red);
  font-size: 1.8rem;
  font-weight: bold;
  text-shadow: 1px 1px 2px var(--shadow);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--dark-gray);
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s ease;
  cursor: pointer;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: var(--dark-gray);
  margin: 3px 0;
  transition: 0.3s;
}

/* Main Content */
main {
  margin-top: 70px;
}

.page {
  display: none;
  min-height: calc(100vh - 70px);
}

.page.active {
  display: block;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  min-height: 80vh;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--off-white) 0%, var(--light-gray) 100%);
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero h1 {
  font-size: 3.5rem;
  color: var(--primary-red);
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px var(--shadow);
}

.hero p {
  font-size: 1.2rem;
  color: var(--gray);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image {
  flex: 1;
  text-align: center;
  margin-left: 2rem;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px var(--shadow-dark);
}

/* Buttons */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

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

.btn-primary:hover {
  background: #B91C3C;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--shadow-dark);
}

.btn-secondary {
  background: var(--gold);
  color: var(--black);
}

.btn-secondary:hover {
  background: var(--dark-gold);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--shadow-dark);
}

.btn-full {
  width: 100%;
}

/* Features Section */
.features {
  padding: 4rem 0;
  background: var(--white);
}

.features h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary-red);
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  text-align: center;
  padding: 2rem;
  border-radius: 10px;
  background: var(--off-white);
  box-shadow: 0 5px 15px var(--shadow);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  color: var(--primary-red);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

/* Menu Styles */
.menu-categories {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.category-btn {
  padding: 10px 20px;
  border: 2px solid var(--primary-red);
  background: var(--white);
  color: var(--primary-red);
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.category-btn.active,
.category-btn:hover {
  background: var(--primary-red);
  color: var(--white);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.menu-item {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow);
  transition: transform 0.3s ease;
}

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

.menu-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.menu-item-content {
  padding: 1.5rem;
}

.menu-item h3 {
  color: var(--primary-red);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.menu-item p {
  color: var(--gray);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.menu-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--gold);
}

.add-to-cart {
  background: var(--primary-red);
  color: var(--white);
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.add-to-cart:hover {
  background: #B91C3C;
  transform: scale(1.05);
}

/* Cart Styles */
.cart-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.empty-cart {
  text-align: center;
  padding: 3rem;
  color: var(--gray);
}

.cart-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  margin-bottom: 1rem;
  background: var(--white);
}

.cart-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 1rem;
}

.cart-item-details {
  flex: 1;
}

.cart-item h4 {
  color: var(--primary-red);
  margin-bottom: 0.25rem;
}

.cart-item p {
  color: var(--gray);
  font-size: 0.9rem;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quantity-btn {
  width: 30px;
  height: 30px;
  border: 1px solid var(--primary-red);
  background: var(--white);
  color: var(--primary-red);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

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

.remove-item {
  background: #DC2626;
  color: var(--white);
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
}

.remove-item:hover {
  background: #B91C1C;
}

.cart-summary {
  background: var(--light-gray);
  padding: 1.5rem;
  border-radius: 8px;
  height: fit-content;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.summary-row.total {
  border-top: 2px solid var(--primary-red);
  padding-top: 0.5rem;
  margin-top: 1rem;
  font-weight: bold;
  font-size: 1.1rem;
}

/* Form Styles */
.reservation-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.reservation-info h3 {
  color: var(--primary-red);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.contact-info {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--light-gray);
  border-radius: 8px;
}

.contact-info p {
  margin-bottom: 0.5rem;
}

.reservation-form {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 5px 15px var(--shadow);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--dark-gray);
  font-weight: 500;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--light-gray);
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-red);
}

.error-message {
  color: #DC2626;
  font-size: 0.8rem;
  margin-top: 0.25rem;
  display: block;
}

/* Footer */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--gray);
  color: var(--gray);
}

/* Page Headers */
.page h1 {
  text-align: center;
  color: var(--primary-red);
  font-size: 2.5rem;
  margin-bottom: 2rem;
  padding: 2rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--white);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px var(--shadow);
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-image {
    margin-left: 0;
    margin-top: 2rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }

  .cart-content {
    grid-template-columns: 1fr;
  }

  .reservation-content {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .cart-item {
    flex-direction: column;
    text-align: center;
  }

  .cart-item img {
    margin-right: 0;
    margin-bottom: 1rem;
  }

  .cart-item-controls {
    justify-content: center;
  }

  .container {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .page h1 {
    font-size: 2rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .menu-categories {
    flex-direction: column;
    align-items: center;
  }

  .category-btn {
    width: 200px;
  }
}

/* Hidden class for menu filtering */
.menu-item.hidden {
  display: none;
}

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Success states */
.success-message {
  background: #10B981;
  color: var(--white);
  padding: 1rem;
  border-radius: 6px;
  margin: 1rem 0;
  text-align: center;
}
