:root {
  color-scheme: light;
  --ink: #121820;
  --muted: #5f6975;
  --line: #dfe4e8;
  --panel: #ffffff;
  --soft: #f4f7f8;
  --steel: #24323f;
  --teal: #096a6f;
  --teal-dark: #054c51;
  --amber: #c98224;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(19, 31, 42, 0.12);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

img,
svg {
  display: block;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.skip-link,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  width: auto;
  height: auto;
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  clip: auto;
  padding: 0.65rem 0.9rem;
  color: var(--white);
  background: var(--teal-dark);
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: min(calc(100% - 2rem), var(--max));
  margin: 0.85rem auto 0;
  padding: 0.65rem 0.75rem;
  color: var(--white);
  background: rgba(13, 20, 28, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  backdrop-filter: blur(14px);
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border-color: var(--line);
  box-shadow: 0 12px 28px rgba(18, 24, 32, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  font-size: 0.98rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 auto;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal), var(--amber));
  border-radius: 8px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand small {
  color: currentColor;
  opacity: 0.72;
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.92rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.13);
  outline: 0;
}

.site-header.is-scrolled .site-nav a:hover,
.site-header.is-scrolled .site-nav a:focus-visible {
  background: var(--soft);
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  color: currentColor;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 6px;
}

.hero {
  position: relative;
  min-height: min(820px, 88svh);
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  background: url("../img/mechanical-consulting-hero.png") center / cover no-repeat;
  transform: scale(1.02);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(5, 12, 18, 0.92), rgba(5, 12, 18, 0.67) 42%, rgba(5, 12, 18, 0.25) 74%),
    linear-gradient(180deg, rgba(5, 12, 18, 0.28), rgba(5, 12, 18, 0.58));
}

.hero-content {
  position: relative;
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  padding: 8rem 0 4.75rem;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: #8ee2df;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--teal);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 770px;
  font-size: clamp(2.65rem, 7vw, 5.8rem);
}

h2 {
  max-width: 780px;
  font-size: clamp(2rem, 4vw, 3.45rem);
}

h3 {
  font-size: 1.08rem;
}

.hero-copy {
  max-width: 660px;
  margin: 1.35rem 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.9rem;
  padding: 0.78rem 1rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  line-height: 1.1;
  cursor: pointer;
}

.button-primary {
  color: var(--white);
  background: var(--teal);
  box-shadow: 0 16px 32px rgba(0, 58, 62, 0.28);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--teal-dark);
}

.button-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.1);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}

.band {
  background: var(--steel);
  color: var(--white);
}

.section,
.intro {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.section-inner {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.intro-grid,
.split-grid,
.contact-grid,
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.intro p:not(.eyebrow),
.split-grid p,
.contact-grid p {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.intro p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.76);
  margin-top: 0.25rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

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

.service-card {
  min-height: 260px;
  padding: 1.45rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(18, 24, 32, 0.04);
}

.service-card svg {
  width: 2.2rem;
  height: 2.2rem;
  margin-bottom: 1.4rem;
  color: var(--teal);
}

.service-card p,
.process-list p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

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

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-list article {
  min-height: 260px;
  padding: 1.5rem;
  border-right: 1px solid var(--line);
}

.process-list article:last-child {
  border-right: 0;
}

.process-list span {
  display: inline-block;
  margin-bottom: 2.6rem;
  color: var(--amber);
  font-weight: 900;
}

.industry-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.industry-list li {
  position: relative;
  padding: 0.85rem 0.85rem 0.85rem 2.4rem;
  background: var(--soft);
  border-left: 3px solid var(--amber);
  border-radius: 6px;
  font-weight: 750;
}

.industry-list li::before {
  content: "";
  position: absolute;
  left: 0.95rem;
  top: 1.2rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--teal);
  border-radius: 50%;
}

.contact-section {
  background: linear-gradient(180deg, #ffffff 0%, #f4f7f8 100%);
}

.contact-methods {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.contact-methods a {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--teal-dark);
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 0.9rem;
  padding: 1.2rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
  color: var(--steel);
  font-weight: 800;
  font-size: 0.92rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 2.8rem;
  padding: 0.75rem 0.85rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #cbd3d8;
  border-radius: 6px;
  outline: 0;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(9, 106, 111, 0.14);
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  padding: 1.4rem 0;
  color: rgba(255, 255, 255, 0.72);
  background: #101820;
}

.footer-grid {
  align-items: center;
}

.footer-grid p {
  margin: 0;
}

.footer-grid a {
  justify-self: end;
  color: var(--white);
  font-weight: 800;
}

@media (max-width: 900px) {
  .site-header {
    width: min(calc(100% - 1rem), var(--max));
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.45rem);
    display: none;
    grid-template-columns: 1fr;
    padding: 0.45rem;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    padding: 0.8rem;
  }

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

  .hero {
    min-height: min(760px, 84svh);
  }

  .hero-content {
    padding-top: 7.5rem;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(5, 12, 18, 0.9), rgba(5, 12, 18, 0.62)),
      linear-gradient(180deg, rgba(5, 12, 18, 0.15), rgba(5, 12, 18, 0.68));
  }

  .intro-grid,
  .split-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-list article:nth-child(2) {
    border-right: 0;
  }

  .process-list article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .footer-grid a {
    justify-self: start;
  }
}

@media (max-width: 600px) {
  .brand {
    gap: 0.55rem;
  }

  .brand-mark {
    width: 2.15rem;
    height: 2.15rem;
  }

  .hero {
    min-height: 82svh;
  }

  .hero-media {
    background-position: 58% center;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .section-heading {
    display: block;
  }

  .service-grid,
  .process-list,
  .industry-list {
    grid-template-columns: 1fr;
  }

  .service-card,
  .process-list article {
    min-height: auto;
  }

  .process-list article,
  .process-list article:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .process-list article:last-child {
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
