/* Clearpath Commerce LLC — self-hosted styles, no third-party CDNs */

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Serif";
  src: url("../fonts/ibm-plex-serif-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Serif";
  src: url("../fonts/ibm-plex-serif-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #12263a;
  --navy-deep: #0b1824;
  --slate: #3a4a58;
  --muted: #5b6b78;
  --line: #d8dee5;
  --paper: #f4f6f8;
  --white: #ffffff;
  --accent: #1a6b63;
  --accent-hover: #155851;
  --accent-soft: #e8f2f1;
  --error: #8b2e2e;
  --error-bg: #f8eeee;
  --ok: #1a6b63;
  --ok-bg: #e8f2f1;
  --focus: #1a6b63;
  --max: 68rem;
  --header-h: 4.25rem;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --serif: "IBM Plex Serif", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--slate);
  background: var(--white);
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent-hover); }
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: 0.75rem;
  top: -100px;
  z-index: 100;
  background: var(--navy);
  color: var(--white);
  padding: 0.5rem 0.85rem;
  border-radius: 2px;
}
.skip:focus { top: 0.75rem; }

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--navy);
  flex-shrink: 0;
}
.logo:hover { color: var(--navy); }
.logo-mark { width: 2.25rem; height: 2.25rem; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}
.logo-sub {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.12rem;
}
.nav-cluster {
  display: flex;
  align-items: center;
  gap: 0.85rem 1.15rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav ul {
  display: flex;
  gap: 0.2rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  color: var(--navy);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] {
  color: var(--navy);
  border-bottom-color: var(--accent);
}
.lang {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0 0.95rem;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
}
.lang-switch:hover,
.lang-switch:focus-visible {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.lang-icon {
  width: 1.1rem;
  height: 1.1rem;
  display: block;
  flex-shrink: 0;
}

/* Main typography */
main { display: block; }
.hero {
  padding: 2.25rem 0 2.5rem;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  line-height: 1.18;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin: 0 0 1.15rem;
  max-width: 22rem;
}
.lede, .prose p {
  margin: 0 0 1rem;
  max-width: 42rem;
  color: var(--slate);
}
.lede { font-size: 1.125rem; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  margin-top: 1.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9875rem;
  padding: 0.8rem 1.25rem;
  border: 1px solid var(--navy);
  border-radius: 2px;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
}
.btn:hover { background: var(--navy-deep); color: var(--white); }
.btn:disabled { opacity: 0.65; cursor: not-allowed; }
.btn-accent { background: var(--accent); border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--white); }

.section {
  padding: 2.75rem 0;
}
.section-alt { background: var(--paper); }
.section h2, .page-head h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  color: var(--navy);
  letter-spacing: -0.015em;
  margin: 0 0 1.25rem;
  line-height: 1.25;
}
.page-head { padding: 2.75rem 0 0.5rem; }
.page-head .lede { margin-bottom: 0.5rem; }

.steps {
  display: grid;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.steps li {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.25rem 1.25rem 1.3rem;
  border-radius: 2px;
}
.steps h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
  margin: 0 0 0.45rem;
  display: flex;
  gap: 0.65rem;
  align-items: baseline;
  line-height: 1.3;
}
.step-num {
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.steps p { margin: 0; font-size: 0.9875rem; }

.highlight {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: var(--white);
  padding: 1.35rem 1.4rem 1.4rem;
  border-radius: 2px;
}
.highlight h2, .highlight h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
  color: var(--navy);
  margin: 0 0 0.55rem;
}
.highlight p { margin: 0; max-width: 42rem; }

.services {
  display: grid;
  gap: 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.services li {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.25rem 1.25rem 1.35rem;
  border-radius: 2px;
}
.services h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
  margin: 0 0 0.45rem;
  line-height: 1.3;
}
.services p { margin: 0; font-size: 0.9875rem; }

.note {
  font-size: 0.9375rem;
  color: var(--muted);
  max-width: 42rem;
  margin: 1.25rem 0 0;
}

/* Contact / form */
.contact-layout {
  display: grid;
  gap: 2.25rem;
  padding-bottom: 3rem;
}
.form {
  display: grid;
  gap: 1.05rem;
  max-width: 36rem;
}
.field { display: grid; gap: 0.35rem; }
/* hidden attribute must win over .field display */
[hidden] { display: none !important; }
.field label {
  font-weight: 500;
  color: var(--navy);
  font-size: 0.9375rem;
}
.hint {
  font-size: 0.8125rem;
  color: var(--muted);
  font-weight: 400;
}
.req { color: var(--accent); font-weight: 500; }
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--navy);
  background: var(--white);
  border: 1px solid #c5ced6;
  border-radius: 2px;
  padding: 0.65rem 0.7rem;
  width: 100%;
}
textarea { min-height: 8.5rem; resize: vertical; }
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--accent);
}
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  padding: 0.85rem 1rem;
  border-radius: 2px;
  font-size: 0.9875rem;
  max-width: 36rem;
}
.form-status.ok {
  background: var(--ok-bg);
  color: var(--navy);
  border: 1px solid #c5ddd9;
}
.form-status.err {
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid #e3c8c8;
}
.form-status[hidden] { display: none; }
.fallback {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  max-width: 36rem;
}
.fallback p { margin: 0 0 0.5rem; }
.mailto {
  font-weight: 500;
  word-break: break-word;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 1.7rem;
  background: var(--white);
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.55;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.5rem;
}
.site-footer .logo-name { font-size: 1.05rem; }
.site-footer .logo-mark { width: 2rem; height: 2rem; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--navy); }

/* 404 */
.notfound { padding: 4rem 0 5rem; }
.notfound h1 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--navy);
  font-size: 2rem;
  margin: 0 0 0.75rem;
}

