/*
 * site.css: the only stylesheet for fornopizzanottingham.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        boxed containers, columns
 *   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 CSS; media queries can't use custom properties):
 *   mobile  ≤ 767px    tablet 768px–1024px    desktop ≥ 1025px
 *
 * Values come from the original site's computed styles (Elementor 4.3.5 on twentyseventeen).
 * The page background is the original bg.png (1×1080 strip: red band with a shadow edge,
 * then white), repeated horizontally.
 */

/* ============ 1. Tokens ============ */
:root {
  /* Colours */
  --color-red: #cc0000;          /* brand red: headings, nav text, dividers */
  --color-green: #015428;        /* footer band */
  --color-black: #000000;        /* card borders, shadows, body copy */
  --color-white: #ffffff;
  --color-grey: #54595f;         /* contact page "CALL:" heading */
  --color-hero-fallback: #833ca3;/* slide background colour behind the images (original) */

  /* Typography */
  --font-roboto: "Roboto", Arial, sans-serif;      /* headings, nav buttons, footer */
  --font-copy: "Tahoma", Verdana, sans-serif;      /* body copy (system font, as original) */
  --font-phone: Arial, Helvetica, sans-serif;      /* header phone number */
  --text-copy: 14px;
  --leading-copy: 1.5;           /* 1.66 at ≤767px, as the original theme */

  /* Layout */
  --boxed: 980px;                /* most sections */
  --boxed-card: 960px;           /* content cards */
  --boxed-nav: 1000px;           /* nav buttons row */
  --gutter: 10px;                /* Elementor column padding */
  --widget-gap: 20px;            /* Elementor widget spacing */

  /* Shadows */
  --shadow-card: 2px 2px 10px 0 #000000;
  --shadow-button: 3px 3px 10px 0 #000000;
  --shadow-photo: 3px 3px 10px 0 #000000;

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

/* ============ 2. Fonts ============ */
/* Roboto (Google Fonts, SIL OFL), latin subset, variable file covering 300–600. Used: 300, 500, 600. */
@font-face {
  font-family: "Roboto";
  src: url("/assets/fonts/roboto-latin-300-600.woff2") format("woff2");
  font-weight: 300 600;
  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: 16px;
  line-height: 1.5;
  color: #333333;
  background: var(--color-white) url("/wp-content/uploads/2018/07/bg.png") repeat-x 0 0;
}
img, iframe { max-width: 100%; }
img { height: auto; vertical-align: middle; border: 0; }
h1, h2, h3 { margin: 0; line-height: 1; }
p { margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid #1a73e8; outline-offset: 2px; }

/* ============ 4. Layout ============ */
/* Boxed row: centred, max 980px; columns inside get 10px padding. */
.boxed { width: 100%; max-width: var(--boxed); margin-inline: auto; }
.boxed--card { max-width: var(--boxed-card); }
.boxed--nav { max-width: var(--boxed-nav); }
.col { padding: var(--gutter); }

/* Equal columns; stack at ≤767px like Elementor */
.cols { display: flex; }
.cols > * { flex: 1 1 0; min-width: 0; }
@media (max-width: 767px) {
  .cols { flex-direction: column; }
}

/* ============ 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: site-header ===
 * Red band (from the body background): Facebook icon top right, centred logo,
 * phone number (H2, plain text), then four white nav buttons. Not sticky; no mobile menu
 * (buttons stack at ≤767px, as the original). */
.site-header__social { padding: var(--gutter); text-align: end; }
.site-header__facebook { display: inline-block; width: 6%; vertical-align: top; }
.site-header__facebook img { display: block; width: 100%; border-left: 1px solid #222222; box-shadow: 0 0 10px 0 #000000; }
.site-header__brand { padding: var(--gutter); text-align: center; }
.site-header__logo { display: block; width: fit-content; max-width: 100%; margin: 0 auto var(--widget-gap); }
.site-header__logo img { display: block; }
.site-header__phone {
  font-family: var(--font-phone);
  font-size: 45px;
  font-weight: 600;
  letter-spacing: 3px;
  line-height: 1;
  color: var(--color-white);
  text-shadow: 1px 4px 5px #000000;
}
@media (max-width: 1024px) {
  .site-header__logo { max-width: 310px; } /* original: 51% of the 607px logo */
  .site-header__phone { font-size: 28px; }
}
@media (max-width: 767px) {
  .site-header__logo { max-width: 100%; }
}
/* Touch layouts: enlarge the tiny Facebook tap area without changing how it looks */
@media (pointer: coarse) {
  .site-header__facebook { position: relative; }
  .site-header__facebook::after { content: ""; position: absolute; inset: -12px; }
}

/* === Component: site-nav (four buttons, 25% columns; one per row at ≤767px) === */
.site-nav__list { display: flex; list-style: none; margin: 0 auto; padding: 0; }
.site-nav__item { flex: 1 1 25%; min-width: 0; padding: var(--gutter); text-align: center; }
@media (max-width: 767px) {
  .site-nav__list { flex-direction: column; }
}

/* === Component: nav-button (white box, red Roboto Light text, black outline + shadow) === */
.nav-button {
  display: inline-block;
  padding: 8px 50px; /* no max-width: at 768px single words overflow their column slightly, as the original */
  font-family: var(--font-roboto);
  font-size: 23px;
  font-weight: 300;
  line-height: 1;
  color: var(--color-red);
  background: var(--color-white);
  border: 1px solid var(--color-black);
  box-shadow: var(--shadow-button);
  text-align: center;
  text-decoration: none;
  transition: all var(--duration) var(--ease);
}
.nav-button:hover, .nav-button:focus { color: var(--color-red); }
@media (pointer: coarse) {
  .nav-button { padding-block: 9.5px; } /* 44px tap target on touch screens */
}

/* === Component: site-footer (green band: address line, app badges, credit) === */
.site-footer { margin-top: 50px; background: var(--color-green); }
.site-footer__inner { padding: var(--gutter); }
.site-footer__address {
  padding: 10px 0;
  margin-bottom: var(--widget-gap);
  font-family: var(--font-roboto);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 2.3px;
  line-height: 1.5;
  color: var(--color-white);
  text-align: center;
}
.app-badges__item { padding: var(--gutter); }
.app-badges__item:first-child { text-align: end; }
.app-badges__item:last-child { text-align: start; }
.app-badges__item a { display: inline-block; vertical-align: top; }
/* As the original: 25% of the badge's own 280px width (70px) on desktop/tablet, full size on mobile */
.app-badges__item img { display: inline-block; vertical-align: middle; max-width: 25%; }
.site-footer__credit {
  padding: 0 0 4px;
  font-family: var(--font-roboto);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 1px;
  line-height: 1.5;
  color: var(--color-white);
  text-align: center;
}
.site-footer__credit a { color: var(--color-white); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 767px) {
  .site-footer__address { padding: 10px; line-height: 1.66; }
  .app-badges__item img { max-width: 100%; }
}

/* === Component: hero-slider (Swiper fade, 630px tall, white 4px frame + shadow) ===
 * Whole slides link to online ordering. The slide images carry their own text, so at
 * ≤767px the slider takes the images' 3:2 ratio instead of cropping them (decision d4). */
.hero-slider { padding: var(--gutter); }
.hero-slider__frame { border: 4px solid var(--color-white); box-shadow: var(--shadow-card); }
.hero-slider .swiper { height: 630px; background: var(--color-hero-fallback); }
.hero-slider__slide { display: block; height: 100%; overflow: hidden; background: var(--color-hero-fallback); }
.hero-slider__slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
/* Without Swiper (JS off or failed), show the first slide only */
.hero-slider .swiper:not(.swiper-initialized) .hero-slider__slide + .hero-slider__slide { display: none; }
@media (max-width: 767px) {
  .hero-slider .swiper { height: auto; aspect-ratio: 1000 / 667; }
}

/* === Component: card (boxed white/transparent panel with black outline and shadow) === */
.card {
  max-width: var(--boxed-card);
  margin: 20px auto;
  border: 1px solid var(--color-black);
  box-shadow: var(--shadow-card);
  padding: 30px 10px 30px 20px;
}
.card--white { background: var(--color-white); }
.card--flush { padding: 0; }

/* === Component: display-heading (red Roboto 600 H2, capitalised, black text shadow) === */
.display-heading {
  font-family: var(--font-roboto);
  font-weight: 600;
  line-height: 1;
  color: var(--color-red);
  text-transform: capitalize;
  text-shadow: 0 2px 0 #000000;
  margin-bottom: var(--widget-gap);
}
.display-heading--xl { font-size: 57px; }
.display-heading--lg { font-size: 50px; }
.display-heading--md { font-size: 45px; }
.display-heading--sm { font-size: 27px; }
.display-heading--offset { text-shadow: 2px 2px 0 #000000; }
.display-heading--center { text-align: center; }
.display-heading--last { margin-bottom: 0; }

/* === Component: copy (Tahoma 14px black body text; paragraphs have no gap) === */
.copy {
  font-family: var(--font-copy);
  font-size: var(--text-copy);
  font-weight: 200;
  line-height: var(--leading-copy);
  color: var(--color-black);
  margin-bottom: var(--widget-gap);
}
.copy--center { text-align: center; }
.copy--last { margin-bottom: 0; }
.copy__highlight { color: var(--color-red); }
@media (max-width: 767px) {
  :root { --leading-copy: 1.66; }
}

/* === Component: photo-row (three framed food photos; stack at ≤767px) === */
.photo-row img { display: block; width: 100%; border: 4px solid var(--color-white); box-shadow: var(--shadow-photo); }

/* === Component: divider (4px red rule with 15px space above and below) === */
.divider { padding: 15px 0; margin-bottom: var(--widget-gap); }
.divider::before { content: ""; display: block; border-top: 4px solid var(--color-red); }
.divider--last { margin-bottom: 0; }

/* === Component: framed-banner (full-width image link in a white frame with shadow) === */
.framed-banner { display: block; margin-bottom: var(--widget-gap); }
.framed-banner img { display: block; width: 100%; border: 4px solid var(--color-white); box-shadow: 2px 2px 10px 1px #000000; }

/* === Component: order-banner (order-now.png across a flush card) === */
.order-banner { padding: 10px 0; }
.order-banner a { display: block; }
.order-banner img { display: block; width: 100%; }
.order-banner--plain { padding: 0; }

/* === Component: info-columns (two columns in a card: details left, map right) === */
.info-columns__col { padding: var(--gutter); }
.info-columns__col--middle { display: flex; flex-direction: column; justify-content: center; }

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

/* === Component: call-heading (grey Roboto 500 "CALL:" H2 on the contact page) === */
.call-heading {
  font-family: var(--font-roboto);
  font-size: 52px;
  font-weight: 500;
  line-height: 1;
  color: var(--color-grey);
  text-transform: capitalize;
  text-align: center;
  margin-bottom: var(--widget-gap);
}

/* === Component: contact-email (replaces WordPress forms; this site has none, kept for future use) === */
.contact-email { display: grid; gap: 12px; justify-items: center; text-align: center; font-family: var(--font-copy); font-size: var(--text-copy); color: var(--color-black); }
.contact-email__address { font-weight: 600; word-break: break-word; }
.contact-email .nav-button { font-size: 20px; }

/* === Component: slider (Swiper; library CSS in /assets/vendor/swiper-14.3.0/) === */
.swiper { --swiper-theme-color: var(--color-red); }

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

/* === Page: /contact/ (second card sits 3px lower; inner content starts 20px down) === */
.card.contact-call { margin-top: 23px; }
.contact-call__inner { padding: 20px 0 0; }
.contact-call__col { padding: 10px 0; }

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