/*
 * 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 (Elementor defaults on the original; media queries can't use custom properties):
 *   mobile  ≤ 767px    tablet 768px–1024px    desktop ≥ 1025px
 *   The header is sticky only on desktop; the burger menu shows only on mobile.
 *
 * 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-text: #333333;          /* theme body text (rarely visible) */
  --color-bg: #000000;            /* page, header, intro, photos and footer bands */
  --color-light: #ffffff;         /* all visible text, button borders, icons */
  --color-overlay: #50514e;       /* overlay on the "How to order" and locations images */
  --overlay-opacity: 0.6;
  --color-toggle-bg: rgb(0 0 0 / 0.05);

  /* Typography */
  --font-body: "Roboto", Arial, sans-serif;
  --font-heading: "Headline Two", "Roboto", Arial, sans-serif;  /* custom font from the original (uploads) */
  --text-base: 16px;              /* 15px on mobile (theme) */
  --leading: 1.5;                 /* 1.66 on mobile (theme) */

  /* Layout */
  --container: 1140px;            /* Elementor boxed width */
  --gutter: 10px;                 /* Elementor column padding */
  --header-height: 96px;          /* desktop; 101px tablet, 242px mobile (stacked) */

  /* Motion (original timings) */
  --duration: 300ms;
  --duration-menu: 300ms;
  --ease: ease;
}

/* ============ 2. Fonts ============ */
/* Roboto: Google Fonts (SIL OFL), self-hosted variable latin file covering the weights used (400, 500, 600). */
@font-face { font-family: "Roboto"; src: url("/assets/fonts/roboto-latin-variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
/* Headline Two: custom font uploaded to Elementor on the original; kept at its original uploads path (licence unknown, see SITE.md). */
@font-face { font-family: "Headline Two"; src: url("/wp-content/uploads/2019/01/HEADTH__-1.woff") format("woff"); font-weight: normal; 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); line-height: var(--leading); color: var(--color-text); background: var(--color-bg); }
img, svg, video, iframe { max-width: 100%; }
img, video { height: auto; display: block; }
h1, h2, h3, h4 { 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-light); outline-offset: 2px; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
@media (max-width: 767px) {
  body { font-size: 15px; line-height: 1.66; }
}

/* ============ 4. Layout ============ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; }

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

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

/* === Component: site-header ===
 * Black bar: logo | "Order Now" | Facebook circle (columns 50% / 25% / 25%).
 * Desktop (≥1025px): sticky, logo left. Tablet: logo centred in its column.
 * Mobile (≤767px): logo, burger and Facebook stacked and centred; the burger opens a
 * black dropdown with the single "Order Now" link (grid 0fr → 1fr, 300ms).
 */
.site-header { position: relative; z-index: 50; background: var(--color-bg); padding: 15px; }
.site-header__inner { display: grid; grid-template-columns: 50% 25% 25%; align-items: start; }
.site-header__logo { padding: var(--gutter); display: flex; justify-content: center; }
.site-header__menu { padding: var(--gutter); }
.site-header__social { padding: var(--gutter); display: flex; justify-content: center; }
.nav-toggle { display: none; }
.site-nav__list a { display: block; padding: 13px 20px; font-size: 16px; font-weight: 600; line-height: 20px; color: var(--color-light); text-decoration: none; }
.site-nav__list { display: flex; }
.social-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 2px solid var(--color-light); border-radius: 50%; color: var(--color-light); }
.social-icon svg { width: 18px; height: 18px; fill: currentColor; }
.social-icon::before { content: ""; position: absolute; inset: -6px; }  /* 44px+ tap target without changing the look */
@media (min-width: 1025px) {
  .site-header { position: sticky; top: 0; }
  .site-header__logo { padding: 0; justify-content: flex-start; align-self: center; }
}
@media (max-width: 767px) {
  .site-header__inner { grid-template-columns: 100%; }
  .site-header__logo { padding: 15px; }
  .site-header__logo img { width: 60%; }
  .site-header__menu { padding: 15px; display: flex; flex-direction: column; align-items: center; }
  .site-header__social { padding: var(--gutter); }
  .nav-toggle { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 33px; height: 33px; padding: 5.5px; border: 0; border-radius: 3px; background: var(--color-toggle-bg); color: var(--color-light); cursor: pointer; }
  .nav-toggle::before { content: ""; position: absolute; inset: -6px; }  /* 44px+ tap target */
  .nav-toggle svg { width: 22px; height: 22px; fill: currentColor; }
  .nav-toggle__close, .nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }
  /* Dropdown: the nav stretches to full width so the list is clipped while it slides. */
  .site-nav { align-self: stretch; display: grid; grid-template-rows: 0fr; margin-top: 10px; background: var(--color-bg); visibility: hidden; transition: grid-template-rows var(--duration-menu) var(--ease), visibility 0s linear var(--duration-menu); }
  .site-nav.is-open { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows var(--duration-menu) var(--ease), visibility 0s; }
  .site-nav__list { display: block; min-height: 0; overflow: hidden; }
  .site-nav__list a { padding: 12px 20px; font-size: 13px; font-weight: 500; }
  .social-icon { width: 32px; height: 32px; }
  .social-icon svg { width: 16px; height: 16px; }
}
.no-js .site-nav, html:not(.js) .site-nav { visibility: visible; grid-template-rows: 1fr; }

