/* ============================================================
   Mumbai Field Guide - Light & Easy
   Soft, lightweight, airy. Warm off-white, gentle accents,
   no glow, hairlines and soft shadows. Mumbai landmark
   silhouettes kept faint in the background.
   ============================================================ */

:root {
  --bg: #f2e6d0;       /* warm beige */
  --bg-2: #eadbbe;     /* deeper beige */
  --card: #fdf7eb;     /* warm cream */
  --ink: #33281b;      /* espresso brown */
  --ink-2: #6a5840;    /* warm brown */
  --muted: #9c8a70;

  --violet: #c5612e;   /* terracotta, primary accent */
  --teal: #6f7d41;     /* olive / sage */
  --marigold: #ce922a; /* ochre */
  --coral: #b94d29;    /* clay / rust */

  --line: rgba(51,40,27,0.12);
  --line-2: rgba(51,40,27,0.2);
  --shadow: 0 10px 30px -20px rgba(51,40,27,0.32);
  --landmark: #5a4530;

  --maxw: 1200px;
  --mono: "Space Mono", ui-monospace, Menlo, monospace;
  --disp: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; }
body { font-family: var(--body); background: var(--bg); color: var(--ink); font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1,h2,h3,h4 { font-family: var(--disp); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
a { color: inherit; }
.wrap { width: min(100% - 44px, var(--maxw)); margin-inline: auto; position: relative; z-index: 2; }
.mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.04em; text-transform: uppercase; }

a:focus-visible, button:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; z-index: 200; background: var(--ink); color: #fff; padding: 12px 18px; font-weight: 700; border-radius: 0 0 10px 0; }
.skip:focus { left: 0; top: 0; }

/* ---------- Landmark silhouettes (faint, in the background) ---------- */
.landmark { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: min(1420px, 128%); height: auto; color: var(--landmark); opacity: 0.16; z-index: 0; pointer-events: none; }
.landmark.lm-r { left: auto; right: -6%; transform: none; }
.landmark.lm-l { left: -6%; transform: none; }
.landmark.lm-small { width: min(420px, 60%); }
.landmark.lm-feature { width: min(560px, 74%); opacity: 0.22; }
.hero .landmark { opacity: 0.1; }
body.hc .landmark { display: none; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(242,230,208,0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; height: 64px; gap: 18px; }
.brand { display: flex; align-items: baseline; gap: 9px; font-family: var(--disp); font-weight: 700; font-size: 16px; white-space: nowrap; }
.brand .dc { color: var(--violet); }
.brand .sep { color: var(--line-2); }
.brand .pl { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.nav-links { margin-left: auto; display: flex; gap: 2px; flex-wrap: wrap; }
.nav-links a { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; text-decoration: none; padding: 9px 12px; border-radius: 8px; color: var(--ink-2); transition: 0.14s; }
.nav-links a:hover { color: var(--violet); background: rgba(197,97,46,0.1); }
.nav-toggle { display: none; margin-left: auto; background: var(--violet); color: #fff; border: 0; border-radius: 8px; padding: 9px 15px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; font-weight: 700; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(70px, 11vw, 122px) 0 56px; }
.sunburst { position: absolute; top: -22%; right: -10%; width: 660px; height: 660px; z-index: 1; opacity: 0.22; pointer-events: none; }
.sunburst line, .sunburst circle, .sunburst g { stroke: var(--marigold); }
.hero-kicker { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; color: var(--ink-2); }
.hero-kicker .dotx { width: 6px; height: 6px; border-radius: 50%; background: var(--marigold); }
.hero h1 { font-size: clamp(54px, 12vw, 168px); line-height: 0.9; margin-top: 24px; letter-spacing: -0.04em; color: var(--ink); }
/* bilingual layered title: मुंबई ghosted behind Mumbai. */
.hero h1 .city { position: relative; display: inline-block; }
.hero h1 .latin { position: relative; z-index: 1; }
.hero h1 .echo { position: absolute; left: 0; top: 0; z-index: 0; transform-origin: left top; transform: translate(0.34em, 0.46em) skewX(-20deg) scaleY(1.08); font-family: "Mukta", system-ui, sans-serif; font-weight: 800; letter-spacing: 0; color: var(--violet); opacity: 0.15; line-height: 1.04; white-space: nowrap; pointer-events: none; filter: url(#water); }
body.reduce-motion .hero h1 .echo { filter: none; }
.hero h1 .sub { display: block; color: var(--ink-2); font-size: clamp(19px, 3vw, 36px); font-weight: 500; letter-spacing: -0.01em; margin-top: 22px; max-width: 21ch; }
.hero h1 .sub em { font-style: normal; color: var(--violet); }
.hero-lede { max-width: 620px; margin-top: 26px; font-size: clamp(16.5px, 1.9vw, 20px); color: var(--ink-2); }

.ticker { margin-top: clamp(44px, 7vw, 74px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; white-space: nowrap; position: relative; z-index: 3; }
.ticker-track { display: inline-flex; animation: scroll 38s linear infinite; will-change: transform; }
.ticker-track span { font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-2); padding: 15px 26px; }
.ticker-track .hl { color: var(--violet); font-weight: 700; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* floating shapes (soft, no glow) */
.hero .shape { position: absolute; z-index: 1; pointer-events: none; opacity: 0.7; }
.s-ring { width: 84px; height: 84px; border: 3px solid var(--violet); border-radius: 50%; left: 6%; bottom: 28%; animation: fl1 9s ease-in-out infinite; }
.s-dot { width: 18px; height: 18px; background: var(--coral); border-radius: 50%; left: 46%; top: 22%; animation: fl2 7s ease-in-out infinite; }
.s-diamond { width: 44px; height: 44px; border: 3px solid var(--marigold); left: 72%; bottom: 32%; animation: flD 11s ease-in-out infinite; }
.s-tri { width: 0; height: 0; border-left: 15px solid transparent; border-right: 15px solid transparent; border-bottom: 26px solid var(--teal); left: 30%; bottom: 18%; animation: fl2 8s ease-in-out infinite; }
@keyframes fl1 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-14px)} }
@keyframes fl2 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(12px)} }
@keyframes flD { 0%,100%{transform:translateY(0) rotate(45deg)} 50%{transform:translateY(-14px) rotate(50deg)} }

/* ---------- Sections ---------- */
section.block { padding: clamp(60px, 8vw, 100px) 0; position: relative; overflow: hidden; }
section.block:nth-of-type(even) { background: var(--bg-2); }
.sec-head { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; margin-bottom: 46px; }
.sec-index { font-family: var(--mono); font-size: 15px; font-weight: 700; color: var(--violet); padding-top: 12px; }
.sec-head h2 { font-size: clamp(32px, 5vw, 54px); }
.sec-head .lead { font-size: clamp(16.5px, 1.9vw, 19px); color: var(--ink-2); max-width: 62ch; margin-top: 14px; }
.sec-head .kicker { font-family: var(--mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--coral); margin-bottom: 12px; display: flex; align-items: center; }
.kic-ico { font-size: 1.15em; margin-right: 9px; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2,1fr); }
.g3 { grid-template-columns: repeat(3,1fr); }
.g4 { grid-template-columns: repeat(4,1fr); }
.cell { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: 0.18s; }
.cell:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(43,39,51,0.4); }
.cell .top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cell h3 { font-size: 21px; }
.cell .tier { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); white-space: nowrap; }
.cell .area { font-family: var(--mono); font-size: 12.5px; color: var(--teal); margin: 9px 0 13px; }
.cell p { font-size: 15.5px; color: var(--ink-2); }
.cell ul { font-size: 15.5px; color: var(--ink-2); padding-left: 18px; margin-top: 6px; }
.cell li { margin-bottom: 8px; }
.cell li::marker { color: var(--violet); }
.cell .foot { margin-top: auto; padding-top: 16px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.chip { font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: var(--ink-2); }
.chip b { color: var(--teal); }
.maplink { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; text-decoration: none; color: var(--violet); border-bottom: 1.5px solid currentColor; white-space: nowrap; font-weight: 700; }
.maplink:hover { color: var(--coral); }
.maplink .arr { display: inline-block; transition: 0.15s; }
.maplink:hover .arr { transform: translate(2px,-2px); }

/* ---------- Notes (soft tinted, no left bar, no glow) ---------- */
.note { border: 1px solid var(--line); border-radius: 16px; padding: 24px; background: var(--card); }
.note.warn { background: #f7e7c5; border-color: #e6cd98; }
.note.stop { background: #f6dcc7; border-color: #e6b393; }
.note.ok { background: #ecefd3; border-color: #d2d9a8; }
.note h3 { font-size: 20px; margin-bottom: 8px; }
.note p, .note li { font-size: 16px; color: var(--ink-2); }
.note ul { padding-left: 19px; margin-top: 8px; }
.note li { margin-bottom: 7px; }
.note li::marker { color: var(--violet); }
.note .lbl { font-family: var(--mono); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--violet); display: block; margin-bottom: 8px; }
.note.warn .lbl { color: #a9791b; }
.note.stop .lbl { color: var(--coral); }
.note.ok .lbl { color: var(--teal); }

/* ---------- Routes ---------- */
.routes { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.route { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: var(--shadow); }
.route .from { font-family: var(--disp); font-weight: 700; font-size: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.opt { display: grid; grid-template-columns: 124px 1fr auto; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.opt:last-child { border-bottom: 0; }
.opt .mode { font-family: var(--mono); font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--violet); }
.opt .desc { font-size: 15.5px; color: var(--ink-2); }
.opt .cost { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--teal); text-align: right; white-space: nowrap; }

/* ---------- Food ---------- */
.filterbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; align-items: center; }
.filterbar .flabel { font-family: var(--mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-right: 6px; }
.filter-btn { border: 1px solid var(--line-2); background: var(--card); cursor: pointer; color: var(--ink); padding: 9px 16px; border-radius: 999px; font-family: var(--mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.03em; display: inline-flex; align-items: center; gap: 8px; transition: 0.14s; }
.filter-btn:hover { border-color: var(--violet); color: var(--violet); }
.filter-btn[aria-pressed="true"] { background: var(--violet); color: #fff; border-color: var(--violet); }
.filter-btn .dot { width: 8px; height: 8px; border-radius: 50%; }
.food-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.food { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: 0.18s; }
.food:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(43,39,51,0.4); }
.food.hide { display: none; }
.food .top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.food h4 { font-size: 20px; }
.food h4 .fico { margin-right: 9px; }
.food .where { font-family: var(--mono); font-size: 12px; color: var(--teal); margin: 8px 0 13px; }
.food p { font-size: 15.5px; color: var(--ink-2); flex: 1; }
.food .foot { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag { font-family: var(--mono); font-size: 11px; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; font-weight: 700; }
.tag.veg { background: #e6f6ea; color: #1c7a3f; }
.tag.vegan { background: #e1f5f0; color: #0d7d6e; }
.tag.jain { background: #fcefd8; color: #9a6000; }
.tag.df { background: #ece9fd; color: #5039c9; }
.tag.kosher { background: #e6eefe; color: #2155c4; }
.tag.halal { background: #e6f5ec; color: #167a4a; }
.tag.nonveg { background: #fde6ee; color: #c01060; }
.heat { display: inline-flex; gap: 3px; align-items: center; }
.heat i { width: 16px; height: 5px; background: var(--line-2); border-radius: 2px; }
.heat.l1 i:nth-child(1), .heat.l2 i:nth-child(-n+2), .heat.l3 i:nth-child(-n+3) { background: var(--marigold); }
.heat .hl { font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: var(--muted); margin-right: 6px; }

/* ---------- Checklist ---------- */
.checklist { columns: 2; column-gap: 44px; }
.checklist li { break-inside: avoid; list-style: none; padding-left: 28px; position: relative; margin-bottom: 15px; font-size: 16px; color: var(--ink-2); }
.checklist li::before { content: "→"; position: absolute; left: 0; top: 0; color: var(--violet); }
.checklist li b { color: var(--ink); }

/* ---------- Emergency ---------- */
.emerg { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-top: 16px; }
.emerg .e { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; box-shadow: var(--shadow); }
.emerg .num { font-family: var(--disp); font-size: 40px; font-weight: 700; color: var(--coral); }
.emerg .lbl { font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

/* ---------- Footer ---------- */
footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 72px 0 46px; }
footer .ftop { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
footer .fbig { font-family: var(--disp); font-weight: 700; font-size: clamp(30px, 5vw, 56px); line-height: 0.98; color: var(--ink); }
footer .fbig em { font-style: normal; color: var(--marigold); }
footer .fcol { display: grid; gap: 8px; }
footer .fcol .h { font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
footer a { font-size: 15px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
footer a:hover { color: var(--violet); }
footer .disc { margin-top: 46px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); max-width: 820px; }
footer .disc b { color: var(--ink-2); }

/* ---------- Back to top ---------- */
.totop { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); cursor: pointer; background: var(--card); color: var(--violet); font-size: 19px; opacity: 0; pointer-events: none; transition: 0.25s; box-shadow: var(--shadow); }
.totop.show { opacity: 1; pointer-events: auto; }

/* ---------- Accessibility toolbar ---------- */
.a11y-fab { position: fixed; left: 22px; bottom: 22px; z-index: 70; display: inline-flex; align-items: center; gap: 9px; background: var(--ink); color: #fff; border: 0; cursor: pointer; padding: 12px 16px; border-radius: 999px; font-family: var(--body); font-weight: 700; font-size: 14px; box-shadow: var(--shadow); }
.a11y-fab .icon { font-size: 16px; }
.a11y-panel { position: fixed; left: 22px; bottom: 80px; z-index: 71; width: 290px; background: var(--card); border: 1px solid var(--line-2); border-radius: 16px; padding: 18px; box-shadow: 0 24px 60px -22px rgba(43,39,51,0.45); display: none; }
.a11y-panel.open { display: block; }
.a11y-panel h3 { font-size: 18px; margin-bottom: 4px; }
.a11y-panel .hint { font-size: 13px; color: var(--ink-2); margin-bottom: 14px; }
.a11y-row { margin-bottom: 14px; }
.a11y-row .rl { font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 7px; }
.a11y-row .opts { display: flex; gap: 6px; }
.a11y-opt { flex: 1; border: 1px solid var(--line-2); background: transparent; color: var(--ink); cursor: pointer; padding: 9px 8px; border-radius: 10px; font-family: var(--body); font-weight: 600; font-size: 14px; transition: 0.14s; }
.a11y-opt:hover { border-color: var(--violet); }
.a11y-opt[aria-pressed="true"] { background: var(--violet); color: #fff; border-color: var(--violet); }
.a11y-opt:disabled { opacity: 0.4; cursor: default; }
.a11y-opt.speaking { background: var(--coral); color: #fff; border-color: var(--coral); }
.a11y-reset { width: 100%; margin-top: 4px; border: 0; background: transparent; color: var(--violet); font-weight: 700; font-size: 13.5px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* High contrast */
body.hc { --bg:#fff; --bg-2:#fff; --card:#fff; --ink:#000; --ink-2:#161616; --muted:#333; --line:rgba(0,0,0,0.45); --line-2:rgba(0,0,0,0.6); --violet:#9c3f12; --coral:#a3401c; --teal:#4c5a23; }
body.hc .cell, body.hc .food, body.hc .note, body.hc .route, body.hc .emerg .e { box-shadow: none; border-width: 2px; }
body.ul-links a:not(.a11y-fab):not(.totop) { text-decoration: underline; text-underline-offset: 3px; }
body.reduce-motion * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
body.reduce-motion .ticker-track { animation: none; }
.reading { background: #fff2c4; box-shadow: 0 0 0 3px #fff2c4; border-radius: 5px; }
body.hc .reading { background: #fff2a0; color: #000; box-shadow: 0 0 0 3px #000; }
@media (prefers-reduced-motion: reduce) { .ticker-track, .hero .shape { animation: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .g3,.g4,.food-grid { grid-template-columns: repeat(2,1fr); }
  .routes { grid-template-columns: 1fr; }
  /* swipeable link strip instead of a hamburger */
  .nav-toggle { display: none; }
  .nav-inner { flex-wrap: wrap; height: auto; min-height: 58px; padding: 9px 0; gap: 6px; }
  .nav-links { margin-left: 0; width: 100%; overflow-x: auto; flex-wrap: nowrap; gap: 2px; padding-bottom: 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { white-space: nowrap; flex: 0 0 auto; }
  .sec-head { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 600px) {
  .g2,.g3,.g4,.food-grid,.emerg { grid-template-columns: 1fr; }
  .checklist { columns: 1; }
  .opt { grid-template-columns: 96px 1fr; }
  .opt .cost { grid-column: 2; text-align: left; }
  .wrap { width: min(100% - 32px, var(--maxw)); }
  .a11y-fab { padding: 11px 13px; font-size: 12px; }
  .totop { width: 42px; height: 42px; }
}
