/* ===== Middletown Police Auxiliary — Stylesheet ===== */

:root {
  --navy: #0f2747;
  --navy-light: #1c3a63;
  --navy-dark: #0a1c33;
  --gold: #c8a24a;
  --gold-light: #e0c374;
  --slate: #5b6b80;
  --bg: #f6f8fb;
  --bg-alt: #ffffff;
  --text: #1f2a37;
  --text-muted: #5b6b80;
  --border: #e2e8f0;
  --shadow: 0 6px 24px rgba(15, 39, 71, 0.08);
  --shadow-lg: 0 16px 48px rgba(15, 39, 71, 0.14);
  --radius: 12px;
  --max: 1140px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

/* Always keep the text-insertion caret visible against light fields */
input, textarea, select { caret-color: var(--navy); }

a { color: var(--navy); text-decoration: none; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.2px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary { background: var(--gold); color: var(--navy-dark); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-light); transform: translateY(-2px); box-shadow: var(--shadow); }

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand .shield {
  height: 54px; width: auto; flex: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.05rem; letter-spacing: 0.3px; }
.brand-text span { font-size: 0.72rem; color: var(--gold-light); text-transform: uppercase; letter-spacing: 1.5px; }

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a {
  color: #dce4ef;
  padding: 9px 16px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover { background: var(--navy-light); color: #fff; }
.nav-links a.active { color: var(--gold-light); }
.nav-links .btn { color: var(--navy-dark); padding: 10px 20px; margin-left: 8px; }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; padding: 10px;
}
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: 0.25s; }
.nav-toggle span + span { margin-top: 6px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(10,28,51,0.92), rgba(28,58,99,0.82)),
    radial-gradient(circle at 80% 20%, rgba(200,162,74,0.25), transparent 55%);
  color: #fff;
  padding: 96px 0 104px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 14px);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 760px; }
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 18px;
  padding: 6px 14px;
  border: 1px solid rgba(200,162,74,0.45);
  border-radius: 50px;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.12; letter-spacing: -0.5px; margin-bottom: 20px; }
.hero p { font-size: 1.16rem; color: #d3deec; max-width: 600px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== Sections ===== */
section { padding: 78px 0; }
.section-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.section-head .eyebrow { color: var(--gold); border-color: rgba(200,162,74,0.4); }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); color: var(--navy); letter-spacing: -0.4px; margin-bottom: 14px; }
.section-head p { color: var(--text-muted); font-size: 1.08rem; }
.bg-alt { background: var(--bg-alt); }
.bg-navy { background: var(--navy); color: #fff; }

/* ===== Cards / Grid ===== */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--gold-light);
  border-radius: 12px;
  margin-bottom: 18px;
}
.card h3 { color: var(--navy); font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.98rem; }

/* ===== Stats ===== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat .num { font-size: 2.6rem; font-weight: 800; color: var(--gold-light); line-height: 1; }
.stat .label { font-size: 0.9rem; color: #cdd8e6; text-transform: uppercase; letter-spacing: 1px; margin-top: 8px; }

/* ===== Split / Media ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split h2 { color: var(--navy); font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 18px; letter-spacing: -0.4px; }
.split p { color: var(--text-muted); margin-bottom: 16px; }
.media-card {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: var(--radius);
  min-height: 340px;
  display: grid; place-items: center;
  color: var(--gold-light);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.media-card::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 3px, transparent 3px 18px);
}
.media-card.has-photo::before { display: none; }
.media-card .media-photo {
  width: 100%; height: 100%;
  min-height: 340px;
  object-fit: cover;
  display: block;
}
.media-card .photo-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(10,28,51,0.88), transparent);
  color: #fff;
  font-size: 0.85rem;
  padding: 28px 18px 12px;
}

/* ===== Photo gallery (crossfading) ===== */
.media-card.photo-gallery .gallery-slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.media-card.photo-gallery .gallery-slide.is-active { opacity: 1; }
.media-card.photo-gallery .photo-caption {
  transition: opacity 0.4s ease;
}
.media-card.photo-gallery .gallery-dots {
  position: absolute; right: 14px; bottom: 14px;
  display: flex; gap: 6px;
  z-index: 2;
}
.media-card.photo-gallery .gallery-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.45);
  padding: 0;
  cursor: pointer;
}
.media-card.photo-gallery .gallery-dots button.is-active { background: var(--gold-light); }

