:root {
  --red: #df2528;
  --red-dark: #a91518;
  --charcoal: #232326;
  --ink: #141417;
  --muted: #6f7279;
  --line: #e6e7eb;
  --paper: #f6f7f9;
  --white: #ffffff;
  --steel: #2f6f8f;
  --gold: #c6944f;
  --shadow: 0 22px 70px rgba(20, 20, 23, 0.13);
  --radius: 8px;
  --header-height: 88px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
  background: var(--white);
}

body.nav-open {
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(223, 37, 40, 0.34);
  outline-offset: 3px;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: var(--header-height);
  padding: 12px clamp(18px, 4vw, 54px) 18px;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(230, 231, 235, 0.72);
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease, height 180ms ease;
}

.site-header.is-scrolled {
  height: 76px;
  box-shadow: 0 12px 36px rgba(20, 20, 23, 0.08);
}

.header-shell {
  width: min(1220px, 100%);
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr auto;
  gap: 16px;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 178px;
}

.brand img {
  width: min(255px, 32vw);
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: fit-content;
  justify-self: center;
  padding: 4px;
  border: 1px solid rgba(230, 231, 235, 0.9);
  border-radius: 999px;
  background: rgba(246, 247, 249, 0.82);
  color: var(--charcoal);
  font-size: 0.85rem;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 11px;
  border-radius: 999px;
  white-space: nowrap;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--red);
  background: var(--white);
  box-shadow: 0 8px 22px rgba(20, 20, 23, 0.07);
}

.site-nav svg {
  width: 16px;
  height: 16px;
}

.site-nav a::after {
  display: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--charcoal);
  background: var(--white);
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

.nav-toggle:hover {
  border-color: rgba(223, 37, 40, 0.35);
  color: var(--red);
  background: var(--paper);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 18;
  display: none;
  border: 0;
  background: rgba(20, 20, 23, 0.42);
}

body.nav-open .nav-backdrop {
  display: block;
}

.section-shell {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 90vh;
  display: grid;
  align-items: end;
  padding-top: var(--header-height);
  overflow: hidden;
  color: var(--white);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

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

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(20, 20, 23, 0.88), rgba(20, 20, 23, 0.62) 42%, rgba(20, 20, 23, 0.18)),
    linear-gradient(0deg, rgba(20, 20, 23, 0.82), transparent 46%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(82px, 10vw, 120px) 0 58px;
  display: block;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: currentColor;
}

.hero .eyebrow {
  color: #ff5b5f;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Sora", "Inter", Arial, sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 860px;
  margin-top: 16px;
  font-size: clamp(2.8rem, 7vw, 6.8rem);
  line-height: 0.94;
}

h2 {
  color: var(--charcoal);
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: 1.02;
}

