/* -----------------------------------------------------------------------------
 * UK supplement, styles for classes introduced on the UK rebuild that are not
 * in the lifted styles.css. Loaded AFTER styles.css so it layers cleanly.
 * Uses the existing brand tokens (--magenta, --purple, --charcoal, etc.).
 * --------------------------------------------------------------------------- */

/* -----------------------------------------------------------------------------
 * DESIGN SYSTEM QUICK REFERENCE (other agents: read this first)
 *  Tokens (:root, see "DESIGN SYSTEM LAYER" near the end of this file):
 *    spacing  --space-1..10 (4px to 128px)     container --container (1180), --container-wide, --container-narrow
 *    radii    --radius-sm/md/lg/pill           shadows   --shadow-sm/md/lg/brand
 *    type     --fs-xs..3xl (fluid)             section   --section-pad-y (56px phone, about 112px desktop), -lg, -sm
 *    header   --header-h (scroll-padding-top is already set on html, so anchors never hide under the sticky header)
 *  Utility classes: .container--wide .container--narrow .section-lg .section-sm .stack .lead
 *    .radius-sm/md/lg .shadow-sm/md/lg .fs-sm/lg/xl/2xl/3xl
 *    section.section now uses --section-pad-y. Do not hard-code section padding on pages.
 *  Reveal: add data-reveal (stagger with style="--d:.08s"). Lives in premium.css, reduced-motion safe.
 *  Logo marquee: .logo-marquee > ul.logo-marquee__track > li.logo-marquee__item > img
 *    (list the logos twice, second copy aria-hidden). Full usage in section 5 near the end.
 *  Footer and header styling live here too; footer markup is in src/layouts/LiveLayout.astro.
 * --------------------------------------------------------------------------- */

/* -----------------------------------------------------------------------------
 * GLOBAL TYPOGRAPHY POLISH (site-wide). Stops the "AI-generated" tells:
 *  - orphan/widow words dropping onto their own last line (text-wrap: pretty)
 *  - headings breaking awkwardly (text-wrap: balance)
 *  - phone numbers (and other tel: links) splitting across two lines (nowrap)
 * Loaded on every page via LiveLayout, so it applies everywhere at once.
 * --------------------------------------------------------------------------- */
body { text-wrap: pretty; }
h1, h2, h3, h4, .hero h1 { text-wrap: balance; }
a[href^="tel:"] { white-space: nowrap; }

/* Five-up services grid (homepage, services hub, location pages) */
.services-grid-5 {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  text-align: left;
}
@media (max-width: 640px) {
  .services-grid-5 { grid-template-columns: 1fr; }
}

/* Commission disclosure line (locked rule 1) */
.commission-note {
  display: inline-block;
  margin-inline: auto;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--pale-blush);
  color: var(--purple);
  font-weight: 700;
  font-size: 15px;
}

/* Hero promise card (homepage right-hand panel) */
.hero-promise-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 20px 50px -24px rgba(45, 45, 45, 0.35);
}
.hero-promise-card hr {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin: 20px 0;
}
.promise-eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--magenta);
}
.promise-big {
  font-size: clamp(40px, 6vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  color: var(--purple);
  margin-top: 6px;
}
.promise-label {
  color: var(--charcoal);
  opacity: 0.8;
  font-size: 15px;
  margin-top: 4px;
}
.promise-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}
.promise-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: var(--charcoal);
  font-size: 15px;
  line-height: 1.5;
}
.promise-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--magenta);
  font-weight: 800;
}

/* Upload placeholder card (homepage + upload-bill) */
.upload-placeholder {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 20px 50px -24px rgba(45, 45, 45, 0.35);
  text-align: center;
}
.upload-placeholder h3 { margin: 0 0 10px; }
.upload-placeholder p {
  color: var(--charcoal);
  opacity: 0.8;
  font-size: 15px;
  margin-bottom: 18px;
}

/* -----------------------------------------------------------------------------
 * Premium service cards (homepage + services hub + locations). Replaces the
 * flat Wix-style cards with depth, a brand-colour accent, icon badge and hover.
 * --------------------------------------------------------------------------- */
/* 3-up so the 6 cards (5 services + challenge) sit as two clean rows of three,
 * no orphaned card. Two columns on tablet, single column on mobile. */
