/*
 * site.css: the only stylesheet for wokify.co.uk.
 *
 * Sections, in order:
 *   1. Tokens        colours, fonts, spacing (custom properties)
 *   2. Fonts         @font-face for self-hosted fonts
 *   3. Base          reset and element defaults
 *   4. Layout        container, sections
 *   5. Components    one block per component: "=== Component: <name> ==="
 *   6. Pages         page-specific rules: "=== Page: <path> ==="
 *   7. Utilities     a handful of helpers
 *
 * Breakpoints (from the original Elementor CSS; media queries can't use custom properties):
 *   mobile  ≤ 767px    tablet 768px–1024px    desktop ≥ 1025px
 *   The burger menu shows at ≤ 767px only (Elementor "dropdown: mobile").
 *
 * Editing: change tokens to restyle the site; add new components as new blocks;
 * add modifier classes (.button--x) instead of changing a component for one page.
 */

/* ============ 1. Tokens ============ */
:root {
  /* Colours (from the original's computed styles) */
  --color-bg: #ffc72c;              /* page yellow */
  --color-text: #000000;
  --color-primary: #eaaa00;         /* Elementor global primary: burger icon colour */
  --color-button: #000000;
  --color-button-text: #ffffff;
  --color-dropdown-bg: #ffffff;     /* mobile menu panel */
  --color-dropdown-text: #33373d;
  --color-social-bg: rgb(0 0 0 / 0.11);

  /* Typography */
  --font-body: "Poppins", sans-serif;
  /* Original: "Expressa Bold" (unlicensed uploaded font). Closest Google Font: Lilita One (decision d2). */
  --font-display: "Lilita One", sans-serif;
  --text-body: 1.15rem;             /* 18.4px, line-height 1.5 */
  --text-about: 16px;
  --text-nav: 1.5rem;               /* 24px */
  --text-h2-large: 4.5rem;          /* About Us / Our Menu */
  --text-h2: 4rem;                  /* Download Our App */
  --text-h2-branch: 3rem;           /* Benton / Gosforth / Sandyford */
  --text-button-lg: 2rem;           /* View Full Menu */
  --leading: 1.5;

  /* Spacing and shape */
  --container: 1140px;
  --gutter: 32px;                   /* side padding of every section */
  --section-gap: 96px;              /* margin above/below content sections */
  --radius-button: 16px;

  /* Motion */
  --duration: 300ms;
  --ease: ease;
}

/* ============ 2. Fonts ============ */
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Lilita One"; src: url("/assets/fonts/lilita-one-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; }
body { margin: 0; font-family: var(--font-body); font-weight: 500; font-size: var(--text-body); line-height: var(--leading); color: var(--color-text); background: var(--color-bg); overflow-x: hidden; }
img, svg, video, iframe { max-width: 100%; }
img, video { height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1; margin: 0; }
p { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--color-text); outline-offset: 2px; }

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

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

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

/* === Component: site-header (not sticky; centred nav with dividers; burger ≤767px) === */
.site-header { position: relative; z-index: 50; padding: 34px 42px 34px 34px; }
.site-nav__list { display: flex; flex-wrap: wrap; justify-content: center; list-style: none; margin: 0; padding: 0; }
.site-nav__list li { position: relative; display: flex; align-items: center; }
.site-nav__list a { font-family: var(--font-display); font-size: var(--text-nav); line-height: 1; color: var(--color-text); text-decoration: none; }
@media (min-width: 768px) {
  .site-nav__list li { margin-inline: 32px; }
  .site-nav__list li + li::before { content: ""; position: absolute; left: -33px; top: 50%; height: 20px; margin-top: -10px; border-left: 2px solid var(--color-text); }
}
.nav-toggle { display: none; }
@media (max-width: 767px) {
  .nav-toggle { position: relative; display: flex; align-items: center; justify-content: center; margin-left: auto; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--color-primary); cursor: pointer; }
  /* visible 33px black square inside a 44px tap target */
  .nav-toggle::before { content: ""; position: absolute; width: 33px; height: 33px; border-radius: 3px; background: var(--color-button); }
  .nav-toggle svg { position: relative; }
  .site-header { display: flex; padding-block: 28.5px; }
  .nav-toggle__close, .nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }
  /* full-width white dropdown 10px under the burger; slides open (grid 0fr -> 1fr) over the content */
  .site-nav { position: absolute; left: 0; right: 0; top: 77px; display: grid; grid-template-rows: 0fr; align-items: stretch; background: var(--color-dropdown-bg); transition: grid-template-rows var(--duration) var(--ease); }
  .site-nav.is-open { grid-template-rows: 1fr; }
  .site-nav__clip { overflow: hidden; min-height: 0; visibility: hidden; transition: visibility 0s var(--duration); }
  .site-nav.is-open .site-nav__clip { visibility: visible; transition: none; }
  .site-nav__list { flex-direction: column; flex-wrap: nowrap; }
  .site-nav__list a { display: block; width: 100%; padding: 10px 20px; color: var(--color-dropdown-text); }
}

/* === Component: section-heading === */
.section-heading { font-size: var(--text-h2-large); text-align: center; margin-bottom: 64px; }
@media (max-width: 767px) { .about .section-heading { margin-bottom: 48px; } }

