/*
 * site.css: the only stylesheet for peckish-deal.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 (Hello Elementor reset values)
 *   4. Layout        container, sections, stacks, spacers, columns
 *   5. Components    one block per component: "=== Component: <name> ==="
 *   6. Pages         rare page-specific rules: "=== Page: <path> ==="
 *   7. Utilities     a handful of helpers
 *
 * Breakpoints (the original Elementor breakpoints; media queries can't use custom properties):
 *   mobile  ≤ 767px    tablet 768px–1024px    desktop ≥ 1025px
 *   The burger menu shows at ≤ 1024px (Elementor "dropdown: tablet").
 *
 * Layout model (copied from the original Elementor page): a 1140px boxed container with
 * 10px column padding (so content is 1120px wide at desktop), and 20px between stacked
 * blocks (Elementor's widget spacing). Spacer blocks keep the original vertical rhythm.
 *
 * Editing: change tokens to restyle the site; add new components as new blocks;
 * add modifier classes (.text--event) instead of changing a component for one page.
 */

/* ============ 1. Tokens ============ */
:root {
  /* Colours (from the original Elementor kit and computed styles) */
  --color-black: #000000;          /* header, footer, headings */
  --color-white: #ffffff;
  --color-text: #7a7a7a;           /* body copy (Elementor global "text") */
  --color-text-dark: #0c0c0c;      /* Event Catering copy */
  --color-title: #181818;          /* Offers sub-titles */
  --color-accent: #f07f15;         /* nav hover / current item, menu toggle hover */
  --color-phone: #ff6600;          /* phone number on the home page */
  --color-menu-active-bg: #3f444b; /* current / hovered item in the mobile dropdown */
  --color-link: #cc3366;           /* in-text links (Hello Elementor default) */
  --color-link-hover: #333366;
  --color-overlay: rgb(0 0 0 / 0.5); /* hero image overlay */

  /* Typography */
  --font-body: "Roboto", -apple-system, "Segoe UI", Arial, sans-serif;
  --font-heading: "Roboto", -apple-system, "Segoe UI", Arial, sans-serif;
  --font-serif: "Roboto Slab", Georgia, serif;          /* hero description */
  --font-event: "Montserrat", -apple-system, "Segoe UI", Arial, sans-serif; /* Event Catering page */
  --text-base: 16px;
  --leading: 1.5;

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

  /* Motion (match the original's timings) */
  --duration-nav: 0.4s;     /* nav link colour */
  --duration: 0.3s;         /* buttons, social icons, dropdown slide */
  --ease: ease;
}

