/* ─── Fonts ─── */
@font-face {
  font-family: 'Monotype Corsiva';
  src: url('fonts/Monotype_Corsiva_Regular.ttf') format('truetype');
  font-style: italic;
}

/* ─── Reset & base ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #1a1a1a;
  background: #fffac0;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* ─── Menu layout (flex, full viewport) ─── */
.menu-layout {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.menu-nav {
  flex-shrink: 0;
  background: #b31d0d;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.menu-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .6rem 1rem;
  min-height: 56px;
}

/* ─── Home page nav ─── */
.nav-categories {
  background: #b31d0d;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .6rem 1rem;
  min-height: 56px;
}

.nav-brand {
  font-family: 'Monotype Corsiva', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 2.25rem;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem;
  flex: 1;
}

.nav-links a {
  color: #fdd;
  text-decoration: none;
  font-size: 1rem;
  white-space: nowrap;
  padding: .3rem .7rem;
  border-radius: 4px;
  transition: background .15s, color .15s;
}

.nav-links a:hover { background: #8a1508; color: #fff; }

/* ─── Content wrapper ─── */
.home-main {
  max-width: 820px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.menu-content {
  flex: 1;
  overflow-y: auto;
}

.menu-content-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.page-header {
  text-align: center;
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: 1.8rem;
  font-weight: 700;
}

/* ─── Sections ─── */
.section { margin-bottom: 2rem; }

.section h2 {
  font-family: 'Monotype Corsiva', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 2.4rem;
  margin-bottom: .75rem;
  padding-bottom: .3rem;
  border-bottom: 2px solid #999;
}

.section h3 {
  font-family: 'Monotype Corsiva', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 1.9rem;
  color: #003399;
  margin-top: .6rem;
  margin-bottom: .3rem;
}

/* ─── Items ─── */
.item {
  margin-bottom: .35rem;
  page-break-inside: avoid;
}

.item-header {
  display: flex;
  align-items: baseline;
  gap: .3rem;
}

.item-name {
  font-weight: 600;
  white-space: nowrap;
}

.item-dot-fill {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  min-width: .3cm;
  font-size: 0;
}

.item-dot-fill::before {
  content: "· · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · ·";
  font-size: 10px;
  letter-spacing: .15em;
  color: #bbb;
}

.price {
  margin-left: auto;
  font-size: .88rem;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.item-detail {
  font-size: .88rem;
  color: #666;
}

.item-detail + .item-detail { margin-top: .1rem; }

.item-price {
  font-size: .88rem;
  font-weight: 600;
  color: #333;
  font-variant-numeric: tabular-nums;
}

/* ─── Grid sections (e.g. Pizzas) ─── */
.section[data-grid] .item {
  break-inside: avoid;
}
.section[data-grid] {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .25rem 1.5rem;
  align-items: start;
  min-width: 0;
}
.section[data-grid] > * {
  min-width: 0;
}
.section[data-grid] h2,
.section[data-grid] h3,
.section[data-grid] .item-note {
  grid-column: 1 / -1;
}
.section[data-grid] .item-note {
  margin-bottom: .25rem;
}
.section[data-grid] .item:has(.item-price) .item-header {
  display: block;
}

/* ─── Home page ─── */
.hero {
  text-align: center;
  padding: 3rem 1rem;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: .5rem;
}

.hero .subtitle {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 2rem;
}

.hero .btn {
  display: inline-block;
  padding: .75rem 2rem;
  background: #b31d0d;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background .15s;
}

.hero .btn:hover { background: #8a1508; }

.infos {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.infos h2 {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #888;
  margin-bottom: .3rem;
}

.infos p { color: #333; }

/* ─── Footer ─── */
.page-footer {
  flex-shrink: 0;
  text-align: center;
  font-size: .82rem;
  color: #999;
  padding: 2rem 1rem;
  border-top: 1px solid #e0e0e0;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .menu-nav-inner { flex-wrap: wrap; min-height: 48px; gap: .3rem .5rem; padding: .4rem .6rem; }
  .nav-inner { flex-wrap: wrap; min-height: 48px; gap: .3rem .5rem; padding: .4rem .6rem; }
  .nav-links { flex: 1 1 100%; }
  .nav-brand { font-size: 1.5rem; }
  .nav-links a { font-size: .9rem; padding: .25rem .4rem; }
  .page-header h1 { font-size: 1.4rem; }
  .section h2 { font-size: 1.8rem; }
  .section h3 { font-size: 1.5rem; }
  .menu-content-inner { padding: 1rem .75rem 2rem; }
  .home-main { padding: 1rem .75rem 2rem; }
  .hero h1 { font-size: 1.8rem; }
  .infos { grid-template-columns: 1fr; gap: 1rem; }
}

@media (max-width: 480px) {
  .nav-links a { font-size: .9rem; padding: .2rem .35rem; }
  .item-name { font-size: .9rem; }
  .price { font-size: .9rem; }
  .item-detail { font-size: .8rem; }
}

@media (max-width: 600px) {
  .section[data-grid] { grid-template-columns: 1fr; }
}
