/*
 * site.css: the only stylesheet for pizzashackgarvagh.co.uk.
 *
 * 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        container
 *   5. Components    one block per component: "=== Component: <name> ==="
 *   6. Pages         page-specific rules
 *   7. Utilities     a handful of helpers
 *
 * Breakpoints (the original's Elementor breakpoints; media queries can't use custom properties):
 *   mobile  <= 767px    tablet 768px-1024px    desktop >= 1025px
 *
 * Values come from the original Elementor CSS (post-13.css, kept in design-system/_src/).
 * Editing: change tokens to restyle the site; add new components as new blocks.
 */

/* ============ 1. Tokens ============ */
:root {
  /* Colours */
  --color-page: #121212;            /* page background */
  --color-yellow: #fbb334;          /* buttons, menu toggle, gallery frames */
  --color-red: #d20909;             /* "Download Our App" button */
  --color-white: #ffffff;           /* headings and copy */
  --color-black: #000000;           /* text on yellow buttons, ORDER NOW border */
  --color-nav-hover: #b4b4b4;       /* menu hover / current section */
  --color-dropdown-text: #33373d;   /* mobile/tablet dropdown items */
  --color-dropdown-hover: #3f444b;  /* dropdown item hover background */
  --color-divider: #ffc57b;         /* footer divider line */

  /* Typography */
  --font-body: "Roboto", Arial, sans-serif;
  --font-brand: "Poppins", Arial, sans-serif;   /* footer "Company" heading and copyright line */

  /* Layout */
  --container: 1280px;              /* Elementor boxed width (desktop) */
  --gutter: 30px;                   /* section side padding */
  --col-pad: 10px;                  /* Elementor column padding */

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

/* ============ 2. Fonts ============ */
/* Roboto (Google Fonts, OFL), variable latin file as the original served it: everything except the two Poppins lines */
@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; }
/* Poppins (Google Fonts, OFL): 200 copyright line, 400 its bold part, 700 "Company" heading */
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-200-latin.woff2") format("woff2"); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-400-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-700-latin.woff2") format("woff2"); font-weight: 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%; }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: normal; color: var(--color-white); background: var(--color-page); }
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: 1em 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--color-yellow); outline-offset: 2px; }
main { display: block; }

/* ============ 4. Layout ============ */
/* .container = Elementor boxed container (1280 / 1024 / 767) with the 10px column padding inside */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding: var(--col-pad); }
@media (max-width: 1024px) {
  .container { max-width: 1024px; }
}
@media (max-width: 767px) {
  .container { max-width: 767px; }
}

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

/* === Component: skip-link === */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; padding: 0.5rem 1rem; background: var(--color-yellow); color: var(--color-black); }
.skip-link:focus { left: 1rem; }

/* === Component: site-header ===
 * Dark bar: logo | centred menu | ORDER NOW. Not sticky (as the original).
 * Tablet and mobile (<= 1024): menu becomes a yellow toggle with a white in-flow dropdown. Mobile: stacked. */
.site-header { position: relative; z-index: 99; padding: 25px var(--gutter); }
.site-header__inner { display: flex; align-items: flex-start; max-width: var(--container); margin-inline: auto; }
.site-header__logo { width: 15.436%; padding: var(--col-pad); }
.site-header__logo img { width: 100%; }
.site-header__menu { width: 68.439%; padding: var(--col-pad); align-self: center; display: flex; flex-direction: column; align-items: center; }
.site-header__cta { width: 15.789%; padding: var(--col-pad); align-self: center; display: flex; justify-content: flex-end; }

/* nav (desktop: horizontal list; hover and current section turn grey) */
.site-nav { width: 100%; }
.site-nav__list { display: flex; flex-wrap: wrap; justify-content: center; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 13px 20px; font-family: var(--font-body); font-size: 20px; font-weight: 600; line-height: 20px; color: var(--color-white); transition: color 0.4s, background-color 0.4s; }
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a.is-active { color: var(--color-nav-hover); }

