/*
 * 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 on the original)
 *
 * Values below were measured from the live site (computed styles, 2026-10-28) and the
 * original Elementor CSS (post-145.css / post-6.css / kit post-4.css).
 *
 * 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 (Elementor kit globals on the original) */
  --color-primary: #870000;      /* page + header background */
  --color-primary-dark: #730000; /* menu and contact bands */
  --color-cream: #fefee8;        /* headings, nav, footer text, mobile dropdown background */
  --color-white: #ffffff;        /* body copy, buttons, active nav */
  --color-black: #000000;        /* button text, heading outline */
  --color-text: var(--color-white);
  --color-bg: var(--color-primary);

  /* Typography */
  --font-body: "Roboto", Arial, sans-serif;
  --font-nav: "Roboto Flex", "Roboto", Arial, sans-serif;
  --font-script: "Annie Use Your Telescope", "Comic Sans MS", cursive;
  --text-body: 20px;            /* 16px on mobile */
  --text-heading: 40px;         /* script section headings */
  --text-hero: 69px;            /* "Welcome to" (64px on mobile) */

  /* Layout */
  --container: 1280px;          /* Elementor boxed width */
  --container-footer: 1024px;
  --col-pad: 10px;              /* Elementor column padding */
  --section-pad: 30px;
  --spacer: 32px;               /* Elementor spacer widgets */
  --header-pad: 30px;           /* 20px on mobile */
  --radius-button: 7px;
  --radius-map: 30px;
  --shadow-map: 0 0 10px 0 rgb(0 0 0 / 0.5);

  /* Motion */
  --duration: 300ms;
  --ease: ease;
}
@media (max-width: 767px) {
  :root { --text-body: 16px; --header-pad: 20px; }
}

/* ============ 2. Fonts ============ */
/* Self-hosted Google Fonts (latin subset). Roboto is the variable font (weights 200–800 used). */
@font-face { font-family: "Roboto"; src: url("/assets/fonts/roboto-variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto Flex"; src: url("/assets/fonts/roboto-flex-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Annie Use Your Telescope"; src: url("/assets/fonts/annie-use-your-telescope-400.woff2") format("woff2"); font-weight: 400; 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; scroll-padding-top: 126px; }   /* anchor targets land below the sticky header, as Elementor's menu anchors */
@media (max-width: 1024px) { html { scroll-padding-top: 124px; } }
@media (max-width: 900px) { html { scroll-padding-top: 159px; } }   /* header buttons wrap to two rows here */
@media (max-width: 767px) { html { scroll-padding-top: 96px; } }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.5; color: var(--color-text); background: var(--color-bg); }
img, svg, video, iframe { max-width: 100%; }
img, video { height: auto; }
img { vertical-align: middle; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--color-white); outline-offset: 2px; }

/* ============ 4. Layout ============ */
/* .container mirrors Elementor's boxed container: max 1280px; columns add 10px padding. */
.container { width: 100%; max-width: var(--container); margin-inline: auto; }
.col { padding: var(--col-pad); min-width: 0; }
.section { padding: var(--section-pad); }
.section--dark { background: var(--color-primary-dark); }
.row { display: flex; flex-wrap: wrap; align-items: center; }
.row > .col--half { width: 50%; }
@media (max-width: 767px) {
  .row > .col--half { width: 100%; }
}
.spacer { height: var(--spacer); }

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

/* === Component: skip-link === */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; padding: 8px 16px; background: var(--color-cream); color: var(--color-primary); }
.skip-link:focus { left: 16px; }

/* === Component: site-header ===
 * Original: Elementor Pro sticky section, always #870000, no change on scroll. It keeps its
 * height in the flow (Elementor's spacer); the home hero is pulled up 124px under it (≥768px).
 * Desktop: anchor nav left, ORDER NOW / VIEW MENU right. ≤1024px: burger left + full-width
 * cream dropdown that slides down (max-height 0.3s on the original; grid 0fr→1fr here).
 */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--color-primary); padding: var(--header-pad); }
.site-header__inner { position: static; display: flex; align-items: center; max-width: var(--container); margin-inline: auto; }
.site-header__nav-col { width: 66.404%; padding: var(--col-pad); display: flex; align-items: center; }
.site-header__buttons-col { width: 33.596%; padding: var(--col-pad); }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 7.25px; border: 0; border-radius: 3px; background: rgb(0 0 0 / 0.05); color: var(--color-cream); cursor: pointer; }
.nav-toggle svg { width: 29px; height: 29px; fill: currentColor; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }
.site-nav__list { display: flex; flex-wrap: nowrap; }   /* one row, as the original (self-hosted Roboto Flex renders ~2% wider) */
.site-nav__list a { position: relative; display: block; padding: 13px 20px; font-family: var(--font-nav); font-size: 20px; font-weight: 600; line-height: 20px; text-transform: uppercase; text-decoration: none; white-space: nowrap; color: var(--color-cream); transition: color var(--duration) var(--ease); }
/* Elementor "underline" pointer with fade */
.site-nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--color-white); opacity: 0; transition: opacity var(--duration) var(--ease); }
.site-nav__list a:hover, .site-nav__list a:focus-visible, .site-nav__list a.is-active, .site-nav__list a[aria-current="page"] { color: var(--color-white); }
.site-nav__list a:hover::after, .site-nav__list a:focus-visible::after, .site-nav__list a.is-active::after, .site-nav__list a[aria-current="page"]::after { opacity: 1; }

