/*
 * site.css: the only stylesheet for thejollofrepublic.co.uk.
 *
 * Sections, in order:
 *   1. Tokens        colours, fonts, spacing (custom properties)
 *   2. Fonts         none self-hosted (see the note there)
 *   3. Base          reset and element defaults
 *   4. Layout        container, sections, two-column rows
 *   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
 *
 * Values come from the original's Elementor kit (post-8) and computed styles of the Internet Archive
 * copy (2026-06-10; contact page 2026-04-12), the last copy before Elementor Pro was switched off.
 * 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 (Elementor global colours) */
  --color-primary: #ea8c21;      /* orange: buttons, headings, band, mobile menu */
  --color-dark: #1c1c1c;         /* header card, dark sections, review cards */
  --color-white: #ffffff;
  --color-accent: #454545;       /* footer text */
  --color-muted: #888888;
  --color-border: #dddddd;       /* divider lines, halal popup */
  --color-bg-alt: #f8f8f8;       /* contact cards */
  --color-story-band: #3b3b3b;   /* /our-story/ title band as visitors saw it (video never loaded) */

  /* Typography. The original asked for "Droid Sans", "Epilogue" and "Young Serif", but none of them ever
     loaded (dead staging host / never enqueued), so visitors saw the browser's sans-serif everywhere
     (decision d6). One-line switch to Droid Sans: see SITE.md "Fonts". */
  --font-heading: sans-serif;
  --font-body: sans-serif;
  --text-h1: 4.5rem;             /* 72px; 64px tablet; 48px mobile (home hero: 4rem / 64px) */
  --text-h2: 3rem;               /* 48px; 40px tablet and mobile */
  --text-h3: 2rem;               /* 32px: card titles */
  --text-body: 1.25rem;          /* 20px */
  --text-small: 1rem;            /* 16px: buttons, footer (12px tablet/mobile) */
  --leading-h1: 1.4;
  --leading-h2: 1.6;
  --leading-body: 1.8;

  /* Spacing and shape */
  --gutter: 32px;                /* section side padding */
  --container: 1080px;           /* content width at desktop */
  --section-pad: 128px;          /* 80px mobile */
  --column-gap: 80px;            /* 48px tablet */
  --radius-button: 3px;
  --radius-card: 16px;

  /* Motion */
  --duration: 300ms;
  --ease: ease;
}
@media (max-width: 1024px) {
  :root { --text-h1: 64px; --text-h2: 40px; --column-gap: 48px; }
}
@media (max-width: 767px) {
  :root { --text-h1: 48px; --section-pad: 80px; }
}

/* ============ 2. Fonts ============ */
/* No web fonts: the system sans-serif is what visitors saw (decision d6). */

/* ============ 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-body); line-height: var(--leading-body); color: var(--color-dark); background: var(--color-white); }
img, svg, video, iframe { max-width: 100%; }
img, video { height: auto; display: block; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 400; }
h1 { font-family: var(--font-heading); font-size: var(--text-h1); line-height: var(--leading-h1); }
h2 { font-family: var(--font-heading); font-size: var(--text-h2); line-height: var(--leading-h2); }
h3 { font-family: var(--font-heading); font-size: var(--text-h3); line-height: 1.4; }
p { margin: 0; }
p:has(+ p) { margin-bottom: 20px; }  /* the original's rule: only paragraphs followed by a paragraph get a gap */
ul { margin: 0; }
a { color: inherit; text-decoration: none; transition: color var(--duration) var(--ease), background-color var(--duration) var(--ease); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
[id] { scroll-margin-top: 140px; }  /* anchors (/#menu) land below the sticky header */

/* ============ 4. Layout ============ */
.container { width: min(100%, var(--container)); margin-inline: auto; }
.section { padding: var(--section-pad) var(--gutter); }
.section--dark { background-color: var(--color-dark); color: var(--color-white); }

/* Patterned backgrounds: the original laid jollof_republic_bg_repeat.png over the colour at 3% opacity,
   6% of the section width per tile, fixed on desktop. */
.section--pattern { position: relative; isolation: isolate; }
.section--pattern::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.03; background: url("/wp-content/uploads/2024/02/jollof_republic_bg_repeat.png") repeat; background-size: 6% auto; pointer-events: none; }
@media (min-width: 1025px) {
  .section--pattern::before { background-attachment: fixed; }
}

