/*
 * site.css: the only stylesheet for zaynsperth.co.uk (Zayn's Fast Food, Perth).
 *
 * 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        sections and containers
 *   5. Components    one block per component: "=== Component: <name> ==="
 *   6. Pages         rare page-specific rules: "=== Page: <path> ==="
 *   7. Utilities     a handful of helpers
 *
 * Breakpoints (the original's Elementor breakpoints; media queries can't use custom properties):
 *   mobile  <= 767px    tablet 768px-1024px    desktop >= 1025px
 *   The original's review cards also used a custom "max-width: 768px" rule (cards stack).
 *
 * Values come from the original Elementor kit (post-10) and the computed styles of the live
 * page (design-system/orig-styles.json). rem = 16px.
 */

/* ============ 1. Tokens ============ */
:root {
  /* Colours (Elementor global colours) */
  --color-primary: #fe8813;      /* orange: accents, nav active, script headings, card borders */
  --color-secondary: #181818;    /* near-black: section headings, dark bands */
  --color-text: #333333;         /* body text, buttons, footer headings */
  --color-accent: #eeeeee;       /* light grey: header, footer, button fill, menu panel */
  --color-bg: #ffffff;
  --color-icon-bg: rgb(0 0 0 / 0.1);  /* social icon circle */
  --color-star: #f0ad4e;         /* Elementor star-rating default */
  --color-overlay: rgb(0 0 0 / 0.8);  /* mobile menu backdrop */

  /* Typography */
  --font-display: "Playfair Display", Georgia, serif;   /* headings, buttons */
  --font-script: "Seaweed Script", cursive;             /* "Zayns", "Reviews", "Our App" */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --text-base: 1.15rem;          /* 18.4px */
  --leading: 1.5;
  --text-h2: 4rem;               /* 64px desktop, 56px tablet, 41.6px mobile */
  --text-script: 6rem;           /* 96px desktop/tablet, 64px mobile */
  --text-h3: 2.5rem;             /* footer headings: 40px, 24px mobile */
  --text-panel: 3rem;            /* mobile menu links: 48px, 40px mobile */

  /* Spacing and shape */
  --gutter: 2rem;                /* section side padding (32px) */
  --section-y: 5rem;             /* section top/bottom padding (80px) */
  --band: 5rem;                  /* dark band under about, menu and reviews (80px) */
  --container: 1080px;           /* boxed content width */
  --container-wide: 1440px;      /* header and hero content width */
  --content: 540px;              /* text columns */
  --radius-card: 16px;

  /* Motion */
  --duration: 300ms;
  --duration-panel: 400ms;       /* original popup slideInRight 0.4s */
  --ease: ease;
}
@media (max-width: 1024px) {
  :root { --text-h2: 3.5rem; }
}
@media (max-width: 767px) {
  :root { --text-h2: 2.6rem; --text-script: 4rem; --text-h3: 1.5rem; --text-panel: 2.5rem; }
}

