/* Grits & Gears — static rebuild of gritsandgears.com */

:root {
  --green: #31a050;
  --ink: #0d141a;
  --charcoal: #333333;
  --slate: #2b2c32;
  --field: #252930;
  --cream: #f2f1e6;
  --white: #ffffff;
  --facebook: rgb(55, 82, 148);
  --line: rgb(184, 192, 204);
  --wrap: 1180px;
  --header-pad: 22px;
  --logo: 132px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  font-synthesis: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--charcoal);
  color: var(--white);
  font-family: Lato, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  overflow-x: clip;
}

.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;
}

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

a {
  color: inherit;
}

p {
  margin: 0 0 0.8em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: Lato, sans-serif;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 0.45em;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--white);
  color: var(--ink);
  padding: 8px 12px;
  z-index: 80;
}

.skip-link:focus {
  top: 12px;
}

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

/* Header ---------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  color: var(--white);
  background: transparent;
  transition: background-color 0.2s ease;
}

.site-header.is-scrolled,
.site-header.is-solid,
.site-header.is-open {
  background: var(--ink);
}

.header-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  min-height: calc(var(--logo) + var(--header-pad) * 2);
  display: flex;
  align-items: center;
  gap: 28px;
  padding: var(--header-pad) 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  color: var(--white);
  text-decoration: none;
}

.brand-name {
  color: var(--white);
  font-family: Lato, sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
  max-width: 11em;
}

.brand:hover .brand-name,
.brand:focus-visible .brand-name {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.logo {
  flex: 0 0 auto;
  display: block;
  width: var(--logo);
  height: var(--logo);
  line-height: 0;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-end {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--white);
  text-decoration: none;
  font-family: Lato, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.site-nav a[aria-current="page"] {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}

.social {
  display: flex;
  align-items: center;
  gap: 14px;
}

.social a {
  color: var(--white);
  display: inline-flex;
  width: 24px;
  height: 24px;
}

.social svg {
  width: 24px;
  height: 24px;
  display: block;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  position: relative;
  content: "";
}

.nav-toggle-bar::before {
  position: absolute;
  top: -7px;
}

.nav-toggle-bar::after {
  position: absolute;
  top: 7px;
}

/* Heroes ---------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 640px;
  color: var(--white);
  overflow: hidden;
}

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

.hero-bg picture,
.hero-bg img {
  width: 100%;
  height: 100%;
}

.hero-bg img {
  object-fit: cover;
  object-position: center 34%;
}

.hero--ecu {
  align-items: flex-end;
  min-height: 720px;
}

.hero--ecu .hero-bg img {
  object-position: center 32%;
}

.hero--ecu .hero-inner {
  margin-bottom: 52px;
}

.hero--about .hero-bg img {
  object-position: center 36%;
}

.hero-shade {
  background: rgba(13, 20, 26, 0.23);
  z-index: 1;
}

.hero--ecu .hero-shade {
  background: rgba(13, 20, 26, 0.55);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(980px, calc(100% - 40px));
  margin: 150px auto 64px;
  text-align: center;
}

.hero--about {
  min-height: 520px;
  align-items: flex-end;
}

.hero--about .hero-inner {
  width: min(var(--wrap), calc(100% - 40px));
  text-align: left;
  margin-bottom: 48px;
}

.display {
  font-family: Oswald, sans-serif;
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

.hero-kicker {
  font-family: Merriweather, Georgia, serif;
  font-weight: 400;
  font-size: clamp(18px, 2.3vw, 32px);
  line-height: 1.35;
  margin: 48px 0 0;
  text-wrap: balance;
}

.hero--ecu .hero-kicker {
  font-size: clamp(18px, 2.1vw, 28px);
}

.hero--home .hero-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 360px;
}

/* Bands ------------------------------------------------------------------ */

.band {
  padding: 72px 0;
}

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

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

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

.band--cream {
  background: var(--cream);
  color: var(--ink);
}

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

