/* ==========================================================================
   Public menu (customer-facing) styles.
   Page transitions are driven by swup (see js/menu.js): while navigating,
   swup adds is-leaving / is-animating / is-rendering classes to <html>,
   and the rules at the bottom of this file animate the page from them.
   ========================================================================== */

/* ---- Font: Cairo, self-hosted ------------------------------------------ */
@font-face {
  font-family: defaultFont;
  src: url("../fonts/Cairo-Regular.ttf");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: defaultFont;
  src: url("../fonts/Cairo-Bold.ttf");
  font-weight: bold;
}
@font-face {
  font-family: defaultFont;
  src: url("../fonts/Cairo-SemiBold.ttf");
  font-weight: 500;
}

html, body, div {
  font-family: var(--t-base-font, defaultFont);
}
div {
  transition: width 2s, height 4s;
}

/* ---- Full-screen background photo (sits behind the page content) ------- */
.bg-image {
  position: fixed;
  inset: 0;            /* exactly the screen: never wider/taller than the phone */
  margin: 0;
  z-index: -100;
  color: white;
  background: url("../images/bg.jpg") no-repeat center;   /* fallback; the layout sets the real photo */
  background-size: cover;
}
/* Optional tint (--bg-overlay 0-1 of --bg-overlay-rgb, black by default) and blur (0-12px), set per page in Settings > Appearance. */
.bg-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(var(--bg-overlay-rgb, 0, 0, 0), var(--bg-overlay, 0));
}
.bg-image.is-blurred {
  filter: blur(var(--bg-blur, 0px));
  transform: scale(1.12);   /* hide the soft edges blur leaves at the borders (up to 12px) */
}

