/* ========== RESET & BASE ========== */
/* ========== PRELOADER ANIMATION ========== */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fdf8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  opacity: 1;
  visibility: visible;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  text-align: center;
  animation: gentleScale 6s ease-out;
}

.preloader-logo {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 4px;
  background: linear-gradient(135deg, #c16a2e, #9b4a1a);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  margin-bottom: 0.2rem;
}

.preloader-sub {
  font-size: 1.2rem;
  font-weight: 600;
  color: #b45a1a;
  letter-spacing: 2px;
}

.preloader-tagline {
  font-size: 0.8rem;
  color: #7f6246;
  margin-top: 0.5rem;
  opacity: 0.7;
}

@keyframes gentleScale {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  position: relative;
  background-color: #fdf8f0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(210, 180, 140, 0.02) 0px,
    rgba(210, 180, 140, 0.02) 2px,
    transparent 2px,
    transparent 6px
  );
  color: #2c241e;
  line-height: 1.4;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(circle at 50% 30%, rgba(0,0,0,0) 0%, rgba(0,0,0,0.02) 100%);
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('images/regal.png');
  background-repeat: no-repeat;
  background-position: center 40%;
  background-size: 60% auto;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.app {
  position: relative;
  z-index: 1;
}

/* ========== HEADER ========== */
.header {
  background: rgba(253, 248, 240, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e9dbc9;
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0.8rem 1rem;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 6px 0;
  z-index: 30;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #b45a1a;
  border-radius: 2px;
  transition: 0.2s;
}

.brand {
  flex: 1;
  text-align: center;
  min-width: 0;
}

.resto-name {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  background: linear-gradient(135deg, #c16a2e, #9b4a1a);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.resto-tagline {
  font-size: 0.7rem;
  color: #6b4c34;
}

/* Language dropdown */
.lang-selector {
  position: relative;
  flex-shrink: 0;
}

.lang-current {
  background: #f2e4d8;
  border: none;
  border-radius: 40px;
  padding: 0.3rem 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.8rem;
  color: #5a3e28;
  transition: 0.1s;
}

.lang-current:hover {
  background: #e6d5c4;
}

.flag-icon {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.arrow {
  font-size: 0.7rem;
  margin-left: 0.2rem;
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  border: 1px solid #eedbcb;
  z-index: 100;
  display: none;
  flex-direction: column;
  min-width: 140px;
  overflow-y: auto;
  max-height: 300px;
}

.lang-dropdown.open {
  display: flex;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  text-align: left;
  transition: background 0.1s;
  color: #2c241e;
}

.lang-option:hover {
  background: #f7ede3;
}

.lang-option .flag-icon {
  width: 22px;
  height: 16px;
}

/* ========== DRAWER ========== */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(3px);
  z-index: 40;
  visibility: hidden;
  opacity: 0;
  transition: 0.25s ease;
}

.drawer-overlay.open {
  visibility: visible;
  opacity: 1;
}

.drawer {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100%;
  background: #fffaf5;
  box-shadow: 4px 0 20px rgba(0,0,0,0.08);
  z-index: 50;
  transition: left 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  display: flex;
  flex-direction: column;
  border-right: 1px solid #eedbcb;
}

.drawer.open {
  left: 0;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1rem;
  border-bottom: 1px solid #eedbcb;
  background: #fef3ea;
}

.drawer-logo {
  font-weight: 800;
  font-size: 1.2rem;
  color: #b45a1a;
}

.close-drawer {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #7b5a3e;
}

.categories-list {
  list-style: none;
  padding: 1rem 0;
  overflow-y: auto;
  flex: 1;
}

.categories-list li {
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  color: #4a3627;
  cursor: pointer;
  transition: background 0.1s;
  border-left: 3px solid transparent;
}

.categories-list li:hover {
  background: #f7ede3;
}

.categories-list li.active {
  background: #f2e4d8;
  border-left-color: #c16a2e;
  color: #b45a1a;
  font-weight: 600;
}

/* ========== MAIN CONTENT ========== */
.main-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

.category-header {
  margin-bottom: 1.5rem;
}

.category-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  border-left: 5px solid #c16a2e;
  padding-left: 1rem;
  color: #2f241d;
}


.items-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  transition: opacity 0.3s ease-in-out;
}

.items-grid.fade-out {
  opacity: 0;
}

@media (min-width: 560px) {
  .items-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .items-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.menu-card {
  background: white;
  border-radius: 20px;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02), 0 1px 2px rgba(0,0,0,0.03);
  border: 1px solid #f2e6dc;
  transition: 0.1s ease;
}

.menu-card:hover {
  border-color: #dbbc9b;
  transform: translateY(-2px);
}

.card-info {
  flex: 1;
}

.item-name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
}

