/* ============================================================
   Maal & Chooz Café — order-directly.css
   Matches existing site: cream, deep brown, terracotta, gold
   Playfair Display + DM Sans
   ============================================================ */

:root {
  --cream:      #faf6ef;
  --warm-white: #fff8f0;
  --brown:      #2c1a0e;
  --brown-mid:  #4a2c1a;
  --brown-light:#7a4a2a;
  --terracotta: #c4532a;
  --gold:       #d4941a;
  --zomato-red: #e23744;
  --wa-green:   #25d366;
  --text-muted: rgba(44,26,14,0.55);
  --border:     rgba(44,26,14,0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  { font-family: 'DM Sans', sans-serif; background: var(--cream); color: var(--brown); overflow-x: hidden; line-height: 1.6; }
img   { max-width: 100%; display: block; }
a     { text-decoration: none; color: inherit; }
em    { font-style: italic; color: var(--terracotta); }

/* ══ NAV (mirrors styles.css exactly) ══════════════════════ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 48px;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}
#navbar.scrolled {
  background: rgba(250,246,239,0.97);
  box-shadow: 0 2px 20px rgba(44,26,14,0.08);
  padding: 10px 48px;
  backdrop-filter: blur(10px);
}
.nav-logo img { height: 72px; width: auto; object-fit: contain; transition: height 0.3s; }
#navbar.scrolled .nav-logo img { height: 54px; }

.nav-links { display: flex; gap: 24px; list-style: none; align-items: center; }
.nav-links a {
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.05em;
  color: var(--brown); position: relative; transition: color 0.2s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1.5px; background: var(--terracotta); transition: width 0.3s;
}
.nav-links a:hover { color: var(--terracotta); }
.nav-links a:hover::after { width: 100%; }

.nav-direct-order-link {
  background: var(--terracotta) !important;
  color: #fff !important;
  padding: 8px 16px !important;
  border-radius: 100px !important;
  font-weight: 700 !important;
  font-size: 0.78rem !important;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s !important;
}
.nav-direct-order-link::after { display: none !important; }
.nav-direct-order-link:hover { background: #a8421e !important; transform: translateY(-1px) !important; color: #fff !important; }
.nav-direct-active { background: #a8421e !important; }

.nav-order-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; background: var(--zomato-red); color: #fff;
  font-size: 0.78rem; font-weight: 500; border-radius: 100px;
  transition: transform 0.2s, box-shadow 0.2s; white-space: nowrap;
}
.nav-order-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(226,55,68,0.3); }

.nav-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; z-index: 210; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--brown); transition: transform 0.3s, opacity 0.3s; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══ OFFLINE SCREEN ════════════════════════════════════════ */
#offlineScreen {
  min-height: 100dvh;
  background: var(--brown);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
}
.offline-inner {
  text-align: center; max-width: 520px; padding: 3rem 2rem;
}
.offline-moon { font-size: 5rem; margin-bottom: 1.5rem; }
.offline-inner h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--cream); font-weight: 900; margin-bottom: 1rem;
}
.offline-inner > p {
  color: rgba(250,246,239,0.65); font-size: 1rem;
  line-height: 1.8; margin-bottom: 2rem;
}
.offline-inner > p strong { color: var(--gold); }
.offline-countdown-box {
  display: inline-flex; flex-direction: column; align-items: center;
  background: rgba(212,148,26,0.12);
  border: 1.5px solid rgba(212,148,26,0.4);
  border-radius: 16px; padding: 1.4rem 3rem;
  margin-bottom: 2.5rem;
}
.oc-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.oc-timer { font-family: 'Playfair Display', serif; font-size: 2.8rem; font-weight: 900; color: var(--gold); letter-spacing: 3px; font-variant-numeric: tabular-nums; }

.btn-zomato-fallback {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 28px; background: var(--zomato-red); color: #fff;
  border-radius: 100px; font-weight: 700; font-size: 0.9rem;
  transition: transform 0.2s, box-shadow 0.2s; margin-bottom: 1rem;
}
.btn-zomato-fallback img { width: 22px; height: 22px; object-fit: contain; border-radius: 4px; }
.btn-zomato-fallback:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(226,55,68,0.4); }
.offline-note { font-size: 0.78rem; color: rgba(250,246,239,0.35); margin-top: 0.5rem; }

