/* =========================================================
   QSP Solutions — site stylesheet (2026 redesign)
   Plain CSS, no build step. Brand colours and type below.
   ========================================================= */

:root {
  --magenta: #92278F;
  --magenta-dark: #7A1F77;
  --purple: #49176D;
  --purple-deep: #2E0E47;
  --purple-mid: #5E1D86;
  --pink-soft: #E9A6E6;
  --lilac: #E9D6EC;
  --lilac-bg: #F5E9F5;
  --ink: #282828;
  --body: #4A4A4A;
  --muted: #595959;
  --line: #E4E4E4;
  --wash: #F7F5F8;
  --charcoal: #282828;
  --night: #1E1E1E;
  --white: #FFFFFF;

  --font-body: 'PT Sans', Arial, Helvetica, sans-serif;
  --font-head: 'Zilla Slab', Georgia, 'Times New Roman', serif;

  --wrap: 1240px;
  --radius: 6px;
  --header-h: 89px;
  --header-fixed-h: 71px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--magenta); }
a:hover { color: var(--purple); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; margin: 0; color: var(--ink); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--magenta); color: var(--white); padding: 12px 18px; z-index: 100; }
.skip-link:focus { left: 12px; top: 12px; }
:focus-visible { outline: 3px solid var(--pink-soft); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 14px 26px;
  border-radius: 4px; font-weight: 700; font-size: 16px; line-height: 1.2;
  text-decoration: none; border: 2px solid transparent; transition: background .2s, border-color .2s, color .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--magenta); color: var(--white); }
.btn-primary:hover { background: var(--magenta-dark); color: var(--white); }
.btn-primary.on-dark { box-shadow: 0 0 0 2px var(--white); }
.btn-ghost { color: var(--white); border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { color: var(--white); border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-white { background: var(--white); color: var(--purple); }
.btn-white:hover { background: var(--lilac-bg); color: var(--purple); }

/* ---------- Utility bar ---------- */
.utility { background: var(--purple); color: var(--lilac); font-size: 14px; }
.utility .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 24px; padding-top: 9px; padding-bottom: 9px; }
.utility a { color: var(--white); text-decoration: none; }
.utility a:hover { text-decoration: underline; color: var(--white); }
.utility .contacts { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.utility strong { font-weight: 700; }

/* ---------- Header ---------- */
/* The header sits in a slot that keeps its height, so the page never jumps.
   It scrolls away normally; once fully out of view, scripts/qsp.js adds
   .is-fixed and a pinned copy fades in at the top of the window. */
.header-slot { min-height: var(--header-h); position: relative; z-index: 50; }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: relative; z-index: 50; }
.site-header.is-fixed {
  position: fixed; top: 0; left: 0; right: 0;
  border-bottom: 3px solid var(--magenta);
  box-shadow: 0 10px 30px -12px rgba(40,10,60,.35);
  animation: qsp-header-in .35s cubic-bezier(.22,.61,.36,1) both;
}
/* a slightly slimmer bar while pinned, as on the GETrained site */
.site-header.is-fixed .wrap { padding-top: 10px; padding-bottom: 10px; }
.site-header.is-fixed .logo img { height: 44px; }
@media (max-width: 960px) { .site-header.is-fixed .logo img { height: 38px; } }
@keyframes qsp-header-in { from { transform: translateY(-100%); } to { transform: none; } }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 16px; padding-bottom: 16px; }
.logo { display: block; line-height: 0; flex: none; }
.logo img { height: 56px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav > a, .nav-services > summary {
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px;
  padding: 12px 2px; border-bottom: 2px solid transparent; cursor: pointer;
}
.main-nav > a:hover, .nav-services > summary:hover { color: var(--magenta); border-bottom-color: var(--magenta); }
.main-nav > a[aria-current="page"], .nav-services.is-current > summary { color: var(--magenta); border-bottom-color: var(--magenta); }

/* Services dropdown — CSS only: opens on hover and on keyboard focus */
.nav-services { position: relative; }
.nav-services > a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; padding: 12px 2px; border-bottom: 2px solid transparent; display: inline-flex; align-items: center; gap: 6px; }
.nav-services > a:hover, .nav-services.is-current > a { color: var(--magenta); border-bottom-color: var(--magenta); }
.nav-services > a svg { width: 14px; height: 14px; transition: transform .2s; }
.nav-services:hover > a svg, .nav-services:focus-within > a svg { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: 100%; left: -20px; min-width: 320px; padding-top: 10px;
  visibility: hidden; opacity: 0; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.dropdown-inner {
  background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--magenta);
  border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 18px 40px rgba(73,23,109,.14);
  padding: 8px; display: flex; flex-direction: column;
}
.nav-services:hover .dropdown, .nav-services:focus-within .dropdown { visibility: visible; opacity: 1; transform: none; }
.dropdown a { color: var(--ink); text-decoration: none; padding: 11px 14px; border-radius: 4px; font-size: 15px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dropdown a span { font-weight: 400; color: var(--muted); font-size: 13px; white-space: nowrap; }
.dropdown a:hover, .dropdown a[aria-current="page"] { background: var(--lilac-bg); color: var(--magenta); }
.header-cta { flex: none; }

/* Mobile menu — CSS only via <details> */
.mobile-menu { display: none; }
.mobile-menu > summary {
  list-style: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  min-height: 48px; padding: 10px 16px; border: 2px solid var(--line); border-radius: 4px; font-weight: 700;
}
.mobile-menu > summary::-webkit-details-marker { display: none; }
.mobile-menu > summary svg { width: 20px; height: 20px; }
.mobile-panel {
  position: absolute; left: 0; right: 0; top: 100%; background: var(--white);
  border-top: 1px solid var(--line); border-bottom: 3px solid var(--magenta);
  box-shadow: 0 18px 40px rgba(73,23,109,.14); padding: 12px 24px 24px;
}
.mobile-panel a { display: block; padding: 13px 0; color: var(--ink); text-decoration: none; font-weight: 700; border-bottom: 1px solid var(--line); }
.mobile-panel a.sub { padding-left: 16px; font-weight: 400; }
.mobile-panel a[aria-current="page"] { color: var(--magenta); }
.mobile-panel .btn { margin-top: 18px; width: 100%; justify-content: center; border-bottom: 0; color: var(--white); }

@media (max-width: 960px) {
  .main-nav, .header-cta { display: none; }
  .mobile-menu { display: block; }
  .logo img { height: 46px; }
}

/* ---------- Shared section bits ---------- */
.section { padding: 104px 0; }
.section-tight { padding: 72px 0; }
.bg-wash { background: var(--wash); }
.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--magenta); font-weight: 700; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 32px; height: 3px; background: currentColor; flex: none; }
.on-dark .eyebrow, .eyebrow.light { color: var(--pink-soft); }
.h-section { font-size: clamp(30px, 3.6vw, 46px); }
.lead { font-size: 19px; line-height: 1.6; color: var(--body); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 56px; }
.section-head .title { display: flex; flex-direction: column; gap: 18px; max-width: 660px; }
.section-head .lead { max-width: 440px; }
.icon { width: 24px; height: 24px; flex: none; }