/* ============ 2. Fonts ============ */
/* Google Fonts, self-hosted (latin subset, variable weight files). */
@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; }
@font-face { font-family: "Roboto Slab"; src: url("/assets/fonts/roboto-slab-latin-variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@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; }

/* ============ 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: #333333; background: var(--color-white); -webkit-font-smoothing: antialiased; }
img, svg, video, iframe { max-width: 100%; }
img, video { height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-heading); margin: 0.5rem 0 1rem; font-weight: 500; line-height: 1.2; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
p { margin: 0 0 0.9rem; }
a { color: var(--color-link); text-decoration: none; }
a:hover { color: var(--color-link-hover); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* ============ 4. Layout ============ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding: var(--column-pad); }
@media (max-width: 1024px) { .container { max-width: 1024px; } }
/* Stack: blocks inside a column, 20px apart (Elementor widget spacing) */
.stack > * { margin-top: 0; margin-bottom: 0; }
.stack > * + * { margin-top: var(--widget-gap); }
/* Spacer: an empty block of the original's height (Elementor spacer widget) */
.spacer { height: var(--spacer, 50px); }
.spacer--40 { --spacer: 40px; }
.spacer--81 { --spacer: 81px; }
/* Two columns from 768px up, stacked below (Elementor 50/50 section) */
.columns { display: grid; grid-template-columns: 1fr; padding: 0; }
.columns > .column { padding: var(--column-pad); min-width: 0; }
@media (min-width: 768px) { .columns { grid-template-columns: 1fr 1fr; } }
.columns { width: 100%; max-width: var(--container); margin-inline: auto; }
@media (max-width: 1024px) { .columns { max-width: 1024px; } }

/* ============ 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 ===
 * Black bar, not sticky. Desktop: nav (69.4% column) + social icons (30.6% column).
 * ≤1024: burger centred in the left column, dropdown full width under the header (overlays content).
 * ≤767: burger and social icons stacked, both centred.
 */
.site-header { position: relative; z-index: 50; background: var(--color-black); }
.site-header__inner { display: flex; align-items: center; max-width: var(--container); margin-inline: auto; }
.site-header__nav-col { width: 69.386%; padding: var(--column-pad); display: flex; align-items: center; }
.site-header__social-col { width: 30.57%; padding: var(--column-pad); display: flex; justify-content: center; }
@media (max-width: 1024px) { .site-header__inner { max-width: 1024px; } .site-header__nav-col { justify-content: center; } }
@media (max-width: 767px) {
  .site-header__inner { flex-direction: column; }
  .site-header__nav-col, .site-header__social-col { width: 100%; }
}

/* Menu toggle (burger / close), shown at ≤1024 */
.nav-toggle { display: none; align-items: center; justify-content: center; width: 33px; height: 33px; padding: 5.5px; margin: 0 auto; border: 0; border-radius: var(--radius-button); background: rgb(0 0 0 / 0.05); color: var(--color-white); cursor: pointer; position: relative; }
.nav-toggle::after { content: ""; position: absolute; inset: -6px; } /* 45px tap area, same look */
.nav-toggle:hover, .nav-toggle:focus { color: var(--color-accent); }
.nav-toggle svg { width: 22px; height: 22px; display: block; }
.nav-toggle__close { display: none !important; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none !important; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block !important; }

/* Main navigation */
.site-nav__list { display: flex; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 13px 20px; font-family: var(--font-heading); font-size: 16px; font-weight: 600; line-height: 20px; color: var(--color-white); text-decoration: none; transition: color var(--duration-nav), background-color var(--duration-nav); }
.site-nav a:hover, .site-nav a:focus, .site-nav a[aria-current="page"] { color: var(--color-accent); }

@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
  /* Dropdown: slides down over the content (grid 0fr → 1fr; nav stretches so the list is clipped while it animates) */
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; display: grid; grid-template-rows: 0fr; align-items: stretch; background: var(--color-black); 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 linear 0s; }
  .site-nav__list { flex-direction: column; min-height: 0; overflow: hidden; }
  .site-nav a { padding: 10px 20px; font-size: 13px; font-weight: 500; text-align: center; }
  .site-nav a:hover, .site-nav a:focus, .site-nav a[aria-current="page"] { color: var(--color-accent); background-color: var(--color-menu-active-bg); }
}
@media (max-width: 767px) {
  .site-nav { top: calc(100% - 2px); }
  .site-nav a { padding: 19px 20px; }
}

/* === Component: social-icons === white circles with black brand glyphs */
.social-icons { display: flex; gap: 5px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 767px) { .social-icons { gap: 10px; } }
.social-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--color-white); color: var(--color-black); transition: opacity var(--duration); }
.social-icon::after { content: ""; position: absolute; inset: -8px; } /* 44px tap area, same look */
.social-icon:hover, .social-icon:focus { color: var(--color-black); opacity: 0.9; }
.social-icon svg { width: 14px; height: 14px; fill: currentColor; }

/* === Component: site-footer === black bar, one centred line */
.site-footer { background: var(--color-black); }
.site-footer__text { margin: 0; text-align: center; font-family: var(--font-body); font-size: 16px; font-weight: 400; line-height: 24px; color: var(--color-white); }
.site-footer__text a { color: inherit; text-decoration: none; }
.site-footer__text a:hover, .site-footer__text a:focus { color: var(--color-accent); }
@media (max-width: 767px) { .site-footer__text { font-size: 11px; line-height: 16.5px; } }

/* === Component: page-logo === the centred Peckish logo at the top of every page (250×97, not linked) */
.page-logo { display: flex; justify-content: center; }
.page-logo img { width: 250px; height: auto; }

/* === Component: page-heading === big centred black heading (About) */
.page-heading { text-align: center; font-family: var(--font-heading); font-size: 45px; font-weight: 600; line-height: 1; color: var(--color-black); }

/* === Component: text === centred grey body copy (Elementor text editor) */
.text { display: flow-root; font-family: var(--font-body); font-size: 16px; font-weight: 400; line-height: 24px; color: var(--color-text); }
.text--center { text-align: center; }
/* Sub-title inside copy (Offers: "Loyalty", "20% Off First Orders!") */
.text__title { font-size: 28px; font-weight: 400; line-height: 1.5; color: var(--color-title); }
/* Event Catering copy: Montserrat, darker, with Hello Elementor h2s */
.text--event { font-family: var(--font-event); line-height: 26px; letter-spacing: 0.1px; color: var(--color-text-dark); }
.text--event h2 { font-family: var(--font-event); font-size: 2rem; font-weight: 500; line-height: 1.2; margin: 0.5rem 0 1rem; color: var(--color-text-dark); }

