/* Joy's Cafe — shared styles. Colours and fonts follow the printed menu card. */

:root {
  --cream: #FBF4E6;
  --paper: #FFFAF0;
  --maroon: #5A0F24;
  --wine: #A3123F;
  --pink: #E8317A;
  --pink-soft: #FFC2D9;
  --ink: #2A1418;
  --muted: #6B5A4E;
  --rule: #D9C8AE;
  --dots: #B8A386;
  --radius: 10px;
  --max: 1080px;
  --gutter: 16px;
  --font-logo: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --font-head: 'DM Serif Display', Georgia, serif;
  --font-body: 'Jost', 'Helvetica Neue', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; display: block; }

a { color: var(--wine); }
a:hover { color: var(--maroon); }

:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--paper); color: var(--maroon); padding: 8px 12px; z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */

.site-header { background: var(--maroon); color: var(--pink-soft); }

.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 24px; padding-top: 14px; padding-bottom: 14px;
}

.logo {
  display: flex; flex-direction: column; align-items: center; text-decoration: none; line-height: 1;
}
.logo-name {
  font-family: var(--font-logo); font-weight: 800; font-size: 32px; letter-spacing: 2px;
  color: var(--pink); -webkit-text-stroke: 3px #FFFFFF; paint-order: stroke fill;
}
.logo-since {
  display: flex; align-items: center; gap: 8px; margin-top: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: 4px; color: var(--pink-soft);
}
.logo-since::before, .logo-since::after { content: ''; width: 18px; height: 2px; background: var(--pink); }
.logo-since span { margin-right: -4px; }
.logo:hover .logo-name { color: var(--pink); }

.nav { display: flex; flex-wrap: wrap; gap: 4px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border-radius: 999px; color: #FFE3EE; text-decoration: none; font-weight: 500; letter-spacing: .5px;
}
.nav a:hover { background: rgba(255, 255, 255, .1); color: #FFFFFF; }
.nav a[aria-current="page"] { background: var(--pink); color: #FFFFFF; }

/* ---------- Buttons, badges ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid var(--maroon);
  font-weight: 600; font-size: 16px; text-decoration: none; letter-spacing: .3px;
}
.btn-primary { background: var(--maroon); color: #FFFFFF; }
.btn-primary:hover { background: #3F0A19; color: #FFFFFF; }
.btn-ghost { background: transparent; color: var(--maroon); }
.btn-ghost:hover { background: var(--maroon); color: #FFFFFF; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.status {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--muted);
}
.status::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--dots); }
.status.is-open { color: #1E6B3A; }
.status.is-open::before { background: #2E9E57; }
.status.is-closed { color: var(--wine); }
.status.is-closed::before { background: var(--wine); }

/* ---------- Home ---------- */

.hero { padding: 40px 0 48px; }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.hero-text { flex: 1 1 380px; min-width: 0; }
.hero-photo { flex: 1 1 280px; max-width: 400px; margin: 0 auto; }
.hero-photo img { border-radius: var(--radius); box-shadow: 0 12px 32px rgba(90, 15, 36, .25); width: 100%; height: auto; }

.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 4px; text-transform: uppercase; color: var(--wine); margin: 0 0 8px; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 400; color: var(--maroon); line-height: 1.1; margin: 0; text-wrap: balance; }
.hero h1 { font-size: clamp(38px, 7vw, 60px); }
.hero .lead { font-size: 19px; color: var(--muted); margin: 16px 0 24px; max-width: 34em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }

.facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; padding: 0; list-style: none; color: var(--muted); }
.facts strong { color: var(--ink); font-weight: 600; }

