/* =========================================================
   MAVEN PLUS LTD — Stylesheet
   Design concept: "The Route" — the crossing ribbon in the
   Maven Plus mark becomes a connecting line-and-waypoint motif
   used to structure sequences (process steps, service manifest)
   throughout the site. Cool navy/blue brand palette with a
   single warm signal colour reserved for action.
   ========================================================= */

:root {
  /* Colour */
  --navy-950: #0B1526;
  --navy-900: #0F1E38;
  --navy-800: #16294A;
  --navy-700: #1F3B63;
  --blue-600: #2C6E9E;
  --blue-500: #3C8BC0;
  --blue-300: #7EC0DE;
  --blue-100: #DCEEF6;
  --mist-50: #F4F6F8;
  --mist-100: #EAEEF2;
  --ink: #101825;
  --ink-soft: #45536A;
  --line: rgba(16, 24, 37, 0.12);
  --line-strong: rgba(16, 24, 37, 0.22);
  --gold-500: #D9922E;
  --gold-600: #B87519;
  --white: #FFFFFF;

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;

  /* Layout */
  --container: 1180px;
  --container-narrow: 760px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 3px;

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* -------------------- Reset -------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--mist-50);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

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

:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
}

/* -------------------- Type scale -------------------- */
h1, .h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 4.4vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--navy-900);
}
h2, .h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.1vw, 2.7rem);
  line-height: 1.14;
  letter-spacing: -0.005em;
  color: var(--navy-900);
}
h3, .h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 1.7vw, 1.55rem);
  line-height: 1.3;
  color: var(--navy-900);
}
.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 46em;
}
p { color: var(--ink-soft); }
p + p { margin-top: 1em; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--blue-600);
  margin-bottom: 18px;
}
.kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold-500);
}

/* -------------------- Layout helpers -------------------- */
.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap--narrow { max-width: var(--container-narrow); }

section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }

.rule { border: none; border-top: 1px solid var(--line); margin: 0; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 40px);
}
@media (max-width: 860px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}
.btn-gold {
  background: var(--gold-500);
  color: var(--navy-950);
}
.btn-gold:hover { background: var(--gold-600); }
.btn-outline {
  border-color: var(--line-strong);
  color: var(--navy-900);
  background: transparent;
}
.btn-outline:hover { border-color: var(--navy-900); background: var(--navy-900); color: var(--white); }
.btn-outline-light {
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
}
.btn-outline-light:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }

/* -------------------- Header -------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--mist-50);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 34px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 0.94rem;
  font-weight: 500;
}
.nav-links a {
  position: relative;
  padding: 6px 0;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav-links a:hover { color: var(--navy-900); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--navy-900); }
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta { display: flex; align-items: center; gap: 20px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--navy-900);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    inset: 84px 0 0 0;
    background: var(--mist-50);
    flex-direction: column;
    align-items: flex-start;
    padding: 30px var(--gutter) 40px;
    gap: 0;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
    border-top: 1px solid var(--line);
  }
  .nav-links.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links a { width: 100%; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-cta .btn-outline { display: none; }
  .nav-toggle { display: flex; }
}

/* -------------------- Hero -------------------- */
.hero {
  padding: clamp(56px, 9vw, 96px) 0 clamp(48px, 7vw, 88px);
  background: var(--mist-50);
}
.hero.reveal-ready .hero-copy, .page-intro.reveal-ready .wrap > * {
  opacity: 0;
  transform: translateY(14px);
}
.hero.reveal-ready .hero-art {
  opacity: 0;
  transform: translateY(6px) scale(0.98);
}
.hero.reveal-in .hero-copy {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.hero.reveal-in .hero-art {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s var(--ease) 0.1s, transform 0.9s var(--ease) 0.1s;
}
.page-intro.reveal-in .wrap > * {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.hero-copy p.lede { margin-top: 22px; }
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; }
@media (max-width: 940px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 420px; margin: 0 auto; }
}

/* -------------------- Route step sequence -------------------- */
.route {
  position: relative;
}
.route-track {
  display: grid;
  grid-template-columns: repeat(var(--n, 6), 1fr);
  gap: 0;
  position: relative;
}
.route-track::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 4%;
  right: 4%;
  height: 1px;
  background: var(--line-strong);
}
.route-step {
  position: relative;
  padding-top: 40px;
  padding-right: 22px;
}
.route-step .node {
  position: absolute;
  top: 0; left: 0;
  width: 23px; height: 23px;
  border-radius: 50%;
  background: var(--mist-50);
  border: 1px solid var(--navy-900);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--navy-900);
}
.route-step:first-child .node { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-950); }
.route-step h3 { font-size: 1.08rem; margin-bottom: 8px; }
.route-step p { font-size: 0.94rem; }
@media (max-width: 900px) {
  .route-track { grid-template-columns: 1fr !important; gap: 30px; }
  .route-track::before { left: 11px; top: 0; bottom: 0; right: auto; width: 1px; height: 100%; }
  .route-step { padding-top: 0; padding-left: 42px; padding-right: 0; }
  .route-step .node { top: 2px; left: 0; }
}

