/* ============================================================
   Central Machine & Ag Repair, LLC
   Industrial / honest / big-sky Montana. Steel, navy, wheat.
   ============================================================ */

:root {
  --ink:        #1C1F22;  /* near-black */
  --ink-2:      #14171a;  /* darker for footer/hero */
  --steel:      #6E747A;  /* weathered steel gray */
  --steel-lt:   #D9DCDF;  /* light steel / concrete */
  --navy:       #1E2A44;  /* logo navy — brand anchor */
  --navy-lt:    #2c3a5c;
  --sky:        #3E6E93;  /* big-sky blue accent */
  --wheat:      #C9A86A;  /* dryland wheat / tan */
  --khaki:      #E7E1D4;  /* soft warm background */
  --rust:       #9E4A28;  /* oxidized rust — the one sharp accent */
  --rust-dk:    #843c1f;
  --paper:      #F3F1EC;  /* off-white text/background */

  --maxw: 1140px;
  --pad: clamp(1.1rem, 4vw, 2.5rem);
  --radius: 3px;

  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;

  --shadow: 0 14px 34px rgba(20, 23, 26, 0.14);
  --shadow-sm: 0 4px 14px rgba(20, 23, 26, 0.10);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--rust); text-decoration-thickness: 1.5px; text-underline-offset: 2px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--rust); color: #fff; padding: .6rem 1rem; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

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

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--navy);
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 1.02rem;
  padding: .8rem 1.4rem;
  border: 2px solid var(--btn-bg);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--paper);
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); }
.btn--primary { --btn-bg: var(--rust); }
.btn--primary:hover { background: var(--rust-dk); border-color: var(--rust-dk); }
.btn--call { --btn-bg: var(--rust); padding: .55rem 1rem; font-size: .95rem; }
.btn--ghost {
  background: transparent; color: var(--ink); border-color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--full { width: 100%; justify-content: center; }
.ico { width: 1.2em; height: 1.2em; fill: currentColor; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(243, 241, 236, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--ink);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand__mark { width: 48px; height: 48px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 1.18rem; letter-spacing: .01em; }
.brand__name .amp { color: var(--rust); }
.brand__sub { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--steel); margin-top: 3px; }

.nav__toggle, .nav__burger { display: none; }
.nav__list { list-style: none; display: flex; align-items: center; gap: 1.6rem; padding: 0; }
.nav__list a:not(.btn) {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .05em;
  font-weight: 500; font-size: 1rem; color: var(--ink); text-decoration: none;
  padding-bottom: 3px; border-bottom: 2px solid transparent; transition: border-color .15s, color .15s;
}
.nav__list a:not(.btn):hover { color: var(--rust); border-color: var(--rust); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--paper);
  background:
    linear-gradient(180deg, rgba(20,23,26,.86), rgba(28,31,34,.92)),
    /* diamond-plate steel texture, all CSS */
    repeating-linear-gradient(45deg, #2a2e33 0 14px, #23272b 14px 28px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.025) 0 14px, transparent 14px 28px),
    var(--ink-2);
  overflow: hidden;
}
.hero::after {
  /* big-sky glow, top-right */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 88% -10%, rgba(62,110,147,.55), transparent 55%);
  pointer-events: none;
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding-block: clamp(2.8rem, 7vw, 5.5rem);
}
.kicker {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .2em;
  font-size: .82rem; color: var(--wheat); margin-bottom: 1.1rem;
}
.kicker__dot { width: 9px; height: 9px; background: var(--rust); border-radius: 50%; box-shadow: 0 0 0 4px rgba(158,74,40,.25); }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 700; letter-spacing: 0; }
.hero h1 .hl { color: var(--wheat); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #e7e6e1; margin-top: 1.2rem; max-width: 38ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero__cta .btn--ghost { color: var(--paper); border-color: rgba(243,241,236,.6); }
.hero__cta .btn--ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.hero__trust { margin-top: 1.5rem; font-size: .85rem; letter-spacing: .04em; color: #b9bcbf; text-transform: uppercase; font-family: var(--font-display); }

/* Animated entrance (respects reduced motion below) */
.hero__copy > * { animation: rise .7s both; }
.hero__copy > *:nth-child(1) { animation-delay: .05s; }
.hero__copy > *:nth-child(2) { animation-delay: .15s; }
.hero__copy > *:nth-child(3) { animation-delay: .25s; }
.hero__copy > *:nth-child(4) { animation-delay: .35s; }
.hero__copy > *:nth-child(5) { animation-delay: .45s; }
.hero__media { animation: rise .8s .3s both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Pillars / credentials bar ---------- */
.pillars { background: var(--navy); border-top: 1px solid rgba(201,168,106,.4); color: var(--paper); }
.pillars__grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; padding-block: clamp(1.7rem, 4vw, 2.4rem); }
.pillar { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .45rem; padding-inline: .5rem; }
.pillar + .pillar::before { content: ""; position: absolute; left: -.65rem; top: 12%; height: 76%; width: 1px; background: rgba(255,255,255,.13); }
.pillar__ico { display: grid; place-items: center; width: 46px; height: 46px; }
.pillar__ico svg { width: 30px; height: 30px; fill: none; stroke: var(--wheat); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pillar__label { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; font-size: 1.08rem; color: var(--paper); }
.pillar__sub { font-size: .82rem; line-height: 1.4; color: #b6bcc6; max-width: 24ch; }

/* ---------- Photos ---------- */
.photo { position: relative; border-radius: var(--radius); }
.photo img { border-radius: var(--radius); border: 3px solid rgba(0,0,0,.18); object-fit: cover; }
.photo figcaption {
  position: absolute; left: 10px; bottom: 10px; right: 10px;
  font-size: .72rem; color: var(--paper); background: rgba(20,23,26,.72);
  padding: .35rem .6rem; border-radius: var(--radius); letter-spacing: .02em;
}
.photo--hero { box-shadow: var(--shadow); }
.photo--hero img { aspect-ratio: 4/3; }
.photo--hero::before {
  content: ""; position: absolute; inset: -10px -10px auto auto; width: 64px; height: 64px;
  border-top: 3px solid var(--wheat); border-right: 3px solid var(--wheat); border-radius: 0 var(--radius) 0 0;
}
.photo--about img { aspect-ratio: 7/8; }

/* ---------- Weld-seam divider ---------- */
.seam {
  height: 8px;
  background:
    radial-gradient(circle at center, var(--rust) 0 2.2px, transparent 2.6px) 0 0 / 18px 8px repeat-x,
    var(--ink);
  background-position: 9px center, 0 0;
  opacity: .92;
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--art { background: var(--khaki); }
.section--about { background: var(--navy); color: var(--paper); }
.section--contact { background: var(--ink); color: var(--paper); }

.section__head { max-width: 60ch; margin-bottom: 2.6rem; }
.stamp {
  display: inline-block;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .22em;
  font-size: .8rem; font-weight: 600; color: var(--rust);
  border: 2px solid currentColor; padding: .25rem .7rem; border-radius: var(--radius);
  margin-bottom: 1rem;
}
.section--about .stamp, .section--contact .stamp { color: var(--wheat); }
.section h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
.section__intro { margin-top: .9rem; font-size: 1.12rem; color: var(--steel); }
.section--art .section__intro { color: #6a6354; }

/* ---------- Service cards ---------- */
.cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.card {
  background: #fff; border: 1px solid var(--steel-lt); border-top: 4px solid var(--navy);
  border-radius: var(--radius); padding: 1.6rem 1.5rem;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-top-color: var(--rust); }
.card__ico {
  display: inline-grid; place-items: center; width: 54px; height: 54px;
  background: var(--khaki); border-radius: var(--radius); margin-bottom: 1rem;
}
.card__ico svg { width: 30px; height: 30px; fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card:hover .card__ico svg { stroke: var(--rust); }
.card h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.card p { color: var(--steel); font-size: 1rem; }
.card--link a { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .03em; font-weight: 600; white-space: nowrap; }

/* ---------- Values strip ---------- */
.values { background: var(--wheat); color: var(--ink); padding-block: clamp(2.4rem, 5vw, 3.6rem); }
.values__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.value { position: relative; padding-left: .2rem; }
.value__num { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: rgba(28,31,34,.28); line-height: 1; }
.value h3 { font-size: 1.35rem; margin: .4rem 0 .5rem; }
.value p { font-size: 1.02rem; color: #4a4636; }

/* ---------- Gallery ---------- */
.gallery { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 3rem; }
.gallery__item { position: relative; border-radius: var(--radius); overflow: hidden; border: 3px solid var(--ink); }
.gallery__item img { aspect-ratio: 1/1; object-fit: cover; transition: transform .35s ease; }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em; font-size: .9rem;
  color: var(--paper); background: linear-gradient(transparent, rgba(20,23,26,.88));
  padding: 1.6rem .8rem .6rem;
}

/* ---------- Process steps ---------- */
.process { background: #fff; border: 1px solid var(--steel-lt); border-radius: var(--radius); padding: clamp(1.6rem, 4vw, 2.4rem); }
.process__title { font-size: 1.5rem; margin-bottom: 1.4rem; }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem 2rem; margin-bottom: 1.8rem; }
.step { display: flex; gap: 1rem; align-items: flex-start; }
.step__n {
  flex: none; display: grid; place-items: center; width: 42px; height: 42px;
  background: var(--navy); color: var(--paper); font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
  border-radius: var(--radius);
}
.step h4 { font-size: 1.12rem; margin-bottom: .25rem; }
.step p { font-size: .98rem; color: var(--steel); }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(1.6rem, 5vw, 3.5rem); align-items: center; }
.section--about p { color: #dad8d2; margin-top: 1rem; max-width: 56ch; }
.section--about strong { color: #fff; }
.section--about .btn--ghost { color: var(--paper); border-color: rgba(243,241,236,.55); margin-top: 1.6rem; }
.section--about .btn--ghost:hover { background: var(--paper); color: var(--navy); border-color: var(--paper); }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.8rem, 5vw, 4rem); }
.contact__lead { color: #c4c7ca; margin-top: 1rem; }
.contact__list { list-style: none; padding: 0; margin-top: 2rem; display: grid; gap: 1.4rem; }
.contact__list li { display: flex; flex-direction: column; gap: .15rem; }
.contact__list a { color: var(--wheat); }
.contact__label { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .18em; font-size: .72rem; color: var(--steel); }
.contact__big { font-family: var(--font-display); font-weight: 700; font-size: 1.8rem; color: var(--wheat) !important; text-decoration: none; letter-spacing: .01em; }
.contact__big:hover { color: #fff !important; }
.contact__dir { font-size: .95rem; margin-top: .2rem; }

/* Form */
.contact__form-wrap { }
.form { background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.2rem); border-top: 5px solid var(--rust); }
.form__title { font-size: 1.5rem; margin-bottom: 1.2rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em; font-size: .82rem; font-weight: 600; margin-bottom: .35rem; }
.field input, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1.02rem;
  padding: .7rem .8rem; border: 2px solid var(--steel-lt); border-radius: var(--radius);
  background: #fff; color: var(--ink); transition: border-color .15s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sky); }
.field textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__note { font-size: .9rem; color: var(--steel); margin-top: .9rem; }
.form__note a { font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-2); color: #c4c7ca; padding-top: clamp(2.5rem, 5vw, 3.5rem); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 2rem; padding-bottom: 2rem; }
.footer__brand { display: flex; gap: .9rem; align-items: center; }
.footer__name { font-family: var(--font-display); text-transform: uppercase; font-weight: 700; color: var(--paper); font-size: 1.15rem; }
.footer__tag { font-size: .85rem; color: var(--steel); margin-top: .2rem; }
.footer__pillars { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; font-size: .76rem; color: var(--wheat); margin-top: .45rem; }
.footer__nav { display: flex; flex-direction: column; gap: .5rem; }
.footer__nav a { color: #c4c7ca; text-decoration: none; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em; font-size: .95rem; }
.footer__nav a:hover { color: var(--wheat); }
.footer__contact { display: flex; flex-direction: column; gap: .35rem; font-size: .95rem; }
.footer__contact a { color: #c4c7ca; text-decoration: none; }
.footer__contact a:hover { color: var(--wheat); }
.footer__phone { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--wheat) !important; }
.footer__base { border-top: 1px solid rgba(255,255,255,.1); padding-block: 1.2rem; }
.footer__base p { font-size: .82rem; color: var(--steel); }

/* ---------- Sticky mobile call bar ---------- */
.callbar { display: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 460px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .pillars__grid { grid-template-columns: repeat(2, 1fr); gap: 1.6rem 1rem; }
  .pillar + .pillar::before { display: none; }
  .about__grid { grid-template-columns: 1fr; }
  .photo--about { max-width: 420px; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  body { font-size: 17px; }
  /* Mobile nav */
  .nav__burger {
    display: flex; flex-direction: column; gap: 5px; justify-content: center;
    width: 46px; height: 40px; cursor: pointer; padding: 8px; border: 2px solid var(--ink); border-radius: var(--radius);
  }
  .nav__burger span { display: block; height: 2.5px; background: var(--ink); transition: transform .2s, opacity .2s; }
  .nav__list {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 3px solid var(--ink);
    max-height: 0; overflow: hidden; transition: max-height .3s ease; padding: 0;
  }
  .nav__list li { border-top: 1px solid var(--steel-lt); }
  .nav__list a:not(.btn) { display: block; padding: .9rem var(--pad); border: 0; }
  .nav__call { padding: .8rem var(--pad); }
  .nav__call .btn { width: 100%; justify-content: center; }
  .nav__toggle:checked ~ .nav__list { max-height: 420px; }
  .nav__toggle:checked ~ .nav__burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav__toggle:checked ~ .nav__burger span:nth-child(2) { opacity: 0; }
  .nav__toggle:checked ~ .nav__burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .nav { position: static; }

  .cards, .gallery, .steps, .values__grid, .footer__grid { grid-template-columns: 1fr; }
  .brand__sub { display: none; }
  .hero__cta .btn { flex: 1 1 auto; justify-content: center; }

  /* Sticky call bar on phones */
  .callbar {
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
    background: var(--rust); color: #fff; text-decoration: none;
    font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em; font-weight: 600;
    padding: .85rem 1rem; box-shadow: 0 -4px 18px rgba(0,0,0,.25);
  }
  main { padding-bottom: 60px; } /* clear the call bar */
}

/* ---------- Motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .callbar, .hero__cta, .form { display: none; }
  body { color: #000; background: #fff; }
}



/* --- edits --- */
* { box-sizing: border-box; } body {margin: 0;}.rm3-kpi svg{width:20px;height:20px;}.rm3-icon svg{width:100%;height:100%;}.hero__trust{max-width:350px;}.pillar__sub{max-width:175px;}#i9w6g{height:530px;}.nav__list{max-width:700px;}

/* Hero image — on stacked (tablet/phone) layouts, render the square shop emblem
   at its natural 1:1 ratio so the whole badge shows and it fits the screen,
   instead of the tall fixed 530px crop used on the wide two-column layout. */
@media (max-width: 920px) {
  #i9w6g { height: auto; aspect-ratio: 1 / 1; }
}