/* Bay Centerless Grinding — static rebuild of the Wix site.
   Avenir (the Wix font) is licensed, so Nunito Sans (OFL, self-hosted) stands in for it;
   Wix's Helvetica Light maps to the system Helvetica/Arial. */

@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("/assets/fonts/nunito-sans-latin.woff2") format("woff2");
}

:root {
  --yellow: #edcd1f;
  --navy: #1e2d3b;
  --slate: #3d5975;
  --ink: #3b3a3a;
  --grey: #f7f7f7;
  --white: #fff;
  --header-h: 100px;
  --display: "Avenir Next", Avenir, "Nunito Sans", "Segoe UI", sans-serif;
  --body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --container: 940px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--body); font-weight: 300; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, figure { margin: 0; }
a { color: inherit; }
[id] { scroll-margin-top: var(--header-h); }

.visually-hidden, .hp {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--yellow); color: var(--navy); padding: 8px 12px; }
.skip-link:focus { left: 8px; top: 8px; }

.container { width: min(var(--container), 100% - 40px); margin-inline: auto; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: stretch; background: var(--navy);
}
.brand {
  flex: 0 0 355px; display: flex; align-items: center; gap: 21px; padding-left: 24px;
  background: var(--yellow); color: var(--ink); text-decoration: none;
}
.brand img { width: 73px; height: 49px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; font-family: var(--display); font-size: 25px; line-height: 30px; }
.brand-text strong { font-weight: 800; }
.brand-text span { font-weight: 300; }

.site-nav { margin-left: auto; display: flex; align-items: center; padding: 30px 20px 0 0; }
.site-nav ul { list-style: none; padding: 0; display: flex; }
.site-nav a {
  display: block; padding: 0 24px; line-height: 37px; font-family: var(--display); font-weight: 300;
  font-size: 14px; color: var(--white); text-decoration: none; white-space: nowrap;
}
.site-nav a:hover, .site-nav a.is-active { color: var(--yellow); }
.nav-toggle { display: none; }

/* Hero: the site background shows through, fixed like the Wix original */
.hero {
  position: relative; margin-top: var(--header-h); min-height: 739px;
  display: flex; flex-direction: column; align-items: center; padding: 72px 20px 40px;
  color: var(--white); text-align: center;
  background: url("/assets/img/background.jpg") center / cover;
}
@media (min-width: 1025px) { .hero { background-attachment: fixed; } }
@supports (-webkit-touch-callout: none) { .hero { background-attachment: scroll; } } /* iOS ignores fixed backgrounds */
.hero h1 {
  max-width: 700px; font-family: var(--display); font-weight: 700; font-size: 60px;
  line-height: 1.1; letter-spacing: .05em;
}
.made-in-usa {
  display: flex; align-items: center; gap: 18px; margin-top: 122px;
  font-family: var(--display); font-weight: 700; font-size: 23px; line-height: 28px;
}
.made-in-usa img { width: 83px; height: 42px; }
.scroll-down { margin-top: 44px; }
.scroll-down img { width: 54px; height: 31px; }

/* Sections */
.section { padding: 50px 0 60px; background: var(--white); }
.section--grey { background: var(--grey); }
.section-title {
  font-family: var(--display); font-weight: 800; font-size: 55px; line-height: 1.2;
  letter-spacing: .05em; color: var(--navy);
}

/* About */
.about { display: grid; grid-template-columns: 500px 351px; justify-content: space-between; gap: 40px; margin-top: 40px; }
.about-text { font-family: var(--body); font-size: 15px; line-height: 24px; color: var(--ink); }
.about-text p + p { margin-top: 20px; }
.about-photo { margin-top: -15px; margin-right: 15px; }
.about-photo img { border: 5px solid var(--white); box-shadow: 0 1px 4px rgba(0, 0, 0, .35); filter: grayscale(1); }
.about-photo figcaption { margin-top: 38px; font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--ink); }

/* Capabilities */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 45px; }
.card { background: var(--grey); padding-bottom: 32px; }
.card img { width: 100%; aspect-ratio: 300 / 227; object-fit: cover; }
.card-body { padding: 30px 34px 0 27px; }
.card h3 { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.1; color: var(--slate); }
.card ul, .list { padding-left: 28px; font-size: 15px; line-height: 24px; color: var(--ink); }
.card ul { margin-top: 16px; }

/* Specialties / machinery */
.split { display: grid; grid-template-columns: 1fr auto; gap: 60px; align-items: start; }
.split--specialties { margin-top: 70px; padding-left: 55px; grid-template-columns: 450px 355px; justify-content: space-between; margin-right: -21px; }
.list--loose { line-height: 30px; max-width: 450px; padding-top: 0; }
.split--specialties .split-img { width: 355px; aspect-ratio: 355 / 235; object-fit: cover; margin-top: 4px; }
.section--machinery { padding: 25px 0 26px; }
.list--machinery { margin-top: 55px; line-height: 28.5px; }
.split--machinery .split-img { width: 298px; aspect-ratio: 298 / 224; object-fit: cover; margin-top: 69px; margin-right: -20px; }