.svc-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, 1fr);
  text-align: left;
  margin-top: 28px;
  max-width: 1040px;
  margin-inline: auto;
}
@media (max-width: 900px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .svc-grid { grid-template-columns: 1fr; } }

.svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  padding: 26px 24px 24px;
  overflow: hidden;
  box-shadow: 0 14px 40px -24px rgba(45, 45, 45, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  text-decoration: none;
  color: inherit;
}
.svc-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: var(--svc-accent, var(--magenta));
}
.svc-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px -26px rgba(45, 45, 45, 0.45);
  border-color: color-mix(in srgb, var(--svc-accent, var(--magenta)) 40%, transparent);
}
.svc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  font-size: 26px;
  line-height: 1;
  margin-bottom: 16px;
  background: color-mix(in srgb, var(--svc-accent, var(--magenta)) 14%, #fff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--svc-accent, var(--magenta)) 25%, transparent);
}
.svc-card h3 {
  margin: 0 0 4px;
  font-size: 20px;
  line-height: 1.2;
}
.svc-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--svc-accent, var(--magenta));
  margin-bottom: 12px;
}
.svc-card p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--charcoal);
  opacity: 0.85;
  flex: 1;
}
.svc-link {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--svc-accent, var(--magenta));
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.svc-card:hover .svc-link { gap: 10px; }

/* -----------------------------------------------------------------------------
 * Illustrated service-card banner. Brings back the "illustrations" Joedy liked
 * on the old site, upgraded to a custom 2026 on-brand SVG set (public/
 * illustrations/). The band breaks out of the card's padding with negative
 * margins so it sits flush to the rounded edges; the card clips it via its own
 * overflow:hidden + border-radius. Soft accent-tinted wash behind each motif.
 * --------------------------------------------------------------------------- */
.svc-illus {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
  margin: -26px -24px 20px;
  background: radial-gradient(
    120% 118% at 50% -12%,
    color-mix(in srgb, var(--svc-accent, var(--magenta)) 20%, #fff),
    color-mix(in srgb, var(--svc-accent, var(--magenta)) 5%, #fff)
  );
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.svc-illus img {
  height: 126px;
  width: auto;
  max-width: 80%;
  display: block;
  transition: transform 0.18s ease;
}
.svc-card:hover .svc-illus img { transform: scale(1.05); }
@media (max-width: 600px) {
  .svc-illus { height: 138px; }
  .svc-illus img { height: 112px; }
}

/* -----------------------------------------------------------------------------
 * News feed (the /news/ hub Joedy asked to keep). Card grid with a branded
 * gradient head, category chip + date, headline, excerpt and a read link.
 * --------------------------------------------------------------------------- */
.news-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1080px;
  margin: 32px auto 0;
  text-align: left;
}
@media (max-width: 900px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .news-grid { grid-template-columns: 1fr; } }

/* Clean white cards with a thin solid magenta top accent (matches the service
 * cards), a purple category chip and a date. Deliberately restrained, no
 * saturated multi-colour heads (that read "AI"/off-brand). Two-colour brand. */
.news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 14px 40px -24px rgba(45, 45, 45, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  text-decoration: none;
  color: inherit;
}
.news-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: var(--magenta);
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px -26px rgba(45, 45, 45, 0.45);
  border-color: rgba(231, 28, 142, 0.35);
}
.news-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 26px 22px 24px;
}
.news-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.news-chip {
  background: var(--purple);
  color: #fff;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
}
.news-date {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--charcoal);
  opacity: 0.55;
}
.news-card h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.25; }
.news-card p {
  margin: 0 0 16px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--charcoal);
  opacity: 0.85;
  flex: 1;
}
.news-readmore { font-weight: 700; font-size: 14px; color: var(--magenta); }
.news-card:hover .news-readmore { text-decoration: underline; }

/* -----------------------------------------------------------------------------
 * Contact details list (contact-us). Clean vertical rows with a magenta left
 * accent, reads well in the narrow column (the old 4-card grid wrapped badly).
 * --------------------------------------------------------------------------- */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-left: 4px solid var(--magenta);
  border-radius: 14px;
  box-shadow: 0 10px 30px -22px rgba(45, 45, 45, 0.35);
}
.contact-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
}
.contact-value { font-size: 15.5px; line-height: 1.55; color: var(--charcoal); }
.contact-value a { color: var(--magenta); font-weight: 600; text-decoration: none; }
.contact-value a:hover { text-decoration: underline; }
.contact-hours {
  margin-top: 16px;
  font-size: 14px;
  color: var(--charcoal);
  opacity: 0.72;
}

