/*
 * site.css: the only stylesheet for thevikingfishandchips.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 (Elementor defaults on the original; media queries can't use custom properties):
 *   mobile  ≤ 767px    tablet 768px–1024px    desktop ≥ 1025px
 *
 * Values come from the original Elementor CSS (design-system/orig-css/post-19.css) and
 * computed styles measured on the live site (same template as lotushouse.je).
 */

/* ============ 1. Tokens ============ */
:root {
  /* Colours */
  --color-bg: #232323;            /* page background, Download Now button */
  --color-text: #232323;          /* About Us heading and text */
  --color-light: #ffffff;         /* text on dark sections */
  --color-panel: #ffffff;         /* About Us box */
  --overlay-hero: rgb(0 0 0 / 0.8);
  --overlay-footer: rgb(0 0 0 / 0.75);
  --app-image-opacity: 0.2;

  /* Typography */
  --font-body: "Poppins", Arial, sans-serif;
  /* Original heading font "Xhers" (commercial, unlicensed) → closest Google Font: Antonio (decision d4; lotushouse.je d10) */
  --font-heading: "Antonio", "Arial Narrow", sans-serif;
  --heading-weight: 500;
  --heading-tracking: -0.02em;    /* Antonio is ~4% wider than Xhers; keeps the original line breaks */
  --text-display: 96px;           /* About Us, Ordering heading (64px on mobile) */
  --text-display-mobile: 64px;
  --text-footer-heading: 40px;
  --text-button: 20px;
  --tracking-button: 0.2em;

  /* Spacing */
  --container: 1140px;            /* Elementor kit boxed width */
  --gutter: 32px;

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

/* ============ 2. Fonts ============ */
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-400-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-700-latin.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Antonio"; src: url("/assets/fonts/antonio-latin-variable.woff2") format("woff2"); font-weight: 100 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: 16px; line-height: 1.5; color: var(--color-light); background: var(--color-bg); overflow-x: clip; }
img, svg, video, iframe { max-width: 100%; }
img, video { height: auto; display: block; }
h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

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

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

/* === Component: skip-link === */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; padding: 8px 16px; background: #fff; color: #232323; }
.skip-link:focus { left: 16px; }

/* === Component: display-heading (Xhers → Antonio, uppercase; About Us, Ordering, footer headings) === */
.display-heading { font-family: var(--font-heading); font-weight: var(--heading-weight); font-size: var(--text-display); line-height: 1; letter-spacing: var(--heading-tracking); text-transform: uppercase; text-align: center; }
@media (max-width: 767px) {
  .display-heading { font-size: var(--text-display-mobile); }
}

/* === Component: text-button (Poppins bold, uppercase, widely tracked, no padding; "Menu", "Download Now") === */
.text-button { display: inline-block; padding: 0; font-family: var(--font-body); font-size: var(--text-button); font-weight: 700; line-height: 1; letter-spacing: var(--tracking-button); text-transform: uppercase; text-decoration: none; color: var(--color-light); background: transparent; transition: all var(--duration) var(--ease); }
.text-button--dark { background: var(--color-bg); }

/* === Component: hero (full-height photo with dark veil, logo image, Menu link, tagline) === */
.hero { display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 100vh; padding: 10px; background: linear-gradient(var(--overlay-hero), var(--overlay-hero)), var(--hero-image) center / cover no-repeat; }
.hero__inner { display: flex; flex-direction: column; align-items: center; gap: 32px; width: 100%; max-width: var(--container); text-align: center; }
.hero__logo { width: 80%; }
.hero__tagline { font-family: var(--font-body); font-size: 22px; font-weight: 700; line-height: 1; letter-spacing: 0.5em; text-transform: uppercase; color: var(--color-light); }
@media (max-width: 1024px) {
  .hero__inner { padding-inline: var(--gutter); }
  .hero__logo { width: 100%; }
  .hero__tagline { font-size: 19px; }
}
@media (max-width: 767px) {
  .hero { padding: 0; }
  .hero__tagline { font-size: 17px; line-height: 1.6; letter-spacing: 0.25em; }
}

/* === Component: gallery (square thumbnails, 3 columns / 1 on mobile, GLightbox slideshow; library CSS in /assets/vendor/glightbox-3.3.1/) === */
.gallery { padding: 40px var(--gutter) 64px; }
.gallery__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.gallery__link { display: block; }
.gallery__link img { width: 100%; aspect-ratio: 1; object-fit: cover; }
@media (max-width: 767px) {
  .gallery__grid { grid-template-columns: minmax(0, 1fr); }
}

/* Lightbox look (Elementor lightbox: dark veil, "1 / 3" counter top left, bold title caption) */
.glightbox-container .goverlay { background: rgb(0 0 0 / 0.87); }
.glightbox-counter { position: absolute; top: 20px; left: 20px; z-index: 999999; font-family: var(--font-body); font-size: 14px; line-height: 1; color: rgb(255 255 255 / 0.9); }
.glightbox-clean .gslide-description { background: transparent; }
.glightbox-clean .gdesc-inner { padding: 16px 20px; text-align: center; }
.glightbox-clean .gslide-title { margin: 0; font-family: var(--font-body); font-size: 14px; font-weight: 700; color: #fff; }

/* === Component: about (newspaper artwork background, white centred box) === */
.about { padding: 96px var(--gutter); background: var(--about-image) center / cover no-repeat; }
.about__box { display: flex; flex-direction: column; align-items: center; gap: 32px; max-width: 630px; margin-inline: auto; padding: 80px; background: var(--color-panel); color: var(--color-text); text-align: center; }
.about__text p { margin: 1em 0; font-size: 20px; line-height: 1.5; letter-spacing: -0.01em; }
@media (max-width: 767px) {
  .about__box { padding: 40px var(--gutter); }
  .about__text p { font-size: 18px; }
}

/* === Component: app-promo (photo at 20% over the page colour, heading, phones image, Download Now) === */
.app-promo { position: relative; isolation: isolate; padding: 96px var(--gutter) 120px; }
.app-promo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--app-image) 0 0 / cover no-repeat; opacity: var(--app-image-opacity); }
.app-promo__inner { display: flex; flex-direction: column; align-items: center; gap: 80px; max-width: 660px; margin-inline: auto; text-align: center; }
.app-promo__title { color: var(--color-light); }

