/*
 * site.css: the only stylesheet for wingshun.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; media queries can't use custom properties):
 *   mobile  <= 767px    tablet 768px-1024px    desktop >= 1025px
 *   The nav collapses to a burger at <= 1024px (Elementor "dropdown: tablet").
 *
 * Templates (class on <body>):
 *   .template-home   /            header with phone + 220px logo, 16px nav
 *   .template-inner  /gallery/, /offers/, 404   66px logo, 24px nav that wraps to two lines
 *
 * Editing: change tokens to restyle the site; add new components as new blocks;
 * add modifier classes (.card--wide) instead of changing a component for one page.
 */

/* ============ 1. Tokens ============ */
:root {
  /* Colours (from the original's computed styles) */
  --color-orange: #ee7900;       /* header bar, review tile */
  --color-yellow: #f9e87e;       /* quote tile */
  --color-button-bg: #f9e980;    /* "Order Now" slide button */
  --color-red: #c71b28;          /* footer headings, slide button text/border */
  --color-cream: #f7f0c3;        /* footer */
  --color-grey-bg: #eeeeee;      /* content band behind tiles, gallery, offers card */
  --color-offers-text: #7a7a7a;  /* offers copy */
  --color-text: #333333;
  --color-black: #000000;
  --color-white: #ffffff;
  --color-dropdown-bg: #f7f7f7;  /* mobile menu */
  --color-dropdown-text: #33373d;
  --color-dropdown-active: #54595f;
  --color-arrow: rgb(237 237 237 / 0.9);
  --color-overlay: rgb(0 0 0 / 0.5); /* inner-page slides */

  /* Typography */
  --font-body: "Open Sans", Arial, sans-serif;
  --font-button: "Roboto", Arial, sans-serif;

  /* Layout */
  --container-wide: 1300px;      /* tiles, offers card */
  --container: 1140px;           /* gallery, footer */
  --hero-height: 400px;
  --header-border: 3px;

  /* Motion (original timings) */
  --duration: 300ms;
  --ease: ease;
}

/* ============ 2. Fonts ============ */
/* Google Fonts (SIL OFL), self-hosted latin subset variable files. Weights used: Open Sans 300/400/700, Roboto 500. */
@font-face { font-family: "Open Sans"; src: url("/assets/fonts/open-sans-latin-variable.woff2") format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("/assets/fonts/roboto-latin-variable.woff2") format("woff2"); font-weight: 100 900; 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, video, iframe { max-width: 100%; }
img, video { height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0 0 1.5em; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--color-black); outline-offset: 2px; }
@media (max-width: 767px) {
  body { font-size: 15px; line-height: 1.66; }
}

/* ============ 4. Layout ============ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; }
.container--wide { max-width: var(--container-wide); }
.band { background: var(--color-grey-bg); padding-block: 50px; }
@media (max-width: 767px) {
  .band { padding-block: 0; }
}

/* ============ 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 (inline SVG symbols defined in the header partial) === */
.icon { display: inline-block; width: 1em; height: 1em; fill: currentColor; flex: none; }

/* === Component: site-header ===
 * Orange bar, not sticky, 3px white bottom line. Three equal columns on desktop:
 * phone (home only) | logo | nav. Burger + dropdown at <= 1024px.
 */
.site-header { position: relative; z-index: 50; background: var(--color-orange); border-bottom: var(--header-border) solid var(--color-white); }
.site-header__inner { display: grid; grid-template-columns: 576fr 278fr 576fr; align-items: center; } /* home: 40% / 19.3% / 40% as the original */
.template-inner .site-header__inner { grid-template-columns: repeat(3, 1fr); }
.site-header__phone { display: flex; align-items: center; gap: 0; margin: 0; padding-left: 26px; color: var(--color-white); font-size: 26px; line-height: 1.5; }
.site-header__phone .icon { width: 33px; font-size: 26px; }
.site-header__phone span { padding-left: 16px; }
.site-header__logo { display: flex; justify-content: center; padding-block: 10px; }
.site-header__logo img { width: 220px; }
.site-nav { display: flex; justify-content: center; }
.site-nav__list { display: flex; flex-wrap: wrap; justify-content: center; list-style: none; margin: 0; padding: 0; }
.site-nav__list a { display: block; padding: 35px 20px; color: var(--color-white); font-weight: 700; font-size: 16px; line-height: 20px; text-decoration: none; transition: all 0.4s; }
.nav-toggle { display: none; justify-self: end; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -5.5px -5.5px -5.5px 0; padding: 0; border: 0; border-radius: 3px; background: none; color: var(--color-white); font-size: 22px; cursor: pointer; }
.nav-toggle .icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .icon--open { display: none; }
.nav-toggle[aria-expanded="true"] .icon--close { display: inline-block; }

/* Inner pages: small logo, empty left column, bigger nav that wraps */
.template-inner .site-header__phone { visibility: hidden; }
.template-inner .site-header__logo img { width: 66px; }
.template-inner .site-nav__list a { font-size: 24px; }

