/*
 * site.css: the only stylesheet for Skippers Fish & Chips Harpenden (skippersharpenden.co.uk).
 *
 * Sections, in order:
 *   1. Tokens        colours, fonts, spacing (custom properties)
 *   2. Fonts         @font-face for the self-hosted Google Font
 *   3. Base          reset and element defaults
 *   4. Layout        page frame
 *   5. Components    one block per component: "=== Component: <name> ==="
 *   6. Pages         rare page-specific rules
 *   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
 *   - columns sit side by side from 768px up
 *   - the nav menus collapse to a burger at <= 1024px ("dropdown: tablet")
 *
 * The original (2022 App4 one-page template, Hello theme + Elementor) had the browser's
 * default 8px body margin and 10px column padding; --frame and --gutter carry those.
 * Its quote band and app band were laid out for a 1920px screen with fixed negative
 * margins (text overlapped below ~1920px). Here the same composition scales with the
 * band width (container query units), and stacks on phones (manifest d2).
 *
 * Headings asked for the "Konnect" font, which never loaded on the original, so visitors
 * saw the browser's sans-serif fallback (Helvetica / Arial): --font-heading (manifest d5).
 */

/* ============ 1. Tokens ============ */
:root {
  /* Colours (from the original's computed styles and artwork) */
  --color-text: #000000;
  --color-bg: #ffffff;
  --color-navy: #231e63;          /* quote band and hero circle (Frame-2-2.png, Group-26.png) */
  --color-app-bg: #d0ddff;        /* app band (Group-28-2.png) */
  --color-accent: #61ce70;        /* Elementor kit accent: menu hover + underline pointer */
  --color-footer-link: #7a7a7a;   /* Elementor kit text colour: footer menu */
  --color-dropdown: #494c4f;      /* burger + dropdown links (Elementor Pro default) */
  --color-dropdown-hover-bg: #55595c;

  /* Typography */
  --font-body: "Roboto", Arial, sans-serif;
  --font-heading: Helvetica, Arial, sans-serif;

  /* Spacing */
  --frame: 8px;                   /* original body margin */
  --gutter: 10px;                 /* Elementor column padding */
  --widget-gap: 20px;             /* Elementor space between widgets */
  --container: 1600px;            /* header and hero sections */

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

/* ============ 2. Fonts ============ */
/* Google Font (SIL OFL), self-hosted variable font, latin subset. Weights used: 500, 600. */
@font-face { font-family: "Roboto"; src: url("/assets/fonts/roboto-variable-latin.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%; }
body { margin: var(--frame); font-family: var(--font-body); font-size: 16px; line-height: 1.5; color: var(--color-text); background: var(--color-bg); }
img, svg, video, iframe { max-width: 100%; }
img, video { height: auto; display: block; }
h1, h2, h3 { 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-navy); outline-offset: 2px; }

/* ============ 4. Layout ============ */
.container { max-width: var(--container); margin-inline: auto; }
/* A widget stack: 20px between children (Elementor widget spacing). */
.stack > * + * { margin-top: var(--widget-gap); }

/* ============ 5. Components ============ */

/* === Component: skip-link === */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; padding: 8px 16px; background: var(--color-bg); color: var(--color-text); }
.skip-link:focus { left: 16px; }

/* === Component: button ===
 * Outlined ORDER NOW buttons: Roboto 500 15px, 1px black border, 3px radius (Elementor default).
 * .button--white  header (white fill)   default  hero (transparent)
 */
.button { display: inline-block; padding: 12px 24px; border: 1px solid var(--color-text); border-radius: 3px; background: transparent; font-family: var(--font-body); font-size: 15px; font-weight: 500; line-height: 15px; color: var(--color-text); text-decoration: none; text-align: center; transition: all var(--duration); }
.button--white { background: var(--color-bg); }

/* === Component: nav-toggle (burger, <= 1024px) === */
.nav-toggle { display: none; position: relative; align-items: center; justify-content: center; width: 33px; height: 33px; margin: 0 auto; padding: 5.5px; border: 0; border-radius: 3px; background: rgba(0, 0, 0, 0.05); color: var(--color-dropdown); cursor: pointer; }
.nav-toggle::after { content: ""; position: absolute; inset: -6px; } /* 44px tap target */
.nav-toggle svg { width: 22px; height: 22px; }
.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; }

