:root {
  /* Taken from the logo and the shopfront */
  --ink: #231f20;
  --red: #d2401a;
  --amber: #f9a825;
  --lime: #8cc63f;
  --green: #2a8f38;
  --grey: #f1f1ef;
  --muted: #5c5757;
  --line: #d9d7d3;

  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 400 1.125rem/1.6 var(--body);
}

img, iframe { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--head);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
}

h2 { font-size: clamp(2.5rem, 5vw, 4rem); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

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

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 32px;
}

.skip {
  position: absolute;
  left: -9999px;
  background: #fff;
  padding: 8px 12px;
}
.skip:focus { left: 8px; top: 8px; z-index: 20; }

.btn {
  display: inline-block;
  padding: 16px 30px 15px;
  background: var(--red);
  color: #fff;
  font: 700 1.375rem/1 var(--head);
  text-transform: uppercase;
  letter-spacing: .03em;
  text-decoration: none;
}
.btn:hover { background: #fff; color: var(--ink); }

.btn-dark { background: var(--ink); }
.btn-dark:hover { background: var(--red); color: #fff; }

.tag {
  display: inline-block;
  margin: 0 0 20px;
  padding: 5px 10px 4px;
  background: var(--green);
  color: #fff;
  font: 600 1.125rem/1 var(--head);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.text-link {
  font-weight: 600;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.text-link:hover { color: var(--red); }

/* Header */

.site-header { background: var(--ink); color: #fff; }

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 8px;
}

.logo img { width: 136px; }

.nav { display: flex; gap: 32px; }

.nav a {
  padding: 6px 0;
  border-bottom: 3px solid transparent;
  font-weight: 500;
  font-size: 1.0625rem;
  text-decoration: none;
}
.nav a:hover, .nav a[aria-current] { border-color: var(--amber); }

.nav-toggle {
  display: none;
  padding: 8px 14px;
  background: none;
  border: 2px solid #fff;
  color: #fff;
  font: 600 1.125rem/1 var(--head);
  text-transform: uppercase;
  cursor: pointer;
}

/* Hero */

/* The photo has an empty dark area just left of centre, so the text sits there */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(50vw, 800px);
  padding: 56px 32px;
  background: var(--ink) url("../images/hero-bg.webp") center / cover no-repeat;
  color: #fff;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 560px;
  margin-right: 12%;
  padding: 28px 24px;
  background: radial-gradient(closest-side, rgb(24 22 23 / .82) 55%, rgb(24 22 23 / 0));
  text-align: center;
}

.hero .tag { margin-bottom: 16px; }

.hero h1 {
  font-size: clamp(3rem, 5.2vw, 5.25rem);
  line-height: .95;
  margin-bottom: 16px;
}

.hero-lead {
  max-width: 24em;
  margin-bottom: 24px;
  font-size: 1.1875rem;
  line-height: 1.45;
}

.hero-facts {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  color: #e4e1e1;
  font-size: 1.0625rem;
}

.stripe { display: flex; height: 10px; }
.stripe i { flex: 1; }
.stripe i:nth-child(1) { background: var(--red); }
.stripe i:nth-child(2) { background: var(--amber); }
.stripe i:nth-child(3) { background: var(--lime); }
.stripe i:nth-child(4) { background: var(--green); }

/* About */

.about {
  display: grid;
  grid-template-columns: 7fr 5fr;
  align-items: center;
  gap: 56px;
  padding-block: 88px;
}

.about h2 { margin-bottom: 16px; }
.about-text { max-width: 30em; }

/* Status strip (filled in by api/statusManager.js) */

.status-strip {
  position: static;
  padding: 7px 0;
  background: #4a4546;
  font: 500 .9375rem/1.35 var(--body);
  transition: none;
}
.status-strip.open { background: #1f7a2e; }
.status-strip.closed { background: var(--red); }
.status-strip-dot { flex: none; background: #fff !important; }

/* Page heading on menu and contact */

.page-head { background: var(--ink); color: #fff; padding-block: 44px; }

.page-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.page-head h1 { font-size: clamp(3.25rem, 7vw, 5.5rem); }

/* Dishes on the home page */

.dishes { padding-bottom: 88px; }

.dish-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 20px;
  min-height: 200px;
}

.dish img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 12px;
  background: var(--grey);
}

.dish h3 { font-size: 1.625rem; line-height: 1.1; }
.dish-price { margin: 4px 0 0; color: var(--muted); }

.dishes-more { margin: 40px 0 0; text-align: center; }

/* Menu page (filled in by api/app.js) */

.menu-page { padding-block: 40px 88px; }

.menu-message { padding: 48px 0; color: var(--muted); text-align: center; }

.menu-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 32px;
}

.menu-tab {
  padding: 9px 14px 8px;
  background: var(--grey);
  border: 0;
  color: var(--ink);
  font: 600 1.125rem/1 var(--head);
  text-transform: uppercase;
  letter-spacing: .02em;
  white-space: nowrap;
  cursor: pointer;
}
.menu-tab:hover { background: var(--line); }
.menu-tab.active { background: var(--ink); color: #fff; }

.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 56px;
  scroll-margin-top: 64px;
}

.menu-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.menu-card-img {
  flex: none;
  width: 88px;
  height: 88px;
  object-fit: cover;
  background: var(--grey);
}

.menu-card-body { flex: 1; min-width: 0; }
.menu-card-body h3 { font-size: 1.5rem; line-height: 1.1; }
.menu-card-body p { margin: 6px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.4; }

.menu-card-price { flex: none; text-align: right; }
.price { display: block; font-weight: 600; white-space: nowrap; }
.price small { color: var(--muted); font-size: .875rem; font-weight: 400; }

/* Offer popup from the POS (only appears when one is set in SIPO) */

.sipo-modal { background: var(--ink); border-radius: 0; }

/* Order */

.order { background: var(--red); color: #fff; padding-block: 80px; }

.order-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.order h2 { margin-bottom: 20px; }

.order-links { list-style: none; margin: 0; padding: 0; border-bottom: 2px solid #fff; }

.order-links a {
  position: relative;
  display: block;
  padding: 20px 56px 18px 0;
  border-top: 2px solid #fff;
  text-decoration: none;
}
.order-links a::after {
  content: "\2192";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  line-height: 1;
}
.order-links a:hover { background: var(--ink); padding-left: 16px; }

.order-links strong {
  display: block;
  font: 700 2.25rem/1.05 var(--head);
  text-transform: uppercase;
}
.order-links span { font-size: 1.0625rem; }

/* Gallery */

.gallery { padding-block: 88px; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 28px;
}
.section-head p { color: var(--muted); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.gallery-grid a { grid-column: span 2; display: block; overflow: hidden; }
.gallery-grid a:nth-child(1) { grid-column: span 4; grid-row: span 2; }
.gallery-grid a:nth-child(2) { grid-column: span 2; grid-row: span 2; }

.gallery-grid img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.gallery-grid a:hover img { opacity: .85; }

/* Gift cards */

.gift { background: var(--amber); padding-block: 56px; }

.gift-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
}

.gift h2 { margin-bottom: 8px; }

/* Review */

.review { background: var(--grey); padding-block: 72px; }

.review-grid {
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: 64px;
  align-items: end;
}

.review figure { margin: 0; }

.review blockquote {
  margin: 0 0 16px;
  font: 600 clamp(2rem, 4vw, 3.25rem)/1.08 var(--head);
}

.review figcaption { color: var(--muted); }

.rating strong {
  display: block;
  font: 700 4rem/1 var(--head);
  color: var(--red);
}

/* Contact */

.contact {
  display: grid;
  grid-template-columns: 7fr 5fr;
}

.map { width: 100%; height: 100%; min-height: 560px; border: 0; background: var(--grey); }

.contact-info { padding: 72px max(32px, calc((100vw - 1240px) / 2 + 32px)) 72px 56px; }

.contact-info dl { margin: 0 0 32px; }
.contact-info dl > div { padding: 14px 0; border-top: 1px solid var(--line); }
.contact-info dl > div:first-child { border-top: 0; padding-top: 0; }

.hours-row, .hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 3px 0;
}
.hours-row .time, .hours-list .time { text-align: right; }
.hours-row.today { font-weight: 600; color: var(--red); }

.hours-list { list-style: none; margin: 0; padding: 0; }
.hours-list li.today { font-weight: 600; color: var(--amber); }

.contact-info dt {
  font: 600 1.0625rem/1.2 var(--head);
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
}
.contact-info dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.contact-info dd a { text-underline-offset: 3px; }

/* Footer */

.site-footer {
  background: var(--ink);
  color: #fff;
  font-size: 1rem;
  padding-block: 56px 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1.2fr 1fr 1fr;
  gap: 40px;
}

.footer-logo { width: 170px; }

.site-footer h3 { font-size: 1.375rem; margin-bottom: 12px; }
.site-footer a { text-underline-offset: 3px; overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--amber); }

.copyright {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 24px;
  margin-top: 40px;
  color: #bdb9b9;
  font-size: .9375rem;
}
.copyright p {
  margin: 0;
  padding-top: 16px;
}

/* Lightbox */

.lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgb(20 18 18 / .96);
  color: #fff;
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: calc(100vw - 32px); max-height: calc(100dvh - 120px); }

.lightbox button {
  position: absolute;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  font: 600 1.25rem/1 var(--head);
  text-transform: uppercase;
  padding: 16px;
}
.lightbox button:hover { color: var(--amber); }
.lb-close { top: 4px; right: 8px; }
.lb-prev, .lb-next { bottom: 4px; font-size: 2rem !important; }
.lb-prev { left: calc(50% - 64px); }
.lb-next { right: calc(50% - 64px); }

/* Mobile bar */

.mobile-bar { display: none; }

/* Smaller screens */

@media (max-width: 1000px) {
  .nav { gap: 20px; }
  .nav a { font-size: 1rem; }
  .hero-text { padding: 56px 32px; }
  .about, .order-grid { gap: 40px; }
  .contact-info { padding: 56px 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-logo { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }

  .header-row { flex-wrap: wrap; }

  .nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    gap: 0;
    padding-bottom: 8px;
  }
  .nav.open { display: flex; }
  .nav a {
    padding: 12px 0;
    border-bottom: 0;
    border-top: 1px solid #4a4546;
    font-size: 1.125rem;
  }

  .about, .order-grid, .review-grid, .contact { grid-template-columns: 1fr; }

  .hero { min-height: 560px; padding: 40px 16px; }
  .hero-text { margin-right: 0; }

  .dish-grid { grid-template-columns: 1fr 1fr; }
  .dishes { padding-bottom: 56px; }

  .menu-grid { grid-template-columns: 1fr; }

  /* One swipeable row of categories that stays in view */
  .menu-tabs {
    position: sticky;
    top: 0;
    z-index: 5;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: -32px;
    padding: 10px 32px;
    background: #fff;
    scrollbar-width: none;
  }

  .about { padding-block: 56px; gap: 28px; }
  .order { padding-block: 56px; }
  .gallery { padding-block: 56px; }
  .review { padding-block: 56px; }
  .review-grid { gap: 32px; }

  .contact { display: flex; flex-direction: column-reverse; }
  .map { height: 380px; min-height: 0; }
  .contact-info { padding: 56px 32px; }

  .site-footer { padding-bottom: 84px; }

  .mobile-bar {
    position: fixed;
    inset: auto 0 0;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 2fr;
    font: 700 1.25rem/1 var(--head);
    text-transform: uppercase;
    text-align: center;
  }
  .mobile-bar a {
    padding: 18px 8px 17px;
    background: var(--ink);
    color: #fff;
    text-decoration: none;
  }
  .mobile-bar a:last-child { background: var(--red); }
}

@media (max-width: 560px) {
  .wrap { padding-inline: 16px; }
  .contact-info { padding: 44px 16px; }

  .menu-tabs { margin-inline: -16px; padding-inline: 16px; }
  .menu-card-img { width: 72px; height: 72px; }

  .logo img { width: 112px; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .gallery-grid a,
  .gallery-grid a:nth-child(2) { grid-column: span 1; grid-row: auto; }
  .gallery-grid a:nth-child(1) { grid-column: span 2; grid-row: auto; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-grid > div:nth-child(2) { grid-column: 1 / -1; }
}