/* ══ HERO STRIP ════════════════════════════════════════════ */
.od-hero {
  background: var(--brown);
  padding: 120px 48px 60px;
}
.od-hero-inner {
  max-width: 1320px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 3rem; flex-wrap: wrap;
}
.od-hero-left { flex: 1; min-width: 300px; }

.od-live-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(212,148,26,0.12);
  border: 1.5px solid rgba(212,148,26,0.35);
  color: var(--gold); border-radius: 100px;
  padding: 6px 18px; font-size: 0.72rem;
  font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; margin-bottom: 1.4rem;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #4ade80;
  animation: livepulse 1.5s ease infinite;
}
@keyframes livepulse {
  0%   { box-shadow: 0 0 0 0 rgba(74,222,128,0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}

.od-hero-left h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900; color: var(--cream);
  line-height: 1.08; margin-bottom: 1rem;
}
.od-hero-left h1 em { color: var(--gold); }
.od-hero-left > p { color: rgba(250,246,239,0.6); font-size: 1rem; line-height: 1.8; margin-bottom: 1.6rem; }

.od-hero-meta { display: flex; gap: 10px; flex-wrap: wrap; }
.od-hero-meta span {
  font-size: 0.78rem; font-weight: 500;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(250,246,239,0.7);
  border-radius: 100px; padding: 5px 14px;
}

.od-counter-card {
  background: var(--terracotta);
  border-radius: 20px; padding: 2.4rem 3rem;
  text-align: center; flex-shrink: 0;
  box-shadow: 0 8px 40px rgba(196,83,42,0.35);
}
.occ-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.65); margin-bottom: 8px; }
.occ-num { font-family: 'Playfair Display', serif; font-size: 4rem; font-weight: 900; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }
.occ-sub { font-size: 0.75rem; color: rgba(255,255,255,0.6); margin-top: 6px; }

/* ══ BODY LAYOUT ═══════════════════════════════════════════ */
.od-body {
  max-width: 1320px; margin: 0 auto;
  padding: 48px 48px 80px;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
  align-items: start;
}

/* ══ MENU COLUMN ═══════════════════════════════════════════ */
.od-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 700;
  color: var(--brown); margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--terracotta);
}

/* Tab strip */
.od-tabs {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px;
}
.od-tab {
  padding: 7px 18px;
  border: 1.5px solid var(--border);
  background: transparent; color: var(--text-muted);
  font-family: 'DM Sans', sans-serif; font-size: 0.78rem; font-weight: 500;
  border-radius: 100px; cursor: pointer; transition: all 0.2s;
  white-space: nowrap;
}
.od-tab:hover  { border-color: var(--terracotta); color: var(--terracotta); background: rgba(196,83,42,0.05); }
.od-tab.active { border-color: var(--terracotta); color: var(--terracotta); background: rgba(196,83,42,0.09); font-weight: 700; }

/* Category heading inside grid */
.od-cat-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 700;
  color: var(--brown); margin: 28px 0 12px;
  display: flex; align-items: center; gap: 10px;
}
.od-cat-heading::before {
  content: ''; display: block;
  width: 20px; height: 2px; background: var(--gold);
}

/* Menu card row */
.od-menu-card {
  display: flex; align-items: center;
  gap: 14px; padding: 12px 14px;
  border-radius: 14px;
  border: 1.5px solid transparent;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
  background: #fff;
  margin-bottom: 8px;
}
.od-menu-card:hover {
  border-color: var(--border);
  box-shadow: 0 2px 16px rgba(44,26,14,0.07);
}
.od-menu-card.unavailable { opacity: 0.38; pointer-events: none; }

.omc-emoji { font-size: 2rem; flex-shrink: 0; width: 44px; text-align: center; }
.omc-info  { flex: 1; min-width: 0; }
.omc-name  { font-weight: 600; font-size: 0.92rem; color: var(--brown); }
.omc-meta  { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.omc-badge {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.05em;
  padding: 2px 8px; border-radius: 100px;
}
.badge-veg     { background: #e8f5e9; color: #2e7d32; }
.badge-non-veg { background: #fce4ec; color: #b71c1c; }
.badge-egg     { background: #fff8e1; color: #e65100; }
.badge-drink   { background: #e3f2fd; color: #1565c0; }
.badge-summer  { background: rgba(212,148,26,0.15); color: var(--gold); }
.omc-price { font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 700; color: var(--terracotta); }
.omc-unavail {
  font-size: 0.65rem; font-weight: 700; color: var(--zomato-red);
  background: rgba(226,55,68,0.08); border-radius: 100px; padding: 2px 8px;
}

/* Add / Qty control */
.omc-actions { flex-shrink: 0; }
.omc-add-btn {
  padding: 8px 18px;
  background: var(--cream); border: 1.5px solid var(--border);
  border-radius: 100px; color: var(--brown);
  font-family: 'DM Sans', sans-serif; font-size: 0.8rem; font-weight: 700;
  cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.omc-add-btn:hover { border-color: var(--terracotta); color: var(--terracotta); background: rgba(196,83,42,0.06); }
.omc-qty-ctrl { display: flex; align-items: center; gap: 10px; }
.omc-qbtn {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid var(--border); background: #fff;
  color: var(--brown); font-size: 1.1rem; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; flex-shrink: 0; line-height: 1;
}
.omc-qbtn:hover { border-color: var(--terracotta); color: var(--terracotta); background: rgba(196,83,42,0.06); }
.omc-qval { font-weight: 700; font-size: 0.95rem; min-width: 20px; text-align: center; }

/* ══ CART COLUMN ═══════════════════════════════════════════ */
.od-cart-col { position: sticky; top: 100px; }

.od-cart-box {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(44,26,14,0.08);
}
.od-cart-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 22px;
  background: var(--brown); color: var(--cream);
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem; font-weight: 700;
}
.od-cart-count { font-family: 'DM Sans', sans-serif; font-size: 0.78rem; color: var(--gold); font-weight: 600; }

.od-cart-items { padding: 12px 16px; max-height: 280px; overflow-y: auto; }
.od-cart-empty {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 2.5rem 1rem;
  color: var(--text-muted); gap: 10px; text-align: center;
}
.od-cart-empty span { font-size: 2.5rem; }
.od-cart-empty p { font-size: 0.85rem; font-weight: 500; }

/* Cart item row */
.od-ci {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
.od-ci:last-child { border-bottom: none; }
.od-ci-em   { font-size: 1.5rem; flex-shrink: 0; }
.od-ci-info { flex: 1; min-width: 0; }
.od-ci-name { font-size: 0.83rem; font-weight: 600; color: var(--brown); line-height: 1.3; }
.od-ci-sub  { font-size: 0.74rem; color: var(--text-muted); }
.od-ci-ctrl { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.od-ci-qbtn {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--border); background: var(--cream);
  color: var(--brown); font-size: 0.95rem; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; flex-shrink: 0;
}
.od-ci-qbtn:hover { border-color: var(--terracotta); color: var(--terracotta); }
.od-ci-qty { font-weight: 700; font-size: 0.85rem; min-width: 16px; text-align: center; }

.od-price-summary {
  padding: 14px 22px;
  border-top: 1.5px solid var(--border);
  display: flex; flex-direction: column; gap: 6px;
}
.od-price-row { display: flex; justify-content: space-between; font-size: 0.88rem; font-weight: 500; color: var(--text-muted); }
.od-price-total { font-size: 1rem; font-weight: 700; color: var(--brown); padding-top: 6px; border-top: 1px solid var(--border); margin-top: 4px; }
.od-price-total span:last-child { color: var(--terracotta); font-family: 'Playfair Display', serif; font-size: 1.1rem; }

/* Checkout form */
.od-checkout-form { padding: 18px 22px; border-top: 1.5px solid var(--border); display: flex; flex-direction: column; gap: 12px; }
.od-form-title { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 700; color: var(--brown); margin-bottom: 4px; }
.od-field { display: flex; flex-direction: column; gap: 5px; }
.od-field label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.od-field input,
.od-field textarea {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--border); border-radius: 10px;
  background: var(--cream); color: var(--brown);
  font-family: 'DM Sans', sans-serif; font-size: 0.88rem;
  outline: none; resize: none; transition: border-color 0.2s;
}
.od-field input:focus,
.od-field textarea:focus { border-color: var(--terracotta); background: #fff; }
.od-field input::placeholder,
.od-field textarea::placeholder { color: rgba(44,26,14,0.3); }
.od-field textarea { height: 72px; }

.od-whatsapp-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 15px;
  background: var(--wa-green); color: #fff;
  border: none; border-radius: 12px;
  font-family: 'DM Sans', sans-serif; font-size: 0.95rem; font-weight: 700;
  cursor: pointer; transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  margin-top: 4px;
}
.od-whatsapp-btn:hover { background: #1ebc59; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,0.35); }
.od-wa-note { font-size: 0.72rem; color: var(--text-muted); text-align: center; line-height: 1.6; }

/* ══ FLOATING CART (mobile) ═══════════════════════════════ */
.od-float-cart {
  position: fixed; bottom: 1.5rem; left: 50%;
  transform: translateX(-50%);
  background: var(--brown); color: var(--gold);
  border: 1.5px solid var(--gold); border-radius: 100px;
  padding: 13px 28px; font-weight: 700; font-size: 0.92rem;
  cursor: pointer; z-index: 190; white-space: nowrap;
  box-shadow: 0 8px 32px rgba(44,26,14,0.35);
  transition: transform 0.2s;
}
.od-float-cart:hover { transform: translateX(-50%) translateY(-2px); }

/* ══ FOOTER ════════════════════════════════════════════════ */
.od-footer { background: var(--brown); color: var(--cream); padding: 60px 48px 28px; }
.od-footer-inner {
  max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(250,246,239,0.1);
}
.od-footer-brand img { height: 52px; object-fit: contain; margin-bottom: 14px; }
.od-footer-brand p { font-size: 0.83rem; color: rgba(250,246,239,0.45); line-height: 1.8; }
.od-footer-links { display: flex; flex-direction: column; gap: 12px; }
.od-footer-links strong { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(250,246,239,0.35); margin-bottom: 4px; }
.od-footer-links a { font-size: 0.86rem; color: rgba(250,246,239,0.65); transition: color 0.2s; }
.od-footer-links a:hover { color: var(--gold); }
.od-footer-bottom {
  max-width: 1320px; margin: 0 auto;
  display: flex; justify-content: space-between;
  padding-top: 24px;
  font-size: 0.74rem; color: rgba(250,246,239,0.28);
}

/* ══ TOAST ════════════════════════════════════════════════ */
.od-toast {
  position: fixed; bottom: 2rem; left: 50%;
  transform: translateX(-50%) translateY(60px);
  background: var(--brown); color: var(--cream);
  border: 1.5px solid var(--gold); border-radius: 100px;
  padding: 12px 24px; font-size: 0.88rem; font-weight: 600;
  z-index: 500; opacity: 0; white-space: nowrap;
  transition: transform 0.3s, opacity 0.3s;
}
.od-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ══ RESPONSIVE ════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .od-body { grid-template-columns: 1fr; padding: 36px 32px 80px; }
  .od-cart-col { position: static; }
  .od-cart-box { max-width: 600px; }
  .od-hero { padding: 110px 32px 50px; }
}
@media (max-width: 640px) {
  #navbar { padding: 14px 20px; }
  #navbar.scrolled { padding: 10px 20px; }
  .nav-links {
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; right: 0;
    background: rgba(250,246,239,0.98);
    padding: 88px 32px 40px; gap: 22px;
    transform: translateY(-100%);
    transition: transform 0.4s ease;
    z-index: 150; box-shadow: 0 8px 32px rgba(44,26,14,0.1);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { font-size: 1.1rem; }
  .nav-order-btn { display: none; }
  .nav-hamburger { display: flex; }
  .od-hero { padding: 100px 20px 44px; }
  .od-hero-inner { flex-direction: column; }
  .od-counter-card { width: 100%; padding: 1.6rem 2rem; }
  .occ-num { font-size: 3rem; }
  .od-body { padding: 24px 16px 100px; }
  .od-tabs { gap: 6px; }
  .od-tab { padding: 6px 14px; font-size: 0.75rem; }
  .od-footer { padding: 48px 20px 24px; }
  .od-footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .od-footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
  .od-float-cart { font-size: 0.85rem; padding: 11px 22px; }
}
