:root {
  --red: #ef152d;
  --red-dark: #c90f23;
  --navy: #171d54;
  --navy-deep: #080d22;
  --ink: #12152f;
  --muted: #5f6477;
  --line: #dfe2ea;
  --white: #fff;
  --surface: #f5f6f9;
  --container: 1180px;
  --header-height: 100px;
  --hero-logo-max-width: 440px;
  --hero-edge-space: 30px;
  --radius: 22px;
  --shadow: 0 18px 50px rgba(4, 8, 31, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 14px); }
body { margin: 0; color: var(--ink); background: var(--white); font-family: "Segoe UI", Arial, Helvetica, sans-serif; line-height: 1.6; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
:focus-visible { outline: 3px solid #ffbf00; outline-offset: 4px; }

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.narrow { max-width: 880px; }
.text-center { text-align: center; }
.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; }
.skip-link { position: fixed; z-index: 9999; left: 16px; top: 16px; transform: translateY(-160%); padding: 10px 16px; background: #fff; color: #000; border-radius: 8px; font-weight: 700; }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  z-index: 1000;
  inset: 0 0 auto;
  min-height: var(--header-height);
  color: #fff;
  background: transparent;
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  background: rgba(0, 0, 0, 0.94);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.primary-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  transition: color 0.2s ease;
}

.primary-nav a:hover,
.primary-nav a[aria-current="true"] {
  color: #ef152d;
}

.primary-nav > a::after {
  display: none;
}

.nav-separator {
  display: block;
  width: 2px;
  height: 25px;
  background: #ef152d;
}
.nav-cta { padding: 11px 18px; border: 1px solid rgba(255,255,255,.75); border-radius: 999px; }
.nav-cta:hover { background: #fff; color: var(--navy-deep); }
.menu-toggle { display: none; width: 46px; height: 46px; padding: 10px; border: 0; background: transparent; color: #fff; cursor: pointer; }
.menu-toggle span:not(.sr-only) { display: block; height: 2px; margin: 6px 0; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-of-type(2) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-of-type(3) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-of-type(4) { transform: translateY(-8px) rotate(-45deg); }

.hero {
  position: relative;
  display: block;
  overflow: hidden;
  color: #fff;
  background-image: url("../optimised-images/hero.jpg");
  background-image: image-set(
    url("../optimised-images/hero.webp") type("image/webp"),
    url("../optimised-images/hero.jpg") type("image/jpeg")
  );
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.72) 0%,
      rgba(0, 0, 0, 0.42) 48%,
      rgba(0, 0, 0, 0.08) 100%
    );
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--hero-edge-space);
  padding-top: 10px;
  padding-bottom: var(--hero-edge-space);
}

.hero-logo {
  display: block;
  width: clamp(320px, 32vw, var(--hero-logo-max-width));
  max-width: 100%;
  flex: 0 0 auto;
}

.hero-logo picture,
.hero-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-content {
  width: 100%;
  max-width: 720px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero h1 {
  width: 100%;
  max-width: 690px;
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(2rem, 4.2vw, 4.05rem);
  line-height: 0.92;
  font-weight: 900;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.34);
  text-wrap: balance;
}

.hero-lead {
  max-width: 650px;
  margin: 0 0 12px;
  color: #fff;
  font-size: 0.96rem;
  line-height: 1.45;
  font-weight: 600;
}

.hero-copy {
  max-width: 680px;
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.84rem;
  line-height: 1.5;
}

.hero-categories {
  margin: 20px 0 20px;
  color: #ef152d;
  font-size: 0.82rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero-categories span {
  margin-inline: 5px;
  color: #ef152d;
}

.hero .button-outline {
  min-height: 36px;
  padding: 7px 20px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  color: #fff;
  background: transparent;
  font-size: 0.68rem;
  text-transform: none;
  letter-spacing: 0;
}

.hero .button-outline:hover {
  background: #fff;
  color: #080d22;
}

.hero h1 { max-width: 900px; margin: 0 0 24px; font-size: clamp(2.6rem, 2.8vw, 5.8rem); line-height: .95; letter-spacing: -.03em; text-transform: uppercase; }
.hero-lead { max-width: 760px; margin: 0 0 12px; font-size: clamp(1rem, 1.6vw, 1.1rem); font-weight: 700; }
.hero-copy { max-width: 760px; margin: 0; color: rgba(255,255,255,.86);font-size: clamp(1rem, 1.6vw, 1.1rem); font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 11px 24px; border-radius: 999px; text-decoration: none; font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--red); color: #fff; border: 1px solid var(--red); }
.button-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.button-outline { color: #fff; border: 1px solid rgba(255,255,255,.85); }
.button-outline:hover { background: #fff; color: var(--navy-deep); }

.slogan { padding: 15px 20px 13px; background: var(--red); color: #fff; text-align: center; text-transform: uppercase; font-size: clamp(1.4rem, 3vw, 2.25rem); line-height: 1; font-weight: 900; }
.section-dark { background: linear-gradient(180deg, #242a68, #111633); }
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.benefit { min-height: 145px; display: grid; grid-template-columns: 62px 1fr; gap: 18px; align-items: center; padding: 34px 28px; color: #fff; border-right: 1px solid rgba(255,255,255,.12); }
.benefit:last-child { border-right: 0; }
.benefit picture { display: block; width: 56px; height: 56px; }
.benefit img { display: block; width: 100%; height: 100%; object-fit: contain; }
.benefit h2 { margin: 0 0 4px; color: var(--red); font-size: .9rem; line-height: 1.2; text-transform: uppercase; }
.benefit p { margin: 0; color: rgba(255,255,255,.82); font-size: .8rem; }

.section { padding: 96px 0; }
.section-light { background: #fff; }
.section-navy { color: #fff; background: radial-gradient(circle at 20% 0, #293073 0, var(--navy) 42%, var(--navy-deep) 100%); }
.section-heading { margin: 0 0 30px; font-size: clamp(1.9rem, 4vw, 3.2rem); line-height: 1.06; text-transform: uppercase; letter-spacing: -.02em; }
.section-heading-light, .section-kicker-light { color: #fff; }
.section-kicker-light { opacity: .82; }
.accent { color: var(--red); }
.narrow > p { color: var(--muted); }

.services-list { display: grid; gap: 26px; max-width: 1020px; margin: 48px auto 0; }
.service-card { min-height: 290px; display: grid; grid-template-columns: 47% 53%; overflow: hidden; border-radius: var(--radius); background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.service-image { position: relative; overflow: hidden; }
.service-image::after { content: ""; position: absolute; z-index: 1; right: -39px; top: -15%; width: 82px; height: 130%; background: #fff; transform: skewX(-14deg); }
.service-image picture { display: block; width: 100%; height: 100%; }
.service-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.service-card:hover .service-image img { transform: scale(1.035); }
.service-body { align-self: center; padding: 44px 58px 44px 46px; }
.service-body h3 { margin: 0 0 14px; color: var(--navy); font-size: 1.45rem; line-height: 1.08; text-transform: uppercase; }
.service-body p { margin: 0; color: #4f5569; font-size: .92rem; }
.service-body strong { display: block; margin-top: 12px; color: var(--red); font-style: italic; }

.reasons-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 54px 36px; max-width: 920px; margin: 50px auto 0; }
.reasons-grid article { text-align: center; }
.reasons-grid picture { display: block; width: 68px; height: 68px; margin: 0 auto 16px; }
.reasons-grid img { display: block; width: 100%; height: 100%; object-fit: contain; }
.reasons-grid h3 { max-width: 220px; margin: 0 auto; font-size: .9rem; line-height: 1.35; font-weight: 650; }

.projects { overflow: hidden; }
.carousel { overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: none; cursor: grab; }
.carousel::-webkit-scrollbar { display: none; }
.carousel.is-dragging { cursor: grabbing; user-select: none; }
.carousel-track { width: max-content; display: flex; gap: 8px; padding: 0 max(20px, calc((100vw - var(--container)) / 2)) 10px; }
.carousel-track picture { display: block; width: clamp(250px, 28vw, 430px); height: 300px; flex: 0 0 auto; }
.carousel-track img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }

.brands-carousel { min-width: 0; margin-top: 52px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: none; cursor: grab; }
.brands-carousel::-webkit-scrollbar { display: none; }
.brands-carousel.is-dragging { cursor: grabbing; user-select: none; }
.brands-track { width: max-content; display: flex; gap: 42px; align-items: center; }
.brands-track picture { display: block; width: 178px; height: 82px; flex: 0 0 auto; }
.brands-track img { display: block; width: 100%; height: 100%; object-fit: contain; }
.cta-section { color: #fff; background: linear-gradient(135deg, #161c55, #080d22); }
.cta-section p { color: rgba(255,255,255,.84); }

.site-footer { scroll-margin-top: var(--header-height); padding: 64px 0 24px; background: #02040b; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1.2fr .8fr .5fr; gap: 52px; }
.footer-brand picture { display: block; width: 180px; height: 96px; }
.footer-brand img { display: block; width: 100%; height: 100%; object-fit: contain; }
.footer-brand p { max-width: 300px; color: rgba(255,255,255,.64); font-size: .85rem; }
.site-footer h2 { margin: 0 0 18px; color: var(--red); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; }
.site-footer address, .footer-links { display: grid; gap: 10px; font-style: normal; }
.site-footer address a, .footer-links a { text-decoration: none; }
.site-footer address span, .site-footer address a, .footer-links a { color: rgba(255,255,255,.78); font-size: .84rem; }
.site-footer a:hover { color: #fff; }
.social-link img { width: 38px; height: 38px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 52px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.55); font-size: .74rem; }
.footer-bottom a { text-decoration: none; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .header-inner {
    justify-content: flex-end;
  }

  .menu-toggle {
    display: block;
    position: relative;
    z-index: 3;
  }

  .primary-nav {
    position: fixed;
    inset: var(--header-height) 0 auto;
    display: grid;
    gap: 0;
    padding: 14px 20px 24px;
    background: rgba(0, 0, 0, 0.97);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    transform: translateY(-130%);
    visibility: hidden;
    transition:
      transform 0.25s ease,
      visibility 0.25s ease;
  }

  .primary-nav.is-open {
    transform: translateY(0);
    visibility: visible;
  }

  .primary-nav a {
    padding: 15px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-separator {
    display: none;
  }

  .nav-cta { margin-top: 14px; text-align: center; }
  .benefits-grid { grid-template-columns: 1fr; }
  .benefit { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .benefit:last-child { border-bottom: 0; }
  .service-card { grid-template-columns: 1fr; }
  .service-image { height: 300px; }
  .service-image::after { display: none; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  :root { --header-height: 68px; }
  .container { width: min(calc(100% - 28px), var(--container)); }
  
  .hero { background-position: 62% center; }

  .hero-overlay {
    background: rgba(0, 0, 0, 0.65);
  }

  .hero-logo {
    width: min(82vw, 320px);
    max-width: calc(100% - 64px);
  }

  .hero-content {
    max-width: none;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(1.85rem, 8.5vw, 3rem);
    line-height: .96;
  }

  .hero-lead,
  .hero-copy {
    max-width: 100%;
  }

  .hero-categories {
    font-size: .74rem;
    line-height: 1.4;
  }

  .hero .button-outline {
    width: auto;
  }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .section { padding: 74px 0; }
  .service-image { height: 230px; }
  .service-body { padding: 30px 26px 34px; }
  .reasons-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 18px; }
  .carousel-track picture { width: 78vw; height: 250px; }
  .brands-track { gap: 28px; }
  .brands-track picture { width: 140px; height: 70px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