/* ---------- Home hero ---------- */
.hero { position: relative; background: var(--purple); color: var(--white); overflow: hidden; }
.hero-shape { position: absolute; top: 0; right: 0; width: 46%; height: 100%; background: var(--magenta); clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%); }
.hero-shape.slash { background: var(--purple-mid); clip-path: polygon(22% 0, 30% 0, 8% 100%, 0 100%); }
.hero .wrap { position: relative; padding-top: 88px; padding-bottom: 96px; }
.hero.js .wrap { padding-bottom: 36px; }

/* Slides are stacked in one grid cell, so the hero is always as tall as the tallest slide */
.hero-slides { display: grid; grid-template-columns: minmax(0, 1fr); }
/* Transitions: the outgoing slide's text slides away and fades (.is-leaving),
   then the incoming text slides in piece by piece while the photo wipes in. */
.hero-slide { grid-area: 1 / 1; display: flex; flex-wrap: wrap; align-items: center; gap: 48px; visibility: hidden; }
.hero-slide.is-active, .hero-slide.is-leaving { visibility: visible; }
.hero-slide.is-leaving { z-index: 0; pointer-events: none; }
.hero-slide.is-active { z-index: 1; }
.hero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }

:root { --ease-out: cubic-bezier(.22, .61, .36, 1); --ease-in: cubic-bezier(.55, .06, .68, .19); }
/* waiting (not shown): parked to the right, invisible */
.hero-copy > * { opacity: 0; transform: translateX(60px); }
.hero.dir-back .hero-slide:not(.is-active):not(.is-leaving) .hero-copy > * { transform: translateX(-60px); }
/* incoming: slide in from the side and fade up, staggered */
.hero-slide.is-active .hero-copy > * { opacity: 1; transform: none; transition: opacity .6s ease, transform .7s var(--ease-out); }
.hero-slide.is-active .hero-copy > :nth-child(1) { transition-delay: .35s; }
.hero-slide.is-active .hero-copy > :nth-child(2) { transition-delay: .45s; }
.hero-slide.is-active .hero-copy > :nth-child(3) { transition-delay: .57s; }
.hero-slide.is-active .hero-copy > :nth-child(4) { transition-delay: .69s; }
/* outgoing: slide out the other way and fade, all together and quickly */
.hero-slide.is-leaving .hero-copy > * { opacity: 0; transform: translateX(-60px); transition: opacity .35s ease, transform .4s var(--ease-in); }
.hero.dir-back .hero-slide.is-leaving .hero-copy > * { transform: translateX(60px); }

