/*
 * site.css: the only stylesheet for thebridgesauchietakeaway.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        containers
 *   5. Components    one block per component: "=== Component: <name> ==="
 *   6. Pages         rare page-specific rules
 *   7. Utilities     a handful of helpers
 *
 * Breakpoints (the original Elementor ones; media queries can't use custom properties):
 *   mobile  ≤ 767px    tablet 768px–1024px    desktop ≥ 1025px
 *   The main nav collapses to the burger at ≤ 1024px (Elementor "dropdown: tablet").
 *
 * Values come from the original's Elementor CSS (post-13.css) and computed styles.
 * Editing: change tokens to restyle the site; add new components as new blocks;
 * add modifier classes instead of changing a component for one page.
 */

/* ============ 1. Tokens ============ */
:root {
  /* Colours */
  --color-white: #ffffff;
  --color-primary: #127ec0;        /* brand blue: welcome band, headings, Download App button, footer bar, nav */
  --color-primary-light: #22a1ef;  /* contact gradient start */
  --color-orange: #f58f1f;         /* image-box overlay (80%) */
  --color-text: #3d4459;           /* app section paragraph */
  --color-nav-hover: #61ce70;      /* Elementor global accent: nav hover/focus */
  --color-dropdown-text: #494c4f;  /* mobile dropdown items (Elementor Pro defaults) */
  --color-dropdown-hover: #33373d;
  --color-device: #343639;         /* phone mockup frame */

  /* Typography */
  --font-heading: "Ubuntu", sans-serif;          /* headings, image-box titles (600 → Ubuntu Bold) */
  --font-body: "Helvetica", Arial, sans-serif;   /* body text and buttons (system font, as on the original) */
  --font-nav: "Anton", sans-serif;               /* main nav (Wayback) */

  /* Layout */
  --container: 1140px;             /* Elementor kit default (header) */
  --container-wide: 1200px;        /* content sections */
  --radius-card: 15px 15px 15px 70px;
  --radius-button: 15px;
  --radius-pill: 30px;
  --shadow-card: 0 0 20px 0 rgb(0 0 0 / 0.05);
  --shadow-button: 0 0 30px 0 rgb(0 0 0 / 0.1);
  --widget-gap: 20px;              /* Elementor space between widgets */

  /* Motion (the original's timings) */
  --duration: 0.3s;
  --duration-nav: 0.4s;
}

/* ============ 2. Fonts ============ */
/* Self-hosted Google Fonts (SIL OFL), latin subset. Ubuntu has no 600: the original's
 * font-weight 600 rendered the 700 file, so only 700 is shipped. Anton has one weight;
 * the original's 600 was synthesised bold, and still is. */
