/*
 * site.css: the only stylesheet for rockabillyz.co.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 (from the original Elementor kit; media queries can't use custom properties):
 *   mobile  ≤ 767px    tablet 768px–1024px    desktop ≥ 1025px
 * The original layout only changes at 767px (tablet looks like desktop).
 *
 * Editing: change tokens to restyle the site; add new components as new blocks;
 * add modifier classes (.button--dark) instead of changing a component for one page.
 */

/* ============ 1. Tokens ============ */
:root {
  /* Colours (Elementor global colours of the original) */
  --color-red: #e42127;          /* primary (brand red; the textures carry the red on screen) */
  --color-dark: #180500;         /* secondary: dark buttons, menu-band overlay */
  --color-white: #ffffff;        /* text colour on every section */
  --color-text: var(--color-white);
  --color-bg: #d71f2b;           /* fallback under the red texture */
  --color-bg-dark: #120300;      /* fallback under the dark texture */

  /* Typography */
  --font-body: "Questrial", sans-serif;
  --font-heading: "Rochester", sans-serif;
  --text-body: 24px;             /* section copy, desktop */
  --text-h2: 52px;               /* Rochester headings, desktop */
  --text-button: 32px;
  --leading: 1.24;

  /* Layout */
  --container: 1140px;
  --container-narrow: 700px;
  --section-pad-top: 80px;
  --section-pad-bottom: 120px;
  --radius-pill: 30px;
  --radius-pill-lg: 50px;

  /* Motion */
  --duration: 300ms;
  --ease: ease;

  /* Textures */
  --texture-red: url("/wp-content/uploads/2021/07/bgx2-scaled.jpg");
  --texture-dark: url("/wp-content/uploads/2021/07/bg-dark-scaled.jpg");
}

