:root {
  --red: #b2352f;
  --red-dark: #7f211e;
  --yellow: #ffdc55;
  --ink: #111111;
  --coal: #1c1c1c;
  --muted: #626262;
  --line: #ded8cd;
  --paper: #faf8f3;
  --white: #ffffff;
  --shadow: 0 18px 48px rgba(17, 17, 17, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 28px;
  min-height: 86px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(250, 248, 243, 0.94);
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  backdrop-filter: blur(14px);
}

.brand img {
  width: 148px;
  height: 58px;
  object-fit: contain;
  object-position: left center;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 24px);
  color: var(--coal);
  font-size: 0.94rem;
  font-weight: 700;
}

.main-nav a,
.main-nav button {
  position: relative;
  padding: 8px 0;
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.main-nav a::after,
.main-nav button::after {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background: var(--yellow);
  content: "";
  transition: width 180ms ease;
}

.main-nav a:hover::after,
.main-nav button:hover::after,
.nav-item:focus-within > button::after,
.nav-item:hover > button::after {
  width: 100%;
}

.nav-item {
  position: relative;
}

.has-submenu > button {
  padding-right: 16px;
}

.has-submenu > button::before {
  position: absolute;
  top: 50%;
  right: 0;
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: translateY(-65%) rotate(45deg);
}

.submenu {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  z-index: 30;
  display: grid;
  min-width: 220px;
  padding: 10px;
  visibility: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateX(-50%) translateY(6px);
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    visibility 160ms ease;
}

.submenu::before {
  position: absolute;
  top: -18px;
  left: 0;
  right: 0;
  height: 18px;
  content: "";
}

.submenu a {
  padding: 12px 14px;
  color: var(--coal);
  border-bottom: 1px solid rgba(222, 216, 205, 0.7);
  white-space: nowrap;
}

.submenu a:last-child {
  border-bottom: 0;
}

.submenu a:hover {
  color: var(--red);
  background: #fff6d7;
}

.nav-item:hover .submenu,
.nav-item:focus-within .submenu,
.nav-item.submenu-open .submenu {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.header-cta,
.button.primary {
  color: var(--white);
  background: var(--red);
  box-shadow: 0 10px 22px rgba(178, 53, 47, 0.26);
}

.button.secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  background: var(--ink);
  border: 0;
  cursor: pointer;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
}

.hero {
  position: relative;
  min-height: min(650px, calc(100vh - 120px));
  overflow: hidden;
  background: var(--ink);
}

.hero-video,
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-video {
  z-index: 1;
}

.hero-image {
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.58) 42%, rgba(0, 0, 0, 0.1) 78%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
}

.hero::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  height: 10px;
  background: var(--yellow);
  content: "";
}

.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(690px, calc(100% - 36px));
  min-height: min(650px, calc(100vh - 120px));
  margin-left: clamp(18px, 7vw, 96px);
  padding: 48px 0 70px;
  color: var(--white);
}

