/*
 * site.css: the only stylesheet for burgerandchicken.co.uk (Terabithia Burger & Chicken).
 *
 * Sections, in order:
 *   1. Tokens        colours, fonts, spacing, breakpoints (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         rare page-specific rules: "=== Page: <path> ==="
 *   7. Utilities     a handful of helpers
 *
 * Breakpoints (Elementor's, from the original; media queries can't use custom properties):
 *   mobile  <= 767px    tablet 768px-1024px    desktop >= 1025px
 *   The header menu collapses to a burger at <= 1024px (as the original nav-menu widget did).
 *
 * Editing: change tokens to restyle the site; add new components as new blocks;
 * add modifier classes (.button--x) instead of changing a component for one page.
 */

/* ============ 1. Tokens ============ */
:root {
  /* Colours (Elementor kit globals of the original) */
  --color-primary: #0049a9;     /* blue: header, about, footer, page background */
  --color-accent: #fffb00;      /* yellow: buttons, social squares, ABOUT US */
  --color-white: #ffffff;
  --color-grey: #e4e4e4;        /* contact band behind the map */
  --color-dark: #333333;        /* hero fallback behind the background image */
  --color-text: #ffffff;
  --color-bg: var(--color-primary);

  /* Typography
   * --font-display replaces "Odachi" (paid Elementor Pro custom font, not licensed),
   * see SITE.md "Fonts". Change this one line to swap the display face. */
  --font-display: "Just Another Hand", "Arial Narrow", sans-serif;
  --font-body: "Inter", Arial, sans-serif;
  --font-small: "Roboto", Arial, sans-serif;  /* opening hours + copyright (Elementor kit text font) */
  --leading: 1.5;

  /* Layout */
  --container: 1280px;
  --col-pad: 10px;              /* Elementor "default" column gap */
  --header-overlap: 120px;      /* hero slides under the header bar by this much (tablet/desktop) */

  /* Shape and motion */
  --radius: 0;
  --duration: 300ms;
  --ease: ease;
}

/* ============ 2. Fonts ============ */
@font-face { font-family: "Just Another Hand"; src: url("/assets/fonts/just-another-hand-latin-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-400-700.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("/assets/fonts/roboto-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: 16px; line-height: var(--leading); color: var(--color-text); background: var(--color-bg); overflow-x: hidden; }
img, svg, video, iframe { max-width: 100%; }
img, video { height: auto; display: block; }
h1, h2, h3 { margin: 0; font-weight: 400; }
h2 { font-family: var(--font-display); line-height: 1; }
a { color: inherit; transition: color var(--duration) var(--ease), opacity var(--duration) var(--ease); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
[id] { scroll-margin-top: 0; }

/* ============ 4. Layout ============ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; }
.cols { display: flex; }
.cols > * { flex: 0 0 50%; min-width: 0; }
@media (max-width: 767px) {
  .cols { flex-direction: column; }
  .cols > * { flex-basis: auto; width: 100%; }
}

/* ============ 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-primary); }
.skip-link:focus { left: 1rem; }

/* === Component: button (yellow block, blue display-font text; no hover change on the original) === */
.button { display: inline-block; padding: 7px 40px; background: var(--color-accent); color: var(--color-primary); font-family: var(--font-display); font-size: 22px; font-weight: 500; line-height: 22px; text-align: center; text-decoration: none; border: 0; border-radius: var(--radius); transition: all var(--duration) var(--ease); }
.button:hover, .button:focus { color: var(--color-primary); }

/* === Component: social-icons (square tiles, 18px icon in 36px box; hover = opacity .9) === */
.social-icons { display: flex; flex-wrap: wrap; gap: 5px; list-style: none; margin: 0; padding: 0; }
.social-icons a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: var(--color-accent); color: var(--color-primary); text-decoration: none; transition: opacity var(--duration) var(--ease); }
.social-icons a:hover { opacity: 0.9; }
.social-icons svg { width: 18px; height: 18px; fill: currentColor; }
.social-icons--light a { background: var(--color-white); }

/* === Component: site-header (blue bar: nav | social | Order Now; not sticky) === */
.site-header { position: relative; z-index: 10; background: var(--color-primary); padding: 25px 30px; }
.site-header__inner { display: flex; align-items: center; }
.site-header__col { padding: var(--col-pad); min-height: 56px; display: flex; align-items: center; }
.site-header__col--nav { width: 61.769%; justify-content: center; }
.site-header__col--social { width: 19.432%; justify-content: flex-end; }
.site-header__col--order { width: 18.413%; justify-content: center; }
.nav-toggle { display: none; background: none; border: 0; padding: 0.25em; min-width: 44px; min-height: 44px; color: var(--color-white); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 28px; height: 28px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.site-nav__list { display: flex; flex-wrap: wrap; justify-content: center; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 2px 18px; color: var(--color-white); font-family: var(--font-display); font-size: 26px; line-height: 1.2; text-decoration: none; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--color-accent); }

@media (max-width: 1024px) {
  .site-header__col--nav { width: 34%; padding-block: 6px; }
  .site-header__col--social { width: 33%; justify-content: center; }
  .site-header__col--order { width: 33%; justify-content: flex-end; }
  .nav-toggle { display: inline-flex; }
  /* Full-width dropdown under the header bar (grid 0fr -> 1fr slide) */
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; display: grid; grid-template-rows: 0fr; align-items: stretch; background: var(--color-primary); transition: grid-template-rows var(--duration) var(--ease), visibility var(--duration); visibility: hidden; }
  .site-nav.is-open { grid-template-rows: 1fr; visibility: visible; }
  .site-nav__list { overflow: hidden; min-height: 0; flex-direction: column; flex-wrap: nowrap; }
  .site-nav a { padding: 10px 30px; text-align: center; min-height: 44px; border-top: 1px solid rgb(255 255 255 / 0.15); }
}
@media (max-width: 767px) {
  .site-header__inner { flex-direction: column; }
  .site-header__col { width: 100%; justify-content: center; min-height: 0; }
  .site-header__col--order { justify-content: center; }
}

