/* ==========================================================================
   4 HELP VR UK — design system
   Brand: black / white / light grey, strong red primary, blue used sparingly.
   Typeface: Inter, system sans fallback. Spacious, low-gradient, low-noise.
   ========================================================================== */

:root {
  --black: #101012;
  --ink: #1b1c1f;
  --grey-900: #2b2d31;
  --grey-700: #55585f;
  --grey-500: #7a7d85;
  --grey-300: #d7d9dd;
  --grey-150: #eef0f2;
  --grey-100: #f5f6f7;
  --white: #ffffff;

  --red: #e02020;
  --red-dark: #b91717;
  --red-tint: #fdeaea;

  --blue: #1d4e89;
  --blue-tint: #eaf1fa;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container: 1320px;
  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 16px;
  --shadow-card: 0 1px 2px rgba(16, 16, 18, 0.06), 0 8px 24px rgba(16, 16, 18, 0.05);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 6.5rem;

  color-scheme: light;
}

/* ---- reset --------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

h1, h2, h3, h4, h5 { line-height: 1.15; font-weight: 700; margin: 0 0 var(--space-2); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 1.6rem + 2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 1.35rem + 1.2vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 var(--space-2); color: var(--grey-900); }
p.lead { font-size: 1.15rem; color: var(--grey-900); }

a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--red-dark); }

ul, ol { margin: 0 0 var(--space-2); padding-left: 1.3em; color: var(--grey-900); }
li { margin-bottom: 0.35em; }

/* visible focus for all interactive elements */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--black);
  color: var(--white);
  padding: 0.75em 1.25em;
  z-index: 1000;
  border-radius: 0 0 var(--radius-s) 0;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
  top: 0;
}

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

/* ---- layout helpers -------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

.section { padding-block: var(--space-6); }
.section--tight { padding-block: var(--space-5); }
.section--white { background: var(--white); }
.section--grey { background: var(--grey-100); }
.section--dark { background: var(--black); color: var(--white); }
.section--dark h2, .section--dark h3, .section--dark p { color: var(--white); }
.section--dark .eyebrow { color: var(--grey-300); }
.section--red { background: var(--red); color: var(--white); }
.section--red h2, .section--red p { color: var(--white); }

.section-head { max-width: 720px; margin-bottom: var(--space-4); }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--space-1);
}

.grid { display: grid; gap: var(--space-3); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 980px) {
  .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
}

.stack { display: flex; flex-direction: column; gap: var(--space-2); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }

/* ---- buttons ----------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85em 1.6em;
  border-radius: var(--radius-s);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.btn-primary { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); }

.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--white); }

.btn-on-dark.btn-secondary { color: var(--white); border-color: var(--white); }
.btn-on-dark.btn-secondary:hover { background: var(--white); color: var(--black); }

.btn-ghost { background: transparent; color: var(--red); border-color: transparent; padding-inline: 0; text-decoration: underline; }

.btn-block { width: 100%; }
.btn-sm { padding: 0.55em 1.1em; font-size: 0.9rem; }

/* ---- header / nav ------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--grey-150);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: 84px;
  transition: min-height 0.15s ease;
}

.site-header.is-compact .container { min-height: 60px; }

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.5em;
  text-decoration: none;
  color: var(--black);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand:hover { color: var(--black); }
.brand .brand-mark { color: var(--red); }
.brand .brand-sub {
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-500);
}

.nav-primary { display: flex; align-items: center; gap: var(--space-4); flex: 1; justify-content: center; min-width: 0; }
.nav-primary ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.9rem; flex-wrap: wrap; justify-content: center; }
.nav-primary a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
  padding: 0.5em 0.05em;
  border-bottom: 2px solid transparent;
}
.nav-primary a:hover, .nav-primary a[aria-current="page"] { color: var(--red); border-bottom-color: var(--red); }

.header-ctas { display: flex; align-items: center; gap: 0.6rem; }
.header-ctas .btn { padding: 0.55em 0.9em; font-size: 0.85rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--ink);
  border-radius: var(--radius-s);
  padding: 0.5em 0.7em;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform 0.15s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

@media (max-width: 1320px) {
  .nav-primary {
    position: fixed;
    inset: 60px 0 0 0;
    background: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    padding: var(--space-3);
    transform: translateX(100%);
    transition: transform 0.2s ease;
    overflow-y: auto;
  }
  .nav-primary ul { flex-direction: column; width: 100%; gap: 0; justify-content: flex-start; }
  .nav-primary a { display: block; padding: 0.9em 0.2em; border-bottom: 1px solid var(--grey-150); white-space: normal; }
  .nav-primary.is-open { transform: translateX(0); }
  .nav-toggle { display: block; }
  .header-ctas .btn-secondary { display: none; }
}

@media (max-width: 460px) {
  .brand .brand-sub { display: none; }
}

/* ---- hero --------------------------------------------------------------- */