/* Sponsorship / client crest badge (Plymouth Albion etc.) */
.crest-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  box-shadow: 0 14px 40px -26px rgba(45, 45, 45, 0.4);
}
.crest-badge img { height: 56px; width: auto; display: block; }
.crest-badge .crest-text { text-align: left; line-height: 1.3; }
.crest-badge .crest-text strong { display: block; font-size: 15px; }
.crest-badge .crest-text span { font-size: 13px; color: var(--charcoal); opacity: 0.7; }

/* Team grid (Joedy, Alice, Grace, Jamie) with photo + initials fallback */
.team-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 8px;
}
.team-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  padding: 26px 22px;
  text-align: center;
  box-shadow: 0 14px 40px -26px rgba(45, 45, 45, 0.35);
}
.team-photo, .team-initials {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 14px;
  object-fit: cover;
  display: block;
}
.team-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--magenta), var(--purple));
}
.team-card h3 { margin: 0 0 2px; font-size: 18px; }
.team-role {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
}
.team-bio {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--charcoal);
  opacity: 0.85;
}

/* Team sub-headers (UK / Australia groupings) */
.team-subhead {
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
  margin: 18px 0 18px;
}
.team-flag { font-size: 18px; vertical-align: middle; margin-right: 6px; }
/* Australia team is two people, keep them centred rather than stretched wide */
.team-grid-aus { max-width: 560px; margin-inline: auto; }

/* "Joining soon" team card (Grace), content nudged to vertical centre */
.team-card.is-soon {
  background: linear-gradient(160deg, #fff, var(--pale-blush));
  justify-content: center;
  padding-block: 48px;
}
.team-card.is-soon .team-initials { margin-top: 4px; margin-bottom: 18px; }
.team-card.is-soon .team-role {
  margin-top: 8px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--magenta);
}
.team-initials.is-soon {
  background: linear-gradient(135deg, var(--aqua), var(--purple));
  font-size: 30px;
}

/* Four-principles 2x2 grid (about page), so no orphaned 4th card */
.principles-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(2, 1fr);
  max-width: 880px;
  margin: 48px auto 0;
}
@media (max-width: 640px) { .principles-grid { grid-template-columns: 1fr; } }

/* -----------------------------------------------------------------------------
 * Plumped proof / "Trusted across the South West" section.
 * --------------------------------------------------------------------------- */
.proof-band {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 36px;
}
.proof-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  padding: 30px 24px;
  overflow: hidden;
  box-shadow: 0 14px 40px -26px rgba(45, 45, 45, 0.35);
}
.proof-card::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 5px;
  background: linear-gradient(90deg, var(--magenta), var(--yellow));
}
.proof-card .proof-num {
  font-size: clamp(34px, 5vw, 46px);
  font-weight: 800;
  line-height: 1.02;
  color: var(--magenta);
  letter-spacing: -0.02em;
}
.proof-card .proof-label {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--charcoal);
  opacity: 0.82;
}

/* Sponsorship feature block (Plymouth Albion) */
.sponsor-feature {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  text-align: left;
  margin-top: 36px;
  padding: 30px 32px;
  border-radius: 22px;
  background: linear-gradient(135deg, #2a1430, #4a1f54);
  color: #fff;
  overflow: hidden;
  box-shadow: 0 26px 60px -30px rgba(120, 64, 144, 0.7);
}
.sponsor-feature::after {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 5px;
  background: linear-gradient(90deg, var(--magenta), var(--aqua), var(--yellow));
}
.sponsor-crest {
  display: flex; align-items: center; justify-content: center;
  width: 130px; height: 130px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 18px;
  padding: 12px;
}
.sponsor-crest img { max-width: 100%; max-height: 100%; display: block; }
.sponsor-crest .crest-fallback {
  font-size: 13px; font-weight: 800; text-align: center; color: var(--purple);
  text-transform: uppercase; letter-spacing: 0.06em; line-height: 1.3;
}
.sponsor-eyebrow {
  font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--yellow);
}
.sponsor-feature h3 { margin: 8px 0 6px; font-size: clamp(22px, 3vw, 28px); color: #fff; }
.sponsor-feature p { margin: 0 0 16px; color: rgba(255, 255, 255, 0.88); font-size: 15.5px; line-height: 1.55; }
.sponsor-feature .btn { display: inline-flex; }
@media (max-width: 640px) {
  .sponsor-feature { grid-template-columns: 1fr; text-align: center; padding: 26px 22px; }
  .sponsor-crest { margin: 0 auto; width: 110px; height: 110px; }
}

/* "Trusted by" client name strip */
.client-strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin-top: 30px;
}
.client-pill {
  display: inline-flex; align-items: center;
  padding: 9px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 14px; font-weight: 700; color: var(--charcoal);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.12s, color 0.15s;
}
.client-pill:hover { border-color: var(--magenta); color: var(--magenta); transform: translateY(-2px); }

