:root {
  --ink: #18242b;
  --ink-soft: #34434a;
  --paper: #f6f3ed;
  --white: #ffffff;
  --orange: #f47721;
  --orange-deep: #cc5711;
  --teal: #0c6f70;
  --line: #d9d4ca;
  --display: "Space Grotesk", "Trebuchet MS", sans-serif;
  --body: "DM Sans", "Trebuchet MS", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
}

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

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

.container {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 10px 14px;
  color: var(--white);
  background: var(--ink);
}

.skip-link:focus {
  top: 16px;
}

.topbar {
  color: #cbd4d2;
  background: var(--ink);
  font-size: 12px;
  letter-spacing: .03em;
}

.topbar-inner,
.topbar-links {
  display: flex;
  align-items: center;
}

.topbar-inner {
  justify-content: space-between;
  min-height: 38px;
  gap: 24px;
}

.topbar-links {
  gap: 20px;
  white-space: nowrap;
}

.topbar a:hover,
.topbar a:focus-visible {
  color: var(--white);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
  gap: 28px;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 600;
}

.nav-links a,
.nav-call {
  transition: color .2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--orange-deep);
}

.nav-call {
  padding: 11px 16px;
  color: var(--white);
  background: var(--orange);
  font-size: 13px;
  font-weight: 700;
}

.nav-call:hover,
.nav-call:focus-visible,
.button-primary:hover,
.button-primary:focus-visible {
  background: var(--orange-deep);
}

.hero {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  color: var(--white);
  background: url("assets/slider.jpg") center / cover no-repeat;
}

.page-hero {
  min-height: 390px;
  background-position: center 58%;
}

.page-hero h1 {
  max-width: 760px;
}

.about-page-hero {
  background-image: url("assets/corporate.jpg");
}

.service-page-hero {
  background-position: center;
}

.hero-overlay,
.support-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 29, 36, .72);
}

.hero-content,
.support-content {
  position: relative;
  z-index: 1;
}

.hero-content {
  padding: 72px 0;
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 18px;
  color: #d8e2dd;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow-orange {
  color: var(--orange-deep);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 680px;
  font-size: clamp(42px, 6vw, 78px);
}

h2 {
  font-size: clamp(34px, 4vw, 56px);
}

h3 {
  font-size: 24px;
}

.hero-copy {
  max-width: 590px;
  margin: 28px 0 30px;
  color: #e4ebe8;
  font-size: 18px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 19px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  transition: background .2s ease, color .2s ease;
}

.button-primary {
  color: var(--white);
  background: var(--orange);
}

.button-light {
  color: var(--ink);
  background: var(--white);
}

.button-light:hover,
.button-light:focus-visible {
  color: var(--white);
  background: var(--teal);
}

.hero-note {
  margin-top: 38px;
  color: #b6c5c1;
  font-size: 13px;
}

.section {
  padding: 104px 0;
}

.intro-grid,
.trust-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 80px;
  align-items: start;
}

.section-heading h2 {
  max-width: 490px;
}

.intro-copy {
  max-width: 580px;
  color: var(--ink-soft);
  font-size: 17px;
}

.intro-copy p:first-child,
.trust-copy p:first-of-type {
  margin-top: 0;
}

.text-link,
.service-card a {
  display: inline-block;
  margin-top: 12px;
  color: var(--orange-deep);
  font-weight: 700;
}

.text-link:hover,
.text-link:focus-visible,
.service-card a:hover,
.service-card a:focus-visible {
  color: var(--teal);
}

.section-dark {
  color: var(--white);
  background: var(--ink);
}

.section-heading-wide {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
  gap: 64px;
  align-items: center;
  margin-bottom: 58px;
}

.section-heading-wide > p:last-child {
  margin: 0;
  max-width: 430px;
  justify-self: end;
  color: #bdc9c7;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #425057;
}

.service-card {
  min-height: 310px;
  padding: 34px 30px;
  background: var(--ink);
}