/* photo: wipes in from the right with a slow zoom; fades out when leaving */
.hero-slide .photo { opacity: 0; clip-path: inset(0 0 0 100% round var(--radius)); }
.hero-slide .photo img { transform: scale(1.12); }
.hero-slide.is-active .photo { opacity: 1; clip-path: inset(0 0 0 0 round var(--radius)); transition: clip-path .9s var(--ease-out) .25s, opacity .3s ease .25s; }
.hero-slide.is-active .photo img { transform: scale(1); transition: transform 10s ease-out .25s; }
.hero-slide.is-leaving .photo { opacity: 0; clip-path: inset(0 0 0 0 round var(--radius)); transition: opacity .45s ease; }
.hero-slide.is-leaving .photo img { transform: scale(1); }

/* badge: rises and fades in last */
.hero-slide .badge-card { opacity: 0; transform: translateY(24px); }
.hero-slide.is-active .badge-card { opacity: 1; transform: none; transition: opacity .5s ease .85s, transform .6s var(--ease-out) .85s; }
.hero-slide.is-leaving .badge-card { opacity: 0; transform: translateY(12px); transition: opacity .3s ease, transform .3s ease; }

.pill { display: inline-flex; align-self: flex-start; align-items: center; gap: 10px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #F3E3F2; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pink-soft); flex: none; }
.hero .hero-h { color: var(--white); font-size: clamp(36px, 4.2vw, 56px); line-height: 1.06; letter-spacing: -.01em; }
.hero .lead { color: var(--lilac); font-size: 19px; max-width: 560px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .btn-row { gap: 12px; }
.hero .btn-row .btn { padding: 13px 20px; font-size: 15px; }
.btn-tint { background: rgba(255,255,255,.14); color: var(--white); }
.btn-tint:hover { background: rgba(255,255,255,.24); color: var(--white); }

/* Carousel controls: progress tabs + pause. Hidden until the script runs. */
.hero-controls { display: none; }
.hero.js .hero-controls { display: flex; align-items: flex-start; gap: 20px; margin-top: 64px; }
.hero-pause {
  flex: none; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  background: transparent; border: 2px solid rgba(255,255,255,.45); color: var(--white);
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.hero-pause:hover { border-color: var(--white); background: rgba(255,255,255,.1); }
.hero-pause svg { width: 16px; height: 16px; }
.hero-pause .i-play, .hero.is-paused .hero-pause .i-pause { display: none; }
.hero.is-paused .hero-pause .i-play { display: block; }
.hero-tabs { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.hero-tab {
  background: none; border: 0; padding: 10px 0 4px; margin: 0; cursor: pointer; text-align: left;
  font: 700 13px/1.3 var(--font-body); color: var(--lilac); min-height: 44px; display: flex; flex-direction: column; gap: 10px;
}
.hero-tab:hover, .hero-tab.is-active { color: var(--white); }
.hero-tab .bar { display: block; position: relative; height: 3px; border-radius: 2px; background: rgba(255,255,255,.22); overflow: hidden; }
.hero-tab .fill { position: absolute; inset: 0; background: var(--pink-soft); transform: scaleX(0); transform-origin: left center; }
.hero-tab.is-active .fill { transform: scaleX(1); }
.hero.is-running .hero-tab.is-active .fill { animation: hero-fill var(--hero-delay, 5000ms) linear forwards; }
@keyframes hero-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* video frame: exactly 640 x 360 (half of the 1280 x 720 videos) wherever there is room;
   on narrower screens it scales down in the same 16:9 shape */
.hero-media { flex: 0 1 640px; max-width: 640px; min-width: 0; position: relative; display: flex; flex-direction: column; }
.hero-media .photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--purple-deep); box-shadow: 0 30px 60px rgba(20,4,32,.35); }
.hero-media .photo img { width: 100%; height: 100%; object-fit: cover; }
.badge-card {
  align-self: flex-start; margin: -48px 0 0 -24px; position: relative;
  background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 18px 22px;
  display: flex; align-items: center; gap: 16px; box-shadow: 0 20px 40px rgba(20,4,32,.35); max-width: 330px;
}
.badge-card .ring { width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--lilac-bg); color: var(--magenta); display: flex; align-items: center; justify-content: center; }
.badge-card .ring svg { width: 26px; height: 26px; }
.badge-card strong { display: block; font-size: 16px; }
.badge-card span { font-size: 14px; color: var(--muted); }
@media (max-width: 860px) {
  .hero-shape { display: none; }
  .hero .wrap { padding-top: 56px; padding-bottom: 64px; }
  .hero.js .wrap { padding-bottom: 28px; }
  .hero-slide { gap: 40px; }
  .badge-card { margin: -32px 0 0 16px; }
  .hero.js .hero-controls { margin-top: 40px; gap: 14px; }
  .hero-tabs { gap: 6px; }
  .hero-tab { justify-content: center; padding: 0; }
  .hero-tab .t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- Standards strip ---------- */
.standards { border-bottom: 1px solid var(--line); }
.standards .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; padding-top: 28px; padding-bottom: 28px; }
.standards .label { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.standards ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 36px; font-family: var(--font-head); font-size: 22px; font-weight: 600; color: var(--purple); }

/* ---------- About split ---------- */
.split { display: flex; flex-wrap: wrap; gap: 48px 80px; align-items: flex-start; }
.split > .col-a { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.split > .col-b { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; font-size: 18px; line-height: 1.7; color: var(--body); }
.stats { display: flex; flex-wrap: wrap; gap: 20px 44px; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 24px; }
.stat strong { display: block; font-family: var(--font-head); font-size: 42px; font-weight: 700; color: var(--magenta); line-height: 1; }
.stat span { font-size: 15px; color: var(--muted); }

/* ---------- Service cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.svc {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 32px 28px; display: flex; flex-direction: column; gap: 18px; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.svc::before { content: ""; position: absolute; top: 0; left: 0; height: 4px; width: 56px; background: var(--magenta); transition: width .3s ease; }
.svc:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(73,23,109,.14); border-color: var(--magenta); }
.svc:hover::before { width: 100%; }
.svc-top { display: flex; justify-content: space-between; align-items: flex-start; }
.svc-icon { width: 56px; height: 56px; border-radius: var(--radius); background: var(--lilac-bg); color: var(--magenta); display: flex; align-items: center; justify-content: center; }
.svc-icon svg { width: 28px; height: 28px; }
.svc-num { font-family: var(--font-head); font-size: 28px; font-weight: 600; color: #D9C2DD; line-height: 1; }
.svc h3 { font-size: 24px; }
.svc h3 a { color: inherit; text-decoration: none; }
.svc h3 a::after { content: ""; position: absolute; inset: 0; }
.svc p { font-size: 16px; line-height: 1.6; color: var(--body); flex-grow: 1; }
.svc-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid #EFEFEF; }
.svc-foot .std { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.svc-foot .more { display: inline-flex; align-items: center; gap: 6px; color: var(--magenta); font-weight: 700; font-size: 15px; }
.svc-foot .more svg { width: 16px; height: 16px; transition: transform .2s; }
.svc:hover .svc-foot .more svg { transform: translateX(4px); }

/* ---------- Process (dark) ---------- */
.dark-band { background: var(--charcoal); color: var(--white); position: relative; }
.dark-band::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 8px; background: var(--magenta); }
.dark-band h2, .dark-band h3 { color: var(--white); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.steps li { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 32px 28px 8px 0; border-top: 2px solid #4A4A4A; }
.steps li::before { content: ""; position: absolute; top: -2px; left: 0; width: 48px; height: 2px; background: var(--pink-soft); }
.steps .n { font-family: var(--font-head); font-size: 44px; font-weight: 700; color: var(--pink-soft); line-height: 1; }
.steps h3 { font-family: var(--font-body); font-size: 20px; font-weight: 700; }
.steps p { font-size: 16px; line-height: 1.6; color: #C9C9C9; }

/* ---------- Testimonial logos ---------- */
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.logo-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 14px 14px;
  text-decoration: none; color: var(--muted); font-size: 13px; font-weight: 700; transition: border-color .2s, box-shadow .2s;
}
.logo-tile img { width: 100%; max-width: 180px; height: auto; }
.logo-tile:hover { border-color: var(--magenta); box-shadow: 0 10px 24px rgba(73,23,109,.12); color: var(--magenta); }
.logo-tile span { display: inline-flex; align-items: center; gap: 6px; }
.logo-tile svg { width: 14px; height: 14px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; background: var(--magenta); color: var(--white); overflow: hidden; }
.cta-band::after { content: ""; position: absolute; top: 0; right: 0; width: 38%; height: 100%; background: var(--purple); clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%); }
.cta-band .wrap { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 40px; padding-top: 88px; padding-bottom: 88px; }
.cta-band .copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.cta-band h2 { color: var(--white); font-size: clamp(30px, 3.8vw, 48px); line-height: 1.1; }
.cta-band p { font-size: 19px; color: #F6E4F5; max-width: 520px; }
.cta-band .actions { flex: 0 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.cta-band .actions .btn { width: 100%; font-size: 18px; padding: 16px 22px; }
@media (max-width: 860px) { .cta-band::after { display: none; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: #D6D6D6; font-size: 15px; }
.site-footer .wrap { padding-top: 72px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 48px; }
.foot-cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px 64px; }
.foot-brand { flex: 1 1 280px; max-width: 360px; display: flex; flex-direction: column; gap: 16px; }
.foot-brand .name { font-family: var(--font-head); font-size: 28px; font-weight: 700; color: var(--white); }
.foot-brand .name span { font-weight: 400; }
.foot-brand .accr { display: flex; align-items: center; gap: 14px; }
.foot-brand .accr img { width: 92px; background: var(--white); border-radius: 4px; padding: 4px; }
.foot-col { flex: 0 1 220px; display: flex; flex-direction: column; gap: 11px; }
.foot-col h2 { font-family: var(--font-body); font-size: 14px; font-weight: 700; color: var(--white); letter-spacing: .08em; text-transform: uppercase; padding-bottom: 4px; }
.site-footer a { color: #D6D6D6; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.foot-base { border-top: 1px solid #3A3A3A; padding-top: 24px; font-size: 14px; color: #A8A8A8; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; background: var(--purple); color: var(--white); overflow: hidden; }
.page-hero .media { position: absolute; top: 0; right: 0; width: 44%; height: 100%; clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%); background: var(--magenta); }
.page-hero .media img { width: 100%; height: 100%; object-fit: cover; opacity: .9; mix-blend-mode: luminosity; }
.page-hero .media::after { content: ""; position: absolute; inset: 0; background: rgba(146,39,143,.45); }
.page-hero .slash { position: absolute; top: 0; right: 0; width: 44%; height: 100%; background: var(--purple-mid); clip-path: polygon(20% 0, 27% 0, 7% 100%, 0 100%); z-index: 1; }
.page-hero .wrap { position: relative; z-index: 2; padding-top: 64px; padding-bottom: 88px; }
.page-hero .inner { max-width: 640px; display: flex; flex-direction: column; gap: 22px; }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--lilac); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .6; }
.crumbs a { color: var(--white); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; color: var(--white); }
.page-hero h1 { color: var(--white); font-size: clamp(38px, 4.8vw, 60px); line-height: 1.05; }
.page-hero .lead { color: var(--lilac); font-size: 20px; }
.page-hero .std-tag { align-self: flex-start; font-family: var(--font-head); font-size: 20px; font-weight: 600; color: var(--white); background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); padding: 6px 14px; border-radius: 4px; }
@media (max-width: 860px) { .page-hero .media, .page-hero .slash { display: none; } .page-hero .wrap { padding-top: 48px; padding-bottom: 64px; } }

/* Page header entrance — same motion as the homepage carousel, played once on load.
   Pure CSS: no script needed. */
@keyframes qsp-slide-in { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: none; } }
@keyframes qsp-rise-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes qsp-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes qsp-wipe-in {
  from { clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); }
  to   { clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%); }
}
@keyframes qsp-zoom-out { from { transform: scale(1.12); } to { transform: scale(1); } }