/* -------------------- Manifest list (services) -------------------- */
.manifest-row {
  display: grid;
  grid-template-columns: 90px 1fr 1.15fr;
  gap: 36px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.manifest-row:last-child { border-bottom: 1px solid var(--line); }
.manifest-index {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--blue-600);
  padding-top: 6px;
}
.manifest-head p { margin-top: 12px; }
.manifest-tags { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 4px; }
.manifest-tags span {
  font-size: 0.86rem;
  color: var(--ink-soft);
  padding: 7px 0;
  border-bottom: 1px dashed var(--line-strong);
}
.manifest-outcome {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--navy-700);
}
@media (max-width: 780px) {
  .manifest-row { grid-template-columns: 1fr; gap: 14px; }
  .manifest-index { padding-top: 0; }
}

/* -------------------- Value strip -------------------- */
.value-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.value-strip .value-item {
  padding: 34px 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.value-item .tag {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--gold-600);
}
.value-item h3 { margin: 12px 0 10px; font-size: 1.02rem; }
.value-item p { font-size: 0.9rem; }
@media (max-width: 980px) {
  .value-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .value-strip { grid-template-columns: 1fr; }
}

/* -------------------- Panels / dark sections -------------------- */
.panel-dark {
  background: var(--navy-900);
  color: var(--blue-100);
  position: relative;
  overflow: hidden;
}
.panel-dark h2, .panel-dark h3 { color: var(--white); }
.panel-dark p { color: rgba(220, 238, 246, 0.78); }
.panel-dark .kicker { color: var(--blue-300); }

/* -------------------- Cards used sparingly (audience segments) -------------------- */
.segment {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  padding: 44px 0;
  border-top: 1px solid var(--line);
}
.segment:last-child { border-bottom: 1px solid var(--line); }
.segment-label { font-family: var(--font-mono); font-size: 0.85rem; color: var(--blue-600); }
.segment-label .big { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--navy-900); margin-top: 6px; }
.segment-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 30px; margin-top: 18px; }
.segment-list li { font-size: 0.95rem; color: var(--ink-soft); padding-left: 16px; position: relative; }
.segment-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 1px; background: var(--gold-500); }
@media (max-width: 760px) {
  .segment { grid-template-columns: 1fr; gap: 16px; }
  .segment-list { grid-template-columns: 1fr; }
}

/* -------------------- Industry callouts on solutions page -------------------- */
.industry-note {
  margin-top: 10px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* -------------------- Forms -------------------- */
.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(44, 110, 158, 0.14);
  outline: none;
}
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }
.field-error { color: #B3432B; font-size: 0.8rem; margin-top: 6px; display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #B3432B; }
.field.has-error .field-error { display: block; }
.form-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 4px; }
.form-status {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.success { background: var(--blue-100); color: var(--navy-800); border: 1px solid var(--blue-300); }

/* -------------------- Contact detail list -------------------- */
.contact-list { display: flex; flex-direction: column; gap: 26px; }
.contact-list .item { display: flex; gap: 18px; align-items: flex-start; }
.contact-list .item .icon {
  flex: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-600);
}
.contact-list .item h3 { font-size: 0.98rem; margin-bottom: 4px; }
.contact-list .item p, .contact-list .item a { font-size: 0.95rem; }
.contact-list .item a { color: var(--blue-600); }
.contact-list .item a:hover { text-decoration: underline; }

/* -------------------- Footer -------------------- */
.site-footer { background: var(--navy-950); color: rgba(220, 238, 246, 0.7); padding: clamp(56px, 8vw, 84px) 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand img { height: 30px; margin-bottom: 16px; }
.footer-brand p { color: rgba(220, 238, 246, 0.6); font-size: 0.92rem; max-width: 30ch; }
.footer-col h4 { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.02em; color: var(--blue-300); margin-bottom: 16px; text-transform: uppercase; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 0.93rem; color: rgba(220, 238, 246, 0.78); transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; font-size: 0.82rem; color: rgba(220, 238, 246, 0.45); flex-wrap: wrap; gap: 10px; }
@media (max-width: 860px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* -------------------- Page intro band (inner pages) -------------------- */
.page-intro { padding: clamp(52px, 8vw, 84px) 0 clamp(30px, 5vw, 50px); background: var(--mist-50); }
.page-intro .h1 { max-width: 16ch; }
.page-intro .lede { margin-top: 20px; }
.breadcrumb { font-family: var(--font-mono); font-size: 0.78rem; color: var(--blue-600); margin-bottom: 20px; }
.breadcrumb span { color: var(--ink-soft); }

/* -------------------- Misc -------------------- */
.two-col-text { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
@media (max-width: 760px) { .two-col-text { grid-template-columns: 1fr; } }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.values-grid .value {
  background: var(--mist-50);
  padding: 34px 30px;
}
.values-grid .value h3 { margin-bottom: 10px; font-size: 1.05rem; }
.values-grid .value p { font-size: 0.92rem; }
@media (max-width: 860px) { .values-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .values-grid { grid-template-columns: 1fr; } }

.cta-band { text-align: center; padding: clamp(60px, 9vw, 100px) 0; }
.cta-band .h2 { max-width: 22ch; margin: 0 auto; }
.cta-band p.lede { margin: 20px auto 0; text-align: center; }
.cta-band .btn-row { justify-content: center; }

.stat-row { display: flex; gap: clamp(28px, 6vw, 64px); flex-wrap: wrap; margin-top: 40px; }
.stat-row .stat .num { font-family: var(--font-display); font-size: 2.1rem; color: var(--navy-900); }
.stat-row .stat .label { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-soft); margin-top: 4px; }

.approach-quote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  color: var(--navy-900);
  line-height: 1.4;
  max-width: 20ch;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy-900);
  color: var(--white);
  padding: 12px 18px;
  z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }
