/*
 * site.css: the only stylesheet for this site.
 *
 * Sections, in order:
 *   1. Tokens        colours, fonts, spacing, breakpoints (custom properties)
 *   2. Fonts         @font-face for self-hosted fonts
 *   3. Base          reset and element defaults
 *   4. Layout        container, sections, grids
 *   5. Components    one block per component: "=== Component: <name> ==="
 *   6. Pages         rare page-specific rules: "=== Page: <path> ==="
 *   7. Utilities     a handful of helpers
 *
 * Breakpoints (match the original site; media queries can't use custom properties):
 *   mobile  ≤ 767px    tablet 768px–1024px    desktop ≥ 1025px  (Elementor defaults, as the original)
 *   Header nav collapses to the burger at ≤ 1024px; columns stack at ≤ 1024px (about, menu, contact) or ≤ 767px (price rows).
 *
 * Editing: change tokens to restyle the site; add new components as new blocks;
 * add modifier classes (.card--wide) instead of changing a component for one page.
 */

/* ============ 1. Tokens ============ */
:root {
  /* Colours (from the original's computed styles) */
  --color-salmon: #ff8b66;        /* header, prices, accents */
  --color-dark: #161616;          /* section backgrounds, mobile menu */
  --color-black: #000000;         /* active mobile menu row */
  --color-white: #ffffff;
  --color-text: rgb(255 255 255 / 0.8);      /* body copy on dark (#FFFFFFCC) */
  --color-nav-active: rgb(255 255 255 / 0.46); /* current / hovered header link */
  --color-line: rgb(255 255 255 / 0.18);     /* short divider under "Bento Bento Sushi" (#FFFFFF2E) */
  --color-line-strong: rgb(255 255 255 / 0.2); /* phone/email separator (#FFFFFF33) */
  --color-button-border: rgb(255 255 255 / 0.333); /* "See all" outline (#FFFFFF55) */
  --color-primary: var(--color-salmon);

  /* Typography (all self-hosted Google Fonts, see section 2) */
  --font-display: "Staatliches", sans-serif;  /* logo, headings, copyright */
  --font-body: "Karla", sans-serif;           /* body copy, menu items */
  --font-ui: "Montserrat", sans-serif;        /* nav, buttons, small labels */
  --font-menu: "Lato", sans-serif;            /* mobile dropdown menu */
  --font-popup: "DM Sans", sans-serif;        /* offer popup */
  --text-base: 1rem;
  --leading: 1.6;

  /* Layout */
  --header-height: 80px;          /* desktop/tablet; 120px on mobile (stacked) */
  --section-pad-y: 100px;
  --section-pad-x: 50px;
  --col-pad: 10px;                /* Elementor column padding */
  --widget-gap: 20px;             /* Elementor default space between widgets */

  /* Motion */
  --duration: 300ms;
  --ease: ease;
}
@media (max-width: 767px) {
  :root { --section-pad-y: 50px; }
}