.page-hero .inner > * { animation: qsp-slide-in .7s var(--ease-out) both; }
.page-hero .inner > :nth-child(1) { animation-delay: .35s; }
.page-hero .inner > :nth-child(2) { animation-delay: .45s; }
.page-hero .inner > :nth-child(3) { animation-delay: .57s; }
.page-hero .inner > :nth-child(4) { animation-delay: .69s; }
.page-hero .inner > :nth-child(5) { animation-delay: .81s; }
.page-hero .media { animation: qsp-wipe-in .9s var(--ease-out) .25s both; }
.page-hero .media img { animation: qsp-zoom-out 10s ease-out .25s both; }
.page-hero .slash { animation: qsp-fade-in .6s ease .7s both; }

/* ---------- Inner page layout ---------- */
.layout { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding-top: 80px; padding-bottom: 96px; }
.layout .content { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 64px; }
.layout .sidebar { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 1000px) { .layout .sidebar { position: sticky; top: calc(var(--header-fixed-h) + 24px); } }

.block { display: flex; flex-direction: column; gap: 20px; }
.block h2 { font-size: clamp(26px, 2.6vw, 34px); }
.block h3 { font-size: 22px; }
.block > p, .prose p { color: var(--body); font-size: 17.5px; line-height: 1.75; }
.prose { display: flex; flex-direction: column; gap: 18px; }

