/*
 * site.css: the only stylesheet for chunky-chicken.uk.
 *
 * 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
 *   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 defaults on the original; media queries can't use custom properties):
 *   mobile  <= 767px    tablet 768px-1024px    desktop >= 1025px
 *   The hamburger menu shows at <= 1024px (Elementor "dropdown: tablet").
 *
 * Values come from the original's computed styles (Elementor post-5.css / kit post-4.css).
 */

/* ============ 1. Tokens ============ */
:root {
  /* Colours */
  --color-red: #b4372f;          /* buttons, About band, "Chunky" */
  --color-red-card: #b6332a;     /* contact card */
  --color-gold: #dbb43d;         /* "Chicken" */
  --color-orange: #ffb14d;       /* app band, footer */
  --color-black: #000000;
  --color-white: #ffffff;
  --color-nav-active: rgb(0 0 0 / 0.44);   /* nav hover / current section */
  --color-dropdown-text: #33373d;
  --color-dropdown-active: #3f444b;
  --color-toggle-bg: rgb(0 0 0 / 0.05);

  /* Typography */
  --font-poppins: "Poppins", sans-serif;
  --font-roboto: "Roboto", sans-serif;
  --text-base: 16px;
  --text-hero: 60px;        /* "Chunky" / "Chicken"; 40px on tablet */
  --text-section: 70px;     /* section headings */
  --text-app: 56px;         /* "Download our app to order" */

  /* Spacing and shape */
  --container: 1140px;
  --section-pad-x: 30px;
  --col-pad: 10px;          /* Elementor column gap (default) */
  --widget-gap: 20px;       /* Elementor space between widgets */
  --radius-button: 3px;
  --radius-card: 20px;
  --header-h: 154px;        /* sticky header height; 146px on mobile */

  /* Motion */
  --duration: 300ms;
  --duration-nav: 400ms;
  --ease: ease;
}
@media (max-width: 767px) {
  :root { --header-h: 146px; }
}

/* ============ 2. Fonts ============ */
/* Self-hosted Google Fonts (latin subset): Poppins 200/300/400/500/600/800, Roboto variable (100-900). */
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-latin-200.woff2") format("woff2"); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-latin-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-latin-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-latin-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-latin-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-latin-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("/assets/fonts/roboto-latin-variable.woff2") format("woff2"); font-weight: 100 900; 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-roboto); font-size: var(--text-base); line-height: 1.5; color: var(--color-black); background: var(--color-white); }
img, svg, video, iframe { max-width: 100%; }
img, video { height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--color-black); outline-offset: 2px; }
[id] { scroll-margin-top: var(--header-h); }

/* ============ 4. Layout ============ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; }
.section { padding: 100px var(--section-pad-x); }
.section__heading { padding-inline: var(--col-pad); font-family: var(--font-roboto); font-size: var(--text-section); font-weight: 600; line-height: 1; text-transform: uppercase; text-align: center; color: var(--color-black); }

/* ============ 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-black); }
.skip-link:focus { left: 16px; }

/* === Component: icon (inline SVG symbols from the header sprite) === */
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1em; height: 1em; fill: currentColor; display: block; }

/* === Component: site-header (Elementor Pro sticky, no effects) === */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--color-white); padding: 30px var(--section-pad-x); }
.site-header__inner { display: grid; grid-template-columns: 35.086% 31.219% 1fr; align-items: center; max-width: var(--container); margin-inline: auto; }
.site-header__brand { display: flex; justify-content: center; }
.site-header__logo img { width: 206px; }
.site-header__order { display: flex; justify-content: flex-end; padding-right: 5px; }
.site-nav__list { display: flex; gap: 35px; list-style: none; margin: 0; padding: 0; }
.site-nav__list a { display: block; font-family: var(--font-poppins); font-size: 16px; font-weight: 500; line-height: 20px; color: var(--color-black); text-decoration: none; transition: color var(--duration-nav), background-color var(--duration-nav); }
.site-nav__list a:hover, .site-nav__list a:focus-visible, .site-nav__list a.is-active { color: var(--color-nav-active); }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 33px; height: 33px; padding: 0; border: 0; border-radius: 3px; background: var(--color-toggle-bg); color: var(--color-dropdown-text); font-size: 22px; cursor: pointer; position: relative; }
.nav-toggle::after { content: ""; position: absolute; inset: -6px; } /* 44px tap target */
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
  /* Dropdown under the header, full width; slides down with a 0fr -> 1fr grid row (0.3s, as the original). */
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; display: grid; grid-template-rows: 0fr; align-items: stretch; visibility: hidden; transition: grid-template-rows var(--duration) var(--ease), visibility var(--duration); }
  .site-nav.is-open { grid-template-rows: 1fr; visibility: visible; }
  .site-nav.is-instant { transition: none; }
  .site-nav__inner { overflow: hidden; min-height: 0; background: var(--color-white); }
  .site-nav__list { display: block; }
  .site-nav__list a { padding: 10px 20px; color: var(--color-dropdown-text); }
  .site-nav__list a:hover, .site-nav__list a:focus-visible, .site-nav__list a.is-active { color: var(--color-white); background: var(--color-dropdown-active); }
}
@media (max-width: 767px) {
  .site-header__inner { grid-template-columns: 60% 40%; }
  .site-header__brand { order: -1; justify-content: flex-start; }
  .site-header__menu { display: flex; justify-content: flex-end; }
  .site-header__order { display: none; }
}