.service-card-accent {
  background: var(--orange);
}

.service-card-accent a,
.service-card-accent .service-number {
  color: var(--ink);
}

.service-number {
  display: block;
  margin-bottom: 44px;
  color: var(--orange);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
}

.service-card p {
  margin: 18px 0 0;
  color: #bdc9c7;
}

.service-card-accent p {
  color: #3a2520;
}

.service-detail-links {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid #425057;
}

.service-detail-links a {
  padding: 18px 14px 0 0;
  color: #d5dfdc;
  font-size: 13px;
  font-weight: 700;
}

.service-detail-links a span {
  margin-left: 5px;
  color: var(--orange);
}

.service-detail-links a:hover,
.service-detail-links a:focus-visible {
  color: var(--orange);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.product-card {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  padding: 30px;
  background: var(--white);
}

.product-card img {
  width: 100%;
  height: 150px;
  margin: -30px -30px 26px;
  width: calc(100% + 60px);
  object-fit: cover;
}

.product-card h3 {
  font-size: 22px;
}

.product-card p {
  margin: 14px 0 18px;
  color: var(--ink-soft);
}

.product-card a {
  margin-top: auto;
  color: var(--orange-deep);
  font-weight: 700;
}

.product-card a:hover,
.product-card a:focus-visible {
  color: var(--teal);
}

.trust {
  background: var(--white);
}

.trust-image img {
  width: 100%;
  height: 430px;
  object-fit: cover;
}

.trust-copy {
  padding-top: 22px;
}

.trust-copy h2 {
  max-width: 590px;
  margin-bottom: 28px;
}

.trust-copy p {
  max-width: 590px;
  color: var(--ink-soft);
}

.support {
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: center;
  color: var(--white);
  background: url("assets/cta-bg.jpg") center 42% / cover no-repeat;
}

.support-content {
  max-width: 700px;
  padding: 76px 0;
}

.support-content h2 {
  max-width: 660px;
}

.support-content p:not(.eyebrow) {
  max-width: 590px;
  margin: 24px 0 28px;
  color: #e0e8e5;
}

.support-content a:not(.button) {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.page-content {
  background: var(--white);
}

.page-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: 80px;
  align-items: start;
}

.page-copy {
  max-width: 680px;
  color: var(--ink-soft);
  font-size: 17px;
}

.page-copy p:first-child {
  margin-top: 0;
}

.page-copy strong {
  color: var(--ink);
}

.page-image img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
}

.page-cta {
  margin-top: 42px;
  padding: 30px;
  color: var(--white);
  background: var(--ink);
}

.page-cta p {
  margin: 0 0 18px;
  color: #d5dfdc;
}

.page-cta .button {
  width: fit-content;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 80px;
  align-items: start;
}

.contact-details h2 {
  margin-bottom: 28px;
}

.contact-details > p {
  max-width: 500px;
  color: var(--ink-soft);
}

.contact-list {
  display: grid;
  gap: 22px;
  margin: 36px 0 0;
}

.contact-list div {
  padding-left: 18px;
  border-left: 3px solid var(--orange);
}

