/*
 * site.css: the only stylesheet for noblehillchippy.co.uk (Noblehill Chippy).
 *
 * Sections, in order:
 *   1. Tokens        colours, fonts, spacing (custom properties)
 *   2. Fonts         @font-face for self-hosted fonts
 *   3. Base          reset and element defaults
 *   4. Layout        containers, rows and columns
 *   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
 *   Column widths apply from 768px up (as Elementor); below that every column is full width.
 *   The header menu collapses to a burger at <= 767px (Elementor Pro nav "dropdown: mobile").
 *
 * Editing: change tokens to restyle the site; add new components as new blocks;
 * add modifier classes (.button--x) instead of changing a component for one page.
 */

/* ============ 1. Tokens ============ */
:root {
  /* Colours (Elementor kit, post-4.css on the original) */
  --color-text: #7a7a7a;          /* body copy */
  --color-dark: #5d5d5d;          /* kickers, dotted dividers */
  --color-accent: #97c123;        /* headings, buttons, links */
  --color-bg: #f9f9f9;            /* page background */
  --color-white: #ffffff;
  --color-hero-overlay: rgb(114 114 114 / 0.57);   /* #727272 at 57% over the hero photo */
  --color-gallery-overlay: rgb(0 0 0 / 0.5);

  /* Navigation colours: INFERRED (the original Elementor Pro nav CSS was never archived; manifest d3).
     BUILD DEFAULT: change these tokens to restyle both menus and the gallery hover. */
  --nav-color: #ffffff;                       /* header menu text, on the hero photo */
  --nav-hover: var(--color-accent);           /* header menu hover/active text + double-line pointer */
  --nav-toggle-color: #ffffff;                /* burger icon */
  --nav-dropdown-bg: #ffffff;                 /* mobile dropdown */
  --nav-dropdown-color: var(--color-text);
  --nav-dropdown-active: var(--color-accent);
  --footer-nav-color: var(--color-text);      /* footer menu text */
  --footer-nav-hover: var(--color-accent);

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

  /* Spacing (Elementor: 10px column padding, 20px widget spacing, boxed widths) */
  --col-pad: 10px;
  --widget-gap: 20px;
  --container: 1140px;
  --container-narrow: 1000px;
  --section-pad: 80px;

  /* Height of the header nav row that sits at the top of the hero */
  --nav-h: 46px;

  /* Motion */
  --duration: 300ms;
  --ease: ease;
}
@media (max-width: 767px) {
  :root { --nav-h: 44px; }
}

