/* ─── 7M Cafe — Global Design Tokens ─────────────────────────────────────── */
:root {
  /* Theme matched to the 7M Cafe brand site (7mcafe.pk):
     walnut background #B28A66 + deep espresso-green text #023021. */
  --black:    #b28a66;   /* page background — walnut */
  --dark:     #e3d3ba;   /* warm cream panel — header / sidebar / drawer */
  --card-bg:  #e7d7bf;   /* warm cream — cards & panels */
  --border:   #9c7a55;   /* muted brown border */
  --gold:     #023021;   /* brand deep green — accents, prices, titles */
  --gold-lt:  #0a5a3c;   /* lighter green — hover */
  --gold-dk:  #01231a;   /* darkest green — gradient end */
  --white:    #023021;   /* primary text — deep green */
  --muted:    #5b4a30;   /* muted brown — secondary text */
  --red:      #b23b2e;
  --green:    #0a5a3c;   /* success */
  --cream:    #f3e9d7;   /* light text on green/dark surfaces */

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Montserrat', system-ui, sans-serif;
  --radius:   10px;
  --shadow:   0 8px 30px rgba(60,40,20,.18);
}

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Montserrat:wght@300;400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-lt); }

h1,h2,h3,h4 { font-family: var(--font-serif); font-weight: 600; }

/* ─── Scrollbar ───────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ─── Header ──────────────────────────────────────────────────────────────── */
.site-header {
  background: var(--dark);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.logo { display: flex; align-items: center; gap: 12px; }
/* Brand logo images — drop your files in /assets (see assets/README.txt) */
.logo-mark     { height: 46px; width: auto; display: block; }
.logo-wordmark { height: 26px; width: auto; display: block; }
.logo-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dk));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 18px; font-weight: 700;
  color: var(--cream);
}
.logo-text h1 { font-size: 1.3rem; color: var(--white); line-height: 1.1; }
.logo-text span { font-size: 0.7rem; color: var(--gold); letter-spacing: 3px; text-transform: uppercase; font-family: var(--font-sans); }
.header-nav { display: flex; align-items: center; gap: 1.5rem; }
.header-nav a { font-size: 0.85rem; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; transition: color .2s; }
.header-nav a:hover { color: var(--gold); }

/* ─── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 22px; border-radius: var(--radius);
  font-family: var(--font-sans); font-size: 0.875rem; font-weight: 600;
  cursor: pointer; border: none; transition: all .2s; letter-spacing: .3px;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dk));
  color: var(--cream);
}
.btn-gold:hover { background: linear-gradient(135deg, var(--gold-lt), var(--gold)); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(195,152,104,.3); }
.btn-outline {
  background: transparent; color: var(--gold);
  border: 1px solid var(--gold);
}
.btn-outline:hover { background: rgba(195,152,104,.08); }
.btn-ghost { background: var(--card-bg); color: var(--white); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-danger { background: var(--red); color: #fff; }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none !important; }

/* ─── Cards ───────────────────────────────────────────────────────────────── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

/* ─── Form Controls ───────────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 1.1rem; }
.form-group label { font-size: 0.8rem; color: var(--muted); letter-spacing: .5px; text-transform: uppercase; }
.form-control {
  background: #f7efe0; border: 1px solid var(--border);
  color: var(--white); padding: 10px 14px; border-radius: var(--radius);
  font-family: var(--font-sans); font-size: 0.9rem; outline: none;
  transition: border-color .2s;
  width: 100%;
}
.form-control:focus { border-color: var(--gold); }
.form-control::placeholder { color: #9c8a6a; }
select.form-control { cursor: pointer; }
select.form-control option { background: #f7efe0; }
textarea.form-control { resize: vertical; min-height: 80px; }

/* ─── Badge / Status ──────────────────────────────────────────────────────── */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: .5px; text-transform: uppercase;
}
.badge-received  { background: rgba(136,136,128,.2); color: var(--muted); }
.badge-preparing { background: rgba(195,152,104,.15); color: var(--gold); }
.badge-ready     { background: rgba(90,173,122,.15); color: var(--green); }
.badge-out_for_delivery { background: rgba(90,130,200,.15); color: #7aaaee; }
.badge-delivered { background: rgba(90,173,122,.25); color: var(--green); }
.badge-cancelled { background: rgba(224,90,90,.15); color: var(--red); }
.badge-paid      { background: rgba(90,173,122,.2); color: var(--green); }
.badge-pending   { background: rgba(195,152,104,.1); color: var(--gold); }
.badge-failed    { background: rgba(224,90,90,.15); color: var(--red); }

/* ─── Gold divider ────────────────────────────────────────────────────────── */
.gold-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  margin: 2rem 0;
}