/* Two equal columns (Elementor 50/50 rows); stack on mobile. */
.split { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--column-gap); align-items: start; }
.split > * { min-width: 0; }
.split--center { align-items: center; }
@media (max-width: 767px) {
  .split { grid-template-columns: 1fr; row-gap: 32px; }
}

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

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

/* === Component: site-header ===
   Dark card with a 1px orange border and 10px corners, 32px from the edges, sticky at the top on every
   device. The first section of each page pulls up under it (.page-hero margin-top). */
.site-header { position: sticky; top: 0; z-index: 99; padding: var(--gutter); pointer-events: none; }
.site-header__bar { pointer-events: auto; display: flex; align-items: center; background: var(--color-dark); border: 1px solid var(--color-primary); border-radius: 10px; padding: 20px 32px; }
.site-header__logo { flex: 0 0 25%; display: flex; }
.site-header__logo img { width: 74px; height: auto; }
.site-nav { flex: 0 0 46.215%; display: flex; justify-content: center; }
.site-header__actions { flex: 1 1 28.566%; min-width: 0; display: flex; justify-content: flex-end; align-items: center; gap: 24px; }
.site-nav__list { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; gap: 32px; }
.site-nav__list a { display: block; font-size: 1.15rem; line-height: normal; color: var(--color-white); transition-duration: 0.4s; }
.site-nav__list a:hover, .site-nav__list a:focus-visible, .site-nav__list a[aria-current="page"] { color: var(--color-primary); }
.nav-toggle { flex: none; display: none; background: none; border: 0; padding: 0; width: 44px; height: 44px; margin: -4px -4px -4px 0; color: var(--color-white); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 35px; height: 35px; }
@media (max-width: 1024px) {
  .site-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header__logo, .site-header__actions { flex: 0 0 50%; }
}
@media (max-width: 767px) {
  .site-header__bar { padding: 20px; }
  .site-header__logo { flex-basis: 75%; }
  .site-header__logo img { width: 50px; }
  .site-header__actions { flex-basis: 25%; }
  .site-header__actions .site-header__button { display: none; }
}

/* === Component: mobile-menu ===
   Orange full-height panel (340px) sliding in from the right (original: Elementor popup, slideInRight 0.5s),
   25% black backdrop, page scroll locked while open. Opened by .nav-toggle (site.js nav module). */
.mobile-menu { position: fixed; inset: 0; z-index: 1000; visibility: hidden; transition: visibility 0s linear 0.5s; }
.mobile-menu.is-open { visibility: visible; transition-delay: 0s; }
.mobile-menu__backdrop { position: absolute; inset: 0; background: rgb(0 0 0 / 0.25); opacity: 0; transition: opacity 0.5s ease; }
.mobile-menu.is-open .mobile-menu__backdrop { opacity: 1; }
.mobile-menu__panel { position: absolute; top: 0; right: 0; width: min(340px, 100%); height: 100%; overflow-y: auto; background: var(--color-primary); box-shadow: 2px 8px 23px 3px rgb(0 0 0 / 0.2); transform: translateX(100%); transition: transform 0.5s ease; }
.mobile-menu.is-open .mobile-menu__panel { transform: none; }
.mobile-menu__close { display: flex; margin: 16px 16px 12px auto; padding: 8px; width: 48px; height: 48px; background: none; border: 0; color: var(--color-white); cursor: pointer; align-items: center; justify-content: center; }
.mobile-menu__close svg { width: 32px; height: 32px; fill: currentColor; }
.mobile-menu__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgb(255 255 255 / 0.3); }
.mobile-menu__list a { display: block; padding: 20px 24px; border-bottom: 1px solid rgb(255 255 255 / 0.4); font-family: var(--font-heading); font-size: var(--text-h3); line-height: normal; color: var(--color-white); }
.mobile-menu__list a:hover, .mobile-menu__list a:focus-visible, .mobile-menu__list a[aria-current="page"] { background: var(--color-dark); color: var(--color-primary); }
html.nav-open, html.nav-open body { overflow: hidden; }

/* === Component: button ===
   Orange, white text, 3px corners; original kit hover: dark background, 6px corners. */
.button { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; border: 0; border-radius: var(--radius-button); background: var(--color-primary); color: var(--color-white); font-family: var(--font-body); font-size: var(--text-small); line-height: normal; text-align: center; cursor: pointer; transition: background-color var(--duration) var(--ease), color var(--duration) var(--ease), border-radius var(--duration) var(--ease); }
.button:hover, .button:focus-visible { background: var(--color-dark); color: var(--color-white); border-radius: 6px; }
.button--dark { background: var(--color-dark); color: var(--color-white); }
.button--on-orange { background: var(--color-primary); color: var(--color-dark); }  /* "Order Now" in the orange band: looks like text */
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* === Component: page-hero ===
   Photo (or plain) band under the floating header, pulled up 150px (home: 192px), with a dark overlay.
   White centred heading. Home uses .home-hero (page block below). */
