/*
 * site.css: the only stylesheet for marios-eastwood.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        shared containers
 *   5. Components    one block per component: "=== Component: <name> ==="
 *   6. Pages         rare page-specific rules
 *   7. Utilities     a handful of helpers
 *
 * The site has TWO templates, as the original did:
 *   - "home"    (/):         Barlow Condensed + Crimson Text, grey #f2f2f2, dotted dividers.
 *                            Body class: template-home. Components prefixed home-*.
 *   - "classic" (/contact/): the 2018 design: wood-texture header/footer, Acme + Open Sans.
 *                            Body class: template-classic. Components prefixed classic-*.
 *
 * Breakpoints (Elementor's defaults on the original; media queries can't use custom properties):
 *   mobile  ≤ 767px    tablet 768px–1024px    desktop ≥ 1025px
 */

/* ============ 1. Tokens ============ */
:root {
  /* Colours (from the original's computed styles) */
  --color-ink: #000300;          /* home: headings, body text, buttons, dividers */
  --color-ink-soft: #222222;     /* home: "Order food" section, hero overlay, filled button */
  --color-ink-body: #111111;     /* home: order section body text (none at present) */
  --color-grey-bg: #f2f2f2;      /* home: page background */
  --color-white: #ffffff;
  --color-classic-text: #231f20; /* contact: headings and text */
  --color-facebook: #3b5998;

  /* Typography */
  --font-display: "Barlow Condensed", sans-serif;  /* home headings, buttons, footer */
  --font-serif: "Crimson Text", serif;             /* home body copy */
  --font-classic-heading: "Acme", sans-serif;      /* contact headings */
  --font-classic-body: "Open Sans", sans-serif;    /* contact body */
  --font-classic-small: "Roboto", sans-serif;      /* contact footer copyright */

  /* Layout */
  --container-home: 1200px;
  --container-home-inner: 1140px;
  --container-footer: 1024px;
  --container-classic: 1140px;

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

/* ============ 2. Fonts (self-hosted Google Fonts, latin subset) ============ */
@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/barlow-condensed-700-latin.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Crimson Text"; src: url("/assets/fonts/crimson-text-400-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Acme"; src: url("/assets/fonts/acme-400-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("/assets/fonts/open-sans-400-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("/assets/fonts/roboto-300-latin.woff2") format("woff2"); font-weight: 300; 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; color: var(--color-ink); background: var(--color-white); }
body.template-home { background: var(--color-grey-bg); }
img, svg, video, iframe { max-width: 100%; }
img, video { height: auto; display: block; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* ============ 4. Layout ============ */
/* Each template's sections define their own containers (see components). */

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

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

/* ---------------- Home template ---------------- */

/* === Component: home-hero (full-bleed photo, dark overlay, centred logo) === */
.home-hero { position: relative; display: flex; align-items: center; justify-content: center; min-height: 850px; padding: 80px 60px 60px; background: var(--color-ink-soft) center / cover no-repeat; }
.home-hero::before { content: ""; position: absolute; inset: 0; background: var(--color-ink-soft); opacity: 0.7; }
.home-hero__logo { position: relative; width: 296px; }
@media (max-width: 767px) {
  .home-hero { min-height: 500px; padding: 50px 30px 30px; }
}

/* === Component: home-eyebrow (small uppercase label above a big heading) === */
.home-eyebrow { font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1; letter-spacing: 1px; text-transform: uppercase; text-align: center; color: inherit; }

/* === Component: home-title (big uppercase heading) === */
.home-title { margin: 40px 0 50px; font-family: var(--font-display); font-weight: 700; font-size: 4rem; line-height: 1; letter-spacing: 1px; text-transform: uppercase; text-align: center; color: inherit; }
.home-title--loose { line-height: 1.2; }
@media (max-width: 1024px) { .home-title--loose-tablet { line-height: 1.2; } }
@media (max-width: 767px) { .home-title { font-size: 3rem; } }

/* === Component: home-divider (2px dotted rule) === */
.home-divider { display: block; width: 100%; height: 0; margin: 0; border: 0; border-top: 2px dotted currentColor; }

/* === Component: home-button (outline / filled) === */
.home-button { display: inline-block; padding: 12px; border: 2px solid currentColor; background: transparent; color: inherit; font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; text-align: center; transition: all var(--duration); }
.home-button--filled { background: var(--color-ink-soft); border-color: var(--color-ink-soft); color: var(--color-white); }
.home-actions { display: flex; justify-content: center; }

/* === Component: home-intro (About + Our Menu, two columns on desktop) === */
.home-intro { padding: 150px 50px; color: var(--color-ink); }
.home-intro__inner { display: flex; max-width: var(--container-home); margin-inline: auto; }
.home-intro__about { flex: 0 0 50%; min-width: 0; padding: 10px 60px 10px 10px; }  /* 50px column margin + 10px padding, as the original */
.home-intro__menu { flex: 0 0 50%; min-width: 0; padding-left: 50px; }
.home-intro__text { margin: 50px 0; font-family: var(--font-serif); font-size: 20px; line-height: 1.8; text-align: center; }
.home-intro__text p { margin: 1em 0; }
@media (max-width: 1024px) {
  .home-intro { padding: 100px 50px; }
  .home-intro__inner { flex-direction: column; }
  .home-intro__about, .home-intro__menu { flex: none; }
}
@media (max-width: 767px) {
  .home-intro { padding: 50px 30px; }
  .home-intro__text { font-size: 1rem; }
}

/* === Component: home-menu-list (featured dishes in two columns, dotted rules) === */
.home-menu-list { display: grid; grid-template-columns: 1fr 1fr; padding: 70px 0; }
.home-menu-list__col { padding: 10px; }
.home-menu-list__col:first-child { margin-right: 20px; }
.home-menu-list__col:last-child { margin-left: 20px; }
.home-menu-list__item + .home-menu-list__item { margin-top: 40px; }
.home-menu-list__name { font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1; letter-spacing: 1px; text-transform: uppercase; }
.home-menu-list__desc { margin: 36px 0 36px; font-family: var(--font-serif); font-size: 16px; line-height: 1.5; }
@media (max-width: 1024px) { .home-menu-list { padding: 30px; } }
@media (max-width: 767px) {
  .home-menu-list { grid-template-columns: 1fr; padding: 30px 10px; }
  .home-menu-list__col:first-child, .home-menu-list__col:last-child { margin: 0; }
  .home-menu-list__col + .home-menu-list__col { margin-top: 0; }
}

/* === Component: home-banner (full-width photo band) === */
.home-banner { min-height: 500px; background: center / cover no-repeat; }

/* === Component: home-order ("Order your food online" section) ===
 * The original's Lorem ipsum body was removed 2026-10-23 (q2). To add real copy, put
 * <div class="home-order__text"><p>…</p></div> before .home-order__actions. */
.home-order { padding: 150px 50px; color: var(--color-ink-soft); }
.home-order__inner { max-width: var(--container-home); margin-inline: auto; padding: 10px; }
.home-order__body { display: flex; max-width: var(--container-home-inner); margin: 40px auto 0; }
.home-order__main { width: 59.474%; padding: 10px; }
.home-order__side { width: 40.308%; padding: 10px; }
.home-order__text { padding-bottom: 20px; font-family: var(--font-serif); font-size: 1.3rem; line-height: 1.7; color: var(--color-ink-body); }
.home-order__text p { margin: 1em 0; }
.home-order__actions { display: flex; flex-wrap: wrap; }
.home-order__actions .home-button { margin-right: 10px; }
/* Buttons only (no body copy since the Lorem ipsum was removed): one centred row under the centred heading */
.home-order__body--buttons-only { justify-content: center; }
.home-order__body--buttons-only .home-order__main { width: 100%; }
.home-order__body--buttons-only .home-order__actions { justify-content: center; gap: 10px; }
.home-order__body--buttons-only .home-order__actions .home-button { margin-right: 0; }
@media (max-width: 767px) {
  .home-order__body { flex-direction: column; }
  .home-order__main { width: 100%; }
  .home-order__side { display: none; }
  .home-order__actions { flex-direction: column; align-items: center; gap: 10px; }
  .home-order__actions .home-button { margin-right: 0; }
}

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

/* === Component: home-footer (phone, dotted rule, copyright, credit) === */
.home-footer { padding: 100px 0; color: var(--color-ink); font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1; letter-spacing: 1px; text-transform: uppercase; }
.home-footer__inner { max-width: var(--container-footer); margin-inline: auto; padding: 10px; }
.home-footer__top { display: flex; justify-content: flex-end; margin-bottom: 30px; padding-bottom: 30px; border-bottom: 2px dotted var(--color-ink); }
.home-footer__phone { width: 37.998%; padding: 10px; text-align: right; }
.home-footer__bottom { display: flex; align-items: center; }
.home-footer__bottom > * { flex: 1 1 50%; padding: 10px; }
.home-footer__credit { margin: 20px 0; line-height: normal; text-align: right; }
.home-footer a { color: inherit; text-decoration: none; }
@media (max-width: 1024px) {
  .home-footer { padding: 30px 20px; }
  .home-footer__top { min-height: 51px; }  /* the empty column the original kept above the rule */
  .home-footer__phone { display: none; }   /* original hid the phone on tablet */
}
@media (max-width: 767px) {
  .home-footer { padding: 25px 20px; }
  .home-footer__phone { display: block; width: 100%; text-align: center; }
  .home-footer__bottom { flex-direction: column; }
  .home-footer__bottom > * { flex: none; width: 100%; text-align: center; }
  .home-footer__copyright { line-height: 19px; }
}

/* ---------------- Classic template (/contact/) ---------------- */

/* === Component: classic-header (wood texture, Facebook icon, centred logo) === */
.classic-header { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: start; background: var(--color-white); box-shadow: 0 0 10px rgb(0 0 0 / 0.5); }
.classic-header::before { content: ""; position: absolute; inset: 0; background: var(--color-white) url("/wp-content/uploads/2018/07/header-bg.jpg") 0 0 / contain repeat; opacity: 0.6; }
.classic-header > * { position: relative; padding: 10px; }
.classic-header__brand { padding-bottom: 30px; }  /* the original kept an empty menu widget under the logo */
.classic-header__logo { display: block; width: 60%; margin-inline: auto; }
.classic-header__logo img { width: 100%; }
@media (max-width: 767px) {
  .classic-header { grid-template-columns: 1fr; }
  .classic-header__spacer { padding: 0; min-height: 1px; }
}

/* === Component: social-icon (round brand icon) === */
.social-icon { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; border: 3px solid var(--color-white); border-radius: 50%; background: var(--color-facebook); color: var(--color-white); }
.social-icon svg { width: 25px; height: 25px; fill: currentColor; }

/* === Component: classic-hero (photo band under the header) === */
.classic-hero { position: relative; z-index: 1; min-height: 404px; border-top: 4px solid var(--color-white); background: 0 0 / cover no-repeat; box-shadow: 0 0 10px rgb(0 0 0 / 0.5); }

/* === Component: classic-content (centred headings and text) === */
.classic-content { padding: 50px 0; color: var(--color-classic-text); text-align: center; }
.classic-content__inner { max-width: var(--container-classic); margin-inline: auto; padding: 10px; }
.classic-content h2 { margin: 0 0 35px; font-family: var(--font-classic-heading); font-weight: 400; font-size: 30px; line-height: 1; }
.classic-content p { margin: 0 0 15px; font-family: var(--font-classic-body); font-size: 15px; line-height: 1.8; }
.classic-content p + h2 { margin-top: 35px; }

/* === Component: classic-footer (wood texture, app badges, copyright + credit) === */
.classic-footer { position: relative; border-top: 4px solid var(--color-white); background: url("/wp-content/uploads/2018/07/header-bg.jpg") 0 0 / contain repeat; box-shadow: 0 0 10px rgb(0 0 0 / 0.5); }
.classic-footer__inner { max-width: var(--container-classic); margin-inline: auto; padding: 10px; }
.classic-footer__badges { display: grid; grid-template-columns: 1fr 1fr; }
.classic-footer__badges > * { padding: 10px; }
.classic-footer__badge img { width: 71px; }
.classic-footer__badge--end a { display: block; width: 71px; margin-left: auto; }
.classic-footer__badge--start a { display: block; width: 71px; }
.classic-footer__copyright { margin: 12px 0; font-family: var(--font-classic-small); font-weight: 300; font-size: 12px; color: var(--color-white); text-align: center; }
.classic-footer__copyright a { color: var(--color-white); text-decoration: none; }
@media (max-width: 767px) {
  .classic-footer__badges { grid-template-columns: 1fr; }
}

/* === Component: contact-email (replaces WordPress forms; not used on this site: it had no forms) === */
.contact-email { display: grid; gap: 1rem; justify-items: center; }
.contact-email__address { word-break: break-word; }

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

/* === Page: /404.html (not-found page, home template) === */
.home-hero--short { min-height: 400px; }
.home-notfound { text-align: center; }
.home-notfound__actions { justify-content: center; gap: 10px 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; }
}
