/*
 * site.css: the only stylesheet for feastonflavour.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
 *   4. Layout        containers, sections
 *   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 used by the original):
 *   mobile  <= 767px    tablet 768px–1024px    desktop >= 1025px
 *   The header nav collapses to the burger at <= 1024px; the ORDER button hides at <= 767px.
 *   The food carousel shows 3 slides from 1024px up (Swiper breakpoint, set in the page's data-swiper).
 */

/* ============ 1. Tokens ============ */
:root {
  /* Colours (computed styles of the live site) */
  --color-dark: #221e1f;          /* page background, header, button text */
  --color-yellow: #ecd444;        /* buttons, headings, about card, burger icon */
  --color-header-border: #e0d840; /* 3px header frame */
  --color-red: #d4443f;           /* active / hover nav link */
  --color-menu-bg: #0c0c0c;       /* mobile dropdown */
  --color-divider: #d4c43c;       /* footer rule */
  --color-white: #ffffff;
  --color-black: #000000;

  /* Typography */
  --font-body: "Passion One", sans-serif;
  --font-heading: "Roboto", sans-serif;
  --font-footer: "Poppins", sans-serif;

  /* Shape and layout */
  --radius: 3px;
  --radius-card: 30px;
  --container: 1140px;        /* boxed sections (about, food, app) */
  --container-wide: 1280px;   /* header and footer */
  --gutter: 30px;             /* section side padding */
  --header-height: 150px;     /* sticky header height, used for anchor offsets */
  --button-shadow: 0 0 10px 0 rgb(0 0 0 / 0.5);

  /* Motion (original Elementor timings) */
  --duration: 300ms;
  --duration-nav: 400ms;
  --ease: ease;
}
@media (max-width: 1024px) { :root { --header-height: calc(56px + (100vw - 66px) * 0.1485); } }
@media (max-width: 767px) { :root { --header-height: 125px; } }

/* ============ 2. Fonts (self-hosted Google Fonts, latin subset, weights in use) ============ */
@font-face { font-family: "Passion One"; src: url("/assets/fonts/passionone-400-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("/assets/fonts/roboto-600-latin.woff2") format("woff2"); font-weight: 600; 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: 19px; color: var(--color-black); background: var(--color-dark); }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--color-yellow); outline-offset: 2px; }
[id] { scroll-margin-top: var(--header-height); }

/* ============ 4. Layout ============ */
/* Boxed section: side padding 30px, content max 1140px; the 10px column padding of Elementor is part of .container. */
.section { padding-inline: var(--gutter); }
.container { max-width: var(--container); margin-inline: auto; padding: 10px; }

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

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

/* === Component: button ===
 * Elementor buttons: Passion One, padding 12px 24px, radius 3px.
 * .button--yellow  header ORDER / hero buttons (20px)   .button--white  app + footer buttons (16px)
 */
.button { display: inline-block; padding: 12px 24px; border-radius: var(--radius); font-family: var(--font-body); font-size: 16px; line-height: 19px; text-align: center; text-decoration: none; transition: all var(--duration); }
.button--yellow { font-size: 20px; line-height: 20px; background: var(--color-yellow); color: var(--color-dark); }
.button--white { background: var(--color-white); color: var(--color-dark); }
.button--shadow { color: var(--color-black); box-shadow: var(--button-shadow); }

/* === Component: site-header ===
 * Dark bar with a 3px yellow frame; logo | centred anchor nav | ORDER button. Sticky at all widths.
 * <= 1024px: nav becomes a burger (centred in its column) with a full-width black dropdown.
 * <= 767px: logo left, burger right, ORDER hidden (as the original).
 */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--color-dark); border: 3px solid var(--color-header-border); padding-inline: var(--gutter); }