/* ===== Checklist ===== */
.checklist { list-style: none; }
.checklist li { position: relative; padding-left: 34px; margin-bottom: 14px; color: var(--text); }
.checklist li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 22px; height: 22px;
  background: var(--gold);
  color: var(--navy-dark);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.78rem; font-weight: 800;
}

/* ===== Steps ===== */
.steps { counter-reset: step; display: grid; gap: 22px; }
.step {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow);
}
.step .num-badge {
  counter-increment: step;
  flex: none;
  width: 44px; height: 44px;
  background: var(--navy);
  color: var(--gold-light);
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; font-size: 1.1rem;
}
.step h3 { color: var(--navy); margin-bottom: 6px; font-size: 1.12rem; }
.step p { color: var(--text-muted); font-size: 0.97rem; }

/* ===== CTA band ===== */
.cta-band { text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 14px; }
.cta-band p { color: #cdd8e6; max-width: 540px; margin: 0 auto 28px; font-size: 1.08rem; }

/* ===== Forms ===== */
.form-wrap {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 38px;
  box-shadow: var(--shadow-lg);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.92rem; color: var(--navy); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.97rem;
  color: var(--text);
  caret-color: var(--navy);
  background: #fbfcfe;
  transition: border 0.15s, box-shadow 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--navy-light);
  box-shadow: 0 0 0 3px rgba(28,58,99,0.12);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }
.form-success {
  display: none;
  background: #e9f6ec;
  border: 1px solid #b6e0bf;
  color: #1f7a3d;
  padding: 16px 18px;
  border-radius: 8px;
  margin-bottom: 22px;
  font-weight: 500;
}
.form-success.show { display: block; }

/* ===== Contact info list ===== */
.info-list { list-style: none; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.info-list .ic {
  flex: none; width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--gold-light);
  border-radius: 10px;
  display: grid; place-items: center;
}
.info-list strong { display: block; color: var(--text-muted); font-size: 1rem; }
.info-list span, .info-list span a { color: var(--text-muted); font-size: 0.95rem; }

