/* =========================================================
   ARCSONS — MACHINERY & TECHNOLOGY
   Page-specific styles
========================================================= */


/* =========================================================
   VARIABLES
========================================================= */

:root {
  --mach-orange: #f0782e;
  --mach-orange-dark: #d95d19;
  --mach-dark: #101820;
  --mach-dark-2: #151f28;
  --mach-text: #18212a;
  --mach-muted: #69747d;
  --mach-light: #f5f6f7;
  --mach-border: #e2e6e9;
  --mach-white: #ffffff;
}


/* =========================================================
   HERO
========================================================= */

.machinery-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;

  /* SAME PADDING AS SERVICES PAGE */
  padding: clamp(76px, 10vw, 142px) 0 clamp(72px, 9vw, 120px);

  color: #fff;
  background: #101820;
}


.machinery-hero-image {
  position: absolute;
  inset: 0;
  z-index: -4;

  background-image:
    url("https://images.unsplash.com/photo-1580901368919-773e9c1c8c7a?auto=format&fit=crop&w=2200&q=88");

  background-size: cover;
  background-position: center 55%;

  transform: scale(1.02);
}


.machinery-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -3;

  background:
    linear-gradient(
      90deg,
      rgba(16, 24, 32, 0.98) 0%,
      rgba(16, 24, 32, 0.91) 35%,
      rgba(16, 24, 32, 0.67) 62%,
      rgba(16, 24, 32, 0.43) 100%
    );
}


.machinery-hero-grid {
  position: absolute;
  inset: 0;
  z-index: -2;

  opacity: 0.14;

  background-image:
    linear-gradient(
      rgba(255, 255, 255, 0.16) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.16) 1px,
      transparent 1px
    );

  background-size: 80px 80px;

  mask-image:
    linear-gradient(
      90deg,
      #000 0%,
      rgba(0, 0, 0, 0.65) 55%,
      transparent 100%
    );
}


.machinery-hero-inner {
  position: relative;

  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: center;
  gap: 60px;
}


.machinery-hero-content {
  max-width: 820px;
}


.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;

  margin-bottom: 24px;

  color: rgba(255, 255, 255, 0.72);

  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}


.eyebrow span {
  width: 34px;
  height: 2px;

  display: inline-block;

  background: var(--mach-orange);
}


.hero-kicker {
  margin: 0 0 13px;

  color: var(--mach-orange);

  font-family: "Manrope", sans-serif;
  font-size: clamp(13px, 1.3vw, 16px);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}


.machinery-hero h1 {
  margin: 0;

  max-width: 850px;

  font-family: "Manrope", sans-serif;
  font-size: clamp(48px, 7vw, 92px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.055em;
}


.machinery-hero h1 em {
  color: var(--mach-orange);
  font-style: normal;
}


.hero-description {
  max-width: 670px;

  margin: 30px 0 0;

  color: rgba(255, 255, 255, 0.75);

  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.75;
}


.hero-button {
  display: inline-flex;
  align-items: center;
  gap: 24px;

  margin-top: 36px;
  padding: 15px 20px 15px 22px;

  border: 1px solid rgba(255, 255, 255, 0.25);

  color: #fff;
  background: rgba(255, 255, 255, 0.06);

  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;

  backdrop-filter: blur(10px);

  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}


.hero-button span {
  color: var(--mach-orange);
  font-size: 18px;
}


.hero-button:hover {
  border-color: var(--mach-orange);
  background: var(--mach-orange);
  transform: translateY(-2px);
}


.hero-button:hover span {
  color: #fff;
}


.machinery-hero-side {
  align-self: stretch;

  display: flex;
  align-items: flex-end;
  justify-content: flex-end;

  padding-bottom: 10px;
}


.hero-side-line {
  width: 1px;
  height: 150px;

  margin-right: 22px;

  background:
    linear-gradient(
      to bottom,
      transparent,
      var(--mach-orange)
    );
}


.hero-side-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;

  max-width: 170px;
}


