/*
 * site.css: the only stylesheet for wavykebab.com.
 *
 * 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        sections, container, 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
 *
 * Values come from the original Elementor CSS (design-system/_src/post-13.css home page,
 * post-7.css kit) and computed styles measured on the live site at 375/768/1024/1440
 * (design-system/orig-measure.txt, design-system/probe.mjs).
 */

/* ============ 1. Tokens ============ */
:root {
  /* Colours */
  --color-blue: #2a3f91;          /* headings, nav, buttons, section borders, image borders */
  --color-blue-footer: #2d4391;   /* footer background, app section top border */
  --color-blue-pointer: #03249b;  /* nav underline (hover / current section) */
  --color-red: #c30000;           /* header bottom border, divider lines, nav hover / current */
  --color-text: #000000;          /* body copy, menu category labels */
  --color-bg: #ffffff;
  --color-white: #ffffff;
  --color-dropdown-text: #33373d; /* mobile/tablet menu items */
  --color-dropdown-hover: #3f444b;

  /* Typography */
  --font-display: "League Spartan", "Poppins", Arial, sans-serif; /* replaces the unlicensed "The Bold Font" (decision d5) */
  --font-body: "Poppins", Arial, sans-serif;

  /* Layout */
  --container: 1280px;            /* Elementor boxed width used by every section */
  --gutter: 30px;                 /* section side padding */
  --col-pad: 10px;                /* Elementor "default" column gap */
  --section-pad: 125px;           /* vertical padding of the content sections */
  --line: 5px;                    /* section borders and divider lines */
  --widget-gap: 20px;             /* Elementor space between widgets */

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

/* ============ 2. Fonts ============ */
/* Self-hosted Google Fonts (SIL Open Font Licence), latin subset only.
   League Spartan 800 replaces "The Bold Font" (uploaded font, "All rights reserved", no licence on file).
   The original asked for weights 400-600 of a one-weight font; League Spartan 800 is used for all of them. */
@font-face { font-family: "League Spartan"; src: url("/assets/fonts/league-spartan-800-latin.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
@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%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); 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; display: block; }
h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; transition: color var(--duration) var(--ease); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--color-red); outline-offset: 2px; }

/* ============ 4. Layout ============ */
/* A content section: Elementor boxed section, 30px side padding, 1280px container. */
.section { padding: 0 var(--gutter); }
.section--bordered { padding-block: var(--section-pad); border-block: var(--line) solid var(--color-blue); }
.section__inner { max-width: var(--container); margin-inline: auto; }
.col { padding: var(--col-pad); min-width: 0; }

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

/* === Component: skip-link === */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 10000; padding: 8px 16px; background: var(--color-bg); color: var(--color-text); }
.skip-link:focus { left: 16px; }

/* === Component: button ===
   .button           blue rounded box, white capitals (Elementor Extras button group; header + hero)
   .button--header   15px text on tablet/mobile (header only, as the original)
   .button-group     row of buttons, 12px apart */
.button { position: relative; display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; border-radius: 12px; background: var(--color-blue); color: var(--color-white); font-family: var(--font-display); font-size: 16px; font-weight: 800; line-height: 16px; text-transform: uppercase; white-space: nowrap; transition: all var(--duration) var(--ease); }
.button::after { content: ""; position: absolute; inset: -2px 0; } /* 44px touch area without changing the look */
.button-group { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 1024px) { .button--header { font-size: 15px; line-height: 15px; } }

/* === Component: site-header === */
.site-header { position: relative; z-index: 100; background: var(--color-bg); border-bottom: var(--line) solid var(--color-red); padding: 25px var(--gutter); transition: background var(--duration), border var(--duration); }
@media (min-width: 768px) { .site-header { position: sticky; top: 0; } } /* sticky on tablet + desktop only, as the original */
.site-header__inner { max-width: var(--container); margin-inline: auto; display: flex; flex-wrap: wrap; }
.site-header__col { padding: var(--col-pad); display: flex; align-items: center; min-width: 0; }
.site-header__logo { width: 22.081%; }
.site-header__nav { width: 55.573%; justify-content: center; }
.site-header__nav-wrap { width: 100%; }
.site-header__actions { width: 22.012%; justify-content: flex-end; }
.site-header__buttons { justify-content: flex-end; flex-wrap: nowrap; }
@media (max-width: 1024px) {
  .site-header__logo, .site-header__nav { width: 50%; }
  .site-header__actions { display: none; } /* hidden on tablet, as the original */
}
@media (max-width: 767px) {
  .site-header__logo, .site-header__nav, .site-header__actions { width: 100%; }
  .site-header__logo img { width: 100%; }
  .site-header__actions { display: flex; justify-content: center; }
  .site-header__buttons { justify-content: center; }
}