.page-hero { position: relative; z-index: 1; isolation: isolate; margin-top: -150px; padding: 240px var(--gutter) 176px; background: var(--color-dark) center / cover no-repeat; color: var(--color-white); text-align: center; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--color-dark); opacity: var(--hero-overlay, 0.66); }
.page-hero h1 { max-width: 800px; margin-inline: auto; }
.page-hero--plain { background: var(--color-story-band); }
.page-hero--plain::before { display: none; }

/* === Component: section-heading (centred orange H2) === */
.section-heading { max-width: 550px; margin: 0 auto; text-align: center; color: var(--color-primary); }

/* === Component: text (20px copy) === */
.text { font-size: var(--text-body); line-height: var(--leading-body); }
.text--center { text-align: center; }

/* === Component: dish-grid (four bordered dish photos on home) === */
.dish-grid { list-style: none; margin: 0; padding: 0; display: flex; gap: 64px; }
.dish-grid > li { flex: 1 1 0; min-width: 0; display: flex; justify-content: center; margin-bottom: 24px; }
.dish-grid img { width: auto; max-width: 100%; border: 2px solid var(--color-primary); }
@media (max-width: 1024px) {
  .dish-grid { gap: 32px; }
}
@media (max-width: 767px) {
  .dish-grid { flex-direction: column; align-items: center; gap: 16px; }
}

/* === Component: review-card (dark rounded card, orange title) === */
.reviews__row { display: flex; gap: 18px; }
.review-card { flex: 1 1 0; min-width: 0; padding: 20px; background: var(--color-dark); color: var(--color-white); border-radius: 15px; box-shadow: 0 0 10px 0 rgb(0 0 0 / 0.5); }
.review-card__title { font-family: var(--font-heading); font-size: 22.4px; font-weight: 700; line-height: 1.4; color: var(--color-primary); }
@media (max-width: 767px) {
  .reviews__row { flex-direction: column; }
}

/* === Component: contact-section ===
   Dark patterned band on /, /our-story/: heading, opening times, phone + email links between two
   380px lines; the right column was the "Get in Touch" form card (shared/contact-card.html, see SITE.md). */
.contact-section__heading { margin-bottom: 32px; }
.contact-section__label { font-size: var(--text-body); font-weight: 500; line-height: var(--leading-body); margin-bottom: 12px; }
.contact-section__rule { width: 380px; max-width: 100%; height: 0; margin: 32px 0; border: 0; border-top: 1px solid var(--color-border); }
.contact-section__rule--last { margin: 32px 0 0; }
.contact-links { display: flex; flex-wrap: wrap; gap: 32px; }
.contact-link { display: inline-flex; align-items: center; gap: 16px; font-size: var(--text-body); line-height: var(--leading-body); color: var(--color-white); margin-bottom: -5px; }
.contact-link svg { width: 24px; height: 24px; flex: none; }
.contact-link:hover { color: var(--color-primary); }
@media (max-width: 767px) {
  .contact-links { gap: 16px; }
  .contact-section__rule { margin: 16px 0; }
  .contact-section__rule--last { margin-top: 16px; }
}

/* === Component: contact-email (replaces the Elementor "Get in Touch" form if the owner wants it: see SITE.md) ===
   Styled like the original form card: light grey card, 16px corners, 32px grey heading. */
.contact-email { background: var(--color-bg-alt); border-radius: var(--radius-card); padding: 48px 40px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; color: var(--color-accent); }
.contact-email__title { font-family: var(--font-heading); font-size: var(--text-h3); line-height: 1.4; }
.contact-email__address { font-size: var(--text-body); word-break: break-word; }
.contact-email__phone { font-size: var(--text-body); }
.contact-email__phone a { color: var(--color-dark); }
.contact-email p { margin: 0; }
.contact-email .button { align-self: flex-end; }