.hero-side-copy span {
  color: var(--mach-orange);

  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
}


.hero-side-copy strong {
  color: #fff;

  font-family: "Manrope", sans-serif;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.02em;
}


.hero-side-copy small {
  margin-top: 8px;

  color: rgba(255, 255, 255, 0.55);

  font-size: 12px;
  line-height: 1.55;
}


/* =========================================================
   INTRO
========================================================= */

.machinery-intro {
  padding: clamp(80px, 10vw, 135px) 0 50px;

  background: var(--mach-light);
}


.section-label {
  display: flex;
  align-items: center;
  gap: 12px;

  margin-bottom: 30px;

  color: var(--mach-orange);

  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.17em;
}


.section-label span {
  color: #929ba1;
}


.heading-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: 80px;
  align-items: end;
}


.heading-layout h2 {
  margin: 0;

  color: var(--mach-dark);

  font-family: "Manrope", sans-serif;
  font-size: clamp(34px, 4.7vw, 64px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.045em;
}


.heading-layout h2 span {
  color: var(--mach-orange);
}


.heading-layout p {
  margin: 0;

  color: var(--mach-muted);

  font-size: 16px;
  line-height: 1.8;
}


/* =========================================================
   EQUIPMENT INDEX
========================================================= */

.equipment-index {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));

  margin-top: 70px;

  border-top: 1px solid var(--mach-border);
  border-bottom: 1px solid var(--mach-border);
}


.equipment-index a {
  position: relative;

  min-height: 130px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  padding: 18px 18px 20px;

  border-right: 1px solid var(--mach-border);

  color: var(--mach-dark);

  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;

  text-decoration: none;

  transition:
    color 0.3s ease,
    background 0.3s ease;
}


.equipment-index a:first-child {
  border-left: 1px solid var(--mach-border);
}


.equipment-index a span {
  color: #9ba3a8;

  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  font-weight: 700;
}


.equipment-index a b {
  align-self: flex-end;

  color: var(--mach-orange);

  font-size: 17px;

  transition: transform 0.3s ease;
}


.equipment-index a:hover {
  color: #fff;
  background: var(--mach-dark);
}


.equipment-index a:hover span {
  color: rgba(255, 255, 255, 0.55);
}


.equipment-index a:hover b {
  transform: translate(3px, -3px);
}


/* =========================================================
   MACHINERY LIST
========================================================= */

.machinery-list {
  padding: 30px 0 0;

  background: var(--mach-light);
}


.equipment-group {
  padding: 100px 0;

  border-bottom: 1px solid var(--mach-border);
}


.equipment-group-header {
  display: grid;
  grid-template-columns: 75px minmax(280px, 1fr) minmax(250px, 420px);
  gap: 30px;
  align-items: start;

  margin-bottom: 55px;
}


.group-number {
  color: var(--mach-orange);

  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 800;
}


.equipment-group-header > div:nth-child(2) span {
  display: block;

  margin-bottom: 10px;

  color: #8a949a;

  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
}


.equipment-group-header h2 {
  margin: 0;

  color: var(--mach-dark);

  font-family: "Manrope", sans-serif;
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
}


.equipment-group-header > p {
  margin: 3px 0 0;

  color: var(--mach-muted);

  font-size: 15px;
  line-height: 1.75;
}


/* =========================================================
   EQUIPMENT GRID
========================================================= */

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}


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


.equipment-card {
  overflow: hidden;

  background: #fff;

  border: 1px solid var(--mach-border);

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}


.equipment-card:hover {
  border-color: rgba(240, 120, 46, 0.45);

  box-shadow:
    0 20px 55px rgba(16, 24, 32, 0.10);

  transform: translateY(-5px);
}


.equipment-image {
  position: relative;

  height: 330px;

  overflow: hidden;

  background: #dce1e4;
}


.equipment-grid-3 .equipment-image {
  height: 270px;
}