/* === Component: button === */
.button { display: inline-block; padding: 12px 24px; border-radius: var(--radius-button); background: var(--color-red); color: var(--color-white); font-family: var(--font-poppins); font-size: 16px; font-weight: 800; line-height: 1; text-transform: uppercase; text-decoration: none; text-align: center; transition: all var(--duration); }
.button--tag { border-radius: 0; font-size: 10px; font-weight: 500; }
.button--dark { background: var(--color-black); font-size: 15px; font-weight: 500; text-transform: none; }

/* === Component: scroll-down (dotted top border + hand icon, links to the next section) === */
.scroll-down { display: inline-flex; align-items: center; gap: 5px; margin-left: 20px; padding-top: 5px; border-top: 4px dotted var(--color-black); border-radius: var(--radius-button); background: var(--color-white); color: var(--color-black); font-family: var(--font-roboto); font-size: 15px; font-weight: 500; line-height: 1; text-decoration: none; }
.scroll-down img { width: 15px; height: 15px; }
@media (max-width: 767px) { .scroll-down { margin: 9px; } }

/* === Component: hero (#home) === */
.hero { padding: 50px var(--section-pad-x); }
.hero__inner { display: grid; grid-template-columns: 1fr 1fr; }
.hero__text { align-self: center; padding: var(--col-pad); }
.hero__title { display: flex; flex-wrap: wrap; margin-top: 20px; font-family: var(--font-poppins); font-size: var(--text-hero); text-transform: uppercase; }
.hero__title h1, .hero__title h2 { font-size: inherit; font-weight: 600; line-height: 1; }
.hero__chunky { color: var(--color-red); }
.hero__chicken { color: var(--color-gold); margin-left: 10px; }
.hero__tagline { margin-top: 20px; font-family: var(--font-poppins); font-size: 18px; font-weight: 400; line-height: 1; text-transform: uppercase; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; margin-top: 50px; }
.hero__media { padding: 130px var(--col-pad); background: url("/wp-content/uploads/2022/07/gradient.png") center / contain no-repeat; }
.hero__media img { width: 100%; }
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 55% 45%; }
  .hero { --text-hero: 40px; }
}
@media (max-width: 767px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero { --text-hero: 60px; }
  .hero__chunky { margin-bottom: 10px; }
  .hero__chicken { margin-left: 0; }
  .hero__media { padding: 40px var(--col-pad) 80px; }
}

/* === Component: about-band (#story: red band, orange card with hand image on desktop) === */
.about-band { display: grid; grid-template-columns: 35.581% 64.419%; align-items: center; background: var(--color-red); }
.about-band__media { padding: 120px 0; background: url("/wp-content/uploads/2022/07/Group-32-1.png") 0 25px / contain no-repeat; }
.about-band__media img { width: 100%; }
.about-band__content { max-width: 900px; margin-inline: auto; padding: var(--col-pad); color: var(--color-white); }
.about-band__heading { font-family: var(--font-poppins); font-size: var(--text-section); font-weight: 400; line-height: 1; text-transform: uppercase; }
.about-band__text { display: flow-root; margin-top: 20px; font-family: var(--font-poppins); font-size: 18px; font-weight: 200; line-height: 35.5px; }
.about-band__text p { margin: 18px 0; }
@media (max-width: 1024px) {
  .about-band { grid-template-columns: 1fr; padding: 80px var(--section-pad-x); }
  .about-band__media { display: none; }
  .about-band__content { width: 100%; }
}

