/* Innovox — Innovation Oxford
   Self-hosted fonts: Lora (OFL) for headings and reading text,
   Inter (OFL) for interface elements. */

@font-face {
  font-family: "Lora";
  src: url("/fonts/lora-var.woff") format("woff");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-semibold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0b2745;
  --ink: #142235;
  --ink-soft: #3d4f66;
  --blue: #0b66a2;
  --blue-deep: #08507f;
  --cyan: #1fb6d4;
  --gold: #f3c14a;
  --paper: #ffffff;
  --mist: #eef3f8;
  --line: #d3deea;
  --error: #b42318;
  --success: #116b3c;

  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 72rem;
  --measure: 38rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --space: clamp(3.5rem, 8vw, 6.5rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 48rem) { body { font-size: 1.125rem; } }

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

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--navy);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 1rem;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.4rem); line-height: 1.3; }

p { margin: 0 0 1.1rem; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a { color: var(--blue); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-deep); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  font-family: var(--sans);
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-radius: 0 0 6px 6px;
}
.skip-link:focus { top: 0; color: #fff; }

.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;
}

/* ---------- Header ---------- */

/* The Innovox logo is light linework drawn on navy, so the header and hero are navy too. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
  gap: 1rem;
}
.site-header :focus-visible,
.hero :focus-visible { outline-color: var(--gold); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  text-decoration: none;
  padding-block: 0.4rem;
}
.brand:hover { color: #fff; }
.brand picture { display: block; flex: none; }
.brand-emblem { width: auto; height: 2.5rem; }
.brand-text { display: grid; gap: 0.3rem; }
.brand-wordmark { width: auto; height: 1rem; }
.brand-sub {
  display: block;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.2;
  color: #b9d3ea;
  letter-spacing: 0.01em;
}
@media (min-width: 48rem) {
  .brand-emblem { height: 3.5rem; }
  .brand-wordmark { height: 1.375rem; }
  .brand { gap: 0.8rem; }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 0.9rem;
  font: 600 0.95rem/1 var(--sans);
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  cursor: pointer;
}
.nav-toggle-bars { position: relative; width: 1.1rem; height: 0.75rem; }
.nav-toggle-bars span {
  position: absolute; left: 0; width: 100%; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: calc(50% - 1px); }
.nav-toggle-bars span:nth-child(3) { top: calc(100% - 2px); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { top: calc(50% - 1px); transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { top: calc(50% - 1px); transform: rotate(-45deg); }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  color: #e4eef8;
  text-decoration: none;
}
.site-nav a:hover { color: #fff; }
.site-nav a[aria-current="page"] { color: #fff; }
.site-nav .button-light,
.site-nav .button-light[aria-current="page"],
.site-nav .button-light:hover { color: var(--navy); }

/* Compact navigation (phones and portrait tablets): panel below the header. Without JS the nav is simply shown. */
@media (max-width: 63.99rem) {
  .js .site-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 30px -18px rgba(0, 0, 0, 0.5);
    padding: 0.5rem var(--gutter) 1.25rem;
  }
  .js .site-nav[hidden] { display: none; }
  .site-nav li + li { border-top: 1px solid rgba(255, 255, 255, 0.14); }
  .site-nav a { display: block; padding: 0.95rem 0; font-size: 1.1rem; }
  .site-nav a[aria-current="page"] { color: var(--gold); }
  .site-nav .nav-cta { margin-top: 0.75rem; border-top: 0; }
  .site-nav .nav-cta a,
  .site-nav .nav-cta a[aria-current="page"] { text-align: center; color: var(--navy); }
  html:not(.js) .site-header .wrap { flex-wrap: wrap; padding-bottom: 0.5rem; }
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .site-nav { width: 100%; }
}

