/* Eden Cafe & Restaurant
   Colours come from the logo and the booking widget theme: black and yellow.
   The blue is the dining room wall. */
:root {
  --ink: #111;
  --paper: #fff;
  --yellow: #f3d63f;
  --wall: #14344a;
  --grey: #5a5a5a;
  --line: #dcdcdc;
  --wrap: 1240px;
  --gutter: 24px;
  --header: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.55 "Jost", "Futura", "Century Gothic", sans-serif;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.site-header img, main > section img, .site-footer img, .lightbox img { display: block; max-width: 100%; }
h1, h2, h3 { font-weight: 500; line-height: 1.08; margin: 0; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 8vw, 104px) 0; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 22px;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: 500 1rem/1.2 inherit;
  font-family: inherit;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-yellow { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn-light { border-color: var(--paper); color: var(--paper); }
.btn-light:hover { background: var(--paper); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
a:focus-visible, button:focus-visible { outline: 3px solid #2a6df4; outline-offset: 2px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: flex-end; gap: 28px; height: var(--header); position: relative; }
.logo { position: absolute; left: var(--gutter); top: 50%; transform: translateY(-50%); z-index: 2; }
.logo img { width: 62px; height: auto; }
.main-nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.main-nav a { color: var(--ink); font-weight: 500; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current] { border-bottom-color: var(--yellow); }
.header-inner .btn { background: var(--yellow); border-color: var(--yellow); padding: 10px 18px; }
.header-inner .btn:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 28px; height: 3px; background: var(--ink); margin: 5px 0; }

/* Hero */
.hero { position: relative; background: var(--ink); }
/* The photo is a wide spread of plates, so it shows whole with the title in a band below it */
.hero > img { width: 100%; height: auto; aspect-ratio: 2103 / 748; max-height: 72vh; object-fit: cover; }
.hero-sign { color: var(--paper); padding: 28px 0 32px; }
.hero-sign h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); line-height: 1; }
.hero-sign p { font-size: 1.25rem; margin: 14px 0 24px; }
@media (min-width: 1041px) {
  .hero-sign { display: grid; grid-template-columns: 1fr auto; column-gap: 40px; align-items: center; }
  .hero-sign h1 { font-size: clamp(2.5rem, 4.2vw, 3.6rem); }
  .hero-sign p { grid-column: 1; margin-bottom: 0; }
  .hero-sign .btn-row { grid-column: 2; grid-row: 1 / span 2; }
}

/* Status strip (filled in by api/statusManager.js) */
.status-strip, .status-strip.open, .status-strip.closed, .status-strip.error {
  position: static;
  background: var(--yellow);
  color: var(--ink);
  padding: 7px var(--gutter);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
}
.status-strip-dot { width: 10px; height: 10px; flex: none; background: #888; box-shadow: 0 0 0 1px var(--ink); }

/* Three way-in panels */
.ways h2 { margin-bottom: 36px; }
.ways-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.way { display: block; background: var(--ink); color: var(--paper); text-decoration: none; }
.way img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.way span { display: block; padding: 16px 20px; font-size: 1.4rem; font-weight: 500; }
.way:hover span { background: var(--yellow); color: var(--ink); }

/* Online ordering */
.ordering { background: var(--ink); color: var(--paper); }
.ordering-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.ordering h2 { margin-bottom: 18px; }
.ordering h2 em { font-style: normal; color: var(--yellow); }
.order-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid #444; }
.order-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 20px 4px; border-bottom: 1px solid #444; color: var(--paper); text-decoration: none; font-size: 1.5rem; font-weight: 500; }
.order-list small { font-size: 1rem; font-weight: 400; color: #bbb; text-align: right; }
.order-list a:hover { background: var(--yellow); color: var(--ink); padding-left: 14px; padding-right: 14px; }
.order-list a:hover small { color: var(--ink); }

/* Gift cards */
.gift { background: var(--yellow); padding: clamp(36px, 5vw, 56px) 0; scroll-margin-top: var(--header); }
.gift-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.gift p { margin: 8px 0 0; font-size: 1.2rem; }
.btn-dark { background: var(--ink); color: var(--paper); padding: 16px 28px; }
.btn-dark:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }

/* About */
.about-grid { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.about-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.about-photos img { width: 100%; height: auto; object-fit: cover; }
.about-photos .wide { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.about-photos .small { aspect-ratio: 1; }
.about h2 { margin-bottom: 24px; }
.about .lead { font-size: 1.35rem; line-height: 1.4; }
.about .btn-row { margin-top: 28px; }

/* Gallery */
.gallery { padding-top: 0; }
.gallery h2 { margin-bottom: 8px; }
.gallery .sub { color: var(--grey); margin-bottom: 32px; font-size: 1.2rem; }
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 15vw; gap: 6px; }
.photo-grid button { padding: 0; border: 0; background: var(--ink); cursor: zoom-in; overflow: hidden; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; }
.photo-grid button:hover img { opacity: .85; }
.span-2 { grid-column: span 2; grid-row: span 2; }
.tall { grid-row: span 2; }
.wide-1 { grid-column: span 2; }
@media (min-width: 1240px) { .photo-grid { grid-auto-rows: 200px; } }

.lightbox { padding: 0; border: 0; background: transparent; max-width: 94vw; max-height: 94vh; }
.lightbox::backdrop { background: rgba(0, 0, 0, .88); }
.lightbox img { max-width: 94vw; max-height: 84vh; margin: 0 auto; }
.lightbox-bar { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-top: 8px; color: #fff; }
.lightbox-bar button { background: var(--yellow); border: 0; padding: 8px 14px; font: 500 1rem "Jost", sans-serif; cursor: pointer; color: var(--ink); }

/* Contact */
.contact { background: var(--wall); color: var(--paper); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); }
.contact dl { margin: 0; }
.contact dt { font-size: 1rem; color: var(--yellow); }
.contact dd { margin: 0 0 22px; font-size: 1.35rem; line-height: 1.3; overflow-wrap: anywhere; }
.contact dd a { color: inherit !important; text-decoration: underline !important; text-decoration-thickness: 1px !important; text-underline-offset: 4px; }
.contact dd small { display: block; margin-top: 4px; font-size: 1rem; line-height: 1.4; color: #cfd8de; }
.hours-title { font-size: 1.5rem; margin-bottom: 12px; }
.hours-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 8px; border-top: 1px solid rgba(255, 255, 255, .25); }
.hours-row .time { text-align: right; }
.hours-row.today { background: var(--yellow); color: var(--ink); border-top-color: transparent; font-weight: 500; }
.map iframe { display: block; width: 100%; height: clamp(340px, 50vh, 500px); border: 0; }

/* Footer */
.site-footer { background: var(--ink); color: var(--paper); padding: 48px 0 32px; font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: auto 1fr auto minmax(250px, auto); gap: 40px; align-items: start; }
.footer-grid img.mark { width: 92px; height: auto; background: var(--ink); }
.foot-links { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 40px; max-width: 300px; }
.foot-links li { margin-bottom: 4px; }
.foot-contact p { margin: 8px 0 0; }
.foot-title { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.foot-hours { list-style: none; margin: 0; padding: 0; }
.foot-hours li { display: flex; justify-content: space-between; gap: 24px; padding: 2px 6px; }
.foot-hours .time { text-align: right; }
.foot-hours li.today { background: var(--yellow); color: var(--ink); font-weight: 500; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 36px; padding-top: 20px; border-top: 1px solid #333; color: #bbb; font-size: .95rem; }
.credits { display: inline-flex; flex-wrap: wrap; gap: 8px 20px; }

/* Phone call-to-action bar */
.call-bar { display: none; }

/* Page title band (menu and bookings) */
.page-title { background: var(--ink); color: var(--paper); padding: clamp(48px, 7vw, 80px) 0 clamp(28px, 4vw, 44px); }
.page-title h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); }
.page-title p { margin: 10px 0 0; font-size: 1.2rem; max-width: 40em; }
.page-title .btn-row { margin-top: 20px; }

/* Menu page */
.menu-layout { display: grid; grid-template-columns: 220px 1fr; gap: 56px; align-items: start; padding-top: 48px; padding-bottom: 80px; }
.menu-tabs { position: sticky; top: calc(var(--header) + 20px); max-height: calc(100vh - var(--header) - 40px); overflow-y: auto; display: flex; flex-direction: column; align-items: stretch; }
.menu-tab { padding: 6px 10px; border: 0; background: none; color: var(--ink); font: inherit; line-height: 1.25; text-align: left; cursor: pointer; }
.menu-tab:hover { text-decoration: underline; }
.menu-tab.active { background: var(--yellow); font-weight: 500; }
.menu-cat-title { font-size: clamp(1.8rem, 3vw, 2.4rem); padding-bottom: 10px; margin-bottom: 18px; border-bottom: 3px solid var(--ink); }
#api-menu-grid { scroll-margin-top: calc(var(--header) + 16px); }
.menu-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px 48px; margin: 0; padding: 0; list-style: none; }
.dish { display: flex; gap: 14px; align-items: flex-start; }
.dish-photo { flex: none; width: 88px; height: 88px; object-fit: cover; background: #eee; }
.dish-text { flex: 1; min-width: 0; }
.dish-line { display: flex; align-items: baseline; gap: 8px; font-weight: 500; }
.dish-line i { flex: 1; border-bottom: 2px dotted #aaa; transform: translateY(-4px); min-width: 16px; }
.dish-line b { font-weight: 500; white-space: nowrap; }
.dish-sizes { display: flex; flex-wrap: wrap; gap: 2px 16px; margin: 2px 0 0; font-size: 1rem; }
.dish-sizes b { font-weight: 500; }
.dish-desc { margin: 2px 0 0; color: var(--grey); font-size: 1rem; line-height: 1.4; }
.menu-status { padding: 24px 0; }

/* Booking page */
.booking { background: var(--ink); color: var(--paper); margin-top: -1px; padding: 8px 0 80px; }
.booking-grid { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.booking-side img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 20px; }
.booking-side a { color: var(--yellow) !important; }
.booking-side h2 { font-size: 1.5rem; margin-bottom: 8px; }
.booking-side p { margin-bottom: 22px; }
#rd-widget-frame { max-width: 600px; min-height: 420px; }

/* Tablet and phone */
@media (max-width: 1040px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { display: block; padding: 11px 0; font-size: 1.2rem; }
  .header-inner { gap: 10px; }
}
@media (max-width: 860px) {
  .ways-grid, .ordering-grid, .about-grid, .contact-grid, .booking-grid { grid-template-columns: 1fr; }
  .about-grid .about-photos { order: 2; }
  .photo-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 44vw; }
  .tall, .wide-1 { grid-column: auto; grid-row: auto; }
  .photo-grid button:last-child { grid-column: span 2; }
  .menu-layout { display: block; padding-top: 0; }
  .menu-tabs { position: sticky; top: var(--header); z-index: 5; flex-direction: row; gap: 4px; margin: 0 calc(var(--gutter) * -1) 28px; padding: 8px var(--gutter); max-height: none; overflow-x: auto; overflow-y: hidden; background: var(--paper); border-bottom: 1px solid var(--line); }
  .menu-tab { flex: none; white-space: nowrap; }
  #api-menu-grid { scroll-margin-top: calc(var(--header) + 64px); }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; --header: 68px; }
  body { font-size: 17px; padding-bottom: 56px; }
  .status-strip, .status-strip.open, .status-strip.closed, .status-strip.error { padding-left: 8px; padding-right: 8px; font-size: .8rem; }
  .logo img { width: 54px; }
  .header-inner .btn { display: none; }
  .main-nav ul { padding-left: 0; }
  .hero > img { height: 62vw; min-height: 260px; aspect-ratio: auto; max-height: none; }
  .hero-layer .wrap { padding: 0; }
  .hero-sign { padding: 28px var(--gutter) 32px; }
  .hero-sign .btn-row .btn { flex: 1 1 100%; }
  .gift-inner .btn { flex: 1 1 100%; }
  .menu-items { grid-template-columns: 1fr; }
  .order-list a { font-size: 1.3rem; }
  .call-bar { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding-bottom: env(safe-area-inset-bottom); background: var(--ink); }
  .call-bar a { padding: 16px 4px; text-align: center; color: var(--paper); font-weight: 500; text-decoration: none; }
  .call-bar a:last-child { background: var(--yellow); color: var(--ink); }
}

/* Offer popup, if the owner ever switches one on in SIPO */
.sipo-modal .btn { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
