/*
 * site.css: the only stylesheet for bombayjoes-nottingham.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        container, sections, columns
 *   5. Components    one block per component: "=== Component: <name> ==="
 *   6. Pages         page-specific rules: "=== Page: <path> ==="
 *   7. Utilities
 *
 * Breakpoints (Elementor defaults used by the original; media queries can't use custom properties):
 *   mobile  <= 767px    tablet 768px-1024px    desktop >= 1025px
 *
 * The original was built with Elementor: content sits in a 1140px container, "default gap"
 * columns have 10px padding, widgets are 20px apart and paragraphs keep the browser's 1em
 * margins. The rules below reproduce those measurements.
 */

/* ============ 1. Tokens ============ */
:root {
  /* Colours (from the original's Elementor settings) */
  --color-green: #85ba46;      /* nav band, header, About, Order/App sections */
  --color-orange: #e2702a;     /* image overlays */
  --color-cream: #f9eabf;      /* header links, hero/section headings */
  --color-navy: #0f202a;       /* menu text, mobile dropdown */
  --color-dark: #121212;       /* contact + footer */
  --color-white: #ffffff;
  --color-accent: #61ce70;     /* nav underline pointer (Elementor global accent) */
  --color-dropdown-active: #3f444b;

  /* Typography: Londrina Solid everywhere (300 for body copy, 400 for headings/links) */
  --font-display: "Londrina Solid", sans-serif;

  /* Layout */
  --container: 1140px;
  --col-pad: 10px;
  --widget-gap: 20px;

  --duration: 300ms;
  --ease: ease;
}

/* ============ 2. Fonts ============ */
/* Self-hosted Google Font (latin). Londrina Solid only exists in 100/300/400/900; the original's
   weight 500 (Set Meals heading) renders as 400, exactly as on the original. */
@font-face { font-family: "Londrina Solid"; src: url("/assets/fonts/londrina-solid-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Londrina Solid"; src: url("/assets/fonts/londrina-solid-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-display); font-size: 16px; line-height: normal; color: #000; background: var(--color-white); }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: inline-block; vertical-align: middle; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 400; line-height: 1; }
p { margin: 1em 0; }
a { color: inherit; text-decoration: none; transition: color var(--duration) var(--ease); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--color-cream); outline-offset: 2px; }
.text { display: flow-root; } /* keeps paragraph margins inside, like Elementor widgets */

/* ============ 4. Layout ============ */
.container { max-width: var(--container); margin-inline: auto; }
.section { position: relative; }
.section__overlay { position: absolute; inset: 0; background: var(--color-orange); pointer-events: none; }
.section > .container { position: relative; }
.cols { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); } /* equal columns, padding included (like Elementor) */
.col { min-width: 0; display: flex; flex-direction: column; padding: var(--col-pad); }
.col--flush { padding: 0; }
.col > * { margin-bottom: var(--widget-gap); }
.col > *:last-child { margin-bottom: 0; }
@media (max-width: 767px) {
  .cols { grid-auto-flow: row; }
}

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

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

/* === Component: nav-band ===
 * Fixed green band (position: fixed, top 0, like the original). On desktop the top-header
 * (z-index 3) covers it at scroll 0; once scrolled it stays pinned at the top.
 * Desktop/tablet: horizontal menu (wraps to 2 rows at tablet). Mobile: burger + dark dropdown. */
.nav-band { position: fixed; top: 0; left: 0; width: 100%; z-index: 1; background: var(--color-green); }
.nav-band__inner { max-width: var(--container); margin-inline: auto; padding: var(--col-pad); display: flex; justify-content: center; }
.site-nav__list { display: flex; flex-wrap: wrap; justify-content: center; list-style: none; margin: 0; padding: 0; }
.site-nav a { position: relative; display: block; padding: 13px 20px; font-size: 1.4rem; line-height: 20px; letter-spacing: 1px; text-transform: uppercase; color: var(--color-white); }
.site-nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--color-accent); opacity: 0; transition: opacity var(--duration) var(--ease); }
.site-nav a:hover::after, .site-nav a:focus-visible::after, .site-nav a[aria-current="page"]::after { opacity: 1; }
.nav-toggle { display: none; margin-left: auto; width: 33px; height: 33px; padding: 5.5px; border: 0; border-radius: 3px; background: rgb(0 0 0 / 0.05); color: var(--color-white); cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; display: block; }
.nav-toggle__close { display: none !important; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none !important; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block !important; }
@media (max-width: 767px) {
  .nav-band { z-index: 3; }
  .nav-band__inner { justify-content: flex-end; }
  .nav-toggle { display: block; }
  /* Dropdown: grid 0fr -> 1fr; the nav stretches so the list is clipped while it opens */
  .site-nav { position: absolute; top: 100%; left: 0; width: 100%; display: grid; grid-template-rows: 0fr; align-items: stretch; background: var(--color-navy); transition: grid-template-rows var(--duration) var(--ease); }
  .site-nav.is-open { grid-template-rows: 1fr; }
  .site-nav.is-instant { transition: none; }
  .site-nav__list { min-height: 0; overflow: hidden; display: block; visibility: hidden; transition: visibility 0s linear var(--duration); }
  .site-nav.is-open .site-nav__list { visibility: visible; transition: none; }
  .site-nav a { padding: 10px 20px; }
  .site-nav a::after { display: none; }
  .site-nav a[aria-current="page"] { background: var(--color-dropdown-active); }
}

