:root {
  font-family: "Poppins", sans-serif;
  color: #2c2f39;
  background: #f7f8fa;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --blue: #113d72;
  --orange: #f26b21;
  --body: #2c2f39;
  --muted: #636b83;
  --border: #f1f5f9;
  --content-width: 1176px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(var(--content-width), calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
  border-block: 1px solid var(--border);
  transition: box-shadow 220ms ease;
}

.header-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: min-height 220ms ease;
}

.site-header.is-scrolled .header-inner {
  min-height: 78px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  flex: 0 0 auto;
  text-transform: uppercase;
}

.brand-name {
  color: var(--blue);
  font-size: 18px;
  font-weight: 700;
  line-height: 27px;
}

.brand-tagline {
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.96px;
  line-height: 18px;
}

.primary-navigation {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.primary-navigation a {
  padding: 6px 20px;
  border-radius: 120px;
  color: #a4a4a4;
  font-size: 14px;
  line-height: 21px;
  white-space: nowrap;
}

.primary-navigation a.current {
  color: #000;
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background-color: #20262c;
  background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.5) 52%, rgba(0, 0, 0, 0) 100%), url("/assets/home/hero/hero-machining.webp");
  background-position: center;
  background-size: cover;
}

.hero-inner {
  min-height: 692px;
  display: flex;
  justify-content: center;
  padding-block: 100px;
}

.hero-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.hero-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  width: min(697px, 100%);
}

.hero-copy h1 {
  width: min(786px, calc(100vw - 48px));
  margin: 0;
  font-size: 50px;
  font-weight: 500;
  line-height: 1.5;
}

.hero-copy p {
  width: min(620px, 100%);
  margin: 0;
  color: #d7d6d6;
  font-size: 16px;
  line-height: 1.8;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 40px;
  border: 0;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  text-align: center;
  white-space: nowrap;
}

.button-primary {
  color: #fff;
  background: var(--orange);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 48px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  white-space: nowrap;
}

.stat-value {
  font-size: 40px;
  font-weight: 300;
  line-height: 60px;
}

.stat-label {
  color: #d7d6d6;
  font-size: 16px;
  line-height: 21px;
}

.stat-divider {
  width: 1px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
}

.services {
  background: #f7f8fa;
}

.services-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  padding-block: 100px;
}

.services h2 {
  margin: 0;
  color: #0f0f0f;
  font-size: 40px;
  font-weight: 500;
  line-height: 60px;
  text-align: center;
}

.service-list {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 24px;
}

.service-card {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.service-icon {
  width: 48px;
  height: 48px;
  display: grid;
  flex: 0 0 48px;
  place-items: center;
  margin-bottom: 24px;
  border: 1px solid;
  border-radius: 8px;
}

.machining-icon {
  border-color: #ffedd5;
  background: #fff7ed;
}

.fabrication-icon {
  border-color: #e0f2fe;
  background: #f0f9ff;
}

.repair-icon {
  border-color: #ccfbf1;
  background: #f0fdfa;
}

.service-icon img {
  display: block;
}

.service-copy {
  width: 100%;
  margin-bottom: 24px;
}

.service-copy h3 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 20px;
  font-weight: 500;
  line-height: 30px;
}

.service-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.service-divider {
  width: 100%;
  height: 1px;
  margin-top: auto;
  margin-bottom: 24px;
  background: var(--border);
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--blue);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}

.service-link img {
  display: block;
  flex: 0 0 20px;
}

.site-footer {
  color: #fff;
  background: var(--blue);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 40px;
  padding-bottom: 28px;
}

.footer-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: #345a87;
}

.footer-cta-copy {
  flex: 1;
}

.footer-cta h2 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
}

.footer-cta p {
  margin: 0;
  color: #d6dee7;
  font-size: 14px;
  line-height: 24px;
}

.footer-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.footer-columns {
  display: grid;
  grid-template-columns: minmax(0, 417px) minmax(140px, 206px) minmax(260px, 325px);
  justify-content: space-between;
  gap: 32px;
}

.brand-footer .brand-name,
.brand-footer .brand-tagline {
  color: #fff;
}

.footer-about > p {
  margin: 24px 0 0;
  color: #cfd8e3;
  font-size: 14px;
  line-height: 1.8;
}

.footer-navigation,
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.footer-navigation h2,
.footer-contact h2 {
  margin: 0 0 8px;
  color: #ffd2dd;
  font-size: 16px;
  font-weight: 600;
  line-height: 21px;
  text-transform: uppercase;
}