/* Clients */
.logos { list-style: none; padding: 0 0 0 9px; margin-top: 30px; display: flex; align-items: center; gap: 30px 34px; flex-wrap: wrap; }
.logos img { width: auto; height: 41px; object-fit: contain; filter: grayscale(1); }
.logos li:nth-child(2) { margin-left: 16px; }
.logos li:first-child img { height: 34px; }
.logos li:last-child img { height: 68px; }
.clients-intro { margin-top: 65px; padding-left: 9px; font-size: 15px; line-height: 19px; }
.clients-lists { display: grid; grid-template-columns: 491px 1fr; margin-top: 19px; padding-left: 9px; font-size: 15px; line-height: 19px; }
.clients-lists ul { padding-left: 27px; }

/* Contact */
.section--contact { padding: 65px 0 40px; }
.map { margin-top: 48px; height: 365px; background: #e5e3df; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.contact-grid { display: grid; grid-template-columns: 423px 1fr; gap: 145px; margin-top: 66px; }
.contact-heading { font-family: var(--display); font-weight: 700; font-size: 25px; line-height: 1.3; color: var(--navy); }
.contact-heading--form { margin-top: 62px; }
.contact-text { margin-top: 12px; font-size: 17px; line-height: 25.5px; font-style: normal; }
.contact-text a { text-decoration: none; }
.contact-text a.u { text-decoration: underline; }
.contact-lines { margin-top: 23px; line-height: 21px; }
.quote { margin-top: 62px; font-family: var(--display); font-weight: 700; font-size: 25px; line-height: 32.5px; color: var(--navy); }
.quote a { text-decoration: none; }

.contact-form { margin-top: 50px; display: flex; flex-direction: column; }
.contact-form label { display: block; margin: 0 0 11px 1px; font-size: 15px; line-height: 15px; color: var(--navy); }
.contact-form input, .contact-form textarea {
  width: 100%; margin-bottom: 11px; padding: 5px 13px; border: 1px solid transparent; border-radius: 0;
  background: var(--grey); color: var(--slate); font-family: var(--display); font-weight: 300; font-size: 14px; line-height: 19.6px;
}
.contact-form input { height: 30px; }
.contact-form textarea { height: 126px; resize: vertical; padding-top: 10px; }
.contact-form ::placeholder { color: var(--slate); opacity: 1; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--slate); }
.contact-form [aria-invalid="true"] { border-color: #d6453d; }
.form-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.form-status { font-size: 14px; color: var(--navy); }
.form-status.is-error { color: #d6453d; }
.contact-form button {
  flex: 0 0 149px; height: 40px; border: 0; background: var(--ink); color: var(--yellow); cursor: pointer;
  font-family: var(--display); font-weight: 700; font-size: 15px;
}
.contact-form button:hover { background: #000; }
.contact-form button[disabled] { opacity: .6; cursor: wait; }

/* Footer */
.site-footer { padding: 70px 0 60px; font-family: var(--display); font-size: 14px; letter-spacing: .04em; }

/* Thank-you page (no-JS form fallback) */
.page-simple { margin-top: var(--header-h); padding: 80px 0; min-height: 60vh; }
.page-simple p { margin-top: 20px; font-size: 17px; }

/* Tablet */
@media (max-width: 1100px) {
  .site-nav a { padding: 0 12px; }
}
@media (max-width: 1024px) {
  :root { --header-h: 80px; }
  .brand { flex-basis: auto; padding-right: 24px; gap: 14px; }
  .brand img { width: 60px; height: 40px; }
  .brand-text { font-size: 21px; line-height: 25px; }
  .nav-toggle {
    display: block; margin-left: auto; width: var(--header-h); border: 0; background: transparent; cursor: pointer;
  }
  .nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
    display: block; width: 28px; height: 2px; margin: 0 auto; background: var(--white); position: relative; content: "";
  }
  .nav-toggle .bars::before { position: absolute; top: -8px; }
  .nav-toggle .bars::after { position: absolute; top: 8px; }
  .site-nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; padding: 8px 0 16px; background: var(--navy); }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: 6px 24px; font-size: 16px; }
  .about { grid-template-columns: 1fr 300px; }
  .split--specialties { padding-left: 0; margin-right: 0; grid-template-columns: 1fr 300px; }
  .split .split-img { margin-right: 0 !important; }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 60px; }
}

/* Mobile */
@media (max-width: 760px) {
  .brand { padding-left: 16px; }
  .hero { min-height: 0; padding: 60px 20px 50px; }
  .hero h1 { font-size: 36px; }
  .made-in-usa { margin-top: 60px; font-size: 20px; }
  .section { padding: 40px 0 48px; }
  .section-title { font-size: 38px; }
  .about, .split, .split--specialties, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-photo { margin: 0; max-width: 351px; }
  .about-photo figcaption { margin-top: 16px; }
  .cards { grid-template-columns: 1fr; }
  .split--specialties { margin-top: 32px; }
  .split .split-img { width: 100% !important; margin-top: 0 !important; }
  .list--machinery { margin-top: 24px; }
  .logos { gap: 24px 32px; }
  .clients-intro { margin-top: 40px; }
  .clients-lists { grid-template-columns: 1fr 1fr; }
  .contact-grid { margin-top: 40px; }
  .contact-heading--form { margin-top: 40px; }
  .quote { margin-top: 32px; font-size: 22px; }
  .map { height: 300px; }
}
@media (max-width: 420px) {
  .brand-text { font-size: 18px; line-height: 22px; }
  .brand img { width: 48px; height: 32px; }
  .hero h1 { font-size: 30px; }
  .clients-lists { grid-template-columns: 1fr; }
}