@media (max-width: 1024px) {
  .site-header__inner { grid-template-columns: 1fr 1fr; padding: 20px; }
  .site-header__phone { display: none; }
  .nav-toggle { display: inline-flex; }
  /* Dropdown under the header, full width, overlays the page (as the original) */
  .site-nav { position: absolute; inset: calc(100% + var(--header-border)) 0 auto 0; display: grid; grid-template-rows: 0fr; align-items: stretch; justify-content: stretch; background: var(--color-dropdown-bg); transition: grid-template-rows 0.3s; }
  .site-nav.is-open { grid-template-rows: 1fr; }
  .site-nav__list { display: block; min-height: 0; overflow: hidden; }
  .site-nav__list a { padding: 10px 20px; color: var(--color-dropdown-text); }
  .site-nav__list a[aria-current="page"] { background: var(--color-dropdown-active); color: var(--color-white); }
  .site-nav:not(.is-open) .site-nav__list { visibility: hidden; transition: visibility 0s 0.3s; }
  .template-inner .site-header__inner { grid-template-columns: 1fr 1fr 1fr; }
  .template-inner .site-header__logo { grid-column: 2; }
  .template-inner .nav-toggle { grid-column: 3; }
}
@media (max-width: 767px) {
  .site-header__logo img { width: 94px; }
  .template-inner .site-header__inner { grid-template-columns: 1fr; }
  .template-inner .site-header__logo { grid-column: 1; }
  .template-inner .site-header__logo img { width: 123px; }
  .template-inner .nav-toggle { grid-column: 1; }
}

/* === Component: hero-slider (Elementor "Slides" rebuilt; Swiper on inner pages, static on home) ===
 * 400px high, background image cover, whole slide is the order link.
 */
.hero-slider { position: relative; height: var(--hero-height); overflow: hidden; background: #833ca3; }
.hero-slider .swiper { height: 100%; --swiper-navigation-size: 60px; --swiper-navigation-color: var(--color-arrow); --swiper-navigation-sides-offset: 10px; }
.hero-slider .swiper-slide, .hero-slide { position: relative; height: var(--hero-height); overflow: hidden; }
.hero-slide__bg { position: absolute; inset: 0; background-color: #833ca3; background-size: cover; background-position: center; }
.hero-slide__bg--overlay::after { content: ""; position: absolute; inset: 0; background: var(--color-overlay); }
.hero-slide__link { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; padding: 50px; color: var(--color-white); text-align: center; text-decoration: none; }
.hero-slide__content { max-width: min(400px, 68vw); }
.hero-slide__heading { margin: 0 0 30px; font-size: 35px; font-weight: 700; line-height: 1; }
.hero-slide__button { display: inline-block; padding: 12px 24px; border: 1px solid var(--color-red); background: var(--color-button-bg); color: var(--color-red); font-family: var(--font-button); font-size: 15px; font-weight: 500; line-height: 1; transition: all 0.3s; }
.hero-slider .swiper-button-prev, .hero-slider .swiper-button-next { width: 60px; height: 60px; margin-top: -30px; padding: 0; border: 0; background: none; cursor: pointer; }
.hero-slider .swiper-button-prev svg, .hero-slider .swiper-button-next svg { width: 60px; height: 60px; }
.hero-slider .swiper-button-prev::after, .hero-slider .swiper-button-next::after { display: none; }
.hero-slider .swiper-pagination { bottom: 12px; }
.hero-slider .swiper-pagination-bullet { width: 15px; height: 15px; margin: 0 6px; background: var(--color-black); opacity: 0.2; }
.hero-slider .swiper-pagination-bullet-active { background: var(--color-white); opacity: 1; }
@media (max-width: 767px) {
  .hero-slide__link { padding: 30px; }
  .hero-slide__heading { font-size: 23px; }
}

/* === Component: tiles (home 2x2 grid: image | review widget / quote | image) === */
.tiles__row { display: grid; grid-template-columns: 1fr 1fr; }
.tile { display: flex; flex-direction: column; justify-content: center; min-height: 380px; padding: 0 12%; }
.tile--image { padding: 0; background-size: cover; background-position: center; }
.tile--orange { background: var(--color-orange); }
.tile--yellow { background: var(--color-yellow); }
@media (max-width: 767px) {
  .tiles__row { grid-template-columns: 1fr; }
  .tiles__row--reverse-mobile > :first-child { order: 2; }
  .tile { min-height: 0; padding: 50px 8%; }
  .tile--image { min-height: 380px; padding: 0; }
}

/* === Component: quote (big quote marks around an uppercase line) === */
.quote__mark { display: flex; margin-bottom: 20px; font-size: 50px; color: var(--color-black); }
.quote__mark--close { justify-content: flex-end; margin-bottom: 0; }
.quote__text { margin: 0 0 20px; padding-inline: 50px; color: var(--color-black); font-size: 45px; font-weight: 300; line-height: 1; text-align: center; text-transform: uppercase; }
@media (max-width: 1024px) {
  .quote__text { font-size: 19px; }
}
@media (max-width: 767px) {
  .quote__text { padding-inline: 0; }
}

/* === Component: ta-widget (TripAdvisor provider embeds, carried over unchanged) === */
.ta-widget { text-align: center; }
.ta-widget img { display: inline; }
.ta-widget > div { display: inline-block; text-align: left; }

/* === Component: gallery (WordPress gallery, 4 columns of 300x200 thumbs; GLightbox opens a.glightbox) === */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); row-gap: 7px; }
.gallery__item { margin: 0; padding-right: 16px; }
.gallery__item img { width: 100%; height: auto; transition: filter 0.2s ease-in; }
@media (max-width: 767px) {
  .gallery { grid-template-columns: 1fr; row-gap: 8px; padding: 15px 30px; }
  .gallery__item { padding-right: 0; }
  .gallery__item img { width: 300px; }
}