.intro-panel { background: var(--wash); border-left: 0; border-radius: var(--radius); padding: 36px; display: flex; flex-direction: column; gap: 16px; position: relative; overflow: hidden; }
.intro-panel::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; background: var(--lilac-bg); transform: rotate(45deg); }
.intro-panel > * { position: relative; z-index: 1; }
.intro-panel p { color: var(--body); font-size: 18px; line-height: 1.7; }

.check-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.check-grid li { display: flex; gap: 14px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; color: var(--body); font-size: 16px; line-height: 1.55; }
.check-grid li svg { width: 22px; height: 22px; color: var(--magenta); flex: none; margin-top: 1px; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.feature { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; border-top: 3px solid var(--magenta); }
.feature h3 { font-size: 20px; }
.feature p { color: var(--body); font-size: 16px; line-height: 1.65; }

.num-list { list-style: none; counter-reset: n; display: flex; flex-direction: column; }
.num-list li { counter-increment: n; display: flex; gap: 20px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--body); font-size: 17px; line-height: 1.6; }
.num-list li::before { content: counter(n, decimal-leading-zero); font-family: var(--font-head); font-weight: 700; font-size: 20px; color: var(--magenta); min-width: 32px; line-height: 1.4; }
.num-list li:first-child { border-top: 1px solid var(--line); }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: var(--lilac-bg); color: var(--purple); font-weight: 700; font-size: 15px; padding: 9px 16px; border-radius: 999px; }
.chips.numbered { counter-reset: c; }
.chips.numbered li { counter-increment: c; }
.chips.numbered li::before { content: counter(c) ". "; color: var(--magenta); }