/* menu toggle (tablet and mobile) */
.nav-toggle { display: none; align-items: center; justify-content: center; width: 33px; height: 33px; padding: 0; margin-bottom: 10px; border: 0; border-radius: 3px; background: var(--color-yellow); color: var(--color-white); cursor: pointer; }
.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; }

@media (max-width: 1024px) {
  .site-header__inner { max-width: 1024px; }
  .site-header__logo { width: 25%; }
  .site-header__menu { width: 50%; }
  .site-header__cta { width: 24%; }
  .nav-toggle { display: inline-flex; }
  /* white dropdown in the page flow under the toggle (pushes content down); slides open (grid 0fr -> 1fr) */
  .site-nav { display: grid; grid-template-rows: 0fr; align-items: stretch; visibility: hidden; background: var(--color-white); 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__clip { overflow: hidden; min-height: 0; }
  .site-nav__list { display: block; }
  .site-nav a { padding: 10px 20px; color: var(--color-dropdown-text); transition: none; }
  .site-nav a.is-active { color: var(--color-dropdown-text); }
  .site-nav a:hover, .site-nav a:focus-visible { color: var(--color-white); background-color: var(--color-dropdown-hover); }
}
@media (max-width: 767px) {
  .site-header__inner { flex-direction: column; max-width: 767px; }
  .site-header__logo, .site-header__menu, .site-header__cta { width: 100%; }
}

/* === Component: button === */
.button { display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-body); font-weight: 500; line-height: 1; text-align: center; cursor: pointer; transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out; }
/* header ORDER NOW: yellow, 2px black border */
.button--header { padding: 12px 24px; font-size: 20px; color: var(--color-black); background: var(--color-yellow); border: 2px solid var(--color-black); border-radius: 3px; }
/* rounded pills in the hero and app sections */
.button--pill { padding: 12px 24px; font-size: 20px; color: var(--color-black); background: var(--color-yellow); border-radius: 8px; }
.button--red { color: var(--color-white); background: var(--color-red); }
/* hero Delivery / Collection: bigger text, label at least 150px wide */
.button--hero { font-size: 30px; min-width: 198px; }
@media (max-width: 1024px) {
  .button--header { font-size: 16px; }
  .button--hero { font-size: 20px; }
}

/* === Component: button-group (row of pill buttons that wraps when narrow) === */
.button-group { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; gap: 20px; }
.button-group--center { justify-content: center; gap: 0 12px; }
@media (max-width: 1024px) {
  .button-group { gap: 21px; }
  .button-group--center { gap: 0 12px; }
}

/* === Component: section-heading (white Roboto 600) === */
.section-heading { font-size: 60px; font-weight: 600; line-height: 1; color: var(--color-white); }

/* === Component: hero (full-height food photo, "Welcome To", big logo, Delivery / Collection) === */
.hero { display: flex; align-items: center; min-height: 100vh; padding: 0 var(--gutter); background-image: url("/wp-content/uploads/2023/05/AdobeStock_284468940-1-2.jpg"); background-position: center center; background-repeat: no-repeat; background-size: 100% auto; }
.hero > .container { text-align: center; }
.hero__title { font-size: 100px; font-weight: 600; line-height: 1; color: var(--color-white); }
.hero__logo img { margin-inline: auto; }
@media (max-width: 1024px) {
  .hero__title { font-size: 62px; }
  .hero__logo img { width: 80%; }
}

/* === Component: gallery (3 / 2 / 1 columns, 10px yellow frame; GLightbox slideshow) === */
.food { margin: 120px 0; padding: 0 var(--gutter); }
.food .section-heading { text-align: center; margin-bottom: 29px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 15px 15px 39px; }
.gallery a { display: block; border: 10px solid var(--color-yellow); background: var(--color-yellow); }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (max-width: 1024px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .gallery { grid-template-columns: 1fr; }
}
/* GLightbox: dark backdrop like the original's Elementor lightbox */
.goverlay { background: rgb(0 0 0 / 0.85); }
/* photo title (file name, as the original) in small white text under the photo, no white box */
.glightbox-clean .gslide-description { background: transparent; }
.glightbox-clean .gdesc-inner { padding: 10px 0; text-align: center; }
.glightbox-clean .gslide-title { margin: 0; font-family: var(--font-body); font-size: 14px; font-weight: 400; color: var(--color-white); }
.glightbox-mobile .glightbox-container .gslide-title { color: var(--color-white); }