/* === Component: menu (header and footer nav: Home / App / Location) ===
 * Desktop: Roboto 600 16px; header links black, footer links grey; hover shows the kit
 * accent green and a 3px underline (Elementor "underline" pointer, fade).
 * <= 1024px: hidden behind the burger; opens in place as a white dropdown that pushes the
 * page down (grid 0fr -> 1fr), Roboto 500 13px links.
 */
.menu__list { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.menu--center .menu__list { justify-content: center; }
.menu__list a { position: relative; display: flex; padding: 13px 20px; font-family: var(--font-body); font-size: 16px; font-weight: 600; line-height: 20px; color: var(--color-text); text-decoration: none; transition: color var(--duration); }
.menu--footer .menu__list a { color: var(--color-footer-link); }
.menu__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--color-accent); opacity: 0; transition: opacity var(--duration); }
.menu__list a:hover, .menu__list a:focus-visible { color: var(--color-accent); }
.menu__list a:hover::after, .menu__list a:focus-visible::after { opacity: 1; }
@media (max-width: 1024px) {
  .nav-toggle { display: flex; }
  .menu { display: grid; grid-template-rows: 0fr; align-items: stretch; margin-top: 10px; background: var(--color-bg); visibility: hidden; transition: grid-template-rows var(--duration), visibility var(--duration); }
  .menu.is-open { grid-template-rows: 1fr; visibility: visible; }
  .menu.is-instant { transition: none; }
  .menu__inner { overflow: hidden; min-height: 0; }
  .menu__list { display: block; }
  .menu__list a, .menu--footer .menu__list a { padding: 10px 20px; font-size: 13px; font-weight: 500; color: var(--color-dropdown); }
  .menu__list a::after { content: none; }
  .menu__list a:hover, .menu__list a:focus-visible { color: #ffffff; background: var(--color-dropdown-hover-bg); }
}

/* === Component: site-header ===
 * Boxed (1600px). Three columns from 768px up (21.3% / 53.442% / 24.923%, as the original):
 * logo right-aligned and not linked, menu, ORDER NOW. Stacked on phones (logo still right,
 * burger and button centred). 71px spacer below (10px on phones). Not sticky.
 */
.site-header { max-width: var(--container); margin-inline: auto; padding: var(--gutter) var(--gutter) calc(var(--gutter) + 71px); }
.site-header__col { padding: var(--gutter); }
.site-header__logo { display: flex; justify-content: flex-end; }
.site-header__cta { display: flex; justify-content: center; align-items: flex-start; }
@media (min-width: 768px) {
  .site-header__row { display: grid; grid-template-columns: 21.3% 53.442% 24.923%; align-items: start; }
  .site-header__cta { justify-content: flex-start; }
}
@media (max-width: 767px) {
  .site-header { padding-bottom: calc(var(--gutter) + 10px); }
}

/* === Component: hero (#home) ===
 * Boxed (1600px), two 50% columns from 768px: text (kicker, title, intro, ORDER NOW,
 * address) and the fish-on-navy image. Text and image centre at <= 1024px as the original
 * (kicker and title only on phones).
 */
.hero { max-width: var(--container); margin-inline: auto; }
.hero__col { padding: var(--gutter); min-width: 0; }
.hero__kicker { font-family: var(--font-heading); font-size: 14px; font-weight: 100; line-height: 1; }
.hero__title { margin-top: 50px; font-family: var(--font-heading); font-size: 72px; font-weight: 300; line-height: 1; } /* 20px gap + 10px spacer + 20px gap */
.hero__intro { margin-top: var(--widget-gap); font-family: var(--font-heading); font-size: 22px; font-weight: 100; line-height: 1; }
.hero__address { margin-top: 50px; font-family: var(--font-heading); font-size: 15px; font-weight: 100; line-height: 1; }
.hero__order { margin-top: var(--widget-gap); }
.hero__image img { margin-inline: auto; }
@media (min-width: 768px) {
  .hero { display: grid; grid-template-columns: 50% 50%; }
}
@media (max-width: 1024px) {
  .hero__intro, .hero__order, .hero__address { text-align: center; }
}
@media (max-width: 767px) {
  .hero__kicker, .hero__title { text-align: center; }
}

/* === Component: quote-band ===
 * Frame-2-2.png (navy band, blue blob, chip cones, quote mark) with the white quote centred
 * over the blob. From 768px the text scales with the band (2.07% of its width, 26.5% side
 * padding: the 1920px design); on phones the band grows to fit readable text and the
 * artwork covers it, centred on the blob.
 */
.quote-band { padding: var(--gutter); }
.quote-band__inner { position: relative; container-type: inline-size; background: var(--color-navy); }
.quote-band__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.quote-band__text { position: relative; display: flex; align-items: center; justify-content: center; min-height: 14.03cqw; padding: 1cqw 26.5cqw; font-family: var(--font-heading); font-size: max(14px, 2.07cqw); font-weight: 100; line-height: 1; color: #ffffff; text-align: center; }
@media (max-width: 767px) {
  .quote-band__text { padding: 22px 24px; font-size: 15px; line-height: 1.3; }
}

/* === Component: app-promo (#app) ===
 * Group-28-2.png (pale-blue band with phone mockups and dips) with heading, text and the
 * store badges centred in its upper part, scaled with the band (2.15% of its width) as the
 * 1920px design. On phones the text sits on the pale-blue colour above the artwork.
 */
.app-promo { container-type: inline-size; background: var(--color-app-bg); }
.app-promo__inner { position: relative; display: grid; }
.app-promo__img { grid-area: 1 / 1; width: 100%; }
.app-promo__content { grid-area: 1 / 1; z-index: 1; align-self: start; padding: 1.1cqw var(--gutter) var(--gutter); text-align: center; }
.app-promo__title { font-family: var(--font-heading); font-size: max(16px, 2.15cqw); font-weight: 600; line-height: 1; }
.app-promo__text { max-width: 47.5cqw; margin: 1.5cqw auto 0; font-family: var(--font-heading); font-size: max(14px, 2.15cqw); font-weight: 100; line-height: 1; }
.app-promo__badges { display: inline-block; margin-top: 1.4cqw; }
.app-promo__badges img { margin-inline: auto; }
@media (max-width: 767px) {
  .app-promo__img, .app-promo__content { grid-area: auto; }
  .app-promo__content { order: -1; padding: 24px 16px 16px; }
  .app-promo__title { font-size: 20px; }
  .app-promo__text { max-width: none; margin-top: 12px; font-size: 15px; line-height: 1.3; }
  .app-promo__badges { margin-top: 16px; }
}

/* === Component: section-heading ("Popular Items") === */
.section-heading { padding: 20px 0 0 100px; font-family: var(--font-body); font-size: 24px; font-weight: 600; line-height: 1; }
@media (max-width: 1024px) {
  .section-heading { padding-left: 0; text-align: center; }
}
@media (max-width: 767px) {
  .section-heading { padding: 60px 40px 40px; }
}

/* === Component: gallery (Popular Items; GLightbox slideshow) ===
 * Four cards across from 768px (the original's 4 columns, now within the page width),
 * one per row on phones. Card labels are part of the images.
 */
.gallery-block { padding-bottom: 0; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 393px)); justify-content: space-between; column-gap: clamp(16px, 3vw, 100px); margin: var(--widget-gap) 0 0; padding: 0; list-style: none; }
.gallery a { display: block; }
.gallery img { width: 100%; }
@media (max-width: 767px) {
  .gallery { grid-template-columns: 100%; row-gap: 100px; margin-top: 0; }
}