.contact-list dt {
  color: var(--orange-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.contact-list dd {
  margin: 5px 0 0;
  color: var(--ink-soft);
}

.contact-list a {
  color: var(--ink);
  font-weight: 700;
}

.contact-list a:hover,
.contact-list a:focus-visible {
  color: var(--orange-deep);
}

.contact-panel {
  padding: 42px;
  color: var(--white);
  background: var(--ink);
}

.contact-panel h2 {
  margin-bottom: 20px;
}

.contact-panel p {
  margin: 0 0 26px;
  color: #d5dfdc;
}

.testimonials {
  background: #f0f1ef;
}

.testimonial-heading {
  margin-bottom: 44px;
}

.testimonial-rotator {
  position: relative;
  min-height: 250px;
}

.testimonial-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: center;
  gap: 42px;
  opacity: 0;
  transform: translateX(20px);
  animation: testimonial-cycle 10s infinite;
}

.testimonial-slide:nth-child(2) {
  animation-delay: 5s;
}

.testimonial-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.testimonial-slide blockquote {
  max-width: 820px;
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-family: var(--display);
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.32;
}

.testimonial-slide cite {
  color: var(--orange-deep);
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
}

@keyframes testimonial-cycle {
  0%, 45% {
    opacity: 1;
    transform: translateX(0);
  }

  50%, 100% {
    opacity: 0;
    transform: translateX(-20px);
  }
}

.partners {
  padding: 58px 0;
  color: var(--white);
  background: linear-gradient(rgba(16, 26, 32, .82), rgba(16, 26, 32, .82)), url("assets/client-bg.png") center / cover no-repeat;
}

.partners-inner {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: center;
  gap: 36px;
}

.partners .eyebrow {
  margin: 0;
}

.partner-logos {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: center;
  gap: 22px;
}

.partner-logos img {
  width: 100%;
  max-height: 44px;
  object-fit: contain;
  filter: grayscale(1) brightness(0) invert(1);
  opacity: .86;
}

@media (prefers-reduced-motion: reduce) {
  .testimonial-slide {
    position: relative;
    inset: auto;
    display: none;
    animation: none;
    opacity: 1;
    transform: none;
  }

  .testimonial-slide:first-child {
    display: grid;
  }
}

.site-footer {
  color: #b9c5c2;
  background: #101a20;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr .8fr;
  gap: 64px;
  padding: 68px 0 54px;
}

.footer-logo {
  width: 114px;
  height: 72px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 14px;
}

.footer-grid p {
  max-width: 280px;
  margin: 0;
}

.footer-grid a {
  display: block;
  width: fit-content;
  margin-bottom: 8px;
  color: var(--white);
}

.footer-grid a:hover,
.footer-grid a:focus-visible,
.footer-bottom a:hover,
.footer-bottom a:focus-visible {
  color: var(--orange);
}

.footer-label {
  margin-bottom: 16px !important;
  color: var(--orange);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0 24px;
  border-top: 1px solid #344148;
  font-size: 12px;
}

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

@media (max-width: 900px) {
  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .topbar-links {
    flex-wrap: wrap;
    gap: 8px 16px;
  }

  .nav {
    flex-wrap: wrap;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 16px;
    margin: 0;
  }

  .intro-grid,
  .trust-grid,
  .page-content-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .section-heading-wide {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .section-heading-wide > p:last-child {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .partners-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .partner-logos {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 32px, 1120px);
  }

  .topbar-inner > span {
    max-width: 280px;
  }

  .nav-call {
    padding: 9px 11px;
    font-size: 12px;
  }

  .nav-links {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 2px;
    font-size: 13px;
  }

  .hero {
    min-height: 590px;
  }

  .hero-content {
    padding: 56px 0;
  }

  .hero-copy {
    font-size: 16px;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 72px 0;
  }

  .section-heading-wide {
    display: block;
    margin-bottom: 38px;
  }

  .section-heading-wide h2 {
    margin: 12px 0 18px;
  }

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

  .service-detail-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 20px;
    padding-top: 6px;
  }

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

  .service-card {
    min-height: 0;
  }

  .trust-image img {
    height: 300px;
  }

  .support-content {
    padding: 66px 0;
  }

  .page-hero {
    min-height: 430px;
  }

  .page-content-grid {
    gap: 42px;
  }

  .contact-panel {
    padding: 30px;
  }

  .page-cta .button {
    width: 100%;
  }

  .testimonial-rotator {
    min-height: 430px;
  }

  .testimonial-slide {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 24px;
  }

  .testimonial-logo {
    width: 84px;
    height: 84px;
  }

  .partner-logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 18px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 54px 0 40px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
  }
}