.footer-nav-links,
.footer-nav-links > div {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-navigation a,
.contact-list,
.contact-list a,
.contact-list p {
  font-size: 14px;
  line-height: 1.8;
}

.footer-navigation a.current {
  color: #ffd2dd;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-list p,
.contact-list a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  color: #fff;
}

.contact-list p img,
.contact-list a img {
  flex: 0 0 16px;
  margin-top: 4px;
}

.contact-list span {
  min-width: 0;
}

.copyright {
  margin: -12px 0 0;
  color: #cfd8e3;
  font-size: 16px;
  line-height: 1.4;
  text-align: center;
}

@media (max-width: 900px) {
  .container {
    width: min(var(--content-width), calc(100% - 32px));
  }

  .header-inner {
    min-height: 93px;
  }

  .site-header.is-scrolled .header-inner {
    min-height: 76px;
  }

  .menu-toggle {
    width: 24px;
    height: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle span {
    width: 16px;
    height: 1.5px;
    background: #2c2f39;
  }

  .primary-navigation {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;

    display: flex;
    flex-direction: column;
    align-items: stretch;

    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-4px);
    pointer-events: none;

    padding: 0 16px;
    border-bottom: 1px solid transparent;
    background: #fff;

    transition:
      max-height 420ms cubic-bezier(0.22, 1, 0.36, 1),
      opacity 220ms ease,
      transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
      padding 420ms cubic-bezier(0.22, 1, 0.36, 1),
      border-color 300ms ease;
  }

  .primary-navigation.is-open {
    max-height: 400px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;

    padding: 8px 16px 16px;
    border-bottom-color: var(--border);
  }

  .primary-navigation a {
    padding: 10px 0;
    border-radius: 0;
  }

  .service-list {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 0;
  }

  .footer-columns {
    grid-template-columns: 1fr 1fr;
  }

  .footer-about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .hero {
    background-image: none;
  }

  .hero::before {
    position: absolute;
    inset: 0;
    content: "";
    background-image: url("/assets/home/hero/hero-machining.webp");
    background-position: center;
    background-size: 657.29% 100%;
  }

  .hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 963px;
    justify-content: center;
    padding: 0 16px;
  }

  .hero-content {
    width: calc(100% + 32px);
    gap: 60px;
    margin-inline: -16px;
    padding: 40px 16px;
    background: rgba(0, 0, 0, 0.5);
  }

  .hero-main {
    align-items: stretch;
    gap: 32px;
  }

  .hero-copy {
    align-items: center;
    gap: 16px;
    width: 100%;
    text-align: center;
  }

  .hero-copy h1 {
    width: 100%;
    font-size: 40px;
    line-height: 60px;
  }

  .hero-copy p {
    width: 100%;
  }

  .hero-main > .button {
    width: 100%;
  }

  .hero-stats {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }

  .stat {
    align-items: center;
  }

  .stat-divider {
    width: 100%;
    height: 1px;
  }

  .services-inner {
    align-items: stretch;
    gap: 40px;
    padding-block: 40px;
  }

  .services h2 {
    color: #2c2f39;
    font-size: 24px;
    line-height: 36px;
  }

  .service-list {
    gap: 16px;
  }

  .service-card {
    gap: 0;
    padding: 20px 16px;
    border-radius: 8px;
  }

  .service-icon {
    margin-bottom: 20px;
  }

  .service-copy {
    margin-bottom: 20px;
  }

  .service-divider {
    margin-bottom: 20px;
  }

  .footer-inner {
    gap: 32px;
    padding-block: 32px;
  }

  .footer-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 16px;
  }

  .footer-cta-copy {
    text-align: center;
  }

  .footer-cta h2 {
    font-size: 18px;
    line-height: 1.5;
  }

  .footer-cta .button {
    width: 100%;
  }

  .footer-columns {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .footer-about > p {
    margin-top: 0;
  }

  .footer-navigation {
    gap: 20px;
  }

  .footer-navigation h2 {
    margin-bottom: 0;
  }

  .footer-nav-links {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .footer-contact {
    gap: 20px;
  }

  .footer-contact h2 {
    margin-bottom: 0;
  }

  .contact-list {
    gap: 16px;
  }

  .contact-list a:last-child span {
    overflow-wrap: anywhere;
  }

  .copyright {
    margin-top: -12px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .header-inner {
    transition-duration: 0.01ms;
  }
}