/* === Component: map (#location) === */
.map-block { padding-top: 70px; } /* 50px spacer + 20px widget gap */
.map { display: block; width: 100%; height: 567px; border: 0; }
@media (max-width: 1024px) {
  .map { height: 667px; }
}

/* === Component: site-footer (centred footer menu + credit) === */
.site-footer { padding: var(--gutter); }
.site-footer__credit { margin: 0; padding: 4px var(--gutter) 2px; font-size: 13px; text-align: center; color: var(--color-text); }
.site-footer__credit a { color: var(--color-navy); }

/* === Component: lightbox (GLightbox; library CSS in /assets/vendor/glightbox-3.3.1/) === */
.glightbox-clean .gslide-title { font-family: var(--font-body); font-weight: 500; margin-bottom: 0; }

/* === Component: error-page (404) === */
.error-page { padding: 60px 20px 80px; text-align: center; }
.error-page__title { font-family: var(--font-heading); font-size: 72px; font-weight: 300; margin-bottom: 20px; }
.error-page__text { font-family: var(--font-heading); font-size: 22px; font-weight: 100; line-height: 1.3; margin-bottom: 30px; }
.error-page__links { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; justify-content: center; }
@media (max-width: 767px) {
  .error-page__title { font-size: 44px; }
}

/* ============ 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) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
