/*
 * site.css: the only stylesheet for wildmangoexpress.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 sections of the one-page home: "=== Page: / ... ==="
 *   7. Utilities     a handful of helpers
 *
 * Breakpoints (from the original Elementor site; media queries can't use custom properties):
 *   mobile  <= 767px    tablet 768px-1024px    desktop >= 1025px
 *
 * Values were taken from the original's computed styles (Elementor page 14).
 */

/* ============ 1. Tokens ============ */
:root {
  --color-navy: #323272;        /* nav links, Download App button, contact + footer background */
  --color-orange: #f7931e;      /* headings, nav underline, card overlay, divider */
  --color-text: #3d4459;        /* body copy */
  --color-black: #000000;
  --color-white: #ffffff;
  --color-toggle: #33373d;      /* burger icon and mobile dropdown links */
  --color-facebook: #3b5998;
  --color-instagram: #262626;

  --font-body: Helvetica, sans-serif;   /* the original's "Helvetica", Sans-serif stack (system font, no file) */
  --font-nav: Roboto, sans-serif;       /* nav menu only, self-hosted 600 */

  --heading-size: 42px;                 /* section headings: 42 / 35 (tablet) / 28 (mobile) */
  --container: 1200px;
  --header-container: 1140px;
  --shadow-soft: 0 0 30px 0 rgb(0 0 0 / 0.12);

  --duration: 300ms;
  --duration-gallery: 800ms;
  --ease: ease;
}
@media (max-width: 1024px) { :root { --heading-size: 35px; } }
@media (max-width: 767px) { :root { --heading-size: 28px; } }

/* ============ 2. Fonts ============ */
@font-face { font-family: "Roboto"; src: url("/assets/fonts/roboto-600-latin.woff2") format("woff2"); font-weight: 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%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.5; color: var(--color-text); background: var(--color-white); overflow-x: hidden; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-body); margin: 0; }
p { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--color-orange); outline-offset: 2px; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ============ 4. Layout ============ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; }

/* ============ 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-navy); }
.skip-link:focus { left: 16px; }

/* === Component: site-header === */
/* Static (not sticky) header: logo + "Burgess Hill" | menu | social icons, 14% / 71% / 14.3% columns. */
.site-header { position: relative; z-index: 50; margin: 10px 0; background: var(--color-white); }
.site-header__inner { display: flex; align-items: center; max-width: var(--header-container); min-height: 89px; margin-inline: auto; }
.site-header__brand { width: 14%; padding: 10px; text-align: center; }
.site-header__logo { display: inline-block; vertical-align: top; }
.site-header__logo img { width: 140px; max-width: 100%; }
.site-header__place { font-size: 24px; font-weight: 300; line-height: 1; color: var(--color-black); }
.site-header__menu { width: 71%; padding: 10px; display: flex; justify-content: flex-end; }
.site-header .social { width: 14.305%; padding: 10px; }
@media (max-width: 1024px) {
  .site-header__inner { padding: 0 5%; min-height: 100px; }
  .site-header__brand, .site-header__menu, .site-header .social { padding: 5px; }
  .site-header__logo img { width: auto; }
  .site-header__menu { justify-content: center; }
}
@media (max-width: 767px) {
  .site-header__inner { padding: 0; min-height: 60px; }
  .site-header__brand { width: 40%; }
  .site-header__logo img { width: 120px; }
  .site-header__menu { width: 20%; }
  .site-header .social { width: 40%; }
}

/* === Component: nav (Elementor Pro nav menu look: underline pointer that fades in) === */
.site-nav__list { display: flex; list-style: none; margin: 0; padding: 0; }
.site-nav__list a { position: relative; display: block; padding: 13px 20px; font-family: var(--font-nav); font-size: 16px; font-weight: 600; line-height: 20px; color: var(--color-navy); text-decoration: none; }
.site-nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--color-orange); opacity: 0; transition: opacity var(--duration) var(--ease); }
.site-nav__list a:hover::after, .site-nav__list a:focus-visible::after { opacity: 1; }
.nav-toggle { display: none; position: relative; align-items: center; justify-content: center; width: 33px; height: 33px; padding: 5.5px; border: 0; border-radius: 3px; background: rgb(0 0 0 / 0.05); color: var(--color-toggle); cursor: pointer; }
.nav-toggle::after { content: ""; position: absolute; inset: -6px; } /* 44px tap target */
.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; }
@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
  /* Dropdown: full width under the header, white, centred items; grid 0fr -> 1fr slide (0.3s, as the original). */
  .site-nav { position: absolute; left: 0; right: 0; top: calc(50% + 16.5px); /* just under the burger */ display: grid; grid-template-rows: 0fr; align-items: stretch; visibility: hidden; background: var(--color-white); 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; text-align: center; }
  .site-nav__list a { padding: 13px 20px; color: var(--color-toggle); }
  .site-nav__list a::after { display: none; }
  .site-nav__list a:hover { background: rgb(0 0 0 / 0.04); }
}
@media (max-width: 767px) {
  .site-nav { top: calc(50% + 16.5px + 45px); } /* 45px below the burger, as the original */
  .site-nav__list a { padding-block: 26px; }
}