/* === Component: app-promo (Download Our App text + buttons, phone image; photo background) === */
.app-promo { padding: 120px var(--gutter); background-image: url("/wp-content/uploads/2023/05/AdobeStock_143830808-1-2-scaled.jpg"); background-position: center center; background-repeat: no-repeat; background-size: cover; }
.app-promo__inner { display: flex; max-width: var(--container); margin-inline: auto; }
.app-promo__text, .app-promo__image { width: 50%; padding: var(--col-pad); }
.app-promo__text { display: flex; flex-direction: column; justify-content: center; }
.app-promo__text p { margin: 1em 0; font-size: 20px; line-height: normal; }
.app-promo__image img { margin-inline: auto; }
@media (max-width: 1024px) {
  .app-promo__inner { max-width: 1024px; }
  .app-promo .section-heading { font-size: 39px; }
  .app-promo__text p { font-size: 16px; }
}
@media (max-width: 767px) {
  .app-promo__inner { flex-direction: column; max-width: 767px; }
  .app-promo__text, .app-promo__image { width: 100%; }
}

/* === Component: app-badges (Google Play / App Store image link) === */
.app-badges { display: block; width: max-content; }
.app-badges img { width: 118px; }

/* === Component: site-footer (4 columns; doubles as the #contact section) === */
.site-footer { margin: 140px 0; padding: 0 var(--gutter); }
.site-footer__inner { max-width: var(--container); margin-inline: auto; padding: var(--col-pad); }
.site-footer__cols { display: flex; }
.site-footer__col { width: 25%; padding: var(--col-pad); }
.site-footer__heading { font-family: var(--font-body); font-size: 24px; font-weight: 600; line-height: 1; color: var(--color-white); }
.site-footer__heading--brand { font-family: var(--font-brand); font-weight: 700; }
.site-footer__links { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 20px; }
.site-footer__links li { height: 18px; font-size: 16px; line-height: 18px; }
.site-footer__links a { display: inline-block; font-size: 16px; line-height: 1; color: var(--color-white); transition: color 0.3s; }
.site-footer__text { padding-top: 10px; font-size: 16px; line-height: normal; }
.site-footer__text p { margin: 16px 0; }
.site-footer__col--app .app-badges { margin-top: 16px; }
.site-footer__divider { width: 90%; margin: 40px 0 15px; border: 0; border-top: 1px solid var(--color-divider); }
.site-footer__copyright { margin: 0; font-family: var(--font-brand); font-size: 24px; font-weight: 200; line-height: 1; }
.site-footer__copyright strong { font-weight: 400; }
.site-footer__copyright a { color: inherit; }
@media (max-width: 1024px) {
  .site-footer__heading { font-size: 16px; }
  .site-footer__links a { font-size: 12px; }
  .site-footer__text { font-size: 12px; }
  .site-footer__text p { margin: 12px 0; }
  .site-footer__col--app .app-badges { margin-top: 25px; }
  .site-footer__divider { margin-inline: auto; }
  .site-footer__copyright { text-align: center; }
}
@media (max-width: 767px) {
  .site-footer { margin: 50px 0; }
  .site-footer__cols { flex-direction: column; }
  .site-footer__col { width: 100%; }
  .site-footer__copyright { font-size: 16px; }
}

/* === Component: not-found (404 page) === */
.not-found { padding: 120px var(--gutter); text-align: center; }
.not-found p { font-size: 20px; }
.not-found .button-group { margin-top: 40px; gap: 12px; }

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