@media (min-width: 700px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 1.15rem; }
  .services { grid-template-columns: repeat(2, 1fr); gap: 1.15rem; }
  .hero { padding: 4.25rem 0 3.25rem; }
  .section { padding: 3.25rem 0; }
  .page-head { padding-top: 3.25rem; }
}
@media (max-width: 519px) {
  .site-header .logo-sub { display: none; }
  .nav a { font-size: 0.875rem; }
  .hero { padding-top: 2.4rem; }
}

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

/* Product flow diagram */
.flow {
  margin-top: 2.5rem;
}
.flow h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
  color: var(--navy);
  margin: 0 0 1rem;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.flow-svg {
  display: block;
  width: 100%;
  height: auto;
}
.flow-svg-desktop { display: none; }
.flow-svg-mobile { display: block; max-width: 22rem; margin-inline: auto; }
.flow-note {
  font-size: 0.9375rem;
  color: var(--muted);
  max-width: 42rem;
  margin: 0.9rem 0 0;
}
@media (min-width: 700px) {
  .flow-svg-desktop { display: block; }
  .flow-svg-mobile { display: none; }
  .flow { margin-top: 2.75rem; }
}

@media (max-width: 639px) {
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo lang"
      "nav nav";
    align-items: center;
    column-gap: 0.75rem;
    row-gap: 0.4rem;
    min-height: 0;
    padding: 0.7rem 0 0.65rem;
  }
  .logo { grid-area: logo; }
  .nav-cluster { display: contents; }
  .nav { grid-area: nav; }
  .nav ul { justify-content: flex-start; gap: 1.15rem; }
  .lang {
    grid-area: lang;
    border-left: none;
    padding-left: 0;
  }
}


/* Hero with photograph */
.hero-grid {
  display: grid;
  gap: 1.5rem;
}
.hero-visual { margin: 0; }
.hero-visual img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center 45%;
  background: var(--paper);
}
@media (min-width: 800px) {
  .hero { padding: 3.15rem 0 3.1rem; }
  .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 2.75rem;
    align-items: center;
  }
  .hero-visual img {
    aspect-ratio: 4 / 5;
    max-height: 34rem;
  }
}

/* Partner timeline */
.timeline-intro {
  margin: 0 0 1.35rem;
  max-width: 42rem;
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}
.timeline li {
  position: relative;
  padding: 0 0 1.4rem 2.45rem;
}
.timeline li:last-child { padding-bottom: 0; }
.tl-num {
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  font-variant-numeric: tabular-nums;
}
.timeline li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 0.72rem;
  top: 1.75rem;
  bottom: 0.15rem;
  width: 2px;
  background: #c5ced6;
}
.timeline h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--navy);
  margin: 0 0 0.3rem;
  line-height: 1.3;
}
.timeline p { margin: 0; font-size: 0.9375rem; }
@media (min-width: 800px) {
  .timeline {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 1.25rem;
    row-gap: 1.5rem;
  }
  .timeline li {
    padding: 0;
  }
  .timeline li:not(:last-child)::before { display: none; }
  .tl-num { position: static; margin-bottom: 0.55rem; }
}


/* Photo row (illustrative stills, no captions claiming team or clients) */
.photo-row {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.85rem;
}
.photo-row figure { margin: 0; }
.photo-row img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--paper);
}
@media (min-width: 700px) {
  .photo-row { grid-template-columns: repeat(3, 1fr); gap: 0.85rem; }
}

/* Category section with a supporting photo */
.split {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  align-items: center;
}
.split figure { margin: 0; }
.split img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 20%;
  background: var(--paper);
}
@media (min-width: 800px) {
  .split {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
    gap: 2rem;
  }
}

/* What we take on */
.take-on {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  padding: 1.3rem 1.35rem 1.35rem;
  border-radius: 2px;
  margin-top: 1.5rem;
  max-width: 46rem;
}
.take-on h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--navy);
  margin: 0 0 0.55rem;
}
.take-on p { margin: 0 0 0.75rem; }
.take-on p:last-child { margin: 0; }

/* FAQ */
.faq {
  display: grid;
  gap: 1.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.faq li {
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.faq li:last-child { padding-bottom: 0; border-bottom: 0; }
.faq h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
  margin: 0 0 0.35rem;
  line-height: 1.3;
}
.faq p { margin: 0; font-size: 0.9875rem; }
@media (min-width: 800px) {
  .faq {
    grid-template-columns: 1fr 1fr;
    gap: 1.15rem 1.25rem;
  }
  .faq li {
    border: 1px solid var(--line);
    border-radius: 2px;
    background: var(--white);
    padding: 1.15rem 1.2rem 1.2rem;
  }
  .section-alt .faq li { background: var(--white); }
}

.cost-note { margin-top: 1.15rem; }

/* Scannable bullet lists in the hero, about intro, and take-on note */
.plain-points {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  max-width: 42rem;
}
.plain-points li {
  position: relative;
  padding: 0.22rem 0 0.22rem 1.2rem;
  font-size: 1.05rem;
  line-height: 1.5;
}
.plain-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--accent);
}
.take-on .plain-points {
  margin: 0;
}
.take-on .plain-points li {
  font-size: 1rem;
  padding-bottom: 0.55rem;
}
.take-on .plain-points li:last-child { padding-bottom: 0; }
.hero-copy .plain-points { margin: 0.15rem 0 1rem; }

/* Compact form rows on larger screens; single column on phones */
.form-row {
  display: grid;
  gap: 1.05rem;
}
@media (min-width: 600px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 599px) {
  .form { gap: 0.85rem; }
}
