/* ==========================================================================
   Solutioneering — design system
   Palette is drawn from the company logo: navy #002A46, helix green #0A925B,
   paper #FEFDFB.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --navy-900: #001829;
  --navy: #002a46;
  --navy-600: #0c3b5f;
  --navy-400: #35607f;
  --navy-100: #e7eef4;
  --navy-50: #f3f7fa;

  /* --green is the graphic/accent tone. For text and for button fills a
     darker mix is needed to clear 4.5:1 against white. */
  --green: #0a925b;
  --green-600: #077a4b;
  --green-700: #04512f;
  --green-100: #e3f3ea;
  --green-on-dark: #6fd3a4;

  --paper: #fefdfb;

  /* Neutrals */
  --ink: #10202b;
  --muted: #5a6b78;
  --muted-strong: #435563;
  --line: rgba(0, 42, 70, 0.12);
  --line-strong: rgba(0, 42, 70, 0.22);

  /* Typography */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;

  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.89rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --step-1: clamp(1.19rem, 1.12rem + 0.35vw, 1.38rem);
  --step-2: clamp(1.41rem, 1.29rem + 0.6vw, 1.75rem);
  --step-3: clamp(1.68rem, 1.48rem + 1vw, 2.28rem);
  --step-4: clamp(2rem, 1.66rem + 1.7vw, 3rem);
  --step-5: clamp(2.35rem, 1.75rem + 3vw, 4rem);

  /* Space */
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 8vw, 7rem);
  --measure: 66ch;

  /* Shape */
  --radius: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(0, 42, 70, 0.06),
    0 2px 6px rgba(0, 42, 70, 0.05);
  --shadow-md: 0 2px 4px rgba(0, 42, 70, 0.06),
    0 12px 28px -8px rgba(0, 42, 70, 0.16);
  --shadow-lg: 0 4px 8px rgba(0, 42, 70, 0.07),
    0 24px 56px -16px rgba(0, 42, 70, 0.25);

  --header-h: 74px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.25rem);
}

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd,
ul,
ol {
  margin: 0;
}

ul[class],
ol[class] {
  list-style: none;
  padding: 0;
}

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

img {
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

body {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4 {
  line-height: 1.13;
  font-weight: 640;
  letter-spacing: -0.021em;
  color: var(--navy);
  text-wrap: balance;
}

h1 {
  font-size: var(--step-5);
  letter-spacing: -0.03em;
}

h2 {
  font-size: var(--step-4);
}

h3 {
  font-size: var(--step-2);
}

h4 {
  font-size: var(--step-1);
  letter-spacing: -0.012em;
}

p {
  text-wrap: pretty;
}

.lede {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--muted-strong);
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-600);
}

.eyebrow::after {
  content: "";
  display: block;
  width: 2.25rem;
  height: 2px;
  margin-top: 0.7rem;
  /* Tracks the eyebrow text color, so it lightens on dark sections too. */
  background: currentColor;
  border-radius: 2px;
}

.eyebrow--center {
  text-align: center;
}

.eyebrow--center::after {
  margin-inline: auto;
}

.prose > * + * {
  margin-top: 1.1em;
}

.prose p {
  max-width: var(--measure);
}

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: 880px;
}

.section {
  padding-block: var(--section-y);
}

.section--tight {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.section--navy {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.82);
}

.section--navy h2,
.section--navy h3,
.section--navy h4 {
  color: #fff;
}

/* On the dark sections every accent shifts to the light green, so eyebrows,
   body copy and step markers all clear AA against navy. */
.section--navy .eyebrow,
.hero .eyebrow,
.page-hero .eyebrow,
.cta .eyebrow {
  color: var(--green-on-dark);
}

.section--navy .lede {
  color: rgba(255, 255, 255, 0.82);
}

.section--navy .step p {
  color: rgba(255, 255, 255, 0.78);
}

.section--navy .step::before {
  background: var(--navy);
  color: var(--green-on-dark);
}

/* The default hairline rule is invisible on navy. */
.section--navy .step {
  border-top-color: rgba(255, 255, 255, 0.22);
}

.section--tint {
  background: var(--navy-50);
}

.section--paper {
  background: var(--paper);
}

