/*
 * site.css: the only stylesheet for mrfishcranfield.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        container, sections, column padding
 *   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 on the original; media queries can't use custom properties):
 *   mobile  ≤ 767px    tablet 768px–1024px    desktop ≥ 1025px
 *   - ≤ 767px: header, intro and footer columns stack/centre; intro photo becomes a 300px band
 *   - ≤ 1024px: opening hours and map stack full width, heading centred
 *   - ≥ 1025px (mouse/trackpad): app band background is fixed (parallax look)
 *
 * Spacing mirrors the original Elementor layout: 10px column padding, 20px between blocks,
 * paragraphs with 1em top/bottom margins inside flow-root wrappers.
 *
 * Editing: change tokens to restyle the site; add new components as new blocks;
 * add modifier classes (.button--light) instead of changing a component for one page.
 */

/* ============ 1. Tokens ============ */
:root {
  /* Colours (from the original's Elementor styles) */
  --color-blue: #0096d7;          /* header and footer bars, menu button hover */
  --color-navy: #294470;          /* headings, body copy, app band, outline button */
  --color-white: #ffffff;
  --color-light-grey: #d7d7d7;    /* header button hover */
  --color-black: #000000;
  --color-bg: #ffffff;
  --color-text: var(--color-navy);

  /* Typography (Roboto everywhere; line-height "normal" as on the original) */
  --font-body: "Roboto", sans-serif;
  --text-base: 16px;
  --text-copy: 18px;              /* intro copy and address */
  --text-app: 17px;               /* app band copy */
  --text-small: 14px;             /* hours and footer on mobile */
  --text-title: 39px;             /* intro heading (Elementor size xl); 32px on mobile */
  --text-heading-lg: 29px;        /* phone, DOWNLOAD OUR APP (Elementor size large) */
  --text-heading: 24px;           /* Opening Hours (Elementor default size) */

  /* Spacing and shape */
  --col-pad: 10px;                /* Elementor column padding */
  --gap: 20px;                    /* Elementor space between widgets */
  --space-section: 100px;
  --container: 1140px;
  --radius-pill: 50px;

  /* Motion (Elementor button transition) */
  --duration: 300ms;
  --ease: ease;
}

/* ============ 2. Fonts ============ */
/* Self-hosted Google Font (SIL OFL), latin subset. Roboto is one variable file (weights 100–900; 400 and 600 used). */
@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: var(--text-base); line-height: normal; color: var(--color-text); background: var(--color-bg); }
img, svg, video, iframe { max-width: 100%; }
img, video { height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1; font-weight: 600; }
p { margin: 1em 0; }
a { color: inherit; text-decoration: none; transition: color var(--duration) var(--ease); }
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* ============ 4. Layout ============ */
/* Boxed content: 1140px max (full width at ≤1024px, like Elementor). Columns add 10px padding. */
.container { width: 100%; max-width: var(--container); margin-inline: auto; }
.col { padding: var(--col-pad); }
.section { position: relative; padding-block: var(--space-section); }
/* Text blocks: own their paragraph margins (no collapsing into neighbours) */
.copy { display: flow-root; }

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

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

/* === Component: site-header (blue bar: logo left, ORDER ONLINE NOW right; no menu on the original) === */
.site-header { background: var(--color-blue); padding: 5px 0 15px; }
.site-header__inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.site-header__logo { width: 125px; }
.site-header__action { text-align: end; }
@media (max-width: 767px) {
  .site-header__inner { grid-template-columns: 1fr; }
  .site-header__logo { margin-inline: auto; }
  .site-header__action { text-align: center; }
}

/* === Component: button (outline pill) ===
 * .button--light: white outline on the blue header (16px).  .button--navy: navy outline on white (18px). */
.button { display: inline-block; padding: 15px 25px; border: 3px solid currentColor; border-radius: var(--radius-pill); background: transparent; font-family: var(--font-body); font-size: 16px; font-weight: 600; line-height: 1; text-align: center; cursor: pointer; transition: all var(--duration); }
.button--light { color: var(--color-white); border-color: var(--color-white); }
.button--light:hover, .button--light:focus-visible { color: var(--color-light-grey); border-color: var(--color-light-grey); }
.button--navy { padding: 20px 30px; font-size: 18px; color: var(--color-navy); border-color: var(--color-navy); }
.button--navy:hover, .button--navy:focus-visible { color: var(--color-blue); border-color: var(--color-blue); }