/* ============ 2. Fonts ============ */
/* Roboto (Google Fonts, OFL), self-hosted latin variable font: covers the 400/500/600/700 weights in use. */
@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; position: relative; font-family: var(--font); font-size: 16px; line-height: normal; color: var(--color-text); background: var(--color-bg); overflow-x: clip; }
img, svg, video, iframe { max-width: 100%; }
img, video { height: auto; }
img { vertical-align: middle; border: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1; }
p { margin: 1em 0; }
a { color: var(--color-accent); text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* ============ 4. Layout ============ */
/* .container: Elementor boxed section (1140px, or 1000px with --narrow), 10px column padding inside. */
.container { width: min(100%, var(--container)); margin-inline: auto; padding: var(--col-pad); }
.container--narrow { width: min(100%, var(--container-narrow)); }
.section { padding-block: var(--section-pad); }

/* .row: Elementor inner section; columns carry 10px padding. Widths apply from 768px. */
.row { display: flex; flex-wrap: wrap; }
.row > .col { width: 100%; padding: var(--col-pad); }
.col--center { display: flex; flex-direction: column; justify-content: center; }
.row--spaced { margin-bottom: var(--widget-gap); }
@media (min-width: 768px) {
  .row { flex-wrap: nowrap; }
  .col--35 { width: 35% !important; }
  .col--29 { width: 29.545% !important; }
  .col--50 { width: 50% !important; }
  .col--60 { width: 60% !important; }
  .col--40 { width: 39.95% !important; }
  .col--70 { width: 69.898% !important; }
  .col--30 { width: 30.052% !important; }
}
/* Columns that are 50% at every width (hero buttons) */
.row--halves { flex-wrap: nowrap; }
.row--halves > .col { width: 50%; }

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

/* === Component: button (Elementor button: Roboto 500, 12px 24px, 3px solid border) ===
   .button--light: white outline on the hero; .button--solid: green fill; default: green outline.
   .button--small: 12px text (About / Menu); .button--hero: 15px, 18px on mobile, square corners. */
.button { display: inline-block; padding: 12px 24px; border: 3px solid var(--color-accent); border-radius: 3px; background: transparent; color: var(--color-accent); font-family: var(--font); font-size: 15px; font-weight: 500; line-height: 1; text-align: center; text-decoration: none; cursor: pointer; transition: all var(--duration) var(--ease); }
.button--small { font-size: 12px; }
.button--hero { border-radius: 0; }
.button--light { border-color: var(--color-white); color: var(--color-white); }
.button--solid { background: var(--color-accent); color: var(--color-white); }
@media (max-width: 767px) {
  .button--hero { font-size: 18px; }
}

/* === Component: button-group (Elementor Extras button group: 1px border, 12px gap) === */
.button-group { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; margin: 0; padding: 0; }
.button-group .button { border-width: 1px; transition-duration: 0.2s; transition-timing-function: ease-in-out; }

/* === Component: site-header (restored Elementor Pro nav, at the top of the hero; manifest d1) ===
   Sits 50px from the top (10px column padding + 20px spacer + 20px widget gap), centred.
   The hero reserves its height (--nav-h). */
.site-header { position: absolute; z-index: 20; top: 50px; left: 0; right: 0; }
.site-header__inner { position: relative; width: min(100%, var(--container-narrow)); margin-inline: auto; padding-inline: var(--col-pad); text-align: center; }

/* === Component: site-nav (horizontal, centred, double-line pointer; burger + full-width dropdown <= 767px) === */
.nav-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 3px; background: none; color: var(--nav-toggle-color); cursor: pointer; }
.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 { position: relative; display: block; padding: 13px 20px; color: var(--nav-color); font-family: var(--font); font-size: 15px; font-weight: 500; line-height: 20px; text-decoration: none; transition: color var(--duration) var(--ease); }
.site-nav a::before, .site-nav a::after { content: ""; position: absolute; left: 0; right: 0; height: 3px; background: var(--nav-hover); opacity: 0; transition: opacity var(--duration) var(--ease); }
.site-nav a::before { top: 0; }
.site-nav a::after { bottom: 0; }
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a.is-active { color: var(--nav-hover); }
.site-nav a:hover::before, .site-nav a:hover::after,
.site-nav a:focus-visible::before, .site-nav a:focus-visible::after,
.site-nav a.is-active::before, .site-nav a.is-active::after { opacity: 1; }
@media (max-width: 767px) {
  .site-header__inner { position: static; }
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; z-index: 30; left: 0; right: 0; top: 100%; display: grid; grid-template-rows: 0fr; align-items: stretch; background: var(--nav-dropdown-bg); box-shadow: 0 6px 18px rgb(0 0 0 / 0.15); 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), visibility 0s; }
  .site-nav__list { display: block; overflow: hidden; min-height: 0; }
  .site-nav a { padding: 12px 20px; min-height: 44px; color: var(--nav-dropdown-color); }
  .site-nav a::before, .site-nav a::after { display: none; }
  .site-nav a:hover, .site-nav a:focus-visible, .site-nav a.is-active { color: var(--nav-dropdown-active); }
}

/* === Component: hero (Picture2.jpg + grey overlay; logo, tagline, two buttons) ===
   Vertical rhythm copied from the original Elementor spacers: 10 + 20 + 20, nav, 20 + 50 + 20, logo... 100 + 10. */