.hero {
  padding-block: var(--space-6) var(--space-5);
  background: var(--grey-100);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-5);
  align-items: center;
}
.hero-copy .eyebrow { margin-bottom: var(--space-2); }
.hero-copy h1 { margin-bottom: var(--space-3); }
.hero-copy p.lead { margin-bottom: var(--space-4); max-width: 46ch; }
.hero-media {
  border-radius: var(--radius-l);
  background: linear-gradient(160deg, var(--grey-900), var(--black));
  color: var(--grey-300);
  aspect-ratio: 4/3.1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-3);
  font-size: 0.9rem;
}
.hero-media strong { display: block; color: var(--white); font-size: 1rem; margin-bottom: 0.4em; }
.hero-media.has-image {
  display: block;
  padding: 0;
  overflow: hidden;
  background: var(--grey-900);
}
.hero-media.has-image picture {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-media.has-image video,
.hero-media.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
}

/* page banner for interior pages */
.page-banner {
  background: var(--black);
  color: var(--white);
  padding-block: var(--space-5) var(--space-4);
}
.page-banner .eyebrow { color: var(--grey-300); }
.page-banner h1 { color: var(--white); margin-bottom: var(--space-1); }
.page-banner p { color: var(--grey-300); max-width: 62ch; margin-bottom: 0; }

.breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
  padding: 0;
  margin: 0 0 var(--space-2);
  font-size: 0.85rem;
  color: var(--grey-300);
}
.breadcrumb a { color: var(--grey-300); text-decoration: none; }
.breadcrumb a:hover { color: var(--white); text-decoration: underline; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 0.4em; color: var(--grey-700); }

/* ---- trust strip --------------------------------------------------------- */

.trust-strip {
  border-top: 1px solid var(--grey-150);
  border-bottom: 1px solid var(--grey-150);
  background: var(--white);
}
.trust-strip ul {
  list-style: none;
  margin: 0; padding: var(--space-3) 0;
  display: flex; flex-wrap: wrap; gap: var(--space-4);
  justify-content: center;
  color: var(--grey-700);
  font-weight: 600;
  font-size: 0.92rem;
}
.trust-strip li { margin: 0; }

/* ---- cards --------------------------------------------------------------- */

.card {
  background: var(--white);
  border: 1px solid var(--grey-150);
  border-radius: var(--radius-m);
  padding: var(--space-3);
  box-shadow: var(--shadow-card);
}
.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.card-link:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(16,16,18,0.1); }
.card-link:hover h3 { color: var(--red); }

.category-card {
  display: block;
  padding: var(--space-3);
  border-radius: var(--radius-m);
  border: 1px solid var(--grey-150);
  background: var(--white);
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.category-card .cat-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-s);
  background: var(--red-tint);
  color: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  margin-bottom: var(--space-2);
}
.category-card h3 { margin-bottom: 0.35em; font-size: 1.1rem; }
.category-card p { font-size: 0.92rem; margin-bottom: 0; color: var(--grey-700); }
.category-card:hover { border-color: var(--red); }
.category-card:hover h3 { color: var(--red); }

.steps { counter-reset: step; }
.step-card {
  position: relative;
  padding-top: var(--space-4);
}
.step-card::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
}

/* ---- package / pricing cards --------------------------------------------- */

.package-card {
  border: 1px solid var(--grey-150);
  border-radius: var(--radius-m);
  background: var(--white);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  height: 100%;
}
.package-card.is-highlight { border-color: var(--red); box-shadow: 0 10px 30px rgba(224,32,32,0.12); }
.package-card .package-name { font-size: 1.05rem; font-weight: 800; }
.package-card .package-headsets { color: var(--grey-700); font-size: 0.9rem; }
.package-card ul { font-size: 0.9rem; }
.package-card .package-price {
  margin-top: auto;
  font-weight: 700;
  color: var(--grey-700);
  font-size: 0.95rem;
}

.pricing-table-wrap { overflow-x: auto; border: 1px solid var(--grey-150); border-radius: var(--radius-m); }
table.pricing-table { width: 100%; border-collapse: collapse; min-width: 640px; background: var(--white); }
table.pricing-table th, table.pricing-table td {
  padding: 0.9em 1em;
  text-align: left;
  border-bottom: 1px solid var(--grey-150);
  font-size: 0.95rem;
}
table.pricing-table thead th { background: var(--grey-100); font-weight: 700; position: sticky; top: 0; }
table.pricing-table tbody tr:hover { background: var(--grey-100); }