.figure { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--white); display: flex; flex-direction: column; gap: 12px; }
.figure img { margin: 0 auto; }
.figure figcaption { font-size: 14px; color: var(--muted); text-align: center; }
.figure-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.figure-row > * { flex: 1 1 280px; min-width: 0; }

.quote { position: relative; background: var(--purple); color: var(--white); border-radius: var(--radius); padding: 44px 40px 36px; display: flex; flex-direction: column; gap: 18px; overflow: hidden; }
.quote::after { content: ""; position: absolute; right: 0; top: 0; width: 30%; height: 100%; background: var(--magenta); clip-path: polygon(40% 0, 100% 0, 100% 100%, 0 100%); opacity: .55; }
.quote > * { position: relative; z-index: 1; }
.quote svg { width: 40px; height: 40px; color: var(--pink-soft); }
.quote p { font-family: var(--font-head); font-size: clamp(20px, 2.2vw, 26px); line-height: 1.45; font-weight: 500; max-width: 760px; }
.quote figcaption strong { display: block; font-size: 17px; }
.quote figcaption span { font-size: 15px; color: var(--lilac); }

/* Sidebar cards */
.side-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 14px; background: var(--white); }
.side-card h2 { font-family: var(--font-body); font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.res-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.res-list a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 4px; background: var(--wash); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; line-height: 1.3; }
.res-list a:hover { background: var(--lilac-bg); color: var(--magenta); }
.res-list .doc { width: 36px; height: 36px; flex: none; border-radius: 4px; background: var(--magenta); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.res-list small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.side-nav { list-style: none; display: flex; flex-direction: column; }
.side-nav a { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; }
.side-nav li:last-child a { border-bottom: 0; }
.side-nav a:hover { color: var(--magenta); }
.side-nav a[aria-current="page"] { color: var(--magenta); }
.side-nav a[aria-current="page"]::before { content: ""; width: 4px; height: 18px; background: var(--magenta); margin-right: 10px; border-radius: 2px; }
.side-nav a[aria-current="page"] { justify-content: flex-start; }
.side-nav svg { width: 16px; height: 16px; color: var(--magenta); }
.side-cta { background: var(--purple); color: var(--white); border: 0; }
.side-cta h2 { color: var(--pink-soft); }
.side-cta p { font-family: var(--font-head); font-size: 22px; line-height: 1.3; font-weight: 600; }
.side-cta .btn { justify-content: center; }
.side-cta a.plain { color: var(--white); font-weight: 700; text-decoration: none; }
.side-cta a.plain:hover { text-decoration: underline; color: var(--white); }

/* ---------- About ---------- */
.sector-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.sector-grid li { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); font-weight: 700; font-size: 15.5px; }
.sector-grid li::before { content: ""; width: 8px; height: 8px; background: var(--magenta); transform: rotate(45deg); flex: none; }
.link-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.link-tiles a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; font-weight: 700; background: var(--white); transition: border-color .2s; }
.link-tiles a:hover { border-color: var(--magenta); color: var(--magenta); }
.link-tiles svg { width: 16px; height: 16px; color: var(--magenta); flex: none; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.contact-card { position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--ink); background: var(--white); transition: transform .2s, box-shadow .2s, border-color .2s; overflow: hidden; }
.contact-card::before { content: ""; position: absolute; top: 0; left: 0; height: 4px; width: 56px; background: var(--magenta); transition: width .3s; }
.contact-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(73,23,109,.14); border-color: var(--magenta); color: var(--ink); }
.contact-card:hover::before { width: 100%; }
.contact-card .svc-icon { margin-bottom: 6px; }
.contact-card .k { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-card .v { font-family: var(--font-head); font-size: 24px; font-weight: 600; color: var(--purple); word-break: break-word; }
.contact-card .note { font-size: 15px; color: var(--body); }

/* =========================================================
   2026 content updates
   ========================================================= */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Footer certificate link */
.foot-brand a.accr { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #D6D6D6; }
.foot-brand a.accr small { display: block; color: var(--pink-soft); font-weight: 700; margin-top: 2px; }
.foot-brand a.accr:hover small { text-decoration: underline; }

/* Homepage certificate card */
.cert-card {
  display: flex; gap: 20px; align-items: center; margin-top: 12px; max-width: 460px;
  padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
  text-decoration: none; color: var(--ink); transition: border-color .2s, box-shadow .2s, transform .2s;
}
.cert-card img { width: 96px; flex: none; border: 1px solid var(--line); border-radius: 3px; box-shadow: 0 6px 16px rgba(73,23,109,.12); }
.cert-card:hover { border-color: var(--magenta); box-shadow: 0 18px 40px rgba(73,23,109,.14); transform: translateY(-3px); color: var(--ink); }
.cert-text { display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: var(--body); line-height: 1.45; }
.cert-text .k { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--magenta); }
.cert-text strong { font-family: var(--font-head); font-size: 20px; font-weight: 600; color: var(--purple); line-height: 1.25; }
.cert-text .go { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--magenta); margin-top: 4px; }
.cert-text .go svg { width: 14px; height: 14px; }

