/* TJ's Kitchen — tjskitchenvc.com
   Dark, rustic palette pulled from the logo (black, cream, wood, gold). */
:root {
  --bg: #000;
  --surface: #15120f;
  --surface-2: #1f1a15;
  --line: #2e2721;
  --cream: #f1e4c8;
  --text: #e9e1d2;
  --muted: #a79c8b;
  --gold: #d4a854;
  --gold-dark: #b8863f;
  --wood: #6b4528;
  --open: #4ade80;
  --closed: #f87171;
  --radius: 14px;
  --max: 1080px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: "Oswald", "Inter", sans-serif; color: var(--cream); letter-spacing: 0.02em; line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); text-transform: uppercase; }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); text-transform: uppercase; margin-bottom: 0.6rem; }
h3 { font-size: 1.15rem; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.section { padding: 64px 0; }
.section + .section { border-top: 1px solid var(--line); }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 640px; }
.eyebrow { color: var(--gold); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 8px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(0,0,0,0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--cream); font-family: "Oswald", sans-serif; font-size: 1.15rem; letter-spacing: 0.04em; text-transform: uppercase; }
.brand img { width: 46px; height: 40px; object-fit: cover; }
.brand:hover { text-decoration: none; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--text); padding: 8px 12px; border-radius: 999px; font-size: 0.95rem; }
.nav a:hover { background: var(--surface-2); text-decoration: none; }
.nav a.active { color: var(--gold); }
.nav .btn { margin-left: 6px; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--cream); border-radius: 8px; padding: 6px 10px; font-size: 1.1rem; cursor: pointer; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--gold); color: #1a1208; font-weight: 600; padding: 10px 20px; border-radius: 999px; border: 0; cursor: pointer; font-size: 0.95rem; line-height: 1.2; letter-spacing: 0.01em; white-space: nowrap; transition: background .15s, transform .15s; }
.btn:hover { background: #e2b866; text-decoration: none; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--cream); border: 1px solid var(--line); }
.btn-outline:hover { background: var(--surface-2); }
.btn-sm { padding: 7px 14px; font-size: 0.88rem; }

/* ---------- hero ---------- */
.hero { padding: 48px 0 64px; text-align: center; background: radial-gradient(ellipse at 50% 30%, #2a1d12 0%, #000 65%); }
.hero-logo { width: min(340px, 78vw); margin: 0 auto 12px; }
.hero p { margin: 14px auto 28px; }
.hero-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero-actions .btn { min-width: 150px; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 0.9rem; color: var(--muted); }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.status-pill.open .status-dot { background: var(--open); box-shadow: 0 0 0 4px rgba(74,222,128,0.15); }
.status-pill.closed .status-dot { background: var(--closed); }

/* ---------- cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 28px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card .icon { font-size: 1.8rem; margin-bottom: 8px; }
.card p { color: var(--muted); margin-top: 6px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }

/* ---------- coming soon banner ---------- */
.notice { background: var(--surface-2); border: 1px dashed var(--wood); border-radius: var(--radius); padding: 18px 20px; color: var(--muted); }
.notice strong { color: var(--cream); }

/* ---------- hours ---------- */
.hours-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.hours-table td { padding: 9px 0; border-bottom: 1px solid var(--line); }
.hours-table td:last-child { text-align: right; color: var(--cream); }
.hours-table tr.today td { color: var(--gold); font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }

/* ---------- menu page ---------- */
.cat-tabs { position: sticky; top: 68px; z-index: 40; background: rgba(0,0,0,0.95); border-bottom: 1px solid var(--line); }
.cat-tabs .wrap { display: flex; gap: 8px; overflow-x: auto; padding-top: 12px; padding-bottom: 12px; scrollbar-width: none; }
.cat-tabs .wrap::-webkit-scrollbar { display: none; }
.cat-tabs a { flex-shrink: 0; padding: 7px 16px; border-radius: 999px; background: var(--surface-2); color: var(--text); font-size: 0.92rem; font-weight: 600; }
.cat-tabs a:hover { text-decoration: none; background: var(--wood); }
.menu-cat { padding-top: 36px; scroll-margin-top: 140px; }
.menu-cat h2 { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.menu-cat .when { font-family: "Inter", sans-serif; font-size: 0.85rem; color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 400; }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin-top: 14px; }
.dish { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.dish-img { aspect-ratio: 4 / 3; background: var(--surface-2); object-fit: cover; width: 100%; }
.dish-img.placeholder { display: flex; align-items: center; justify-content: center; font-size: 2.4rem; }
.dish-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.dish-name { font-family: "Oswald", sans-serif; text-transform: uppercase; color: var(--cream); font-size: 1.05rem; letter-spacing: 0.02em; }
.dish-desc { color: var(--muted); font-size: 0.9rem; }
.dish-foot { margin-top: auto; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { color: var(--gold); font-weight: 700; }
.tag { font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em; }
.tag-soldout { background: #3b1414; color: #fca5a5; }
.menu-status { padding: 60px 0; text-align: center; color: var(--muted); }

/* ---------- contact ---------- */
.contact-list { list-style: none; display: grid; gap: 14px; margin-top: 12px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list .ci { font-size: 1.3rem; width: 28px; flex-shrink: 0; text-align: center; }
.map { width: 100%; height: 340px; border: 1px solid var(--line); border-radius: var(--radius); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--gold); }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- mobile ---------- */
@media (max-width: 760px) {
  .menu-toggle { display: inline-block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #000; border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; border-radius: 10px; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
  .split { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
  .brand span { display: none; }
}

/* The logo artwork sits on solid black; "lighten" lets that black melt into
   the page background so it never shows as a dark square. */
.hero-logo, .brand img, .logo-blend { mix-blend-mode: lighten; }

/* Location card shown in place of the live map (no token, or map unavailable) */
.map-card { display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px;
  background: radial-gradient(ellipse at 50% 40%, #2a1d12 0%, var(--surface) 70%); }
.map-card-inner { max-width: 360px; }
.map-pin { font-size: 2.4rem; margin-bottom: 4px; }
.map-card-title { font-family: "Oswald", sans-serif; text-transform: uppercase; color: var(--cream); font-size: 1.4rem; letter-spacing: 0.03em; margin-bottom: 4px; }

/* Contact-page map: our own gold "TJ" pin */
#apple-map { position: relative; z-index: 0; background: #111; }
.tj-pin { background: none; border: 0; }
.tj-pin-badge { width: 60px; height: 60px; border-radius: 50%; background: #000; overflow: hidden;
  border: 3px solid var(--gold); box-shadow: 0 4px 14px rgba(0,0,0,0.6); }
.tj-pin-badge img { width: 100%; height: 100%; display: block; object-fit: cover; }
.tj-pin-tip { width: 0; height: 0; margin: -2px auto 0; border-left: 9px solid transparent; border-right: 9px solid transparent; border-top: 14px solid var(--gold); }
.map-directions { position: absolute; right: 12px; bottom: 26px; z-index: 500; box-shadow: 0 4px 12px rgba(0,0,0,0.5); }
/* Leaflet's own stylesheet loads after ours, so these use #apple-map to win */
#apple-map.leaflet-container { font-family: "Inter", sans-serif; background: #111; }
#apple-map .leaflet-popup-content-wrapper, #apple-map .leaflet-popup-tip { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
#apple-map .leaflet-popup-content a { color: var(--gold); }
#apple-map .leaflet-popup-close-button { color: var(--muted); }
#apple-map a.map-directions { color: #1a1208; }
#apple-map .leaflet-bar a { background: var(--surface-2); color: var(--cream); border-bottom-color: var(--line); }
#apple-map .leaflet-bar { border-color: var(--line); }
#apple-map .leaflet-control-attribution { background: rgba(0,0,0,0.6); color: var(--muted); }
#apple-map .leaflet-control-attribution a { color: var(--muted); }

/* Darken the standard OpenStreetMap tiles so the map matches the site */
.tj-dark-tiles { filter: invert(1) hue-rotate(180deg) brightness(0.85) contrast(0.9) saturate(0.6); }

/* Menu page: "Ready to eat?" on its own line with the order button beside it */
.ready-line { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 16px; color: var(--cream); font-size: 1.05rem; font-weight: 600; }