/* === Component: top-header (desktop only, >= 1025px) ===
 * Green bar with two link lists and the logo overhanging the hero (absolute, top -15px). */
.top-header { position: relative; z-index: 3; background: var(--color-green); padding-top: 30px; }
.top-header__inner { max-width: var(--container); margin-inline: auto; display: flex; align-items: flex-end; }
.top-header__links { display: flex; list-style: none; margin: 0; padding: 0; gap: 45px; }
.top-header__links--left { width: 40%; justify-content: flex-end; padding-right: 50px; }
.top-header__links--right { width: 39.332%; justify-content: flex-start; padding-left: 50px; }
.top-header__links a { display: block; font-size: 1.4rem; letter-spacing: 1px; text-transform: uppercase; color: var(--color-cream); }
.top-header__logo { width: 20%; position: relative; align-self: stretch; }
.top-header__logo img { position: absolute; left: 0; top: -15px; width: 100%; height: 220px; object-fit: contain; }
@media (max-width: 1024px) {
  .top-header { display: none; }
}

/* === Component: hero ===
 * 600px photo with 87% orange overlay; angled green divider at the top on desktop. */
.hero { z-index: 2; min-height: 600px; display: flex; align-items: center; background: url("/wp-content/uploads/2021/05/image1-scaled-1.jpg") center / cover; }
.hero .section__overlay { opacity: 0.87; }
.hero__divider { position: absolute; top: -1px; left: 0; width: 100%; height: 80px; fill: var(--color-green); pointer-events: none; }
.hero > .container { width: 100%; }
.hero__logo { display: none; margin: 0 auto var(--widget-gap); width: 150px; }
.hero__title { font-size: 5rem; text-transform: uppercase; text-align: center; color: var(--color-cream); }
@media (max-width: 1024px) {
  .hero__divider { display: none; }
  .hero__logo { display: block; }
}
@media (max-width: 767px) {
  .hero__title { font-size: 2.4rem; }
}

