/*
 * site.css: the only stylesheet for enzos-fishandchips.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 CSS; media queries can't use custom properties):
 *   mobile  ≤ 767px    tablet 768px–1024px    desktop ≥ 1025px
 *   The header menu collapses to the hamburger at ≤ 1024px (Essential Addons "tablet" setting).
 *   The Instagram grid (Spotlight) shows 5 columns / 15 posts above 935px,
 *   4 columns / 12 posts at 769–935px and 3 columns / 9 posts at ≤ 768px (measured on the original).
 *
 * Editing: change tokens to restyle the site; add new components as new blocks;
 * add modifier classes (.section-title--left) instead of changing a component for one page.
 */

/* ============ 1. Tokens ============ */
:root {
  /* Colours (from the original's Elementor CSS) */
  --color-green: #4b5f24;          /* header bar, big headings */
  --color-text: #333333;           /* footer text and headings */
  --color-text-story: #4e4e4e;     /* "Our story" heading and text */
  --color-text-muted: #7a7a7a;     /* Elementor global text colour (app band, last-delivery note) */
  --color-white: #ffffff;
  --color-bg: #ffffff;
  --color-bg-light: #f8f8f8;       /* about section */
  --color-bg-cream: #f5ece2;       /* app band */
  --color-menu-dropdown: #4e36a3;  /* Essential Addons default dropdown purple, kept as on the original (d10) */
  --color-link-default: #0000ee;   /* footer phone link keeps the browser default blue, as on the original */
  --hero-overlay: rgb(0 0 0 / 0.5);

  /* Typography */
  --font-heading: "Montserrat", sans-serif;
  --font-body: "Montserrat", sans-serif;
  --font-roboto: "Roboto", sans-serif;
  --text-base: 1rem;
  --text-h-xl: 3rem;               /* 48px section titles (2.3rem on mobile) */
  --text-h-lg: 2rem;               /* 32px footer headings / "Our story" */
  --leading: 1.5;

  /* Spacing and shape */
  --container: 1140px;
  --container-narrow: 960px;       /* menu section */
  --column-pad: 10px;              /* Elementor default column gap */
  --widget-gap: 20px;              /* Elementor default space between widgets */
  --section-pad-lg: 150px;
  --header-shadow: 0 0 10px 0 rgb(0 0 0 / 0.5);

  /* Motion (Elementor defaults) */
  --duration: 300ms;
  --duration-reveal: 1250ms;
  --ease: ease;
}

/* ============ 2. Fonts ============ */
/* Google Fonts, self-hosted (latin subset, variable weight). Montserrat 300–900, Roboto 400/500. */
@font-face { font-family: "Montserrat"; src: url("/assets/fonts/montserrat-latin-variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("/assets/fonts/roboto-latin-variable.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%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); font-size: var(--text-base); line-height: var(--leading); color: var(--color-text); background: var(--color-bg); overflow-x: hidden; }
img, svg, video, iframe { max-width: 100%; }
img, video { height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1; margin: 0; padding: 0; }
p { margin: 0 0 1em; }
a { color: inherit; transition: color var(--duration) var(--ease); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--color-white); outline-offset: 2px; box-shadow: 0 0 0 4px var(--color-green); }

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

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

/* === Component: site-header ===
 * Green bar: logo (left) and a shadowed menu box (right). Not sticky on the original.
 * ≥1025: one row, logo 15.069% / menu 84.931%, menu links inline on the right.
 * 768–1024: logo 25% on its own row, menu box (84.931% wide) below it with the hamburger.
 * ≤767: logo and menu box side by side (50/50), menu box filled green.
 */
.site-header { position: relative; z-index: 50; background: var(--color-green); }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; padding: 25px 40px; }
.site-header__logo { flex: 0 0 15.069%; max-width: 15.069%; }
.site-header__logo img { width: 100%; height: 150px; object-fit: contain; object-position: center; }
.site-header__menu { position: relative; flex: 0 0 84.931%; max-width: 84.931%; min-height: 50px; display: flex; justify-content: flex-end; align-items: center; box-shadow: var(--header-shadow); }
.nav-toggle { display: none; position: absolute; top: 0; right: 0; height: 50px; min-width: 44px; padding: 0 15px; background: transparent; border: 0; color: var(--color-white); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 12px; height: 14px; fill: currentColor; }
.site-nav__list { display: flex; list-style: none; margin: 0; padding: 0; }
.site-nav__list a { display: block; padding: 0 20px; font-family: var(--font-heading); font-size: 24px; font-weight: 800; line-height: 50px; color: var(--color-white); text-decoration: none; white-space: nowrap; }
@media (max-width: 1024px) {
  .site-header__inner { align-items: flex-start; }
  .site-header__logo { flex-basis: 25%; max-width: 25%; }
  .site-header__menu { justify-content: flex-start; }
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: var(--color-menu-dropdown); }
  .site-nav.is-open { display: block; }
  .site-nav__list { flex-direction: column; }
  .site-nav__list a { display: inline-block; }
}
@media (max-width: 767px) {
  .site-header__inner { align-items: center; padding: 15px; }
  .site-header__logo, .site-header__menu { flex-basis: 50%; max-width: 50%; }
  .site-header__menu { background: var(--color-green); }
  .site-nav__list a { font-size: 16px; }
}