/* Business logo feature cards (case-studies hub: logo + name + link) */
.biz-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin-inline: auto;
  max-width: 1080px;
  text-align: center;
}
.biz-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  padding: 26px 20px 22px;
  box-shadow: 0 14px 40px -26px rgba(45, 45, 45, 0.35);
  text-decoration: none;
  color: inherit;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.biz-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 56px -28px rgba(45, 45, 45, 0.45);
  border-color: rgba(231, 28, 142, 0.35);
}
.biz-logo {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.biz-logo img { max-height: 76px; max-width: 170px; object-fit: contain; }
.biz-logo-fallback {
  width: 64px; height: 64px; border-radius: 16px;
  align-items: center; justify-content: center;
  font-weight: 800; font-size: 22px; color: #fff; letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--magenta), var(--purple));
}
.biz-card h3 { margin: 0 0 6px; font-size: 17px; }
.biz-card p { margin: 0 0 14px; font-size: 14px; line-height: 1.5; color: var(--charcoal); opacity: 0.82; flex: 1; }
.biz-link { font-weight: 700; font-size: 14px; color: var(--magenta); }

/* Dark plate for white/light logos (Ship, UK Docks) + black-bg logos (Harman
 * Bagels). Near-black so a logo's own black background blends into the plate. */
.biz-logo.is-dark {
  background: #0d0d0d;
  border-radius: 14px;
  padding: 0 20px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.biz-logo.is-dark img { max-height: 52px; max-width: 158px; }

/* Round photo/logo badge (Hutong) so it reads as a deliberate badge, not plonked */
.biz-logo.is-round { height: 84px; }
.biz-logo.is-round img {
  width: 84px; height: 84px;
  border-radius: 50%;
  object-fit: cover;
  max-height: none; max-width: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 6px 16px -8px rgba(45, 45, 45, 0.4);
}


/* =============================================================================
 * DESIGN SYSTEM LAYER (Nov 2026). Owned by the layout/design-system agent.
 * Everything below is additive and loads after styles.css, before premium.css.
 * ============================================================================= */

/* ---- 1. TOKENS --------------------------------------------------------------
 * Spacing scale (4px base), radii, shadows, type scale, section padding. */
:root {
  --space-1: 4px;  --space-2: 8px;   --space-3: 12px;  --space-4: 16px;
  --space-5: 24px; --space-6: 32px;  --space-7: 48px;  --space-8: 64px;
  --space-9: 96px; --space-10: 128px;

  --container-wide: 1320px;
  --container-narrow: 760px;
  --gutter: clamp(16px, 4vw, 24px);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(45, 45, 45, 0.06), 0 2px 8px -2px rgba(45, 45, 45, 0.08);
  --shadow-md: 0 10px 30px -14px rgba(45, 45, 45, 0.28);
  --shadow-lg: 0 24px 60px -24px rgba(45, 45, 45, 0.38);
  --shadow-brand: 0 14px 40px -12px rgba(231, 28, 142, 0.45);

  /* Fluid type scale */
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem);
  --fs-xl: clamp(1.375rem, 1.2rem + 0.9vw, 1.75rem);
  --fs-2xl: clamp(1.75rem, 1.4rem + 1.7vw, 2.625rem);
  --fs-3xl: clamp(2.125rem, 1.5rem + 3vw, 4rem);

  /* Section rhythm: about 56px on phones, about 112px on large desktops */
  --section-pad-y: clamp(56px, calc(32px + 5.5vw), 112px);
  --section-pad-y-lg: clamp(72px, calc(40px + 7vw), 128px);
  --section-pad-y-sm: clamp(40px, calc(24px + 3vw), 72px);

  /* Sticky header height (logo 96px + padding 32px + border) */
  --header-h: 129px;

  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ring: 0 0 0 3px #fff, 0 0 0 6px var(--magenta);
}
@media (max-width: 359px) { :root { --header-h: 105px; } }

/* Utilities other pages can use */
.container--wide { max-width: var(--container-wide); }
.container--narrow { max-width: var(--container-narrow); }
section.section { padding-block: var(--section-pad-y); }
.section-lg { padding-block: var(--section-pad-y-lg); }
.section-sm { padding-block: var(--section-pad-y-sm); }
.stack > * + * { margin-top: var(--stack-gap, var(--space-4)); }
.lead { font-size: var(--fs-lg); line-height: 1.6; color: var(--grey-700); max-width: 62ch; }
.radius-sm { border-radius: var(--radius-sm); }
.radius-md { border-radius: var(--radius-md); }
.radius-lg { border-radius: var(--radius-lg); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.fs-sm { font-size: var(--fs-sm); }
.fs-lg { font-size: var(--fs-lg); }
.fs-xl { font-size: var(--fs-xl); }
.fs-2xl { font-size: var(--fs-2xl); }
.fs-3xl { font-size: var(--fs-3xl); }

/* ---- 2. GLOBAL POLISH ------------------------------------------------------ */
html { scroll-padding-top: var(--header-h); }
body { overflow-x: clip; }
img, video, canvas { max-width: 100%; }
img[width][height] { height: auto; }
::selection { background: var(--magenta); color: #fff; }
::-moz-selection { background: var(--magenta); color: #fff; }

/* Keyboard focus ring on everything interactive (not on mouse click) */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--magenta);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
:where(.btn-yellow, .btn-primary):focus-visible { outline-color: var(--purple); }
:where(.on-dark, .deep, .footer-cta) :where(a, button):focus-visible { outline-color: var(--yellow); }

/* Links in running copy */
:where(.prose, .richtext, .article-body, .guide-body) a:not([class]) {
  color: var(--purple);
  text-decoration: underline;
  text-decoration-color: rgba(120, 64, 144, 0.35);
  text-underline-offset: 0.18em;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
:where(.prose, .richtext, .article-body, .guide-body) a:not([class]):hover {
  color: var(--magenta);
  text-decoration-color: currentColor;
}

/* Buttons: one consistent hit area, press feedback and transition */
.btn { min-height: 48px; transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease, border-color 0.15s ease; }
.btn:active { transform: translateY(0); box-shadow: none; }

/* Motion: reveal itself lives in premium.css (data-reveal, with its own
 * reduced-motion guard). This is the global safety net. */
@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;
  }
}

/* ---- 3. HEADER ------------------------------------------------------------- */
header.site-header { box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02); }
.header-cta-desktop { white-space: nowrap; font-weight: 800; box-shadow: 0 8px 22px -10px rgba(255, 185, 0, 0.7); }
nav.main-nav a { position: relative; padding-block: 6px; }
nav.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--magenta); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform 0.2s var(--ease-out);
}
nav.main-nav a:hover::after, nav.main-nav a.active::after { transform: scaleX(1); }
@media (max-width: 880px) {
  .header-phone-mobile { width: 44px; height: 44px; }
  .mobile-menu {
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px var(--gutter) calc(24px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 24px 40px -24px rgba(45, 45, 45, 0.35);
  }
  .mobile-menu a:not(.btn) { display: flex; align-items: center; min-height: 52px; padding: 12px 4px; }
  .mobile-menu a:not(.btn):active { color: var(--magenta); }
  .mobile-menu a.btn-yellow { min-height: 52px; margin-top: 16px !important; }
}

/* ---- 4. FOOTER ------------------------------------------------------------- */
footer.site-footer {
  padding: 0;
  background: #fff;
  border-top: 0;
  color: var(--grey-700);
}
/* top strip */
.footer-cta {
  background: linear-gradient(120deg, var(--purple) 0%, #a3297f 55%, var(--magenta) 100%);
  color: #fff;
}
.footer-cta-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-6) var(--space-7);
  padding-block: clamp(32px, 5vw, 52px);
}
.footer-cta-title {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em;
  font-size: var(--fs-xl); line-height: 1.15; color: #fff; text-wrap: balance;
}
.footer-cta-sub { margin-top: var(--space-2); font-size: var(--fs-sm); color: rgba(255, 255, 255, 0.88); max-width: 52ch; }
.footer-cta-actions { display: flex; align-items: center; gap: var(--space-5); flex-wrap: wrap; flex: 0 0 auto; }
.footer-cta-contact { list-style: none; display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; }
.footer-cta-contact a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 36px;
  color: #fff; font-weight: 600; font-size: var(--fs-sm); overflow-wrap: anywhere;
  transition: opacity 0.15s ease;
}
.footer-cta-contact a:hover { opacity: 0.8; text-decoration: underline; text-underline-offset: 3px; }
.footer-cta-contact svg { flex: 0 0 auto; }

