/*
 * site.css: the only stylesheet for ghostpizzapies.com.
 *
 * 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, sections, 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's, from the original; media queries can't use custom properties):
 *   mobile  <= 767px    tablet 768px-1024px    desktop >= 1025px
 *   The header switches to the burger menu at <= 1024px; columns stack at <= 767px.
 *
 * Values were read from the original's computed styles (design-system/tokens.json).
 */

/* ============ 1. Tokens ============ */
:root {
  /* Colours */
  --color-black: #000000;
  --color-white: #ffffff;
  --color-text: #000000;
  --color-text-muted: #7a7a7a;     /* contact panel text */
  --color-nav-hover: #595959;
  --color-dark: #242424;           /* app section */
  --color-light: #f0f0f0;          /* menu section */
  --color-panel: #dbdbdb;          /* contact panel */
  --color-green: #29d112;          /* about band left */
  --color-red: #e90303;            /* about band right */
  --color-button-grey: #515151;
  --color-button-grey-border: #b6b6b6;
  --color-dropdown-text: #33373d;
  --color-dropdown-hover-bg: #55595c;
  --color-facebook: #3b5998;
  --color-twitter: #1da1f2;
  --color-instagram: #262626;

  /* Typography */
  --font-poppins: "Poppins", sans-serif;      /* fallback as the original ("Sans-serif"), e.g. for the → arrows */
  --font-roboto: "Roboto", sans-serif;
  --text-display: 70px;            /* section headings (Authentic, Prepared, App, Contact) */
  --text-hero: 60px;               /* hero + Our Menu */
  --text-lead: 24px;               /* app text, About heading */
  --text-panel-heading: 18px;
  --text-base: 16px;
  --text-button: 15px;

  /* Spacing and shape */
  --container: 1140px;
  --gutter: 10px;                  /* Elementor "default" column gap (each side) */
  --widget-gap: 20px;              /* space between stacked widgets */
  --radius-pill: 25px;
  --header-rule: 5px;

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

/* ============ 2. Fonts ============ */
/* Self-hosted Google Fonts (latin subset). Roboto is the variable font covering 300-600. */
@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: "Roboto"; src: url("/assets/fonts/roboto-variable-latin.woff2") format("woff2"); font-weight: 300 600; 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-roboto); font-size: var(--text-base); line-height: normal; color: var(--color-text); background: var(--color-white); }
img, svg, video, iframe { max-width: 100%; }
img, video { height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1; }
p { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
ul { margin: 0; padding: 0; list-style: none; }

/* ============ 4. Layout ============ */
/* Boxed content width, as Elementor's boxed sections (1140px, full width below that). */
.container { width: 100%; max-width: var(--container); margin-inline: auto; }
/* Two-column rows that stack on mobile. Columns get the default 10px gutter. */
.row { display: flex; }
.row > * { min-width: 0; }
@media (max-width: 767px) {
  .row { flex-direction: column; }
  .row > * { width: 100% !important; }
}

/* ============ 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: icon-sprite (inline SVG symbols in the header) === */
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* === Component: button ===
 * Pill buttons. Base = the original's Elementor button: Roboto 500 15px, 12px 24px, radius 25px. */
.button { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; border: 3px solid transparent; border-radius: var(--radius-pill); font-family: var(--font-roboto); font-size: var(--text-button); font-weight: 500; line-height: 1; text-decoration: none; text-align: center; cursor: pointer; transition: all var(--duration); }
.button--outline { background: var(--color-white); color: var(--color-black); border-color: var(--color-black); }   /* header Order Now, contact phone */
.button--outline-thick { background: var(--color-white); color: var(--color-black); border: 4px solid var(--color-black); } /* hero Order Now */
.button--grey { background: var(--color-button-grey); color: var(--color-white); border-color: var(--color-button-grey-border); } /* hero Our Menu */
.button--white { background: var(--color-white); color: var(--color-black); border: 0; }                                  /* app Download */
.button--black-large { background: var(--color-black); color: var(--color-white); border: 0; font-size: 31px; font-weight: 400; } /* menu cards */
@media (max-width: 1024px) {
  .button--black-large { font-size: 16px; }
}

/* === Component: social-icons (unlinked on the original) === */
.social-icons { display: flex; flex-wrap: wrap; gap: 0 5px; }
.social-icon { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 10%; color: var(--color-black); }
.social-icon svg { width: 25px; height: 25px; fill: currentColor; }
.social-icons--brand .social-icon { color: var(--color-white); }
.social-icons--brand .social-icon--facebook { background: var(--color-facebook); }
.social-icons--brand .social-icon--twitter { background: var(--color-twitter); }
.social-icons--brand .social-icon--instagram { background: var(--color-instagram); }

/* === Component: site-header ===
 * Not sticky on the original. Four columns (25 / 31.491 / 30.087 / 13.4 %) in the 1140px box,
 * 5px black rule underneath. <= 1024px: burger menu, Order Now hidden. <= 767px: columns stack. */
.site-header { position: relative; background: var(--color-white); border-bottom: var(--header-rule) solid var(--color-black); }
.site-header__inner { display: flex; align-items: center; max-width: var(--container); margin-inline: auto; }
.site-header__col { padding: var(--gutter); }
.site-header__col--social { width: 25%; }
.site-header__col--social .social-icons { justify-content: center; }
.site-header__col--logo { width: 31.491%; display: flex; justify-content: flex-end; }
.site-header__logo { width: 139px; height: auto; }
.site-header__col--nav { width: 30.087%; }
.site-header__col--cta { width: 13.4%; display: flex; justify-content: flex-end; }
.site-header__order { white-space: nowrap; }

.nav-toggle { display: none; align-items: center; justify-content: center; margin: 0 auto; padding: 5.5px; width: 33px; height: 33px; border: 0; border-radius: 3px; background: rgb(0 0 0 / 0.05); color: var(--color-dropdown-text); cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; fill: currentColor; }
.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; justify-content: flex-end; }
.site-nav a { display: block; padding: 13px 20px; font-family: var(--font-roboto); font-size: 16px; font-weight: 600; line-height: 20px; color: var(--color-black); text-decoration: none; transition: color var(--duration); }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--color-nav-hover); }