.site-header__inner { display: flex; align-items: center; justify-content: center; gap: 10px; max-width: var(--container-wide); margin-inline: auto; padding-block: 25px; }
.site-header__brand { flex: 0 0 16.5%; min-width: 0; line-height: 0; }
.site-header__logo { width: 37%; height: auto; }
.site-header__menu { flex: 1 1 auto; display: flex; justify-content: center; align-items: center; min-width: 0; }
.site-header__cta { flex: 0 0 16.8%; text-align: right; }
.site-nav__list { display: flex; flex-wrap: wrap; justify-content: center; list-style: none; margin: 0; padding: 0; }
.site-nav__list a { display: flex; align-items: center; font-family: var(--font-body); font-size: 20px; line-height: 20px; color: var(--color-white); text-decoration: none; transition: color var(--duration-nav); }
.site-nav__list li + li a { margin-left: 40px; }
.site-nav__list a:hover, .site-nav__list a:focus-visible, .site-nav__list a.is-active { color: var(--color-red); }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 33px; height: 33px; padding: 5.5px; border: 0; border-radius: var(--radius); background: rgb(0 0 0 / 0.05); color: var(--color-yellow); cursor: pointer; position: relative; }
.nav-toggle::after { content: ""; position: absolute; inset: -6px; } /* 44px tap target */
.nav-toggle .icon { 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; }
@media (max-width: 1024px) {
  .site-header__logo { width: 75%; }
  .site-nav__list a { font-size: 18px; }
  .nav-toggle { display: inline-flex; }
  /* Dropdown: full viewport width, 10px below the burger; grid 0fr -> 1fr slide (0.3s, as the original). */
  .site-nav { position: absolute; left: -3px; right: -3px; top: calc(50% + 26.5px); display: grid; grid-template-rows: 0fr; align-items: stretch; visibility: hidden; transition: grid-template-rows var(--duration) var(--ease), visibility var(--duration); }
  .site-nav.is-open { grid-template-rows: 1fr; visibility: visible; }
  .site-nav.is-instant { transition: none; }
  .site-nav__inner { overflow: hidden; min-height: 0; }
  .site-nav__list { display: block; background: var(--color-menu-bg); }
  .site-nav__list li + li a { margin-left: 0; }
  .site-nav__list a { padding: 10px 20px; color: var(--color-yellow); }
  .site-nav__list a:hover, .site-nav__list a:focus-visible, .site-nav__list a.is-active { color: var(--color-yellow); }
}
@media (max-width: 767px) {
  .site-header__inner { justify-content: space-between; gap: 0; }
  .site-header__brand { flex: 0 0 50%; }
  .site-header__logo { width: 37%; }
  .site-header__menu { flex: 0 0 50%; justify-content: flex-end; }
  .site-header__cta { display: none; }
}

/* === Component: section-heading (yellow Roboto 600, 40px, centred) === */
.section-heading { margin-bottom: 20px; font-family: var(--font-heading); font-size: 40px; font-weight: 600; line-height: 40px; color: var(--color-yellow); text-align: center; }

/* === Component: hero (patterned dark band, big logo, two buttons) === */
.hero { display: flex; align-items: center; justify-content: center; min-height: 800px; padding: 0 var(--gutter); background: url("/wp-content/uploads/2023/04/Group-109.png") center / cover no-repeat; }
.hero__inner { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 10px; }
.hero__logo { display: block; width: 300px; height: 408px; }
.button-group { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 767px) {
  .hero { min-height: 500px; }
  .hero__inner { gap: 32px; }
  .hero__logo { width: 200px; height: 300px; }
}

/* === Component: about-card (yellow rounded card, two columns: text + photo | photo) === */
.about { margin-block: 120px; }
.about__spacer { height: 50px; margin-bottom: 20px; }
.about-card { display: grid; grid-template-columns: 1fr 1fr; background: var(--color-yellow); border-radius: var(--radius-card); }
.about-card__col { padding: 30px; min-width: 0; }
.about-card__text { display: flow-root; margin-bottom: 20px; color: var(--color-dark); }
.about-card__text p { margin-block: 16px; }
.about-card__col img { display: block; width: 100%; height: auto; }
.about-card__col--offset { padding-top: 149px; } /* the original's two spacers (29px + 50px, 20px gaps) */
@media (max-width: 767px) {
  .about-card { grid-template-columns: 1fr; }
  .about-card__col--offset { padding-top: 30px; }
}

/* === Component: carousel (Swiper image carousel; library CSS in /assets/vendor/swiper-14.3.0/) === */
.food__spacer { height: 10px; margin-bottom: 20px; }
.carousel { margin-bottom: 20px; }
.carousel .swiper-slide img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
/* Without JS (or before Swiper starts) show the first slides in a row instead of a stack. */
.carousel:not(.swiper-initialized) .swiper-wrapper { display: flex; overflow: hidden; }
.carousel:not(.swiper-initialized) .swiper-slide { flex: 0 0 100%; }
@media (min-width: 1024px) { .carousel:not(.swiper-initialized) .swiper-slide { flex-basis: calc(100% / 3); } }

