/* JMC Products Inc. — 2026 rebuild
   Brand: navy #0E243F, gold #FEA918 */

:root {
  --navy: #0E243F;
  --navy-700: #16345a;
  --navy-100: #e8edf3;
  --gold: #FEA918;
  --gold-dark: #d98c06;
  --ink: #1b1f24;
  --muted: #5b6672;
  --line: #d9dfe6;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --wrap: 1140px;
  --radius: 4px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

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

a { color: var(--navy-700); }
a:hover { color: var(--gold-dark); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---------- Skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: var(--navy);
  padding: 10px 16px; font-weight: 700; z-index: 100;
}
.skip:focus { left: 0; }

/* ---------- Top contact bar ---------- */
.topbar {
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  border-bottom: 3px solid var(--gold);
}
.topbar .wrap {
  display: flex; flex-wrap: wrap; gap: 6px 24px;
  align-items: center; justify-content: flex-end;
  padding-top: 8px; padding-bottom: 8px;
}
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { color: var(--gold); }
.topbar .tel { font-size: 15px; }

/* ---------- Header / nav ---------- */
.masthead { background: #fff; border-bottom: 1px solid var(--line); }
.masthead .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding-top: 14px; padding-bottom: 14px;
}
.logo img { width: 180px; }
.logo { display: block; }

.navtoggle {
  display: none;
  background: var(--navy); color: #fff; border: 0;
  font: inherit; font-weight: 700; padding: 10px 14px;
  border-radius: var(--radius); cursor: pointer;
}

.nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 4px;
}
.nav a {
  display: block; padding: 10px 10px;
  color: var(--navy); text-decoration: none;
  font-weight: 600; font-size: 14px;
  text-transform: uppercase; letter-spacing: .01em;
  white-space: nowrap;
  border-radius: var(--radius);
}
.nav a:hover { background: var(--navy-100); color: var(--navy); }
.nav a[aria-current="page"] {
  background: var(--navy); color: #fff;
}
.nav .cta a {
  background: var(--gold); color: var(--navy);
}
.nav .cta a:hover { background: var(--gold-dark); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  background: var(--navy);
  color: #fff;
  padding: 72px 0;
  background-image: linear-gradient(120deg, #0E243F 0%, #16345a 100%);
}
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.hero p {
  margin: 0 0 28px;
  font-size: clamp(17px, 2.2vw, 20px);
  max-width: 60ch;
  color: #d6dee8;
}
.hero .rule { width: 72px; height: 5px; background: var(--gold); margin-bottom: 26px; }
.eyebrow {
  display: inline-block;
  color: var(--gold);
  font-weight: 700; font-size: 14px;
  text-transform: uppercase; letter-spacing: .14em;
  margin-bottom: 14px;
}

/* ---------- Page header (interior) ---------- */
.pagehead {
  background: var(--navy);
  background-image: linear-gradient(120deg, #0E243F 0%, #16345a 100%);
  color: #fff; padding: 46px 0;
}
.pagehead h1 { margin: 0; font-size: clamp(26px, 4vw, 38px); line-height: 1.2; }
.pagehead p { margin: 12px 0 0; color: #d6dee8; max-width: 65ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--gold); color: var(--navy);
  padding: 14px 28px; border-radius: var(--radius);
  font-weight: 700; text-decoration: none;
  border: 2px solid var(--gold);
  font-size: 16px;
}
.btn:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #fff; }
.btn-ghost {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.5);
}
.btn-ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Sections ---------- */
section { padding: 60px 0; }
section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

h2 {
  font-size: clamp(23px, 3.2vw, 30px);
  line-height: 1.25; margin: 0 0 8px; color: var(--navy);
  letter-spacing: -0.01em;
}
h3 { font-size: 19px; margin: 0 0 8px; color: var(--navy); }
.lede { font-size: 19px; color: var(--muted); max-width: 68ch; margin: 0 0 32px; }
.section-rule { width: 56px; height: 4px; background: var(--gold); margin: 0 0 22px; }

/* ---------- Card grid ---------- */
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; background: #fff;
  border-top: 4px solid var(--gold);
}
.card p { margin: 0 0 14px; color: var(--muted); }
.card p:last-child { margin-bottom: 0; }
.card .more { font-weight: 700; text-decoration: none; color: var(--navy-700); }
.card .more:hover { color: var(--gold-dark); }
.card .more::after { content: " \2192"; }