/* === Component: social (square icons, 32px, radius 10%) === */
.social { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 26px; list-style: none; margin: 0; }
.social__link { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 10%; color: var(--color-white); transition: opacity var(--duration) var(--ease); }
.social__link:hover { opacity: 0.9; }
.social__link svg { width: 16px; height: 16px; fill: currentColor; }
.social__link--facebook { background: var(--color-facebook); }
.social__link--instagram { background: var(--color-instagram); }
@media (max-width: 767px) { .social { justify-content: space-between; padding-inline: 12px !important; } }

/* === Component: wave (Elementor "waves" shape divider, white, stretched wider than the section) === */
/* Modifiers set width/height per section; --wave-w is the SVG width as a % of the section. */
.wave { position: absolute; left: 0; width: 100%; overflow: hidden; line-height: 0; pointer-events: none; z-index: 1; }
.wave--top { top: -1px; }
.wave--bottom { bottom: -1px; transform: rotate(180deg); }
.wave svg { display: block; position: relative; left: 50%; width: calc(var(--wave-w, 100%) + 1.3px); max-width: none; height: var(--wave-h, 100px); transform: translateX(-50%) rotateY(180deg); fill: var(--color-white); }

/* === Component: section-heading === */
.section-heading { font-size: var(--heading-size); font-weight: 600; line-height: 1.2; color: var(--color-orange); }

/* === Component: button (outline pill on the cards, filled navy "Download App"; arrow after the text) === */
.button { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-body); font-weight: 700; text-decoration: none; transition: background-color var(--duration) var(--ease), color var(--duration) var(--ease); }
.button svg { width: 1em; height: 1em; fill: currentColor; flex: none; }
.button--outline { padding: 10px 20px; border: 2px solid var(--color-white); border-radius: 15px; font-size: 16px; line-height: 1; color: var(--color-white); background: transparent; }
.button--app { padding: 20px 40px; border-radius: 30px; font-size: 18px; line-height: 1; color: var(--color-white); background: var(--color-navy); box-shadow: 0 0 30px 0 rgb(0 0 0 / 0.1); }
.button--app:hover, .button--app:focus-visible { background: var(--color-orange); }

/* === Component: card (Order Online / View Our Menu: photo background, orange overlay, rounded 15/70) === */
.card { position: relative; margin: 3%; padding: 14%; border-radius: 15px 15px 15px 70px; overflow: hidden; background-color: var(--color-white); background-repeat: repeat; box-shadow: 0 0 20px 0 rgb(0 0 0 / 0.05); color: var(--color-white); }
.card::before { content: ""; position: absolute; inset: 0; background: var(--color-orange); opacity: 0.8; }
.card > * { position: relative; }
.card--order { background-image: url("/wp-content/uploads/2020/06/tastebg.jpg"); }
.card--menu { background-image: url("/wp-content/uploads/2020/06/phpgqTZTW.jpg"); }
.card__title { margin: 20px 0; font-size: 20px; font-weight: 600; line-height: 1.15; }
.card__text { margin-bottom: 20px; font-size: 16px; line-height: 1.4; }
@media (max-width: 1024px) { .card__text { font-size: 15px; } }
@media (max-width: 767px) { .card { padding: 10%; text-align: center; } }

/* === Component: gallery (masonry 4/2/1 columns, 10px gap, hover overlay; GLightbox opens a.glightbox) === */
/* Masonry without JS: grid rows are 1/100 of a column's width, each item spans its aspect ratio
   (--span = image height as % of width, +3 rows for the 10px gap), and dense packing puts each
   item in the shortest column, as Elementor did. */