/* ---- Price list (section page) ------------------------------------------ */
td {
  font-weight: bold;
  font-size: 18px;
  color: white !important;
  padding-right: 10px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
tr {
  text-align: left;
  vertical-align: middle;
  padding: 0 !important;
  border: none !important;
}

/* The dotted leader between an item name and its price. */
.dot {
  display: block;
  height: 1px;
  width: 1px;
  padding: 1px;
  margin-top: 1px;
  border-radius: 50%;
  background-color: rgb(255, 255, 255);
}

/* ---- Text links --------------------------------------------------------- */
.link {
  font-size: 18px;
}
.link, .link:hover, .link:focus {
  text-decoration: none;
  padding: 0 !important;
  margin: 0 !important;
  color: #f29c1e;
}

/* ---- Buttons ------------------------------------------------------------ */
.myButton, .myButtonCircle {
  font-family: var(--t-base-font, defaultFont);
  font-size: 16px;
  font-weight: 500;
  background: var(--c-btn-bg, #dcd3c4);
  color: var(--c-btn-text, #273a54);
  border-style: none;
  transition: .3s;
}
/* "Contact us" / "Our location" (Settings > Colours > highlighted buttons). */
.myButton.is-accent {
  background: var(--c-accent-bg, #f29c1e);
  color: var(--c-accent-text, #ffffff);
}
.myButtonCircle {
  background: var(--c-back-bg, #dcd3c4);
  color: var(--c-back-text, #273a54);
}
.contact-icon { fill: var(--c-icons, #daa053); }
.myButton {
  width: 220px;
  height: 40px;
  margin: 4px;
  border-radius: 100px;
}
.myButtonCircle {
  width: 60px;
  height: 35px;
  border-radius: 20px;
}
.myButton:hover, .myButtonCircle:hover {
  transform: scale(1.15);
  border-style: none;
}

/* ---- Hero image (section / item / contact pages) ------------------------ */
.mainImage {
  height: 170px;
  width: 300px;
  min-height: 150px;
  min-width: 300px;
  padding: var(--c-frame-width, 1px);
  border-radius: 20px;
  background-color: var(--c-frame, #f29c1e);   /* thin frame around the photo */
}
.mainImage img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 20px;
}

/* ---- Logo intro (home page): grows in from 120% while fading in --------- */
#logo {
  margin-top: 15px;
  text-align: center;
  animation: fadein 1s;
}
@keyframes fadein {
  from {
    transform: scale(1.2);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ==========================================================================
   swup page transitions
   - .transition-swipe (page content): slides 800px to the left and fades
     out on leave, then slides back in from the left on enter.
   - .transition-fade (background photo): fades out and back in alongside.
   ========================================================================== */
.transition-fade {
  transition: .3s;
  opacity: 1;
}
html.is-animating .transition-fade,
html.is-leaving .transition-fade {
  opacity: 0;
}

.transition-swipe {
  text-align: center;
  color: white;
  transition: .3s;
  opacity: 1;
  transform: translateX(0);
}
html.is-animating .transition-swipe,
html.is-leaving .transition-swipe {
  opacity: 0;
  transform: translateX(-800px);
}

/* Price list: the original 350px, shrunk to fit narrower phones. It may be
   wider than the 320px column, so it is centred on the screen instead. */
.price-list-wrap { margin-inline: calc((min(350px, 100vw - 16px) - 100%) / -2); }
.price-list { width: min(350px, 100vw - 16px); }

/* The page sliding out must never make the window scroll sideways, and no
   scrollbar should flash while a page is swapped (scrolling itself still
   works; only the bar is hidden until the transition ends). */
html { overflow-x: hidden; }
body { overflow-x: hidden; overflow-x: clip; }
html.is-changing, html.is-animating, html.is-leaving, html.is-rendering,
html.is-changing body, html.is-animating body, html.is-leaving body, html.is-rendering body {
  scrollbar-width: none;
}
html.is-changing::-webkit-scrollbar, html.is-animating::-webkit-scrollbar,
html.is-leaving::-webkit-scrollbar, html.is-rendering::-webkit-scrollbar,
html.is-changing body::-webkit-scrollbar, html.is-animating body::-webkit-scrollbar,
html.is-leaving body::-webkit-scrollbar, html.is-rendering body::-webkit-scrollbar {
  display: none;
}

/* ---- Text groups (Settings > Fonts) -------------------------------------
   Each class reads its font, size and weight from CSS variables printed by
   menu/layout.blade.php. The fallbacks are the menu's original look.
   Kept last so they win over .link / .myButton (same specificity). */
.t-title     { font-family: var(--t-title-font, inherit);     font-size: var(--t-title-size, 20px);     font-weight: var(--t-title-weight, 700); }
.t-subtitle  { font-family: var(--t-subtitle-font, inherit);  font-size: var(--t-subtitle-size, 12px);  font-weight: var(--t-subtitle-weight, 400); }
.t-buttons   { font-family: var(--t-buttons-font, inherit);   font-size: var(--t-buttons-size, 15px);   font-weight: var(--t-buttons-weight, 500); }
.t-body      { font-family: var(--t-body-font, inherit);      font-size: var(--t-body-size, 13px);      font-weight: var(--t-body-weight, 400); }
.t-item-name { font-family: var(--t-item-name-font, inherit); font-size: var(--t-item-name-size, 15px); font-weight: var(--t-item-name-weight, 700); }
.t-item-meta { font-family: var(--t-item-meta-font, inherit); font-size: var(--t-item-meta-size, 11px); font-weight: var(--t-item-meta-weight, 400); }
.t-price     { font-family: var(--t-price-font, inherit);     font-size: var(--t-price-size, 36px);     font-weight: var(--t-price-weight, 700); }
.t-price sup { font-size: .55em; font-weight: 400; }
.t-contact   { font-family: var(--t-contact-font, inherit);   font-size: var(--t-contact-size, 18px);   font-weight: var(--t-contact-weight, 700); }
.t-contact.is-long { font-size: calc(var(--t-contact-size, 18px) * .85); }   /* long handles/emails */
.t-allergens { font-family: var(--t-allergens-font, inherit); font-size: var(--t-allergens-size, 15px); font-weight: var(--t-allergens-weight, 700); }
.t-allergen-name { font-family: var(--t-allergens-font, inherit); font-size: calc(var(--t-allergens-size, 15px) * .7); }
.t-notes     { font-family: var(--t-notes-font, inherit);     font-size: var(--t-notes-size, 11px);     font-weight: var(--t-notes-weight, 400); }
.t-footer    { font-family: var(--t-notes-font, inherit);     font-size: calc(var(--t-notes-size, 11px) + 1px); }