/* === Component: menu-cards (#menu: three image cards over the red stripe graphic) === */
.menu-section { background: url("/wp-content/uploads/2022/07/Group-34.png") center right no-repeat; }
.menu-cards { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 20px; }
.menu-card { padding: var(--col-pad); text-align: center; }
.menu-card img { width: 100%; }
.menu-card__title { margin-top: 20px; font-family: var(--font-roboto); font-size: 18.72px; font-weight: 600; line-height: 1; color: var(--color-black); }
@media (max-width: 767px) {
  .menu-section { background-position: bottom right; }
  .menu-cards { grid-template-columns: 1fr; }
}

/* === Component: app-band (orange "Download our app" band; phone mock-ups as backgrounds on desktop) === */
.app-band { padding: 150px var(--section-pad-x); background-color: var(--color-orange); background-image: url("/wp-content/uploads/2022/07/Phone-View.png"), url("/wp-content/uploads/2022/07/Phone-View.png"); background-position: left -182px center, right -182px center; background-repeat: no-repeat; }
.app-band__inner { max-width: 510px; margin-inline: auto; padding: var(--col-pad); text-align: center; }
.app-band__phone { display: none; margin: 0 auto 20px; }
.app-band__heading { font-family: var(--font-poppins); font-size: var(--text-app); font-weight: 300; line-height: 1; text-transform: uppercase; color: var(--color-white); }
.app-band__button { margin-top: 20px; }
.app-band__badges { display: block; width: fit-content; margin: 50px auto 0; }
.app-band__badges img { width: 243px; }
@media (max-width: 1024px) {
  .app-band { background-image: none; }
  .app-band__phone { display: block; }
}

/* === Component: contact-section (#contact: red info card + map) === */
.contact-section { background: url("/wp-content/uploads/2022/07/Group-34.png") center right no-repeat; }
.contact-section__grid { display: grid; grid-template-columns: calc(50% - 20px) 1fr; gap: 20px; margin-top: 20px; }
@media (max-width: 1024px) {
  .contact-section__grid { grid-template-columns: 1fr; }
}

/* === Component: contact-card (red card: address and hours; no form or email, user decision 2026-10-23) === */
.contact-card { display: flex; flex-wrap: wrap; align-items: flex-start; padding: 50px; border-radius: var(--radius-card); background: var(--color-red-card); color: var(--color-white); }
.contact-card__info { flex: 1 1 100%; font-family: var(--font-roboto); font-size: 16px; font-weight: 400; line-height: 1.4em; }
.contact-card__info p { margin: 16px 0; }
@media (max-width: 767px) {
  .contact-card { padding: 30px; }
}

/* === Component: map (keyless Google Maps iframe, rounded) === */
.map-frame { overflow: hidden; border-radius: var(--radius-card); }
.map { display: block; width: 100%; height: 424px; border: 0; }

/* === Component: site-footer (orange bar: credit left, social icons right) === */
.site-footer { padding: 30px var(--section-pad-x); background: var(--color-orange); }
.site-footer__inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; max-width: var(--container); margin-inline: auto; }
.site-footer__credit-col, .site-footer__social-col { padding: var(--col-pad); }
.site-footer__credit { font-family: var(--font-poppins); font-size: 20px; font-weight: 400; line-height: 1; color: var(--color-black); }
.site-footer__credit a { text-decoration: none; }
.site-footer__credit a:hover { text-decoration: underline; }
@media (max-width: 1024px) {
  .site-footer__inner { grid-template-columns: 70% 30%; }
}
@media (max-width: 767px) {
  .site-footer__inner { grid-template-columns: 1fr; }
  .site-footer__credit { font-size: 18px; }
}

/* === Component: social-links === */
.social-links { display: flex; justify-content: flex-end; gap: 25px; list-style: none; margin: 0; padding: 0; font-size: 25px; }
.social-links__link { display: block; color: var(--color-black); }
@media (max-width: 767px) {
  .social-links { justify-content: flex-start; }
}

/* === Component: error-page (404) === */
.error-page { padding: 100px var(--section-pad-x); text-align: center; }
.error-page .section__heading { font-size: clamp(40px, 8vw, 70px); }
.error-page__text { margin: 30px auto; max-width: 600px; font-family: var(--font-poppins); font-size: 18px; }
.error-page__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; list-style: none; margin: 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; }

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