@media (max-width: 1024px) {
  .site-header__nav-col { position: static; }
  .nav-toggle { display: inline-flex; }
  /* Dropdown: full width, starts at the bottom of the toggle's column, overlays the page */
  .site-nav { position: absolute; left: 0; right: 0; top: calc(100% - var(--header-pad)); display: grid; grid-template-rows: 0fr; align-items: stretch; transition: grid-template-rows var(--duration) var(--ease); background: var(--color-cream); }
  .site-nav.is-open { grid-template-rows: 1fr; }
  .site-nav__inner { overflow: hidden; min-height: 0; }
  .site-nav:not(.is-open) .site-nav__inner { visibility: hidden; transition: visibility 0s var(--duration); }
  .site-nav__list { flex-direction: column; flex-wrap: nowrap; }
  .site-nav__list a { padding: 10px 20px; font-family: var(--font-body); font-weight: 500; text-align: center; color: var(--color-primary); transition: none; }
  .site-nav__list a::after { display: none; }
  .site-nav__list a.is-active { color: var(--color-primary); }   /* scroll-spy shows in the desktop bar only, as on the original */
  .site-nav__list a:hover, .site-nav__list a:focus-visible, .site-nav__list a[aria-current="page"] { color: var(--color-cream); background: var(--color-primary); }
}
@media (max-width: 767px) {
  .site-header__nav-col { width: 20%; }
  .site-header__buttons-col { width: 80%; }
  .nav-toggle { width: 36px; height: 36px; padding: 6px; }
  .nav-toggle svg { width: 24px; height: 24px; }
}

/* === Component: button-group (Elementor Extras button group on the original) === */
.button-group > li { display: flex; }
.button-group { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.button-group--end { justify-content: flex-end; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 12px; border-radius: var(--radius-button); background: var(--color-white); color: var(--color-black); font-family: var(--font-body); font-size: 15px; font-weight: 800; line-height: 15px; text-decoration: none; white-space: nowrap; transition: all var(--duration) var(--ease); }
.button--small { padding: 10px 12px; border-radius: 6px; }   /* header buttons */
.button-group--menu .button { padding: 12px 24px; }   /* gallery band buttons: 134x39 on the original */
.button--large { padding: 10px 50px; font-size: 20px; line-height: 26px; }   /* DOWNLOAD NOW */
@media (max-width: 1024px) {
  .button-group--header { max-width: 292.547px; margin-left: auto; gap: 9px; }
}
@media (max-width: 767px) {
  .button-group--header { max-width: none; justify-content: flex-end; padding-right: 20px; gap: 8px; }   /* original group sits 20px in from the column edge */
  .button-group--header .button { font-size: 14px; line-height: 14px; }
  .button-group--menu { gap: 7px; }
}

/* === Component: section-heading (script headings with a thin black outline) === */
.section-heading { font-family: var(--font-script); font-size: var(--text-heading); font-weight: 400; line-height: 1; text-align: center; color: var(--color-cream); -webkit-text-stroke: 0.7px var(--color-black); }
.section-heading--thin { -webkit-text-stroke-width: 0.4px; }
.section-heading--large { font-size: 4rem; }   /* /gluten-free/ intro heading */

/* === Component: page-title (theme H1, hidden on the original) === */
.page-title { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* === Component: hero (home) === */
.hero { margin-top: -124px; }
.hero__inner { display: flex; flex-wrap: wrap; align-items: center; min-height: 100vh; max-width: var(--container); margin-inline: auto; }
.hero__text { width: 50%; padding: var(--col-pad); }
.hero__art { width: 50%; padding: var(--col-pad); text-align: center; }
.hero__title { font-family: var(--font-script); font-size: var(--text-hero); line-height: 1; color: var(--color-cream); -webkit-text-stroke: 0.7px var(--color-black); }
.hero__logo { width: 74%; }
.hero__art img { width: 79%; }
@media (max-width: 1024px) {
  .hero__inner { min-height: 80vh; }
  .hero__text { padding: 30px 30px 30px 60px; }
  .hero__art { padding: 0; text-align: right; }
  .hero__art img { width: 100%; }
}
@media (max-width: 767px) {
  .hero { margin-top: 0; }
  .hero__text, .hero__art { width: 100%; }
  .hero__title { font-size: 64px; margin-bottom: 20px; }
}

/* === Component: intro (About / Gluten Free: heading, divider image, centred text) === */
.intro { padding: 30px 30px 60px; }
.intro__divider { display: block; width: 99.68%; margin-inline: auto; text-align: center; line-height: 18px; }
.intro__divider img { display: inline-block; vertical-align: middle; }   /* inline in a short line box, as Elementor's image widget */
.intro__text { font-size: var(--text-body); line-height: 1.6; text-align: center; color: var(--color-white); }
.intro__text a { color: inherit; text-decoration: underline; }
.intro__phone { font-size: 20px; font-weight: 300; line-height: normal; text-align: center; color: var(--color-white); }
.intro__phone a { text-decoration: none; }
@media (max-width: 767px) {
  .intro--flush-mobile { padding: 0; }
}

/* === Component: pdf-embed (restored PDF viewer: d4/d5) === */
.pdf-embed { display: block; width: 100%; height: 800px; border: 0; background: var(--color-white); }
.pdf-embed__link { margin-top: 12px; font-size: 16px; text-align: center; }
.pdf-embed__link a { color: var(--color-cream); }
.pdf-page-body .pdf-embed__link a { color: var(--color-primary); }

/* === Component: gallery (menu photos; GLightbox opens a.glightbox links, one gallery) === */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); }
.gallery__item { margin: 0; text-align: center; }
.gallery__item a { display: inline-block; vertical-align: top; }
.gallery__item img { display: block; width: 264px; }
@media (max-width: 767px) {
  .gallery { grid-template-columns: 1fr; }
}
/* GLightbox styled like Elementor's lightbox (dark overlay, caption below) */
.glightbox-clean .gslide-description { background: transparent; }
.glightbox-clean .gslide-title { color: var(--color-white); font-family: var(--font-body); text-align: center; margin-bottom: 0; }