.gallery { container-type: inline-size; }
.gallery__grid { --cols: 4; margin: 0 0 -10px; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(var(--cols), 1fr); grid-auto-rows: calc((100cqi - (var(--cols) - 1) * 10px) / var(--cols) / 100); grid-auto-flow: row dense; column-gap: 10px; }
.gallery__item { grid-row-end: span var(--span); padding-bottom: 10px; }
/* --span = round(thumbnail height / width x 100) + 3 (the 10px gap); add a class for a new value. */
.gallery__item--span-59 { --span: 59; }
.gallery__item--span-69 { --span: 69; }
.gallery__item--span-73 { --span: 73; }
.gallery__item--span-76 { --span: 76; }
.gallery__item--span-78 { --span: 78; }
.gallery__item--span-153 { --span: 153; }
.gallery__item a { position: relative; display: block; height: 100%; overflow: hidden; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.gallery__item a::after { content: ""; position: absolute; inset: 0; background: rgb(0 0 0 / 0.5); opacity: 0; transition: opacity var(--duration-gallery) var(--ease); }
.gallery__item a:hover::after, .gallery__item a:focus-visible::after { opacity: 1; }
@media (max-width: 1023px) { .gallery__grid { --cols: 2; } } /* the original gallery still showed 4 columns at exactly 1024px */
@media (max-width: 767px) { .gallery__grid { --cols: 1; } }
.glightbox-clean .gslide-description { background: #fff; }

/* === Component: site-footer (navy bar: copyright line + Powered by OrderYOYO) === */
.site-footer { background: var(--color-navy); color: var(--color-white); }
.site-footer__inner { max-width: 1140px; margin-inline: auto; padding: 10px; text-align: center; }
.site-footer__copyright { font-size: 16px; font-weight: 400; line-height: 1; }
.site-footer__credit { margin-top: 6px; font-size: 13px; line-height: 1.4; opacity: 0.85; }
.site-footer__credit a { color: inherit; }

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

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

/* === Page: / hero === */
.hero { position: relative; display: flex; align-items: center; min-height: 600px; padding: 0 10px; background: #ddd url("/wp-content/uploads/2020/06/phpuCFTjt.jpg") right center / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--color-black); opacity: 0.26; }
.hero .wave { --wave-w: 260%; --wave-h: 120px; }
.hero__title { position: relative; z-index: 2; width: 100%; max-width: 1180px; margin-inline: auto; font-size: var(--heading-size); font-weight: 600; line-height: 1.2; text-align: center; color: var(--color-white); text-shadow: 3px 3px 10px rgb(0 0 0 / 0.66); }
@media (min-width: 1025px) { .hero { background-attachment: fixed; } }
@media (max-width: 1024px) {
  .hero { min-height: 350px; padding: 0 calc(5% + 5px); }
  .hero .wave--bottom { --wave-h: 195px; }
}
@media (max-width: 767px) {
  .hero { min-height: 318px; padding: 10% calc(5% + 5px) 0; }
  .hero .wave { --wave-h: 50px; }
}

/* === Page: / our story === */
.story { display: flow-root; padding-top: 68px; }
.story__inner { display: flex; margin-top: 42px; }
.story__aside { display: flex; flex-direction: column; justify-content: center; width: 30.083%; padding: 0 10px; }
.story__aside .section-heading { margin-bottom: calc(26% + 20px); }
.story__media { margin-top: -10%; }
.story__media img { width: 100%; border-radius: 200px 100px 100px 100px; box-shadow: var(--shadow-soft); }
.story__text { width: 69.917%; padding: 26px; font-size: 16px; line-height: 26px; color: var(--color-text); }
.story__text p { margin: 16px 0; }
@media (max-width: 1024px) {
  .story__aside { display: none; }
  .story__text { width: 100%; text-align: center; }
}
@media (max-width: 767px) {
  .story { padding: 0 20px; }
  .story__inner { margin-top: 20px; }
  .story__text { margin-top: 50px; padding: 0; }
}

/* === Page: / order cards === */
.cards { margin-top: 26px; padding: 10px 0; }
.cards__inner { display: grid; grid-template-columns: 1fr 1fr; max-width: 1180px; margin: 50px auto; }
@media (max-width: 1024px) {
  .cards { margin-top: 0; padding: 10px; }
  .cards__inner { margin: 5% auto 0; }
}
@media (max-width: 767px) {
  .cards__inner { grid-template-columns: 1fr; margin-top: 10%; padding: 0 2%; }
}

/* === Page: / free mobile app (empty left column kept, faded blob shapes behind) === */
.app { position: relative; }
.app::before { content: ""; position: absolute; inset: 0; background: url("/wp-content/uploads/2020/06/BG-Join-Clients.png") center / cover no-repeat; opacity: 0.5; filter: saturate(0); }
.app__inner { position: relative; display: flex; align-items: center; min-height: 830px; }
.app__spacer { width: 50%; }
.app__content { width: 50%; padding: 16px; }
.app__content > * { margin-left: 0; }
.app__text { display: flow-root; margin: 20px 0; font-size: 20px; line-height: 48px; color: var(--color-text); }
.app__text p { margin: 1em 0; }
@media (max-width: 1024px) { .app__content { padding: 0 0 0 3.5%; } } /* 7% of the column */
@media (max-width: 767px) {
  .app { padding: 25% 5% 0; }
  .app__inner { display: block; min-height: 830px; padding-top: 138px; }
  .app__spacer { display: none; }
  .app__content { width: 100%; padding: 5%; text-align: center; }
  .app__text { font-size: 16px; line-height: 26px; }
}

/* === Page: / catering + gallery (dark photo background, waves, orange pattern divider) === */
.catering { position: relative; padding: 110px 0; background: #fff url("/wp-content/uploads/2020/06/tastebg.jpg") center / cover no-repeat; }
.catering::before { content: ""; position: absolute; inset: 0; background: var(--color-black); opacity: 0.8; }
.catering .wave--top { --wave-w: 204%; --wave-h: 26px; }
.catering .wave--bottom { --wave-w: 260%; --wave-h: 72px; }
.catering__inner { position: relative; z-index: 2; display: flex; flex-direction: column; padding: 42px 0; } /* flex: widget margins add up as in Elementor */
.catering .section-heading { text-align: center; }
.catering__text { display: flow-root; margin: 20px 0 0; font-size: 20px; line-height: 48px; text-align: center; color: var(--color-white); }
.catering__text p { margin: 1em 0; }
.divider { margin: 88px 0 68px; padding: 15px 0; }
.divider__line { display: block; width: 61%; height: 26.6px; margin: 0 auto; background-color: var(--color-orange);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none' overflow='visible' height='100%25' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='square' stroke-miterlimit='10'%3E%3Cpath d='M0,6c6,0,6,13,12,13S18,6,24,6'/%3E%3C/svg%3E") left center / 52.55% 100% repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none' overflow='visible' height='100%25' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='square' stroke-miterlimit='10'%3E%3Cpath d='M0,6c6,0,6,13,12,13S18,6,24,6'/%3E%3C/svg%3E") left center / 52.55% 100% repeat-x; }
.catering .gallery { margin: 62px 0 26px; }
@media (min-width: 1025px) { .catering { background-attachment: fixed; } }
@media (max-width: 1024px) {
  .catering { padding: 120px 26px 26px; }
  .catering .wave--top { --wave-h: 70px; }
  .catering__inner { padding: 0; }
}
@media (max-width: 767px) {
  .catering { padding: 68px 0 0; }
  .catering__inner { padding: 5%; }
  .catering__text { font-size: 16px; line-height: 26px; }
}

/* === Page: / contact (navy, CTA shapes, wave on top, decorative blob photo) === */
.contact { position: relative; margin-top: 50px; padding: 110px 0 50px; background: var(--color-navy); color: var(--color-white); }
.contact::before { content: ""; position: absolute; inset: 0; background: url("/wp-content/uploads/2020/06/CTA-Shapes.png") center / cover no-repeat; opacity: 0.15; }
.contact .wave--top { --wave-w: 230%; --wave-h: 100px; }
.contact__inner { position: relative; z-index: 2; display: flex; }
.contact__col { display: flex; flex-direction: column; justify-content: flex-end; padding: 50px 30px 0 0; }
.contact__col--address { width: 18.333%; }
.contact__col--phone { width: 39.917%; }
.contact__col--media { width: 41.414%; justify-content: center; padding: 0; }
.contact__title { font-size: var(--heading-size); font-weight: 600; line-height: 1.2; }
.contact__text { display: flow-root; margin: 20px 0 0; font-size: 20px; line-height: 48px; }
.contact__text p { margin: 1em 0; }
.contact__col--phone .contact__text { margin-top: 0; }
.contact__hygiene { width: 112px; }
.contact__media { margin-left: auto; }
.contact__media img { border-radius: 300px 100px 100px 100px; box-shadow: var(--shadow-soft); }
@media (max-width: 1024px) {
  .contact { padding: 120px 26px 26px; }
  .contact::before { background-position: left center; }
  .contact .wave--top { --wave-h: 70px; }
  .contact__col { padding: 0; }
  .contact__col--media { padding-left: 20px; }
}
@media (max-width: 767px) {
  .contact { margin-top: 0; padding: 68px 0 0; }
  .contact__inner { display: block; }
  .contact__col { width: 100% !important; padding: 5%; text-align: center; }
  .contact__col--media { padding: 16px; }
  .contact__media { margin: 0 0 42px; }
}

/* === Page: /404.html === */
.not-found { padding: 80px 20px 100px; text-align: center; }
.not-found p { margin-top: 20px; font-size: 20px; line-height: 1.6; color: var(--color-text); }
.not-found__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }

/* ============ 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; }
  [data-reveal], [data-scroll-fade] { visibility: visible !important; }
}