h3 {
  color: var(--charcoal);
  font-size: 1.08rem;
  line-height: 1.25;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.hero-copy p {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.4vw, 1.23rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: var(--radius);
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: var(--red);
  color: var(--white);
}

.btn.primary:hover {
  background: var(--red-dark);
}

.btn.secondary {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.metrics {
  position: relative;
  z-index: 2;
  margin-top: -1px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-inline: 1px solid var(--line);
}

.metric {
  min-height: 132px;
  padding: 26px 22px;
  background: var(--white);
}

.metric strong {
  display: block;
  color: var(--red);
  font-family: "Sora", "Inter", Arial, sans-serif;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 10px;
  color: var(--charcoal);
  font-weight: 800;
  line-height: 1.35;
}

.office-strip {
  background: var(--charcoal);
  color: var(--white);
}

.offices {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px 0;
}

.offices > span {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.office-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.office-flags span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.86rem;
  font-weight: 800;
}

.office-flags img {
  width: 24px;
  height: 16px;
  border-radius: 2px;
  object-fit: cover;
}

.oem-rail {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.oem-inner {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 24px;
  align-items: center;
}

.oem-inner > span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.oem-logos {
  display: grid;
  grid-template-columns: repeat(6, minmax(82px, 1fr));
  gap: 12px;
  align-items: center;
}

.oem-logos img {
  width: 100%;
  height: 54px;
  object-fit: contain;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  filter: grayscale(0.15);
  transition: filter 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.oem-logos img:hover {
  border-color: rgba(223, 37, 40, 0.28);
  filter: grayscale(0);
  transform: translateY(-2px);
}

.spotlight {
  padding: clamp(74px, 9vw, 128px) 0;
  background: linear-gradient(180deg, var(--white), var(--paper));
}

.spotlight-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(34px, 6vw, 82px);
  align-items: center;
}

.spotlight-image {
  position: relative;
}

.spotlight-image::before {
  position: absolute;
  content: "";
  inset: 22px -16px -16px 22px;
  border: 2px solid var(--red);
  border-radius: var(--radius);
}

.spotlight-image img {
  position: relative;
  width: 100%;
  aspect-ratio: 0.78 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.spotlight-copy p {
  margin-top: 22px;
  max-width: 680px;
}

.spotlight-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.spotlight-list span {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--charcoal);
  font-weight: 800;
}

.spotlight-list svg {
  width: 22px;
  height: 22px;
  color: var(--red);
}

.intro,
.capabilities,
.portfolio,
.process,
.industries,
.quality,
.documents,
.contact {
  padding: clamp(74px, 9vw, 128px) 0;
}

.section-heading {
  max-width: 810px;
}

.section-heading h2 {
  margin-top: 14px;
}

.intro-grid,
.capability-grid,
.portfolio-grid {
  display: grid;
  gap: 18px;
  margin-top: 42px;
}

.intro-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature,
.capability,
.asset-card,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.feature,
.capability {
  padding: 28px;
}

.feature svg,
.capability svg {
  width: 34px;
  height: 34px;
  margin-bottom: 22px;
  color: var(--red);
}

.feature p,
.capability p {
  margin-top: 12px;
}

.capabilities,
.industries {
  background: var(--paper);
}

.capability-grid {
  grid-template-columns: repeat(3, 1fr);
}

.portfolio-grid {
  grid-template-columns: repeat(4, 1fr);
}

.asset-card {
  overflow: hidden;
  box-shadow: 0 16px 44px rgba(20, 20, 23, 0.08);
}

.asset-card img {
  width: 100%;
  aspect-ratio: 1.25 / 1;
  object-fit: cover;
  background: var(--paper);
}

.asset-card div {
  padding: 20px;
}

.asset-card p {
  margin-top: 10px;
  font-size: 0.94rem;
}

.asset-card,
.feature,
.capability,
.process-step {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.asset-card:hover,
.feature:hover,
.capability:hover,
.process-step:hover {
  transform: translateY(-4px);
  border-color: rgba(223, 37, 40, 0.28);
  box-shadow: 0 18px 48px rgba(20, 20, 23, 0.1);
}

.process {
  background: var(--charcoal);
  color: var(--white);
}

.process h2,
.process h3 {
  color: var(--white);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 42px;
}

.process-step {
  min-height: 260px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.process-step > span {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  margin-bottom: 34px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-weight: 900;
}

.process-step p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.68);
}

.industries-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.industry-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.industry-list span {
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--charcoal);
  font-weight: 800;
}

.quality-grid {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: clamp(34px, 6vw, 80px);
  align-items: center;
}

.quality-copy p {
  max-width: 650px;
  margin-top: 22px;
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--charcoal);
  font-weight: 700;
  line-height: 1.55;
}

.check-list svg {
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  margin-top: 2px;
  color: var(--steel);
}

.brand-board {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.brand-board img {
  width: 100%;
  border-radius: 4px;
}

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

.documents-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 16px 44px rgba(20, 20, 23, 0.06);
}

.document-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn.dark {
  background: var(--charcoal);
  color: var(--white);
}

.btn.light {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--charcoal);
}

.contact {
  background:
    linear-gradient(90deg, rgba(20, 20, 23, 0.92), rgba(20, 20, 23, 0.72)),
    url("images/cardinal-business-profile-final-cover.png") center / cover;
  color: var(--white);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  column-gap: clamp(26px, 6vw, 80px);
  row-gap: 18px;
  align-items: center;
}

.contact-copy {
  grid-row: auto;
}

.contact-panel {
  grid-column: 2;
}

.contact h2 {
  color: var(--white);
}

.contact p {
  max-width: 640px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.78);
}

.contact-panel {
  display: grid;
  gap: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.22);
}

.contact-panel a,
.contact-panel span {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-weight: 800;
}

.contact-panel svg {
  width: 21px;
  height: 21px;
  color: #ff6b6f;
}