.center {
  text-align: center;
}

.measure {
  max-width: 760px;
  margin-inline: auto;
}

.measure-wide {
  max-width: 980px;
}

.oswald {
  font-family: Oswald, sans-serif;
  font-weight: 400;
}

.fira {
  font-family: "Fira Sans", sans-serif;
  font-weight: 500;
}

.serif {
  font-family: Merriweather, Georgia, serif;
  font-weight: 400;
}

.green {
  color: var(--green);
}

.lead-xl {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.2;
}

.lead-lg {
  font-size: clamp(26px, 3vw, 32px);
  line-height: 1.25;
}

.lead {
  font-size: 24px;
  line-height: 1.35;
}

.subhead {
  font-size: 28px;
  line-height: 1.25;
  margin: 0 0 14px;
}

.quiet {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 400;
}

.section-title {
  font-family: Oswald, sans-serif;
  font-weight: 400;
  font-size: clamp(32px, 4.4vw, 64px);
  line-height: 1.15;
  margin: 0 0 22px;
}

h2.plain-title {
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 16px;
}

.split {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) 1.2fr;
  gap: 40px 48px;
  align-items: center;
}

.split--image-right {
  grid-template-columns: 1.05fr minmax(280px, 0.95fr);
}

.split--image-right .split-copy {
  order: -1;
}

.frame {
  margin: 0;
  overflow: hidden;
}

.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame--portrait {
  aspect-ratio: 416 / 545;
}

.frame--wide {
  aspect-ratio: 3 / 2;
}

.frame--square {
  aspect-ratio: 1 / 1;
}

.frame--portrait img {
  object-position: center 62%;
}

.frame--truck {
  aspect-ratio: 16 / 11;
}

.frame--truck img {
  object-position: center 78%;
}

.stack > * + * {
  margin-top: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  min-width: 280px;
  padding: 12px 28px;
  background: var(--green);
  color: var(--white);
  text-decoration: none;
  border: 0;
  border-radius: 8px;
  font-family: Lato, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
}

.btn:hover,
.btn:focus-visible {
  background: rgb(29, 30, 32);
  color: var(--white);
}

.btn--facebook {
  background: var(--facebook);
}

.btn-row {
  margin-top: 22px;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose a:hover {
  color: var(--green);
}

/* Steps ------------------------------------------------------------------ */

.steps-title {
  font-family: Oswald, sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 4vw, 48px);
  color: var(--green);
  margin: 0 0 8px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 8px;
}

.step-num {
  font-family: Oswald, sans-serif;
  font-weight: 700;
  font-size: clamp(64px, 8vw, 120px);
  line-height: 0.9;
  color: var(--green);
  margin: 0;
}

.step h3,
.step h6,
.step-label {
  font-family: Oswald, sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.25;
  color: #2b2c32;
  margin: 8px 0 8px;
}

.step-copy,
.step .step-copy {
  font-family: "Fira Sans", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.35;
  color: #333;
  margin: 0;
}

/* Brands ----------------------------------------------------------------- */

.brand-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 48px;
  max-width: 820px;
  margin: 8px auto 0;
}

.brand-col h3,
.brand-col p {
  font-family: Oswald, sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.35;
  color: var(--green);
  margin: 0 0 8px;
}

.brand-note {
  margin: 28px auto 0;
  max-width: 720px;
  font-family: Oswald, sans-serif;
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.25;
  color: var(--green);
}

/* FAQ -------------------------------------------------------------------- */

.faq p {
  font-family: "Fira Sans", sans-serif;
  font-size: 18px;
  line-height: 1.45;
  margin: 0 0 8px;
}

.faq p + p {
  margin-bottom: 18px;
}

/* Quote / location ------------------------------------------------------- */

.location-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(280px, 1fr) minmax(260px, 0.9fr);
  gap: 28px 32px;
  align-items: start;
}