/* === Component: app-band (yellow striped band, app copy + phone mockup) === */
.app-band { margin-top: 50px; padding: 60px var(--gutter); background: url("/wp-content/uploads/2023/04/mockupbg.png") 0 0 / contain repeat; }
.app-band__inner { display: grid; grid-template-columns: 1fr 1fr; max-width: var(--container); margin-inline: auto; }
.app-band__col { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 10px; min-width: 0; }
.app-band__title { margin-bottom: 20px; font-family: var(--font-body); font-size: 35px; line-height: 35px; text-transform: uppercase; color: var(--color-black); }
.app-band__text { display: flow-root; margin-bottom: 20px; font-size: 20px; }
.app-band__text p { margin-block: 20px; }
.app-band__button { margin-bottom: 20px; }
.app-band__mockup { align-items: center; }
.app-band__mockup img { display: block; width: 54%; height: auto; }
@media (max-width: 1024px) { .app-band__mockup img { width: 85%; } }
@media (max-width: 767px) {
  .app-band__inner { grid-template-columns: 1fr; }
  .app-band__col { justify-content: flex-start; }
}
.app-badges { display: inline-block; line-height: 0; }
.app-badges img { display: block; width: 162px; height: auto; }

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

/* === Component: site-footer (contact section: 4 columns, divider, copyright + credit) ===
 * id="contact" is the nav's "Contact us" target.
 * Address/hours paragraphs: the original used line-height 12px on 24px text with 24px margins
 * (36px per line); here line-height 24px + 12px margins keeps the same 36px rhythm without
 * the overlapping wrapped lines the original had at tablet width (decision d10).
 */
.site-footer { padding: 0 var(--gutter); background: var(--color-dark); color: var(--color-white); }
.site-footer__inner { max-width: var(--container-wide); margin-inline: auto; padding: 10px; }
.site-footer__columns { display: grid; grid-template-columns: repeat(4, 1fr); }
.site-footer__col { padding: 10px; min-width: 0; }
.site-footer__heading { margin-bottom: 20px; font-family: var(--font-footer); font-size: 24px; font-weight: 700; line-height: 24px; color: var(--color-white); }
.site-footer__links { list-style: none; margin: 0; padding: 0; }
.site-footer__links li + li { margin-top: 20px; }
.site-footer__text { padding-block: 6px; font-family: var(--font-body); font-size: 24px; line-height: 24px; overflow-wrap: anywhere; }
.site-footer__text p { margin-block: 12px; }
.site-footer__text--hours { text-transform: uppercase; }
.site-footer__divider { width: 90%; margin: 60px 0 35px; padding: 0; border: 0; border-top: 1px solid var(--color-divider); }
.site-footer__copyright { padding: 5px; font-family: var(--font-footer); font-size: 24px; font-weight: 200; line-height: 24px; color: var(--color-white); }
.site-footer__copyright strong { font-weight: 400; }
.site-footer__copyright a { text-decoration: none; }
.site-footer__copyright a:hover { text-decoration: underline; }
@media (max-width: 1024px) {
  .site-footer { padding: 30px; }
  .site-footer__heading { font-size: 16px; line-height: 16px; }
  .site-footer__divider { margin-inline: auto; }
  .site-footer__copyright { text-align: center; }
}
@media (max-width: 767px) {
  .site-footer { margin-block: 50px; }
  .site-footer__columns { grid-template-columns: 1fr; }
  .site-footer__copyright { font-size: 16px; line-height: 16px; }
}

/* === Component: contact-email (no form on this site; kept for the estate's shared conventions) === */
.contact-email { display: grid; gap: 16px; justify-items: start; }
.contact-email__address { word-break: break-word; }

/* === Component: reveal (GSAP; not used on this site) === */
.reveal-ready [data-reveal] { visibility: hidden; }

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

/* === Page: /404.html === */
.not-found { padding-block: 120px; text-align: center; }
.not-found__text { margin-bottom: 32px; font-size: 20px; line-height: 24px; color: var(--color-white); }

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