/* ============ 2. Fonts ============ */
/* Self-hosted Google Fonts (latin subset, woff2). Karla, Montserrat and DM Sans are variable files. */
@font-face { font-family: "Staatliches"; src: url("/assets/fonts/staatliches-latin-400.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Karla"; src: url("/assets/fonts/karla-latin-var.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Karla"; src: url("/assets/fonts/karla-latin-var-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/assets/fonts/montserrat-latin-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Lato"; src: url("/assets/fonts/lato-latin-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/assets/fonts/dm-sans-latin-var.woff2") format("woff2"); font-weight: 100 1000; font-style: normal; font-display: swap; }

/* ============ 3. Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); font-size: var(--text-base); font-weight: 300; line-height: var(--leading); color: var(--color-text); background: var(--color-dark); }
img, svg, video, iframe { max-width: 100%; }
img, video { height: auto; display: block; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 400; }
p { margin: 0; }
a { color: var(--color-primary); transition: color var(--duration) var(--ease), background-color var(--duration) var(--ease); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--color-white); outline-offset: 2px; }

/* ============ 4. Layout ============ */
/* Full-width dark section with the original's 100px/50px padding (50px all round on mobile). */
.section { padding: var(--section-pad-y) var(--section-pad-x); background: var(--color-dark); }
.section__inner { margin-inline: auto; padding: var(--col-pad); }
/* Contact block: 1000px box; the original's nested columns leave 20px more on the right. */
.section__inner--narrow { max-width: 1000px; padding-right: calc(3 * var(--col-pad)); }
/* Two equal columns from 1025px, stacked below (Elementor's tablet breakpoint).
 * .split--wide: the price lists, 60px apart; stacked, each list keeps a 50px bottom margin. */
.split { display: grid; grid-template-columns: 1fr; row-gap: calc(2 * var(--col-pad)); }
@media (max-width: 1024px) { .split--wide > * { margin-bottom: 50px; } }
@media (min-width: 1025px) {
  .split { grid-template-columns: 1fr 1fr; column-gap: calc(2 * var(--col-pad)); row-gap: 0; }
  .split--wide { column-gap: 60px; }
}
/* Running text block: paragraphs keep Elementor's 1em top/bottom margins. */
.prose { display: flow-root; }
.prose p { margin: 1em 0; }

/* ============ 5. Components ============ */

/* === Component: skip-link === */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 10000; padding: 0.5rem 1rem; background: var(--color-white); color: var(--color-dark); }
.skip-link:focus { left: 1rem; }

/* === Component: site-header ===
 * Fixed salmon bar over the page (the original has no body offset, so it covers the top
 * 80px of each section it scrolls over; kept like for like).
 * Desktop: logo left; nav on one line and the outlined "Download App" button below it, right-aligned.
 * ≤1024px: burger + button on the right; the nav becomes a dark dropdown under the bar.
 * ≤767px: logo centred on its own line, burger + button centred below (bar is 120px). */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 9995; background: var(--color-salmon); padding: 0 5%; }
.site-header__inner { display: flex; align-items: center; min-height: var(--header-height); }
.site-header__brand { flex: 0 0 34.751%; padding: var(--col-pad) 0; }
.site-header__logo { font-family: var(--font-display); font-size: 2rem; font-weight: 400; line-height: 1; letter-spacing: 2px; color: var(--color-white); }
.site-header__actions { flex: 1 1 auto; display: flex; flex-wrap: wrap; align-items: center; align-content: center; justify-content: flex-end; }
.site-header__button { margin-left: 40px; }

.site-nav__list { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.site-nav__list a { display: block; padding: 0; margin: 0 20px; font-family: var(--font-ui); font-size: 12px; font-weight: 400; line-height: 24px; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; color: var(--color-white); }
.site-nav__list li:first-child a { margin-left: 0; }
.site-nav__list li:last-child a { margin-right: 0; }
.site-nav__list a:hover, .site-nav__list a:focus-visible, .site-nav__list a.is-active { color: var(--color-nav-active); }
/* The current page link ("Home") is dimmed unless an in-page section link is active (Elementor anchor menu). */
.site-nav:not(:has(a.is-active)) a[aria-current="page"] { color: var(--color-nav-active); }

/* Burger toggle: 35px outlined square, 44px hit area. */
.nav-toggle { display: none; position: relative; width: 35px; height: 35px; padding: 5.5px; border: 1px solid var(--color-white); background: transparent; color: var(--color-white); cursor: pointer; }
.nav-toggle::before { content: ""; position: absolute; inset: -5px; }
.nav-toggle svg { display: block; width: 22px; height: 22px; }
.nav-toggle__close { display: none !important; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none !important; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block !important; }

/* Desktop: a zero-height flex break puts the button on its own line under the nav. */
.site-header__break { flex-basis: 100%; height: 0; }
@media (max-width: 1024px) {
  .site-header__brand { flex-basis: 60%; }
  .site-header__break { display: none; }
  .site-header__button { margin-left: 20px; }
  .nav-toggle { display: block; }
  /* Dropdown under the bar: grid 0fr -> 1fr slide (align-items: stretch keeps the list clipped while it animates). */
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; display: grid; grid-template-rows: 0fr; align-items: stretch; background: var(--color-dark); transition: grid-template-rows var(--duration) var(--ease); }
  .site-nav.is-open { grid-template-rows: 1fr; border-top: 1px solid var(--color-white); }
  .site-nav.is-instant { transition: none; }
  .site-nav__list { display: block; overflow: hidden; min-height: 0; visibility: hidden; transition: visibility 0s linear var(--duration); }
  .site-nav.is-open .site-nav__list { visibility: visible; transition: none; }
  .site-nav__list a { margin: 0; padding: 30px 40px; font-family: var(--font-menu); font-size: 14px; font-weight: 300; line-height: 24px; letter-spacing: 1.53px; color: var(--color-white); }
  .site-nav__list a:hover, .site-nav__list a:focus-visible, .site-nav__list a.is-active, .site-nav:not(:has(a.is-active)) a[aria-current="page"] { color: var(--color-white); background: var(--color-black); }
}
@media (max-width: 767px) {
  :root { --header-height: 120px; }
  .site-header { padding: 20px; }
  .site-header__inner { flex-direction: column; min-height: 0; }
  .site-header__brand { flex: none; width: 100%; padding: 0; margin-bottom: 20px; text-align: center; }
  .site-header__logo { font-size: 1.4rem; }
  .site-header__actions { width: 100%; justify-content: center; flex-wrap: nowrap; }
  .site-header__button { margin-left: 8px; padding-inline: 10px; }
}

/* === Component: button ===
 * .button--outline-light: white 1px outline on salmon (header "Download App").
 * .button--ghost: faint outline on dark ("See all").
 * .button--popup: white block, salmon text (popup "Order Now"). */
.button { display: inline-block; text-align: center; text-decoration: none; cursor: pointer; border: 0; background: none; transition: background-color var(--duration) var(--ease), color var(--duration) var(--ease); }
.button--outline-light { padding: 10px 15px; border: 1px solid var(--color-white); background: var(--color-salmon); color: var(--color-white); font-family: var(--font-ui); font-size: 12px; font-weight: 400; line-height: 1.3; letter-spacing: 1px; text-transform: uppercase; }
.button--outline-light:hover, .button--outline-light:focus-visible { background: transparent; color: var(--color-white); }
.button--ghost { padding: 15px 25px; border: 1px solid var(--color-button-border); color: var(--color-white); font-family: var(--font-ui); font-size: 12px; font-weight: 300; line-height: 1; letter-spacing: 1px; text-transform: uppercase; }
.button--ghost:hover, .button--ghost:focus-visible { color: var(--color-white); }
.button--popup { padding: 15px 40px; background: var(--color-white); color: var(--color-salmon); font-family: var(--font-popup); font-size: 18px; font-weight: 900; line-height: 1; text-transform: uppercase; }
.button--popup:hover, .button--popup:focus-visible { background: var(--color-salmon); color: var(--color-white); }
@media (max-width: 767px) { .button--popup { font-size: 16px; } }

/* === Component: hero ===
 * Full-viewport image with a 40% salmon overlay and the centred logo. Like the original it is
 * 100vh tall and pulled up 80px under the fixed header; the image is fixed (parallax-like)
 * from 1025px and scrolls on smaller screens. */
.hero { position: relative; display: flex; align-items: center; justify-content: center; min-height: 100vh; margin-top: -80px; padding: 0 var(--col-pad); background: var(--hero-image) center / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--color-salmon); opacity: 0.4; }
.hero__logo { position: relative; width: 100%; max-width: 550px; }
@media (min-width: 1025px) { .hero { background-attachment: fixed; } }
@media (max-width: 767px) { .hero__logo { max-width: 230px; } }