.hero { position: relative; background-color: #555555; background-position: center center; background-size: cover; background-repeat: no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--color-hero-overlay); }
.hero__inner { position: relative; width: min(100%, var(--container-narrow)); margin-inline: auto; padding: calc(var(--col-pad) + 20px + var(--widget-gap) + var(--nav-h) + var(--widget-gap) + 50px + var(--widget-gap)) var(--col-pad) calc(100px + var(--col-pad)); text-align: center; }
.hero__logo { width: 644px; }
.hero__tagline { margin-top: var(--widget-gap); font-family: var(--font); font-size: 24px; font-weight: 400; line-height: 1; color: var(--color-white); text-transform: capitalize; }
.hero__actions { margin-top: calc(var(--widget-gap) + 50px + var(--widget-gap)); }
.hero__actions > .col:first-child { text-align: right; }
.hero__actions > .col:last-child { text-align: left; }

/* === Component: section-heading (dotted divider | kicker | dotted divider, big green title, full dotted divider) === */
.section-heading { text-align: center; }
.section-heading__kicker-row { align-items: stretch; }
.kicker { font-family: var(--font); font-size: 16px; font-weight: 600; line-height: 1; color: var(--color-dark); text-align: center; }
.section-title { padding-inline: var(--col-pad); margin-bottom: var(--widget-gap); font-family: var(--font); font-size: 52px; font-weight: 600; line-height: 1; color: var(--color-accent); text-align: center; }
@media (max-width: 767px) {
  .section-title--app { font-size: 40px; }
}

/* === Component: divider (Elementor divider: 1px dotted #5D5D5D, 15px above and below) === */
.divider { padding-block: 15px; }
.divider::before { content: ""; display: block; border-top: 1px dotted var(--color-dark); }
.divider--wide { margin-inline: 0; margin-bottom: var(--widget-gap); }
.divider--wide.divider--inset { margin-inline: var(--col-pad); }

/* === Component: about (story text + restored family gallery) === */
.about__text { font-size: 20px; }
@media (min-width: 1025px) {
  .about__text-col { width: 81.249% !important; }
  .about__gallery-col { width: 18.707% !important; }
}
@media (max-width: 1024px) {
  .about__row { flex-wrap: wrap !important; }
  .about__gallery-col { padding: 0 10px 20px 10px !important; }
}
@media (max-width: 767px) {
  .about__text { font-size: 14px; text-align: center; }
}

/* === Component: gallery (restored Elementor Pro gallery: 1:1 crops, 1 column desktop, 3 columns <= 1024; lightbox; manifest d2) === */
.gallery { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; list-style: none; margin: 0; padding: 0; }
.gallery__item { position: relative; display: block; overflow: hidden; aspect-ratio: 1 / 1; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.gallery__item::after { content: ""; position: absolute; inset: 0; background: var(--color-gallery-overlay); opacity: 0; transition: opacity 800ms var(--ease); }
.gallery__item:hover::after, .gallery__item:focus-visible::after { opacity: 1; }
@media (max-width: 1024px) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
}

/* === Component: centre-button row (dotted divider | button | dotted divider) === */
.button-row { align-items: center; }
.button-row > .col--29 { text-align: center; }

/* === Component: photo-band (full-width background photo, 460px high: shopfront) === */
.photo-band { min-height: 460px; background-color: #333333; background-position: top center; background-size: cover; background-repeat: no-repeat; }

/* === Component: dish (menu item: title + text, then a 150px rounded thumbnail) === */
.dish__title { margin-bottom: var(--widget-gap); font-family: var(--font); font-size: 18px; font-weight: 500; line-height: 1; color: var(--color-accent); }
.dish__text { font-size: 16px; }
.dish__text p { margin: 1em 0; }
.dish__image-col { text-align: center; }
.dish__image { width: 150px; border-radius: 20px; }
@media (min-width: 768px) {
  .dishes > .col:nth-child(1) { width: 29.911% !important; }
  .dishes > .col:nth-child(2) { width: 20.022% !important; }
  .dishes > .col:nth-child(3) { width: 30% !important; }
  .dishes > .col:nth-child(4) { width: 19.972% !important; }
}
.menu-actions { padding-top: 10px; }

/* === Component: photo-pair (two full-bleed photos side by side; stacked on mobile) === */
.photo-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.photo-pair img { width: 100%; }
@media (max-width: 767px) {
  .photo-pair { grid-template-columns: minmax(0, 1fr); }
}

/* === Component: app (white band: intro text + button group, phone mock-up) === */
.app { background: var(--color-white); }
.app__text { display: flow-root; margin-bottom: var(--widget-gap); font-size: 24px; }
.app__phone-col { text-align: center; }
.app__phone { width: 214px; }

/* === Component: map (keyless Google Maps iframe, 445px high like the Elementor widget; manifest d4) === */
.map-section { padding: var(--col-pad); }
.map { display: block; width: 100%; height: 445px; border: 0; }

/* === Component: site-footer (restored footer menu + phone, divider, copyright + Powered by OrderYOYO) === */
.site-footer { padding-block: 50px; }
.site-footer__row { align-items: stretch; }
.site-footer__phone { margin: 16px 0; font-weight: 600; text-align: right; }
.site-footer__copy { margin: 0; font-size: 16px; }
.site-footer__credit { margin: 16px 0; text-align: right; }
.site-footer__credit a { color: var(--color-accent); }
.footer-nav__list { display: flex; flex-wrap: wrap; justify-content: flex-start; list-style: none; margin: 0; padding: 0; }
.footer-nav a { display: block; padding: 13px 20px; color: var(--footer-nav-color); font-family: var(--font); font-size: 15px; font-weight: 500; line-height: 20px; text-decoration: none; transition: color var(--duration) var(--ease); }
.footer-nav a:hover, .footer-nav a:focus-visible, .footer-nav a.is-active { color: var(--footer-nav-hover); }
@media (max-width: 767px) {
  .footer-nav { display: none; }
  .site-footer__phone, .site-footer__copy, .site-footer__credit { text-align: center; }
}

/* === Component: contact-email (replaces WordPress forms; unused: the original has no forms) === */
.contact-email { display: grid; gap: 1rem; justify-items: center; text-align: center; }
.contact-email__address { font-weight: 600; word-break: break-word; }

/* === Component: error-page (404, inside the hero) === */
.error-page__title { margin-top: var(--widget-gap); font-size: 52px; font-weight: 600; line-height: 1; color: var(--color-white); }
.error-page__text { margin: var(--widget-gap) auto 0; max-width: 32em; font-size: 20px; color: var(--color-white); }

/* === Component: reveal / popup (starter site.js hooks; unused on this site) === */
.reveal-ready [data-reveal] { visibility: hidden; }

/* ============ 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; }
  [data-reveal] { visibility: visible !important; }
}