/* ─── Toast ───────────────────────────────────────────────────────────────── */
#toast {
  position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(100px);
  background: var(--card-bg); border: 1px solid var(--border);
  color: var(--white); padding: 14px 28px; border-radius: 30px;
  font-size: 0.9rem; z-index: 9999; transition: transform .35s cubic-bezier(.34,1.56,.64,1);
  pointer-events: none; white-space: nowrap; box-shadow: var(--shadow);
}
#toast.show { transform: translateX(-50%) translateY(0); }
#toast.success { border-color: var(--green); color: var(--green); }
#toast.error   { border-color: var(--red);   color: var(--red);   }

/* ─── Modal ───────────────────────────────────────────────────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.8); backdrop-filter: blur(4px);
  z-index: 500; align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 16px; padding: 2rem; width: min(520px, 95vw);
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.8);
  animation: modal-in .3s ease;
}
@keyframes modal-in { from { opacity:0; transform: scale(.95) translateY(10px); } }
.modal h2 { font-size: 1.5rem; margin-bottom: 1.5rem; color: var(--gold); }
.modal-close { float:right; background:none; border:none; color:var(--muted); font-size:1.4rem; cursor:pointer; margin-top:-4px; }
.modal-close:hover { color: var(--white); }

/* ─── Loading spinner ─────────────────────────────────────────────────────── */
.spinner {
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid var(--border); border-top-color: var(--gold);
  animation: spin .7s linear infinite; margin: auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Responsive helpers ──────────────────────────────────────────────────── */
@media (max-width: 700px) {
  .site-header { padding: 0 1rem; }
  .header-nav { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   LANDING PAGE — sticky nav, hero, sections, specials, about, footer
   ═══════════════════════════════════════════════════════════════════════════ */
html { scroll-behavior: smooth; }
section[id], footer[id] { scroll-margin-top: 76px; }

/* Sticky navbar */
.lp-nav {
  position: sticky; top: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: .65rem 2rem;
  background: var(--black); /* walnut — same as page background */
  border-bottom: 1px solid var(--border);
}
.lp-nav .nav-logo { display: flex; align-items: center; gap: 10px; }
.lp-nav .nav-logo img.logo-mark { height: 40px; }
.lp-nav .nav-logo img.logo-wordmark { height: 18px; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a {
  font-size: .8rem; font-weight: 600; letter-spacing: .5px; text-transform: uppercase;
  color: var(--white); transition: color .2s;
}
.nav-links a:hover { color: var(--gold-lt); }
.nav-links a.nav-order-btn {
  background: var(--gold); color: var(--cream); padding: 9px 20px; border-radius: 30px; text-transform: none;
}
.nav-links a.nav-order-btn:hover { background: var(--gold-lt); }
.nav-toggle { display: none; background: none; border: none; color: var(--gold); font-size: 1.6rem; cursor: pointer; line-height: 1; }

/* Hero */
.lp-hero { position: relative; min-height: 86vh; display: flex; align-items: center; padding: 4rem 2rem; overflow: hidden; }
.lp-hero .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.lp-hero .hero-scrim { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(3,26,17,.93) 0%, rgba(3,24,16,.76) 50%, rgba(18,11,6,.48) 100%); }
.lp-hero .hero-inner { position: relative; max-width: 640px; }
.hero-eyebrow { display: inline-block; color: #eccfa3; font-size: .76rem; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 1.1rem; border: 1px solid rgba(236,207,163,.5); background: rgba(3,20,13,.35); padding: 5px 15px; border-radius: 30px; }
.lp-hero h1 { font-family: var(--font-serif); color: var(--cream); font-size: clamp(2.4rem, 6vw, 4.3rem); line-height: 1.05; font-weight: 700; text-shadow: 0 2px 16px rgba(0,0,0,.45); }
.lp-hero h1 span { color: #eccfa3; font-style: italic; }
.lp-hero p { text-shadow: 0 1px 10px rgba(0,0,0,.4); }
.lp-hero p { color: rgba(245,233,215,.85); font-size: clamp(1rem,2.5vw,1.15rem); margin: 1.2rem 0 2rem; max-width: 30rem; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-cta .btn-outline { color: var(--cream); border-color: rgba(245,233,215,.55); }
.hero-cta .btn-outline:hover { background: rgba(245,233,215,.12); }

/* Section scaffolding */
.section { max-width: 1180px; margin: auto; padding: 4.5rem 2rem; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.eyebrow { color: var(--gold); font-size: .76rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; }
.section-head h2 { font-family: var(--font-serif); font-size: clamp(1.8rem,4vw,2.6rem); margin: .4rem 0 .6rem; }
.section-head p { color: var(--muted); }

/* Specials */
.specials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 1.4rem; }
.special-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.special-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.special-media { aspect-ratio: 4/3; overflow: hidden; }
.special-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.special-card:hover .special-media img { transform: scale(1.06); }
.special-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.special-body h3 { font-family: var(--font-serif); font-size: 1.2rem; }
.special-body p { color: var(--muted); font-size: .85rem; flex: 1; }
.special-foot { display: flex; align-items: center; justify-content: space-between; margin-top: .6rem; }
.special-price { color: var(--gold); font-weight: 700; font-size: 1.05rem; }
.special-soldout { color: var(--red); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; }

/* About / 7M Standard */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-media { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 12px; }
.about-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; aspect-ratio: 1; }
.about-media img.tall { grid-row: span 2; aspect-ratio: auto; }
.about-text h2 { font-family: var(--font-serif); font-size: clamp(1.9rem,4vw,2.7rem); margin: .4rem 0 1rem; line-height: 1.1; }
.about-text > p { color: var(--muted); margin-bottom: 1.75rem; font-size: 1rem; line-height: 1.7; }
.standard-list { display: flex; flex-direction: column; gap: 1rem; }
.standard-item {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px;
  padding: 1rem 1.1rem; transition: transform .2s, box-shadow .2s;
}
.standard-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.standard-item .si-icon {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%;
  background: var(--gold); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(2,48,33,.22);
}
.standard-item .si-icon svg { width: 22px; height: 22px; }
.standard-item h4 { font-family: var(--font-serif); font-size: 1.12rem; color: var(--gold); margin-bottom: 3px; }
.standard-item p { color: var(--muted); font-size: .86rem; line-height: 1.6; }

/* Menu section: keep category bar sticky just under the nav */
.menu-wrap { padding-top: 1.5rem; }
.menu-wrap .categories { top: 58px; }
/* category scroll targets clear the sticky nav + category bar */
.menu-cat { scroll-margin-top: 120px; }

/* Footer / Visit */
.lp-footer { background: var(--gold); color: var(--cream); padding: 3.5rem 2rem 2rem; margin-top: 1rem; }
.lp-footer .foot-grid { max-width: 1180px; margin: auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.lp-footer h4 { color: var(--cream); font-family: var(--font-serif); font-size: 1.15rem; margin-bottom: .8rem; }
.lp-footer p, .lp-footer a { color: rgba(243,233,215,.82); font-size: .9rem; line-height: 1.85; }
.lp-footer a:hover { color: var(--cream); }
.foot-brand img { height: 54px; margin-bottom: 1rem; display: block; filter: brightness(0) invert(1); opacity: .92; }
.foot-socials { display: flex; gap: 12px; margin-top: 1rem; }
.foot-socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(243,233,215,.4); display: flex; align-items: center; justify-content: center; font-size: 1.05rem; }
.foot-socials a:hover { background: rgba(243,233,215,.15); }
.foot-socials svg { width: 19px; height: 19px; }
.foot-locate { display: inline-flex; align-items: center; gap: 7px; }
.foot-bottom { max-width: 1180px; margin: 2.5rem auto 0; padding-top: 1.2rem; border-top: 1px solid rgba(243,233,215,.22); text-align: center; font-size: .8rem; color: rgba(243,233,215,.6); }

/* Mobile */
@media (max-width: 860px) {
  .lp-nav { padding: .55rem 1.1rem; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--card-bg); border-bottom: 1px solid var(--border);
    padding: .4rem 1.1rem 1rem; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 4px; border-bottom: 1px solid var(--border); }
  .nav-links a.nav-order-btn { text-align: center; margin-top: .7rem; }
  .about { grid-template-columns: 1fr; gap: 1.6rem; }
  .lp-footer .foot-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .section { padding: 3rem 1.1rem; }
  .lp-hero { min-height: 80vh; padding: 3rem 1.2rem; }
}