/* === Component: info-card (contact page: Call Us / Open From / Email Us) === */
.info-cards { display: flex; gap: 64px; }
.info-card { flex: 1 1 33%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px; background: var(--color-bg-alt); border-radius: var(--radius-card); text-align: center; color: var(--color-primary); }
.info-card--hours { flex-basis: 34%; justify-content: flex-start; }
.info-card__icon { width: 36px; height: 36px; margin-bottom: 20px; color: var(--color-dark); }
.info-card__title { font-family: var(--font-heading); font-size: var(--text-h3); line-height: 1.4; }
.info-card__title--tight { margin-bottom: 6px; }
.info-card__text { font-size: var(--text-body); line-height: var(--leading-body); }
.info-card__text--small { font-size: var(--text-small); line-height: normal; }
@media (max-width: 1024px) {
  .info-cards { flex-wrap: wrap; gap: 32px; }
  .info-card { flex: 0 0 calc(50% - 16px); }
  .info-card--hours { flex-basis: 100%; order: 2; }
}
@media (max-width: 767px) {
  .info-card { flex-basis: 100%; }
}

/* === Component: map (keyless Google Maps iframe; the original's 82% saturation filter kept) === */
.map { display: block; width: 100%; height: 600px; border: 0; filter: saturate(82%); }
.map-full { display: block; line-height: 0; }
.map--card { height: 500px; border-radius: var(--radius-card); }

/* === Component: site-footer === */
.site-footer { display: flex; align-items: center; padding: 24px var(--gutter); font-size: var(--text-small); line-height: normal; color: var(--color-accent); }
.site-footer__social { flex: 0 0 50%; display: flex; align-items: center; gap: 12px; }
.site-footer__social h6 { font-family: var(--font-body); font-size: inherit; line-height: inherit; }
.site-footer__icons { display: flex; gap: 12px; }
.site-footer__icons a { display: inline-flex; color: var(--color-accent); }
.site-footer__icons a:hover { color: var(--color-dark); }
.site-footer__icons svg { width: 25px; height: 25px; fill: currentColor; }
.site-footer__meta { flex: 0 0 50%; text-align: end; }
.site-footer__meta p + p { margin-top: 6px; }
.site-footer__credit a { color: var(--color-dark); }
.site-footer__credit a:hover { text-decoration: underline; }
/* Keep the copyright and the OrderYOYO credit clear of the fixed order badge (it covered the copyright on the original). */
@media (min-width: 768px) {
  .site-footer__meta { padding-right: 112px; }
}
@media (max-width: 1024px) {
  .site-footer { font-size: 12px; }
  .site-footer__icons svg { width: 16px; height: 16px; }
}
@media (max-width: 767px) {
  .site-footer { flex-wrap: wrap; row-gap: 8px; }
  .site-footer__social, .site-footer__meta { flex-basis: 100%; }
  .site-footer__meta { text-align: start; }
}

/* === Component: order-badge ===
   Fixed bottom-right round orange order button inside a ring of orange text that turns with page scroll
   (original: Elementor popup 65 + Motion FX rotateZ over the whole page). */
.order-badge { position: fixed; right: var(--gutter); bottom: var(--gutter); z-index: 90; width: 104px; height: 103px; display: flex; align-items: center; justify-content: center; }
.order-badge__ring { position: absolute; inset: 0; width: 104px; height: 103px; transform: rotate(var(--badge-rotate, 0deg)); transition: transform 100ms linear; pointer-events: none; }
.order-badge__ring text { font-family: var(--font-body); font-size: 11.6px; fill: var(--color-primary); }
.order-badge__button { position: relative; width: 66px; height: 66px; border-radius: 50%; border: 1px solid var(--color-white); background: var(--color-primary); display: flex; align-items: center; justify-content: center; }
.order-badge__button svg { width: 32px; height: 32px; }

/* === Component: popup (native <dialog>; halal notice on home, once per session) === */
.popup { width: min(844px, calc(100% - 40px)); max-width: none; max-height: calc(100% - 40px); padding: 65px; border: 0; background: var(--color-border); color: var(--color-dark); box-shadow: 2px 8px 23px 3px rgb(0 0 0 / 0.2); text-align: center; overflow: auto; }
.popup::backdrop { background: rgb(0 0 0 / 0.8); }
.popup__inner { display: flex; flex-direction: column; align-items: center; gap: 40px; }
.popup__title { font-size: 3.5rem; line-height: 1.4; color: var(--color-primary); }
.popup__text { font-size: var(--text-h3); line-height: normal; }
.popup__image { width: 39%; border-radius: 200rem; }
.popup__close { position: absolute; top: 0; right: 0; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; background: var(--color-border); color: var(--color-dark); cursor: pointer; }
.popup__close svg { width: 18px; height: 26px; fill: currentColor; }
@media (max-width: 1024px) {
  .popup__title { font-size: 64px; }
}
@media (max-width: 767px) {
  .popup { padding: 65px 24px; }
  .popup__title { font-size: 48px; }
}

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

