/*
 * site.css: the only stylesheet for planetwok.co.uk.
 *
 * 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 (incl. the page background photo)
 *   4. Layout        container, column padding, block spacing
 *   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
 *   - ≥ 1025px: page background (hero photo) and the chopsticks band are background-attachment: fixed
 *   - ≤ 1024px: container goes full width; top bar gets 20px side padding
 *   - ≤ 767px: top bar stacks centred; desktop logo (overlapping the top bar) is swapped for an
 *              in-flow logo in the hero; image strip stacks (4 × 360px); headings 30px; footer 55/45
 *
 * Spacing mirrors the original Elementor layout: 10px column padding, 20px between blocks
 * (none after fixed-width text blocks), paragraphs with 1em margins.
 *
 * Editing: change tokens to restyle the site; add new components as new blocks;
 * add modifier classes instead of changing a component for one page.
 */

/* ============ 1. Tokens ============ */
:root {
  /* Colours (from the original's Elementor styles) */
  --color-red-bar: rgba(142, 19, 8, 0.85);   /* top bar, over the page photo */
  --color-hero-shade: rgba(0, 0, 0, 0.57);   /* dark overlay on the hero photo */
  --color-band-shade: rgba(0, 0, 0, 0.355);  /* chopsticks band overlay (0.71 at 50% opacity) */
  --color-navy: #1c396f;                     /* app download band */
  --color-ink: #282828;                      /* delivery / opening hours text */
  --color-footer: #303030;                   /* footer bar */
  --color-white: #ffffff;
  --color-bg: #ffffff;

  /* Typography (Roboto everywhere: headings 600, text 400; line-height "normal" for text, 1 for headings) */
  --font-body: "Roboto", sans-serif;
  --text-base: 16px;
  --text-copy: 18px;          /* app band and info text (16px on mobile for info text) */
  --text-small: 14px;         /* footer on mobile */
  --text-bar: 24px;           /* ORDER ONLINE / phone in the top bar */
  --text-title: 39px;         /* H1 and section headings (Elementor size xl) */
  --text-title-mobile: 30px;

  /* Spacing and shape */
  --col-pad: 10px;            /* Elementor column padding */
  --gap: 20px;                /* Elementor space between widgets */
  --space-section: 100px;
  --container: 1140px;
  --text-block: 600px;        /* centred text blocks */
}

/* ============ 2. Fonts ============ */
/* Self-hosted Google Font (SIL OFL), latin subset. Roboto is one variable file (weights 100–900; 400 and 600 used). */
@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; }