/* === Component: image-strip === four background photos, 400px tall (stacked 150px on mobile) */
.image-strip { display: grid; grid-template-columns: repeat(4, 1fr); min-height: 400px; }
.image-strip__item { background-position: center; background-repeat: no-repeat; background-size: cover; }
.image-strip__item--1 { background-image: url("/wp-content/uploads/2021/05/image4-scaled-1.jpg"); }
.image-strip__item--2 { background-image: url("/wp-content/uploads/2021/05/style-sakura-app-offers-bg-3-scaled-1.jpg"); }
.image-strip__item--3 { background-image: url("/wp-content/uploads/2021/05/image.jpg"); }
.image-strip__item--4 { background-image: url("/wp-content/uploads/2021/05/image1-scaled-1.jpg"); }
@media (max-width: 767px) {
  .image-strip { grid-template-columns: 1fr; grid-template-rows: repeat(4, 150px); min-height: 600px; }
}

/* === Component: section-heading / prose (colours set per section) === */
.heading-lg { font-size: 3rem; letter-spacing: 1px; text-transform: uppercase; }
.prose { font-size: 1.2rem; font-weight: 300; line-height: 1.5em; color: var(--color-white); }
@media (max-width: 767px) {
  .heading-lg { font-size: 2rem; }
}

/* === Component: about === green, three columns (text | image | text) */
.about { background: var(--color-green); padding: 100px 0; }
.about .heading-lg { color: var(--color-cream); }
.about__image { align-items: center; }
.about__image img { width: 80%; max-width: 250px; }
@media (max-width: 1024px) {
  .about { padding: 100px 50px; }
}
@media (max-width: 767px) {
  .about { padding: 50px 25px; }
}

/* === Component: menu-card === translucent white card on an orange photo section */
.menu-section { padding: 200px 0; background: var(--color-orange) url("/wp-content/uploads/2021/05/foodiesfeed.com_vegan-chickpea-and-potato-curry.jpg") center / cover; }
.menu-section .section__overlay { opacity: 0.82; }
.menu-card { position: relative; padding: 50px; background: rgb(255 255 255 / 0.75); color: var(--color-navy); }
.menu-card__title { font-size: 4rem; text-transform: uppercase; text-align: center; }
.menu-card__group { margin-top: 45px; font-size: 2rem; text-transform: uppercase; }
.menu-card__cols + .menu-card__group { margin-top: 25px; }
.menu-card__cols { display: flex; margin-top: var(--widget-gap); padding-bottom: 40px; }
.menu-card__col { flex: 1 1 0; min-width: 0; margin-right: 60px; }
.menu-item__name { padding-top: 20px; font-size: 1.2rem; text-transform: uppercase; }
.menu-item__desc { font-size: 1rem; font-weight: 300; }
@media (max-width: 1024px) {
  .menu-section { padding: 100px 50px; }
  .menu-item__desc { font-size: 0.9rem; }
}
@media (max-width: 767px) {
  .menu-section { padding: 50px 25px; }
  .menu-card { padding: 25px; }
  .menu-card__title { font-size: 2rem; }
  .menu-card__group { font-size: 1.4rem; }
  .menu-card__cols { flex-direction: column; padding-bottom: 0; }
  .menu-card__col { margin-right: 0; }
  .menu-item__name { font-size: 0.9rem; }
  .menu-item__desc { font-size: 0.8rem; }
}

/* === Component: set-meal === centred offer on an orange photo section */
.set-meal { padding: 100px 0; background: var(--color-accent) url("/wp-content/uploads/2021/05/image-768x1077.jpg") center / cover; color: var(--color-white); text-align: center; }
.set-meal .section__overlay { opacity: 0.82; }
.set-meal__title { font-size: 75px; font-weight: 500; }
.set-meal__subtitle { font-size: 3rem; }
.set-meal__items { font-size: 2rem; }
@media (max-width: 1024px) {
  .set-meal { padding: 100px 50px; }
}
@media (max-width: 767px) {
  .set-meal { padding: 50px 25px; }
}