.site-footer {
  position: relative;
  overflow: hidden;
  padding: 58px 0 24px;
  background:
    linear-gradient(135deg, rgba(223, 37, 40, 0.18), transparent 34%),
    var(--ink);
  color: var(--white);
}

.site-footer::before {
  position: absolute;
  content: "";
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), transparent 38%);
  pointer-events: none;
}

.footer-main,
.footer-bottom {
  position: relative;
  z-index: 1;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.35fr repeat(4, 1fr);
  gap: clamp(26px, 4vw, 54px);
  align-items: start;
}

.footer-brand img {
  width: min(300px, 100%);
  padding: 8px;
  border-radius: var(--radius);
  background: var(--white);
}

.footer-brand p {
  max-width: 360px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.66);
}

.footer-block h3 {
  margin: 0 0 16px;
  color: var(--white);
  font-family: "Sora", "Inter", Arial, sans-serif;
  font-size: 0.98rem;
}

.footer-block p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.94rem;
  line-height: 1.65;
}

.footer-block a,
.footer-line {
  display: flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin-top: 11px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.94rem;
  font-weight: 700;
  transition: color 180ms ease, transform 180ms ease;
}

.footer-block a:hover {
  color: var(--white);
  transform: translateX(3px);
}

.footer-block svg,
.footer-line svg {
  width: 18px;
  height: 18px;
  color: #ff6b6f;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.9rem;
}

.to-top {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  color: var(--white);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.to-top:hover {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero-inner,
  .intro-grid,
  .capability-grid,
  .portfolio-grid,
  .metrics-grid,
  .spotlight-grid,
  .process-grid,
  .industries-inner,
  .quality-grid,
  .contact-inner,
  .documents-inner {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding-top: 110px;
  }

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

  .oem-inner {
    grid-template-columns: 1fr;
  }

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

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

  .contact-panel {
    max-width: 560px;
  }

  .contact-copy,
  .contact-panel {
    grid-column: auto;
    grid-row: auto;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1080px) {
  .site-header {
    padding-inline: 18px;
  }

  .header-shell {
    grid-template-columns: minmax(170px, 1fr) auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: calc(var(--header-height) + 10px) 18px auto;
    z-index: 21;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: auto;
    gap: 8px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    min-height: 52px;
    padding: 14px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
  }

  .site-nav a:hover {
    background: var(--white);
  }

  .site-nav a::after {
    display: none;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 78px;
  }

  .site-header {
    padding-inline: 18px;
  }

  .brand img {
    width: min(220px, 62vw);
  }

  h1 {
    font-size: clamp(2.2rem, 11vw, 3.7rem);
    line-height: 1;
  }

  h2 {
    font-size: clamp(1.75rem, 8vw, 2.85rem);
  }

  .hero-inner {
    width: min(100% - 28px, 1160px);
    padding: 76px 0 38px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(20, 20, 23, 0.9), rgba(20, 20, 23, 0.62)),
      linear-gradient(0deg, rgba(20, 20, 23, 0.84), transparent 48%);
  }

  .btn {
    width: 100%;
  }

  .site-nav {
    inset-inline: 14px;
    grid-template-columns: 1fr;
    max-height: calc(100vh - var(--header-height) - 28px);
    overflow: auto;
    overscroll-behavior: contain;
  }

  .offices {
    align-items: flex-start;
    flex-direction: column;
  }

  .intro,
  .capabilities,
  .portfolio,
  .spotlight,
  .process,
  .industries,
  .quality,
  .documents,
  .contact {
    padding: 68px 0;
  }

  .metrics-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

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

  .metric {
    min-height: 108px;
  }

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

  .asset-card img {
    aspect-ratio: 1.55 / 1;
  }

  .contact-panel a,
  .contact-panel span,
  .footer-block a,
  .footer-line {
    width: 100%;
    overflow-wrap: anywhere;
  }

  .footer-brand img {
    width: min(270px, 100%);
  }

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

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .document-actions,
  .document-actions .btn {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .header-shell {
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 8px;
  }

  .brand img {
    width: min(190px, 58vw);
  }

  .nav-toggle {
    width: 42px;
    height: 42px;
  }

  .section-shell {
    width: min(100% - 28px, 1160px);
  }

  .metric {
    padding: 22px 18px;
  }

  .feature,
  .capability,
  .process-step {
    padding: 22px;
  }
}

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

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