:root {
  --bg: #F5E6D3;
  --card: #FFFBF7;
  --accent: #D4843C;
  --accent-dark: #8B6F47;
  --muted: #5C4A3D;
  --text: #2C1810;
  --green: #6B8E6F;
  --rounded: 12px;
  --max-width: 1200px;
  --handwritten: "Pacifico", cursive;
  --ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--ui);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  object-fit: cover;
}

.site-title {
  font-family: var(--handwritten);
  font-size: 32px;
  margin: 0;
  color: var(--accent-dark);
}

.main-nav ul {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.main-nav a:hover {
  color: var(--accent);
}

.social-links {
  display: flex;
  gap: 8px;
}

.social {
  background: var(--accent);
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: white;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(212, 132, 60, 0.2);
  transition: background 0.3s;
}

.social:hover {
  background: var(--accent-dark);
}

.section {
  padding: 40px 0;
}

.section-title {
  font-family: var(--handwritten);
  font-size: 28px;
  margin: 0 0 28px;
  color: var(--accent-dark);
}

.back-link {
  display: inline-block;
  margin-bottom: 20px;
}

.back-link a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.back-link a:hover {
  color: var(--accent-dark);
}

.menu-filters {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 0 0 28px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 18px;
  border: 2px solid var(--accent);
  background: transparent;
  color: var(--accent);
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
  font-size: 14px;
}

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

.filter-btn.active {
  background: var(--accent);
  color: white;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.menu-card {
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s;
}

.menu-card:hover {
  transform: translateY(-4px);
}

.menu-card.hidden {
  display: none;
}

.card-image-placeholder {
  width: 100%;
  height: 100px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}

.card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 16px;
}

.card-body h4 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--accent-dark);
  font-weight: 600;
}

.menu-description {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.menu-price {
  display: block;
  color: var(--accent);
  font-size: 16px;
  font-weight: 600;
}

.site-footer {
  margin-top: 40px;
  padding: 28px 0;
  background: linear-gradient(180deg, var(--accent-dark) 0%, #6B5A47 100%);
  color: white;
}

.footer-inner {
  display: flex;
  gap: 24px;
  justify-content: space-between;
}

.footer-col h4 {
  margin: 0 0 8px;
  font-size: 16px;
  color: white;
}

.footer-col p {
  margin: 8px 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}

.footer-social {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-social li {
  margin-bottom: 6px;
}

.footer-social a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-social a:hover {
  color: var(--accent);
}

.copyright {
  text-align: center;
  padding: 14px 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Menu Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  gap: 5px;
}

.hamburger span {
  width: 24px;
  height: 3px;
  background: var(--muted);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* Mobile Menu */
.mobile-menu {
  position: absolute;
  top: 100%;
  right: 0;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  background: var(--card);
  border-radius: 12px 0px 12px 5px;;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  pointer-events: none;
  display: flex;
  z-index: 1000;
  width: 220px;
  min-width: 220px;
}

.mobile-menu.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-menu a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  padding: 8px;
  transition: color 0.3s;
  animation: slideIn 0.4s ease forwards;
}

.mobile-menu a:nth-child(1) {
  animation-delay: 0.05s;
}

.mobile-menu a:nth-child(2) {
  animation-delay: 0.1s;
}

.mobile-menu a:nth-child(3) {
  animation-delay: 0.15s;
}

.mobile-menu a:hover {
  color: var(--accent);
}

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

.mobile-social {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid #E8D5C4;
  animation: slideIn 0.4s ease 0.2s forwards;
  opacity: 0;
}

.mobile-menu.show .mobile-social {
  animation: slideIn 0.4s ease 0.2s forwards;
  opacity: 1;
}

/* Menu Backdrop */
.menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 999;
}

.menu-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

/* Menu Images */
.menu-images {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.menu-image {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  display: block;
  background: #f3e7da;
}

/* Responsive */
@media (max-width: 900px) {
  .menu-images {
    grid-template-columns: 1fr;
  }

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

  .footer-inner {
    flex-direction: column;
    gap: 18px;
  }
}

@media (max-width: 600px) {
  .hamburger {
    display: flex;
    order: 3;
  }

  .main-nav ul {
    display: none;
  }

  .social-links {
    display: none;
  }

  .filter-btn {
    padding: 8px 14px;
    font-size: 12px;
  }

  .section-title {
    font-size: 24px;
  }

  .menu-images {
    flex-direction: column;
  }

  .menu-image {
    max-width: 100%;
  }
}
