/*
 * site.css: the only stylesheet for billysonlinestore.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        yellow sections, photo bands
 *   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, as the original; media queries can't use custom properties):
 *   mobile  <= 767px    tablet 768px-1024px    desktop >= 1025px
 *
 * Values come from the original Elementor page CSS (post-14.css) and computed styles.
 * Editing: change tokens to restyle the site; add new components as new blocks;
 * add modifier classes (.button-outline--sm) instead of changing a component for one page.
 */

/* ============ 1. Tokens ============ */
:root {
  /* Colours */
  --color-yellow: #fdff39;          /* every content section background */
  --color-red: #e81717;             /* headings, Download App buttons */
  --color-text: #333333;            /* body text, price lists, See all button */
  --color-bg: #ffffff;
  --color-band-overlay: #161616;    /* photo bands: 32% dark overlay */
  --color-faint-white: rgb(255 255 255 / 0.18);  /* short rule above each price list (#FFFFFF2E) */
  --color-faint-white-20: rgb(255 255 255 / 0.2); /* phone box divider (#FFFFFF33) */

  /* Typography */
  --font-body: "Montserrat", sans-serif;
  --tracking: 1px;                  /* letter-spacing used on all text */

  /* Spacing */
  --section-pad-y: 100px;
  --section-pad-x: 50px;
  --section-pad-mobile: 25px;

  /* Images */
  --photo: url("/wp-content/uploads/2021/09/background.jpg");

  /* Motion */
  --duration: 300ms;
  --ease: ease;
}

/* ============ 2. Fonts ============ */
/* Self-hosted Google Font (SIL OFL), latin subset, variable files: weights 300/400/500/600 and 300 italic are used. */
@font-face { font-family: "Montserrat"; src: url("/assets/fonts/montserrat-latin-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/assets/fonts/montserrat-latin-italic-var.woff2") format("woff2"); font-weight: 100 900; font-style: italic; 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: 1rem; 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, h5, h6, p { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--color-text); outline-offset: 2px; }

/* ============ 4. Layout ============ */

/* Yellow content section (the original's sections 2, 4 and 6) */
.section-yellow { background: var(--color-yellow); padding: var(--section-pad-y) var(--section-pad-x); }
@media (max-width: 767px) {
  .section-yellow { padding: var(--section-pad-mobile); }
}

/* Photo backgrounds: fixed (parallax-like) on desktop only, like Elementor (scroll on tablet/mobile and touch devices) */
.hero, .photo-band { background-image: var(--photo); background-position: center center; background-repeat: no-repeat; background-size: cover; }
@media (min-width: 1025px) and (hover: hover) and (pointer: fine) {
  .hero, .photo-band { background-attachment: fixed; }
}

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

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

/* === Component: page-title-hidden (theme H1 hidden on the original, kept for SEO) === */
.page-title-hidden { display: none; }

/* === Component: hero (photo with the round logo centred) ===
   The original pulls the hero up 80px (margin-top:-80px), so the top 80px of the 100vh block sit above the page. */
.hero { display: flex; align-items: center; justify-content: center; min-height: 100vh; margin-top: -80px; }
.hero__inner { width: 100%; max-width: 600px; padding: 10px; }
.hero__logo { width: 100%; max-width: 300px; margin-inline: auto; }

/* === Component: photo-band (decorative photo strip with a dark overlay) === */
.photo-band { position: relative; min-height: 650px; }
.photo-band::before { content: ""; position: absolute; inset: 0; background: var(--color-band-overlay); opacity: 0.32; }
@media (max-width: 767px) {
  .photo-band { min-height: 50vh; }
}

/* === Component: button-outline (Elementor outline buttons) === */
.button-outline { display: inline-block; font-family: var(--font-body); font-size: 12px; font-weight: 300; line-height: 1; letter-spacing: var(--tracking); text-transform: uppercase; text-decoration: none; text-align: center; color: var(--color-text); background: transparent; border: 1px solid currentColor; border-radius: 0; padding: 15px 25px; transition: all var(--duration) var(--ease); }
/* Red "Download App" buttons: yellow fill that becomes transparent on hover (no visible change on yellow, as the original) */
.button-outline--red { color: var(--color-red); background-color: var(--color-yellow); font-weight: 400; line-height: 1.3; }
.button-outline--red:hover, .button-outline--red:focus { background-color: transparent; color: var(--color-red); }
.button-outline--lg { font-size: 18px; padding: 20px 30px; }
.button-outline--sm { position: relative; padding: 10px 15px; }
/* invisible 44px tap area for the 38px-high small button */
.button-outline--sm::after { content: ""; position: absolute; inset: -3px 0; }
@media (max-width: 767px) {
  .button-outline--lg { padding: 10px; }
  .button-outline--sm { padding: 10px; }
}