/* === Component: image-band ===
 * 650px decorative photo strip between sections, 32% dark overlay; fixed background from 1025px. */
.image-band { position: relative; min-height: 650px; background: var(--band-image) center / cover no-repeat; }
.image-band::before { content: ""; position: absolute; inset: 0; background: var(--color-dark); opacity: 0.32; }
@media (min-width: 1025px) { .image-band { background-attachment: fixed; } }

/* === Component: section headings === */
.heading-xl { font-family: var(--font-display); font-size: 3rem; font-weight: 300; line-height: 1.3; letter-spacing: 1px; text-transform: uppercase; color: var(--color-white); margin-bottom: var(--widget-gap); }
.heading-lg { font-family: var(--font-display); font-size: 2rem; font-weight: 300; line-height: 1.3; letter-spacing: 1px; text-transform: uppercase; color: var(--color-white); margin-bottom: var(--widget-gap); }
.heading-title { font-family: var(--font-display); font-size: 2.6rem; font-weight: 400; line-height: 1; letter-spacing: 1px; color: var(--color-white); text-align: center; margin-bottom: 40px; }
@media (max-width: 767px) {
  .heading-xl { font-size: 2rem; }
  .heading-title { font-size: 2rem; }
}

/* === Component: about (text column + image column) === */
.about__text .prose { padding-right: 75px; margin-bottom: var(--widget-gap); }
.about__text .prose:last-child { margin-bottom: 0; }
.about__media { display: flex; justify-content: flex-end; align-items: flex-start; }
.about__media img { width: 100%; max-width: 600px; }
@media (max-width: 767px) { .about__text .prose { padding-right: 0; } }