/* === Page: / (home) === */
/* Hero: photo with 65% dark overlay, pulled 192px up under the header; the phone mock-up overflows the
   bottom and is clipped, as on the original. */
.home-hero { margin-top: -192px; padding: 240px var(--gutter) 0; overflow: hidden; --hero-overlay: 0.65; }
.home-hero::before { background: #141414; }
.home-hero h1 { max-width: 780px; font-size: 4rem; }
.home-hero__inner { width: min(100%, var(--container)); margin-inline: auto; }
.app-promo { display: flex; margin-top: 64px; text-align: start; }
.app-promo__offer { flex: 0 0 33%; display: flex; padding-right: 32px; }
.app-promo__text { flex: 0 0 75%; margin-top: 48px; }
.app-promo__text .button { margin-top: 12px; }
.app-promo__arrow { flex: 1 1 auto; min-width: 0; display: flex; justify-content: center; align-items: flex-start; }
.app-promo__arrow img { margin-top: 192px; width: 100%; max-width: 87px; }
.app-promo__phone { flex: 0 0 33%; display: flex; justify-content: center; align-items: flex-start; }
.app-promo__phone img { width: 78%; margin-bottom: -50%; border: 7px solid var(--color-primary); border-radius: 58px; }
@media (max-width: 1024px) {
  .home-hero h1 { font-size: 64px; }
  .app-promo__offer, .app-promo__phone { flex-basis: 50%; }
}
@media (max-width: 767px) {
  .home-hero h1 { font-size: 48px; }
  .app-promo { flex-direction: column; }
  .app-promo__offer { flex-direction: column; align-items: center; padding: 0 0 32px; }
  .app-promo__text { margin-top: 0; text-align: center; }
  .app-promo__arrow img { margin-top: 12px; transform: rotate(90deg); }
}

.dishes__intro { margin: 25px 0 43px; }
@media (max-width: 1024px) {
  .dishes__intro { margin: 64px 0; }
}

/* Orange "Learn More" band: photo (68% of its column, 11px corners, pulled 32px left) + white text. */
.band { background: var(--color-primary); color: var(--color-white); padding: var(--section-pad) var(--gutter) var(--section-pad) 0; }
.band > .split { width: min(100%, var(--container)); margin-inline: auto; }
.band__media { display: flex; justify-content: center; margin-left: -32px; }
.band__media img { width: 68%; border-radius: 11px; }
.band__text .text { margin: 24px 0; }
@media (max-width: 767px) {
  .band { padding: 0 var(--gutter) 80px; }
  .band__media { margin-left: 0; }
  .band__media img { border-radius: 0 0 24px 24px; }
}

/* Reviews: the original block sat 60px right of centre (60px margins) and overflowed the screen on
   tablet and mobile; kept on desktop, fitted to the screen below 1025px (decision d9). */
.reviews { margin: 60px 0 90px; padding: 0 var(--gutter); }
.reviews > .container { position: relative; left: 60px; }
.reviews .section-heading { max-width: none; margin-bottom: 50px; }
@media (max-width: 1024px) {
  .reviews > .container { left: 0; }
}

/* === Page: /our-story/ === */
/* Dark text box pulled 80px up over the grey title band, photo to its right. */
.story-split { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.story-split__card { margin-top: -80px; padding: 64px; background: var(--color-dark); color: var(--color-white); border: 1px solid var(--color-border); }
.story-split__media { min-width: 0; overflow: hidden; }
.story-split__media img { width: auto; max-width: 100%; }
@media (max-width: 1024px) {
  .story-split { width: 100%; }
  .story-split__card { margin-top: 0; }
  .story-split__media img { width: 100%; }
}
@media (max-width: 767px) {
  .story-split { grid-template-columns: 1fr; }
  .story-split__card { padding: 80px 32px; }
}

/* === Page: /contact-us/ === */
.contact-page { display: flex; flex-direction: column; gap: 64px; }
.contact-page__row { column-gap: 64px; }
.photo-band img { width: 100%; height: 600px; object-fit: cover; }
@media (max-width: 1024px) {
  .contact-page { gap: 32px; }
  .contact-page__row { column-gap: 32px; }
}

/* === Page: 404 === */
.not-found__links { list-style: none; padding: 0; margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

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