/* === Component: site-footer (photo with dark veil; Follow Us + Opening Times, contact row, copyright row) === */
.site-footer { padding: 120px var(--gutter) 80px; background: linear-gradient(var(--overlay-footer), var(--overlay-footer)), url("/wp-content/uploads/2023/04/about.jpg") center / cover no-repeat; color: var(--color-light); font-size: 16px; line-height: normal; }
.site-footer__inner { display: flex; flex-direction: column; gap: 20px; max-width: var(--container); margin-inline: auto; }
.site-footer__cols { display: flex; justify-content: space-between; align-items: flex-start; width: 100%; max-width: 640px; margin-inline: auto; padding: 20px 10px; }
.site-footer__col { display: flex; flex-direction: column; align-items: center; gap: 24px; width: calc(50% - 20px); }
.site-footer__heading { font-size: var(--text-footer-heading); }
.site-footer__hours { font-size: 18px; line-height: 1.7; letter-spacing: 0.05em; text-align: center; }
.site-footer__contact { display: flex; justify-content: space-between; align-items: center; column-gap: 20px; row-gap: 20px; padding: 24px 0; border-block: 1px solid var(--color-light); }
.site-footer__address { flex: 0 0 auto; }
.site-footer__details { display: flex; flex: 1 1 100%; justify-content: flex-end; align-items: center; gap: 20px; padding: 10px; }
.site-footer__details li { flex: 0 0 auto; }
.site-footer__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.site-footer__bar a { text-decoration: none; }
.site-footer__bar a:hover { text-decoration: underline; }
@media (max-width: 1024px) {
  .site-footer__contact { flex-wrap: wrap; }
  .site-footer__details { justify-content: flex-start; }
}
@media (max-width: 767px) {
  .site-footer__cols { flex-direction: column; align-items: stretch; gap: 44px; max-width: none; padding: 0; }
  .site-footer__col { width: 100%; }
  .site-footer__contact { justify-content: center; }
  .site-footer__address { text-align: center; }
  .site-footer__details { flex-direction: column; justify-content: flex-start; padding: 0; }
  .site-footer__bar { justify-content: center; }
}

/* === Component: social-icon (outline circles, NOT links on the original: decision d5) === */
.social-icons { display: flex; justify-content: center; gap: 10px; }
.social-icon { display: inline-flex; align-items: center; justify-content: center; width: 55px; height: 55px; border: 1px solid var(--color-light); border-radius: 50%; color: var(--color-light); }
.social-icon svg { width: 25px; height: 25px; fill: currentColor; }

/* === Component: contact-email (replaces WordPress forms; unused on this site, the original had no forms) === */
.contact-email { display: grid; gap: 16px; justify-items: center; text-align: center; }
.contact-email__address { font-weight: 700; word-break: break-word; }
.contact-email__phone a { color: inherit; }

/* === Component: not-found (404 page) === */
.not-found { display: flex; flex-direction: column; align-items: center; gap: 32px; min-height: 60vh; justify-content: center; padding: 120px var(--gutter); text-align: center; }
.not-found__text { font-size: 20px; }
.not-found__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px 40px; }

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