/*
 * site.css: the only stylesheet for tastetrapkitchen.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
 *   5. Components    one block per component: "=== Component: <name> ==="
 *   6. Pages         page-specific rules: "=== Page: <path> ==="
 *   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-12.css, kept in design-system/_src/).
 * Editing: change tokens to restyle the site; add new components as new blocks.
 */

/* ============ 1. Tokens ============ */
:root {
  /* Colours */
  --color-yellow: #fffc00;          /* header, hero bars, outlines, nav hover text */
  --color-footer: #fcfc04;          /* footer background and the VIEW FULL MENU pill border */
  --color-black: #000000;           /* page background, nav hover background, buttons */
  --color-white: #ffffff;           /* body copy on black, button text */

  /* Typography */
  --font-display: "League Spartan", "Poppins", Arial, sans-serif;  /* replaces The Bold Font (d4) */
  --font-brush: "Permanent Marker", "Comic Sans MS", cursive;      /* replaces Browcolly (d5) */
  --font-body: "Poppins", Arial, sans-serif;

  /* Layout */
  --container: 1280px;              /* Elementor boxed width (desktop) */
  --gutter: 30px;                   /* section side padding on tablet/mobile and in the header */
  --header-height: 109px;           /* desktop/tablet header: 25 + 59 + 25 */

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

/* ============ 2. Fonts ============ */
/* Poppins (Google Fonts, OFL): body copy and footer text */
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-500-latin.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-600-latin.woff2") format("woff2"); font-weight: 600; 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; }
/* League Spartan 800 (Google Fonts, OFL): replaces the unlicensed "The Bold Font" (one weight, as the original) */
@font-face { font-family: "League Spartan"; src: url("/assets/fonts/league-spartan-800-latin.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
/* Permanent Marker (Google Fonts, Apache 2.0): replaces the unlicensed "Browcolly" brush font */
@font-face { font-family: "Permanent Marker"; src: url("/assets/fonts/permanent-marker-400-latin.woff2") format("woff2"); font-weight: 400; 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: 1.5; color: var(--color-white); background: var(--color-black); }
img, svg, video, iframe { max-width: 100%; }
img, video { height: auto; display: block; }
h1, h2, h3 { margin: 0; line-height: 1; font-weight: inherit; }
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 { width: 100%; max-width: var(--container); margin-inline: auto; }
@media (max-width: 1024px) {
  .container { max-width: 1024px; }
}

/* ============ 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 ===
 * Yellow bar: logo | nav | ORDER NOW. Sticky on desktop and tablet (as the original);
 * on mobile it stacks logo / menu toggle / ORDER NOW, centred, and scrolls away. */
.site-header { position: sticky; top: 0; z-index: 99; background: var(--color-yellow); padding: 25px var(--gutter); }
.site-header__inner { display: flex; align-items: center; max-width: var(--container); margin-inline: auto; min-height: 59px; }
.site-header__logo { width: 19.895%; }
.site-header__logo img { width: 229px; }
.site-header__menu { width: 60.657%; display: flex; justify-content: center; }
.site-header__cta { width: 19.114%; display: flex; justify-content: flex-end; }

/* nav (desktop: horizontal list; hover/current section = black box with yellow text) */
.site-nav__list { display: flex; justify-content: center; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 13px 20px; font-family: var(--font-display); font-size: 18px; font-weight: 800; line-height: 20px; text-transform: uppercase; color: var(--color-black); background-color: transparent; transition: color var(--duration) var(--ease), background-color var(--duration) var(--ease); }
.site-nav a:hover, .site-nav a.is-active { color: var(--color-yellow); background-color: var(--color-black); }

/* menu toggle (tablet and mobile) */
.nav-toggle { display: none; align-items: center; justify-content: center; width: 33px; height: 33px; padding: 0; border: 0; border-radius: 3px; background: var(--color-black); color: var(--color-yellow); 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__logo { width: 34%; }
  .site-header__menu { width: 33%; }
  .site-header__cta { width: 33%; }
  .site-header__inner { max-width: 1024px; }
  .nav-toggle { display: inline-flex; }
  /* full-width black dropdown under the toggle; slides open (grid 0fr -> 1fr) */
  .site-nav { position: absolute; left: 0; right: 0; top: 81px; z-index: 98; display: grid; grid-template-rows: 0fr; align-items: stretch; visibility: hidden; background: var(--color-black); 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: 21px 31px; text-align: center; color: var(--color-yellow); }
  .site-nav a.is-active { color: var(--color-yellow); background-color: transparent; }
  .site-nav a:hover, .site-nav a:focus-visible { color: var(--color-black); background-color: var(--color-yellow); }
}
@media (max-width: 767px) {
  .site-header { position: relative; }
  .site-header__inner { flex-direction: column; max-width: 1600px; }
  .site-header__logo, .site-header__menu, .site-header__cta { width: 100%; justify-content: center; }
  .site-header__logo a { display: block; width: 229px; margin-inline: auto; }
  .site-header__menu { margin-top: 25px; }
  .site-header__cta { margin-top: 25px; }
  .site-nav { top: 152px; }
}

/* === Component: button === */
.button { display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; line-height: 1; color: var(--color-white); text-align: center; cursor: pointer; }
/* header ORDER NOW: black, rounded */
.button--header { padding: 12px 24px; font-size: 18px; background: var(--color-black); border-radius: 10px; }
/* yellow 2px outline (WHO ARE WE? buttons) */
.button--outline { padding: 12px 24px; font-size: 18px; border: 2px solid var(--color-yellow); }
/* big pill (VIEW FULL MENU under the gallery) */
.button--pill { padding: 25px; font-size: 39px; border: 1px solid var(--color-footer); border-radius: 32px; }
@media (max-width: 1024px) {
  .button--pill { font-size: 24px; }
}

/* === Component: button-group (row of outline buttons; stacks on mobile) === */
.button-group { display: flex; flex-wrap: wrap; gap: 50px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 767px) {
  .button-group { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* === Component: outline-heading (big yellow outlined display heading) === */
.outline-heading { font-family: var(--font-display); font-weight: 800; font-size: 72px; line-height: 1; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px var(--color-yellow); }
.outline-heading--app { font-size: 64px; }
@media (max-width: 1024px) {
  .outline-heading, .outline-heading--app { font-size: 56px; }
}
@media (max-width: 767px) {
  .outline-heading, .outline-heading--app { font-size: 48px; }
}

/* === Component: hero (two clickable halves, SAVOURY / SWEET, with a centre badge) ===
 * Desktop: halves 48.19% | 2.943% badge column | 48.199%, yellow 20px inner borders.
 * Tablet: the badge column is hidden (as the original); halves 50/50.
 * Mobile: halves stack, the badge sits across the join. */
.hero { display: flex; align-items: center; min-height: 100vh; background: var(--color-black); overflow-x: clip; } /* clip: the rotated words may not widen the page; the badge still overlaps the next section */
.hero__half { position: relative; display: flex; flex-direction: column; justify-content: center; width: 48.19%; padding: 600px 0 508px; background-position: center center; background-size: cover; border: 0 solid var(--color-yellow); transition: border-width var(--duration) var(--ease); }
.hero__half::before { content: ""; position: absolute; inset: 0; background-color: rgb(0 0 0 / 0.26); transition: background-color var(--duration) var(--ease); }
.hero__half--savoury { background-image: url("/wp-content/uploads/2023/02/Lefthero.png"); border-right-width: 20px; }
.hero__half--sweet { width: 48.199%; padding-bottom: 502px; background-image: url("/wp-content/uploads/2023/02/RightGero.png"); border-left-width: 20px; }
.hero__half--sweet::before { background-color: rgb(0 0 0 / 0.33); }
.hero__half--savoury:hover { border-right-width: 6px; }
.hero__half--sweet:hover { border-left-width: 6px; }
.hero__half--savoury:hover::before { background-color: rgb(255 255 255 / 0.235); }
.hero__half--sweet:hover::before { background-color: rgb(255 255 255 / 0.17); }
/* font-size scaled to 92% so Permanent Marker matches Browcolly's word widths; the line box keeps the original 188px / 80px */
.hero__word { position: relative; display: block; font-family: var(--font-brush); font-size: 174px; font-weight: 400; line-height: 188px; text-align: center; text-transform: uppercase; color: var(--color-yellow); transform: rotate(-30deg); }
.hero__word--outline { color: transparent; -webkit-text-stroke: 1px var(--color-yellow); }
.hero__badge { position: relative; z-index: 2; align-self: stretch; width: 2.943%; }
.hero__badge img { position: absolute; top: calc(50% + 470px); left: -115px; width: 300px; max-width: none; height: 300px; object-fit: contain; }
@media (max-width: 1024px) {
  .hero__half, .hero__half--sweet { width: 50%; padding: 600px 0; }
  .hero__word { font-size: 74px; line-height: 80px; transform: rotate(-50deg); }
  .hero__badge { display: none; }
}
@media (max-width: 767px) {
  .hero { flex-direction: column; }
  .hero__half, .hero__half--sweet { width: 100%; }
  .hero__half--savoury { border-right-width: 0; border-bottom-width: 20px; background-position: -323px 0; }
  .hero__half--sweet { border-left-width: 0; border-top-width: 20px; }
  .hero__half--savoury:hover { border-right-width: 0; border-bottom-width: 10px; }
  .hero__half--sweet:hover { border-left-width: 0; border-top-width: 10px; }
  .hero__badge { display: block; width: 100%; height: 1px; align-self: auto; }
  .hero__badge img { top: -155px; left: 54px; }
}

/* === Component: story (WHO ARE WE? text + chef photo) === */
.story { display: flex; border-top: 20px solid var(--color-yellow); }
.story__spacer { width: 8%; }
.story__text { width: 49.666%; display: flex; flex-direction: column; justify-content: center; padding-top: 50px; }
.story__text p { font-family: var(--font-body); font-size: 18px; font-weight: 600; line-height: 1.7; color: var(--color-white); margin: 18px 0; }
.story__image { width: 42%; }
.story__image img { width: 100%; }
@media (max-width: 1024px) {
  .story__spacer { width: 2%; }
  .story__text { width: 60%; padding: 64px 15px 0; }
  .story__text p { font-size: 14px; margin: 14px 0; }
  .story__image { width: 38%; }
}
@media (max-width: 767px) {
  .story { flex-direction: column; }
  .story__spacer { display: none; }
  .story__text, .story__image { width: 100%; }
}

/* === Component: gallery (3 / 2 / 1 square thumbnails; GLightbox opens the full photo) === */
.gallery-section { margin: 120px 0; }
.gallery-section__heading { padding-top: 50px; margin-bottom: 62px; text-align: center; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 24px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery-section__cta { padding-top: 87px; text-align: center; }
@media (max-width: 1024px) {
  .gallery-section { padding: 0 var(--gutter); }
  .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); }

/* === Component: app-promo (Download Our App text + phone image) === */
.app-promo { margin: 126px 0; }
.app-promo__inner { display: flex; }
.app-promo__text { width: 50%; display: flex; flex-direction: column; justify-content: center; }
.app-promo__text .outline-heading { margin-bottom: 25px; }
.app-promo__text p { font-family: var(--font-body); font-size: 16px; font-weight: 600; line-height: 2; letter-spacing: 0.3px; color: var(--color-white); margin: 16px 0; }
.app-promo__image { width: 50%; display: flex; justify-content: flex-end; align-items: flex-start; }
.app-promo__image img { width: 100%; }
.app-badges { display: block; width: max-content; align-self: flex-start; }
.app-badges img { width: 118px; }
@media (max-width: 1024px) {
  .app-promo { padding: 0 var(--gutter); }
  .app-promo__text p { font-size: 14px; margin: 14px 0; }
}
@media (max-width: 767px) {
  .app-promo__inner { flex-direction: column; }
  .app-promo__text, .app-promo__image { width: 100%; }
}

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

/* === Component: site-footer (yellow, 4 columns; doubles as the #contact section) === */
.site-footer { position: relative; z-index: 10; background: var(--color-footer); color: var(--color-black); padding: 70px var(--gutter); }
.site-footer__inner { max-width: var(--container); margin-inline: auto; padding: 10px; }
.site-footer__cols { display: flex; }
.site-footer__col { width: 25%; padding: 10px; }
.site-footer__col--touch { width: 26.825%; }
.site-footer__col--hours { width: 23.155%; }
.site-footer__heading { font-family: var(--font-display); font-size: 24px; font-weight: 800; line-height: 1; text-transform: uppercase; color: var(--color-black); }
.site-footer__links { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 20px; }
.site-footer__links li { display: flex; align-items: center; height: 18px; }
.site-footer__links a { font-family: var(--font-body); font-size: 16px; font-weight: 500; line-height: 1; color: var(--color-black); }
.site-footer__text { padding-top: 10px; font-family: var(--font-body); font-size: 16px; font-weight: 500; line-height: normal; }
.site-footer__text p { margin: 16px 0; }
.site-footer__col--app .app-badges { margin-top: 20px; }
.site-footer__divider { width: 90%; margin: 40px 0 15px; border: 0; border-top: 1px solid var(--color-black); }
.site-footer__copyright { margin: 0; font-family: var(--font-display); font-size: 24px; font-weight: 800; line-height: 1; text-transform: uppercase; }
.site-footer__copyright strong { font-weight: 800; }
.site-footer__copyright a { color: inherit; }
@media (max-width: 1024px) {
  .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__cols { flex-direction: column; }
  .site-footer__col, .site-footer__col--touch, .site-footer__col--hours { width: 100%; }
  .site-footer__heading, .site-footer__copyright { font-size: 16px; }
}

/* === Component: not-found (404 page) === */
.not-found { padding: 120px var(--gutter); text-align: center; }
.not-found .outline-heading { margin-bottom: 25px; }
.not-found p { font-size: 18px; font-weight: 600; line-height: 1.7; }
.not-found__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; list-style: none; margin: 40px 0 0; padding: 0; }

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