/* ============ 2. Fonts ============ */
/* Google Fonts, self-hosted (latin subset, variable files). See SITE.md. */
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-var.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("/assets/fonts/playfair-display-latin-var.woff2") format("woff2"); font-weight: 500 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Seaweed Script"; src: url("/assets/fonts/seaweed-script-latin-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-size: var(--text-base); line-height: var(--leading); color: var(--color-text); background: var(--color-bg); overflow-x: clip; }
img, svg, video, iframe { max-width: 100%; }
img, video { height: auto; display: block; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; line-height: 1; }
p { margin: 0; }
p + p { margin-top: 1.25rem; }   /* original kit custom CSS: p { margin: 0 } p:has(+ p) { margin-bottom: 1.25rem } */
a { color: inherit; text-decoration: none; transition: color var(--duration) var(--ease); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
[id] { scroll-margin-top: 0; }

/* ============ 4. Layout ============ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; }
/* Dark 80px band under a section (Elementor border-bottom 5rem, secondary colour) */
.has-band { border-bottom: var(--band) solid var(--color-secondary); }

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

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

/* === Component: site-header (grey bar: logo | anchor nav | Order Now + hamburger; not sticky) === */
.site-header { background: var(--color-accent); padding: 1.25rem var(--gutter); }
.site-header__inner { display: flex; align-items: center; max-width: var(--container-wide); margin-inline: auto; min-height: 65px; }
.site-header__logo { flex: 0 1 25%; min-width: 0; }
.site-header__logo a { display: block; width: fit-content; }
.site-header__logo img { width: 8rem; max-width: 100%; }
.site-nav { flex: 0 1 50%; min-width: 0; }
.site-nav__list { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 2rem; list-style: none; margin: 0; padding: 0; }
.site-nav__list a { display: block; font-family: var(--font-body); font-size: var(--text-base); font-weight: 400; line-height: 1.5; text-transform: uppercase; color: var(--color-text); }
.site-nav__list a:hover, .site-nav__list a:focus-visible, .site-nav__list a.is-active { color: var(--color-primary); }
.site-header__actions { flex: 0 1 25%; min-width: 0; display: flex; justify-content: flex-end; align-items: center; gap: 0 2rem; }
.menu-trigger { display: none; flex: 0 0 auto; align-items: center; justify-content: center; width: 44px; height: 47px; margin-top: 3px; color: var(--color-text); }
.menu-trigger svg { width: 35px; height: 40px; fill: currentColor; }
@media (max-width: 1024px) {
  .site-header__logo { flex-basis: 50%; }
  .site-nav { display: none; }
  .site-header__actions { flex-basis: 50%; }
  .menu-trigger { display: inline-flex; }
}
@media (max-width: 767px) {
  .site-header__actions .site-header__order { display: none; }
}

/* === Component: menu-panel (mobile menu: native <dialog>, slides in from the right like the original Elementor popup) === */
.menu-panel { position: fixed; inset: 0 0 0 auto; margin: 0; width: 400px; max-width: 100vw; height: 100vh; height: 100dvh; max-height: none; padding: 48px; border: 0; background: var(--color-accent); color: var(--color-text); box-shadow: 2px 8px 23px 3px rgb(0 0 0 / 0.2); overflow: auto; transform: translateX(0); transition: transform var(--duration-panel) var(--ease), overlay var(--duration-panel) allow-discrete, display var(--duration-panel) allow-discrete; }
.menu-panel:not([open]) { transform: translateX(100%); }
@starting-style { .menu-panel[open] { transform: translateX(100%); } }
.menu-panel::backdrop { background: var(--color-overlay); }
.menu-panel__inner { display: flex; align-items: center; min-height: 100%; }
.menu-panel__close { position: absolute; top: 0; right: 0; display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; color: var(--color-text); }
.menu-panel__close svg { width: 32px; height: 32px; fill: currentColor; }
.menu-panel__list { list-style: none; margin: 0; padding: 0; }
.menu-panel__list a { display: block; font-family: var(--font-display); font-size: var(--text-panel); font-weight: 700; line-height: 1.3; text-transform: uppercase; color: var(--color-text); }
.menu-panel__list a:hover, .menu-panel__list a:focus-visible, .menu-panel__list a.is-active { color: var(--color-primary); }
@media (max-width: 767px) {
  .menu-panel { width: 320px; padding: 32px; }
}

/* === Component: button (outlined, Playfair uppercase, grey fill) === */
.button { display: inline-block; padding: 12px 24px; font-family: var(--font-display); font-size: var(--text-base); font-weight: 500; line-height: 1; text-transform: uppercase; text-align: center; color: var(--color-text); background: var(--color-accent); border: 1px solid var(--color-text); border-radius: 0; transition: color var(--duration) var(--ease), background-color var(--duration) var(--ease); }
.button:hover, .button:focus-visible { color: var(--color-text); }
/* Groups: --stack puts each button on its own line (16px apart); --row centres them 2rem apart */
.button-group { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 2rem; }
.button-group--stack { flex-direction: column; align-items: flex-start; }
.button-group--row { justify-content: center; }
@media (max-width: 767px) {
  .button-group--row { flex-direction: column; }
}

/* === Component: split-heading (Playfair caps word + overlapping orange script word, e.g. "Welcome To / Zayns") === */
.split-heading { margin: 0; }
.split-heading__main, .split-heading__script { display: block; }
.split-heading__main { font-family: var(--font-display); font-size: var(--text-h2); font-weight: 700; line-height: 1; text-transform: uppercase; color: var(--color-secondary); }
.split-heading__script { font-family: var(--font-script); font-size: var(--text-script); font-weight: 400; line-height: 1; color: var(--color-primary); text-align: end; margin-top: -2rem; }
.split-heading--narrow { width: 320px; max-width: 100%; margin-inline: auto; }   /* "Our / Reviews" */
.split-heading--app { width: 500px; max-width: 100%; margin-inline: auto; }      /* "Download / Our App" */
@media (max-width: 767px) {
  .split-heading__script { margin-top: -1rem; }
  .split-heading--narrow { width: 240px; }
}

/* === Component: section-title (single Playfair caps heading, e.g. "Our Menu") === */
.section-title { font-family: var(--font-display); font-size: var(--text-h2); font-weight: 700; line-height: 1; text-transform: uppercase; color: var(--color-secondary); }

/* === Component: divider (1px orange line) === */
.divider { border: 0; border-top: 1px solid var(--color-primary); margin: 32px 0; width: 100%; }
.divider--lg { margin: 48px 0; }

/* === Component: hero (full-height photo, fixed on desktop, orange stripe overlay, big logo) === */
.hero { position: relative; display: flex; flex-direction: column; min-height: calc(100vh - 6.5rem); padding: 3rem var(--gutter); background: #2a2c31 url("/wp-content/uploads/2023/09/zayns-hero.jpg") center / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: url("/wp-content/uploads/2023/09/zayns-hero-pattern.png") right bottom / auto no-repeat; opacity: 0.5; pointer-events: none; }
.hero__inner { position: relative; width: 100%; max-width: var(--container-wide); margin-inline: auto; }
.hero__logo { display: inline-block; }
.hero__logo img { width: 14rem; max-width: 100%; }
@media (min-width: 1025px) {
  .hero, .hero::before { background-attachment: fixed; }
}

/* === Component: media-split (text column + image column, side by side from 768px) === */
.media-split { display: flex; align-items: center; }
.media-split__text { flex: 0 0 55%; padding: var(--section-y) var(--gutter); }
.media-split__text-inner { max-width: var(--content); margin-inline: auto; }
.media-split__media { flex: 0 0 45%; align-self: stretch; display: flex; align-items: center; }
.media-split__media img { width: 100%; }
.media-split--center .media-split__text-inner { text-align: center; }
@media (max-width: 1024px) {
  .media-split--about { align-items: stretch; }
  .media-split--about .media-split__media img { height: 45rem; object-fit: cover; }
}
@media (max-width: 767px) {
  .media-split { flex-direction: column; align-items: stretch; }
  .media-split__text, .media-split__media { flex-basis: auto; }
}

/* === Component: photo-grid (2x2 food photos, 400px tall, cover) === */
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; width: 100%; align-self: center; }
.photo-grid img { width: 100%; height: 25rem; object-fit: cover; }

/* === Component: review-card (orange outlined card, person icon breaking the top border, 5 stars) === */
.reviews { padding: var(--section-y) var(--gutter); display: flex; flex-direction: column; gap: 4rem; }
.reviews__list { display: flex; gap: 3rem; width: 100%; max-width: var(--container); margin: 0 auto; padding: 0; list-style: none; }
.review-card { flex: 1 0 0; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 1.5rem; border: 4px solid var(--color-primary); border-radius: var(--radius-card); }
.review-card__head { margin-top: -4rem; padding: 0 1rem; background: var(--color-bg); text-align: center; }
.review-card__icon { display: block; width: 50px; height: 50px; margin: 0.5rem auto; fill: var(--color-primary); }
.review-card__name { margin: 0.5rem 0; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; line-height: 1.33; text-transform: uppercase; color: var(--color-text); }
.review-card__name--sm { font-size: 1.4rem; line-height: 1.5rem; }   /* the original's second card */
.review-card__text { margin: 0; }
.stars { display: flex; gap: 6px; margin-top: auto; padding-top: 12px; color: var(--color-star); }
.stars svg { width: 40px; height: 40px; fill: currentColor; }
@media (min-width: 768px) and (max-width: 1024px) {
  .review-card--hide-tablet { display: none; }   /* the original hid the third card at tablet widths */
}
@media (max-width: 768px) {
  .reviews__list { flex-direction: column; }
}
@media (max-width: 767px) {
  .review-card__name, .review-card__name--sm { font-size: 2rem; line-height: 1.33; }
}

/* === Component: wide-image (full-width photo band) === */
.wide-image img { width: 100%; }

/* === Component: app-promo (download our app, phone mock-up, faded logo behind) === */
.app-promo { display: flex; align-items: center; padding: var(--section-y) var(--gutter) 0; background: url("/wp-content/uploads/2023/09/zayns-faded-logo.png") center / auto no-repeat; overflow: hidden; }
.app-promo__inner { display: flex; align-items: center; width: 100%; max-width: var(--container); margin-inline: auto; }
.app-promo__text { flex: 0 0 50%; display: flex; flex-direction: column; gap: 3rem; }
.app-promo__media { flex: 0 0 50%; text-align: center; }
.app-promo__media img { margin: 0 auto -8rem; }
@media (max-width: 767px) {
  .app-promo__inner { flex-direction: column; }
  .app-promo__text, .app-promo__media { flex-basis: auto; width: 100%; }
}

/* === Component: site-footer (#contact: Contact Us | Find Us, then copyright bar) === */
.site-footer { background: var(--color-accent); color: var(--color-text); }
.site-footer__main { display: flex; justify-content: center; align-items: flex-start; gap: 2rem; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding: 5rem var(--gutter) 4rem; }
.site-footer__col { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.site-footer__title { font-family: var(--font-display); font-size: var(--text-h3); font-weight: 700; line-height: 1.3; text-transform: uppercase; color: var(--color-text); margin-bottom: 1.5rem; }
.site-footer__label { font-family: var(--font-body); font-size: var(--text-base); font-weight: 700; line-height: 1; text-transform: uppercase; color: var(--color-text); margin-bottom: 0.5rem; }
.site-footer__value + .site-footer__label { margin-top: 2rem; }
.site-footer__address { width: 50%; margin-bottom: 1.5rem; }
.site-footer__bar { padding: 2rem var(--gutter); }
.site-footer__copyright { max-width: var(--container); margin-inline: auto; text-align: center; }
@media (max-width: 1024px) {
  .site-footer__address { width: 80%; }
}
@media (max-width: 767px) {
  .site-footer__main { flex-direction: column; padding: 4rem var(--gutter) 2rem; }
  .site-footer__col { align-items: flex-start; text-align: start; width: 100%; }
  .site-footer__address { width: 100%; }
  .site-footer__copyright { text-align: start; }
}

/* === Component: social-icons (grey circle, dark icon) === */
.social-icons { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0; }
.social-icons a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--color-icon-bg); color: var(--color-text); }
.social-icons a:hover { opacity: 0.9; }
.social-icons svg { width: 20px; height: 20px; fill: currentColor; }

/* === Component: page-message (404 and other plain text pages) === */
.page-message { padding: var(--section-y) var(--gutter); text-align: center; }
.page-message__inner { max-width: var(--content); margin-inline: auto; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }

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

/* === Page: / (home) === */
.about__buttons { margin-top: 48px; }
.menu__text { margin-top: 48px; }
@media (max-width: 767px) {
  /* The original pushed "Zayns" 14rem right on phones and it overflowed the screen (d6); right-align instead. */
  .split-heading__script--about { text-align: end; }
}

/* ============ 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; }
@media (max-width: 767px) {
  .hide-mobile { display: none !important; }
}

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