.stack > * + * {
  margin-top: 1rem;
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.section-head > * + * {
  margin-top: 1rem;
}

/* Grids */
.grid {
  display: grid;
  gap: clamp(1.15rem, 2.4vw, 1.75rem);
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

@media (min-width: 56rem) {
  .split {
    grid-template-columns: 1fr 1fr;
  }

  .split--wide-left {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .split--narrow-left {
    grid-template-columns: 0.85fr 1.15fr;
  }
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  /* #077A4B on white measures 5.4:1 — comfortably past the 4.5:1 AA floor. */
  --btn-bg: var(--green-600);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.95rem;
  font-weight: 620;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease),
    background-color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.btn:hover {
  --btn-bg: var(--green-700);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--navy);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  --btn-bg: var(--navy-50);
  border-color: var(--navy-400);
}

.btn--on-dark {
  --btn-bg: transparent;
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn--on-dark:hover {
  --btn-bg: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.btn--lg {
  padding: 1rem 1.9rem;
  font-size: 1rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

/* Arrow inside buttons and text links */
.arrow {
  width: 1em;
  height: 1em;
  flex: none;
  transition: transform 0.18s var(--ease);
}

.btn:hover .arrow,
a:hover > .arrow,
.link:hover .arrow {
  transform: translateX(3px);
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--green-600);
  font-weight: 620;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.16s var(--ease);
}

.link:hover {
  border-bottom-color: currentColor;
}

/* --------------------------------------------------------------------------
   6. Header
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 0.75rem 1.15rem;
  background: var(--navy);
  color: #fff;
  border-radius: 0 0 var(--radius) 0;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(254, 253, 251, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

@supports not (backdrop-filter: blur(1px)) {
  .site-header {
    background: var(--paper);
  }
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex: none;
}

.brand__mark {
  width: auto;
  height: 34px;
}

.brand__word {
  width: auto;
  /* Ratio taken from the supplied lockup: the wordmark is ~64% of the
     mark's height, so the two stay in proportion as the mark scales. */
  height: 22px;
}

@media (max-width: 30rem) {
  .brand__word {
    height: 19px;
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.4rem, 1.6vw, 1.4rem);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(0.15rem, 0.8vw, 0.6rem);
}

.nav__link {
  position: relative;
  display: block;
  padding: 0.55rem 0.7rem;
  color: var(--navy-600);
  font-size: 0.925rem;
  font-weight: 560;
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.16s var(--ease), background-color 0.16s var(--ease);
}

.nav__link:hover {
  color: var(--navy);
  background: var(--navy-50);
}

.nav__link[aria-current="page"] {
  color: var(--navy);
  font-weight: 660;
}

.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.15rem;
  height: 2px;
  border-radius: 2px;
  background: var(--green);
}

.nav__cta {
  flex: none;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  cursor: pointer;
  color: var(--navy);
}

.nav-toggle__bars {
  position: relative;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: background-color 0.16s var(--ease);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s var(--ease);
}

.nav-toggle__bars::before {
  top: -6px;
}

.nav-toggle__bars::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 61rem) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 0.85rem var(--gutter) 1.4rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }

  /* With scripting the panel stays closed until the toggle opens it.
     Without scripting it is simply laid out open, so the menu always works. */
  html.js .nav {
    display: none;
  }

  html.js .nav.is-open {
    display: block;
  }

  html:not(.js) .nav {
    display: block;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.1rem;
  }

  .nav__link {
    padding: 0.8rem 0.6rem;
    font-size: 1.02rem;
    border-radius: 10px;
  }

  .nav__link[aria-current="page"]::after {
    left: 0.6rem;
    right: auto;
    width: 1.5rem;
    bottom: 0.4rem;
  }

  .nav__cta {
    margin-top: 0.85rem;
    width: 100%;
    justify-content: center;
  }
}

@media (min-width: 61.0625rem) {
  /* Above the breakpoint the panel is always the horizontal bar. */
  html.js .nav,
  html.js .nav.is-open,
  html:not(.js) .nav {
    display: flex;
  }
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  background-color: var(--navy-900);
  color: rgba(255, 255, 255, 0.85);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("../img/hero-dna.webp");
  background-size: cover;
  background-position: center right;
}

@media (max-width: 40rem) {
  .hero::before {
    background-image: url("../img/hero-dna-mobile.webp");
    background-position: center;
  }
}

