/*
 * site.css: the only stylesheet for tonisatlgw.co.uk (Toni's @ LGW).
 *
 * 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, columns
 *   5. Components    one block per component: "=== Component: <name> ==="
 *   6. Pages         page-specific rules: "=== Page: <path> ==="
 *   7. Utilities     a handful of helpers
 *
 * Breakpoints (Elementor defaults, as on the original; media queries can't use custom properties):
 *   mobile  <= 767px    tablet 768px-1024px    desktop >= 1025px
 *
 * Values come from the original's computed styles (Elementor kit 5 + page 14 CSS).
 * Header/footer menu styling is inferred (Elementor Pro menus were empty on the live site and the
 * Internet Archive copy has no CSS): see SITE.md "Known quirks".
 */

/* ============ 1. Tokens ============ */
:root {
  /* Colours (Elementor globals) */
  --color-primary: #1b1919;        /* global primary + text */
  --color-text: #1b1919;
  --color-secondary: #e1c699;      /* beige: hero button, icon circles */
  --color-accent: #cb171b;         /* red: buttons, footer bar */
  --color-bg: #ffffff;
  --color-white: #ffffff;
  --color-tile-label: rgb(0 0 0 / 0.71);  /* #000000B5 */
  --shadow-card: 0 1px 20px 0 rgb(0 0 0 / 0.15);

  /* Restored menus (inferred). One-token switches: */
  --nav-link: var(--color-primary);
  --nav-link-hover: var(--color-accent);
  --footer-nav-link: var(--color-white);
  --footer-nav-link-hover: var(--color-secondary);

  /* Typography */
  --font-heading: "Playfair Display", Georgia, serif;
  --font-body: "Montserrat", Arial, sans-serif;

  /* Layout */
  --container: 1160px;
  --container-inner: 1140px;
  --col-pad: 10px;                 /* Elementor default column gap */
  --widget-gap: 20px;              /* Elementor widget spacing */
  --radius-button: 10px;
  --radius-card: 20px;
  --radius-tile: 10px;

  /* Motion */
  --duration: 0.3s;
  --duration-button: 0.2s;
  --ease: ease-in-out;
}

/* ============ 2. Fonts ============ */
/* Google Fonts (SIL OFL), self-hosted variable woff2, latin subset. */
@font-face { font-family: "Playfair Display"; src: url("/assets/fonts/playfair-display-latin-variable.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/assets/fonts/montserrat-latin-variable.woff2") format("woff2"); font-weight: 300 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; }
/* Elementor kit: body text Playfair Display 600; page 14 body background is the beige blob (top left). */
body {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  line-height: normal;
  color: #000;
  background: var(--color-bg) url("/wp-content/uploads/2022/01/blob.png") 0 0 no-repeat;
  overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; }