@media (min-width: 64rem) {
  .nav-toggle { display: none; }
  .site-nav[hidden] { display: block; }
  .site-nav ul { display: flex; align-items: center; gap: 0.9rem; }
  .site-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; padding-inline: 0.4rem; }
  .site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--cyan); text-decoration-thickness: 2px; text-underline-offset: 0.45em; }
  .site-nav .nav-cta a[aria-current="page"] { text-decoration: none; }
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.4rem;
  font: 600 1rem/1.2 var(--sans);
  text-decoration: none;
  border-radius: 6px;
  border: 2px solid var(--blue);
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.button:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; text-decoration: none; }
.button-quiet { background: transparent; color: var(--blue); }
.button-quiet:hover { background: var(--mist); color: var(--blue-deep); border-color: var(--blue-deep); }
.button-light { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.button-light:hover { background: #fff; border-color: #fff; color: var(--navy); }
.button-outline-light { background: transparent; border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.button-outline-light:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; color: #fff; }
.button[disabled] { opacity: 0.6; cursor: progress; }
.site-nav .button { min-height: 2.75rem; padding: 0.55rem 1.1rem; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  color: #dfe9f4;
  background-color: var(--navy);
  background-image: radial-gradient(ellipse 60% 70% at 78% 45%, #17487a 0%, rgba(11, 39, 69, 0) 70%), linear-gradient(var(--navy), var(--navy));
  padding-block: clamp(2.5rem, 7vw, 6rem) clamp(3.5rem, 8vw, 6.5rem);
}
.hero .wrap {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
.hero-copy { position: relative; z-index: 1; min-width: 0; }
.hero h1 { color: #fff; max-width: 15ch; margin-bottom: 0.75rem; }
.hero-strap {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem);
  line-height: 1.3;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.hero-lede { font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3rem); color: #c9d8e8; max-width: 34rem; }

.hero-logo { display: block; width: min(100%, 22rem); }
.hero-logo img { width: 100%; height: auto; }

@media (min-width: 56rem) {
  .hero .wrap { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 3rem; }
  .hero-logo { width: min(100%, 34rem); justify-self: end; }
}
@media (max-width: 55.99rem) {
  .hero-logo { order: -1; }
}

/* ---------- Sections ---------- */

.section { padding-block: var(--space); }
.section + .section { border-top: 1px solid var(--line); }
.section-mist { background: var(--mist); border-top: 0 !important; }
.section-head { max-width: var(--measure); margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head p { color: var(--ink-soft); }

/* Areas of advice: a ruled grid, not cards */
.areas {
  display: grid;
  gap: 2.5rem 3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 44rem) { .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.areas li { border-top: 3px solid var(--navy); padding-top: 1.25rem; }
.areas li:nth-child(2) { border-top-color: var(--blue); }
.areas li:nth-child(3) { border-top-color: var(--cyan); }
.areas li:nth-child(4) { border-top-color: var(--gold); }
.areas p { color: var(--ink-soft); }
.areas a { font-family: var(--sans); font-weight: 600; font-size: 0.95rem; }

/* Engagement steps: a genuine sequence, so it is numbered */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 0;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 2.25rem 3.75rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: -0.1rem;
  width: 2.5rem; height: 2.5rem;
  display: grid; place-items: center;
  font: 600 1rem/1 var(--sans);
  color: #fff;
  background: var(--navy);
  border-radius: 50%;
}
.steps li::after {
  content: "";
  position: absolute;
  left: 1.25rem; top: 2.6rem; bottom: 0.2rem;
  width: 2px;
  background: var(--line);
}
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps h3 { margin-bottom: 0.4rem; }
.steps p { color: var(--ink-soft); }

@media (min-width: 60rem) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
  .steps li { padding: 3.75rem 0 0; }
  .steps li::before { top: 0; }
  .steps li::after { left: 3rem; right: -1.5rem; top: 1.2rem; bottom: auto; width: auto; height: 2px; }
}

/* Two-column prose */
.split { display: grid; gap: 2rem 4rem; }
@media (min-width: 52rem) { .split { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }

.principles { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.75rem; }
.principles h3 { margin-bottom: 0.35rem; }
.principles p { color: var(--ink-soft); }

/* Call to action band */
.cta-band {
  background: var(--navy);
  color: #dfe9f4;
  padding-block: clamp(3.5rem, 8vw, 5.5rem);
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: #fff; max-width: 20ch; }
.cta-band p { color: #c9d8e8; }
.cta-band :focus-visible { outline-color: var(--gold); }
.cta-band .wrap { position: relative; }
@media (max-width: 47.99rem) { .cta-band::after { display: none; } }
.cta-band::after {
  content: "";
  position: absolute;
  right: -6rem; bottom: -14rem;
  width: 30rem; height: 30rem;
  border: 2px solid rgba(31, 182, 212, 0.35);
  border-radius: 50%;
  pointer-events: none;
}

/* ---------- Page header (inner pages) ---------- */

.page-head {
  padding-block: clamp(3rem, 8vw, 5.5rem) clamp(2.5rem, 6vw, 4rem);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(to bottom, var(--mist), var(--paper));
}
.page-head h1 { max-width: 18ch; }
.page-head p { font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3rem); color: var(--ink-soft); }

/* Six-step sequences: three per row on wide screens */
@media (min-width: 60rem) {
  .steps-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2.75rem; }
  .steps-6 li:nth-child(3n)::after { display: none; }
}

.note { margin-top: 2rem; font-family: var(--sans); font-size: 0.95rem; color: var(--ink-soft); }
.status-note {
  margin-top: 1.5rem;
  font-family: var(--sans);
  font-size: 1rem !important;
  line-height: 1.5;
  color: var(--ink) !important;
  background: #fff;
  border-left: 4px solid var(--gold);
  border-radius: 0 6px 6px 0;
  padding: 0.85rem 1rem;
  max-width: 40rem;
}
.doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem 2rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
}
.doc-list li {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy);
  padding: 0.75rem 0;
  border-top: 2px solid var(--line);
}

.partner-line { color: #b9d3ea; }
.footer-tm { flex-basis: 100%; font-size: 0.85rem; }

/* ---------- About ---------- */

.about-mark-title { margin-top: 2rem; }
.founder { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 36rem) { .founder { grid-template-columns: 10rem minmax(0, 1fr); gap: 2rem; } }
.founder-photo { width: 10rem; height: 10rem; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.founder-text { min-width: 0; }
.founder-text h3 { margin-bottom: 0.2rem; }
.founder-role { font-family: var(--sans); font-weight: 600; font-size: 0.95rem; color: var(--blue-deep); margin-bottom: 1rem; }
.founder-link { display: inline-flex; align-items: center; min-height: 2.75rem; font-family: var(--sans); font-weight: 600; font-size: 1rem; }

/* ---------- Services detail ---------- */

.service {
  display: grid;
  gap: 1.5rem 4rem;
  padding-block: clamp(2.5rem, 6vw, 4rem);
  border-top: 1px solid var(--line);
}
.service:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 52rem) { .service { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); } }
.service h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); }
.service h2::before {
  content: "";
  display: block;
  width: 3rem; height: 3px;
  margin-bottom: 1.1rem;
  background: var(--accent, var(--navy));
}
.service-blue { --accent: var(--blue); }
.service-cyan { --accent: var(--cyan); }
.service-gold { --accent: var(--gold); }
.service h3 { font-size: 1.05rem; font-family: var(--sans); font-weight: 600; margin: 1.75rem 0 0.6rem; color: var(--navy); }
.service h3:first-child { margin-top: 0; }
.service ul { margin: 0; padding-left: 1.2rem; }
.service li { margin-bottom: 0.45rem; }
.service li::marker { color: var(--blue); }

.formats { display: grid; gap: 2rem 3rem; list-style: none; padding: 0; margin: 0; }
@media (min-width: 60rem) { .formats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.formats li { padding-left: 1.25rem; border-left: 3px solid var(--cyan); }
.formats p { color: var(--ink-soft); }

/* ---------- Prose (legal pages) ---------- */

.prose { max-width: 44rem; }
.prose h2 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem); margin-top: 2.75rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1.1rem; }
.prose li { margin-bottom: 0.4rem; }
.prose .updated { font-family: var(--sans); font-size: 0.95rem; color: var(--ink-soft); }

/* ---------- Contact ---------- */

.contact-grid { display: grid; gap: 3rem 4rem; }
@media (min-width: 56rem) { .contact-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); } }