@media (max-width: 1024px) {
  .site-header__col--cta > * { display: none; }
  .nav-toggle { display: flex; }
  /* Dropdown in the flow below the toggle; slides open (grid 0fr -> 1fr, 0.3s like the original). */
  .site-nav { display: grid; grid-template-rows: 0fr; align-items: stretch; transition: grid-template-rows 0.3s; }
  .site-nav.is-open { grid-template-rows: 1fr; }
  .site-nav__list { display: block; overflow: hidden; min-height: 0; background: var(--color-white); }
  .site-nav:not(.is-open) .site-nav__list { visibility: hidden; transition: visibility 0s 0.3s; }
  .site-nav a { padding: 10px 20px; min-height: 44px; display: flex; align-items: center; font-size: 13px; font-weight: 500; color: var(--color-dropdown-text); }
  .site-nav a:hover, .site-nav a:focus-visible { background: var(--color-dropdown-hover-bg); color: var(--color-white); }
}
@media (max-width: 767px) {
  .site-header__inner { flex-direction: column; align-items: stretch; }
  .site-header__col { width: 100%; }
  .site-header__col--logo { justify-content: center; }
  .site-header__col--nav { padding-bottom: 20px; }
  .site-header__col--cta { min-height: 20px; padding: 0 var(--gutter) 20px; }
}

/* === Component: site-footer ===
 * The original had no footer; this small bar carries the copyright and the OrderYOYO credit. */
.site-footer__bar { background: var(--color-dark); color: var(--color-white); padding: 16px var(--gutter); font-family: var(--font-roboto); font-size: 14px; }
.site-footer__bar-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.site-footer__bar a { color: var(--color-white); }
.site-footer__bar a:hover { color: var(--color-button-grey-border); }
@media (max-width: 767px) {
  .site-footer__bar-inner { justify-content: center; text-align: center; }
}