.location-copy h3 {
  font-family: Oswald, sans-serif;
  font-weight: 400;
  font-size: clamp(32px, 4vw, 48px);
  margin: 0 0 12px;
}

.hours-label {
  font-family: "Fira Sans", sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.2;
  margin: 18px 0 6px;
}

.where {
  font-family: "Fira Sans", sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.35;
  margin: 0 0 8px;
}

.spam-note {
  font-size: 16px;
  line-height: 1.45;
  margin: 12px 0 18px;
}

.fb-frame {
  width: 100%;
  min-height: 500px;
  border: 0;
  background: #fff;
  overflow: hidden;
}

/* Forms ------------------------------------------------------------------ */

.quote-form {
  background: var(--cream);
  color: var(--ink);
  border-radius: 20px;
  padding: 32px 28px 28px;
  box-shadow: 0 0 0 1px rgba(13, 20, 26, 0.06);
}

.quote-form .field {
  margin: 0 0 16px;
}

.quote-form label {
  display: block;
  font-family: "Fira Sans", sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
  margin: 0 0 6px;
}

.quote-form input,
.quote-form textarea {
  width: 100%;
  border: 2px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-family: "Fira Sans", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.4;
  padding: 10px 12px;
  border-radius: 0;
}

.quote-form textarea {
  min-height: 120px;
  resize: vertical;
}

.quote-form button {
  border-radius: 50px;
  min-width: 0;
  padding-inline: 28px;
  opacity: 0.55;
  cursor: not-allowed;
}

.quote-form button:hover,
.quote-form button:focus-visible {
  background: var(--green);
}

.form-status {
  font-family: "Fira Sans", sans-serif;
  font-size: 14px;
  line-height: 1.4;
  margin: 12px 0 0;
  color: var(--ink);
}

/* Contact page ----------------------------------------------------------- */

.contact-page {
  background: var(--charcoal);
  color: var(--white);
  padding: 190px 0 80px;
}

.contact-intro {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 48px;
}

.contact-intro h1 {
  font-family: Oswald, sans-serif;
  font-weight: 400;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.15;
  margin: 0 0 18px;
}

.contact-intro p {
  font-family: "Fira Sans", sans-serif;
  font-weight: 400;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.35;
  margin: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "where button"
    "spam form"
    "photo form";
  gap: 20px 40px;
  align-items: start;
}

.contact-where {
  grid-area: where;
  max-width: 16em;
}
.contact-action { grid-area: button; align-self: center; justify-self: start; }
.contact-grid .spam-note { grid-area: spam; }
.contact-grid .inquiry-embed { grid-area: form; }

.inquiry-embed {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 720px;
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
}

.inquiry-embed iframe {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  border: 0;
}
.contact-grid .frame { grid-area: photo; }

.contact-where {
  font-family: "Fira Sans", sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.35;
  margin: 0 0 16px;
}

.contact-grid .spam-note {
  max-width: 36ch;
}

.contact-grid .btn {
  margin-bottom: 8px;
}

.contact-grid .frame {
  margin-top: 8px;
}

/* New customer ----------------------------------------------------------- */

.intake {
  background: var(--charcoal);
  color: var(--white);
  padding: 180px 0 72px;
}

.intake-grid {
  display: grid;
  grid-template-columns: minmax(240px, 380px) minmax(0, 1fr);
  gap: 36px 48px;
  align-items: start;
}

.intake h1 {
  font-family: Oswald, sans-serif;
  font-weight: 400;
  font-size: clamp(52px, 7vw, 92px);
  line-height: 0.95;
  text-align: center;
  margin: 0 0 18px;
}

.intake h3 {
  font-family: Lato, sans-serif;
  font-weight: 600;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.2;
  text-align: center;
  margin: 0;
}

.jotform-slot {
  background: var(--white);
  min-height: 480px;
  width: 100%;
}

/* Precision ag ----------------------------------------------------------- */