/* === Component: site-footer (app badges + copyright) === */
.site-footer { background: var(--color-bg); padding: 50px 0; color: var(--color-light); }
.site-footer__inner { padding: var(--gutter); }
.site-footer__copyright { margin-top: 30px; text-align: center; }
.site-footer__copyright a { text-decoration: underline; }

/* === Component: app-badges === */
.app-badges { display: flex; justify-content: center; }
.app-badges__item { width: 250px; padding: var(--gutter); display: flex; justify-content: center; }
@media (max-width: 767px) {
  .app-badges { flex-direction: column; }
  .app-badges__item { width: 100%; }
}

/* === Component: button-outline (hero "Order Now"; no hover change, as original) === */
.button-outline { display: inline-block; padding: 12px 30px; border: 2px solid var(--color-light); color: var(--color-light); font-size: 15px; font-weight: 500; line-height: 1; text-transform: uppercase; text-decoration: none; transition: all var(--duration) var(--ease); }

/* === Component: overlay-band (background image + grey overlay; used by order-steps and locations) === */
.overlay-band { position: relative; background-color: var(--color-overlay); background-position: center; background-size: cover; background-repeat: no-repeat; }
.overlay-band::before { content: ""; position: absolute; inset: 0; background: var(--color-overlay); opacity: var(--overlay-opacity); }
.overlay-band > * { position: relative; }

/* === Component: hero (background image, centred logo + outline button) === */
.hero { display: flex; align-items: center; justify-content: center; min-height: 700px; background-position: center; background-size: cover; background-repeat: no-repeat; }
.hero__inner { width: 100%; max-width: var(--container); display: flex; flex-direction: column; align-items: center; gap: 20px; }
.hero__logo { width: 30%; }
@media (max-width: 1024px) { .hero { min-height: 300px; } }
@media (max-width: 767px) { .hero { min-height: 400px; } .hero__logo { width: 50%; } }

/* === Component: intro-band (black band with centred text) === */
.intro-band { background: var(--color-bg); padding: 70px 0; color: var(--color-light); text-align: center; }
.intro-band__text { max-width: calc(579px + 2 * var(--gutter)); margin-inline: auto; padding: var(--gutter); font-size: 16px; }
@media (max-width: 1024px) { .intro-band { padding: 50px 0; } }
@media (max-width: 767px) { .intro-band__text { padding: 15px; } }

