:root {
  --ink: #15181d;
  --ink-2: #232a32;
  --steel: #56606b;
  --line: #d9dee4;
  --soft: #f4f6f7;
  --paper: #ffffff;
  --amber: #d84a3a;
  --amber-dark: #b63328;
  --blue: #1f5d8f;
  --green: #2e6f54;
  --shadow: 0 20px 55px rgba(9, 15, 22, 0.16);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(21, 24, 29, 0.1);
  box-shadow: 0 8px 28px rgba(21, 24, 29, 0.08);
  backdrop-filter: blur(14px);
}

.topline {
  background: var(--ink);
  color: #fff;
  font-size: 0.9rem;
}

.topline .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.45rem;
}

.topline a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.topline span {
  color: #d7dde5;
}

.mainnav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 94px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  min-width: 260px;
}

.brand-machine {
  flex: 0 0 auto;
  width: 64px;
  height: 58px;
  object-fit: contain;
}

.brand-wordmark {
  display: grid;
  gap: 0;
  padding-left: 0.68rem;
  border-left: 4px solid var(--amber);
  color: var(--ink);
  line-height: 0.9;
  text-transform: uppercase;
}

.brand-wordmark strong {
  display: block;
  font-size: 1.42rem;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-wordmark small {
  display: block;
  margin-top: 0.18rem;
  color: var(--steel);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.94rem;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.25rem 0.75rem;
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 3px solid transparent;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--amber-dark);
  border-bottom-color: var(--amber);
}

.mobile-menu {
  display: none;
}

.mobile-menu summary {
  cursor: pointer;
  padding: 0.6rem 0.85rem;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 800;
  list-style: none;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu nav {
  position: absolute;
  left: 16px;
  right: 16px;
  top: calc(100% + 1px);
  padding: 0.75rem;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.mobile-menu a {
  display: block;
  padding: 0.75rem 0.5rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  border-bottom: 1px solid var(--line);
}

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

.hero,
.page-hero {
  position: relative;
  isolation: isolate;
  color: #fff;
  background: var(--ink);
  overflow: hidden;
}

.hero {
  min-height: clamp(560px, 82svh, 850px);
  display: grid;
  align-items: center;
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(9, 12, 16, 0.9) 0%, rgba(9, 12, 16, 0.78) 38%, rgba(9, 12, 16, 0.35) 72%, rgba(9, 12, 16, 0.58) 100%),
    linear-gradient(0deg, rgba(9, 12, 16, 0.64), rgba(9, 12, 16, 0.08));
}

.hero-media,
.page-hero .hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
  padding: clamp(5rem, 9vw, 8rem) 0 clamp(4rem, 7vw, 6rem);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--amber);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero .lead,
.page-hero .lead {
  max-width: 690px;
  margin: 1.25rem 0 0;
  color: #edf2f6;
  font-size: clamp(1.05rem, 1.65vw, 1.35rem);
}

.hero-actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.05rem;
  color: var(--ink);
  background: var(--amber);
  border: 2px solid var(--amber);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 900;
  line-height: 1.1;
}

.button:hover {
  background: #ef6655;
  border-color: #ef6655;
}

.button.secondary {
  color: var(--ink);
  background: transparent;
  border-color: var(--ink);
}

.button.secondary:hover {
  color: #fff;
  background: var(--ink);
}

.hero .button.secondary,
.page-hero .button.secondary,
.cta-band .button.secondary,
.dark .button.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.72);
}

.hero .button.secondary:hover,
.page-hero .button.secondary:hover,
.cta-band .button.secondary:hover,
.dark .button.secondary:hover {
  color: var(--ink);
  background: #fff;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(100% - 32px, var(--max));
  margin: -58px auto 0;
  position: relative;
  z-index: 4;
  box-shadow: var(--shadow);
}

.stat {
  min-height: 116px;
  padding: 1.1rem;
  background: #fff;
  border-top: 5px solid var(--amber);
}

.stat strong {
  display: block;
  color: var(--ink);
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  line-height: 1.1;
}

.stat span {
  display: block;
  margin-top: 0.35rem;
  color: var(--steel);
  font-weight: 700;
}

.section {
  padding: clamp(3.75rem, 7vw, 6rem) 0;
}

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

.section.dark {
  color: #fff;
  background: var(--ink);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(310px, 0.75fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.split.reverse {
  grid-template-columns: minmax(310px, 0.75fr) minmax(0, 1.05fr);
}

.section h2,
.section h3,
.page-copy h2,
.page-copy h3 {
  margin: 0 0 1rem;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: 0;
}

.section h2,
.page-copy h2 {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
}

.section h3,
.page-copy h3 {
  font-size: clamp(1.35rem, 2vw, 1.9rem);
}

.dark h2,
.dark h3 {
  color: #fff;
}

.section p,
.page-copy p {
  margin: 0 0 1rem;
  color: var(--steel);
}

.dark p {
  color: #d7dde5;
}

.intro {
  max-width: 760px;
  margin-bottom: 2rem;
}

.media-frame {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: #d8dde3;
}

.media-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.media-frame.tall img {
  aspect-ratio: 3 / 4;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card,
.service-card,
.equipment-group,
.contact-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(9, 15, 22, 0.08);
}

.service-card {
  min-height: 198px;
  padding: 1.2rem;
}

.service-card h3 {
  margin-bottom: 0.65rem;
  font-size: 1.15rem;
}

.service-card p {
  margin-bottom: 0;
}

.feature-list,
.check-list,
.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.feature-list li,
.check-list li {
  position: relative;
  padding-left: 1.65rem;
  color: var(--ink-2);
  font-weight: 700;
}

.feature-list li::before,
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.64rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--amber);
}