@font-face { font-family: "Ubuntu"; src: url("/assets/fonts/ubuntu-700-latin.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Anton"; src: url("/assets/fonts/anton-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-text); background: var(--color-white); }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
ul { margin: 0; padding: 0; list-style: none; }

/* ============ 4. Layout ============ */
/* Elementor sections are flex boxes, so margins never collapse through them. */
main > section { display: flow-root; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; }
.container--wide { max-width: var(--container-wide); }

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

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

/* === Component: icon-sprite (inline SVG symbols in the header partial) === */
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { display: inline-block; width: 0.875em; height: 1em; fill: currentColor; flex: none; }

/* === Component: page-header (hidden page title, as on the original theme) === */
.page-header { display: none; }

/* === Component: site-header ===
 * White bar, min-height 90px + 8px padding, not sticky. Logo column 22% (max 280px logo),
 * nav column 78% with the menu right-aligned. Stacked on mobile (logo, then burger). */
.site-header { position: relative; z-index: 10; padding: 8px 0; background: var(--color-white); }
.site-header__inner { display: flex; align-items: center; min-height: 90px; }
.site-header__logo { flex: 0 0 22.018%; }
.site-header__logo img { width: 280px; }
@media (max-width: 767px) {
  .site-header__inner { flex-direction: column; align-items: stretch; }
  .site-header__logo { flex: none; }
  .site-header__logo img { margin-inline: auto; }
}

/* === Component: site-nav (restored from Wayback, manifest d1) ===
 * Desktop: Anton 16px (synthetic 600), 1px tracking, #127EC0; hover/focus #61CE70 (0.4s).
 * ≤1024px: centred burger in the nav column; the list slides down (grid rows 0fr → 1fr)
 * as a full-width white dropdown overlaying the page below the header. */
.site-nav { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; align-items: stretch; padding: 10px; }
.site-nav__list { display: flex; flex-wrap: wrap; justify-content: flex-end; }
.site-nav__list a { display: block; padding: 13px 20px; font-family: var(--font-nav); font-size: 16px; font-weight: 600; line-height: 20px; letter-spacing: 1px; color: var(--color-primary); transition: color var(--duration-nav); }
.site-nav__list a:hover, .site-nav__list a:focus-visible { color: var(--color-nav-hover); }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0 auto; padding: 0; border: 0; border-radius: 3px; background: rgb(0 0 0 / 0.05); color: var(--color-dropdown-text); cursor: pointer; }
.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; }
  .site-nav__menu { position: absolute; top: 100%; left: 0; right: 0; display: grid; grid-template-rows: 0fr; visibility: hidden; background: var(--color-white); box-shadow: 0 10px 20px rgb(0 0 0 / 0.08); transition: grid-template-rows var(--duration) ease, visibility 0s linear var(--duration); }
  .site-nav__menu.is-open { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows var(--duration) ease, visibility 0s; }
  .site-nav__list { display: block; min-height: 0; overflow: hidden; }
  .site-nav__list a { padding: 15px 20px; font-family: var(--font-body); font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--color-dropdown-text); transition: none; }
  .site-nav__list a:hover, .site-nav__list a:focus-visible { background: var(--color-dropdown-hover); color: var(--color-white); }
}

/* === Component: shape-divider (Elementor shape dividers, inline SVG) ===
 * .shape-divider--bottom is the "curve" (rotated 180°), .shape-divider--top the "waves". */
.shape-divider { position: absolute; left: 0; width: 100%; overflow: hidden; line-height: 0; direction: ltr; pointer-events: none; }
.shape-divider svg { display: block; max-width: none; position: relative; left: 50%; width: calc(100% + 1.3px); transform: translateX(-50%); }
.shape-divider path { fill: var(--shape-fill, var(--color-white)); }
.shape-divider--bottom { bottom: -1px; transform: rotate(180deg); }
.shape-divider--top { top: -1px; }

/* === Component: hero (photo band with curve divider) ===
 * background-2.jpg, 600px tall (350 tablet, 280 + 10% top padding mobile); fixed background
 * only on desktop pointers (the original only fixed it ≥1025px). */