.form { display: grid; gap: 1.4rem; max-width: 40rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font: 600 1rem/1.3 var(--sans); color: var(--navy); }
.field .hint { font: 400 0.9rem/1.4 var(--sans); color: var(--ink-soft); }
.field input,
.field textarea {
  width: 100%;
  font: 400 1rem/1.5 var(--sans);
  color: var(--ink);
  background: #fff;
  border: 2px solid #8a9bb0;
  border-radius: 6px;
  padding: 0.7rem 0.85rem;
  min-height: 3rem;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 10rem; resize: vertical; }
.field input:focus,
.field textarea:focus { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field .error { font: 600 0.92rem/1.4 var(--sans); color: var(--error); }
.field .error:empty { display: none; }
.form .honey { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font: 400 0.92rem/1.5 var(--sans); color: var(--ink-soft); }

.status {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 6px;
  padding: 1rem 1.15rem;
  border-left: 4px solid;
}
.status:empty, .status[hidden] { display: none; }
.status-success { background: #e8f5ee; border-color: var(--success); color: #0b4a2a; }
.status-error { background: #fdecea; border-color: var(--error); color: #7a1a12; }
.status:focus { outline: 3px solid var(--blue); outline-offset: 2px; }

.contact-aside { font-family: var(--sans); font-size: 1rem; }
.contact-aside h2 { font-size: 1.35rem; }
.contact-aside p { color: var(--ink-soft); }
.contact-aside .aside-block + .aside-block { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }

/* ---------- Footer ---------- */

.site-footer {
  background: #071b31;
  color: #b9c9db;
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.6;
  padding-block: 3rem 2.5rem;
}
.site-footer a { color: #e4eef8; }
.site-footer a:hover { color: #fff; }
.site-footer :focus-visible { outline-color: var(--gold); }
.footer-top { display: grid; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.12); }
@media (min-width: 48rem) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand .brand-sub { color: #9fb3c8; }
.footer-brand p { margin-top: 1rem; color: #9fb3c8; }
.footer-title { font-weight: 600; color: #fff; margin-bottom: 0.6rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.footer-bottom p:first-child { max-width: 48rem; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer-bottom p { margin: 0; }
.footer-bottom { padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between; color: #8ea3ba; }

/* ---------- 404 ---------- */
.not-found { padding-block: clamp(4rem, 12vw, 8rem); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .cta-band, .site-footer, .hero-logo { display: none; }
  .hero, .hero h1, .hero-lede { background: none; color: #000; }
  body { font-size: 11pt; }
  a { color: inherit; }
}