/* main block */
.footer-main { padding-top: clamp(40px, 6vw, 72px); padding-bottom: var(--space-6); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(5, minmax(0, 1fr));
  gap: var(--space-7) var(--space-6);
  margin-bottom: var(--space-7);
  align-items: start;
}
.footer-col--contact { order: 4; }
.footer-col--legal { order: 5; }
.footer-brand p { margin: var(--space-4) 0 0; font-size: var(--fs-sm); line-height: 1.6; color: var(--grey-500); max-width: 34ch; }
.footer-logo { display: inline-block; }
.footer-col h2 {
  font-size: 0.8125rem; letter-spacing: 0.08em; margin-bottom: var(--space-4);
  color: var(--charcoal); line-height: 1.2;
}
.footer-col ul { margin: 0; padding: 0; }
.footer-col li { margin-bottom: 4px; }
.footer-col li a {
  display: inline-block; padding: 6px 0; font-size: var(--fs-sm); line-height: 1.4;
  color: var(--grey-700); overflow-wrap: anywhere;
  transition: color 0.15s ease, transform 0.15s ease;
}
.footer-col li a:hover { color: var(--magenta); transform: translateX(2px); }
.footer-address { font-style: normal; display: flex; flex-direction: column; gap: 2px; padding-top: 6px; font-size: var(--fs-sm); line-height: 1.5; color: var(--grey-700); }