/* === Component: section-heading ===
 * Big centred headings: Poppins 70px (default), --hero Poppins 60px uppercase,
 * --menu Poppins 60px, --light Roboto 300 70px (Contact Us), --small Roboto 600 24px (About). */
.section-heading { font-family: var(--font-poppins); font-size: var(--text-display); font-weight: 400; line-height: 1; text-align: center; color: var(--color-black); }
.section-heading--white { color: var(--color-white); }
.section-heading--menu { font-size: var(--text-hero); }
.section-heading--light { font-family: var(--font-roboto); font-weight: 300; }
.section-heading--small { font-family: var(--font-roboto); font-size: var(--text-lead); font-weight: 600; }

/* === Component: hero ===
 * Background photo with 57% black overlay, fixed attachment on desktop, min-height 780px. */
.hero { position: relative; background: var(--color-black) center / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--color-black); opacity: 0.57; }
.hero__inner { position: relative; display: flex; min-height: 780px; }
.hero__content { width: 50%; display: flex; flex-direction: column; justify-content: center; padding: 50px; }
.hero__title { font-family: var(--font-poppins); font-size: var(--text-hero); font-weight: 400; line-height: 1; text-transform: uppercase; color: var(--color-white); margin-bottom: var(--widget-gap); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: flex-start; }
.hero__action--secondary { padding-left: 18px; }
@media (min-width: 1025px) {
  .hero { background-attachment: fixed; }
}
@media (max-width: 1024px) {
  .hero__action--primary { padding: 0 0 9px 26px; }
}
@media (max-width: 767px) {
  .hero__content { width: 100%; min-height: 620px; align-self: flex-start; }
}

/* === Component: tricolour (About band: green | white text panel | red) === */
.tricolour { display: flex; }
.tricolour__side { width: 33.333%; min-height: 50px; }
.tricolour__side--green { background: var(--color-green); }
.tricolour__side--red { background: var(--color-red); }
.tricolour__panel { width: 33.334%; background: var(--color-white); padding: 16px; }
.tricolour__panel .section-heading { margin-bottom: var(--widget-gap); }
.tricolour__text { font-family: var(--font-poppins); font-size: 16px; text-align: center; color: var(--color-black); padding-block: 16px; }
@media (max-width: 767px) {
  .tricolour { flex-direction: column; }
  .tricolour > * { width: 100%; }
}

/* === Component: menu-cards (Our Menu: three bordered cards, image + black pill button) === */
.menu-section { background: var(--color-light); padding: 15px 0 100px; }
.menu-section__inner { padding-top: 25px; }
.menu-section .section-heading { margin: var(--widget-gap) 0; }
.menu-cards { display: flex; min-height: 400px; }
.menu-card { width: 33.333%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 25px; padding: 20px; background: var(--color-white); border: 5px solid var(--color-black); }
.menu-card__image { width: 82%; height: auto; aspect-ratio: 1; object-fit: cover; }
@media (max-width: 1024px) {
  .menu-section { padding: 30px; }
  .menu-card { padding: 0; }
}
@media (max-width: 767px) {
  .menu-cards { flex-direction: column; min-height: 0; }
  .menu-card { width: 100%; padding: 16px; }
  .menu-card:not(:last-child) { margin-bottom: 50px; }
}

/* === Component: feature-rows (100% Authentic / Prepared Daily: heading + photo, ghost background) === */
.feature-rows { padding: 0; overflow-x: hidden; overflow-x: clip; } /* headings slide in from off-screen; clip so the page never scrolls sideways */
.feature-row { display: flex; max-width: 1440px; margin-inline: auto; background-repeat: no-repeat; background-size: contain; }
.feature-row--ghost-left { background-position: center left; }
.feature-row--ghost-right { background-position: top right; }
.feature-row__col { width: 50%; padding: var(--gutter); display: flex; align-items: center; justify-content: center; }
.feature-row__col .section-heading { width: 100%; }
.feature-row__col img { width: 100%; max-width: 747px; }
.feature-row__col img.feature-row__img--694 { max-width: 694px; } /* shown at natural size, as the original */
@media (max-width: 1024px) {
  .feature-rows { padding: 30px; }
}
@media (max-width: 767px) {
  .feature-rows { padding: 10px; }
  .feature-row { flex-direction: column; }
  .feature-row__col { width: 100%; }
}