/* === Component: menu-list (price list with dotted leaders) ===
 * <div class="menu-list"><p class="menu-list__kicker">…</p><h3 class="menu-list__title">…</h3>
 *   <ul class="menu-list__items"><li class="menu-list__item"><span class="menu-list__name">…</span>
 *   <span class="menu-list__leader"></span><span class="menu-list__price">£6.00</span></li></ul>
 *   <p class="menu-list__more"><a class="button button--ghost">See all</a></p></div>
 * Name + leader take 88.855% of the row, the price the rest; on mobile the price drops below. */
.menu-list__kicker { font-family: var(--font-body); font-size: 1.1rem; font-weight: 300; line-height: 1; color: var(--color-text); text-align: center; margin-bottom: 5px; }
.menu-list__kicker::after { content: ""; display: block; width: 160px; margin: 5px auto 0; border-top: 1px solid var(--color-line); }
.menu-list__title { margin-top: 40px; }
.menu-list__items { list-style: none; margin: 0 0 30px; padding: 0; }
.menu-list__item { display: flex; flex-wrap: wrap; margin-bottom: 10px; font-family: var(--font-body); font-size: 1.1rem; font-weight: 300; line-height: 20px; }
.menu-list__item:last-child { margin-bottom: 40px; }
.menu-list__main { display: flex; align-items: flex-end; width: 88.855%; padding: var(--col-pad); }
.menu-list__name { color: var(--color-text); }
.menu-list__leader { flex: 1; margin: 0 0 4px 10px; border-top: 1px dotted var(--color-text); }
.menu-list__price { width: 11.074%; padding: var(--col-pad); color: var(--color-salmon); white-space: nowrap; }
.menu-list__more { text-align: center; }
@media (max-width: 767px) {
  .menu-list__main, .menu-list__price { width: 100%; }
}

/* === Component: contact-details (centred text, phone | email, address) === */
.contact { padding-bottom: 0; }
.contact .section__inner { padding-bottom: 0; }
.contact__intro { max-width: 700px; margin: 0 auto 100px; padding: 0 50px; text-align: center; }
.contact__intro p:last-child { margin-bottom: 0; }
.contact__cols { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 100px; text-align: center; }
.contact__col:first-child { border-right: 1px solid var(--color-line-strong); }
.contact__label { font-family: var(--font-ui); font-size: 0.7rem; font-weight: 300; line-height: 1; letter-spacing: 1px; text-transform: uppercase; color: var(--color-salmon); margin-bottom: 25px; }
.contact__value { font-family: var(--font-body); font-size: 1.4rem; font-weight: 300; line-height: 1.2; letter-spacing: 1px; color: var(--color-text); }
.contact__address { font-family: var(--font-body); font-size: 1.4rem; font-weight: 300; line-height: 1.5; letter-spacing: 1px; text-align: center; color: var(--color-text); margin-bottom: 100px; }
@media (max-width: 1024px) {
  .contact__cols { grid-template-columns: 1fr; }
  .contact__col:first-child { border-right: 0; border-bottom: 1px solid var(--color-line-strong); padding-bottom: 30px; }
  .contact__col + .contact__col { padding-top: 30px; }
}
@media (max-width: 767px) {
  .contact__intro { padding: 0; }
  .contact__value--phone { font-size: 1rem; }
  .contact__value--email { font-size: 0.8rem; }
}

