:root {
  --black: #050505;
  --charcoal: #111111;
  --dark: #181818;
  --red: #d71920;
  --white: #ffffff;
  --muted: #c9c9c9;
  --light: #f5f5f5;
  --border: rgba(255, 255, 255, 0.12);
  --max: 1180px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--white);
  color: var(--black);
  line-height: 1.5;
}

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

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

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

/* Accessibility: skip link */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--red);
  color: var(--white);
  padding: 12px 18px;
  font-weight: 900;
  z-index: 100;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

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

  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Header */

.site-header {
  background: var(--black);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.brand-logo {
  width: clamp(190px, 24vw, 310px);
  height: auto;
  display: block;
}

.footer-logo {
  max-width: 260px;
  margin-bottom: 14px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-links {
  display: none;
  gap: 24px;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 700;
}

.nav-links a {
  padding: 6px 2px;
}

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

.nav-call {
  background: var(--red);
  color: var(--white);
  padding: 12px 18px;
  border-radius: 4px;
  font-weight: 900;
  white-space: nowrap;
}

/* Mobile menu toggle */

.menu-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  position: relative;
}

.menu-toggle {
  position: relative;
}

.menu-toggle span {
  background: var(--white);
}

.menu-toggle::before {
  position: absolute;
  top: 15px;
}

.menu-toggle::after {
  position: absolute;
  bottom: 15px;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--charcoal);
  border-bottom: 1px solid var(--border);
}

.mobile-menu.is-open {
  display: flex;
}

.mobile-menu a {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-weight: 700;
}

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

/* Hero */

.hero {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.82) 42%, rgba(0, 0, 0, 0.35) 100%),
    var(--dark) url("../images/hero/hero-truck.webp") center / cover no-repeat;
  color: var(--white);
  min-height: 720px;
  display: flex;
  align-items: center;
  padding: 88px 0;
}

@media (max-width: 760px) {
  .hero {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.68) 0%, rgba(0, 0, 0, 0.45) 40%, rgba(0, 0, 0, 0.72) 100%),
      var(--dark) url("../images/hero/hero-truck.webp") 28% 30% / cover no-repeat;
    min-height: 560px;
  }
}

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

.eyebrow {
  color: var(--red);
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 18px;
}

h1 {
  font-size: clamp(2.8rem, 8vw, 6.2rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero h1 span {
  color: var(--red);
  display: block;
}

.hero-text {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  max-width: 620px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn,
.nav-call,
.sticky-call {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transform: translateY(0);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 22px;
  border-radius: 4px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 2px solid transparent;
  cursor: pointer;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.34), 0 10px 22px rgba(0, 0, 0, 0.22);
}

.nav-call,
.sticky-call {
  box-shadow: 0 4px 0 #8d0d12, 0 8px 18px rgba(0, 0, 0, 0.28);
}

.btn:hover,
.nav-call:hover,
.sticky-call:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.btn:active,
.nav-call:active,
.sticky-call:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.34), 0 4px 10px rgba(0, 0, 0, 0.18);
}

.button-ripple {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.36);
  transform: translate(-50%, -50%) scale(0);
  animation: onpoint-ripple 620ms ease-out forwards;
}

@keyframes onpoint-ripple {
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
}

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

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.quick-points {
  display: grid;
  gap: 12px;
  margin-top: 38px;
  color: var(--muted);
  font-weight: 700;
}

.quick-points span::before {
  content: "•";
  color: var(--red);
  margin-right: 10px;
}

/* Sections */

section {
  padding: 78px 0;
}

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

.section-light {
  background: var(--light);
}