.hero { position: relative; min-height: 600px; background: #dddddd url("/wp-content/uploads/2020/04/background-2.jpg") bottom center / cover no-repeat; --shape-fill: var(--color-primary); }
.hero .shape-divider svg { width: calc(124% + 1.3px); height: 30px; }
@media (min-width: 1025px) and (hover: hover) and (pointer: fine) {
  .hero { background-attachment: fixed; }
}
@media (max-width: 1024px) {
  .hero { min-height: 350px; background-position: center right; }
  .hero .shape-divider svg { width: calc(120% + 1.3px); }
}
@media (max-width: 767px) {
  .hero { min-height: calc(280px + 10vw); } /* 280px + the original's 10% top padding */
  .hero .shape-divider svg { height: 50px; }
}

/* === Component: stack (Elementor widget column: flex, 20px between widgets, margins don't collapse) === */
.stack { display: flex; flex-direction: column; align-items: flex-start; }
.stack > * + * { margin-top: var(--widget-gap); }
.stack p { margin: 1em 0; }

/* === Component: section-title (Ubuntu 600, 42/35/28px, capitalised) === */
.section-title { font-family: var(--font-heading); font-size: 42px; font-weight: 600; line-height: 1.2; text-transform: capitalize; color: var(--color-primary); }
.section-title--light { color: var(--color-white); }
@media (max-width: 1024px) { .section-title { font-size: 35px; } }
@media (max-width: 767px) { .section-title { font-size: 28px; } }

/* === Component: intro-band (blue "Welcome" band) === */
.intro-band { padding: 42px 0 68px; background: var(--color-primary); color: var(--color-white); }
.intro-band__inner { margin-top: 42px; padding: 26px; }
.intro-band__text { font-size: 20px; line-height: 48px; }
.intro-band__inner.stack { align-items: stretch; }
@media (max-width: 1024px) {
  .intro-band__inner { text-align: center; }
}
@media (max-width: 767px) {
  .intro-band { padding: 0 20px; }
  .intro-band__inner { margin-top: 70px; }
  .intro-band__text { font-size: 16px; line-height: 26px; }
}

/* === Component: image-box (orange photo cards with a button) === */
.image-boxes { margin-top: 26px; }
.image-boxes__inner { padding: 10px; }
.image-boxes__grid { display: grid; grid-template-columns: 1fr 1fr; margin: 50px 0; }
.image-box { position: relative; isolation: isolate; margin: 3%; padding: 14%; border-radius: var(--radius-card); background-color: var(--color-white); background-image: var(--image-box-bg); box-shadow: var(--shadow-card); color: var(--color-white); }
.image-box::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--color-orange); opacity: 0.8; }
.image-box--cover { background-position: bottom center; background-size: cover; }
.image-box__title { margin: 20px 0; font-family: var(--font-heading); font-size: 20px; font-weight: 600; line-height: normal; text-transform: capitalize; }
.image-box .image-box__text { margin: 0; font-size: 16px; line-height: 1.4; }
.image-box .button { margin-top: var(--widget-gap); }
@media (max-width: 1024px) {
  .image-boxes { margin-top: 0; }
  .image-boxes__grid { margin: 5% 0 0; }
  .image-box .image-box__text { font-size: 15px; }
}
@media (max-width: 767px) {
  .image-boxes { margin-top: 100px; }
  .image-boxes__grid { grid-template-columns: 1fr; margin-top: 10%; padding: 0 2%; }
  .image-box { padding: 10%; text-align: center; }
}

/* === Component: button ===
 * Helvetica bold, arrow icon after the label (gap 10px), Elementor "grow" hover (scale 1.1, 0.3s).
 * .button--outline: white 2px outline, 15px radius (image boxes).
 * .button--primary: solid blue pill with shadow, 18px (Download App). */
.button { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-body); font-weight: 700; line-height: 1; text-align: center; transition: transform var(--duration); }
.button:hover, .button:focus-visible { transform: scale(1.1); }
.button--outline { padding: 10px 20px; border: 2px solid var(--color-white); border-radius: var(--radius-button); background: transparent; font-size: 16px; color: var(--color-white); }
.button--primary { padding: 20px 40px; border-radius: var(--radius-pill); background: var(--color-primary); box-shadow: var(--shadow-button); font-size: 18px; text-transform: capitalize; color: var(--color-white); }
@media (max-width: 767px) {
  .button-row { align-self: center; }
}

/* === Component: app-promo (FREE Mobile App: phone mockup + text) ===
 * Faint grey blob shapes (BG-Join-Clients.png, greyscale, 50%) behind; 830px min height. */