/* === Component: site-footer ===
 * Continues the dark contact section: "© Bento Bento" (Staatliches) and the italic credit line. */
.site-footer { background: var(--color-dark); padding: 0 var(--section-pad-x) calc(var(--section-pad-y) + var(--col-pad)); text-align: center; color: var(--color-text); }
.site-footer__inner { max-width: 1000px; margin-inline: auto; padding: 0 calc(3 * var(--col-pad)) 0 var(--col-pad); }
.site-footer__copyright { font-family: var(--font-display); font-size: 1.4rem; font-weight: 300; line-height: 1.5; letter-spacing: 1px; margin-bottom: 20px; }
.site-footer__credit { font-family: var(--font-body); font-size: 1rem; font-weight: 300; font-style: italic; line-height: 1.5; letter-spacing: 1px; }
.site-footer__credit a { color: var(--color-salmon); text-decoration: none; }

/* === Component: contact-email (replaces WordPress forms; unused on this site, kept for future forms) === */
.contact-email { display: grid; gap: 1rem; justify-items: center; text-align: center; }
.contact-email__address { font-family: var(--font-body); font-size: 1.4rem; letter-spacing: 1px; color: var(--color-text); word-break: break-word; }

/* === Component: popup ("30% Off First Order") ===
 * Native <dialog>, opened on load on every page view (site.js data-popup-every-view).
 * Full-height 400px panel on the left (370px at ≤1024px), 80% black backdrop,
 * fade-in-left 1.2s as Elementor's fadeInLeft. */
.popup { position: fixed; inset: 0 auto 0 0; margin: 0; padding: 0; border: 0; width: 400px; max-width: 100%; height: 100vh; max-height: 100vh; overflow-x: hidden; overflow-y: auto; background: var(--color-white); box-shadow: 2px 8px 23px 3px rgb(0 0 0 / 0.2); }
.popup[open] { animation: popup-fade-in-left 1.2s both; }
.popup::backdrop { background: rgb(0 0 0 / 0.8); }
@keyframes popup-fade-in-left { from { opacity: 0; transform: translate3d(-100%, 0, 0); } to { opacity: 1; transform: none; } }
.popup__body { position: relative; min-height: 100vh; padding: 60px 50px; background: url("/wp-content/uploads/2021/05/image3.jpg") center / cover no-repeat; text-align: center; color: var(--color-white); }
.popup__body::before { content: ""; position: absolute; inset: 0; background: #000; opacity: 0.5; }
.popup__body > * { position: relative; }
.popup__title { font-family: var(--font-popup); font-size: 120px; font-weight: 900; line-height: 1; text-transform: uppercase; color: var(--color-white); margin-bottom: var(--widget-gap); }
.popup__text { display: flow-root; font-family: var(--font-popup); font-size: 1.2rem; font-weight: 300; line-height: 1.5; margin-bottom: var(--widget-gap); }
.popup__text p { margin: 1em 0; }
.popup__close { position: absolute; top: 5px; right: 5px; z-index: 2; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: #000; cursor: pointer; }
.popup__close svg { width: 15px; height: 15px; }
.popup__close:focus-visible { outline: none; }
.popup__close:focus-visible svg { outline: 2px solid #4d90fe; outline-offset: 2px; }
@media (max-width: 1024px) {
  .popup { width: 370px; }
  .popup__body { padding: 90px 40px 40px; background-position: -34px -42px; }
  .popup__title { font-size: 126px; }
  .popup__text { font-size: 15px; }
  .popup__action { padding-top: 20px; }
}
@media (max-width: 767px) { .popup__body { background-position: 0 0; } }

/* ============ 6. Pages ============ */

/* === Page: /404.html === */
.not-found { padding-top: calc(var(--header-height) + var(--section-pad-y)); text-align: center; min-height: 60vh; }
.not-found .prose a { color: var(--color-salmon); }

/* ============ 7. Utilities ============ */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.text-center { text-align: center; }

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
