/* ==========================================================================
   Milford India Spice — Shared styles for SEO landing pages
   Matches the design system used in index.html / menu.html
   (CSS variables, Playfair Display + Inter, #8b0000 primary / #e2a94c accent)
   Used by: /places/*, /dishes/*, reservation, story, lunch-special, gift-cards
   ========================================================================== */

:root {
  --primary: #8b0000;
  --primary-light: #a00000;
  --accent: #e2a94c;
  --bg-dark: #1b1b1b;
  --bg-light: #fffaf6;
  --text-light: #f0f0f0;
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background-color: var(--bg-light);
  color: #333;
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--primary); }

/* ---------- Navigation ---------- */
nav {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  gap: 10px;
}
nav .logo {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
nav .logo a { color: white; text-decoration: none; }
nav ul { list-style: none; display: flex; gap: 22px; flex-wrap: wrap; align-items: center; margin-left: auto; }
nav a { color: white; text-decoration: none; font-weight: 500; position: relative; transition: color .3s ease; }
nav a:hover { color: var(--accent); }
nav a::after {
  content: ''; position: absolute; bottom: -5px; left: 0;
  width: 0; height: 2px; background: var(--accent); transition: width .3s ease;
}
nav a:hover::after { width: 100%; }
.nav-order {
  background: var(--accent);
  color: #1b1b1b !important;
  padding: 8px 16px;
  border-radius: 30px;
  font-weight: 600;
}
.nav-order::after { display: none; }
.nav-order:hover { background: #f0bd63; }

/* Hamburger button — hidden on desktop, shown on mobile */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
  margin-left: 4px;
}
.mobile-menu span { display: block; width: 26px; height: 3px; background: #fff; border-radius: 2px; transition: .3s; }

@media (max-width: 820px) {
  /* Header is one row: logo · Order Online · hamburger.
     All other tabs collapse into an overlay dropdown below the header. */
  nav { flex-wrap: nowrap; padding: 12px 16px; justify-content: flex-start; }
  nav .logo { order: 1; font-size: 1.3rem; }
  .nav-order { order: 2; margin-left: auto; padding: 7px 14px; font-size: 0.9rem; }
  .mobile-menu { display: flex; order: 3; }
  nav ul {
    display: none;
    order: 4;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    flex-direction: column;
    gap: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 8px 18px 16px;
    box-shadow: 0 14px 26px rgba(0,0,0,0.28);
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
  }
  nav ul.open { display: flex; }
  nav ul li { width: 100%; }
  nav ul li a { display: block; padding: 13px 4px; border-top: 1px solid rgba(255,255,255,0.16); }
  nav ul li a::after { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 12px 26px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  box-shadow: 0 4px 12px rgba(139,0,0,0.25);
  border: none;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(139,0,0,0.35); }
.btn.accent { background: var(--accent); color: #1b1b1b; box-shadow: 0 4px 12px rgba(226,169,76,0.35); }
.btn.accent:hover { background: #f0bd63; }
.btn.ghost { background: transparent; color: var(--primary); border: 2px solid var(--primary); box-shadow: none; }
.btn.ghost:hover { background: var(--primary); color: #fff; }

/* ---------- Hero ---------- */
.page-hero {
  background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
              url('https://images.unsplash.com/photo-1585937421612-70a008356fbe?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
  padding: 90px 20px;
}
.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 14px;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.4);
}
.page-hero p { font-size: 1.15rem; max-width: 760px; margin: 0 auto 26px; opacity: 0.95; }
.page-hero .btn { margin: 6px; }

/* ---------- Layout ---------- */
.container { max-width: 1100px; margin: 0 auto; padding: 56px 22px; }
.container.narrow { max-width: 820px; }
section h2 {
  font-family: var(--font-serif);
  color: var(--primary);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin-bottom: 18px;
}
section h3 { font-family: var(--font-serif); color: var(--primary); margin: 22px 0 10px; }
section p { margin-bottom: 16px; }

/* Prose placed directly in <main> (story, places, dishes…) needs the same
   spacing — the rules above only target <section>. Scoped to direct children
   so cards and grids inside <main> keep their own spacing. */
main > h2 {
  font-family: var(--font-serif);
  color: var(--primary);
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  margin: 30px 0 12px;
}
main > h2:first-child { margin-top: 0; }
main > h3 { font-family: var(--font-serif); color: var(--primary); margin: 24px 0 10px; }
main > p { margin-bottom: 16px; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { background: #f3e7da; padding: 12px 22px; font-size: 0.9rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; max-width: 1100px; margin: 0 auto; }
.breadcrumbs li::after { content: '›'; margin-left: 6px; color: #999; }
.breadcrumbs li:last-child::after { content: ''; }
.breadcrumbs a { color: var(--primary); text-decoration: none; }

/* ---------- Cards / grids ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; margin-top: 10px; }
.card {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  border: 1px solid #f0e3d4;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0,0,0,0.1); }
.card h3 { margin-top: 0; }
.card .price { color: var(--primary); font-weight: 700; font-size: 1.15rem; }

/* dish hero image */
.dish-figure { text-align: center; margin: 0 0 26px; }
.dish-figure img {
  width: 100%; max-width: 520px; height: auto;
  border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.chip { background: #f3e7da; color: #6b3b00; border-radius: 20px; padding: 5px 12px; font-size: 0.82rem; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; text-align: center; padding: 50px 20px;
}
.cta-band h2 { color: #fff; }
.cta-band p { opacity: 0.95; max-width: 640px; margin: 0 auto 22px; }

/* info list */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 20px; margin-top: 12px; }
.info-grid .info { background:#fff; border-radius:12px; padding:20px; border:1px solid #f0e3d4; }
.info-grid .info strong { color: var(--primary); display:block; margin-bottom:6px; font-family: var(--font-serif); }

/* ---------- Footer ---------- */
footer {
  background: var(--bg-dark);
  color: var(--text-light);
  text-align: center;
  padding: 40px 20px;
}
footer .foot-links { display:flex; flex-wrap:wrap; gap:16px; justify-content:center; margin: 8px 0 18px; }
footer .foot-links a { color: var(--accent); text-decoration: none; font-size: 0.92rem; }
footer .foot-links a:hover { text-decoration: underline; }
footer .social-links { display:flex; gap:18px; justify-content:center; margin-bottom: 14px; }
footer .social-links a { color: var(--text-light); text-decoration: none; }
footer address { font-style: normal; opacity: 0.8; font-size: 0.9rem; margin-top: 10px; }
footer a { color: inherit; }

/* ---------- Online ordering (order.html) ---------- */
.store-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
@media (max-width: 900px) { .store-layout { grid-template-columns: 1fr; } }
.pay-banner { border-radius: 10px; padding: 12px 16px; font-size: 0.92rem; margin-bottom: 18px; }
.pay-banner.preview { background: #fff4e0; color: #7a4b00; border: 1px solid #f0d199; }
.pay-banner.live { background: #e7f6ec; color: #1d6b39; border: 1px solid #b6e2c4; }
.store-cat { margin-bottom: 26px; }
.store-cat h2 { font-size: 1.4rem; border-bottom: 2px solid #f0e3d4; padding-bottom: 6px; }
.store-item { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid #f3ece2; }
.store-item-desc { font-size: 0.85rem; color: #666; margin-top: 2px; max-width: 480px; }
.store-item-action { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.add-btn { padding: 7px 16px; font-size: 0.9rem; }
.cart-panel { position: sticky; top: 90px; background: #fff; border: 1px solid #f0e3d4; border-radius: 14px; padding: 20px; box-shadow: 0 6px 20px rgba(0,0,0,0.06); }
.cart-panel h2 { font-size: 1.3rem; }
.cart-line { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid #f3ece2; font-size: 0.92rem; }
.cart-line .qty { display: inline-flex; align-items: center; gap: 8px; }
.cart-line .qty button { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--primary); background: #fff; color: var(--primary); cursor: pointer; font-size: 1rem; line-height: 1; }
.cart-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 0.92rem; }
.cart-row.total { font-weight: 700; font-size: 1.05rem; border-top: 2px solid #f0e3d4; margin-top: 6px; padding-top: 8px; color: var(--primary); }
#checkout-btn { width: 100%; margin-top: 16px; }