.section-head {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-label {
  color: var(--red);
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 12px;
}

h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.section-head p {
  color: #555;
  font-size: 1.08rem;
}

.section-dark .section-head p {
  color: var(--muted);
}

/* Services */

.services-grid {
  display: grid;
  gap: 18px;
}

.service-card {
  background: var(--white);
  border: 1px solid #e4e4e4;
  padding: 28px;
  border-radius: 6px;
  min-height: 180px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.service-card:hover {
  border-color: var(--red);
  transform: translateY(-3px);
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.service-card p {
  color: #555;
}

/* Why */

.why-grid {
  display: grid;
  gap: 20px;
}

.why-item {
  border-left: 4px solid var(--red);
  padding-left: 18px;
}

.why-item h3 {
  margin-bottom: 6px;
  text-transform: uppercase;
}

.why-item p {
  color: var(--muted);
}

/* Areas */

.area-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* Individual Box styling */
.area-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e4e4e4;
  padding: 20px 22px;
  border-radius: 6px;
  background: var(--white);
}

/* The First Line (Bigger, Bold, Uppercase) */
.area-title {
  color: var(--red);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.1rem;
  /* Increased size to make it bigger */
  letter-spacing: 0.06em;
  line-height: 1.3;
  margin-bottom: 8px;
  /* Adds a clean gap before line 2 */
}

/* The Next 2 Lines */
.area-description {
  color: #444;
  line-height: 1.55;
  font-weight: 400;
  margin: 0;
}

@media (min-width: 700px) {
  .area-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .area-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Recent work */

.work-card {
  background: var(--charcoal);
  border: 1px solid var(--border);
  padding: 28px;
  border-radius: 6px;
}

.work-card+.work-card {
  margin-top: 20px;
}

.work-card h3 {
  color: var(--white);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.work-card p {
  color: var(--muted);
}

/* FAQ */

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border: 1px solid #e4e4e4;
  border-radius: 6px;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 24px;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--red);
  font-size: 1.4rem;
  font-weight: 900;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item p {
  padding: 0 24px 22px;
  color: #555;
}

/* CTA */

.cta {
  background: var(--red);
  color: var(--white);
  text-align: center;
}

.cta h2 {
  margin-bottom: 16px;
}

.cta p {
  font-size: 1.15rem;
  margin-bottom: 28px;
}

.cta .btn {
  background: var(--black);
  color: var(--white);
}

/* Footer */

footer {
  background: var(--black);
  color: var(--muted);
  padding: 42px 0;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  gap: 22px;
}

footer strong {
  color: var(--white);
  display: block;
  margin-bottom: 8px;
}

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

.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: #888;
}

.sticky-call {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  background: var(--red);
  color: var(--white);
  padding: 16px;
  border-radius: 6px;
  text-align: center;
  font-weight: 900;
  z-index: 20;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

@media (min-width: 760px) {

  .menu-toggle,
  .mobile-menu {
    display: none;
  }

  .nav-links {
    display: flex;
  }

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

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

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

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

  .sticky-call {
    display: none;
  }
}

/* Hero contact note (item 9) */

.hero-contact-note {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
}

/* Recent-work "view full story" link */

.work-card-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--red);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.work-card-link:hover,
.work-card-link:focus-visible {
  text-decoration: underline;
}

.work-section-cta {
  margin-top: 26px;
  text-align: center;
}

/* Job story cards (job-stories.html) */

.job-grid {
  display: grid;
  gap: 20px;
}

.job-card {
  background: var(--charcoal);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.job-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.job-card-body {
  padding: 26px;
}

.job-card-body h3 {
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.job-card-location {
  color: var(--red);
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.job-card-field {
  margin-bottom: 14px;
}

.job-card-field:last-child {
  margin-bottom: 0;
}

.job-card-field strong {
  display: block;
  color: var(--white);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.job-card-field p {
  color: var(--muted);
}

/* Featured job rotator */

.job-rotator {
  position: relative;
  background: var(--charcoal);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 48px;
}

.job-rotator-track {
  position: relative;
  min-height: 320px;
}

.job-rotator-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.job-rotator-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}

.job-rotator-slide img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.job-rotator-slide-body {
  padding: 24px 26px 28px;
}

.job-rotator-label {
  color: var(--red);
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: 10px;
}

.job-rotator-slide h3 {
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.job-rotator-slide p {
  color: var(--muted);
}

.job-rotator-controls {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
  z-index: 5;
}

.job-rotator-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  padding: 0;
}

.job-rotator-dot.is-active {
  background: var(--red);
}

.job-rotator-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.55);
  color: var(--white);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  z-index: 5;
}

.job-rotator-arrow.prev {
  left: 16px;
}

.job-rotator-arrow.next {
  right: 16px;
}

@media (min-width: 760px) {
  .job-rotator-slide {
    grid-template-columns: 1.1fr 1fr;
  }

  .job-rotator-slide img {
    height: 100%;
  }

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

/* Contact page */

.contact-grid {
  display: grid;
  gap: 24px;
}

.contact-card {
  background: var(--white);
  border: 1px solid #e4e4e4;
  border-radius: 6px;
  padding: 28px;
}

.contact-card h3 {
  text-transform: uppercase;
  margin-bottom: 12px;
}

.contact-card p {
  color: #555;
  margin-bottom: 16px;
}

.contact-card .btn {
  margin-right: 10px;
  margin-bottom: 10px;
}

.contact-form {
  display: grid;
  gap: 16px;
  max-width: 640px;
}

.contact-form label {
  display: block;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d8d8d8;
  border-radius: 4px;
  font: inherit;
  background: var(--white);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form-note {
  font-size: 0.9rem;
  color: #666;
}

.contact-form .btn-primary {
  justify-self: start;
  border: none;
  cursor: pointer;
}

@media (min-width: 760px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Consistent footer layout */
.footer-grid {
  display: grid;
  gap: 32px;
  align-items: start;
}

.footer-brand,
.footer-column {
  min-width: 0;
}

.footer-column p,
.footer-brand p {
  margin: 0 0 8px;
}

.footer-column a {
  overflow-wrap: anywhere;
}

.footer-save {
  width: fit-content;
  margin-top: 12px;
  padding: 11px 15px;
  font-size: 0.78rem;
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 0.9fr);
    column-gap: 48px;
  }
}

/* Spinner Animation */
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  vertical-align: text-bottom;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  /* Match your text color */
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Optional styling to keep button neat when disabled */
.btn-primary:disabled {
  cursor: not-allowed;
  opacity: 0.8;
}

.form-instructions {
  font-size: 0.9rem;
  margin-bottom: 15px;
  color: #666;
}

.required-star {
  color: #d9534f;
  /* Subtle red color for attention */
  margin-left: 2px;
}

/* Contact form feedback and spam trap */
.form-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.form-status {
  min-height: 1.5em;
  margin-top: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.form-status.success {
  color: #177c3b;
}

.form-status.error {
  color: #b42318;
}