img, video { height: auto; display: block; }
h1, h2, h3 { margin: 0; font-family: var(--font-heading); font-weight: 400; color: var(--color-primary); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.site-footer a:focus-visible { outline-color: var(--color-white); }

/* ============ 4. Layout ============ */
/* A boxed Elementor section: 1160px container, sections get 50px side padding on tablet/mobile. */
.container { max-width: var(--container); margin-inline: auto; }
.container--inner { max-width: var(--container-inner); }
@media (max-width: 1024px) {
  .section--padded { padding-inline: 50px; }
}
/* Columns: flex row, each column has 10px padding (Elementor column gap "default"). */
.cols { display: flex; flex-wrap: wrap; }
.col { padding: var(--col-pad); min-width: 0; width: 100%; }
.stack > * + * { margin-top: var(--widget-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-primary); }
.skip-link:focus { left: 16px; }

/* === Component: site-header === */
/* Not sticky (as the original). Desktop: logo 30% | nav 39.332% | buttons 30%. */
.site-header { position: relative; z-index: 50; }
.site-header__inner { display: flex; flex-wrap: wrap; max-width: var(--container); margin-inline: auto; }
.site-header__logo, .site-header__nav, .site-header__actions { padding: var(--col-pad); min-width: 0; }
.site-header__logo { width: 30%; }
.site-header__logo img { width: 160px; max-width: 100%; }
.site-header__nav { width: 39.332%; }
.site-header__actions { width: 30%; display: flex; align-items: center; justify-content: flex-end; }
@media (max-width: 1024px) {
  .site-header { padding-inline: 50px; }
  .site-header__logo { width: 40%; }
  .site-header__nav { width: 60%; }
  .site-header__actions { width: 100%; }
}
@media (max-width: 767px) {
  .site-header__logo { width: 50%; }
  .site-header__nav { width: 50%; text-align: center; }
  .site-header__actions { justify-content: center; }
  .site-header__actions .button-group { justify-content: center; }
}

/* === Component: site-nav (Elementor Pro nav menu c5ba039, restored; burger below 768px) === */
.nav-toggle { display: none; }
.site-nav__list { display: flex; flex-wrap: wrap; }
.site-nav__list a {
  display: block;
  padding: 13px 20px;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  color: var(--nav-link);
  transition: color var(--duration);
}
.site-nav__list a:hover, .site-nav__list a:focus-visible { color: var(--nav-link-hover); }
@media (max-width: 767px) {
  /* Burger: Elementor Pro toggle (light grey square, 22px icon), enlarged to a 44px tap target. */
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin: -5px 0 -6px; padding: 0; border: 0; border-radius: 3px;
    background: rgb(0 0 0 / 0.05); color: #33373d; cursor: pointer;
  }
  .nav-toggle svg { width: 22px; height: 22px; }
  .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 ("stretch") dropdown over the page, sliding open (grid 0fr -> 1fr). */
  .site-nav {
    position: absolute; left: 0; right: 0; z-index: 60;
    margin-top: 10px;
    display: grid; grid-template-rows: 0fr; align-items: stretch;
    background: var(--color-bg);
    transition: grid-template-rows var(--duration) ease, visibility var(--duration);
    visibility: hidden;
  }
  .site-nav.is-open { grid-template-rows: 1fr; visibility: visible; box-shadow: 0 6px 12px rgb(0 0 0 / 0.08); }
  .site-nav__clip { overflow: hidden; min-height: 0; }
  .site-nav__list { flex-direction: column; text-align: left; }
  .site-nav__list a { padding: 13px 20px; font-weight: 500; min-height: 44px; }
}

/* === Component: site-footer (red bar; restored footer menu + "Powered by OrderYOYO") === */
.site-footer { margin-top: 50px; background: var(--color-accent); color: var(--color-white); }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; max-width: var(--container); margin-inline: auto; }
.footer-nav { width: 75%; padding: var(--col-pad); }
.footer-nav__list { display: flex; flex-wrap: wrap; justify-content: center; margin-bottom: 20px; }
.footer-nav__list a {
  display: block;
  padding: 13px 20px;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  color: var(--footer-nav-link);
  transition: color var(--duration);
}
.footer-nav__list a:hover, .footer-nav__list a:focus-visible { color: var(--footer-nav-link-hover); }
.site-footer__credit {
  width: 25%;
  padding: var(--col-pad);
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 20px;
  line-height: 1;
  text-align: end;
  color: var(--color-white);
}
.site-footer__credit a { color: inherit; }
@media (max-width: 1024px) {
  .footer-nav, .site-footer__credit { width: 100%; }
  .footer-nav__list { flex-direction: column; align-items: center; margin-bottom: 0; }
  .site-footer__credit { text-align: center; }
}

/* === Component: button / button-group (Elementor Extras button group) === */
/* Pills: Playfair Display 16px/500, 10px 15px, radius 10px. No hover change on the original. */
.button-group { display: flex; flex-wrap: wrap; gap: 0 12px; }
.button-group--right { justify-content: flex-end; }
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  border-radius: var(--radius-button);
  background: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  line-height: 16px;
  white-space: nowrap;
  transition: all var(--duration-button) var(--ease);
}
/* Invisible 44px-tall hit area for touch; the pill keeps its original size. */
.button::after { content: ""; position: absolute; inset: -4px 0; }
.button--beige { background: var(--color-secondary); color: var(--color-primary); }
.button--link { background: transparent; color: var(--color-primary); }
.button__icon { width: 14px; height: 16px; margin-left: 12px; flex: none; }
.button--link .button__icon { margin-block: 1px; }

/* === Component: section-title (Playfair Display headings) === */
.title-xl { font-size: 64px; line-height: 1.25; }
.title-lg { font-size: 48px; line-height: 1.4; }
.title-lg--tight { line-height: 1.2; }
.title-md { font-size: 22px; line-height: 1.4; }
.title-sm { font-size: 24px; line-height: 1; }
@media (max-width: 1024px) {
  .title-lg { font-size: 38px; }
}
@media (max-width: 767px) {
  .title-xl { font-size: 36px; }
  .title-lg { font-size: 30px; }
  .title-md { font-size: 20px; }
}

