:root {
  --red: #e3000f;
  --green: #398f14;
  --steel: #4c656c;
  --ink: #151817;
  --muted: #687371;
  --line: #d9dfdc;
  --paper: #ffffff;
  --wash: #f3f6f2;
  --dark: #10201d;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Lato, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.55;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px clamp(18px, 4vw, 52px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(76, 101, 108, 0.16);
  backdrop-filter: blur(16px);
}

.brand img {
  width: clamp(150px, 19vw, 230px);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--steel);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-nav a {
  padding: 10px 13px;
}

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

.nav-cta {
  color: #fff !important;
  background: var(--red);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: #fff;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 6px auto;
  background: var(--steel);
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: var(--dark);
}

.hero picture,
.hero picture img,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero picture img {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(16, 32, 29, 0.88), rgba(16, 32, 29, 0.58) 42%, rgba(16, 32, 29, 0.08)),
    linear-gradient(0deg, rgba(16, 32, 29, 0.78), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 36px));
  margin: 0 auto;
  padding: 150px 0 190px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f4fff0;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(44px, 7.2vw, 86px);
  line-height: 0.96;
  font-weight: 900;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 4.2vw, 58px);
  line-height: 1.02;
  font-weight: 900;
}

h3 {
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 900;
}

.hero-content p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(20px, 2vw, 26px);
}

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

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border: 2px solid transparent;
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
}

.button.primary {
  color: #fff;
  background: var(--red);
}

.button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.76);
}

.hero-facts {
  position: absolute;
  z-index: 2;
  right: clamp(18px, 4vw, 52px);
  bottom: 28px;
  left: clamp(18px, 4vw, 52px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(16, 32, 29, 0.64);
  backdrop-filter: blur(12px);
}

.hero-facts div {
  padding: 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-facts div:last-child {
  border-right: 0;
}

.hero-facts strong,
.hero-facts span {
  display: block;
}

.hero-facts strong {
  font-size: 28px;
  font-weight: 900;
}

.hero-facts span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

section:not(.hero) {
  padding: clamp(76px, 10vw, 132px) clamp(18px, 4vw, 52px);
}

.section-grid,
.services,
.team,
.gallery,
.contact,
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: clamp(32px, 7vw, 92px);
}

.intro {
  border-bottom: 1px solid var(--line);
}

.intro-copy {
  color: var(--muted);
  font-size: 21px;
}

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

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

.service-card {
  min-height: 460px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: #fff;
}

.service-card.featured {
  grid-column: span 2;
}

.service-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.service-card div {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.service-card span {
  width: fit-content;
  margin-bottom: 22px;
  color: var(--red);
  font-size: 14px;
  font-weight: 900;
}

.service-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.machines {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(320px, 1.05fr);
  gap: 0;
  padding-left: 0 !important;
  padding-right: 0 !important;
  background: var(--wash);
}

.machine-media {
  min-height: 720px;
}

.machine-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.machine-content {
  align-self: center;
  max-width: 640px;
  padding: clamp(56px, 7vw, 96px);
}

.machine-content > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 20px;
}

.machine-list {
  display: grid;
  gap: 10px;
  margin-top: 32px;
}

.machine-item {
  width: 100%;
  padding: 18px 20px;
  border: 1px solid var(--line);
  color: var(--steel);
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.machine-item.active,
.machine-item:hover {
  border-color: var(--green);
  box-shadow: inset 5px 0 0 var(--green);
}

.machine-item strong,
.machine-item span {
  display: block;
}

.machine-item strong {
  color: var(--ink);
  font-size: 19px;
}

.machine-item span {
  margin-top: 4px;
  font-size: 15px;
}

.team {
  border-bottom: 1px solid var(--line);
}

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

.person-card {
  border: 1px solid var(--line);
  background: #fff;
}

.person-card img {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
}

.person-card h3,
.person-card p {
  padding-right: 22px;
  padding-left: 22px;
}

.person-card h3 {
  margin-top: 22px;
}

.person-card p {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 16px;
}

.history {
  align-items: start;
  background:
    linear-gradient(90deg, rgba(57, 143, 20, 0.09), transparent 38%),
    var(--paper);
}

.timeline {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line);
}

.timeline li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 24px;
  background: #fff;
}

.timeline strong {
  color: var(--red);
  font-size: 22px;
}

.timeline span {
  color: var(--muted);
}

.gallery {
  max-width: none;
  background: var(--dark);
  color: #fff;
}

.gallery .section-heading {
  max-width: var(--max);
  margin-right: auto;
  margin-left: auto;
}

.gallery-grid {
  display: grid;
  max-width: 1440px;
  margin: 0 auto;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.gallery-grid button {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: saturate(0.92);
  transition: transform 180ms ease, filter 180ms ease;
}

.gallery-grid button:hover img {
  transform: scale(0.985);
  filter: saturate(1.1);
}

.contact {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(320px, 1fr);
  gap: 32px;
  align-items: start;
}

.contact-panel {
  position: sticky;
  top: 112px;
  padding: 42px;
  color: #fff;
  background: var(--steel);
}

.contact-panel .eyebrow {
  color: #d9f5d1;
}

.contact-panel address {
  margin: 26px 0;
  font-style: normal;
}

.contact-links {
  display: grid;
  gap: 8px;
}

.contact-links a {
  width: fit-content;
  border-bottom: 1px solid rgba(255, 255, 255, 0.52);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  padding: 36px;
  border: 1px solid var(--line);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--steel);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

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

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #cbd3d0;
  padding: 14px;
  color: var(--ink);
  background: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(57, 143, 20, 0.28);
  border-color: var(--green);
}

.contact-form button {
  width: fit-content;
  border: 0;
  cursor: pointer;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 32px clamp(18px, 4vw, 52px) 42px;
  color: var(--muted);
  font-size: 15px;
}

.site-footer img {
  width: 160px;
}

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

.lightbox {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 32px;
  background: rgba(0, 0, 0, 0.82);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-height: 86vh;
  object-fit: contain;
}

.lightbox button {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  background: rgba(0, 0, 0, 0.24);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 1060px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card.featured {
    grid-column: span 1;
  }

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

@media (max-width: 860px) {
  body.nav-open {
    overflow: hidden;
  }

  .menu-button {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 78px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 15px;
    border-bottom: 1px solid var(--line);
  }

  .hero {
    min-height: 880px;
  }

  .hero-overlay {
    background: linear-gradient(0deg, rgba(16, 32, 29, 0.92), rgba(16, 32, 29, 0.32));
  }

  .hero-content {
    padding-top: 120px;
    padding-bottom: 270px;
  }

  .hero-facts {
    grid-template-columns: 1fr;
  }

  .hero-facts div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .hero-facts div:last-child {
    border-bottom: 0;
  }

  .section-grid,
  .machines,
  .contact {
    grid-template-columns: 1fr;
  }

  .machine-media {
    min-height: 420px;
  }

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

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

  .contact-panel {
    position: static;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .site-header {
    padding: 14px 18px;
  }

  .brand img {
    width: 150px;
  }

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

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

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

  .timeline li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .contact-panel,
  .contact-form {
    padding: 24px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