/* === Component: offers-card (white card of centred text) === */
.offers-card { padding: 50px; background: var(--color-white); color: var(--color-offers-text); text-align: center; }
.offers-card p { margin: 0 0 24px; }
.offers-card b { font-weight: 700; }
@media (max-width: 767px) {
  .offers-card p { margin-bottom: 22.5px; }
}

/* === Component: map === */
.map { display: block; width: 100%; height: 400px; border: 0; }
@media (max-width: 1024px) {
  .map { height: 350px; }
}

/* === Component: site-footer (cream; heading + icon + text columns; copyright line) === */
.site-footer { display: flow-root; padding-top: 50px; background: var(--color-cream); text-align: center; }
.site-footer__cols { display: grid; grid-template-columns: repeat(var(--footer-cols, 2), 1fr); padding: 10px; }
.site-footer--three .site-footer__cols { --footer-cols: 3; }
.site-footer__col { padding: 10px; }
.site-footer__heading { margin: 0 0 20px; color: var(--color-red); font-size: 26px; font-weight: 700; line-height: 1; text-transform: uppercase; }
.site-footer__icon { display: flex; justify-content: center; height: 47px; margin-bottom: 20px; font-size: 40px; color: var(--color-black); line-height: 1; }
.site-footer__text { margin: 0 0 1.5em; color: var(--color-black); font-size: 28px; line-height: 1.5; }
.site-footer--three .site-footer__text { margin-bottom: 0; } /* inner footer: no space after the text, as the original */
.site-footer__badge { display: flex; justify-content: center; }
.site-footer__copyright { padding: 30px 10px 0; }
.site-footer__copyright p { margin: 0 0 28.5px; color: var(--color-black); font-size: 19px; line-height: 1.5; }
.site-footer__copyright a { color: var(--color-black); text-decoration: underline; }
@media (max-width: 1024px) {
  .site-footer { padding-top: 0; }
  .site-footer__text { font-size: 20px; }
}
@media (max-width: 767px) {
  .site-footer__cols { grid-template-columns: 1fr; }
  .site-footer__heading { font-size: 20px; }
  .site-footer__text { line-height: 1.66; margin-bottom: 30px; }
  .site-footer--three .site-footer__text { margin-bottom: 0; }
  .site-footer__copyright p { line-height: 1.66; }
}

/* === Component: social (round outlined icon links) === */
.social { display: flex; justify-content: center; gap: 10px; margin-bottom: 20px; }
.social__link { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 3px solid var(--color-black); border-radius: 50%; color: var(--color-black); font-size: 20px; transition: all 0.3s; }

/* === Component: to-top (fixed button, appears after 100px of scrolling) === */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 9999; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 5px; border-radius: 5px; background: var(--color-black); color: var(--color-white); font-size: 32px; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0s 0.3s; }
.to-top.is-visible { opacity: 0.5; visibility: visible; transition: opacity 0.3s; }

/* === Component: slider (Swiper; library CSS in /assets/vendor/swiper-14.3.0/) === */
.swiper { --swiper-theme-color: var(--color-white); }

/* === Component: lightbox (GLightbox; library CSS in /assets/vendor/glightbox-3.3.1/) === */
.glightbox-clean .gslide-description { background: transparent; }
.glightbox-clean .gslide-title { margin: 0; color: var(--color-white); font-family: var(--font-body); font-size: 14px; text-align: center; }

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

/* === Component: not-found (404 message) === */
.not-found { padding: 50px; background: var(--color-white); color: var(--color-offers-text); text-align: center; }
.not-found h1 { margin-bottom: 24px; color: var(--color-red); font-size: 35px; font-weight: 700; line-height: 1.2; }
.not-found ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 30px; margin: 0; padding: 0; list-style: none; }
.not-found a { color: var(--color-red); font-weight: 700; }

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