/* === Component: app-promo (Order Via Our App) === */
.app-promo__text { text-align: center; }
.app-promo__copy { font-size: var(--text-body); line-height: 1.5; color: var(--color-white); }
.app-promo__badges { display: inline-block; width: 42.737%; }
.app-promo__badges img { width: 100%; }
.app-promo__art { padding: 40px; text-align: center; }   /* 10px column + 30px widget padding */
.app-promo__art img { width: 64%; }
@media (max-width: 1024px) {
  .app-promo__copy { padding: 0 30px 30px; }
  .app-promo__badges { width: 245px; }
  .app-promo__art img { width: 100%; }
}
@media (max-width: 767px) {
  .app-promo__badges { width: 255px; }
  .app-promo__download { padding: 30px; }
}

/* === Component: contact-band (opening hours, contact, FHRS badge, map) === */
.contact-band__info { width: 50%; padding: var(--col-pad); }
.contact-band__map { width: 50%; }
.contact-band__cols { display: flex; flex-wrap: wrap; }
.contact-band__cols > .col { width: 50%; }
.contact-band__text { font-size: 20px; font-weight: 200; line-height: normal; text-align: center; color: var(--color-white); }
.contact-band__text p:empty { display: none; }
.contact-band__phone { font-size: 20px; font-weight: 300; line-height: normal; text-align: center; color: var(--color-white); }
.contact-band__phone a { text-decoration: none; }
.fhrs { display: flex; justify-content: center; margin-top: 32px; padding-bottom: 4px; }
.fhrs img { width: 200px; min-width: 0 !important; height: auto; }
@media (max-width: 1024px) {
  .contact-band__cols > .col { width: 100%; }
  .contact-band__hours { margin-bottom: 32px; }
  .contact-band__hours .contact-band__text { line-height: 1.1; }
  .contact-band__address { line-height: 1.3; }
}
@media (max-width: 767px) {
  .contact-band__info, .contact-band__map { width: 100%; }
  .contact-band__address { line-height: 1.1; }
}

/* === Component: map (keyless Google Maps iframe in a rounded, shadowed frame) === */
.map-frame { margin: 30px; border-radius: var(--radius-map); box-shadow: var(--shadow-map); overflow: hidden; }
.map { display: block; width: 100%; height: 446px; border: 0; }
@media (max-width: 1024px) {
  .map { height: 584px; }
}

/* === Component: site-footer (copyright bar + Facebook icon) === */
.site-footer { padding: 30px; }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; max-width: var(--container-footer); margin-inline: auto; }
.site-footer__copy { width: 75.156%; padding: var(--col-pad); }
.site-footer__copy p { font-size: 20px; font-weight: 400; line-height: normal; color: var(--color-cream); }
.site-footer__copy a { text-decoration: none; }
@media (min-width: 1025px) {
  .site-footer__copy p { white-space: nowrap; }   /* "Powered By OrderYOYO" is longer than "App4"; keep the one line the original had */
}
.site-footer__social { width: 24.806%; padding: var(--col-pad); text-align: right; }
.social-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 30px; background: var(--color-white); color: var(--color-black); }
.social-icon svg { width: 18px; height: 18px; fill: currentColor; }
@media (max-width: 767px) {
  .site-footer__copy, .site-footer__social { width: 100%; }
}

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

/* === Page: /allergens/ (bare PDF page, d5) === */
.pdf-page-body { background: var(--color-white); color: var(--color-black); }
.pdf-page { padding: 10px; }
.pdf-page__credit { padding: 10px; font-size: 14px; text-align: center; color: var(--color-black); }
.pdf-page__credit a { color: inherit; }

/* ============ 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; }
  [data-reveal] { visibility: visible !important; }
}
