/* ==========================================================================
   Site header + footer (navigation standardisation). Module 02 Design System
   tokens. Loaded on every page; class names are new (ds-header / ds-footer) so
   the old teal header/footer rules cannot leak in.
   ========================================================================== */
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/barlow-400.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/barlow-500.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/barlow-600.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/barlow-condensed-700.woff2') format('woff2'); }

.ds-header, .ds-footer {
  --ds-ink-900: #14181C; --ds-accent: #FFB400; --ds-accent-hover: #E6A100; --ds-accent-text: #8A5A00;
  --ds-bg: #FFFFFF; --ds-bg-alt: #F2F0EB; --ds-border: #D9D5CB; --ds-border-dark: #36414A;
  --ds-text: #1E252B; --ds-text-soft: #4A545C; --ds-on-dark: #F6F4EF; --ds-on-dark-soft: #B8C1C8;
  --ds-font-head: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --ds-font-body: 'Barlow', Arial, sans-serif;
  font-family: var(--ds-font-body);
}

/* ---------- header ---------- */
.ds-header { position: sticky; top: 0; z-index: 100; background: var(--ds-bg); border-bottom: 1px solid var(--ds-border); }
.ds-header__bar { max-width: 1200px; margin: 0 auto; padding: 0 16px; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ds-header__logo { display: inline-flex; align-items: center; flex: none; }
.ds-header__logo img { display: block; height: 44px; width: auto; max-width: none; }

/* mobile menu button */
.ds-header__menu { flex: none; width: 48px; height: 48px; padding: 0; background: transparent; border: 2px solid var(--ds-ink-900); border-radius: 6px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
/* mobile header call button (DS §11): 48px amber icon beside the menu button, hidden from 1024px */
.ds-header__call { flex: none; margin-left: auto; width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; background: var(--ds-accent); border: 2px solid var(--ds-accent); border-radius: 6px; color: var(--ds-ink-900); text-decoration: none; transition: background-color 150ms ease-out, border-color 150ms ease-out; }
.ds-header__call svg { width: 22px; height: 22px; fill: currentColor; }
.ds-header__call:hover { background: var(--ds-accent-hover); border-color: var(--ds-accent-hover); }
.ds-header__call:focus-visible { outline: 3px solid var(--ds-ink-900); outline-offset: 2px; }
.ds-header__call + .ds-header__menu { margin-left: -8px; }
.ds-header__menu span, .ds-header__menu span::before, .ds-header__menu span::after { display: block; width: 22px; height: 2px; background: var(--ds-ink-900); border-radius: 1px; position: relative; transition: transform 200ms ease-out, background-color 200ms ease-out; }
.ds-header__menu span::before, .ds-header__menu span::after { content: ""; position: absolute; left: 0; }
.ds-header__menu span::before { top: -7px; }
.ds-header__menu span::after { top: 7px; }
.ds-header__menu[aria-expanded="true"] span { background: transparent; }
.ds-header__menu[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.ds-header__menu[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* navigation panel (mobile first) */
.ds-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--ds-bg); border-bottom: 1px solid var(--ds-border); box-shadow: 0 20px 40px rgba(20, 24, 28, 0.20); max-height: calc(100vh - 64px); overflow-y: auto; }
.ds-nav.is-open { display: block; }
.ds-nav__list { list-style: none; margin: 0; padding: 8px 16px 24px; }
.ds-nav__list > li { border-bottom: 1px solid var(--ds-border); }
.ds-header .ds-nav a:not(.ds-btn) { display: flex; align-items: center; min-height: 48px; font-family: var(--ds-font-body); font-size: 18px; font-weight: 600; line-height: 1.3; color: var(--ds-ink-900); text-decoration: none; }
.ds-header .ds-nav a:not(.ds-btn):hover { color: var(--ds-accent-text); }
.ds-header .ds-nav a[aria-current="page"] { color: var(--ds-accent-text); }
.ds-nav__has-sub { display: flex; flex-wrap: wrap; align-items: center; }
.ds-nav__has-sub > a { flex: 1; }
.ds-nav__subtoggle { flex: none; width: 48px; height: 48px; padding: 0; background: transparent; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.ds-nav__subtoggle svg { width: 24px; height: 24px; fill: none; stroke: var(--ds-ink-900); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 200ms ease-out; }
.ds-nav__has-sub.is-open .ds-nav__subtoggle svg { transform: rotate(180deg); }
.ds-nav__sub { display: none; flex: 0 0 100%; list-style: none; margin: 0; padding: 0 0 8px; }
.ds-nav__has-sub.is-open > .ds-nav__sub { display: block; }
.ds-header .ds-nav__sub a { font-size: 17px; font-weight: 500; color: var(--ds-text); padding-left: 12px; }
.ds-nav__list > li.ds-nav__cta { border-bottom: 0; padding-top: 16px; }

/* buttons */
.ds-header a.ds-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 24px; border: 2px solid transparent; border-radius: 6px; font-family: var(--ds-font-head); font-weight: 700; font-size: 19px; line-height: 1; letter-spacing: 0.03em; text-transform: uppercase; text-decoration: none; background: var(--ds-accent); color: var(--ds-ink-900); transition: background-color 150ms ease-out; }
.ds-header a.ds-btn:hover { background: var(--ds-accent-hover); color: var(--ds-ink-900); }
.ds-nav__cta a.ds-btn { width: 100%; }

/* focus */
.ds-header :focus-visible, .ds-footer :focus-visible { outline: 3px solid var(--ds-ink-900); outline-offset: 2px; }
.ds-footer :focus-visible { outline-color: var(--ds-accent); }

/* desktop */
@media (min-width: 768px) { .ds-header__bar { padding: 0 24px; } }
@media (min-width: 1024px) {
  .ds-header__bar { height: 80px; padding: 0 32px; gap: 24px; }
  .ds-header__logo img { height: 52px; }
  .ds-header__menu { display: none; }
  .ds-header__call { display: none; }
  .ds-nav { display: flex; position: static; flex: 1; align-items: center; background: transparent; border: 0; box-shadow: none; max-height: none; overflow: visible; }
  .ds-nav__list { display: flex; align-items: center; gap: 4px; width: 100%; padding: 0; }
  .ds-nav__list > li { border: 0; position: relative; }
  .ds-header .ds-nav a:not(.ds-btn) { padding: 0 12px; font-size: 17px; }
  .ds-nav__has-sub { flex-wrap: nowrap; }
  .ds-nav__has-sub > a { flex: none; padding-right: 0 !important; }
  .ds-nav__subtoggle { width: 32px; height: 48px; }
  .ds-nav__sub { position: absolute; top: 100%; left: 0; min-width: 340px; padding: 8px; background: var(--ds-bg); border: 1px solid var(--ds-border); border-radius: 8px; box-shadow: 0 8px 20px rgba(20, 24, 28, 0.14); }
  .ds-nav__has-sub:hover > .ds-nav__sub, .ds-nav__has-sub:focus-within > .ds-nav__sub, .ds-nav__has-sub.is-open > .ds-nav__sub { display: block; }
  .ds-header .ds-nav__sub a { padding: 0 12px; border-radius: 6px; font-size: 17px; }
  .ds-header .ds-nav__sub a:hover { background: var(--ds-bg-alt); }
  .ds-nav__list > li.ds-nav__cta { margin-left: auto; padding: 0; }
  .ds-header a.ds-btn { min-height: 48px; }
  .ds-nav__cta a.ds-btn { width: auto; }
}

/* ---------- footer ---------- */
.ds-footer { background: var(--ds-ink-900); color: var(--ds-on-dark-soft); padding: 48px 0 24px; border-top: 0; }
.ds-footer__inner { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.ds-footer__grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
.ds-footer .ds-footer__heading { margin: 0 0 12px; font-family: var(--ds-font-head); font-weight: 600; font-size: 20px; line-height: 1.2; letter-spacing: 0.01em; text-transform: none; color: var(--ds-on-dark); }
.ds-footer p { margin: 0 0 12px; font-size: 17px; line-height: 1.6; color: var(--ds-on-dark-soft); }
.ds-footer .ds-footer__name { font-family: var(--ds-font-head); font-weight: 700; font-size: 24px; line-height: 1.2; color: var(--ds-on-dark); margin: 0 0 8px; }
.ds-footer .ds-footer__list { list-style: none; margin: 0; padding: 0; }
.ds-footer .ds-footer__list a, .ds-footer .ds-footer__phone { display: inline-flex; align-items: center; min-height: 48px; font-size: 17px; font-weight: 500; line-height: 1.3; color: var(--ds-on-dark-soft); text-decoration: none; }
.ds-footer .ds-footer__list a:hover { color: var(--ds-on-dark); text-decoration: underline; text-underline-offset: 3px; }
.ds-footer .ds-footer__list a[aria-current="page"] { color: var(--ds-on-dark); }
.ds-footer .ds-footer__phone { font-weight: 600; font-size: 20px; color: var(--ds-accent); text-decoration: underline; text-underline-offset: 3px; }
.ds-footer .ds-footer__phone:hover { color: #FFD066; }
.ds-footer__bottom { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--ds-border-dark); }
.ds-footer .ds-footer__copy { font-size: 15px; line-height: 1.5; color: var(--ds-on-dark-soft); margin: 0 0 8px; }
.ds-footer .ds-footer__disclaimer { font-size: 14px; line-height: 1.5; color: var(--ds-on-dark-soft); max-width: 62rem; margin: 0; }
@media (min-width: 640px) { .ds-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; } .ds-footer .ds-footer__list a { min-height: 40px; } }
@media (min-width: 768px) { .ds-footer__inner { padding: 0 24px; } .ds-footer { padding: 64px 0 24px; } }
@media (min-width: 1024px) { .ds-footer__inner { padding: 0 32px; } .ds-footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; } .ds-footer .ds-footer__list a { min-height: 36px; } .ds-footer { padding: 80px 0 32px; } }

@media (prefers-reduced-motion: reduce) {
  .ds-header__menu span, .ds-header__menu span::before, .ds-header__menu span::after, .ds-nav__subtoggle svg, .ds-header a.ds-btn, .ds-header__call { transition: none; }
}

/* ---------- social profile icons (footer site-wide; contextual band on Home / About / Contact) ---------- */
.ds-social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ds-social li { margin: 0; padding: 0; }
.ds-social a { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 999px; border: 1px solid var(--ds-border-dark, #3A4249); color: var(--ds-on-dark, #fff); background: transparent; transition: background-color 150ms ease-out, color 150ms ease-out, border-color 150ms ease-out; }
.ds-social a:hover { background: var(--ds-accent, #FFB400); border-color: var(--ds-accent, #FFB400); color: var(--ds-ink-900, #14181C); }
.ds-social a:focus-visible { outline: 3px solid var(--ds-accent, #FFB400); outline-offset: 2px; }
.ds-social svg { display: block; }
.ds-footer .ds-social { margin: 4px 0 0; }
.ds-social--light a { border-color: var(--ds-border, #D8D5CC); color: var(--ds-ink-900, #14181C); }
.ds-social--light a:hover { background: var(--ds-ink-900, #14181C); border-color: var(--ds-ink-900, #14181C); color: var(--ds-accent, #FFB400); }
.ds-social--light a:focus-visible { outline-color: var(--ds-ink-900, #14181C); }
@media (prefers-reduced-motion: reduce) { .ds-social a { transition: none; } }

/* social icons in platform brand colours: white glyph on a solid brand circle (brand colours) */
.ds-social a[href*="facebook.com"] { background: #1877F2; border-color: #1877F2; color: #fff; }
.ds-social a[href*="linkedin.com"] { background: #0A66C2; border-color: #0A66C2; color: #fff; }
.ds-social a[href*="youtube.com"] { background: #FF0000; border-color: #FF0000; color: #fff; }
.ds-social a[href*="pinterest."] { background: #E60023; border-color: #E60023; color: #fff; }
.ds-social a[href*="twitter.com"] { background: #000000; border-color: #5A636B; color: #fff; }
.ds-social a[href*="instagram.com"] { background: radial-gradient(circle at 30% 107%, #FDF497 0%, #FDF497 5%, #FD5949 45%, #D6249F 60%, #285AEB 90%); border-color: #D6249F; color: #fff; }
.ds-social a[href*="facebook.com"]:hover, .ds-social a[href*="linkedin.com"]:hover, .ds-social a[href*="youtube.com"]:hover, .ds-social a[href*="pinterest."]:hover, .ds-social a[href*="twitter.com"]:hover, .ds-social a[href*="instagram.com"]:hover { color: #fff; filter: brightness(1.12); transform: translateY(-2px); }
.ds-social a[href*="twitter.com"]:hover { background: #2B3036; border-color: #8A939B; filter: none; }
.ds-social a[href*="facebook.com"]:hover { background: #1877F2; border-color: #1877F2; } .ds-social a[href*="linkedin.com"]:hover { background: #0A66C2; border-color: #0A66C2; } .ds-social a[href*="youtube.com"]:hover { background: #FF0000; border-color: #FF0000; } .ds-social a[href*="pinterest."]:hover { background: #E60023; border-color: #E60023; }
.ds-social a[href*="instagram.com"]:hover { background: radial-gradient(circle at 30% 107%, #FDF497 0%, #FDF497 5%, #FD5949 45%, #D6249F 60%, #285AEB 90%); border-color: #D6249F; }
.ds-social--light a[href*="twitter.com"]:hover { background: #2B3036; border-color: #2B3036; }
.ds-social a:focus-visible { outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .ds-social a:hover { transform: none; } }

/* ---------- mobile sticky call / quote bar (hidden from 768px up) ---------- */
.ds-stickybar { display: none; }
@media (max-width: 767px) {
  .ds-stickybar { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: #14181C; box-shadow: 0 -2px 14px rgba(0, 0, 0, 0.28); transition: transform 200ms ease-out; }
  .ds-stickybar.is-off { transform: translateY(115%); visibility: hidden; transition: transform 200ms ease-out, visibility 0s linear 200ms; }
  .ds-stickybar a { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 12px; border-radius: 6px; font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif; font-weight: 700; font-size: 18px; letter-spacing: 0.02em; text-transform: uppercase; text-decoration: none; text-align: center; }
  .ds-stickybar__call { background: #FFB400; color: #14181C; border: 2px solid #FFB400; }
  .ds-stickybar__quote { background: transparent; color: #FFFFFF; border: 2px solid #FFFFFF; }
  .ds-stickybar a:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 2px; }
  .ds-footer { padding-bottom: 96px; }
}
@media (prefers-reduced-motion: reduce) { .ds-stickybar, .ds-stickybar.is-off { transition: none; } }

/* ---------- utilities replacing former inline style attributes (quality audit L6) ---------- */
/* !important keeps the old inline-style precedence, so rendering is unchanged */
.u-bg-alt { background: var(--bc-surface-alt) !important; }
.u-bg-tint { background: var(--bc-tint) !important; }
.u-bg-paper { background: var(--bc-paper) !important; }
.u-row { display: flex !important; gap: 1rem; flex-wrap: wrap; }
.u-row--between { justify-content: space-between; }
.u-row--center { align-items: center; }
.u-row--logos { gap: 1.5rem; align-items: center; }
.u-hidden { display: none !important; }
.u-stat { font-family: var(--bc-font-head) !important; font-size: var(--bc-fs-h2) !important; line-height: var(--bc-lh-tight) !important; }

/* ---------- click-to-load YouTube poster (quality audit L8) ---------- */
.bc-video__poster { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #14181C; cursor: pointer; display: grid; place-items: center; }
.bc-video__poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bc-video__poster .bc-video__play { padding-left: 0; background: #FFB400; color: #14181C; box-shadow: 0 0 0 10px rgba(255, 180, 0, 0.25); transition: transform 150ms ease-out; }
.bc-video__poster .bc-video__play svg { width: 30px; height: 30px; fill: currentColor; margin-left: 4px; }
.bc-video__poster:hover .bc-video__play { transform: scale(1.06); }
.bc-video__poster:focus-visible { outline: 3px solid #FFB400; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .bc-video__poster .bc-video__play { transition: none; } .bc-video__poster:hover .bc-video__play { transform: none; } }
