/*
 * site.css: the only stylesheet for skippershatfield.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, columns
 *   5. Components    one block per component: "=== Component: <name> ==="
 *   6. Pages         rare page-specific rules: "=== Page: <path> ==="
 *   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").
 *
 * Source: header, buttons band and footer restored from the Internet Archive capture of
 * 2025-04-09 (Elementor Pro global widgets); page bodies from the live site (2026-10-27).
 * Elementor's layout is reproduced with a 1140px container and 10px column padding,
 * plus its 20px gap between stacked widgets.
 *
 * Editing: change tokens to restyle the site; add new components as new blocks;
 * add modifier classes (.button--wide) instead of changing a component for one page.
 */

/* ============ 1. Tokens ============ */
:root {
  /* Colours (from the original's CSS) */
  --color-blue: #1f7bbf;         /* header band, buttons, mobile menu */
  --color-orange: #fabf68;       /* buttons band and footer band */
  --color-white: #ffffff;
  --color-black: #000000;        /* footer phone/icon, image captions */
  --color-heading: #0c0c0c;      /* H1 (home), H3 (contact) */
  --color-muted: #7a7a7a;        /* contact intro text */

  /* Typography */
  --font-serif: "IBM Plex Serif", serif;      /* nav, phone, buttons, contact heading */
  --font-sans: "Roboto", sans-serif;          /* home H1, contact text */
  --font-caption: "Helvetica", Arial, sans-serif; /* image captions (system font on the original) */

  /* Layout */
  --container: 1140px;
  --col-pad: 10px;               /* Elementor "default" column gap: 10px each side */
  --widget-gap: 20px;            /* Elementor space between widgets */

  /* Motion */
  --duration: 0.3s;
}

/* ============ 2. Fonts ============ */
/* Self-hosted Google Fonts (SIL OFL), latin subset. */
@font-face { font-family: "IBM Plex Serif"; src: url("/assets/fonts/ibm-plex-serif-400-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Serif"; src: url("/assets/fonts/ibm-plex-serif-500-latin.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Serif"; src: url("/assets/fonts/ibm-plex-serif-600-latin.woff2") format("woff2"); font-weight: 600; 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-sans); font-size: 16px; line-height: 1; color: var(--color-black); background: var(--color-white); }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
h1, h2, h3 { margin: 0; line-height: 1; }
p { 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; }
figure { margin: 0; }

/* ============ 4. Layout ============ */
/* .container: Elementor boxed section (1140px). .col: a column with Elementor's 10px padding. */
.container { width: 100%; max-width: var(--container); margin-inline: auto; }
.col { padding: var(--col-pad); }
.stack > * + * { margin-top: var(--widget-gap); }

/* ============ 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-sprite (inline SVG symbols in the header partial) === */
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* === Component: phone-link (icon + number; header white, footer black) ===
 * IBM Plex Serif 20px, 16px phone icon, 5px gap (Elementor icon list). */
.phone-link { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-serif); font-size: 20px; line-height: 20px; color: inherit; }
.phone-link svg { width: 16px; height: 16px; flex: none; fill: currentColor; }

/* === Component: social-icon (Tripadvisor; 16px icon in a 32px transparent box) === */
.social-icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 10%; color: inherit; }
.social-icon svg { width: 16px; height: 16px; fill: currentColor; }

/* === Component: site-header ===
 * Blue band, not sticky. Desktop: logo left half; right half has phone + Tripadvisor
 * (two half columns, phone right-aligned) above the centred nav.
 * ≤1024px: logo at 80% of its column, burger instead of the nav.
 * ≤767px: everything stacked and centred. */
.site-header { position: relative; z-index: 20; background: var(--color-blue); color: var(--color-white); }
.site-header__inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.site-header__logo { display: block; width: fit-content; }
.site-header__logo img { width: 358px; }
.site-header__right { display: flex; flex-direction: column; }
.site-header__contact { display: grid; grid-template-columns: 1fr 1fr; }
.site-header__phone { display: flex; justify-content: flex-end; align-items: center; }
.site-header__social { display: flex; justify-content: flex-start; }
@media (max-width: 1024px) {
  .site-header__logo { width: 80%; }
  .site-header__logo img { width: 100%; }
}
@media (max-width: 767px) {
  .site-header__inner { grid-template-columns: 1fr; }
  .site-header__logo { margin-inline: auto; }
  .site-header__contact { grid-template-columns: 1fr; }
  .site-header__phone, .site-header__social { justify-content: center; }
}

/* === Component: site-nav ===
 * Desktop: centred row, IBM Plex Serif 20px white, padding 13px 20px, no hover effect (pointer "none").
 * ≤1024px: burger (22px icon, 27×33 box) centred; full-width blue dropdown under the header,
 * items centred, padding 15px 0, sliding open (grid rows 0fr → 1fr, 0.3s). */
.site-nav { display: grid; justify-items: center; align-items: stretch; }
.site-nav__list { display: flex; flex-wrap: wrap; justify-content: center; }
.site-nav__list a { display: block; padding: 13px 20px; font-family: var(--font-serif); font-size: 20px; line-height: 20px; color: var(--color-white); }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 33px; padding: 0; border: 0; background: none; color: var(--color-white); 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; left: 0; right: 0; top: 100%; display: grid; grid-template-rows: 0fr; visibility: hidden; background: var(--color-blue); 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; text-align: center; }
  .site-nav__list a { padding: 15px 0; font-family: var(--font-sans); font-size: 15px; font-weight: 500; line-height: 20px; }
}

