/*
 * site.css: the only stylesheet for this site (qsfoods.co.uk, Quintilianis Strathaven).
 *
 * 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, grids
 *   5. Components    one block per component: "=== Component: <name> ==="
 *   6. Pages         rare page-specific rules: "=== Page: <path> ==="
 *   7. Utilities     a handful of helpers
 *
 * Breakpoints (Elementor defaults used by the original; media queries can't use custom properties):
 *   mobile  <= 767px    tablet 768px-1024px    desktop >= 1025px
 *   The nav collapses to a burger at <= 767px; the boxed container is 1140px.
 *
 * Editing: change tokens to restyle the site; add new components as new blocks;
 * add modifier classes (.card--wide) instead of changing a component for one page.
 */

/* ============ 1. Tokens ============ */
:root {
  /* Colours (from the original's Elementor CSS / computed styles) */
  --color-brown: #432918;      /* nav bar, slider, footer */
  --color-tan: #ceaf9b;        /* page background behind tiles and welcome */
  --color-red: #c30500;        /* order tile, Welcome heading */
  --color-yellow: #e8f600;     /* order button hover text */
  --color-white: #ffffff;
  --color-black: #000000;
  --color-arrow: rgb(238 238 238 / 0.9);

  /* Typography */
  --font-body: "Roboto", Arial, sans-serif;
  --font-nav: Verdana, Geneva, sans-serif;
  --text-base: 16px;
  --text-heading: 24px;        /* Elementor h2 default in this kit */
  --text-order: 50px;
  --text-nav: 19px;
  --text-nav-small: 15px;      /* <= 1024px */
  --text-small: 14px;

  /* Spacing and shape */
  --col-pad: 10px;             /* Elementor default column gap */
  --widget-gap: 20px;          /* Elementor space between widgets */
  --container: 1140px;
  --radius: 3px;

  /* Motion */
  --duration: 300ms;
  --ease: ease;
  --kenburns: 6s;              /* calc(autoplay 5000ms * 1.2), as in the original */
}

/* ============ 2. Fonts ============ */
/* Roboto (Google Fonts, SIL OFL), self-hosted latin subset; one variable file covers weights 400-700. */
@font-face { font-family: "Roboto"; src: url("/assets/fonts/roboto-latin-variable.woff2") format("woff2"); font-weight: 400 700; 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: var(--text-base); line-height: normal; 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 { font-family: var(--font-body); font-weight: 600; line-height: 1; margin: 0; }
h2 { font-size: var(--text-heading); }
p { margin: 16px 0; }
a { color: inherit; transition: color var(--duration) var(--ease); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--color-yellow); outline-offset: 2px; }

/* ============ 4. Layout ============ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; }

/* === Component: tan spacer band (Elementor spacer sections, 40px) === */
.band { height: 40px; background: var(--color-tan); }

/* ============ 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 (logo bar + brown nav bar; not sticky, as the original) === */
.site-header { position: relative; z-index: 10; }
.site-header__logo-bar { margin-top: 20px; padding: var(--col-pad); background: var(--color-white); }
.site-header__logo { margin-inline: auto; width: 150px; height: 150px; }
.site-header__nav-bar { padding: var(--col-pad); background: var(--color-brown); }

/* === Component: nav (Elementor Pro nav menu, restored from the Internet Archive copy) === */
.nav-toggle { display: none; margin: 0 auto; padding: 7.5px; min-width: 45px; min-height: 45px; align-items: center; justify-content: center; background: rgb(0 0 0 / 0.05); border: 0; border-radius: var(--radius); color: var(--color-white); cursor: pointer; }
.nav-toggle svg { width: 30px; height: 30px; }
.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; }
.site-nav__list { display: flex; flex-wrap: wrap; justify-content: center; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 13px 20px; font-family: var(--font-nav); font-size: var(--text-nav); font-weight: 600; line-height: 20px; color: var(--color-white); text-decoration: none; }
@media (max-width: 1024px) {
  .site-nav a { font-size: var(--text-nav-small); }
}
@media (max-width: 767px) {
  .nav-toggle { display: flex; }
  /* Slide-down dropdown in the page flow (pushes the slider down, as the original). */
  .site-nav { display: grid; grid-template-rows: 0fr; align-items: stretch; margin-inline: calc(-1 * var(--col-pad)); visibility: hidden; transition: grid-template-rows var(--duration) var(--ease), visibility 0s linear var(--duration); }
  .site-nav.is-open { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows var(--duration) var(--ease); }
  .site-nav__list { display: block; overflow: hidden; min-height: 0; background: var(--color-brown); }
  .site-nav.is-open .site-nav__list { margin-top: 10px; }
  .site-nav a { padding: 10px 30px; min-height: 44px; display: flex; align-items: center; }
}