/* ===== Page header (interior pages) ===== */
.page-header {
  background:
    linear-gradient(135deg, rgba(10,28,51,0.94), rgba(28,58,99,0.86)),
    radial-gradient(circle at 85% 25%, rgba(200,162,74,0.22), transparent 55%);
  color: #fff;
  padding: 66px 0;
  text-align: center;
}
.page-header h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -0.5px; margin-bottom: 10px; }
/* Longer headline (Recruitment) — capped so it stays on one line on desktop */
.page-header h1.head-long { font-size: clamp(1.6rem, 3.4vw, 2.55rem); }
.page-header p { color: #d3deec; max-width: 580px; margin: 0 auto; font-size: 1.08rem; }
.breadcrumb { font-size: 0.85rem; color: var(--gold-light); margin-bottom: 14px; letter-spacing: 0.5px; }
.breadcrumb a { color: var(--gold-light); opacity: 0.85; }
.breadcrumb a:hover { opacity: 1; }

/* ===== Requirements table ===== */
.req-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-alt);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.req-table th, .req-table td { text-align: left; padding: 15px 22px; vertical-align: top; }
.req-table thead th { background: var(--navy); color: #fff; font-size: 0.92rem; letter-spacing: 0.5px; }
.req-table tbody tr { border-top: 1px solid var(--border); }
.req-table tbody tr:nth-child(even) { background: #fafbfd; }
.req-table td:first-child { font-weight: 700; color: var(--navy); white-space: nowrap; width: 32%; }
.req-table td:last-child { color: var(--text-muted); }

/* ===== Benefit blocks ===== */
.benefit {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}
.benefit h3 { color: var(--navy); font-size: 1.2rem; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.benefit p { color: var(--text-muted); margin-bottom: 10px; }
.benefit p:last-child { margin-bottom: 0; }
.benefit .amount { color: var(--gold); font-weight: 800; }
.benefit ul { margin: 8px 0 0 20px; color: var(--text-muted); }
.benefit ul li { margin-bottom: 4px; }

/* ===== Lead paragraph ===== */
.lead { font-size: 1.18rem; color: var(--text); line-height: 1.6; }
.prose h2 { color: var(--navy); font-size: clamp(1.5rem, 3vw, 2rem); margin: 36px 0 14px; letter-spacing: -0.3px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--text-muted); margin-bottom: 18px; }
.prose .narrow { max-width: 820px; }

/* ===== Role list (emoji bullets) ===== */
.role-list { list-style: none; max-width: 640px; margin: 0 auto; }
.role-list li {
  display: flex; gap: 16px; align-items: center;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 22px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  font-size: 1.02rem;
  color: var(--text);
}
.role-list li .emoji { font-size: 1.5rem; flex: none; }

.disclaimer-note { font-size: 0.82rem; color: var(--text-muted); font-style: italic; margin-top: 8px; }

/* ===== Two-stage application flow ===== */
.steps-bar {
  display: flex; flex-wrap: wrap; gap: 10px;
  list-style: none; margin: 0 0 26px; padding: 0;
  counter-reset: none;
}
.steps-bar li {
  display: flex; align-items: center; gap: 10px;
  flex: 1 1 240px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-alt);
  color: var(--text-muted);
  font-size: 0.94rem; font-weight: 600;
}
.steps-bar li .n {
  flex: none;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--border); color: var(--navy);
  font-size: 0.82rem; font-weight: 800;
}
.steps-bar li.current { border-color: var(--gold); background: #fffdf7; color: var(--navy); }
.steps-bar li.current .n { background: var(--gold); color: var(--navy-dark); }
.steps-bar li.done { border-color: #b6e0bf; background: #f2faf4; }
.steps-bar li.done .n { background: #2f8a4d; color: #fff; }
.steps-bar li.done a { display: flex; align-items: center; gap: 10px; color: #1f7a3d; }

.prefill-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 50px;
  background: #eef3fb;
  border: 1px solid #cddbf0;
  color: var(--navy-light);
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: none;
  vertical-align: middle;
}
.field input.is-prefilled, .field textarea.is-prefilled { background: #f7faff; }

.carried-note {
  background: #eef3fb;
  border: 1px solid #cddbf0;
  color: var(--navy);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.93rem;
  margin-bottom: 16px;
}
.warn-note {
  background: #fff4e8;
  border: 1px solid #e8c49a;
  color: #7a4d12;
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 0.94rem;
  margin-bottom: 18px;
}
.warn-note a { color: #7a4d12; text-decoration: underline; font-weight: 600; }

.notice-box {
  background: #f3f6fc;
  border: 1px solid #cddbf0;
  border-left: 4px solid var(--navy-light);
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 0.93rem;
  color: var(--text);
  margin-bottom: 18px;
}
.notice-box strong { color: var(--navy); }

.agreement {
  background: #fbfcfe;
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  padding: 22px 24px;
  margin-bottom: 20px;
}
.agreement p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 14px; }
.agreement p:last-child { margin-bottom: 0; }

/* ===== Application form ===== */
.app-intro { max-width: 820px; margin: 0 auto 64px; }
.app-form { max-width: 880px; margin: 0 auto; }
.app-form fieldset { border: none; padding: 0; margin: 0 0 14px; min-width: 0; }
.section-bar {
  background: var(--navy);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 12px 20px;
  border-radius: 8px;
  margin: 38px 0 22px;
}
.section-bar:first-of-type { margin-top: 0; }
.section-bar .sub { display: block; font-size: 0.82rem; font-weight: 400; color: #c8d3e2; margin-top: 2px; }

.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.form-row-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.req { color: #b23b3b; }

.radio-group { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-top: 4px; }
.radio-group.tight { gap: 8px 16px; }
.radio-group label {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 500; font-size: 0.95rem; color: var(--text);
  cursor: pointer; margin: 0;
}
.radio-group input { width: auto; }

.yn { display: inline-flex; gap: 18px; padding-top: 4px; }

.subfield-label { font-weight: 600; font-size: 0.92rem; color: var(--navy); margin-bottom: 7px; display: block; }

.table-scroll { overflow-x: auto; margin-bottom: 18px; -webkit-overflow-scrolling: touch; }
.input-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.input-table th {
  background: var(--navy); color: #fff; font-size: 0.82rem; font-weight: 600;
  padding: 9px 10px; text-align: left; letter-spacing: 0.3px;
}
.input-table td { padding: 6px; border: 1px solid var(--border); }
.input-table td.rowlabel { background: #f1f4f8; font-weight: 700; color: var(--navy); font-size: 0.85rem; white-space: nowrap; }
.input-table input {
  width: 100%; border: none; background: transparent; padding: 8px 8px;
  font-family: inherit; font-size: 0.93rem; color: var(--text); caret-color: var(--navy);
}
.input-table input:focus { outline: none; background: #eef3fb; border-radius: 4px; }

.subblock {
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  padding: 22px 22px 6px;
  margin-bottom: 18px;
  background: #fbfcfe;
}
.subblock h4 { color: var(--navy); font-size: 1rem; margin-bottom: 16px; }

.affirm {
  display: flex; gap: 12px; align-items: flex-start;
  background: #fbfcfe; border: 1px solid var(--border); border-radius: 8px;
  padding: 18px 20px; margin: 8px 0 22px;
}
.affirm input { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.affirm label { font-size: 0.95rem; color: var(--text); line-height: 1.5; }

.privacy-note {
  background: #fff8e8;
  border: 1px solid #e8d49a;
  border-radius: 8px;
  padding: 16px 18px;
  font-size: 0.9rem;
  color: #7a5d12;
  margin-bottom: 26px;
}
.privacy-note strong { color: #6a4f0a; }

.field .hint { font-weight: 400; font-size: 0.82rem; color: var(--text-muted); }

@media (max-width: 720px) {
  .form-row-3, .form-row-4 { grid-template-columns: 1fr; }
}

/* ===== Quote ===== */
.quote {
  max-width: 760px; margin: 0 auto; text-align: center;
}
.quote blockquote { font-size: 1.35rem; font-style: italic; color: var(--navy); line-height: 1.5; }
.quote .who { margin-top: 18px; color: var(--gold); font-weight: 700; letter-spacing: 0.5px; }

/* ===== Footer ===== */
.site-footer { background: var(--navy-dark); color: #b9c5d6; padding: 56px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; letter-spacing: 0.5px; }
.site-footer a { color: #b9c5d6; display: block; padding: 5px 0; font-size: 0.93rem; }
.site-footer a:hover { color: var(--gold-light); }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; color: #fff; }
.footer-brand .shield { height: 52px; width: auto; }
.media-patch {
  width: min(230px, 60%); height: auto;
  filter: drop-shadow(0 10px 26px rgba(0,0,0,0.4));
}
.footer-brand strong { font-size: 1.05rem; }
.footer-about { font-size: 0.92rem; max-width: 320px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 28px;
  /* matches .footer-about so the footer reads at one consistent weight */
  font-size: 0.92rem; color: #b9c5d6;
}
.disclaimer { font-size: 0.8rem; color: #6b7a90; margin-top: 12px; line-height: 1.5; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
/* Nav switches to the hamburger menu well before the links would wrap
   (the full link set wraps mid-way through the ~721–960px tablet range) */
@media (max-width: 1010px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 74px; left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 16px 20px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.25);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 12px; border-radius: 6px; }
  .nav-links .btn { margin: 10px 0 0; text-align: center; }
}
@media (max-width: 720px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  section { padding: 56px 0; }
  .hero { padding: 70px 0 78px; }
}

/* ===== Inline location photo (contact page) ===== */
.location-photo {
  margin-top: 26px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.location-photo img { width: 100%; height: 200px; object-fit: cover; }
.location-photo figcaption {
  padding: 10px 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-top: none;
}

/* ===== NJ OEM mark ===== */
/* mirrors .footer-brand so both organisations read at equal weight */
.footer-oem {
  display: flex; align-items: center; gap: 12px;
  margin-top: 30px; padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: #fff;
}
.footer-oem img { height: 52px; width: auto; flex: none; }
.footer-oem strong { font-size: 1.05rem; }

/* centred OEM mark inside a prose column */
.oem-mark {
  display: block; margin: 0 auto 20px;
  height: 140px; width: auto;
}
/* on the dark page header */
.page-header .oem-mark {
  height: 104px; margin-bottom: 18px;
  filter: drop-shadow(0 8px 22px rgba(0,0,0,0.4));
}
@media (max-width: 720px) {
  .oem-mark { height: 104px; }
  .page-header .oem-mark { height: 82px; }
  .footer-oem img { height: 46px; }
}