/* === Component: hero (full-height background with the logo; tucks under the header bar) === */
.hero { position: relative; overflow: hidden; margin-top: calc(-1 * var(--header-overlap)); background: var(--color-dark) url("/wp-content/uploads/2023/07/header_bg.png") top center / cover no-repeat; }
.hero__inner { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.hero__logo { width: 46%; }
@media (max-width: 767px) {
  .hero { margin-top: 0; }
  .hero__logo { width: 83%; }
}

/* === Component: cta-band (heading + button over a photo; #menu) === */
.cta-band { padding: 90px; background: url("/wp-content/uploads/2023/07/menu_bg.png") 0 0 / cover no-repeat; text-align: center; }
.cta-band__title { padding: 30px; font-size: 56px; color: var(--color-white); }
.cta-band__action { width: 97%; margin-inline: auto; }
@media (max-width: 767px) {
  .cta-band__title { width: 232px; max-width: 100%; margin-inline: auto; padding: 0 0 33px; font-size: 49px; }
}

/* === Component: app-promo (text + phone image over a photo; #download) === */
.app-promo { padding: 0 30px; background: url("/wp-content/uploads/2023/07/app_bg.png") 0 0 / cover no-repeat; }
.app-promo__text, .app-promo__media { padding: var(--col-pad); }
.app-promo__text { align-self: center; }
.app-promo__title { font-size: 48px; color: var(--color-white); }
.app-promo__body { font-family: var(--font-body); font-size: 18px; line-height: 1.5em; margin: 1em 0 12px; }
.app-promo__body p { margin: 0; }
.app-promo__media { display: flex; align-items: center; }
.app-promo__media figure { margin: 0; padding: 30px; width: 100%; }
.app-promo__media img { width: 47%; margin-inline: auto; }
@media (max-width: 1024px) {
  .app-promo { padding: 30px; }
  .app-promo__title { font-size: 38px; }
  .app-promo__body { padding: 0 10px 10px; }
  .app-promo__media img { width: 61%; }
}
@media (max-width: 767px) {
  .app-promo { padding: 70px 30px; }
  .app-promo__media img { width: 100%; }
}

/* === Component: about (yellow heading, two rich-text blocks + image on blue) === */
.about { padding: 20px 0 0; background: var(--color-primary); }
.about__title { padding: 50px 30px 30px; font-size: 48px; color: var(--color-accent); text-align: center; }
.about__cols { padding: 40px 30px 50px; align-items: center; }
.about__text { padding: 30px; font-family: var(--font-body); font-size: 20px; line-height: normal; }
.about__text h3 { margin: 1em 0; font-size: 1.17em; font-weight: 700; }
.about__text p { margin: 1em 0; }
.about__media { display: flex; align-items: center; justify-content: center; }
@media (max-width: 1024px) {
  .about { padding: 60px 30px; }
  .about__title { padding: 0 30px; }
  .about__text { padding: 0; font-size: 16px; }
  .about__media { padding: 10px; }
}

/* === Component: hours-map (opening hours over a photo | map; #contact) === */
.hours-map { background: var(--color-grey); }
.hours-map__hours { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; background: var(--color-grey) url("/wp-content/uploads/2023/07/fries.png") 0 0 / cover no-repeat; }
.hours-map__title { font-size: 35px; color: var(--color-white); }
.hours-map__text { font-family: var(--font-small); font-size: 17px; line-height: normal; color: var(--color-white); }
.hours-map__text p { margin: 1em 0; }
.hours-map__map .map { height: 438px; }

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

/* === Component: site-footer (copyright | social) === */
.site-footer { background: var(--color-primary); padding: 60px 0; }
.site-footer__inner { display: flex; align-items: center; }
.site-footer__inner > * { flex: 1 1 0; padding: var(--col-pad); }
.site-footer__copyright { margin: 1em 0; font-family: var(--font-small); font-size: 16px; line-height: normal; color: var(--color-white); }
.site-footer__copyright a { text-decoration: none; }
.site-footer__copyright a:hover { text-decoration: underline; }
.site-footer .social-icons { justify-content: flex-end; }
@media (max-width: 1024px) {
  .site-footer { padding: 60px 30px; }
}
@media (max-width: 767px) {
  .site-footer__inner { flex-direction: column; }
  .site-footer__inner > * { width: 100%; }
  .site-footer__copyright { text-align: center; }
  .site-footer .social-icons { justify-content: center; }
}

/* === Component: contact-email (not used on this site: the original has no form; kept for future use) === */
.contact-email { display: grid; gap: 1rem; justify-items: start; }
.contact-email__address { font-weight: 600; word-break: break-word; }

/* === Component: simple-page (404 and other plain text pages) === */
.simple-page { padding: 90px 30px; text-align: center; }
.simple-page__title { font-family: var(--font-display); font-size: 56px; line-height: 1; color: var(--color-accent); margin-bottom: 0.5em; }
.simple-page p { font-size: 18px; margin: 0 0 1em; }
.simple-page__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; margin: 1.5em 0 0; padding: 0; }

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

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