/* === Component: hero-slider (Swiper; Elementor Pro "slides" restored from the Internet Archive copy) === */
.hero-slider { position: relative; height: 600px; overflow: hidden; background: var(--color-brown); }
.hero-slider .swiper { height: 100%; --swiper-navigation-size: 25px; --swiper-navigation-color: var(--color-arrow); --swiper-navigation-sides-offset: 10px; }
.hero-slider .swiper-slide { position: relative; height: 600px; overflow: hidden; }
.hero-slider__bg { position: absolute; inset: 0; background-color: var(--color-brown); background-size: cover; background-position: center; transform: scale(1); transition: transform var(--kenburns) linear; }
.swiper-slide-active .hero-slider__bg { transform: scale(1.3); }
.hero-slider__bg--1 { background-image: url("/wp-content/uploads/2020/06/DSC07477.jpg"); }
.hero-slider__bg--2 { background-image: url("/wp-content/uploads/2020/06/background.jpg"); }
.hero-slider__link { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 50px; text-align: center; text-decoration: none; }
.hero-slider__content { max-width: 68%; }
.swiper-slide-active .hero-slider__content { animation: fade-in-left 1.25s both; }
.hero-slider__button { display: inline-block; padding: 20px 40px; border: 2px solid var(--color-white); border-radius: var(--radius); background: var(--color-brown); color: var(--color-white); font-size: 18px; font-weight: 500; line-height: 1; }
.hero-slider .swiper-button-prev, .hero-slider .swiper-button-next { width: 25px; height: 25px; margin-top: -12.5px; padding: 0; border: 0; background: none; cursor: pointer; }
.hero-slider .swiper-pagination { bottom: 10px; }
.hero-slider .swiper-pagination-bullet { width: 9px; height: 9px; margin: 0 6px; background: var(--color-black); opacity: 0.2; }
.hero-slider .swiper-pagination-bullet-active { background: var(--color-white); opacity: 1; }
@keyframes fade-in-left { from { opacity: 0; transform: translate3d(-100%, 0, 0); } to { opacity: 1; transform: none; } }

/* === Component: tiles (pizza photo / red ORDER NOW / ice-cream photo) === */
.tiles { padding-block: 10px; background: var(--color-tan); }
.tiles__row { display: grid; grid-template-columns: repeat(3, 1fr); }
.tiles__photo { min-height: 210px; background-position: center; background-repeat: no-repeat; background-size: cover; }
.tiles__photo--pizza { background-image: url("/wp-content/uploads/2020/06/Unknown-1.jpeg"); }
.tiles__photo--icecream { background-image: url("/wp-content/uploads/2020/06/Vanilla7-4-1-960x600-1.jpg"); }
.tiles__order { display: flex; flex-direction: column; align-items: center; padding: 5px; background: var(--color-red); text-align: center; }
.tiles__order > * { flex: none; }
.tiles__heading { align-self: stretch; margin: 50px 50px 30px; font-size: var(--text-order); color: var(--color-white); }
.tiles__order .button { margin-bottom: 30px; }

/* === Component: button (Elementor large button) === */
.button { display: inline-block; padding: 20px 40px; border-radius: var(--radius); background: var(--color-red); color: var(--color-white); font-size: 18px; font-weight: 500; line-height: 1; text-decoration: none; transition: all var(--duration); }
.button:hover, .button:focus-visible { color: var(--color-yellow); background: var(--color-red); }

/* === Component: welcome (image column + centred story text on white) === */
.welcome { padding-bottom: 20px; background: var(--color-tan); }
.welcome__row { display: grid; grid-template-columns: repeat(2, 1fr); background: var(--color-white); }
.welcome__image { min-height: 220px; background: var(--color-white) url("/wp-content/uploads/2020/06/Unknown.jpeg") center / auto no-repeat; }
.welcome__text { padding: 50px var(--col-pad); text-align: center; }
.welcome__heading { margin-bottom: var(--widget-gap); color: var(--color-red); }
.welcome__copy { display: flow-root; }

/* === Component: site-footer (contact block with map + copyright bar) === */
.site-footer { background: var(--color-brown); color: var(--color-white); }
.site-footer__contact { padding-block: 68px; }
.site-footer__cols { display: grid; grid-template-columns: repeat(2, 1fr); }
.site-footer__col { padding: var(--col-pad); }
.site-footer__col--map { display: flex; align-items: center; }
.site-footer__heading { margin-bottom: var(--widget-gap); color: var(--color-white); }
.site-footer__address { line-height: 42px; margin: 36px 0; } /* 16px paragraph margin + 20px widget gap */
.site-footer__phone { display: flex; align-items: center; margin: 0; font-weight: 700; letter-spacing: 0.3px; }
.site-footer__phone .icon { width: 20px; height: 20px; flex: none; margin-right: 10px; }
.site-footer__bar { padding: var(--col-pad); }
.site-footer__copyright { font-family: var(--font-nav); font-size: var(--text-small); font-weight: 400; line-height: 1; text-align: center; color: var(--color-white); }
.site-footer__copyright a { color: inherit; text-decoration: none; }
.site-footer__copyright a:hover { text-decoration: underline; }

/* === Component: map === */
.map { display: block; width: 100%; height: 300px; border: 0; }

/* === Component: error-page (404) === */
.error-page { padding: 60px var(--col-pad) 80px; background: var(--color-tan); text-align: center; }
.error-page__box { max-width: 760px; margin-inline: auto; padding: 50px var(--col-pad); background: var(--color-white); }
.error-page__heading { margin-bottom: var(--widget-gap); font-size: 50px; color: var(--color-red); }
.error-page__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 30px; }

/* === Component: contact-email (no forms on this site; kept for future use) === */
.contact-email { display: grid; gap: 16px; justify-items: start; }
.contact-email__address { font-weight: 600; word-break: break-word; }
.contact-email__phone a { color: inherit; }

/* === Responsive layout (tablet: photo columns hidden, as the original's elementor-hidden-tablet) === */
@media (min-width: 768px) and (max-width: 1024px) {
  .tiles__row { grid-template-columns: 1fr 1fr; }
  .tiles__photo { display: none; }
  .welcome__row { grid-template-columns: 1fr 1fr; background: none; }
  .welcome__image { display: none; }
  .welcome__text { background: var(--color-white); }
}
@media (max-width: 767px) {
  .tiles__row, .welcome__row, .site-footer__cols { grid-template-columns: 1fr; }
  .welcome__image { background-size: auto; }
}

/* ============ 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; }
  .swiper-slide-active .hero-slider__bg { transform: none; }
}