/* Navy scrim keeps the headline legible over the helix artwork. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
      100deg,
      var(--navy-900) 0%,
      rgba(0, 24, 41, 0.95) 34%,
      rgba(0, 24, 41, 0.72) 58%,
      rgba(0, 24, 41, 0.45) 100%
    ),
    linear-gradient(180deg, rgba(0, 24, 41, 0.5), rgba(0, 24, 41, 0.75));
}

.hero__inner {
  padding-block: clamp(3.75rem, 10vw, 7.5rem);
  max-width: 43rem;
}

.hero h1 {
  color: #fff;
  margin-top: 1.25rem;
}

.hero__lede {
  margin-top: 1.4rem;
  font-size: var(--step-1);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.8);
  max-width: 38rem;
}

.hero .btn-row {
  margin-top: 2.25rem;
}

.hero__proof {
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.hero__proof-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-on-dark);
}

.hero__proof-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  margin-top: 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.92);
}

/* Page hero (interior pages) */
.page-hero {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.82);
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
  position: relative;
  overflow: hidden;
}

.page-hero__inner {
  max-width: 48rem;
}

.page-hero h1 {
  color: #fff;
  margin-top: 1rem;
}

.page-hero .lede {
  color: rgba(255, 255, 255, 0.8);
  margin-top: 1.25rem;
}

.crumbs {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Underlined so the links are distinguishable without relying on color. */
.crumbs a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.crumbs a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   8. Cards
   -------------------------------------------------------------------------- */
.card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.4rem, 2.6vw, 2rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.card--hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1.15rem;
  border-radius: 12px;
  background: var(--green-100);
  color: var(--green-600);
}

.card__icon svg {
  width: 24px;
  height: 24px;
}

.card__num {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--green-600);
}

.card h3 {
  margin-top: 0.5rem;
  font-size: var(--step-1);
}

.card > p {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.97rem;
}

.card__list {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.card__list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--muted-strong);
  font-size: 0.95rem;
}

.card__list li + li {
  margin-top: 0.65rem;
}

.card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.card__foot {
  margin-top: auto;
  padding-top: 1.25rem;
}

/* Feature/tile used on the Industries page */
.tile {
  padding: clamp(1.25rem, 2.2vw, 1.6rem);
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: box-shadow 0.2s var(--ease);
}

.tile:hover {
  box-shadow: var(--shadow-sm);
}

.tile h3 {
  font-size: var(--step-0);
  font-weight: 660;
}

.tile p {
  margin-top: 0.5rem;
  font-size: 0.94rem;
  color: var(--muted);
}

/* Stat / credential strip */
.creds {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
}

.creds__item {
  padding: clamp(1.2rem, 2.4vw, 1.75rem);
  background: #fff;
  text-align: center;
}

.creds__value {
  font-size: var(--step-2);
  font-weight: 680;
  letter-spacing: 0.02em;
  color: var(--navy);
}

.creds__label {
  margin-top: 0.3rem;
  font-size: 0.83rem;
  color: var(--muted);
}

/* Pull quote */
.quote {
  border-left: 3px solid var(--green);
  padding-left: clamp(1.1rem, 2.5vw, 1.75rem);
}

.quote p {
  font-size: var(--step-2);
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--navy);
  text-wrap: balance;
}

/* Figure with the lab imagery */
.figure {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure--tall img {
  aspect-ratio: 4 / 3.4;
}

.figure--wide img {
  aspect-ratio: 16 / 9;
}

/* --------------------------------------------------------------------------
   9. Steps / process
   -------------------------------------------------------------------------- */
.steps {
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 1.5rem;
  border-top: 2px solid var(--line);
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: -0.72em;
  left: 0;
  padding-right: 0.6rem;
  background: var(--paper);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--green-600);
}

.section--tint .step::before {
  background: var(--navy-50);
}

.step h3 {
  font-size: var(--step-1);
}

.step p {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.97rem;
}

/* --------------------------------------------------------------------------
   10. Call to action band
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  isolation: isolate;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.82);
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
      60rem 30rem at 82% 12%,
      rgba(10, 146, 91, 0.32),
      transparent 62%
    ),
    radial-gradient(40rem 26rem at 6% 96%, rgba(53, 96, 127, 0.4), transparent 65%);
}

.cta__inner {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}

@media (min-width: 56rem) {
  .cta__inner {
    grid-template-columns: 1.35fr auto;
  }
}

.cta h2 {
  color: #fff;
}

.cta p {
  margin-top: 1rem;
  max-width: 38rem;
  color: rgba(255, 255, 255, 0.8);
}

.letterhead-rule {
  height: 3px;
  width: clamp(3rem, 8vw, 6rem);
  background: var(--green);
  border-radius: 3px;
}

/* --------------------------------------------------------------------------
   11. Forms
   -------------------------------------------------------------------------- */