/* === Component: intro (heading, copy, phone, address, button | photo column) === */
.intro__grid { display: grid; grid-template-columns: 60% 40%; }
.intro__text { margin-block: 50px; }
.intro__title { font-size: var(--text-title); color: var(--color-navy); }
.intro__copy { margin-top: var(--gap); margin-right: 100px; font-size: var(--text-copy); }
.intro__address { margin-top: 0; padding-top: 10px; font-size: var(--text-copy); }
.intro__action { margin-top: var(--gap); }
.intro__photo { min-height: 300px; background: url("/wp-content/uploads/2020/11/french-3925081_1920.jpg") center center / cover no-repeat; }
@media (max-width: 767px) {
  .intro { padding-block: 0; }
  .intro__grid { grid-template-columns: 1fr; }
  .intro__text { text-align: center; }
  .intro__title { font-size: 32px; }
  .intro__copy { margin-inline: 10px; }
}

/* === Component: phone-line (icon + phone number as a heading, as on the original) === */
.phone-line { display: flex; align-items: flex-start; margin-top: var(--gap); padding: var(--col-pad); min-height: 54px; }
.phone-line__icon { flex: 0 0 30px; width: 30px; height: 30px; margin-right: 10px; fill: var(--color-navy); }
.phone-line__number { font-size: var(--text-heading-lg); color: var(--color-navy); }
@media (max-width: 767px) {
  .phone-line { justify-content: center; }
}

/* === Component: app-promo (navy band, faint fixed shopfront photo, heading, copy, store badges) === */
.app-promo { overflow: hidden; background: var(--color-navy); color: var(--color-white); text-align: center; }
.app-promo::before { content: ""; position: absolute; inset: 0; background: var(--color-black) url("/wp-content/uploads/2020/11/shopfront.jpg") center center / cover no-repeat; opacity: 0.1; filter: blur(1px); }
@media (min-width: 1025px) and (hover: hover) and (pointer: fine) {
  .app-promo::before { background-attachment: fixed; }
}
.app-promo__inner { position: relative; max-width: 550px; }
.app-promo__title { font-size: var(--text-heading-lg); color: var(--color-white); }
.app-promo__copy { margin-top: var(--gap); font-size: var(--text-app); }
.app-promo__badges { display: inline-block; margin-top: var(--gap); vertical-align: top; }
.app-promo__badges img { width: 300px; }

/* === Component: hours-map (opening hours | map, side by side on desktop) === */
.hours-map__grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.hours-map__title { font-size: var(--text-heading); color: var(--color-navy); }
.hours { margin-top: var(--gap); }
.hours__list { padding: 5px; }
.hours__list p { font-size: var(--text-base); }
.hours-map__map { padding: var(--col-pad); }
@media (max-width: 1024px) {
  .hours-map__grid { grid-template-columns: 1fr; }
  .hours-map__title { text-align: center; }
  .hours { padding: 20px; }
}
@media (max-width: 767px) {
  .hours { padding: 0; }
  .hours__list p { font-size: var(--text-small); }
}

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

/* === Component: site-footer (blue bar: copyright | Powered by OrderYOYO) === */
.site-footer { background: var(--color-blue); color: var(--color-white); }
.site-footer__inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.site-footer__credit { text-align: end; }
.site-footer__credit a { color: var(--color-white); }
@media (max-width: 767px) {
  .site-footer__inner { grid-template-columns: 55% 45%; }
  .site-footer p { font-size: var(--text-small); }
}

/* === Component: contact-email (replaces WordPress forms; not used on this site: it had no forms) === */
.contact-email { display: grid; gap: var(--gap); justify-items: start; font-size: var(--text-copy); }
.contact-email p { margin: 0; }
.contact-email__address { font-weight: 600; word-break: break-word; }
.contact-email__phone a { color: inherit; }

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

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

/* === Page: /404.html === */
.not-found { text-align: center; }
.not-found__title { font-size: var(--text-title); color: var(--color-navy); }
.not-found__text { max-width: 640px; margin: var(--gap) auto 0; font-size: var(--text-copy); }
.not-found__actions { margin-top: var(--gap); }
.not-found__links a { text-decoration: underline; }
@media (max-width: 767px) {
  .not-found__title { font-size: 32px; }
}

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