/* Base styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Open+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --primary-color: #7C2D12;
  --secondary-color: #F97316;
  --light-color: #FFF7ED;
  --dark-color: #1f2937;
  --gray-color: #6b7280;
  --light-gray: #f3f4f6;
  --border-color: #e5e5e5;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--dark-color);
  line-height: 1.6;
  background-color: #f9f9f9;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style-type: none;
}

img {
  max-width: 100%;
  height: auto;
}

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

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

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--secondary-color);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.25rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

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

.btn-primary:hover {
  background-color: #632411;
}

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

.btn-secondary:hover {
  background-color: #f8f8f8;
}

/* Header styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--primary-color);
  box-shadow: var(--shadow-md);
  padding: 1rem 0;
  transition: var(--transition);
}

header.scrolled {
  padding: 0.75rem 0;
  background-color: rgba(124, 45, 18, 0.95);
  backdrop-filter: blur(5px);
}

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

.logo a {
  color: white;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: 1px;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links li a {
  color: white;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: white;
  transition: var(--transition);
}

.nav-links li a:hover::after {
  width: 100%;
}

.order-btn a {
  background-color: var(--secondary-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
}

.order-btn a:hover {
  background-color: #ea580c;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: white;
  border-radius: 3px;
  transition: var(--transition);
}

/* Hero section */
.hero-section {
  height: 100vh;
  background-image: url('https://images.unsplash.com/photo-1535007729222-21d646c80fd6?q=80&w=2000');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 1.5rem;
}

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

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

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

/* Categories navigation */
.categories-section {
  background-color: white;
  padding: 1rem 0;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 70px;
  z-index: 100;
}

.categories-container {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.5rem 0;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.categories-container::-webkit-scrollbar {
  height: 5px;
}

.categories-container::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.categories-container::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 5px;
}

.category-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 2rem;
  background-color: var(--light-gray);
  color: var(--dark-color);
  border: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  white-space: nowrap;
  transition: var(--transition);
}

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

/* Menu section */
.menu-section {
  padding: 5rem 0;
}

.menu-category {
  margin-bottom: 4rem;
}

.category-title {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.subcategory-title {
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin: 2rem 0 1rem;
}

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

.menu-item {
  background-color: white;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.menu-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.menu-item-content {
  padding: 1.25rem;
  flex: 1;
}

.menu-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.menu-item-header h4 {
  font-size: 1.125rem;
  margin-bottom: 0;
  font-weight: 600;
  color: var(--dark-color);
}

.price {
  color: var(--secondary-color);
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  white-space: nowrap;
  margin-left: 0.5rem;
}

.menu-item-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.badge {
  padding: 0.15rem 0.5rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.vegan {
  background-color: rgba(74, 222, 128, 0.1);
  color: #166534;
}

.spicy {
  background-color: rgba(248, 113, 113, 0.1);
  color: #b91c1c;
}

.new {
  background-color: rgba(96, 165, 250, 0.1);
  color: #1e40af;
}

.menu-item p {
  color: var(--gray-color);
  font-size: 0.875rem;
  line-height: 1.5;
}

.menu-item-image {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.view-more-btn {
  display: block;
  margin: 2rem auto 0;
  padding: 0.5rem 1.25rem;
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: var(--transition);
}

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

.hidden-menu-items {
  display: none;
  margin-top: 2rem;
}

.hidden-menu-items.expanded {
  display: block;
  animation: fadeIn 0.5s ease-out;
}

/* About section with parallax */
.about-section {
  padding: 5rem 0;
  background-image: url('https://images.unsplash.com/photo-1563379926898-05f4575a45d8?q=80&w=2000');
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  color: white;
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
}

.about-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.about-text p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

/* Contact section */
.contact-section {
  padding: 5rem 0;
  background-color: #f9f9f9;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.icon {
  color: var(--primary-color);
  margin-top: 0.25rem;
}

.detail h4 {
  font-size: 1.25rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.map-container {
  height: 350px;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.footer-logo p {
  opacity: 0.8;
}

.footer-links h4, .footer-social h4 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  opacity: 0.8;
  transition: var(--transition);
}

.footer-links a:hover {
  opacity: 1;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  width: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.social-icons a:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  margin-top: 2rem;
  opacity: 0.8;
  font-size: 0.875rem;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  animation: fadeIn 1s ease forwards;
  animation-delay: 0.5s;
}

.fade-in:nth-child(2) {
  animation-delay: 0.7s;
}

.fade-in:nth-child(3) {
  animation-delay: 0.9s;
}

/* Responsive styles */
@media screen and (max-width: 1024px) {
  .container {
    padding: 0 1rem;
  }

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

@media screen and (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    width: 75%;
    height: 100vh;
    background-color: var(--primary-color);
    flex-direction: column;
    gap: 0;
    padding: 5rem 2rem;
    transition: all 0.4s ease-in-out;
    z-index: 999;
  }

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

  .nav-links li {
    width: 100%;
  }

  .nav-links li a {
    display: block;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .order-btn {
    margin-top: 1rem;
  }
  
  .order-btn a {
    display: inline-block;
    width: auto;
  }

  .mobile-menu-toggle {
    display: flex;
    z-index: 1000;
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .menu-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
  }
  
  .map-container {
    margin-top: 2rem;
  }
}

@media screen and (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .about-section {
    background-attachment: scroll;
  }
}