.equipment-image::after {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      to top,
      rgba(16, 24, 32, 0.54),
      transparent 50%
    );
}


.equipment-image img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;

  transition:
    transform 0.65s ease,
    filter 0.65s ease;
}


.equipment-card:hover .equipment-image img {
  transform: scale(1.055);

  filter: saturate(1.06);
}


.equipment-number {
  position: absolute;
  left: 20px;
  bottom: 18px;
  z-index: 2;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 39px;
  height: 39px;

  color: #fff;
  background: var(--mach-orange);

  font-size: 11px;
  font-weight: 800;
}


.equipment-card-content {
  padding: 27px 28px 30px;
}


.equipment-card-content > span {
  color: var(--mach-orange);

  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}


.equipment-card-content h3 {
  margin: 9px 0 12px;

  color: var(--mach-dark);

  font-family: "Manrope", sans-serif;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
}


.equipment-card-content p {
  margin: 0;

  color: var(--mach-muted);

  font-size: 14px;
  line-height: 1.75;
}


/* =========================================================
   EXECUTION STATEMENT
========================================================= */

.execution-section {
  position: relative;

  overflow: hidden;

  padding: clamp(90px, 12vw, 170px) 0;

  color: #fff;
  background: var(--mach-dark);
}


.execution-background {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(16, 24, 32, 0.98),
      rgba(16, 24, 32, 0.86)
    ),
    url("https://images.unsplash.com/photo-1504917595217-d4dc5ebe6122?auto=format&fit=crop&w=2200&q=85");

  background-size: cover;
  background-position: center;
}


.execution-section::after {
  content: "";

  position: absolute;
  right: -120px;
  top: 50%;

  width: 450px;
  height: 450px;

  border: 1px solid rgba(240, 120, 46, 0.22);
  border-radius: 50%;

  transform: translateY(-50%);
}


.execution-content {
  position: relative;
  z-index: 2;
}


.execution-label {
  margin-bottom: 25px;

  color: var(--mach-orange);

  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.17em;
}


.execution-content h2 {
  margin: 0;

  font-family: "Manrope", sans-serif;
  font-size: clamp(42px, 6vw, 78px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.05em;
}


.execution-content p {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;

  margin: 35px 0 0;

  color: rgba(255, 255, 255, 0.67);

  font-size: 15px;
  line-height: 1.7;
}


.execution-content p span {
  color: var(--mach-orange);
}


/* =========================================================
   CTA
========================================================= */

.machinery-cta {
  padding: 35px 0 100px;

  background: var(--mach-dark);
}


.machinery-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;

  padding: 55px 60px;

  border: 1px solid rgba(255, 255, 255, 0.11);

  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.045),
      rgba(255, 255, 255, 0.015)
    );
}


.machinery-cta-inner > div > span {
  display: block;

  margin-bottom: 12px;

  color: var(--mach-orange);

  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.17em;
}


.machinery-cta-inner h2 {
  margin: 0;

  color: #fff;

  font-family: "Manrope", sans-serif;
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
}


.machinery-cta-inner h2 em {
  color: var(--mach-orange);
  font-style: normal;
}


.machinery-cta-button {
  flex-shrink: 0;

  display: inline-flex;
  align-items: center;
  gap: 28px;

  padding: 17px 21px;

  color: #fff;
  background: var(--mach-orange);

  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;

  transition:
    background 0.3s ease,
    transform 0.3s ease;
}


.machinery-cta-button span {
  font-size: 17px;
}


.machinery-cta-button:hover {
  background: var(--mach-orange-dark);
  transform: translateY(-2px);
}


/* =========================================================
   REVEAL ANIMATION
========================================================= */

.reveal {
  opacity: 0;

  transform: translateY(28px);

  transition:
    opacity 0.75s ease,
    transform 0.75s ease;
}