/* === Component: promo (Order Online / Download Our App) === image + text rows on green */
.promos { background: var(--color-green); }
.promo { display: flex; }
.promo--order { padding: 100px 0; }
.promo--app { padding: 0 0 100px; }
.promo__media { flex: 0 0 50%; min-width: 0; display: flex; }
.promo__media img { width: 100%; }
.promo--order .promo__media { align-items: flex-start; }
.promo--app .promo__media { align-items: flex-end; }
.promo__body { flex: 0 0 50%; min-width: 0; padding: 50px; display: flex; flex-direction: column; justify-content: center; }
.promo__body > * { margin-bottom: var(--widget-gap); }
.promo__body > *:last-child { margin-bottom: 0; }
.promo__title { font-size: 2.8rem; text-transform: uppercase; color: var(--color-cream); }
.promo__text { font-size: 1.5rem; font-weight: 300; line-height: 1.4em; color: var(--color-white); }
.promo--app .promo__text { font-size: 1.4rem; }
.promo__badges img { width: 300px; }
@media (max-width: 1024px) {
  .promos { padding: 100px 50px; }
}
@media (max-width: 767px) {
  .promos { padding: 0 25px; }
  .promo { flex-direction: column; }
  .promo__media, .promo__body { flex: none; }
  .promo__body { padding: 0; text-align: center; }
  .promo__title { font-size: 2rem; padding-top: 20px; }
  .promo__text, .promo--app .promo__text { font-size: 0.9rem; }
  .promo__badges { padding-bottom: 20px; text-align: left; }
  .promo--app .promo__media { margin-top: 10px; }
  .promo .button { display: flex; }
}

/* === Component: button === outlined white */
.button { display: inline-block; align-self: flex-start; padding: 15px 30px; border: 1px solid var(--color-white); background: transparent; color: var(--color-white); font-family: var(--font-display); font-size: 1.3rem; font-weight: 300; line-height: 1; letter-spacing: 1px; text-align: center; }
@media (max-width: 767px) {
  .button { align-self: stretch; justify-content: center; }
}

/* === Component: contact === address, hours table and map on dark */
.contact { background: var(--color-dark); padding: 150px 0; color: var(--color-white); }
.contact .heading-lg { color: var(--color-white); }
.contact__details { font-size: 1.2rem; font-weight: 300; line-height: 1.4em; }
.hours { border-spacing: 2px; font: inherit; }
.hours td { padding: 1px; }
.map { display: block; width: 100%; height: 610px; border: 0; }
@media (max-width: 1024px) {
  .contact { padding: 100px 50px; }
}
@media (max-width: 767px) {
  .contact { padding: 50px 20px; }
  .map { height: 300px; }
}

/* === Component: site-footer === dark bar: copyright left, Powered by OrderYOYO right */
.site-footer { background: var(--color-dark); color: var(--color-white); }
.site-footer__inner { max-width: var(--container); margin-inline: auto; display: flex; align-items: center; }
.site-footer__copyright, .site-footer__credit { flex: 1 1 0; margin: 0; padding: calc(var(--col-pad) + 1em) var(--col-pad); font-size: 1.1rem; text-transform: uppercase; }
.site-footer__credit { text-align: right; }
.site-footer__credit a:hover { color: var(--color-cream); }
@media (max-width: 767px) {
  .site-footer__copyright { flex: 0 0 55%; font-size: 14px; }
  .site-footer__credit { flex: 0 0 45%; font-size: 14px; }
}

/* === Component: contact-email (kept for a future form; the original has no forms) === */
.contact-email { display: grid; gap: 16px; justify-items: start; }
.contact-email__address { word-break: break-word; }

/* === Component: not-found (404 page) === */
.not-found { min-height: calc(100vh - 76px); background: var(--color-green); color: var(--color-white); padding: 200px 20px 120px; text-align: center; }
.not-found .heading-lg { color: var(--color-cream); }
.not-found__text { font-size: 1.4rem; font-weight: 300; }
.not-found__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 30px; }
.not-found .button { align-self: auto; }
@media (max-width: 1024px) {
  .not-found { padding-top: 160px; }
}

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

/* ============ 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; transition-duration: 0.01ms !important; }
}