.dark .feature-list li,
.dark .check-list li {
  color: #fff;
}

.plain-list {
  display: grid;
  gap: 0.45rem;
}

.plain-list li {
  padding-left: 1rem;
  border-left: 3px solid var(--amber);
  color: var(--ink-2);
}

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

.services-columns ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.services-columns li {
  padding: 0.62rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}

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

.equipment-group {
  padding: 1.2rem;
}

.equipment-group h3 {
  margin-bottom: 0.7rem;
  font-size: 1.2rem;
}

.equipment-group ul {
  margin: 0;
  padding-left: 1.1rem;
}

.equipment-group li {
  margin: 0.32rem 0;
  color: var(--steel);
}

.credential-band {
  background: var(--ink-2);
  color: #fff;
  padding: 1.5rem 0;
}

.credential-band ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.credential-band li {
  padding: 0.85rem;
  border-left: 4px solid var(--amber);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 800;
}

.cta-band {
  position: relative;
  padding: clamp(3rem, 7vw, 5rem) 0;
  color: #fff;
  background:
    linear-gradient(110deg, rgba(21, 24, 29, 0.95), rgba(31, 93, 143, 0.8)),
    var(--ink);
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  max-width: 700px;
  color: #e8eef4;
}

.page-hero {
  min-height: 380px;
  display: grid;
  align-items: end;
}

.page-hero .hero-content {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.page-hero h1 {
  font-size: clamp(2.35rem, 5vw, 4.7rem);
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 2rem;
  align-items: start;
}

.page-copy {
  min-width: 0;
}

.sidebar {
  position: sticky;
  top: 116px;
  display: grid;
  gap: 1rem;
}

.contact-panel {
  padding: 1.15rem;
}

.standard-card {
  padding: 1.35rem;
  color: #fff;
  background: linear-gradient(135deg, var(--ink), #26313d);
  border-left: 6px solid var(--amber);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(9, 15, 22, 0.18);
}

.standard-card span,
.standard-card small {
  display: block;
  color: #d7dde5;
  font-weight: 900;
  text-transform: uppercase;
}

.standard-card span {
  font-size: 0.82rem;
}

.standard-card strong {
  display: block;
  margin: 0.15rem 0;
  color: #fff;
  font-size: clamp(2.1rem, 4vw, 3.15rem);
  line-height: 1;
  letter-spacing: 0;
}

.standard-card small {
  color: var(--amber);
  font-size: 0.95rem;
}

.contact-panel h2,
.contact-panel h3 {
  margin-top: 0;
  font-size: 1.15rem;
}

.contact-panel a {
  color: var(--blue);
  font-weight: 900;
}

.contact-panel .button {
  color: var(--ink);
}

.contact-panel .button:hover {
  color: var(--ink);
}

.contact-list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list span {
  display: block;
  color: var(--steel);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.quote-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.quote-details .card {
  padding: 1rem;
}

.quote-details h3 {
  font-size: 1.05rem;
}

.site-footer {
  background: #101317;
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  padding: 3rem 0;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem;
  background: #fff;
  border-radius: 6px;
}

.footer-brand .brand-machine {
  width: 66px;
  height: 60px;
}

.footer-brand .brand-wordmark strong {
  font-size: 1.38rem;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.site-footer p,
.site-footer li {
  color: #cbd3dc;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}

.site-footer a:hover {
  color: var(--amber);
}

.copyright {
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #aeb7c2;
  font-size: 0.9rem;
}

@media (max-width: 1040px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .mainnav {
    min-height: 82px;
  }

  .page-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 780px) {
  .topline .wrap {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.2rem;
  }

  .hero {
    min-height: clamp(480px, 68svh, 600px);
  }

  .hero::before,
  .page-hero::before {
    background:
      linear-gradient(90deg, rgba(9, 12, 16, 0.93), rgba(9, 12, 16, 0.68)),
      linear-gradient(0deg, rgba(9, 12, 16, 0.7), rgba(9, 12, 16, 0.18));
  }

  .hero-stats,
  .service-grid,
  .feature-list,
  .services-columns,
  .equipment-grid,
  .quote-details,
  .footer-grid,
  .sidebar,
  .credential-band ul {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    width: min(100% - 24px, var(--max));
    margin-top: -40px;
    box-shadow: var(--shadow);
  }

  .split,
  .split.reverse {
    grid-template-columns: 1fr;
  }

  .split.reverse .media-frame {
    order: 2;
  }

  .section {
    padding-block: 3.25rem;
  }
}

@media (max-width: 500px) {
  .wrap,
  .hero-content {
    width: min(100% - 24px, var(--max));
  }

  .brand {
    min-width: 0;
  }

  .brand-machine {
    width: 50px;
    height: 46px;
  }

  .brand-wordmark strong {
    font-size: 1.02rem;
  }

  .brand-wordmark small {
    font-size: 0.5rem;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.1rem, 14vw, 3.4rem);
  }

  .button {
    width: 100%;
  }

  .mobile-menu nav {
    left: 12px;
    right: 12px;
  }
}

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