/* === Component: app-promo (dark section: heading | text, Download button, store icons) ===
 * The original's decorative Lottie under the heading was dropped (user 2026-10-23), so the
 * heading is centred vertically against the text column instead of sitting 70px from the top. */
.app-promo { background: var(--color-dark); padding: 50px 0; }
.app-promo__col--left { width: 47.368%; display: flex; flex-direction: column; justify-content: center; }
.app-promo__col--right { width: 52.632%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.app-promo .section-heading { margin-bottom: var(--widget-gap); }
.app-promo__text { font-family: var(--font-poppins); font-size: var(--text-lead); color: var(--color-white); padding-block: 24px; margin-bottom: var(--widget-gap); }
.app-promo__download { margin-bottom: var(--widget-gap); }
.app-mockup { background: var(--color-dark); }
.app-mockup__image { width: 27%; margin-inline: auto; }
@media (max-width: 1024px) {
  .app-promo { padding: 30px; }
}
@media (max-width: 767px) {
  .app-promo { padding: 40px 10px 25px; }
  .app-promo__col--right { align-items: center; text-align: center; }
}

/* === Component: contact (heading, photo, grey panels: call button + opening times etc.) === */
.contact__inner { padding: 80px var(--gutter) var(--gutter); } /* 10px column + 50px spacer + 20px gap */
.contact .section-heading { margin-bottom: var(--widget-gap); }
.contact__cols { display: flex; }
.contact__col { padding: var(--gutter); }
.contact__col--image { width: 33.333%; }
.contact__col--image img { width: 77%; max-width: 94%; margin-inline: auto; }
.contact__col--form { width: 42.797%; padding: 0; }
.contact__col--info { width: 23.507%; padding: 0; }
.contact-panel { height: 100%; background: var(--color-panel); padding: 16px; }
.contact__col--form .contact-panel { display: flex; align-items: center; }
.contact__col--info .contact-panel { padding-top: 61px; } /* 16px + 25px spacer + 20px gap */
.contact-panel__heading { font-family: var(--font-roboto); font-size: var(--text-panel-heading); font-weight: 600; line-height: 1; color: var(--color-black); margin-bottom: var(--widget-gap); }
.contact-panel__text { font-family: var(--font-roboto); font-size: 16px; color: var(--color-text-muted); padding-block: 16px; margin-bottom: var(--widget-gap); }
.contact-panel__text a { color: inherit; text-decoration: none; }
.contact-panel__text a:hover { text-decoration: underline; }
.contact-panel__text--hours { text-transform: capitalize; line-height: 1.7; }
@media (min-width: 768px) and (max-width: 1024px) {
  .contact__col--form { width: 35%; }
  .contact__col--info { width: 25%; }
}
@media (max-width: 767px) {
  .contact__cols { flex-direction: column; }
  .contact__cols > * { width: 100% !important; }
}

/* === Component: contact-call (replaces the WordPress form: a full-width "Call" tel: button; phone only, user decision 2026-10-23) === */
.contact-call { display: grid; gap: 16px; justify-items: stretch; width: 100%; text-align: center; }
.contact-call .button { width: 100%; min-height: 44px; }

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

/* === Component: error-page (404) === */
.error-page { padding: 100px 20px; text-align: center; }
.error-page .section-heading { margin-bottom: 30px; }
.error-page__text { font-family: var(--font-poppins); font-size: 18px; margin-bottom: 30px; }
.error-page__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }

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

/* ============ 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) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  [data-reveal] { visibility: visible !important; }
}