.app-promo { position: relative; isolation: isolate; }
.app-promo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("/wp-content/uploads/2020/04/BG-Join-Clients.png") center / cover no-repeat; opacity: 0.5; filter: saturate(0); }
.app-promo__inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 830px; }
.app-promo__media { display: flex; justify-content: center; padding: 10px; }
.app-promo__body { padding: 16px; }
.app-promo__text { font-size: 20px; line-height: 48px; }
@media (max-width: 1024px) {
  .app-promo__body { padding: 0 0 0 7%; }
}
@media (max-width: 767px) {
  .app-promo { padding: 25% 5% 0; }
  .app-promo__inner { grid-template-columns: 1fr; align-content: center; }
  .app-promo__body { order: -1; padding: 5%; align-items: stretch; text-align: center; }
  .app-promo__text { font-size: 16px; line-height: 26px; }
}

/* === Component: device (phone mockup, restored Elementor Extras widget, manifest d2) ===
 * 277×574 black phone SVG; the screen (16:9 portrait, 88.8% wide, 11.7% from the top) shows
 * an image centred vertically. */
.device { position: relative; width: 277px; max-width: 100%; }
.device__shape { display: block; width: 100%; height: auto; }
.device__shape .device__body { fill: var(--color-device); }
.device__shape .device__overlay { fill: var(--color-white); fill-opacity: 0.2; }
.device__screen { position: absolute; top: 11.7%; left: 50%; width: 88.80866%; aspect-ratio: 9 / 16; transform: translateX(-50%); display: flex; align-items: center; overflow: hidden; border-radius: 3px; background: rgb(255 255 255 / 0.2); }
.device__screen img { width: 100%; }

/* === Component: contact-band (gradient Contact section with waves divider and map) === */
.contact-band { position: relative; isolation: isolate; margin-top: 50px; padding: 110px 0 50px; background: linear-gradient(130deg, var(--color-primary-light) 0%, var(--color-primary) 89%); color: var(--color-white); }
.contact-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("/wp-content/uploads/2020/04/CTA-Shapes.png") center / cover no-repeat; opacity: 0.15; }
.contact-band .shape-divider svg { width: calc(230% + 1.3px); height: 100px; transform: translateX(-50%) rotateY(180deg); }
.contact-band__inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.contact-band__details { padding: 50px 30px 0 0; }
.contact-band__address { font-size: 18px; line-height: 48px; }
.contact-band__map { padding: 0; }
.contact-band__map .map { display: block; width: 100%; height: 340px; border: 0; }
@media (max-width: 1024px) {
  .contact-band { padding: 120px 26px 26px; }
  .contact-band::before { background-position: center left; }
  .contact-band .shape-divider svg { height: 70px; }
  .contact-band__details { padding: 0; }
  .contact-band__map { padding: 0 0 0 20px; }
}
@media (max-width: 767px) {
  .contact-band { margin-top: 100px; padding: 68px 0 0; }
  .contact-band__inner { grid-template-columns: 1fr; }
  .contact-band__details { padding: 5%; align-items: stretch; text-align: center; }
  .contact-band__map { padding: 16px; }
}

/* === Component: site-footer (blue bar: copyright + Powered by OrderYOYO) === */
.site-footer { background: var(--color-primary); }
.site-footer__inner { padding: 10px; }
.site-footer__copyright { font-family: var(--font-body); font-size: 16px; font-weight: 700; line-height: 1; text-align: center; color: var(--color-white); }

/* === Component: contact-email (for any future form replacement; the site has no forms) === */
.contact-email { display: grid; gap: 16px; justify-items: start; }
.contact-email__address { font-weight: 700; word-break: break-word; }

/* === Component: not-found (404 page) === */
.not-found { padding: 110px 0; background: var(--color-primary); color: var(--color-white); }
.not-found__inner { padding: 26px; }
.not-found__text { font-size: 20px; line-height: 48px; }
.not-found__links { display: flex; flex-wrap: wrap; gap: 20px; }
@media (max-width: 767px) {
  .not-found { padding: 68px 20px; }
  .not-found__inner { align-items: center; text-align: center; }
  .not-found__text { font-size: 16px; line-height: 26px; }
  .not-found__links { justify-content: center; }
}

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

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