/* === Component: nav (desktop: centred links with underline; <= 1024px: toggle + full-width dropdown overlay) === */
.nav-toggle { display: none; position: relative; align-items: center; justify-content: center; margin: 0 auto; padding: 10.25px; border: 0; border-radius: 3px; background: transparent; color: var(--color-blue); cursor: pointer; }
.nav-toggle svg { display: block; width: 41px; height: 41px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open, .nav-toggle[aria-expanded="false"] .nav-toggle__close { display: none; }
.site-nav__list { display: flex; flex-wrap: wrap; justify-content: center; }
.site-nav a { position: relative; display: flex; padding: 13px 20px; font-family: var(--font-display); font-size: 18px; font-weight: 800; line-height: 20px; text-transform: uppercase; color: var(--color-blue); }
.site-nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--color-blue-pointer); opacity: 0; transition: opacity var(--duration) cubic-bezier(0.58, 0.3, 0.005, 1); }
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a.is-active { color: var(--color-red); }
.site-nav a:hover::after, .site-nav a:focus-visible::after, .site-nav a.is-active::after { opacity: 1; }
@media (max-width: 1024px) {
  .nav-toggle { display: flex; }
  /* Absolute, so it overlays the content below (Elementor "stretch" dropdown); its top stays at its
     static position, 10px under the toggle. */
  .site-nav { position: absolute; left: 0; right: 0; z-index: 9997; margin-top: 10px; background: var(--color-bg); transform-origin: top; transform: scaleY(0); max-height: 0; overflow: hidden; visibility: hidden; transition: max-height var(--duration), transform var(--duration), visibility 0s var(--duration); }
  .site-nav.is-open { transform: scaleY(1); max-height: 100vh; visibility: visible; transition: max-height var(--duration), transform var(--duration), visibility 0s; }
  .site-nav__list { display: block; }
  .site-nav a { justify-content: center; padding: 10px 20px; color: var(--color-dropdown-text); transition: none; }
  .site-nav a::after { display: none; }
  .site-nav a.is-active { color: var(--color-dropdown-text); }
  .site-nav a:hover, .site-nav a:focus-visible { background: var(--color-dropdown-hover); color: var(--color-white); }
}

/* === Component: page-title-hidden (the theme's H1, hidden on the original too) === */
.page-title-hidden { display: none; }

/* === Component: section-heading (98px blue capitals; 60px on smaller screens) ===
   .section-heading--keep-tablet  stays 98px on tablet (gallery heading, as the original) */
.section-heading { font-family: var(--font-display); font-size: 98px; font-weight: 800; line-height: 1; text-transform: uppercase; color: var(--color-blue); text-align: center; }
@media (max-width: 1024px) { .section-heading:not(.section-heading--keep-tablet) { font-size: 60px; } }
@media (max-width: 767px) { .section-heading { font-size: 60px; } }

/* === Component: divider (full-width 5px red line between sections, 15px above and below) === */
.divider { padding-block: 15px; }
.divider hr { margin: 0; border: 0; border-top: var(--line) solid var(--color-red); }

/* === Component: hero (#home) === */
.hero { border-bottom: var(--line) solid var(--color-blue); }
.hero__inner { display: flex; align-items: center; min-height: 100vh; }
.hero__content { width: 52.932%; }
.hero__media { width: 46.991%; }
.hero__title { margin-bottom: var(--widget-gap); font-family: var(--font-display); font-size: 98px; font-weight: 800; line-height: 1; text-transform: uppercase; color: var(--color-blue); }
.hero__media img { margin-inline: auto; }
@media (max-width: 1024px) {
  .hero__inner { min-height: 65vh; }
  .hero__title { font-size: 60px; }
}
@media (max-width: 767px) {
  .hero { padding-block: 100px; }
  .hero__inner { display: block; min-height: 0; }
  .hero__content, .hero__media { width: 100%; }
  .hero__content { padding-bottom: 50px; }
}

/* === Component: about (#story) === */
.about__spacer { height: 13px; margin-block: var(--widget-gap); }
.about__text { max-width: 570px; margin: 0 auto 25px; padding: var(--col-pad); font-family: var(--font-body); font-size: 18px; font-weight: 400; text-align: center; color: var(--color-text); }
.about__image { margin-inline: auto; margin-bottom: var(--widget-gap); }
.about__badge { display: flex; justify-content: center; }

/* === Component: menu-categories ("Our Menu": 4 bordered tiles, each a link to online ordering) === */
.menu-categories__spacer { height: 50px; margin-block: var(--widget-gap); }
.menu-categories { display: flex; }
.menu-categories__item { width: 25%; padding: var(--col-pad); }
.menu-categories__image { display: block; border: 10px solid var(--color-blue); }
.menu-categories__image img { width: 100%; }
.menu-categories__label { display: block; width: fit-content; margin: 65px auto 0; padding: 12px 24px; font-family: var(--font-display); font-size: 52px; font-weight: 800; line-height: 1; text-transform: uppercase; color: var(--color-text); } /* 65px = 20 + 25px spacer + 20 */
@media (max-width: 1024px) { .menu-categories__label { font-size: 32px; } }
@media (max-width: 767px) {
  .menu-categories { display: block; }
  .menu-categories__item { width: 100%; }
}

