/* La Fonda Bar & Grill — Main Responsive Stylesheet */
* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-serif);
  background-color: var(--sand);
  color: var(--dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration:none; color:inherit; }
button { cursor:pointer; font-family:var(--font-sans); border:none; outline:none; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* Sticky Site Header */
header.site-header {
  position: sticky; top:0; z-index:100;
  background: var(--dark);
  color: var(--white);
  border-bottom: 3px solid var(--primary);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.header-inner {
  display: flex; align-items:center; justify-content:space-between;
  padding: 12px 20px; max-width: 1140px; margin: 0 auto; gap: 16px;
}
.brand-box {
  display: flex; align-items: center; gap: 12px;
}
.brand-title {
  font-family: var(--font-heading);
  font-size: 1.85rem; letter-spacing: 0.05em;
  color: var(--gold); line-height: 1;
}
.brand-sub {
  display: block; font-family: var(--font-sans);
  font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: #ddd; margin-top: 2px;
}
nav.main-nav {
  display: flex; gap: 20px; align-items: center;
}
nav.main-nav a {
  font-family: var(--font-sans); font-size: 0.95rem; font-weight: 500;
  color: #eee; transition: color 0.2s; padding: 4px 0;
}
nav.main-nav a:hover, nav.main-nav a.active {
  color: var(--gold); border-bottom: 2px solid var(--gold);
}
.header-actions {
  display: flex; align-items: center; gap: 12px;
}
.lang-toggle {
  display: flex; background: rgba(255,255,255,0.12);
  border-radius: 20px; overflow: hidden; border: 1px solid rgba(255,255,255,0.2);
}
.lang-toggle button {
  background: transparent; color: #fff; font-size: 0.78rem; font-weight: 700;
  padding: 6px 12px; transition: all 0.2s;
}
.lang-toggle button.active {
  background: var(--gold); color: var(--dark);
}
.cart-trigger {
  position: relative; background: var(--primary); color: #fff;
  font-weight: 700; font-size: 0.9rem; padding: 10px 18px; border-radius: 25px;
  display: flex; align-items: center; gap: 8px; transition: background 0.2s;
}
.cart-trigger:hover { background: var(--primary-dark); }
.cart-badge {
  background: var(--gold); color: var(--dark); font-size: 0.75rem; font-weight: 800;
  width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
}

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(rgba(31,24,21,0.85), rgba(31,24,21,0.88)), url('../images/photo-restaurant.jpg') center/cover no-repeat;
  color: var(--white);
  padding: 80px 20px 90px;
  text-align: center;
}
.hero-script {
  font-family: 'Great Vibes', cursive;
  font-size: 2.3rem; color: var(--gold); margin-bottom: 8px;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 7vw, 4.8rem);
  line-height: 1.05; letter-spacing: 0.04em;
  color: var(--white); max-width: 860px; margin: 0 auto 16px;
}
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-desc {
  max-width: 650px; margin: 0 auto 28px; font-size: 1.15rem; color: #ddd;
}
.hero-ctas {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px;
}
.btn {
  font-family: var(--font-sans); font-size: 1.05rem; font-weight: 700;
  padding: 14px 32px; border-radius: 30px; display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.2s ease;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--dark); }
.btn-gold:hover { background: #d4a339; transform: translateY(-2px); }
.btn-ghost { background: transparent; border: 2px solid #fff; color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--dark); }
.hours-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(232, 184, 74, 0.15); border: 1px solid var(--gold);
  color: var(--gold); font-family: var(--font-sans); font-size: 0.9rem;
  padding: 8px 20px; border-radius: 20px; margin-top: 10px;
}

/* Value Props / Anti-Commission Strip */
.value-strip {
  background: var(--gold); color: var(--dark); padding: 18px 20px;
}
.value-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px; text-align: center;
}
.value-item h4 {
  font-family: var(--font-heading); font-size: 1.3rem; margin-bottom: 2px;
}
.value-item p { font-size: 0.9rem; font-family: var(--font-sans); opacity: 0.9; }

/* Section Styling */
.section { padding: 65px 0; }
.section-kicker {
  font-family: var(--font-sans); font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--primary); text-align: center;
  margin-bottom: 6px;
}
.section-title {
  font-family: var(--font-heading); font-size: 2.8rem; letter-spacing: 0.03em;
  text-align: center; color: var(--dark); margin-bottom: 35px;
}

/* Category Filter Tabs */
.menu-tabs {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 35px;
}
.tab-btn {
  background: #fff; border: 1px solid var(--border); color: var(--dark);
  font-family: var(--font-sans); font-weight: 700; font-size: 0.92rem;
  padding: 10px 22px; border-radius: 25px; transition: all 0.2s;
}
.tab-btn:hover, .tab-btn.active {
  background: var(--primary); color: #fff; border-color: var(--primary);
}

/* Menu Grid */
.menu-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.menu-card {
  background: #fff; border-radius: 8px; border: 1px solid var(--border);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.menu-card:hover {
  transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}