/* social */
.footer-social { list-style: none; display: flex; gap: 12px; margin: var(--space-5) 0 0; padding: 0; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--grey-200); background: #fff; color: var(--charcoal);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease-out), box-shadow 0.2s ease;
}
.footer-social a:hover, .footer-social a:focus-visible {
  background: var(--magenta); border-color: var(--magenta); color: #fff;
  transform: translateY(-2px); box-shadow: 0 10px 20px -10px rgba(231, 28, 142, 0.7);
}

/* trust row */
.footer-trust {
  list-style: none; margin: 0 0 var(--space-6); padding: var(--space-5) 0;
  display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-4);
  border-top: 1px solid var(--grey-200);
}
.footer-trust-item {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: var(--radius-pill);
  background: var(--grey-50); border: 1px solid var(--grey-200);
  font-size: var(--fs-sm); color: var(--grey-700); line-height: 1.3;
}
.footer-trust-item svg { color: var(--purple); flex: 0 0 auto; }
.footer-trust-item:first-child svg { color: var(--yellow); }
.footer-trust-item strong { color: var(--charcoal); font-weight: 700; }

/* bottom bar */
.footer-bottom {
  border-top: 1px solid var(--grey-200); padding-top: var(--space-5);
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: var(--space-3) var(--space-6); flex-wrap: wrap;
  font-size: var(--fs-xs); line-height: 1.6; color: var(--grey-500);
}
.footer-legal { max-width: 70ch; }
.footer-legal > span { white-space: normal; }
.footer-legal .footer-regoffice { flex-basis: 100%; }
.footer-bottom-right { display: flex; align-items: center; gap: var(--space-5); flex-wrap: wrap; }
.footer-bottom .cookie-settings-link { min-height: 44px; padding: 0 4px; font-size: var(--fs-xs); color: var(--grey-700); text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; cursor: pointer; font-family: inherit; }
.footer-bottom .cookie-settings-link:hover { color: var(--magenta); }
.footer-tagline { color: var(--magenta-dark); font-size: var(--fs-sm); }