/* === Component: gallery (3 / 2 / 1 columns; GLightbox slideshow, library CSS in /assets/vendor/glightbox-3.3.1/) === */
.gallery-section .section__inner { padding: var(--col-pad); }
.gallery__spacer { height: 47px; margin-block: var(--widget-gap); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 24px; }
.gallery a { display: block; margin-bottom: 24px; }
.gallery img { width: 100%; }
@media (max-width: 1024px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .gallery { grid-template-columns: 1fr; } }

/* === Component: app-promo (#app "Download our app": phone mock-ups + text + store icons) === */
.app-promo { padding-block: var(--section-pad); border-top: var(--line) solid var(--color-blue-footer); }
.app-promo__inner { display: flex; }
.app-promo__media, .app-promo__content { width: 50%; padding: 0 var(--gutter); }
.app-promo__media img { width: 100%; }
.app-promo__content { display: flex; flex-direction: column; justify-content: center; }
.app-promo__title { margin-bottom: var(--widget-gap); font-family: var(--font-display); font-size: 80px; font-weight: 800; line-height: 1; text-transform: uppercase; color: var(--color-blue); }
.app-promo__text { margin: 16px 0 calc(16px + var(--widget-gap)); font-family: var(--font-body); font-size: 16px; font-weight: 400; color: var(--color-text); }
.app-promo__icons { display: flex; gap: 20px; }
.app-promo__icons a { display: block; padding-bottom: 4px; }
.app-promo__icons img { width: 90px; height: 90px; }
@media (max-width: 1024px) {
  .app-promo__title { font-size: 60px; }
  .app-promo__icons img { width: 70px; height: 70px; }
}
@media (max-width: 767px) {
  .app-promo__inner { flex-direction: column-reverse; } /* text first on phones, as the original */
  .app-promo__media, .app-promo__content { width: 100%; }
  .app-promo__content { padding-bottom: 50px; }
  .app-promo__title { font-size: 45px; }
}

/* === Component: banner (grill photo strip above the footer: background image, 100% wide) === */
.banner { background: url("/wp-content/uploads/2023/02/footer-banner.jpg") center / 100% auto no-repeat; }
.banner__spacer { max-width: 1140px; height: calc(285px + 2 * var(--col-pad)); margin-inline: auto; }
@media (max-width: 1024px) { .banner__spacer { height: calc(154px + 2 * var(--col-pad)); } }
@media (max-width: 767px) { .banner__spacer { height: calc(65px + 2 * var(--col-pad)); } }

/* === Component: site-footer (the blue "#contact" block: four columns, divider and credit) === */
.site-footer { background: var(--color-blue-footer); color: var(--color-white); padding: var(--section-pad) var(--gutter); font-family: var(--font-body); }
.site-footer__inner { max-width: var(--container); margin-inline: auto; padding: var(--col-pad); }
.site-footer__columns { display: flex; }
.site-footer__col { padding: var(--col-pad); min-width: 0; }
.site-footer__col--company, .site-footer__col--app { width: 25%; }
.site-footer__col--touch { width: 27.063%; }
.site-footer__col--hours { width: 22.877%; }
.footer-heading { margin-bottom: var(--widget-gap); font-family: var(--font-body); font-size: 24px; font-weight: 700; line-height: 1; color: var(--color-white); }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.footer-links li { height: 18px; padding-top: 1px; }
.footer-links a { display: block; font-size: 16px; font-weight: 200; line-height: 1; color: var(--color-white); }
.footer-text { display: flow-root; font-size: 16px; font-weight: 200; color: var(--color-white); }
.footer-text p { margin-block: 1em; }
.site-footer .app-badges { display: block; }
.site-footer .app-badges img { width: 100%; }
.site-footer__divider { margin: 60px 0 35px; border: 0; border-top: 1px solid var(--color-white); } /* 25px spacer + 20px gap + 15px divider padding; 15px + 20px below */
.site-footer__copyright { font-family: var(--font-body); font-size: 24px; font-weight: 200; line-height: 1; color: var(--color-white); }
.site-footer__copyright strong { font-weight: bolder; }
@media (max-width: 1024px) {
  .footer-heading { font-size: 16px; }
  .footer-links li { padding-top: 4px; }
  .footer-links a, .footer-text { font-size: 12px; }
  .site-footer__copyright { font-size: 20px; text-align: center; }
}
@media (max-width: 767px) {
  .site-footer__columns { flex-direction: column; }
  .site-footer__col { width: 100% !important; }
  .site-footer__copyright { font-size: 16px; }
}

/* === Component: lightbox (GLightbox overlay, styled to the original Elementor lightbox) === */
.glightbox-container .goverlay { background: rgb(0 0 0 / 0.9); }

/* === Component: error-page (404) === */
.error-page { padding-block: var(--section-pad); text-align: center; }
.error-page .section-heading { margin-bottom: 30px; }
.error-page__text { margin-bottom: 30px; font-size: 18px; }
.error-page .button-group { justify-content: center; }

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