/* ============ 3. Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
/* The hero photo is the page background, as on the original: it shows through the
 * semi-transparent top bar and hero overlay. Fixed on desktop, scrolls on tablet/phone. */
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: normal;
  color: var(--color-ink);
  background: var(--color-bg) url("/wp-content/uploads/2020/09/pexels-lucas-guizo-4060347-rotated.jpg") center center / cover no-repeat;
}
@media (min-width: 1025px) {
  body { background-attachment: fixed; }
}
img, svg, video, iframe { max-width: 100%; }
img, video { height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1; font-weight: 600; }
p { margin: 1em 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* ============ 4. Layout ============ */
/* Boxed content: 1140px max (full width at ≤1024px, like Elementor). */
.container { width: 100%; max-width: var(--container); margin-inline: auto; }
.col { padding: var(--col-pad); }
.section { position: relative; }
/* Text blocks own their paragraph margins (no collapsing into neighbours) */
.copy { display: flow-root; }
/* Stack of blocks inside a column: 20px between blocks, like Elementor widgets (flex, so margins add up) */
.stack { display: flex; flex-direction: column; gap: var(--gap); }
/* Fixed-width (600px) text blocks had no gap after them on the original */
.stack > .text-block:not(:last-child) { margin-bottom: calc(-1 * var(--gap)); }

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

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

/* === Component: site-header (red top bar: ORDER ONLINE | logo overlapping the hero | phone; no menu on the original) === */
.site-header { position: relative; z-index: 2; background: var(--color-red-bar); padding: 20px 0; }
.site-header__inner { display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; }
.site-header__item { font-size: var(--text-bar); color: var(--color-white); }
.site-header__phone { text-align: end; }
.site-header__brand { position: relative; align-self: stretch; }
.site-header__logo { position: absolute; top: 0; left: 0; width: 100%; }
.site-header__logo img { margin-inline: auto; }
@media (max-width: 1024px) {
  .site-header { padding: 20px; }
}
@media (max-width: 767px) {
  .site-header { padding: 10px; }
  .site-header__inner { grid-template-columns: 1fr; }
  .site-header__item { text-align: center; }
  .site-header__brand { display: none; }
  .site-header__phone { margin-top: 9px; }
  /* 44px tap target without moving anything (the bar's layout stays as on the original) */
  .site-header__order a { display: inline-block; padding-block: 10px; margin-block: -10px; }
}

/* === Component: hero (dark overlay on the page photo, centred H1; phone shows the logo in flow) === */
.hero { background: var(--color-hero-shade); padding: 300px 0 200px; }
.hero__inner { min-height: 300px; justify-content: center; }
.hero__logo { display: none; }
.hero__title { font-size: var(--text-title); color: var(--color-white); text-align: center; }
@media (max-width: 767px) {
  .hero { padding: 40px 0 50px; }
  .hero__inner { min-height: 0; }
  .hero__logo { display: block; margin-inline: auto; width: 300px; }
  .hero__title { margin: 10px; font-size: var(--text-title-mobile); }
}

/* === Component: image-strip (four photo tiles, 500px tall; stacked 360px tiles on phone) === */
.image-strip { display: grid; grid-template-columns: repeat(4, 1fr); min-height: 500px; }
.image-strip__tile { background: center center / cover no-repeat; }
.image-strip__tile--bishop { background-image: url("/wp-content/uploads/2020/09/pexels-bishop-tamrakar-3926135-scaled.jpg"); }
.image-strip__tile--jennifer { background-image: url("/wp-content/uploads/2020/09/jennifer-schmidt-zOlQ7lF-3vs-unsplash.jpg"); }
.image-strip__tile--istock { background-image: url("/wp-content/uploads/2020/09/iStock_69598339.jpg"); }
.image-strip__tile--charles { background-image: url("/wp-content/uploads/2020/09/charles-deluvio-wrfO9SWykdE-unsplash.jpg"); }
@media (max-width: 767px) {
  .image-strip { grid-template-columns: 1fr; grid-auto-rows: 360px; }
}

/* === Component: section-title (39px centred headings; 30px on phone) === */
.section-title { margin-top: 20px; font-size: var(--text-title); text-align: center; }
@media (max-width: 767px) {
  .section-title { margin: 10px; font-size: var(--text-title-mobile); }
}

/* === Component: text-block (centred 600px text, 18px) === */
.text-block { width: 100%; max-width: var(--text-block); margin-inline: auto; font-size: var(--text-copy); text-align: center; }

/* === Component: app-promo (navy band: logo, heading, text, store badges) === */
.app-promo { background: var(--color-navy); color: var(--color-white); padding-block: var(--space-section); }
.app-promo__logo { margin-inline: auto; width: 300px; }
.app-promo__title { color: var(--color-white); }
.app-promo__badges { display: block; width: 300px; margin-inline: auto; }
.app-promo__badges { margin-top: 10px; }

/* === Component: photo-band (400px chopsticks photo with a light dark overlay; fixed on desktop) === */
.photo-band { min-height: 400px; background: url("/wp-content/uploads/2020/09/person-eating-using-chopsticks-33162-landscape-rotated.jpg") center center / cover; }
.photo-band::before { content: ""; position: absolute; inset: 0; background: var(--color-band-shade); }
@media (min-width: 1025px) {
  .photo-band { background-attachment: fixed; }
}

/* === Component: info (white section: delivery prices, opening hours, contact, map) === */
.info { background: var(--color-bg); color: var(--color-ink); padding-block: var(--space-section); }
.info__title { color: var(--color-ink); }
.hours p { margin: 0 0 1.172em; }   /* one empty line between days, as on the original */
.hours p:last-child { margin-bottom: 0; }
@media (max-width: 767px) {
  .info .text-block { font-size: var(--text-base); }
}

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

/* === Component: site-footer (dark bar: copyright | Powered by OrderYOYO) === */
.site-footer { background: var(--color-footer); color: var(--color-white); }
.site-footer__inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.site-footer__credit { text-align: end; }
.site-footer__credit a { color: var(--color-white); }
@media (max-width: 767px) {
  .site-footer__inner { grid-template-columns: 55% 45%; }
  .site-footer p { font-size: var(--text-small); }
}

/* === Component: contact-email (replaces WordPress forms; not used on this site: it had no forms) === */
.contact-email { display: grid; gap: var(--gap); justify-items: center; font-size: var(--text-copy); text-align: center; }
.contact-email p { margin: 0; }
.contact-email__address { font-weight: 600; word-break: break-word; }
.contact-email__phone a { color: inherit; }
.button { display: inline-block; padding: 12px 24px; background: var(--color-red-bar); color: var(--color-white); font-weight: 600; }

/* === Component: reveal (GSAP animates these; hidden only once GSAP has loaded; unused here) === */
.reveal-ready [data-reveal] { visibility: hidden; }

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

/* === Page: /404.html === */
.not-found { background: var(--color-bg); padding-block: var(--space-section); }
.not-found__links a { text-decoration: underline; }

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