/* ============ 2. Fonts (self-hosted Google Fonts, latin subset) ============ */
@font-face { font-family: "Questrial"; src: url("/assets/fonts/questrial-400-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Rochester"; src: url("/assets/fonts/rochester-400-latin.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: 1.5; color: var(--color-text); background: var(--color-bg-dark); }
img, svg, video, iframe { max-width: 100%; }
img, video { height: auto; display: block; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 1em 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--color-white); outline-offset: 3px; }

/* ============ 4. Layout ============ */
.container { width: min(100%, var(--container)); margin-inline: auto; }
.container--narrow { width: min(100%, var(--container-narrow)); margin-inline: auto; }
.section { padding: var(--section-pad-top) 0 var(--section-pad-bottom); background-position: center center; background-repeat: no-repeat; background-size: cover; text-align: center; }
.section--red { background-color: var(--color-bg); background-image: var(--texture-red); }
.section--dark { background-color: var(--color-bg-dark); background-image: var(--texture-dark); }
@media (max-width: 767px) {
  .container--narrow { padding-inline: 20px; }
}

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

/* === Component: section-heading (Rochester script heading) === */
.section-heading { font-family: var(--font-heading); font-size: var(--text-h2); font-weight: 400; line-height: 1; color: var(--color-white); text-align: center; }
@media (max-width: 767px) {
  .section-heading { font-size: 40px; }
}

/* === Component: section-text (centred Questrial copy) === */
.section-text { font-size: var(--text-body); line-height: var(--leading); text-align: center; }
.section-text a { color: var(--color-white); text-decoration: underline; }
@media (max-width: 767px) {
  .section-text { font-size: 16px; }
  .section-text--17 { font-size: 17px; }
}

/* === Component: button (Elementor pill buttons of the original; no hover change) === */
.button { display: inline-block; padding: 14px 50px; border-radius: var(--radius-pill); background: var(--color-white); color: var(--color-dark); font-family: var(--font-body); font-size: var(--text-button); font-weight: 400; line-height: 1; text-transform: uppercase; text-decoration: none; text-align: center; transition: all var(--duration); }
.button--wide { padding-inline: 75px; }
.button--dark { background: var(--color-dark); color: var(--color-white); }
.button--large { padding: 24px 75px; border-radius: var(--radius-pill-lg); }
@media (max-width: 767px) {
  .button { font-size: 18px; }
  .button--large { padding: 20px 40px; }
}

/* === Component: button-pair (two buttons side by side, stacked on mobile) === */
.button-pair { display: flex; justify-content: center; padding-top: 20px; }
.button-pair__item { flex: 0 0 50%; display: flex; }
.button-pair__item:first-child { justify-content: flex-end; padding-right: 20px; }
.button-pair__item:last-child { justify-content: flex-start; padding-left: 20px; }
@media (max-width: 767px) {
  .button-pair { flex-direction: column; align-items: center; }
  .button-pair__item, .button-pair__item:first-child, .button-pair__item:last-child { flex-basis: auto; width: 100%; justify-content: center; padding: 0; }
  .button-pair__item + .button-pair__item { margin-top: 20px; }
}

/* === Component: hero (logo, welcome text, buttons, Facebook link) === */
.hero__logo { width: 500px; max-width: 100%; margin: 0 auto 20px; }
a > .hero__logo { width: 300px; }
.hero__intro { padding-top: 20px; }
.hero__social { display: block; width: 260px; max-width: 100%; margin: 80px auto 0; }
.hero__social img { width: 260px; }
@media (max-width: 767px) {
  .hero { padding-top: 80px; }
  .hero__intro { padding-top: 10px; }
}

/* === Component: image-strip (four full-bleed food photos) === */
.image-strip { display: grid; grid-template-columns: repeat(4, 1fr); min-height: 400px; }
.image-strip__item { background-position: center center; background-repeat: no-repeat; background-size: cover; }
.image-strip__item--image-05 { background-image: url("/wp-content/uploads/2021/07/image-05.jpeg"); }
.image-strip__item--image-02 { background-image: url("/wp-content/uploads/2021/07/image-02.jpeg"); }
.image-strip__item--image-04 { background-image: url("/wp-content/uploads/2021/07/image-04.jpeg"); }
.image-strip__item--image-01 { background-image: url("/wp-content/uploads/2021/07/image-01.jpeg"); }
@media (max-width: 767px) {
  .image-strip { grid-template-columns: 1fr; grid-template-rows: repeat(4, 1fr); min-height: 1000px; }
}

/* === Component: cta-band (photo band with dark overlay and one button) === */
.cta-band { position: relative; padding: 210px 10px; background-position: center center; background-repeat: no-repeat; background-size: cover; text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: var(--color-dark); opacity: 0.6; }
.cta-band > * { position: relative; }
.cta-band--menu { background-image: url("/wp-content/uploads/2021/07/image-03.jpeg"); }

/* === Component: app-badges (store badges image link) === */
.app-badges { display: block; width: 460px; max-width: 100%; margin: 0 auto; padding-top: 10px; }
.app-badges img { width: 100%; }

/* === Component: site-footer (Contact Us section: phone, hygiene rating, credit) === */
.site-footer { padding-bottom: 40px; }
.site-footer__label { margin: 1em 0 calc(1em - 15px); font-size: 24px; line-height: var(--leading); white-space: pre-wrap; }
.site-footer__phone { margin: calc(1em - 38px) 0 1em; font-family: var(--font-heading); font-size: 32px; line-height: normal; }
.site-footer__rating { display: block; width: 600px; max-width: 100%; margin: 0 auto; }
.site-footer__rating img { width: 60%; margin: 0 auto; }
.site-footer__credit { margin: 60px 0 0; font-size: 14px; line-height: 1.5; }
.site-footer__credit a { color: var(--color-white); }
@media (max-width: 767px) {
  .site-footer .container--narrow { padding-inline: 0; }
}

/* === Component: error-page (404) === */
.error-page__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-top: 24px; }

/* ============ 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; }
  [data-reveal] { visibility: visible !important; }
}