@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { max-width: 56ch; }
  .footer-col { grid-column: span 2; }
  .footer-col--contact, .footer-col--legal { order: 0; }
  .footer-col--legal { order: 0; }
  .footer-col--contact { grid-column: span 4; }
}
@media (max-width: 880px) {
  .footer-cta-inner { flex-direction: column; align-items: flex-start; }
  .footer-cta-actions { width: 100%; flex-direction: column; align-items: stretch; gap: var(--space-4); }
  .footer-cta-actions .btn { width: 100%; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6) var(--space-5); }
  .footer-col, .footer-col--contact { grid-column: span 1; }
  .footer-col--contact { grid-column: 1 / -1; }
  .footer-trust { flex-direction: column; align-items: stretch; }
  .footer-trust-item { border-radius: var(--radius-md); }
  .footer-legal { flex-direction: column; align-items: flex-start; }
  .footer-bottom-right { flex-direction: column; align-items: flex-start; gap: var(--space-2); }
  .footer-main { padding-bottom: var(--space-5); }
}

/* ---- 5. LOGO MARQUEE (reusable) ----------------------------------------------
 * Logo cards that scroll sideways, greyscale until hovered, with faded edges.
 * Pauses on hover and keyboard focus. Falls back to a swipeable row for
 * reduced motion.
 *
 *   <div class="logo-marquee" style="--marquee-speed:45s" aria-label="Suppliers we work with">
 *     <ul class="logo-marquee__track">
 *       <li class="logo-marquee__item"><img src="/logos/x.svg" alt="X" width="120" height="40" loading="lazy"></li>
 *       ... all logos ...
 *       ...then the SAME logos again, each <li> with aria-hidden="true" ...
 *     </ul>
 *   </div>
 *
 * Variants: .logo-marquee--reverse (opposite direction), .logo-marquee--flat
 * (no card border, logos only). Tweak with --marquee-speed, --marquee-gap.
 * (premium.css also has the older .marquee; prefer .logo-marquee for new work.)
 * ------------------------------------------------------------------------- */
.logo-marquee {
  --marquee-speed: 45s;
  --marquee-gap: 16px;
  position: relative; overflow: hidden; width: 100%;
  padding-block: var(--space-2);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
}
.logo-marquee__track {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: stretch; gap: var(--marquee-gap);
  width: max-content;
  animation: logo-marquee-scroll var(--marquee-speed) linear infinite;
}
.logo-marquee--reverse .logo-marquee__track { animation-direction: reverse; }
.logo-marquee:hover .logo-marquee__track,
.logo-marquee:focus-within .logo-marquee__track { animation-play-state: paused; }
.logo-marquee__item {
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto; width: 176px; height: 84px; padding: 16px 22px;
  background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s var(--ease-out);
}
.logo-marquee--flat .logo-marquee__item { background: transparent; border-color: transparent; box-shadow: none; }
.logo-marquee__item img {
  max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain;
  filter: grayscale(1); opacity: 0.7;
  transition: filter 0.3s ease, opacity 0.3s ease;
}
.logo-marquee__item:hover, .logo-marquee__item:focus-within {
  border-color: rgba(231, 28, 142, 0.35); box-shadow: var(--shadow-md); transform: translateY(-2px);
}
.logo-marquee__item:hover img, .logo-marquee__item:focus-within img { filter: none; opacity: 1; }
@keyframes logo-marquee-scroll { to { transform: translateX(calc(-50% - var(--marquee-gap) / 2)); } }
@media (max-width: 640px) {
  .logo-marquee { --marquee-gap: 12px; }
  .logo-marquee__item { width: 144px; height: 72px; padding: 12px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .logo-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .logo-marquee__track { animation: none; }
  .logo-marquee__item[aria-hidden="true"] { display: none; }
}

/* 25 Nov 2026: stop footer legal line overflowing on phones (requested by inner-pages agent) */
.footer-legal, .footer-legal > span, .footer-legal .footer-regoffice { white-space: normal !important; overflow-wrap: anywhere; max-width: 100%; min-width: 0; }