.form {
  display: grid;
  gap: clamp(1rem, 2vw, 1.35rem);
}

@media (min-width: 34rem) {
  .form__row {
    display: grid;
    gap: clamp(1rem, 2vw, 1.35rem);
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field__label {
  font-size: 0.9rem;
  font-weight: 620;
  color: var(--navy);
}

.field__req {
  color: var(--green-600);
  margin-left: 0.15rem;
}

.field__hint {
  font-size: 0.82rem;
  color: var(--muted);
}

.field__control {
  width: 100%;
  padding: 0.75rem 0.9rem;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.field__control:hover {
  border-color: var(--navy-400);
}

.field__control:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(10, 146, 91, 0.18);
}

textarea.field__control {
  min-height: 9.5rem;
  resize: vertical;
}

select.field__control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5 7 7.5l6-6' fill='none' stroke='%23002a46' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  padding-right: 2.6rem;
}

.field__control[aria-invalid="true"] {
  border-color: #b42318;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.14);
}

.field__error {
  font-size: 0.85rem;
  font-weight: 560;
  color: #b42318;
}

.field__error:empty {
  display: none;
}

/* Honeypot: hidden from people, tempting to bots. */
.hp {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 0.4rem;
}

.form__status {
  font-size: 0.92rem;
  color: var(--muted);
}

/* Submission notices */
.notice {
  display: flex;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 0.96rem;
}

.notice svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 0.15rem;
}

.notice--success {
  background: var(--green-100);
  border-color: rgba(10, 146, 91, 0.35);
  color: #05593a;
}

.notice--error {
  background: #fdf2f1;
  border-color: rgba(180, 35, 24, 0.3);
  color: #7a1a12;
}

.notice strong {
  display: block;
}

.notice ul {
  margin-top: 0.4rem;
  padding-left: 1.1rem;
  list-style: disc;
}

/* Contact detail list */
.contact-list dt {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-600);
}

.contact-list dd {
  margin-top: 0.3rem;
  color: var(--muted-strong);
}

.contact-list > div + div {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
}

.site-footer__inner {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  padding-block: clamp(2.5rem, 5vw, 3.75rem);
}

@media (min-width: 52rem) {
  .site-footer__inner {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.site-footer__brand img:first-child {
  height: 30px;
  width: auto;
}

.site-footer__brand img:last-child {
  height: 19px;
  width: auto;
  /* The wordmark is navy; invert it for the dark footer. */
  filter: brightness(0) invert(1);
}

.site-footer p {
  max-width: 30rem;
}

.site-footer h2 {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.9rem;
}

.site-footer__list li + li {
  margin-top: 0.55rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  padding-block: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.86rem;
}

/* --------------------------------------------------------------------------
   13. Utilities & motion
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.text-center {
  text-align: center;
}

.mx-auto {
  margin-inline: auto;
}

.mt-0 {
  margin-top: 0;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mt-4 {
  margin-top: 2rem;
}

.mt-5 {
  margin-top: 3rem;
}

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

.section--navy :focus-visible,
.hero :focus-visible,
.cta :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--green-on-dark);
}

/* Reveal-on-scroll: progressive enhancement, driven by site.js. */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

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

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   14. Print
   -------------------------------------------------------------------------- */
@media print {
  .site-header,
  .site-footer,
  .nav,
  .btn-row,
  .hero::before,
  .hero::after {
    display: none !important;
  }

  /* Scroll-revealed content must never print blank. */
  .js .reveal,
  .js .reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
  }

  body {
    color: #000;
    background: #fff;
    font-size: 11pt;
  }

  .hero,
  .page-hero,
  .section--navy,
  .cta {
    background: none !important;
    color: #000 !important;
  }

  .hero h1,
  .page-hero h1,
  .section--navy h2,
  .cta h2 {
    color: #000 !important;
  }

  a[href^="/"]::after {
    content: " (solutioneering.com" attr(href) ")";
    font-size: 9pt;
  }
}
