@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --color-gold: #E8A93B;
  --color-gold-dark: #C98F26;
  --color-gold-light: #F4C868;
  --color-ink: #14110F;
  --color-ink-soft: #211C18;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

body {
  font-family: var(--font-body);
  color: var(--color-ink);
}

h1, h2, h3, .navbar-brand, .brand-font {
  font-family: var(--font-display);
}

.btn-warning, .bg-warning {
  background-color: var(--color-gold) !important;
  border-color: var(--color-gold) !important;
  color: var(--color-ink) !important;
}

.btn-warning:hover, .btn-warning:focus {
  background-color: var(--color-gold-dark) !important;
  border-color: var(--color-gold-dark) !important;
  color: var(--color-ink) !important;
}

.text-warning {
  color: var(--color-gold) !important;
}

.navbar.bg-dark, footer.bg-dark {
  background-color: var(--color-ink) !important;
}

.navbar-brand {
  letter-spacing: 0.5px;
}

/* ===== Hero Section ===== */
.hero-section {
  min-height: 92vh;
  position: relative;
  isolation: isolate;
  background: url('https://images.unsplash.com/photo-1600688640154-9619e002df30?auto=format&fit=crop&w=1900&q=85');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(20,17,15,0.82) 0%, rgba(20,17,15,0.45) 45%, rgba(20,17,15,0.90) 100%),
    radial-gradient(ellipse at center, transparent 30%, rgba(20,17,15,0.55) 100%);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-gold-light);
}

.hero-eyebrow::before {
  content: '';
  width: 30px;
  height: 2px;
  background: var(--color-gold);
  display: inline-block;
}

.hero-section h1 {
  font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.hero-section .lead {
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
  max-width: 560px;
}

.btn-hero-outline {
  border: 1.5px solid rgba(255,255,255,0.55);
  color: #fff;
  background: transparent;
  transition: all 0.2s ease;
}

.btn-hero-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.08);
  color: #fff;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-animate {
  opacity: 0;
  animation: fadeInUp 0.7s ease forwards;
}

.hero-animate.delay-1 { animation-delay: 0.1s; }
.hero-animate.delay-2 { animation-delay: 0.25s; }
.hero-animate.delay-3 { animation-delay: 0.4s; }

.rotate-word {
  display: inline-block;
  color: var(--color-gold);
  font-weight: 700;
  font-style: italic;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.rotate-word.swap {
  opacity: 0;
  transform: translateY(6px);
}

.hero-search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 560px;
  background: rgba(255,255,255,0.95);
  border-radius: 10px;
  padding: 6px 6px 6px 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.hero-search-form i { color: #999; }

.hero-search-form input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.95rem;
  padding: 8px 4px;
}

.hero-search-form input::placeholder { color: #aaa; }

.hero-search-form button { border-radius: 8px; }

.hero-search-wrapper {
  position: relative;
  z-index: 30;
  max-width: 560px;
}

.hero-search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.2);
  overflow-y: auto;
  max-height: 260px;
  z-index: 20;
  text-align: left;
}

.hero-search-suggestion-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  cursor: pointer;
  color: var(--color-ink);
  font-size: 0.9rem;
  transition: background 0.15s ease;
}

.hero-search-suggestion-item:hover { background: rgba(232,169,59,0.1); }
.hero-search-suggestion-item i { color: #999; font-size: 0.85rem; }
.hero-search-suggestion-item .suggestion-price { margin-left: auto; color: var(--color-gold-dark); font-weight: 600; }

@media (max-width: 767px) {
  .hero-search-form { flex-wrap: wrap; border-radius: 10px; padding: 12px; }
  .hero-search-form input { width: 100%; order: 1; }
  .hero-search-form button { order: 2; width: 100%; margin-top: 8px; }
}

.feature-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.menu-card {
  border: none;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  position: relative;
}

.menu-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.12);
}

.menu-card img { height: 180px; object-fit: cover; }

.category-btn {
  cursor: pointer;
  border-radius: 8px !important;
  padding: 8px 20px;
  font-weight: 500;
  font-size: 0.92rem;
  border: 1.5px solid #e5e0d8 !important;
  background: #fff !important;
  color: var(--color-ink) !important;
  transition: all 0.2s ease;
}

.category-btn:hover {
  border-color: var(--color-gold) !important;
  background: rgba(232,169,59,0.08) !important;
}

.category-btn.active {
  background: var(--color-gold) !important;
  border-color: var(--color-gold) !important;
  color: var(--color-ink) !important;
  font-weight: 600;
}

.floating-cart-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  z-index: 1030;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes cartPulse {
  0% { transform: scale(1); }
  30% { transform: scale(1.25); }
  60% { transform: scale(0.92); }
  100% { transform: scale(1); }
}

.floating-cart-btn.pulse {
  animation: cartPulse 0.4s ease;
}