/* Testimonial quote cards */
.t-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.t-card {
  position: relative; margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px 22px; display: flex; flex-direction: column; gap: 16px; overflow: hidden;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.t-card::before { content: ""; position: absolute; top: 0; left: 0; height: 4px; width: 56px; background: var(--magenta); transition: width .3s; }
.t-card:hover { border-color: var(--magenta); box-shadow: 0 18px 40px rgba(73,23,109,.14); transform: translateY(-3px); }
.t-card:hover::before { width: 100%; }
.t-card > svg { width: 30px; height: 30px; color: var(--pink-soft); }
.t-card blockquote { margin: 0; font-family: var(--font-head); font-size: 19px; line-height: 1.45; font-weight: 500; color: var(--ink); flex-grow: 1; }
.t-card figcaption strong { display: block; font-size: 16px; color: var(--ink); }
.t-card figcaption span { font-size: 14px; color: var(--muted); }
.t-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid #EFEFEF; }
.t-stds { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.t-stds li { font-size: 12px; font-weight: 700; color: var(--purple); background: var(--lilac-bg); padding: 4px 9px; border-radius: 999px; }
.t-foot a { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 700; color: var(--magenta); text-decoration: none; min-height: 44px; }
.t-foot a:hover { text-decoration: underline; color: var(--purple); }
.t-foot a svg { width: 14px; height: 14px; }

/* "Important update" panel (ISO 9001:2026 / ISO 14001:2026) */
.update-panel {
  position: relative; overflow: hidden; border-radius: var(--radius); padding: 40px 36px 36px;
  background: var(--white); border: 2px solid var(--magenta); display: flex; flex-direction: column; gap: 18px;
  box-shadow: 0 24px 50px rgba(73,23,109,.10);
}
.update-panel::after { content: ""; position: absolute; top: 0; right: 0; width: 180px; height: 100%; background: var(--lilac-bg); clip-path: polygon(45% 0, 100% 0, 100% 100%, 0 100%); z-index: 0; }
.update-panel > * { position: relative; z-index: 1; }
.up-badge { align-self: flex-start; background: var(--magenta); color: var(--white); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 4px; }
.update-panel h2 { font-size: clamp(28px, 3vw, 38px); color: var(--purple); }
.update-panel > p { color: var(--body); font-size: 18px; line-height: 1.7; max-width: 760px; }
.up-h { font-family: var(--font-body); font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--magenta); margin-top: 6px; }
.up-note { display: flex; gap: 16px; align-items: flex-start; background: var(--purple); color: var(--white); border-radius: var(--radius); padding: 20px 22px; }
.up-note > svg { width: 28px; height: 28px; flex: none; color: var(--pink-soft); }
.up-note strong { display: block; color: var(--white); font-size: 17px; margin-bottom: 4px; }
.up-note p { color: var(--lilac); font-size: 16px; line-height: 1.6; }
.update-panel .btn-row .btn svg { width: 18px; height: 18px; }

.num-cards { list-style: none; counter-reset: nc; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.num-cards li { counter-increment: nc; position: relative; background: var(--wash); border-radius: var(--radius); padding: 22px 22px 20px 70px; }
.num-cards li::before { content: counter(nc); position: absolute; left: 20px; top: 20px; width: 34px; height: 34px; border-radius: 50%; background: var(--magenta); color: var(--white); font-family: var(--font-head); font-weight: 700; font-size: 17px; display: flex; align-items: center; justify-content: center; }
.num-cards h4 { font-family: var(--font-body); font-size: 17px; font-weight: 700; color: var(--ink); margin: 0 0 6px; line-height: 1.3; }
.num-cards p { font-size: 15.5px; line-height: 1.6; color: var(--body); }

/* Data tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.data-table { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 520px; }
.data-table th, .data-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.5; }
.data-table thead th { background: var(--purple); color: var(--white); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.data-table tbody th { color: var(--purple); font-weight: 700; white-space: nowrap; }
.data-table tbody td { color: var(--body); }
.data-table tbody tr:nth-child(even) { background: var(--wash); }
.data-table tbody tr:last-child th, .data-table tbody tr:last-child td { border-bottom: 0; }

/* IMS key elements and Annex SL flow */
.element-grid { list-style: none; counter-reset: el; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.element-grid > li { counter-increment: el; border: 1px solid var(--line); border-top: 3px solid var(--magenta); border-radius: var(--radius); padding: 22px; background: var(--white); }
.element-grid h3 { font-size: 19px; margin-bottom: 12px; }
.element-grid h3::before { content: counter(el) ". "; color: var(--magenta); }
.element-grid ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.element-grid ul li { position: relative; padding-left: 18px; font-size: 15.5px; color: var(--body); line-height: 1.45; }
.element-grid ul li::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; background: var(--magenta); transform: rotate(45deg); }
.formula { font-family: var(--font-head); font-size: clamp(20px, 2.2vw, 26px); font-weight: 600; color: var(--purple); line-height: 1.4; }
.formula span { color: var(--magenta); padding: 0 4px; }
.flow { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 0; align-items: center; }
.flow li { background: var(--purple); color: var(--white); font-weight: 700; font-size: 14px; padding: 9px 14px; border-radius: 4px; position: relative; margin-right: 22px; }
.flow li:nth-child(even) { background: var(--magenta); }
.flow li:not(:last-child)::after { content: "→"; position: absolute; right: -19px; top: 50%; transform: translateY(-50%); color: var(--magenta); font-weight: 700; }

/* "New" badge in the downloads list */
.res-list em.new { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--magenta); color: var(--white); padding: 2px 6px; border-radius: 3px; margin-left: 8px; vertical-align: 2px; }

/* =========================================================
   Contact form
   ========================================================= */
.enquiry { display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: flex-start; }
.enquiry-form { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.enquiry-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 1000px) { .enquiry-side { position: sticky; top: calc(var(--header-fixed-h) + 24px); } }
.enquiry-side .contact-card { padding: 24px 24px 22px; }
.contact-card-static:hover { transform: none; box-shadow: none; border-color: var(--line); }
.contact-card-static:hover::before { width: 56px; }
.contact-card-static .v { font-size: 20px; }

.qsp-form { display: flex; flex-direction: column; gap: 18px; margin-top: 6px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 15px; color: var(--ink); }
.field .req { color: var(--magenta); }
.field .opt { font-weight: 400; color: var(--muted); font-size: 14px; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--white);
  border: 1.5px solid #C9C3CC; border-radius: 4px; padding: 12px 14px; min-height: 48px; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 150px; line-height: 1.55; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2392278F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #A79FAB; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--magenta); box-shadow: 0 0 0 3px rgba(146,39,143,.18); }
.field [aria-invalid="true"] { border-color: #B3261E; background: #FFF8F7; }
.field-error { color: #B3261E; font-size: 14px; font-weight: 700; min-height: 0; }
.field-error:empty { display: none; }
.form-privacy { font-size: 14px; color: var(--muted); }
.form-privacy .req { color: var(--magenta); }
.form-submit { align-self: flex-start; font-size: 17px; padding: 15px 28px; cursor: pointer; }
.form-submit[disabled] { opacity: .7; cursor: progress; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-status { border-radius: var(--radius); padding: 16px 18px 16px 52px; font-size: 16px; line-height: 1.55; position: relative; }
.form-status::before { position: absolute; left: 18px; top: 15px; width: 22px; height: 22px; border-radius: 50%; color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.form-status.is-error { background: #FDECEA; color: #7A1A13; border: 1px solid #F3B8B2; }
.form-status.is-error::before { content: "!"; background: #B3261E; }
.form-status.is-success { background: var(--lilac-bg); color: var(--purple); border: 1px solid #D9C2DD; font-weight: 700; font-size: 18px; padding-top: 20px; padding-bottom: 20px; }
.form-status.is-success::before { content: "✓"; background: var(--magenta); top: 20px; }
.form-status:focus { outline: none; }

/* footer: email shown as text, not a mail link */
.site-footer .foot-text { color: #A8A8A8; font-size: 14px; }
.qsp-form[hidden], .form-status[hidden] { display: none !important; }

/* =========================================================
   Sticky header + back to top
   ========================================================= */
/* in-page links (e.g. #enquiry, #services) stop below the sticky header */
[id] { scroll-margin-top: calc(var(--header-fixed-h) + 16px); }
@media (max-width: 960px) { :root { --header-h: 85px; --header-fixed-h: 71px; } }
.mobile-panel { max-height: calc(100vh - var(--header-fixed-h)); overflow-y: auto; }

.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--magenta); color: var(--white); text-decoration: none;
  box-shadow: 0 10px 26px rgba(73,23,109,.35), 0 0 0 3px rgba(255,255,255,.9);
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(.9);
  transition: opacity .25s ease, transform .25s ease, visibility .25s, background .2s;
}
.to-top svg { width: 22px; height: 22px; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--purple); color: var(--white); }
.to-top:focus-visible { outline: 3px solid var(--pink-soft); outline-offset: 3px; }
@media (max-width: 640px) { .to-top { right: 16px; bottom: 16px; width: 46px; height: 46px; } }

/* invisible marker at the very top of the page: the back-to-top button
   returns keyboard focus here, so the "Skip to content" link stays hidden */
.top-anchor { position: absolute; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; }
.top-anchor:focus, .top-anchor:focus-visible { outline: none; }

/* Hero slide video (fills the same rounded photo frame) */
.hero-media .photo video { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--purple-deep); }

/* phones: video frame exactly 320 x 180 (a quarter of the 1280 x 720 videos) */
@media (max-width: 700px) {
  .hero-media { flex-basis: 320px; max-width: 320px; }
  .hero-media .badge-card { padding: 12px 16px; gap: 12px; max-width: 320px; margin: 14px 0 0 0; }  /* sits below the video, not over it */
  .hero-media .badge-card .ring { width: 40px; height: 40px; }
  .hero-media .badge-card .ring svg { width: 22px; height: 22px; }
}