/* === Component: text (Montserrat body copy; Elementor text-editor paragraphs) === */
.text { display: flow-root; font-family: var(--font-body); color: var(--color-text); }
.text p { margin-block: 1em; }
.text--16-light { font-size: 16px; font-weight: 300; line-height: 1.6; }
.text--18 { font-size: 18px; font-weight: 400; line-height: 1.5; }
.text--18-light { font-size: 18px; font-weight: 300; line-height: 1.5; }
@media (max-width: 1024px) {
  .text--18-tablet-16 { font-size: 16px; }
}
@media (max-width: 767px) {
  .text--18-mobile-16 { font-size: 16px; }
}

/* === Component: info-card (white rounded card with shadow; three on the home page) === */
.info-cards { display: flex; flex-wrap: wrap; }
.info-cards__col { width: 33.333%; display: flex; min-width: 0; }
.info-card {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 100%;
  margin: 40px 20px 0;
  padding: 40px;
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.info-card--raised { margin: 0 20px 40px; }
.info-card > * + * { margin-top: var(--widget-gap); }
@media (max-width: 1024px) {
  .info-cards { padding-inline: 30px; }
  .info-cards__col { width: 50%; }
  .info-card, .info-card--raised { margin: 20px; }
}
@media (max-width: 767px) {
  .info-cards__col { width: 100%; }
  .info-card, .info-card--raised { margin: 10px; }
}

/* === Component: photo-tile (category tiles with a dark label strip) === */
/* Two staggered pairs: left tile 350px tall, right tile 340px and 50px lower; second pair overlaps 30px. */
.photo-tiles__row { display: flex; min-height: 400px; }
.photo-tiles__row + .photo-tiles__row { margin-top: -30px; }
.photo-tile {
  display: flex;
  align-items: flex-end;
  width: calc(50% - 20px);
  margin: 0 10px 50px;
  border-radius: var(--radius-tile);
  background-position: center;
  background-size: cover;
  background-color: #ddd;
}
.photo-tile--low { margin: 50px 10px 10px; }
.photo-tile__label {
  width: 100%;
  padding: 15px 20px;
  border-radius: 0 0 var(--radius-tile) var(--radius-tile);
  background: var(--color-tile-label);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 300;
  line-height: 1;
  color: var(--color-white);
}
@media (max-width: 767px) {
  .photo-tiles__row { flex-direction: column; }
  .photo-tiles__row + .photo-tiles__row { margin-top: 0; }
  .photo-tile, .photo-tile--low { width: auto; height: 180px; margin: 10px; }
}

/* === Component: contact-item (beige icon circle + heading, text underneath) === */
.contact-items { display: flex; flex-wrap: wrap; }
.contact-item { width: 33.333%; padding: var(--col-pad); display: flex; flex-wrap: wrap; align-content: flex-start; }
.contact-item__icon {
  display: flex; align-items: center; justify-content: center;
  width: 60px; height: 64px;
  margin-right: 15px; padding: 15px;
  border-radius: 100%;
  background: var(--color-secondary);
  color: var(--color-primary);
}
.contact-item__icon svg { width: 30px; height: 30px; }
.contact-item__title { align-self: center; font-size: 24px; line-height: 1; }
.contact-item__text { display: flow-root; width: 100%; padding-left: 75px; font-family: var(--font-body); font-size: 18px; font-weight: 300; line-height: 1.4; color: var(--color-text); }
.contact-item__text p { margin-block: 18px; }
@media (max-width: 1024px) {
  .contact-item { width: 50%; }
}
@media (max-width: 767px) {
  .contact-item { width: 100%; }
  .contact-item__text { font-size: 16px; }
  .contact-item__text p { margin-block: 16px; }
}

/* === Component: contact-email (no form on this site; kept for future use) === */
.contact-email { display: grid; gap: 16px; justify-items: start; }
.contact-email__address { font-weight: 600; word-break: break-word; }

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

/* === Page: / (home) === */
/* Hero: sandwich as a background on desktop (contain, right); on tablet/mobile it is an image below the text. */
.hero {
  /* 1024px WordPress size at 1x (the column is ~735px wide), the 1466px original at 2x */
  background-image: url("/wp-content/uploads/2022/01/food-5981258_1920_ccexpress-1-1024x847.png");
  background-image: image-set(url("/wp-content/uploads/2022/01/food-5981258_1920_ccexpress-1-1024x847.png") 1x, url("/wp-content/uploads/2022/01/food-5981258_1920_ccexpress-1.png") 2x);
  background-position: center right;
  background-repeat: no-repeat;
  background-size: contain;
}
.hero__inner { display: flex; flex-wrap: wrap; }
.hero__text { width: 50%; padding: 150px 0; }
.hero__text .button-group { margin-top: 30px; }
.hero__media { width: 50%; padding: var(--col-pad); }
.hero__media picture, .app-promo__media picture { display: block; width: 100%; }
.hero__img { display: none; }
@media (max-width: 1024px) {
  .hero { background-image: none; }
  .hero__text { width: 100%; padding: 50px; }
  .hero__media { width: 100%; display: flex; align-items: center; }
  /* As the original: the image is set to 100% x 500px without cropping (it is stretched). */
  .hero__img { display: block; width: 100%; height: 500px; }
}
@media (max-width: 767px) {
  .hero__text { padding: 50px 20px 0; }
  .hero__media { padding: 0; }
}

/* About ("Serving Gatwick since 2007!"), anchor #about */
.about { margin-top: 100px; }
.about__intro { margin-bottom: 50px; }
.about__heading { width: 40%; }
.about__copy { width: 60%; }
.about__img { width: 100%; border-radius: var(--radius-card); }
@media (max-width: 1024px) {
  .about__heading, .about__copy { width: 100%; }
}
@media (max-width: 767px) {
  .about { margin-top: 50px; }
  .about__intro { margin-bottom: 20px; }
}

/* Treats, anchor #menu: beige rectangle behind the left column on desktop */
.treats {
  margin-top: 100px;
  background: url("/wp-content/uploads/2022/01/Rectangle-5.png") left center no-repeat;
}
.treats__inner { display: flex; flex-wrap: wrap; }
.treats__text { width: 50%; padding: 0 50px 0 0; display: flex; flex-direction: column; justify-content: center; }
.treats__text > * + * { margin-top: var(--widget-gap); }
.treats__text .text p { margin-block: 18px; }
.treats__tiles { width: 50%; }
@media (max-width: 1024px) {
  .treats { background-image: none; }
  .treats__text, .treats__tiles { width: 100%; }
  .treats__tiles { margin-top: 50px; }
}
@media (max-width: 767px) {
  .treats { margin-top: 50px; }
  .treats__text { padding: 0 20px; }
  .treats__tiles { padding-top: 50px; }
}

/* App promo */
.app-promo { margin-top: 100px; }
.app-promo__inner { display: flex; flex-wrap: wrap; }
.app-promo__text { width: 47.281%; padding: 75px 0 100px; }
.app-promo__text > * + * { margin-top: var(--widget-gap); }
.app-promo__title { margin-right: 50px; }
.app-promo__sub { padding-top: 20px; }
.app-promo__text .text p { margin-block: 18px; }
.app-promo__media {
  width: 52.719%;
  padding: var(--col-pad);
  background: url("/wp-content/uploads/2022/01/iPhone-13.png") center / contain no-repeat;
}
.app-promo__img { display: none; }
@media (max-width: 1024px) {
  .app-promo__text, .app-promo__media { width: 100%; }
  .app-promo__media { background: none; display: flex; align-items: center; justify-content: center; }
  .app-promo__img { display: block; width: 100%; max-width: 908px; margin-inline: auto; }
}
@media (max-width: 767px) {
  .app-promo { margin-top: 0; }
  .app-promo__text { padding: 50px 10px; }
  .app-promo__text .text p { margin-block: 16px; }
  .app-promo__media { padding: 0; }
}

/* Get in touch, anchor #contact */
.get-in-touch { margin-top: 100px; }
.get-in-touch__title { margin-right: 50px; text-align: center; }
.get-in-touch .contact-items { margin-top: 50px; }
@media (max-width: 767px) {
  .get-in-touch { margin-top: 20px; }
}

/* === Page: /404.html === */
.not-found { padding-block: 100px 50px; }
.not-found .text { margin-block: 20px; }
.not-found .text a { color: var(--color-accent); 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; }
.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; }
}