/* === Component: button (black rounded rectangle, "View Full Menu") === */
.button { display: inline-block; padding: 12px 24px; border-radius: var(--radius-button); background: var(--color-button); color: var(--color-button-text); font-family: var(--font-display); font-size: var(--text-button-lg); line-height: 1; text-decoration: none; text-align: center; }

/* === Component: circle-button (hero "Order Now" / "View Menu"; no hover effect, as the original) === */
.circle-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; list-style: none; margin: 0; padding: 0; }
.circle-button { display: flex; align-items: center; justify-content: center; width: 130px; aspect-ratio: 1; border-radius: 50%; background: var(--color-button); color: var(--color-button-text); font-family: var(--font-display); font-size: var(--text-nav); line-height: 1; text-decoration: none; white-space: nowrap; transition: all 0.2s ease-in-out; }

/* === Component: hero (logo + buttons left, wok right; stacked ≤767px) === */
.hero { padding: 128px var(--gutter); }
.hero__inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; max-width: 1280px; margin-inline: auto; }
.hero__brand { padding-top: 24px; padding-right: 32px; }
.hero__logo { width: 100%; max-width: 1024px; margin-inline: auto; }
.hero__image { margin-inline: auto; }
@media (max-width: 767px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__brand { padding-right: 0; margin-bottom: 48px; }
}

/* === Component: about (two text columns, noodle icons, banner) === */
.about__columns { display: grid; grid-template-columns: 1fr 1fr; }
.about__col { display: flex; flex-direction: column; justify-content: space-between; padding: 15px; font-size: var(--text-about); line-height: 1.5; }
.about__spaced { margin-top: 1.5em; }
.about__icons { display: flex; justify-content: center; align-items: flex-start; gap: 24px; }
.about__banner { width: 100%; margin-top: 64px; }
@media (max-width: 767px) {
  .about__columns { grid-template-columns: 1fr; }
  .about__banner { height: 100px; object-fit: cover; }
}

/* === Component: gallery (3 portrait photos, 24px gaps; GLightbox opens a.glightbox links) === */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.gallery a { display: block; }
.gallery img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
@media (max-width: 767px) { .gallery { grid-template-columns: 1fr; } }
.menu__more { margin-top: 64px; text-align: center; }
/* GLightbox to match the Elementor lightbox: dark backdrop, title under the image */
.glightbox-clean .gslide-description { background: transparent; }
.glightbox-clean .gdesc-inner { padding: 16px 20px; }
.glightbox-clean .gslide-title { font-family: var(--font-body); font-size: 1rem; color: #fff; text-align: center; margin-bottom: 0; }
.goverlay { background: rgb(0 0 0 / 0.87); }

/* === Component: app-promo (text + store buttons left, phone mock-ups right) === */
.app-promo__inner { display: grid; grid-template-columns: 51.49% 48.466%; align-items: center; }
.app-promo__text { padding-right: 56px; }
.app-promo__title { font-size: var(--text-h2); margin-bottom: 32px; }
.app-promo__stores { display: block; width: max-content; max-width: 100%; margin-top: 32px; }
.app-promo__phones { align-self: end; display: flex; justify-content: center; }
@media (max-width: 1024px) {
  .app-promo__inner { grid-template-columns: minmax(0, 1fr); }
  .app-promo__phones { margin-top: 48px; }
}
@media (max-width: 767px) { .app-promo__text { padding-right: 33px; } }

/* === Component: map (keyless Google Maps iframe, full width, 400px) === */
.map { display: block; width: 100%; height: 400px; border: 0; }

/* === Component: branches (three shop columns: address + opening hours) === */
.branches { display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; gap: 30px; max-width: 1420px; margin-inline: auto; padding: 50px 10px; text-align: center; }
.branch { padding: 10px; }
.branch__title { font-size: var(--text-h2-branch); margin-bottom: 20px; }
.branch__address { margin-bottom: 20px; }
@media (max-width: 1024px) { .branches { grid-template-columns: 1fr; row-gap: 0; } }
@media (max-width: 767px) { .branches { row-gap: 50px; } }

/* === Component: site-footer (© + credit left, social icons right; icons first on mobile) === */
.site-footer { padding: 96px var(--gutter) 48px; }
.site-footer__inner { display: grid; grid-template-columns: 1fr 1fr; align-items: start; max-width: var(--container); margin-inline: auto; }
.site-footer__copy { padding: 10px; }
.social { justify-self: end; }
.site-footer__credit a { text-decoration: none; }
.site-footer__credit a:hover { text-decoration: underline; }
.social { display: flex; gap: 5px; list-style: none; margin: 0; padding: 10px; }
.social__icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--color-social-bg); color: var(--color-text); }
.social__icon svg { width: 18px; height: 18px; fill: currentColor; }
@media (max-width: 767px) {
  .site-footer__inner { display: flex; flex-direction: column; gap: 15px; padding-block: 10px; }
  .site-footer__copy, .social { padding: 0 10px; }
  .social { order: -1; }
}

/* === Component: contact-email (not used: the original had no form) === */
.contact-email { display: grid; gap: 1rem; justify-items: start; }

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

/* === Page: 404 === */
.not-found { text-align: center; }
.not-found__text { max-width: 40rem; margin: 0 auto 32px; }
.not-found__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; list-style: none; margin: 0; padding: 0; }

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

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