/* === Component: shape (Elementor "wave-brush" divider at the top/bottom edge of a section) ===
 * <div class="shape shape--top shape--green"> inline SVG </div>  (modifiers: --green, --light; default white)
 * Height via --shape-height (default 42px); fill via --shape-fill (default white).
 */
.shape { position: absolute; left: 0; width: 100%; overflow: hidden; line-height: 0; direction: ltr; pointer-events: none; z-index: 1; }
.shape svg { display: block; position: relative; left: 50%; width: calc(100% + 1.3px); max-width: none; height: var(--shape-height, 42px); transform: translateX(-50%); }
.shape path { fill: var(--shape-fill, #ffffff); }
.shape--top { top: -1px; }
.shape--green { --shape-fill: var(--color-green); }
.shape--light { --shape-fill: var(--color-bg-light); }
.shape--bottom { bottom: -1px; transform: rotate(180deg); }

/* === Component: section-title (big uppercase Montserrat heading) === */
.section-title { font-family: var(--font-heading); font-size: var(--text-h-xl); font-weight: 900; line-height: 1; text-transform: uppercase; color: var(--color-green); text-align: center; }
.section-title--left { text-align: start; }
@media (max-width: 767px) { .section-title { font-size: 2.3rem; } }

/* === Component: hero === */
.hero { position: relative; display: flex; align-items: center; min-height: 600px; background-color: #222; background-position: center; background-repeat: no-repeat; background-size: cover; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--hero-overlay); }
.hero__content { position: relative; z-index: 2; width: 100%; max-width: var(--container); margin-inline: auto; text-align: center; color: var(--color-white); }
.hero__title { font-size: var(--text-h-xl); font-weight: 900; text-transform: uppercase; color: var(--color-white); }
.hero__title a { color: inherit; text-decoration: none; }
.hero__divider { display: block; width: 200px; height: 0; margin: 10px auto 30px; border-top: 4px solid var(--color-white); }
.hero__address { margin: 0 0 20px; padding-top: 16px; font-weight: 600; font-size: 1rem; line-height: 1.5; padding-bottom: 16px; }
.hero__phone { display: inline-block; font-family: var(--font-roboto); font-size: 2rem; font-weight: 500; line-height: 1; color: var(--color-white); text-decoration: none; }
@media (max-width: 767px) {
  .hero { min-height: 400px; padding: 0 25px; }
  .hero__title { font-size: 2.2rem; }
  .hero__address { font-size: 0.9rem; padding-block: 14.4px; }
  .hero__phone { font-size: 1.5rem; }
}

/* === Component: story (About: two headings, text and a photo, centred) === */
.story { background: var(--color-bg-light); padding: 100px 0 60px; }
.story > .container { padding: var(--column-pad); }
.story__inner { padding: 40px 80px; text-align: center; }
.story__subtitle { margin-top: 40px; font-size: var(--text-h-lg); font-weight: 800; text-transform: uppercase; color: var(--color-text-story); }
.story__text { margin-top: 20px; font-size: 18px; line-height: 1.5; color: var(--color-text-story); }
.story__image { margin: 20px auto 0; }
@media (max-width: 767px) {
  .story { padding: 0; }
  .story__inner { padding: 50px 35px; }
  .story .section-title, .story__subtitle { font-size: 2.5rem; }
}

/* === Component: insta-grid (frozen Spotlight Instagram feed; GLightbox gallery) === */
.gallery-section { position: relative; padding-top: 100px; }
.gallery-section__inner { padding: var(--column-pad); }
.gallery-section .section-title { margin-bottom: var(--widget-gap); }
.insta-grid { display: grid; grid-template-columns: repeat(5, 1fr); list-style: none; margin: 0; padding: 0; }
.insta-grid__item { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: #eee; }
.insta-grid__item img { width: 100%; height: 100%; object-fit: cover; }
.insta-grid__item::after { content: ""; position: absolute; inset: 0; background: rgb(0 0 0 / 0.3); opacity: 0; transition: opacity 200ms var(--ease); }
.insta-grid__type { position: absolute; top: 10px; right: 10px; z-index: 1; width: 22px; height: 22px; fill: #fff; filter: drop-shadow(0 0 2px rgb(0 0 0 / 0.4)); }
.insta-grid__type--video { width: 18px; height: 18px; top: 12px; right: 12px; }
.insta-grid__ig { position: absolute; right: 8px; bottom: 8px; z-index: 1; width: 22px; height: 22px; fill: #fff; opacity: 0; transition: opacity 200ms var(--ease); }
.insta-grid__item:hover::after, .insta-grid__item:focus-visible::after,
.insta-grid__item:hover .insta-grid__ig, .insta-grid__item:focus-visible .insta-grid__ig { opacity: 1; }
@media (max-width: 935px) {
  .insta-grid { grid-template-columns: repeat(4, 1fr); }
  .insta-grid li:nth-child(n+13) { display: none; }
}
@media (max-width: 768px) {
  .insta-grid { grid-template-columns: repeat(3, 1fr); }
  .insta-grid li:nth-child(n+10) { display: none; }
}

/* === Component: lightbox (GLightbox look, matching the Spotlight lightbox: dark backdrop, white arrows/close) === */
.glightbox-clean .gclose, .glightbox-clean .gnext, .glightbox-clean .gprev { background-color: transparent; }
.glightbox-clean .gslide-description { display: none; }

/* === Component: menu-images (two leaflet images side by side, stacked on mobile) === */
.menu-section { padding: var(--section-pad-lg) 0; }
.menu-section__inner { padding: var(--column-pad); }
.menu-section .section-title { margin-bottom: calc(20px + var(--widget-gap)); }
.menu-images { display: grid; grid-template-columns: 1fr 1fr; }
.menu-images__item { padding: var(--column-pad); }
.menu-images__item img { width: 100%; margin-inline: auto; }
@media (max-width: 1024px) { .menu-section { padding: 50px; } }
@media (max-width: 767px) {
  .menu-section { padding: 30px; }
  .menu-images { grid-template-columns: 1fr; }
}

/* === Component: app-band (cream band with wave edges; text left, empty right column as on the original) === */
.app-band { position: relative; background: var(--color-bg-cream); padding: var(--section-pad-lg) 0; --shape-height: 60px; }
.app-band__inner { display: flex; }
.app-band__text { flex: 0 0 53.333%; max-width: 53.333%; padding-top: 50px; }
.app-band__text p { margin: 18px 0 25px; font-size: 18px; line-height: 1.5; color: var(--color-text-muted); }
@media (max-width: 1024px) { .app-band { padding: 50px; } }
@media (max-width: 767px) {
  .app-band__inner { display: block; }
  .app-band__text { max-width: none; }
}

/* === Component: site-footer (Get in Touch / Useful Links / Opening Times; id="contact") === */
.site-footer { padding: var(--section-pad-lg) 0; font-family: var(--font-body); font-size: 1rem; font-weight: 300; line-height: 1.5; color: var(--color-text); }
.site-footer__cols { display: flex; flex-wrap: wrap; }
.site-footer__col { padding: var(--column-pad); }
.site-footer__col--touch { flex: 0 0 34.386%; max-width: 34.386%; }
.site-footer__col--links { flex: 0 0 37.631%; max-width: 37.631%; }
.site-footer__col--hours { flex: 0 0 27.62%; max-width: 27.62%; }
.site-footer__title { font-size: var(--text-h-lg); font-weight: 700; text-transform: uppercase; color: var(--color-text); }
.site-footer__block { display: flow-root; margin-bottom: 30px; }
.site-footer__block p { margin: 1em 0; }
.site-footer__block p:last-child { margin-bottom: 0; }
.site-footer a { color: var(--color-text); text-decoration: none; }
.site-footer a.site-footer__tel { color: var(--color-link-default); }
.site-footer__credit a { font-weight: 500; }
.site-footer__note { margin: -20px 0 0; font-family: var(--font-roboto); font-weight: 400; line-height: normal; color: var(--color-text-muted); }
.site-footer__note { display: flow-root; }
.site-footer__note p { margin: 1em 0; }
.hours { display: flex; }
.hours__days, .hours__times { display: flow-root; margin-bottom: 30px; }
.hours__days { flex: 0 0 39.039%; max-width: 39.039%; }
.hours__times { flex: 0 0 60.903%; max-width: 60.903%; }
.hours p { margin: 1em 0 0; }
@media (max-width: 1024px) {
  .site-footer { padding: 50px; }
  .site-footer__col--touch, .site-footer__col--links { flex-basis: 50%; max-width: 50%; }
  .site-footer__col--hours { flex-basis: 100%; max-width: 100%; }
}
@media (max-width: 767px) {
  .site-footer { padding: 30px; }
  .site-footer__col--touch, .site-footer__col--links, .site-footer__col--hours { flex-basis: 100%; max-width: 100%; }
  .site-footer__title { font-size: 2.3rem; }
  .hours__days, .hours__times { flex-basis: 50%; max-width: 50%; }
}

/* === Component: contact-email (replaces WordPress forms; not used on this site: it had no forms) === */
.contact-email { display: grid; gap: 1rem; justify-items: start; }
.contact-email__address { font-weight: 600; word-break: break-word; }

/* === Component: reveal (GSAP animates these; hidden only once GSAP has loaded) === */
.reveal-ready [data-reveal] { visibility: hidden; }

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

/* === Page: / === hero backgrounds differ by width, as on the original */
.hero--home { background-image: url("/wp-content/uploads/2022/04/IMG_4498.jpeg"); }
@media (max-width: 767px) {
  .hero--home { background-image: url("/wp-content/uploads/2021/03/PHOTO-2021-03-23-10-48-53-1.jpg"); background-position: center left; }
}

/* === Page: /404.html === (added by the redirects/SEO step) */
.not-found__links { list-style: none; margin: 0; padding: 0; font-weight: 600; }
.not-found__links li { margin: 0.4em 0; }
.not-found__links a { color: var(--color-green); }

/* ============ 7. Utilities ============ */
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.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; }
}