.selector-row { display: flex; flex-wrap: wrap; gap: 0.5em; }
.selector-chip {
  border: 2px solid var(--grey-300);
  background: var(--white);
  padding: 0.5em 1em;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
}
.selector-chip[aria-pressed="true"] { border-color: var(--red); color: var(--red); background: var(--red-tint); }

/* ---- CTA band ------------------------------------------------------------ */

.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: var(--space-1); }
.cta-band p { color: inherit; opacity: 0.92; margin-bottom: var(--space-3); }

/* ---- FAQ (native details/summary — accessible, no JS needed) ------------- */

.faq-item {
  border-bottom: 1px solid var(--grey-150);
  padding: var(--space-2) 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--red);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin-top: var(--space-2); color: var(--grey-700); }

/* ---- forms ---------------------------------------------------------------- */

.form-card {
  background: var(--white);
  border: 1px solid var(--grey-150);
  border-radius: var(--radius-l);
  padding: var(--space-4);
  box-shadow: var(--shadow-card);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2) var(--space-3); }
.form-grid .field-full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

.field label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.4em;
}
.field .hint { display: block; font-weight: 400; color: var(--grey-500); font-size: 0.82rem; margin-top: 0.3em; }
.field .optional-tag { font-weight: 400; color: var(--grey-500); }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
input[type="date"], select, textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.7em 0.85em;
  border: 1.5px solid var(--grey-300);
  border-radius: var(--radius-s);
  background: var(--white);
  color: var(--ink);
}
textarea { resize: vertical; min-height: 110px; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); }

fieldset { border: 1.5px solid var(--grey-300); border-radius: var(--radius-s); padding: var(--space-2) var(--space-3); margin: 0; }
legend { font-weight: 700; font-size: 0.9rem; padding: 0 0.4em; }
.checkbox-row { display: flex; align-items: flex-start; gap: 0.5em; margin-bottom: 0.4em; font-weight: 400; }
.checkbox-row input { width: auto; margin-top: 0.3em; }
.checkbox-row label { font-weight: 400; }

.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note {
  font-size: 0.85rem;
  color: var(--grey-500);
  margin-top: var(--space-2);
}

/* ---- content pages (legal, resources articles) ---------------------------- */

.prose { max-width: 74ch; }
.prose h2 { margin-top: var(--space-5); }
.prose h3 { margin-top: var(--space-4); }

.callout {
  border-left: 4px solid var(--red);
  background: var(--red-tint);
  padding: var(--space-2) var(--space-3);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  font-size: 0.95rem;
}
.callout.callout-blue { border-left-color: var(--blue); background: var(--blue-tint); }
.callout p:last-child { margin-bottom: 0; }

.tag-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5em; }
.tag-list li {
  margin: 0;
  background: var(--grey-100);
  border: 1px solid var(--grey-150);
  border-radius: 999px;
  padding: 0.35em 0.9em;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--grey-700);
}

/* ---- footer ---------------------------------------------------------------- */

.site-footer { background: var(--black); color: var(--grey-300); padding-block: var(--space-6) var(--space-4); }
.site-footer a { color: var(--grey-300); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
  gap: var(--space-4);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--grey-900);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-grid h4 { color: var(--white); font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: var(--space-2); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.55em; font-size: 0.92rem; }
.footer-brand p { color: var(--grey-300); font-size: 0.92rem; max-width: 32ch; }

.footer-legal-note {
  padding-top: var(--space-3);
  font-size: 0.82rem;
  color: var(--grey-500);
  max-width: 90ch;
}
.footer-bottom {
  padding-top: var(--space-3);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2);
  font-size: 0.82rem;
  color: var(--grey-500);
}
.footer-bottom ul { list-style: none; display: flex; gap: var(--space-2); padding: 0; margin: 0; flex-wrap: wrap; }

/* ---- misc ------------------------------------------------------------------- */

.regulatory-note {
  font-size: 0.85rem;
  color: var(--grey-500);
  border-top: 1px solid var(--grey-150);
  padding-top: var(--space-2);
  margin-top: var(--space-3);
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

.placeholder-figure {
  background: var(--grey-150);
  border: 1px dashed var(--grey-300);
  border-radius: var(--radius-m);
  color: var(--grey-500);
  font-size: 0.85rem;
  text-align: center;
  padding: var(--space-4);
}
.placeholder-figure.has-image {
  padding: 0;
  border: none;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.placeholder-figure.has-image picture {
  display: block;
  width: 100%;
  height: 100%;
}
.placeholder-figure.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-m);
}

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

/* simple fade-in utility, off by default until JS adds .is-visible */
.fade-in { opacity: 0; transform: translateY(8px); transition: opacity 0.4s ease, transform 0.4s ease; }
.fade-in.is-visible { opacity: 1; transform: translateY(0); }
