:root {
  --primary-brown: #7A4B2E;
  --secondary-ivory: #F5F0E6;
  --accent-orange: #D35400;
  --text-white: #FFFFFF;
  --text-gray: #CCCCCC;
  --light-gray: #F8F8F8;
  --dark-brown: #5A3821;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Navigation Bar */
.navbar {
  background: var(--primary-brown);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo {
  color: var(--text-white);
  font-size: 1.8rem;
  font-weight: bold;
  text-decoration: none;
}

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

.nav-menu a {
  color: var(--text-white);
  text-decoration: none;
  transition: color 0.3s;
  font-size: 1rem;
}

.nav-menu a:hover {
  color: var(--secondary-ivory);
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--accent-orange);
  color: var(--text-white);
  text-decoration: none;
  border-radius: 20px;
  transition: all 0.3s;
  font-size: 0.9rem;
  margin-left: 2rem;
}

.lang-switcher:hover {
  background: #B04600;
  transform: translateY(-2px);
}

.lang-icon {
  font-size: 1.2rem;
}

.lang-text {
  font-weight: 500;
}

/* Mobile Menu Button */
.menu-toggle {
  display: none;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1001;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--secondary-ivory);
  transform: scale(1.05);
}

.menu-toggle:active {
  transform: scale(0.95);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-white);
  margin: 5px 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Hide close button on desktop */
.nav-menu .close-menu {
  display: none;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .navbar {
    padding: 0.8rem 0;
  }

  .nav-container {
    padding: 0 1rem;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
  }

  .logo {
    font-size: 1.4rem;
  }

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(122, 75, 46, 0.98), rgba(90, 56, 33, 0.98));
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu li {
    padding: 0;
    list-style: none;
    opacity: 0;
    animation: slideInFromLeft 0.5s ease forwards;
  }

  .nav-menu.active li:nth-child(1) { animation-delay: 0.1s; }
  .nav-menu.active li:nth-child(2) { animation-delay: 0.15s; }
  .nav-menu.active li:nth-child(3) { animation-delay: 0.2s; }
  .nav-menu.active li:nth-child(4) { animation-delay: 0.25s; }
  .nav-menu.active li:nth-child(5) { animation-delay: 0.3s; }
  .nav-menu.active li:nth-child(6) { animation-delay: 0.35s; }

  @keyframes slideInFromLeft {
    from {
      transform: translateX(-30px);
      opacity: 0;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }

  .nav-menu a {
    display: block;
    padding: 1rem 2rem;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-white);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  .nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-orange);
    transition: all 0.3s ease;
    transform: translateX(-50%);
  }

  .nav-menu a:hover {
    color: var(--accent-orange);
    transform: scale(1.1);
  }

  .nav-menu a:hover::after {
    width: 80%;
  }

  /* Close button in menu - show only on mobile */
  .nav-menu .close-menu {
    display: flex !important;
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
  }

  .nav-menu .close-menu:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-orange);
    color: var(--accent-orange);
    transform: rotate(90deg) scale(1.1);
  }

  .lang-switcher {
    margin-left: auto;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }

  /* Hamburger animation when active */
  .menu-toggle.active {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-orange);
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-4px, 5px);
    background: var(--accent-orange);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-4px, -5px);
    background: var(--accent-orange);
  }

  /* Hide lang text on very small screens */
  @media (max-width: 380px) {
    .lang-text {
      display: none;
    }

    .nav-menu a {
      font-size: 0.85rem;
      padding: 0.3rem 0.4rem;
    }
  }

  /* Hero section mobile */
  .hero {
    height: 400px;
    margin-top: 60px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .tagline {
    font-size: 1rem;
  }

  .hero-description {
    font-size: 0.9rem;
  }

  /* Features grid mobile */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Dishes grid mobile */
  .dishes-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Buttons mobile */
  .btn-group {
    flex-direction: column;
    gap: 1rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  /* Contact grid mobile */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Section padding mobile */
  .features,
  .dishes,
  .contact,
  .about-section,
  .menu-page,
  .reservation-page {
    padding: 2rem 0;
  }

  .container {
    padding: 0 1rem;
  }

  /* Page header mobile */
  .page-header {
    margin-top: 60px !important;
    padding: 2rem 0 !important;
  }
}

/* Hero Section */
.hero {
  margin-top: 70px;
  height: 600px;
  background: linear-gradient(rgba(122, 75, 46, 0.5), rgba(122, 75, 46, 0.5)),
              url('/images/hero-bg.png') center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-white);
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content .tagline {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--secondary-ivory);
}

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

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn {
  padding: 0.8rem 2rem;
  font-size: 1.1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-block;
}

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

.btn-primary:hover {
  background: #B04600;
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-white);
  border: 2px solid var(--secondary-ivory);
}

.btn-secondary:hover {
  background: var(--secondary-ivory);
  color: var(--primary-brown);
}

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

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

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary-brown);
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

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

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

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

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

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

.feature-card p {
  color: #666;
  line-height: 1.6;
}

/* Recommended Dishes Section */
.dishes {
  padding: 4rem 0;
  background: white;
}

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

.dish-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.dish-card:hover {
  transform: scale(1.03);
}

.dish-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: var(--secondary-ivory);
  display: block;
  min-height: 200px;
}

.dish-card img {
  background-color: var(--secondary-ivory);
}

.dish-info {
  padding: 1.5rem;
  background: var(--light-gray);
}

.dish-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.dish-name {
  font-size: 1.3rem;
  color: var(--primary-brown);
}

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

.dish-description {
  color: #666;
  line-height: 1.5;
}

.dish-tag {
  display: inline-block;
  background: var(--accent-orange);
  color: white;
  padding: 0.2rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  margin-top: 0.8rem;
}

/* Contact Section */
.contact {
  padding: 4rem 0;
  background: var(--primary-brown);
  color: var(--text-white);
}

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

.contact-info h3 {
  color: var(--secondary-ivory);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.contact-item {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-item a {
  color: var(--text-white);
  text-decoration: none;
}

.contact-item a:hover {
  color: var(--secondary-ivory);
}

/* Footer */
.footer {
  background: var(--dark-brown);
  padding: 2rem 0;
  text-align: center;
  color: var(--text-gray);
}

.social-links {
  margin-bottom: 1rem;
}

.social-links a {
  color: var(--text-gray);
  font-size: 1.5rem;
  margin: 0 1rem;
  text-decoration: none;
  transition: color 0.3s;
}

.social-links a:hover {
  color: var(--secondary-ivory);
}

.footer p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    flex-wrap: wrap;
  }

  .nav-menu {
    flex-direction: column;
    gap: 0.5rem;
    order: 3;
    width: 100%;
    margin-top: 1rem;
  }

  .lang-switcher {
    margin-left: auto;
    margin-right: 0;
    order: 2;
  }

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

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    padding: 0 2rem;
  }

  .btn {
    width: 100%;
  }

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

/* Fire icon for hot/popular items */
.fire-icon {
  display: inline-block;
  color: #ff6b35;
  margin-right: 0.3rem;
  font-size: 1.1em;
  animation: flicker 1.5s ease-in-out infinite;
}

@keyframes flicker {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.15);
  }
}