.cart-item-row { border-bottom: 1px solid #eee; padding: 12px 0; }

.qty-btn { width: 28px; height: 28px; padding: 0; line-height: 1; }
.qty-stepper { display: inline-flex; }

.status-tracker { position: relative; }

.status-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  color: #bbb;
  font-size: 0.8rem;
  font-weight: 600;
  position: relative;
}

.status-step i {
  font-size: 1.4rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f1f1f1;
  color: #bbb;
}

.status-step.active i, .status-step.completed i { background: var(--color-gold); color: var(--color-ink); }
.status-step.active, .status-step.completed { color: var(--color-ink); }

.order-history-card { border: none; border-radius: 14px; box-shadow: 0 3px 12px rgba(0,0,0,0.06); }

.status-badge { font-size: 0.75rem; padding: 5px 12px; border-radius: 6px; font-weight: 600; }

.status-Received { background: #e3f2fd; color: #1565c0; }
.status-Preparing { background: #fff3e0; color: #e65100; }
.status-Ready { background: #e8f5e9; color: #2e7d32; }
.status-Delivered { background: #f1f8e9; color: #558b2f; }
.status-Cancelled { background: #ffebee; color: #c62828; }

.admin-sidebar { width: 220px; min-height: calc(100vh - 56px); }

.admin-nav-btn { color: #ccc; border-radius: 8px; padding: 10px 14px; font-weight: 500; text-align: left; }
.admin-nav-btn:hover { background: rgba(255,255,255,0.08); color: #fff; }

@media (max-width: 768px) {
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; min-height: auto; }
  .admin-sidebar .nav.flex-column { flex-direction: row !important; flex-wrap: wrap; gap: 8px; }
  .admin-nav-btn { flex: 1 1 auto; text-align: center; white-space: nowrap; }
}

.admin-nav-btn.active { background: var(--color-gold); color: var(--color-ink); font-weight: 600; }

.admin-status-select { min-width: 130px; }

.category-quick-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 110px;
  text-decoration: none;
  color: var(--color-ink);
  transition: transform 0.2s ease;
}

.category-quick-link:hover { transform: translateY(-4px); color: var(--color-ink); }
.category-quick-link span { font-weight: 500; font-size: 0.9rem; text-align: center; }

.icon-circle-lg {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(232,169,59,0.12);
  color: var(--color-gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.category-quick-link:hover .icon-circle-lg { background: var(--color-gold); color: var(--color-ink); }

.outlet-card { cursor: pointer; }

.how-it-works-step { position: relative; padding: 20px; }

.step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-ink);
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  margin: 0 auto 12px;
}

.footer-link { color: rgba(255,255,255,0.75); text-decoration: none; transition: color 0.2s ease; }
.footer-link:hover { color: var(--color-gold); }

.outlet-banner {
  background: rgba(232,169,59,0.08);
  border: 1px solid rgba(232,169,59,0.25);
  border-radius: 14px;
}

.auth-split { display: flex; min-height: 100vh; }

.auth-branding {
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 60px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(20,17,15,0.88) 0%, rgba(20,17,15,0.80) 100%),
    url('https://images.unsplash.com/photo-1600688640154-9619e002df30?auto=format&fit=crop&w=1200&q=80');
  background-size: cover;
  background-position: center;
}

.auth-branding-content { max-width: 420px; }
.auth-branding-content h1 { font-size: 2.5rem; }

.auth-feature-list {
  list-style: none;
  padding: 0;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-feature-list li { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.85); font-weight: 500; }
.auth-feature-list i { color: var(--color-gold); font-size: 1.1rem; }

.auth-form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: #fff;
}

.auth-form-wrapper { max-width: 400px; width: 100%; }

.navbar-logo { height: 38px; width: auto; }
.footer-logo { height: 28px; width: auto; }
.auth-branding-logo { width: 90px; height: auto; }
.mobile-logo { height: 32px; width: auto; }

.map-embed-wrapper { border-radius: 14px; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,0.1); }

.delivery-time-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(20,17,15,0.82);
  color: #fff;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  backdrop-filter: blur(3px);
}

.veg-indicator {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 1.5px solid;
  border-radius: 3px;
  position: relative;
  vertical-align: middle;
  margin-right: 4px;
}

.veg-indicator::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.veg-indicator.veg { border-color: #2e7d32; }
.veg-indicator.veg::after { background: #2e7d32; }
.veg-indicator.non-veg { border-color: #c62828; }
.veg-indicator.non-veg::after { background: #c62828; }

.bestseller-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--color-gold);
  color: var(--color-ink);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Combo Meal Cards */
.combo-card {
  border: 2px solid var(--color-gold);
}

.combo-savings-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #1F7A3D;
  color: #fff;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.combo-original-price {
  text-decoration: line-through;
  color: #999;
  font-size: 0.85rem;
  margin-right: 6px;
}

.combo-items-list {
  font-size: 0.78rem;
  color: #888;
}

.password-field-wrapper .form-control.is-invalid,
.password-field-wrapper .form-control.is-valid {
  background-image: none !important;
}

/* ===== Table reservation ===== */
.reserve-hero { background: var(--color-ink); }
.date-chip {
  border: 1.5px solid #e3ded6; background: #fff; border-radius: 14px;
  padding: 8px 14px; min-width: 74px; text-align: center; cursor: pointer;
  transition: all 0.15s ease; line-height: 1.2;
}
.date-chip small { display: block; color: #8a8178; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.5px; }
.date-chip strong { font-size: 1.05rem; }
.date-chip:hover { border-color: var(--color-gold); }
.date-chip.active { background: var(--color-ink); border-color: var(--color-ink); color: #fff; }
.date-chip.active small { color: var(--color-gold-light); }

.slot-card {
  border: 1.5px solid #e3ded6; border-radius: 14px; background: #fff;
  padding: 14px 12px; text-align: center; cursor: pointer; width: 100%;
  transition: all 0.15s ease;
}
.slot-card .slot-time { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.slot-card .slot-free { font-size: 0.78rem; color: #2e7d32; font-weight: 600; }
.slot-card.low .slot-free { color: #e65100; }
.slot-card:hover:not(:disabled) { border-color: var(--color-gold); transform: translateY(-2px); }
.slot-card.active { border-color: var(--color-gold); background: #fff8e8; box-shadow: 0 0 0 3px rgba(232,169,59,0.25); }
.slot-card:disabled { background: #f6f4f0; color: #aaa; cursor: not-allowed; }
.slot-card:disabled .slot-free { color: #b3261e; }

.guest-stepper { display: inline-flex; align-items: center; gap: 14px; }
.guest-stepper button { width: 38px; height: 38px; border-radius: 50%; padding: 0; line-height: 1; }
.guest-stepper .guest-count { font-size: 1.4rem; font-weight: 700; min-width: 28px; text-align: center; }

.hold-timer { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; letter-spacing: 1px; }
.hold-timer.urgent { color: #b3261e; }
.hold-progress { height: 6px; border-radius: 6px; background: #eee; overflow: hidden; }
.hold-progress > div { height: 100%; background: var(--color-gold); transition: width 0.25s linear; }

.booking-card { border: none; border-radius: 14px; box-shadow: 0 3px 12px rgba(0,0,0,0.06); }
.bk-confirmed { background: #e8f5e9; color: #2e7d32; }
.bk-held { background: #fff3e0; color: #e65100; }
.bk-cancelled { background: #ffebee; color: #c62828; }
.bk-expired { background: #eceff1; color: #546e7a; }
.policy-list li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 0.9rem; }

#reserveTabs .nav-link { color: var(--color-ink); background: #f3f0ea; font-weight: 600; border-radius: 8px; padding: 8px 20px; }
#reserveTabs .nav-link.active { background: var(--color-ink); color: #fff; }

/* ===== Admin: reservations grid ===== */
.res-stat { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 14px 16px; }
.res-stat-icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(212,175,55,0.15); color: #9a7b0a; display: grid; place-items: center; font-size: 1.2rem; }
.res-stat-value { font-size: 1.4rem; font-weight: 700; line-height: 1.1; }
.res-stat-label { font-size: 0.8rem; color: #777; }
.res-grid { min-width: 640px; background: #fff; }
.res-grid th { font-weight: 600; font-size: 0.85rem; }
.res-table-head { white-space: nowrap; min-width: 92px; }
.res-cell { height: 58px; min-width: 104px; padding: 4px 8px !important; font-size: 0.8rem; }
.res-cell[data-res-id] { cursor: pointer; }
.res-cell[data-res-id]:hover { filter: brightness(0.96); }
.res-cell-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 110px; }
.res-cell-sub { color: #555; }
.res-free { --bs-table-bg: #f6fbf6; background: #f6fbf6; }
.res-held { --bs-table-bg: #fff4d6; background: #fff4d6; }
.res-confirmed { --bs-table-bg: #d9eefc; background: #d9eefc; }
.res-seated { --bs-table-bg: #d6f2de; background: #d6f2de; }
.res-noshow { --bs-table-bg: #eee; background: #eee; color: #777; }
.res-off { --bs-table-bg: #f3f3f3; background: repeating-linear-gradient(45deg, #f3f3f3, #f3f3f3 6px, #eaeaea 6px, #eaeaea 12px); }
.res-dot { display: inline-block; width: 12px; height: 12px; border-radius: 3px; border: 1px solid #ccc; vertical-align: -1px; margin-right: 4px; }
.res-table-card { background: #fff; border: 1px solid #eee; border-radius: 10px; padding: 10px 12px; }

/* ===== Legal pages ===== */
.legal-page { max-width: 780px; }
.legal-page h2 { color: var(--color-ink); }
.legal-page li { margin-bottom: 0.4rem; }

/* Keep the footer at the bottom of the window on short pages */
body.flex-page { min-height: 100vh; display: flex; flex-direction: column; }
body.flex-page > footer { margin-top: auto; }