.section { padding: 48px 0; }
.section-alt { background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section h2 { font-size: clamp(30px, 5vw, 40px); margin-bottom: 24px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 16px; }
.card {
  display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: var(--radius);
  background: var(--cream); border: 1px solid var(--rule); text-decoration: none; color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(90, 15, 36, .12); color: var(--ink); }
.card h3 { font-size: 26px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .from { margin-top: auto; padding-top: 8px; font-weight: 600; color: var(--wine); }

/* ---------- Menu ---------- */

.page-head { padding: 36px 0 20px; }
.page-head h1 { font-size: clamp(38px, 7vw, 56px); }
.page-head p { margin: 8px 0 0; color: var(--muted); }

.menu-nav {
  position: sticky; top: 0; z-index: 10; background: var(--cream);
  border-bottom: 1px solid var(--rule); box-shadow: 0 4px 12px rgba(42, 20, 24, .05);
}
.menu-nav ul {
  display: flex; gap: 6px; margin: 0 auto; padding: 10px var(--gutter); list-style: none;
  max-width: var(--max); overflow-x: auto; scrollbar-width: none;
}
.menu-nav ul::-webkit-scrollbar { display: none; }
.menu-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; white-space: nowrap;
  border-radius: 999px; border: 1.5px solid var(--rule); background: var(--paper);
  color: var(--maroon); text-decoration: none; font-weight: 500;
}
.menu-nav a:hover, .menu-nav a.is-active { background: var(--maroon); border-color: var(--maroon); color: #FFFFFF; }

.group { padding: 36px 0 12px; }
.group > .wrap > h2 { font-size: clamp(32px, 5vw, 42px); display: flex; align-items: center; gap: 16px; margin-bottom: 6px; }
.group > .wrap > h2::after { content: ''; flex: 1; height: 2px; background: var(--maroon); opacity: .2; }
.group-note { margin: 0 0 20px; color: var(--muted); }

.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 20px; margin-top: 18px; }
.cat { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px 20px 14px; min-width: 0; }
.cat h3 { font-size: 26px; color: var(--wine); }
.cat-note { margin: 2px 0 0; font-size: 14px; color: var(--muted); }

.items { list-style: none; margin: 12px 0 0; padding: 0; }
.cat > .items:first-child { margin-top: 0; }
.item { padding: 7px 0; border-bottom: 1px solid #EFE4D1; }
.item:last-child { border-bottom: none; }
.item-line { display: flex; align-items: baseline; gap: 8px; }
.item-name { font-weight: 500; }
.item-lead { flex: 1; min-width: 16px; border-bottom: 1.5px dotted var(--dots); transform: translateY(-5px); }
.price { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.item-desc { margin: 2px 0 0; font-size: 14px; color: var(--muted); }

/* tables with two price columns (Momo: Veg / Chicken, Pizza: 7″ / 10″) */
.ptable { width: 100%; border-collapse: collapse; margin-top: 12px; }
.ptable th { font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--maroon); text-align: right; padding: 0 0 8px 12px; border-bottom: 1.5px solid var(--maroon); }
.ptable th:first-child { text-align: left; padding-left: 0; }
.ptable td { padding: 9px 0 9px 12px; border-bottom: 1px solid #EFE4D1; vertical-align: top; }
.ptable td:first-child { padding-left: 0; }
.ptable tr:last-child td { border-bottom: none; }
.ptable td.num { text-align: right; width: 72px; }
.ptable th:not(:first-child) { width: 72px; }
.ptable .item-name { display: block; }
.ptable-pizza .item-name { font-family: var(--font-head); font-weight: 400; font-size: 21px; color: var(--ink); }

.extra { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 8px; padding-top: 12px; border-top: 1.5px solid var(--maroon); }
.extra strong { color: var(--maroon); }
.extra .item-desc { margin: 0; }
.extra .price { margin-left: auto; color: var(--wine); }

.cat-wide { grid-column: 1 / -1; }

.prices-note { text-align: center; color: var(--muted); font-size: 15px; padding: 24px 0 48px; margin: 0; }

/* ---------- Visit ---------- */

.visit { display: flex; flex-wrap: wrap; gap: 28px; padding-bottom: 56px; }
.visit-info { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.visit-map { flex: 2 1 420px; min-width: 0; }
.visit-map iframe { width: 100%; height: 420px; border: 1px solid var(--rule); border-radius: var(--radius); display: block; background: var(--paper); }
.info-block h2 { font-size: 26px; margin-bottom: 6px; }
.info-block p { margin: 0 0 10px; }
.info-block .btn { margin-top: 4px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--maroon); color: #FFE3EE; padding: 32px 0; font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: center; }
.site-footer a { color: #FFFFFF; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer p { margin: 0; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .site-header .wrap { justify-content: center; }
  .nav { justify-content: center; }
  .logo-name { font-size: 28px; }
  .cat { padding: 16px 14px 10px; }
  .visit-map iframe { height: 320px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
}