.eyebrow,
.section-kicker {
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 660px;
  margin: 18px 0 22px;
  font-size: clamp(2.75rem, 5.8vw, 5.15rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.75;
}

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

.quick-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.video-feature-section {
  padding-top: clamp(54px, 6vw, 86px);
  padding-bottom: clamp(54px, 6vw, 86px);
  background: var(--white);
}

.video-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.video-copy p {
  max-width: 560px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.video-copy .button {
  margin-top: 14px;
}

.video-frame {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border-top: 8px solid var(--yellow);
  box-shadow: var(--shadow);
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quick-strip div {
  min-height: 106px;
  padding: 26px clamp(18px, 3vw, 38px);
  border-right: 1px solid var(--line);
}

.quick-strip strong {
  display: block;
  margin-bottom: 8px;
  color: var(--red);
  font-size: 1.35rem;
}

.quick-strip span {
  color: var(--muted);
  line-height: 1.45;
}

.about-section {
  background: var(--paper);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(34px, 6vw, 86px);
  align-items: start;
}

.about-copy > p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.brand-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 30px;
}

.brand-pillars article {
  min-height: 150px;
  padding: 22px;
  background: var(--white);
  border-top: 6px solid var(--yellow);
  box-shadow: 0 12px 28px rgba(17, 17, 17, 0.05);
}

.brand-pillars strong {
  display: block;
  margin-bottom: 10px;
  color: var(--red);
  font-size: 1.02rem;
}

.brand-pillars span {
  color: var(--muted);
  line-height: 1.58;
}

.section {
  padding: clamp(72px, 8vw, 118px) clamp(18px, 5vw, 76px);
}

.split,
.section-heading,
.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(34px, 6vw, 86px);
  align-items: start;
}

h2 {
  margin: 12px 0 0;
  font-size: clamp(2rem, 4.2vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3,
p {
  margin-top: 0;
}

.intro-copy > p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.service-grid article,
.equipment-card,
.process-grid div {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(17, 17, 17, 0.05);
}

.service-grid article {
  min-height: 214px;
  padding: 24px;
}

.service-grid span,
.process-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 22px;
  color: var(--white);
  background: var(--red);
  font-weight: 900;
}

.service-grid h3,
.equipment-card h3,
.process-grid h3 {
  margin-bottom: 10px;
  font-size: 1.22rem;
}

.service-grid p,
.equipment-card p,
.process-grid p {
  color: var(--muted);
  line-height: 1.65;
}

.equipment-section {
  background: var(--coal);
  color: var(--white);
}

.equipment-section .section-kicker {
  color: var(--yellow);
}

.section-heading {
  grid-template-columns: 1fr auto;
  margin-bottom: 34px;
}

.mode-toggle {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  align-self: end;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.mode-toggle button {
  min-width: 104px;
  height: 44px;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.mode-toggle button.active {
  color: var(--ink);
  background: var(--yellow);
}

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.equipment-card {
  min-height: 350px;
  padding: 26px;
  color: var(--ink);
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 38px;
}

.machine-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  color: var(--yellow);
  background: var(--ink);
  font-weight: 900;
}

.availability {
  height: 28px;
  padding: 5px 10px;
  color: var(--red-dark);
  background: #ffe8a5;
  font-size: 0.78rem;
  font-weight: 900;
}

.equipment-card ul {
  display: grid;
  gap: 9px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.equipment-card li {
  color: var(--coal);
  font-size: 0.94rem;
}

.equipment-card li::before {
  margin-right: 9px;
  color: var(--red);
  content: "■";
  font-size: 0.65rem;
}

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

.process-section h2 {
  max-width: 900px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}

.process-grid div {
  min-height: 220px;
  padding: 28px;
}

.contact-section {
  background: var(--ink);
}

.contact-panel {
  padding: clamp(26px, 5vw, 54px);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(178, 53, 47, 0.24), rgba(255, 220, 85, 0.08)),
    #171717;
  border-top: 8px solid var(--yellow);
  box-shadow: var(--shadow);
}

.contact-panel p {
  max-width: 570px;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.75;
}

.contact-details {
  display: grid;
  gap: 10px;
  margin-top: 34px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
}

.contact-details a {
  color: var(--yellow);
}

.quote-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 24px;
  color: var(--ink);
  background: var(--white);
}

label {
  display: grid;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fbfaf7;
  border: 1px solid var(--line);
  font: inherit;
}

textarea {
  resize: vertical;
}

.full {
  grid-column: 1 / -1;
}

.form-note {
  grid-column: 1 / -1;
  min-height: 24px;
  margin: 0;
  color: var(--red-dark);
  font-size: 0.92rem;
  font-weight: 700;
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 28px clamp(18px, 5vw, 76px);
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.site-footer img {
  width: 108px;
  height: 44px;
  object-fit: contain;
  object-position: left center;
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer span {
  margin-top: 4px;
  color: var(--muted);
}

.site-footer a {
  color: var(--red);
  font-weight: 900;
}

@media (max-width: 1020px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .main-nav,
  .header-cta {
    display: none;
  }

  .menu-button {
    display: block;
    justify-self: end;
  }

  .site-header.nav-open .main-nav {
    position: absolute;
    top: 86px;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .site-header.nav-open .main-nav a,
  .site-header.nav-open .main-nav button {
    padding: 17px 24px;
    border-top: 1px solid var(--line);
    text-align: left;
  }

  .site-header.nav-open .nav-item {
    display: grid;
  }

  .site-header.nav-open .submenu {
    position: static;
    display: none;
    min-width: 0;
    padding: 0 0 0 18px;
    visibility: visible;
    background: #fffdf7;
    border: 0;
    border-top: 1px solid var(--line);
    box-shadow: none;
    opacity: 1;
    transform: none;
  }

  .site-header.nav-open .submenu::before {
    display: none;
  }

  .site-header.nav-open .submenu a {
    padding: 13px 24px;
    border-top: 0;
  }

  .site-header.nav-open .nav-item.submenu-open .submenu {
    display: grid;
  }

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

  .split,
  .contact-panel,
  .section-heading,
  .video-feature,
  .about-layout {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .process-grid,
  .brand-pillars {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 74px;
  }

  .brand img {
    width: 116px;
    height: 48px;
  }

  .site-header.nav-open .main-nav {
    top: 74px;
  }

  .hero,
  .hero-content {
    min-height: calc(100vh - 130px);
  }

  .hero-content {
    width: calc(100% - 36px);
    margin: 0 auto;
    justify-content: flex-end;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 16vw, 4.2rem);
  }

  .quick-strip,
  .equipment-grid,
  .quote-form,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .quick-strip div {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .equipment-card {
    min-height: auto;
  }

  .video-frame {
    min-height: 210px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video,
  .video-frame video {
    display: none;
  }
}
