:root {
  color-scheme: dark;
  --black: #07090b;
  --panel: #111417;
  --red: #ed101f;
  --silver: #eef0f2;
  --muted: #c4c7ca;
  --line: #34383c;
  --shell: 1480px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  min-width: 280px;
  overflow-x: hidden;
  background: var(--black);
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3,
.coming-soon,
.hero-name,
.feature p,
.main-nav {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Black", sans-serif;
  font-weight: 400;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.shell {
  width: min(var(--shell), calc(100% - 80px));
  margin-inline: auto;
}

.visually-hidden {
  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: 100;
  top: -100px;
  left: 16px;
  padding: 10px 14px;
  background: #fff;
  color: #111;
}

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid #41272a;
  background: #080a0cf7;
}

.header-layout {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.brand-link,
.footer-logo {
  display: block;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand-link {
  width: clamp(270px, 27vw, 390px);
}

.main-nav {
  display: flex;
  align-items: stretch;
  gap: clamp(30px, 5vw, 78px);
  text-transform: uppercase;
  font-size: 20px;
  letter-spacing: .02em;
}

.main-nav a {
  display: flex;
  min-height: 48px;
  align-items: center;
  border-bottom: 3px solid transparent;
  text-decoration: none;
}

.main-nav a:first-child,
.main-nav a:hover {
  border-color: var(--red);
  color: #ff1a2a;
}

.messages:empty,
#system-message-container:empty {
  display: none;
}

.hero {
  position: relative;
  min-height: clamp(480px, 33.333vw, 650px);
  overflow: hidden;
  isolation: isolate;
  background: #05080a;
}

.hero-media {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: url("../images/nextire-truck-hero.jpg") center center / cover no-repeat;
}

.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, #020304b5 0%, #0304058c 28%, transparent 57%);
  pointer-events: none;
}

.hero-layout {
  display: flex;
  min-height: inherit;
  align-items: center;
  padding-block: 38px;
}

.hero-copy {
  width: min(560px, 40%);
  text-shadow: 0 3px 5px #000;
}

.hero-name {
  margin-bottom: 8px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(38px, 4vw, 68px);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -.07em;
  line-height: 1;
  white-space: nowrap;
}

.hero-name span {
  color: var(--silver);
}

.hero-name strong {
  color: var(--red);
}

.hero h1 {
  color: var(--silver);
  font-size: clamp(42px, 4.2vw, 72px);
  line-height: .98;
  text-transform: uppercase;
}

.hero h1 em {
  display: block;
  color: var(--red);
  font-style: normal;
}

.coming-soon {
  margin-top: 12px;
  color: var(--silver);
  font-size: clamp(30px, 3vw, 52px);
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-summary {
  position: relative;
  max-width: 540px;
  margin-top: 20px;
  padding-left: 42px;
  color: #fff;
  font-size: clamp(15px, 1.15vw, 20px);
  font-weight: 700;
}

.hero-summary::before {
  position: absolute;
  top: .65em;
  left: 0;
  width: 28px;
  height: 5px;
  background: var(--red);
  content: "";
}

.services {
  border-block: 1px solid #bfc1c4;
  background: linear-gradient(#fff, #f4f4f4);
  color: #101214;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-block: 26px;
}

.service-card {
  display: grid;
  min-width: 0;
  grid-template-columns: 48% 52%;
  align-items: center;
  gap: 12px;
  padding: 8px 22px;
  border-right: 1px solid #ced0d2;
}

.service-card:first-child {
  padding-left: 0;
}

.service-card:last-child {
  padding-right: 0;
  border-right: 0;
}

.service-card img {
  width: 100%;
  max-height: 145px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.service-card h3 {
  margin-bottom: 10px;
  font-size: clamp(23px, 1.65vw, 30px);
  line-height: .98;
  text-transform: uppercase;
}

.service-card h3 span {
  display: block;
  color: var(--red);
}

.service-card p {
  font-size: clamp(12px, .9vw, 15px);
  line-height: 1.35;
}

.about {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, #07090bf5 0%, #07090be8 45%, #07090b85 100%),
    url("../images/nextire-truck-hero.jpg") center 42% / cover no-repeat;
}

.about::after {
  position: absolute;
  inset: 0 0 0 auto;
  width: 26%;
  background: linear-gradient(130deg, transparent 0 38%, #e0001473 39% 47%, transparent 48% 57%, #e0001460 58% 67%, transparent 68%);
  content: "";
  pointer-events: none;
}

.about-layout {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 255px;
  grid-template-columns: minmax(340px, .9fr) minmax(520px, 1.15fr);
  align-items: center;
  gap: 60px;
  padding-block: 38px;
}

.eyebrow {
  margin-bottom: 5px;
  color: #ff1727;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .45em;
  text-transform: uppercase;
}

.about-copy h2 {
  margin-bottom: 12px;
  color: var(--silver);
  font-size: clamp(32px, 3vw, 48px);
  line-height: 1;
  text-transform: uppercase;
}

.about-copy h2 span {
  display: block;
  color: var(--red);
}

.about-copy > p:last-child {
  max-width: 580px;
  color: #f0f1f2;
  font-size: 15px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  text-align: center;
}

.feature {
  min-width: 0;
  padding: 10px 12px;
  border-left: 1px solid #a6a8aa;
}

.feature > span {
  display: grid;
  min-height: 48px;
  place-items: center;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -6px;
}

.feature p {
  margin-top: 8px;
  font-size: clamp(13px, 1.05vw, 18px);
  line-height: 1.15;
  text-transform: uppercase;
}

.site-footer {
  padding: 22px 0 12px;
  scroll-margin-top: 92px;
  background: radial-gradient(ellipse at 24% 0, #202326, #050607 65%);
}

.footer-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 42px;
}

.footer-logo {
  width: clamp(270px, 25vw, 370px);
}

.contact-list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(26px, 4vw, 58px);
}

.contact-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(17px, 1.35vw, 22px);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.contact-list a:hover {
  text-decoration: underline;
}

.contact-list span {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  font-size: 20px;
}

.copyright {
  margin-top: 12px;
  color: #aaaeb2;
  font-size: 10px;
}

.component-content,
.module-area {
  min-height: 240px;
  padding-block: 54px;
}

.component-content h1 {
  margin-bottom: 22px;
  font-size: clamp(34px, 4vw, 52px);
}

.component-content h2,
.component-content h3,
.component-content p,
.component-content ul,
.component-content ol {
  margin-bottom: 18px;
}

.component-content input,
.component-content select,
.component-content textarea {
  max-width: 100%;
  padding: 10px;
  border: 1px solid #8b9095;
  background: #fff;
  color: #111;
}

.button,
.component-content button,
.component-content .btn {
  display: inline-block;
  padding: 11px 18px;
  border: 1px solid #ff4350;
  background: #ca0918;
  color: #fff;
  text-decoration: none;
}

.button-outline {
  border-color: #777c82;
  background: #171a1d;
}

joomla-alert {
  display: block;
  margin-block: 14px;
  padding: 14px;
  border: 1px solid var(--line);
}

.error-page,
.offline-card {
  min-height: 100vh;
  padding-block: 60px;
}

.error-page > img,
.offline-card > img {
  width: min(480px, 100%);
  margin-bottom: 36px;
}

.error-page h1,
.offline-card h1 {
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 78px);
  text-transform: uppercase;
}

.error-page p,
.offline-card p {
  margin-bottom: 18px;
}

.offline-page {
  min-height: 100vh;
  background:
    linear-gradient(90deg, #050607ef, #0506078c),
    url("../images/nextire-truck-hero.jpg") center / cover fixed;
}

.offline-card {
  width: min(720px, calc(100% - 40px));
  margin-inline: auto;
}

@media (max-width: 1180px) {
  .shell {
    width: calc(100% - 48px);
  }

  .brand-link {
    width: 310px;
  }

  .main-nav {
    gap: 36px;
    font-size: 18px;
  }

  .hero-copy {
    width: 43%;
  }

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

  .service-card {
    min-height: 185px;
    padding: 18px 22px;
  }

  .service-card:nth-child(2) {
    border-right: 0;
  }

  .service-card:nth-child(-n + 2) {
    border-bottom: 1px solid #ced0d2;
  }

  .service-card:first-child {
    padding-left: 22px;
  }

  .service-card:last-child {
    padding-right: 22px;
  }

  .about-layout {
    grid-template-columns: .85fr 1.15fr;
    gap: 30px;
  }

  .feature {
    padding-inline: 7px;
  }

  .footer-logo {
    width: 300px;
  }
}

@media (max-width: 780px) {
  html {
    scroll-padding-top: 124px;
  }

  .shell {
    width: calc(100% - 32px);
  }

  .header-layout {
    min-height: 124px;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding-top: 7px;
  }

  .brand-link {
    width: min(310px, 82vw);
  }

  .main-nav {
    width: min(330px, 100%);
    justify-content: space-between;
    gap: 12px;
    font-size: 17px;
  }

  .main-nav a {
    min-height: 38px;
  }

  .hero {
    min-height: 0;
    padding-top: min(64vw, 315px);
  }

  .hero-media {
    bottom: auto;
    height: min(64vw, 315px);
    background-position: 76% center;
  }

  .hero::after {
    bottom: auto;
    height: min(64vw, 315px);
    background: linear-gradient(180deg, transparent 65%, #05080a 100%);
  }

  .hero-layout {
    display: block;
    padding: 18px 0 34px;
  }

  .hero-copy {
    width: 100%;
    text-shadow: none;
  }

  .hero-name {
    font-size: clamp(38px, 12vw, 54px);
  }

  .hero h1 {
    font-size: clamp(38px, 11vw, 52px);
  }

  .coming-soon {
    font-size: clamp(28px, 8vw, 37px);
    white-space: normal;
  }

  .hero-summary {
    max-width: 570px;
    margin-top: 20px;
    font-size: 15px;
  }

  .service-grid {
    padding-block: 16px;
  }

  .service-card {
    min-height: 295px;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 12px;
    padding: 16px;
  }

  .service-card:first-child,
  .service-card:last-child {
    padding-inline: 16px;
  }

  .service-card img {
    height: 135px;
    max-height: none;
  }

  .service-card h3 {
    font-size: clamp(25px, 7vw, 31px);
  }

  .service-card p {
    font-size: 14px;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-block: 38px;
  }

  .about-copy h2 {
    font-size: clamp(33px, 9vw, 43px);
  }

  .feature:first-child {
    border-left: 0;
  }

  .feature p {
    font-size: clamp(12px, 3.5vw, 15px);
  }

  .feature > span {
    min-height: 38px;
    font-size: 28px;
  }

  .footer-layout {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
  }

  .footer-logo {
    width: min(320px, 88vw);
  }

  .contact-list {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .contact-list a {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .site-footer {
    padding-top: 27px;
  }
}

@media (max-width: 420px) {
  .shell {
    width: calc(100% - 24px);
  }

  .service-card {
    min-height: 270px;
    padding-inline: 12px;
  }

  .service-card:first-child,
  .service-card:last-child {
    padding-inline: 12px;
  }

  .service-card img {
    height: 120px;
  }

  .feature {
    padding-inline: 3px;
  }

  .feature p {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