.services-intro {
  padding: 190px 0 24px;
  background: var(--white);
  color: var(--ink);
}

.services-intro h1 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  color: rgb(10, 16, 21);
  margin: 0 0 20px;
  max-width: 16ch;
}

.services-intro .intro-copy {
  max-width: 640px;
}

.services-intro .serif {
  font-size: 18px;
  line-height: 1.45;
  color: rgb(29, 30, 32);
}

.services-intro .intro-copy p:first-child {
  font-size: 18px;
  line-height: 1.5;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 48px;
  padding-bottom: 72px;
  background: var(--white);
}

.card h5 {
  font-family: Lato, sans-serif;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.3;
  color: rgb(29, 28, 29);
  margin: 14px 0 8px;
}

.card p {
  margin: 0;
  color: rgb(29, 28, 29);
  font-size: 16px;
  line-height: 1.5;
}

.card img {
  width: 100%;
  aspect-ratio: 503 / 264;
  object-fit: cover;
}

/* Footer ----------------------------------------------------------------- */

.site-footer {
  background: var(--charcoal);
  color: var(--white);
  padding: 64px 0 36px;
}

.footer-name {
  font-family: Lato, sans-serif;
  font-weight: 600;
  font-size: 26px;
  line-height: 1.3;
  margin: 0 0 12px;
}

.site-footer p {
  font-size: 14px;
  line-height: 1.35;
  margin: 0 0 6px;
}

.site-footer a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer .social {
  margin-top: 22px;
}

.copyright {
  margin-top: 28px !important;
}

/* Mobile ----------------------------------------------------------------- */

@media (max-width: 900px) {
  :root {
    --logo: 51px;
    --header-pad: 16px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
  }

  .brand {
    flex: 1 1 auto;
    gap: 10px;
    margin-right: 8px;
  }

  .brand-name {
    font-size: 14px;
    max-width: none;
  }

  .header-end {
    position: fixed;
    inset: 83px 0 0 0;
    background: var(--ink);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 12px 20px 32px;
    gap: 28px;
    transform: translateX(100%);
    transition: transform 0.2s ease;
    overflow: auto;
  }

  .site-header.is-open .header-end {
    transform: none;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .site-nav a {
    font-size: 20px;
  }

  .hero {
    min-height: 0;
    align-items: flex-end;
  }

  .hero-inner,
  .hero--home .hero-inner {
    min-height: 0;
    margin: 112px auto 40px;
    width: min(100% - 32px, 640px);
  }

  .hero--home {
    min-height: 520px;
  }

  .hero--ecu {
    min-height: 560px;
  }

  .hero--about {
    min-height: 420px;
  }

  .hero-kicker {
    margin-top: 28px;
  }

  .band {
    padding: 48px 0;
  }

  .split,
  .split--image-right,
  .location-grid,
  .contact-grid,
  .intake-grid,
  .brand-grid,
  .steps,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-areas:
      "where"
      "spam"
      "button"
      "photo"
      "form";
  }

  .split--image-right .split-copy {
    order: 0;
  }

  .split--stack-text .split-copy {
    order: -1;
  }

  .frame--portrait {
    aspect-ratio: 4 / 5;
    max-height: 520px;
  }

  .btn {
    width: 100%;
    max-width: 360px;
    min-width: 0;
  }

  .contact-page,
  .intake,
  .services-intro {
    padding-top: 112px;
  }

  .contact-grid .btn,
  .location-copy .btn {
    max-width: none;
  }

  .fb-frame {
    min-height: 420px;
    height: 500px;
  }

  body.nav-open {
    overflow: hidden;
  }
}

@media (max-width: 420px) {
  .wrap,
  .hero-inner,
  .hero--about .hero-inner {
    width: calc(100% - 32px);
  }

  .display {
    font-size: 34px;
  }

  .hero--ecu .display {
    font-size: 32px;
  }

  .quote-form {
    padding: 22px 16px 20px;
  }
}