/* === Component: hero (background photo band; 400px, 250px at ≤1024px) === */
.hero { min-height: 400px; background: url("/wp-content/uploads/2019/02/iStock_31596142_XXLARGE.jpg") center center / cover no-repeat; }
@media (max-width: 1024px) {
  .hero { min-height: 250px; }
}

/* === Component: button (blue pill; IBM Plex Serif 15px/500, white) === */
.button { display: inline-block; padding: 12px 24px; border-radius: 50px; background: var(--color-blue); color: var(--color-white); font-family: var(--font-serif); font-size: 15px; font-weight: 500; line-height: 1; text-align: center; transition: background var(--duration); }
.button--wide { padding-inline: 50px; }

/* === Component: buttons-band (orange band under the hero: Download APP, Offers) ===
 * Two half columns, each button centred; stacked at ≤767px. */
.buttons-band { padding: 5px; background: var(--color-orange); }
.buttons-band__inner { display: grid; grid-template-columns: 1fr 1fr; }
.buttons-band__item { display: flex; justify-content: center; align-items: center; }
@media (max-width: 767px) {
  .buttons-band__inner { grid-template-columns: 1fr; }
}

/* === Component: section (Elementor section: 50px top/bottom, or 100px with --roomy) === */
.section { padding: 50px 0; }
.section--roomy { padding: 100px 0; }
@media (max-width: 1024px) {
  .section--roomy { padding: 50px 0; }
}

/* === Component: page-title (centred heading) ===
 * --h1: Roboto 600 32px (26px ≤1024px). --h3: IBM Plex Serif 600 28px (26px ≤1024px). */
.page-title { text-align: center; color: var(--color-heading); font-weight: 600; }
.page-title--h1 { font-family: var(--font-sans); font-size: 32px; }
.page-title--h3 { font-family: var(--font-serif); font-size: 28px; }
@media (max-width: 1024px) {
  .page-title--h1, .page-title--h3 { font-size: 26px; }
}

/* === Component: intro-text (centred Roboto 18px grey paragraph) === */
.intro-text { display: flow-root; font-family: var(--font-sans); font-size: 18px; line-height: 1.5; color: var(--color-muted); text-align: center; }
.intro-text p { margin-bottom: 0.9rem; }

/* === Component: spacer (Elementor spacer widget) === */
.spacer { height: 10px; }
.spacer--contact { height: 50px; }
@media (max-width: 1024px) {
  .spacer--contact { height: 20px; }
}

/* === Component: image-grid (home: tall photo + four captioned photos) ===
 * Desktop: three equal columns; the tall photo is vertically centred, the other two start at the top.
 * Tablet (768–1024): photo | first pair side by side, second pair full width below.
 * Mobile: one column. */
.image-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.image-grid__feature { align-self: center; }
.image-grid__feature img { margin-inline: auto; border-radius: 30px; }
.image-grid__col { align-self: start; }
.image-grid__col .image-box + .image-box { margin-top: 90px; } /* 20px gap + 50px spacer + 20px gap */
@media (max-width: 1024px) {
  .image-grid { grid-template-columns: 1fr 1fr; }
  .image-grid__col--wide { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .image-grid { grid-template-columns: 1fr; }
}

/* === Component: image-box (photo, 15px gap, centred Helvetica 20px caption) === */
.image-box { text-align: center; }
.image-box img { margin: 0 auto 18px; }
.image-box__caption { font-family: var(--font-caption); font-size: 20px; line-height: 1; color: var(--color-black); }

/* === Component: map (keyless Google Maps iframe, 386px tall; half width on desktop) === */
.map-block { display: grid; grid-template-columns: 1fr 1fr; }
.map { display: block; width: 100%; height: 386px; border: 0; }
@media (max-width: 1024px) {
  .map-block { grid-template-columns: 1fr; }
}

/* === Component: contact-email ===
 * Not used yet: /contact/ has no form or email (no business address known; pending the Azure
 * form endpoint). If an address is supplied, put the block in the empty right column of
 * .map-block on /contact/ (where the original form was). */
.contact-email { display: grid; gap: 15px; justify-items: start; font-family: var(--font-sans); font-size: 18px; line-height: 1.5; color: var(--color-muted); }

/* === Component: site-footer (orange band: phone + Tripadvisor, then the OrderYOYO credit) ===
 * Desktop: a 500px-wide centred pair (phone right-aligned, icon left-aligned); ≤1024px stacked and centred. */
.site-footer { padding: 5px; background: var(--color-orange); color: var(--color-black); }
.site-footer__contact { display: grid; grid-template-columns: 1fr 1fr; max-width: 500px; margin-inline: auto; }
.site-footer__phone { display: flex; justify-content: flex-end; align-items: flex-start; }
.site-footer__social { display: flex; justify-content: flex-start; }
.site-footer__credit { padding: 0 var(--col-pad) var(--col-pad); font-family: var(--font-serif); font-size: 13px; line-height: 1.4; text-align: center; }
.site-footer__credit a:hover { text-decoration: underline; }
@media (max-width: 1024px) {
  .site-footer__contact { grid-template-columns: 1fr; }
  .site-footer__phone, .site-footer__social { justify-content: center; }
}

/* === Component: not-found (404 page body) === */
.not-found { text-align: center; }
.not-found .intro-text { margin-top: var(--widget-gap); }
.not-found__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; margin-top: 30px; }

/* ============ 6. Pages ============ */
/* (none) */

/* ============ 7. Utilities ============ */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