/* ---------- Parts column lists ---------- */
.partcols { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.partcols h3 {
  border-bottom: 2px solid var(--gold); padding-bottom: 8px; margin-bottom: 14px;
}
.partcols ul { list-style: none; margin: 0; padding: 0; }
.partcols li { padding: 5px 0 5px 20px; position: relative; color: var(--ink); }
.partcols li::before {
  content: ""; position: absolute; left: 0; top: 13px;
  width: 7px; height: 7px; background: var(--gold);
}

/* ---------- Media / photos ---------- */
figure { margin: 0; }
figure img { border-radius: var(--radius); border: 1px solid var(--line); }
figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }

.split {
  display: grid; gap: 40px; align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.split.reverse > figure { order: 2; }
.split h2 { margin-top: 0; }

.card figure { margin: -26px -26px 20px; }
.card figure img {
  border: 0; border-radius: 0;
  width: 100%; height: 210px; object-fit: cover;
}

.hero-shot img {
  width: 100%; max-height: 420px; object-fit: cover;
  border-radius: var(--radius);
}

/* ---------- Facilities ---------- */
.facility { border-left: 4px solid var(--gold); padding-left: 20px; }
.facility h3 { margin-bottom: 4px; }
.facility .role { color: var(--gold-dark); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }
.facility address { font-style: normal; color: var(--muted); margin-top: 6px; }

/* ---------- CTA strip ---------- */
.strip { background: var(--navy); color: #fff; padding: 52px 0; }
.strip h2 { color: #fff; }
.strip p { color: #d6dee8; max-width: 60ch; }
.strip .wrap { display: flex; flex-wrap: wrap; gap: 26px; align-items: center; justify-content: space-between; }

/* ---------- Contact / form ---------- */
.cols2 { display: grid; gap: 46px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 15px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; font: inherit;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus {
  outline: 3px solid rgba(254,169,24,.45); outline-offset: 1px; border-color: var(--gold);
}
.field textarea { min-height: 150px; resize: vertical; }
.req { color: #b3261e; }
.formnote { font-size: 14px; color: var(--muted); }

/* ---------- Footer ---------- */
footer {
  background: var(--navy); color: #c9d3df;
  padding: 48px 0 28px; font-size: 15px;
  border-top: 4px solid var(--gold);
}
footer h4 { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 12px; }
footer a { color: #c9d3df; text-decoration: none; }
footer a:hover { color: var(--gold); }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { padding: 3px 0; }
.footgrid { display: grid; gap: 34px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.legal {
  margin-top: 34px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.15);
  font-size: 13px; color: #93a3b5;
}
.legal p { margin: 0 0 8px; }

/* ---------- Mobile ---------- */
/* Hamburger takes over at 1080px: with 7 nav items a horizontal row wraps to
   two lines below roughly this width, which reads as broken. */
@media (max-width: 1080px) {
  .masthead .wrap { flex-wrap: wrap; }
  .navtoggle { display: block; }
  .nav { flex-basis: 100%; display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding-bottom: 10px; }
  .nav a { padding: 13px 10px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav .cta a { margin-top: 8px; text-align: center; border-radius: var(--radius); }
  .hero { padding: 52px 0; }
  section { padding: 46px 0; }
  .strip .wrap { flex-direction: column; align-items: flex-start; }
}

@media print {
  .topbar, .nav, .navtoggle, .strip { display: none; }
  body { font-size: 12pt; color: #000; }
}
