:root {
  --navy: #1a4a72;
  --navy-deep: #143a5c;
  --blue: #3078b0;
  --blue-mid: #3880b8;
  --blue-light: #5a9cc9;
  --sky: #e8f2f8;
  --mist: #f3f8fb;
  --ink: #152636;
  --muted: #4a6072;
  --line: #c8d9e6;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(26, 74, 114, 0.12);
  --radius: 14px;
  --font-display: "Source Sans 3", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Source Sans 3", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --max: 1100px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
  font-size: calc(100% + 2pt);
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--mist);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: var(--navy-deep);
}

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

.wrap.narrow {
  width: min(100% - 2.5rem, 720px);
}

/* Header */
#site-header {
  min-height: 64px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  background: #f3f8fb;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav > a,
.nav-parent {
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 600;
}

.nav > a:hover,
.nav > a.active,
.nav-parent:hover,
.nav-parent.active,
.nav-item.open .nav-parent {
  color: var(--navy);
}

.nav > a.active,
.nav-parent.active {
  font-weight: 700;
}

.nav-parent::after {
  content: "";
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  margin-left: 0.35rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-0.15em) rotate(45deg);
  vertical-align: middle;
}

.nav-item {
  position: relative;
}

/* Keep hover path open between label and panel */
.nav-item::before {
  content: "";
  position: absolute;
  left: -0.5rem;
  right: -0.5rem;
  top: 100%;
  height: 1.25rem;
  display: none;
}

.nav-item:hover::before,
.nav-item.open::before {
  display: block;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 0.85rem;
  width: min(92vw, 420px);
  background: transparent;
  border: none;
  box-shadow: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.12s ease 0.18s, visibility 0s linear 0.3s;
  z-index: 120;
}

.dropdown-panel {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.65rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown,
.nav-item.open .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.dropdown-cat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.75rem 0.85rem;
  border-radius: 8px;
  color: inherit;
}

.dropdown-cat:hover {
  background: var(--mist);
  color: inherit;
}

.dropdown-cat strong {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--navy-deep);
}

.dropdown-cat span {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.35;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.15rem;
  background: var(--navy);
  color: var(--white) !important;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--navy-deep);
}

/* Inner page banner */
.page-banner {
  padding: 2.75rem 0 1.5rem;
  background:
    radial-gradient(ellipse 70% 80% at 0% 0%, rgba(88, 156, 201, 0.22), transparent 55%),
    linear-gradient(165deg, #eaf4fa 0%, #f7fbfd 100%);
  border-bottom: 1px solid var(--line);
}

.page-banner h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy-deep);
  max-width: 22ch;
}

.page-banner-lead {
  margin: 0.85rem 0 0;
  color: var(--muted);
  max-width: 52ch;
  font-size: 1.05rem;
}

/* Home explore links */
.home-links {
  padding-top: 2.5rem;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 0.5rem;
}

.link-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem 1.35rem;
  background: var(--white);
  border-left: 3px solid var(--blue);
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}

.link-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: inherit;
}

.link-card strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--navy);
}

.link-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Hero — contact first */
.hero {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0 4.5rem;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center; /* vertical middle */
  justify-content: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(88, 156, 201, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 10%, rgba(48, 120, 176, 0.18), transparent 50%),
    linear-gradient(165deg, #eaf4fa 0%, #f7fbfd 45%, #e6f0f7 100%);
  z-index: 0;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26, 74, 114, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 74, 114, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
  opacity: 0.7;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center; /* keep copy + form mid-aligned */
}

.hero-logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin-bottom: 1rem;
  animation: rise 0.8s ease both;
}

.hero-copy {
  text-align: left;
  display: block;
  align-self: center;
  transform: translateY(-5.5cm);
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  animation: rise 0.8s ease 0.08s both;
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--navy-deep);
  letter-spacing: -0.02em;
  animation: rise 0.8s ease 0.12s both;
}

.tagline {
  margin: 0.6rem 0 1rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--blue);
  animation: rise 0.8s ease 0.18s both;
}

.hero-lead {
  margin: 0 0 1.25rem;
  max-width: 36ch;
  color: var(--muted);
  font-size: 1.05rem;
  animation: rise 0.8s ease 0.22s both;
}

.hero-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  color: var(--navy);
  font-weight: 500;
  font-size: 0.95rem;
  animation: rise 0.8s ease 0.28s both;
}

.hero-points a {
  color: inherit;
}

/* Lead form */
.lead-form {
  position: relative;
  z-index: 1;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  animation: rise 0.9s ease 0.2s both;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.lead-form h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--navy-deep);
}

.form-intro {
  margin: -0.35rem 0 0.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.lead-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  width: 100%;
}

.lead-form .field-label {
  display: block;
  line-height: 1.25;
  white-space: nowrap;
}

.lead-form .field-label .req {
  color: var(--blue);
  font-weight: 700;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  display: block;
  width: 100%;
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--mist);
  transition: border-color 0.2s, box-shadow 0.2s;
  min-height: 2.75rem;
}