.reveal.is-visible {
  opacity: 1;

  transform: translateY(0);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

  .machinery-hero-inner {
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: 40px;
  }


  .heading-layout {
    grid-template-columns: 1fr 350px;
    gap: 50px;
  }


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


  .equipment-index a:nth-child(4) {
    border-right: 0;
  }


  .equipment-index a:nth-child(n + 5) {
    border-top: 1px solid var(--mach-border);
  }


  .equipment-group-header {
    grid-template-columns: 60px 1fr;
  }


  .equipment-group-header > p {
    grid-column: 2;
    max-width: 600px;
  }


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

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 900px) {

  .machinery-hero {
    padding:
      clamp(76px, 10vw, 110px)
      0
      clamp(72px, 9vw, 95px);
  }


  .machinery-hero-inner {
    display: block;
  }


  .machinery-hero-side {
    display: none;
  }


  .machinery-hero h1 {
    font-size: clamp(46px, 12vw, 72px);
  }


  .heading-layout {
    display: block;
  }


  .heading-layout p {
    max-width: 620px;

    margin-top: 28px;
  }


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


  .equipment-index a {
    min-height: 110px;
  }


  .equipment-index a:nth-child(4) {
    border-right: 1px solid var(--mach-border);
  }


  .equipment-index a:nth-child(even) {
    border-right: 0;
  }


  .equipment-index a:nth-child(n + 3) {
    border-top: 1px solid var(--mach-border);
  }


  .equipment-group {
    padding: 80px 0;
  }


  .equipment-grid,
  .equipment-grid-3 {
    grid-template-columns: 1fr;
  }


  .equipment-image,
  .equipment-grid-3 .equipment-image {
    height: 330px;
  }


  .machinery-cta-inner {
    align-items: flex-start;
    flex-direction: column;

    padding: 45px 35px;
  }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 600px) {

  .machinery-hero {
    padding:
      76px 0
      72px;
  }


  .machinery-hero h1 {
    font-size: clamp(43px, 14vw, 62px);
  }


  .hero-description {
    margin-top: 23px;

    font-size: 15px;
    line-height: 1.7;
  }


  .hero-button {
    margin-top: 29px;
  }


  .machinery-intro {
    padding:
      75px 0
      20px;
  }


  .section-label {
    margin-bottom: 22px;
  }


  .heading-layout h2 {
    font-size: 36px;
  }


  .heading-layout p {
    font-size: 14px;
  }


  .equipment-index {
    margin-top: 48px;
  }


  .equipment-index a {
    min-height: 105px;

    padding:
      15px
      14px
      17px;

    font-size: 12px;
  }


  .equipment-group {
    padding: 70px 0;
  }


  .equipment-group-header {
    display: block;

    margin-bottom: 38px;
  }


  .group-number {
    margin-bottom: 18px;
  }


  .equipment-group-header > p {
    margin-top: 22px;

    font-size: 14px;
  }


  .equipment-group-header h2 {
    font-size: 31px;
  }


  .equipment-image,
  .equipment-grid-3 .equipment-image {
    height: 250px;
  }


  .equipment-card-content {
    padding: 24px 22px 27px;
  }


  .equipment-card-content h3 {
    font-size: 21px;
  }


  .equipment-card-content p {
    font-size: 13px;
  }


  .execution-section {
    padding: 90px 0;
  }


  .execution-content h2 {
    font-size: 43px;
  }


  .execution-content p {
    display: block;

    font-size: 13px;
  }


  .execution-content p span {
    margin: 0 5px;
  }


  .machinery-cta {
    padding-bottom: 75px;
  }


  .machinery-cta-inner {
    padding: 38px 25px;
  }


  .machinery-cta-inner h2 {
    font-size: 34px;
  }


  .machinery-cta-button {
    width: 100%;
    justify-content: space-between;
  }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

  .reveal {
    opacity: 1;
    transform: none;

    transition: none;
  }


  .equipment-card,
  .equipment-image img,
  .hero-button,
  .machinery-cta-button {
    transition: none;
  }

}