.item-name span {
  font-weight: 600;
  background: #fef2e8;
  padding: 0.1rem 0.5rem;
  border-radius: 30px;
  font-size: 0.75rem;
  color: #b45a1a;
}

.item-desc {
  font-size: 0.75rem;
  color: #78624e;
  line-height: 1.35;
}

.price-large {
  font-weight: 800;
  font-size: 1.1rem;
  color: #b45a1a;
  background: #fbf3ec;
  padding: 0.2rem 0.6rem;
  border-radius: 30px;
  white-space: nowrap;
}

/* ========== FOOTER ========== */
.footer {
  margin-top: 2rem;
  padding: 1.5rem 1rem;
  background: rgba(253, 248, 240, 0.96);
  border-top: 1px solid #e9dbc9;
}

.footer .container {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  text-align: center;
}

.footer-social {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #7f6246;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.4rem 0.8rem;
  border-radius: 40px;
  background: rgba(0,0,0,0.02);
  transition: all 0.2s ease;
}

.social-link i {
  font-size: 1.1rem;
}

.social-link:active {
  background: rgba(0,0,0,0.05);
  transform: scale(0.97);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  width: 100%;
  max-width: 280px;
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: white;
  border: 1px solid #e2cfbd;
  border-radius: 60px;
  padding: 0.7rem 1rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
  min-height: 48px;
}

.contact-link i {
  font-size: 1.2rem;
}

.external-icon {
  font-size: 0.75rem;
  opacity: 0.6;
  margin-left: 0.2rem;
}

.contact-link.phone {
  background: #f0faf4;
  border-color: #25D366;
  color: #075e54;
  animation: gentlePulse 1.8s infinite ease-in-out;
}

@keyframes gentlePulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.3); }
  70% { box-shadow: 0 0 0 8px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.contact-link.phone:active {
  background: #dff0e6;
  transform: scale(0.97);
  animation: none;
}

.contact-link.address {
  background: #f5f8ff;
  border-color: #4285f4;
  color: #1a73e8;
}

.contact-link.address:active {
  background: #e8f0fe;
  transform: scale(0.97);
}

.contact-link:active {
  transition: transform 0.05s;
}

.footer-copyright {
  font-size: 0.7rem;
  color: #a08268;
  margin-top: 0.3rem;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  .footer-contact {
    flex-direction: row;
    max-width: none;
    gap: 1rem;
    width: auto;
  }
  .contact-link {
    padding: 0.5rem 1.2rem;
  }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 480px) {
  .lang-current { padding: 0.2rem 0.6rem; font-size: 0.7rem; }
  .flag-icon { width: 18px; height: 12px; }
  .lang-dropdown { min-width: 120px; }
  .lang-option { padding: 0.5rem 0.8rem; font-size: 0.75rem; }
  .category-header h2 { font-size: 1.4rem; }
  .menu-card { padding: 0.8rem; }
  .resto-name { font-size: 1rem; }
  .resto-tagline { font-size: 0.55rem; }
  .contact-link { font-size: 0.85rem; padding: 0.6rem 0.8rem; }
  .social-link { padding: 0.3rem 0.6rem; font-size: 0.8rem; }
}