/* === Component: hero === one static slide: cover image, 50% black overlay, centred text + outlined button */
.hero { position: relative; display: flex; align-items: center; justify-content: center; height: 577px; padding: 50px; overflow: hidden; background-color: #000; background-size: cover; background-position: center; text-align: center; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--color-overlay); }
.hero__content { position: relative; max-width: 66%; color: var(--color-white); }
.hero__title { margin: 0 0 30px; font-family: var(--font-heading); font-size: 35px; font-weight: 700; line-height: 1; color: var(--color-white); }
.hero__text { margin: 0 0 30px; font-family: var(--font-serif); font-size: 17px; font-weight: 400; line-height: 1.4; color: var(--color-white); }
@media (max-width: 767px) {
  .hero { padding: 30px; }
  .hero__title { font-size: 23px; }
  .hero__text { font-size: 13px; }
}

/* === Component: button === outlined white button (hero "ORDER NOW") */
.button { display: inline-block; padding: 12px 24px; border: 2px solid var(--color-white); border-radius: var(--radius-button); background: transparent; color: var(--color-white); font-family: var(--font-body); font-size: 15px; font-weight: 500; line-height: 1; text-decoration: none; cursor: pointer; transition: all var(--duration); }
.button:hover, .button:focus { color: var(--color-white); }

/* === Component: contact-details === home "Contact us" block: black h3, large address lines, phone in orange */
.contact-details__title { font-family: var(--font-heading); font-size: 28px; font-weight: 600; line-height: 1; color: var(--color-black); }
.contact-details__text { font-family: var(--font-body); font-size: 24px; font-weight: 400; line-height: 36px; color: var(--color-black); }
.contact-details__text p { margin: 0 0 0.9rem; }
.contact-details__phone { color: var(--color-phone); }

/* === Component: map === keyless Google Maps iframe, column width × 300px */
.map { display: block; width: 100%; height: 300px; border: 0; }

/* === Component: gallery === WordPress thumbnail gallery: 4 columns of 150px thumbnails (1 column ≤767); GLightbox opens a.glightbox */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; }
.gallery__item { margin: 0; text-align: center; }
.gallery__item a { display: block; }
.gallery__item img { width: 150px; height: 150px; margin-inline: auto; }
@media (max-width: 767px) { .gallery { grid-template-columns: 1fr; } }
/* GLightbox: dark see-through overlay and bold centred title, like the original Elementor lightbox */
.glightbox-clean .gslide-description { background: transparent; }
.glightbox-clean .gslide-title { color: var(--color-white); font-family: var(--font-body); font-size: 16px; font-weight: 700; margin: 0; text-align: center; }
.glightbox-clean .gdesc-inner { padding: 10px 0; }
.glightbox-container .goverlay { background: rgb(0 0 0 / 0.7); }

/* === Component: image === a centred content image (Offers "Vacancies", 480×480) */
.content-image { display: flex; justify-content: center; }
.content-image img { width: 480px; max-width: 100%; height: auto; }

/* === Component: contact-email (replaces WordPress forms: a mailto button + visible address) ===
 * Not used on this site (the Contact Form 7 form was inactive and never shown); kept for future use.
 */
.contact-email { display: grid; gap: 1rem; justify-items: center; text-align: center; }
.contact-email .button { border-color: var(--color-black); color: var(--color-black); }
.contact-email .button:hover { color: var(--color-accent); border-color: var(--color-accent); }
.contact-email__address { font-weight: 600; word-break: break-word; color: var(--color-black); }
.contact-email__phone a { color: inherit; }

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

/* === Component: popup (not used on this site) === */
.popup { border: 0; border-radius: var(--radius-button); padding: 2rem; max-width: min(90vw, 600px); }
.popup::backdrop { background: rgb(0 0 0 / 0.6); }

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

/* === Page: / === */
.home-contact { padding-bottom: 0; }

/* === Page: /event-catering/ === logo block sits 26px lower and close to the heading (original quirk) */
.event-intro { margin-top: 26px; padding: var(--column-pad); }
.event-gallery { margin-block: 26px; }

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