/* === Component: order-steps ("HOW TO ORDER": heading + 4 icon boxes) === */
.order-steps { display: flex; align-items: center; min-height: 700px; }
.order-steps__inner { width: 100%; max-width: var(--container); margin-inline: auto; padding: var(--gutter); }
.order-steps__title { margin-bottom: 20px; font-family: var(--font-heading); font-size: 64px; font-weight: 600; line-height: 1; letter-spacing: 20px; text-transform: uppercase; text-align: center; color: var(--color-light); }
.order-steps__list { display: grid; grid-template-columns: repeat(4, 1fr); }
.order-steps__item { padding: var(--gutter); text-align: center; color: var(--color-light); }
.order-steps__icon { display: block; width: 1em; margin: 0 auto 15px; font-size: 80px; line-height: 1; color: inherit; }
.order-steps__icon svg { display: block; width: 1em; height: 1em; fill: currentColor; }
.order-steps__label { margin-bottom: 0.75em; font-family: var(--font-heading); font-size: 37px; line-height: 1.4; letter-spacing: 7.2px; }
.order-steps__label a { text-decoration: none; }
@media (max-width: 1024px) {
  .order-steps { min-height: 360px; padding: 30px 0; }
  .order-steps__title { font-size: 36px; }
  .order-steps__icon { font-size: 42px; }
  .order-steps__label { font-size: 26px; }
}
@media (max-width: 767px) {
  .order-steps { min-height: 0; }
  .order-steps__title { line-height: 2; }
  .order-steps__list { grid-template-columns: 100%; }
}

/* === Component: photo-grid (4 food photos on black) === */
.photo-grid { background: var(--color-bg); padding: 70px 0; }
.photo-grid__list { max-width: var(--container); margin-inline: auto; padding: var(--gutter); display: grid; grid-template-columns: repeat(4, 1fr); }
.photo-grid__item { padding: var(--gutter); }
.photo-grid__item img { width: 100%; margin-inline: auto; }
@media (max-width: 1024px) {
  .photo-grid__list { grid-template-columns: repeat(2, 1fr); }
  .photo-grid__item img { width: 75%; }
}
@media (max-width: 767px) { .photo-grid__list { grid-template-columns: 100%; } }

/* === Component: locations (#contact: address, phone, hours per shop, over an image) === */
.locations { padding: 30px 0; }
.locations__inner { max-width: var(--container); min-height: 700px; margin-inline: auto; display: grid; grid-template-columns: 33.333% 35%; align-content: center; }
.locations__item { font-family: var(--font-heading); font-size: 34px; line-height: 1.5; color: var(--color-light); }
.locations__address { margin-bottom: 20px; letter-spacing: 3px; text-transform: uppercase; }
.locations__phone { margin-bottom: 20px; padding: 30px 0; letter-spacing: 3px; }
@media (max-width: 1024px) {
  .locations { padding: 15px; }
  .locations__inner { min-height: 0; grid-template-columns: 50% 50%; }
  .locations__item { font-size: 18px; }
}
@media (max-width: 767px) {
  .locations__inner { grid-template-columns: 100%; }
  .locations__item { padding: 15px; font-size: 24px; line-height: 1.66; }
}

/* === Component: page-message (404 and other simple text pages) === */
.page-message { background: var(--color-bg); padding: 100px 0; color: var(--color-light); text-align: center; }
.page-message__inner { max-width: 700px; margin-inline: auto; padding: 0 20px; }
.page-message__title { margin-bottom: 30px; font-family: var(--font-heading); font-size: 64px; line-height: 1.2; letter-spacing: 10px; text-transform: uppercase; }
.page-message__text { margin-bottom: 30px; }
.page-message__text a { text-decoration: underline; }
@media (max-width: 1024px) { .page-message__title { font-size: 36px; } }
@media (max-width: 767px) { .page-message { padding: 60px 0; } }

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

/* ============ 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; }
}