/* === Component: welcome (big red heading + Download App) === */
.welcome__inner { max-width: 1440px; margin-inline: auto; padding: 10px; text-align: center; }
.welcome__title { font-size: 3.1rem; font-weight: 600; line-height: 1.3; letter-spacing: var(--tracking); text-transform: uppercase; color: var(--color-red); }
.welcome__action { margin: 40px 0 0 40px; }
@media (max-width: 1024px) {
  .welcome__action { margin: 20px 0 0 20px; }
}
@media (max-width: 767px) {
  .welcome__title { font-size: 1.8rem; }
  .welcome__action { margin: 20px 0 0 8px; }
}

/* === Component: price-lists (two columns, stacked from tablet down) === */
.price-lists__inner { display: flex; max-width: 1440px; margin-inline: auto; }
@media (max-width: 1024px) {
  .price-lists__inner { flex-direction: column; }
}

/* === Component: price-list (heading, name/price rows, See all button) === */
.price-list { flex: 0 0 calc(50% - 20px); margin-right: 20px; padding: 10px; }
.price-list__rule { width: 200px; margin: 0 auto 40px; border-top: 1px solid var(--color-faint-white); }
.price-list__title { margin-bottom: 40px; font-size: 1.8rem; font-weight: 600; line-height: 1; letter-spacing: var(--tracking); text-transform: uppercase; text-align: center; color: var(--color-red); }
.price-list__items { list-style: none; margin: 0; padding: 0; }
.price-list__item { display: flex; align-items: flex-end; margin-bottom: 10px; font-size: 0.9rem; font-weight: 300; letter-spacing: var(--tracking); }
.price-list__name, .price-list__price { padding: calc(10px + 1em) 10px; }
.price-list__name { flex: 0 0 88.855%; text-transform: uppercase; }
.price-list__price { flex: 0 0 11.074%; }
.price-list__more { text-align: center; }
@media (max-width: 1024px) {
  .price-list { flex-basis: auto; margin: 0 0 50px; }
}
@media (max-width: 767px) {
  .price-list { margin: 0; padding: 0; }
  .price-list__title { font-size: 2rem; }
  .price-list__item { flex-direction: column; align-items: stretch; }
  .price-list__name, .price-list__price { flex-basis: auto; }
}

/* === Component: site-footer (contact block + Download App strip; shared on every page) === */
.site-footer { display: block; }

/* === Component: contact (yellow block: heading, phone, address, copyright, credit) === */
.contact__inner { max-width: 1000px; margin-inline: auto; }
.contact__col { display: flex; flex-direction: column; margin-right: 20px; padding: 10px; text-align: center; letter-spacing: var(--tracking); }
.contact__title { margin-bottom: 40px; font-size: 2rem; font-weight: 600; line-height: 1; text-transform: uppercase; color: var(--color-red); }
.contact__details { padding-top: 20px; margin-bottom: 50px; }
.contact__phone-box { display: flex; flex-direction: column; border-right: 1px solid var(--color-faint-white-20); }
.contact__label { margin-bottom: 25px; font-size: 0.7rem; font-weight: 300; line-height: 1; text-transform: uppercase; }
.contact__phone { margin: 1em 0; font-size: 1.2rem; font-weight: 500; }
.contact__address { margin: 1em 0 100px; font-size: 1.2rem; font-weight: 300; line-height: 1.7; }
.contact__copyright { margin: 1em 0 20px; font-size: 1.1rem; font-weight: 600; line-height: 1.5; text-transform: uppercase; }
.contact__credit { margin: 1em 0; font-size: 1rem; font-weight: 300; font-style: italic; line-height: 1.5; }
.contact__credit a { color: var(--color-text); text-decoration: none; }
@media (max-width: 1024px) {
  .contact__phone-box { border-right: 0; border-bottom: 1px solid var(--color-faint-white-20); padding-bottom: 30px; }
}
@media (max-width: 767px) {
  .contact__title { font-size: 1.8rem; }
  .contact__phone { font-size: 1rem; }
}

/* === Component: app-strip (last yellow strip with a small Download App button) === */
.app-strip { background: var(--color-yellow); padding: 0 5%; }
.app-strip__inner { display: flex; align-items: center; justify-content: center; min-height: 80px; }
.app-strip__inner .button-outline { margin-left: 40px; }
@media (max-width: 1024px) {
  .app-strip__inner { width: 40%; }
  .app-strip__inner .button-outline { margin-left: 20px; }
}
@media (max-width: 767px) {
  .app-strip { padding: 20px; }
  .app-strip__inner { width: 100%; }
  .app-strip__inner .button-outline { margin-left: 8px; }
}

/* === Component: not-found (404 message) === */
.not-found__inner { max-width: 1000px; margin-inline: auto; padding: 10px; text-align: center; }
.not-found__title { font-size: 2rem; font-weight: 600; line-height: 1.3; letter-spacing: var(--tracking); text-transform: uppercase; color: var(--color-red); }
.not-found__text { margin: 1em 0 40px; font-size: 1.2rem; font-weight: 300; line-height: 1.7; letter-spacing: var(--tracking); }
.not-found__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
@media (max-width: 767px) {
  .not-found__title { font-size: 1.8rem; }
}

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