.menu-thumb {
  height: 190px; width: 100%; object-fit: cover; background: #e8e0d5;
}
.menu-info {
  padding: 18px; display: flex; flex-direction: column; flex-grow: 1;
}
.menu-top {
  display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px;
}
.menu-name {
  font-family: var(--font-heading); font-size: 1.45rem; letter-spacing: 0.02em; color: var(--dark);
}
.menu-price {
  font-family: var(--font-heading); font-size: 1.4rem; color: var(--primary);
}
.menu-desc {
  font-size: 0.92rem; color: var(--muted); margin-bottom: 16px; flex-grow: 1;
}
.menu-actions {
  display: flex; justify-content: space-between; align-items: center; margin-top: auto;
}
.add-btn {
  background: var(--primary); color: #fff; font-weight: 700; font-size: 0.9rem;
  padding: 8px 18px; border-radius: 20px; transition: background 0.2s;
  display: flex; align-items: center; gap: 6px;
}
.add-btn:hover { background: var(--primary-dark); }
.badge-popular {
  background: rgba(232, 184, 74, 0.2); color: #9c6c0b; font-size: 0.75rem; font-weight: 700;
  padding: 4px 10px; border-radius: 12px; font-family: var(--font-sans);
}

/* Cart Drawer Sidebar */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.65);
  z-index: 200; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.cart-overlay.active { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; right: -420px; width: 100%; max-width: 400px; height: 100%;
  background: #fff; z-index: 201; box-shadow: -4px 0 25px rgba(0,0,0,0.25);
  display: flex; flex-direction: column; transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.cart-drawer.active { right: 0; }
.drawer-head {
  padding: 18px 20px; background: var(--dark); color: #fff;
  display: flex; align-items: center; justify-content: space-between;
}
.drawer-head h3 {
  font-family: var(--font-heading); font-size: 1.5rem; color: var(--gold);
}
.close-drawer {
  background: transparent; color: #fff; font-size: 1.4rem; padding: 4px;
}
.drawer-body {
  padding: 20px; flex-grow: 1; overflow-y: auto;
}
.cart-empty {
  text-align: center; color: var(--muted); padding: 40px 0; font-family: var(--font-sans);
}
.cart-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.cart-item-title { font-weight: 600; font-size: 0.95rem; margin-bottom: 2px; }
.cart-item-price { color: var(--primary); font-weight: 700; font-size: 0.9rem; }
.cart-qty-ctrl {
  display: flex; align-items: center; gap: 8px;
}
.qty-btn {
  width: 26px; height: 26px; border-radius: 50%; background: #eee;
  font-weight: bold; display: flex; align-items: center; justify-content: center;
}
.qty-btn:hover { background: var(--gold); color: #000; }
.drawer-foot {
  padding: 18px 20px; background: var(--sand); border-top: 1px solid var(--border);
}
.summary-line {
  display: flex; justify-content: space-between; margin-bottom: 6px; font-family: var(--font-sans); font-size: 0.92rem;
}
.summary-line.total {
  font-size: 1.25rem; font-weight: 800; border-top: 1px solid var(--border); padding-top: 8px; margin-top: 8px;
  font-family: var(--font-heading); color: var(--primary);
}
.checkout-btn {
  width: 100%; background: var(--primary); color: #fff; font-weight: 700;
  padding: 14px; border-radius: 30px; font-size: 1.05rem; margin-top: 12px;
}
.checkout-btn:hover { background: var(--primary-dark); }

/* Owner Dashboard */
.dash-card {
  background: #fff; border-radius: 8px; border: 1px solid var(--border); padding: 22px;
  margin-bottom: 20px; box-shadow: var(--shadow);
}
.dash-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px;
  border-bottom: 1px solid var(--border); padding-bottom: 12px;
}
.status-pill {
  font-family: var(--font-sans); font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  padding: 5px 12px; border-radius: 12px;
}
.status-new { background: #e3f2fd; color: #1565c0; }
.status-prep { background: #fff3e0; color: #e65100; }
.status-ready { background: #e8f5e9; color: #2e7d32; }

/* Footer */
footer.site-foot {
  background: var(--dark); color: #bbb; padding: 45px 0 25px;
  border-top: 3px solid var(--gold); font-family: var(--font-sans);
}
.foot-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px;
  margin-bottom: 30px;
}
.foot-col h4 {
  font-family: var(--font-heading); font-size: 1.35rem; color: var(--gold); margin-bottom: 14px;
}
.foot-col p, .foot-col a {
  font-size: 0.92rem; line-height: 1.7; color: #ccc;
}
.demo-badge {
  text-align: center; border-top: 1px solid #333; padding-top: 20px;
  font-size: 0.85rem; color: #888;
}
.demo-badge a { color: var(--gold); font-weight: 700; }

@media (max-width: 768px) {
  nav.main-nav { display: none; }
  .hero { padding: 50px 20px; }
  .hero h1 { font-size: 2.8rem; }
}