.lead-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231a4a72' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.25rem;
}

.lead-form textarea {
  min-height: 7rem;
  resize: vertical;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(48, 120, 176, 0.18);
  background: var(--white);
}

.btn-primary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.85rem 1.2rem;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(26, 74, 114, 0.25);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.btn-inline {
  width: auto;
  margin-top: 1.5rem;
  padding-inline: 1.5rem;
  text-decoration: none;
}

.form-status {
  min-height: 1.4em;
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--blue);
}

.form-status.error {
  color: #9b3a3a;
}

.form-status.success {
  color: #1f6b4a;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: linear-gradient(180deg, #eaf3f9 0%, #f5fafc 100%);
}

.section-label {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}

.section h2 {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy-deep);
}

.section-lead {
  margin: -0.5rem 0 2rem;
  color: var(--muted);
  max-width: 52ch;
}

.prose p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.highlight-line {
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--blue);
  background: rgba(48, 120, 176, 0.08);
  color: var(--navy) !important;
  font-weight: 500;
}

.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.vm-grid article {
  padding: 1.35rem 0;
  border-top: 2px solid var(--blue);
}

.vm-grid h3 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--navy);
}

.vm-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Values */
.value-list,
.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.value-list li,
.why-list li {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 1rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--line);
}

.value-list strong,
.why-list strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--navy);
  font-weight: 600;
}

.value-list span,
.why-list span {
  color: var(--muted);
}

/* Pillars */
.pillar {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 5rem;
}

/* Solutions page — categorized & decluttered */
.solutions-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.solution-cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.solution-cat-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.1rem;
  background: var(--white);
  border-left: 3px solid var(--blue);
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}

.solution-cat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: inherit;
}

.solution-cat-card strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--navy);
}

.solution-cat-card span {
  font-size: 0.85rem;
  color: var(--muted);
}

.pillar-acc {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  scroll-margin-top: 5rem;
  overflow: hidden;
}

.pillar-acc summary {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.15rem 1.35rem;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 2.75rem;
}

.pillar-acc summary::-webkit-details-marker {
  display: none;
}

.pillar-acc summary::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--blue);
  line-height: 1;
}

.pillar-acc[open] summary::after {
  content: "–";
}

.pillar-acc-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy-deep);
}

.pillar-acc-hint {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

.pillar-acc-body {
  padding: 0 1.35rem 1.35rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.pillar-acc-body p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.pillar-acc-body .check-list {
  margin-top: 0.25rem;
}

.pillar:first-of-type {
  border-top: none;
  padding-top: 0;
}

.pillar h3 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--navy-deep);
}

.pillar > p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  max-width: 65ch;
}

.list-caption {
  margin: 1rem 0 0.6rem !important;
  font-size: 0.85rem !important;
  font-weight: 600;
  color: var(--navy) !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.45rem 1.5rem;
}

.check-list li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--ink);
  font-size: 0.95rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  background: var(--blue);
}

/* Approach steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  counter-reset: none;
}

.steps li {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem;
  align-items: start;
}

.step-num {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--blue-light);
  line-height: 1.2;
}

.steps strong {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--navy);
}

.steps p {
  margin: 0;
  color: var(--muted);
}

/* Industries */
.industry-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.65rem;
}

.industry-grid li {
  padding: 0.85rem 1rem;
  background: var(--white);
  border-left: 3px solid var(--blue);
  color: var(--navy);
  font-weight: 500;
  font-size: 0.95rem;
}

/* Commitment */
.commitment {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.commitment h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--navy);
}

.commitment p {
  margin: 0 0 0.75rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: var(--white);
  border-radius: 8px;
  padding: 2px;
}

.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--white);
}

.footer-brand span {
  font-size: 0.8rem;
  opacity: 0.8;
}

.footer-tag {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--blue-light);
}

.site-footer h4 {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.site-footer p {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.9);
}

.site-footer a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 1.25rem;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.65;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Responsive */
@media (max-width: 1100px) {
  .dropdown {
    left: 0;
    transform: translateY(6px);
    width: min(92vw, 640px);
  }

  .nav-item:hover .dropdown,
  .nav-item:focus-within .dropdown,
  .nav-item.open .dropdown {
    transform: translateY(0);
  }

  .dropdown-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1100px) {
  .dropdown {
    width: min(92vw, 380px);
  }
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero {
    min-height: auto;
    padding-top: 2.5rem;
  }

  .vm-grid {
    grid-template-columns: 1fr;
  }

  .check-list {
    grid-template-columns: 1fr;
  }

  .value-list li,
  .why-list li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .link-grid {
    grid-template-columns: 1fr;
  }

  .solution-cats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .site-header {
    padding-inline: 1rem;
  }

  .wrap,
  .hero-inner,
  .wrap.narrow {
    width: min(100% - 1.75rem, var(--max));
  }

  .lead-form {
    padding: 1.35rem 1.15rem;
  }
}
