:root {
  --navy: #1C3A5F;
  --green: #2C5E4F;
  --blue: #4C87C7;
  --white: #FFFFFF;
  --softgray: #EEF1F4;
  --slate: #59636F;

  --container: 1120px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --shadow2: 0 6px 18px rgba(0,0,0,.06);

  --text: var(--slate);
  --heading: var(--navy);
  --bg: var(--white);
  --muted: var(--softgray);

  --focus: 0 0 0 3px rgba(76,135,199,.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Lato", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  padding: 10px 14px;
  background: var(--navy);
  color: white;
  border-radius: 10px;
  z-index: 9999;
}
.skip-link:focus { left: 12px; top: 12px; outline: none; box-shadow: var(--focus); }

header.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(28,58,95,.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: .2px;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}
.brand span.small {
  font-weight: 700;
  color: var(--green);
}

nav.primary-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
nav.primary-nav a, nav.primary-nav button.navbtn {
  font: inherit;
  color: var(--navy);
  background: transparent;
  border: 0;
  padding: 10px 10px;
  border-radius: 10px;
  cursor: pointer;
}
nav.primary-nav a:hover, nav.primary-nav button.navbtn:hover {
  background: rgba(28,58,95,.06);
  text-decoration: none;
}
nav.primary-nav a:focus-visible, nav.primary-nav button.navbtn:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.dropdown {
  position: relative;
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 280px;
  max-width: 380px;
  max-height: 70vh;
  overflow: auto;
  background: white;
  border: 1px solid rgba(28,58,95,.10);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 10px;
  display: none;
}
.dropdown-menu a {
  display: block;
  padding: 10px 10px;
  border-radius: 10px;
  color: var(--navy);
}
.dropdown-menu a:hover {
  background: rgba(28,58,95,.06);
  text-decoration: none;
}
.dropdown.open .dropdown-menu {
  display: block;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn:focus-visible { outline: none; box-shadow: var(--focus); }

.btn-primary {
  background: var(--green);
  color: white;
}
.btn-primary:hover {
  filter: brightness(.95);
  text-decoration: none;
}
.btn-secondary {
  background: transparent;
  border-color: rgba(28,58,95,.18);
  color: var(--navy);
}
.btn-secondary:hover {
  background: rgba(28,58,95,.06);
  text-decoration: none;
}

.mobile-toggle {
  display: none;
  border: 1px solid rgba(28,58,95,.18);
  background: white;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}
.mobile-toggle:focus-visible { outline: none; box-shadow: var(--focus); }

@media (max-width: 920px) {
  nav.primary-nav {
    position: fixed;
    inset: 64px 16px auto 16px;
    background: white;
    border: 1px solid rgba(28,58,95,.10);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  nav.primary-nav.open { display: flex; }
  .header-cta { display: none; }
  .mobile-toggle { display: inline-flex; align-items:center; gap:8px; }
  .dropdown-menu {
    position: static;
    min-width: unset;
    max-width: unset;
    max-height: 50vh;
    border: none;
    box-shadow: none;
    padding: 0 0 6px 0;
  }
  .dropdown.open .dropdown-menu {
    display: block;
  }
}

main { display: block; }

.section {
  padding: 70px 0;
}
.section.alt {
  background: var(--muted);
}

.hero {
  padding: 70px 0 55px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 28px;
  align-items: center;
}
@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; }
}

.kicker {
  color: var(--green);
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  font-size: .9rem;
}
h1 {
  margin: 10px 0 12px;
  color: var(--heading);
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.15;
  letter-spacing: -.3px;
}
h2 {
  margin: 0 0 10px;
  color: var(--heading);
  font-size: clamp(1.4rem, 2vw, 2rem);
  line-height: 1.2;
}
h3 {
  margin: 0 0 8px;
  color: var(--heading);
  font-size: 1.15rem;
  line-height: 1.25;
}
p { margin: 0 0 14px; }

.lead {
  font-size: 1.12rem;
  color: rgba(89,99,111,.95);
}

.card {
  background: white;
  border: 1px solid rgba(28,58,95,.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow2);
  padding: 20px;
}
.grid {
  display: grid;
  gap: 16px;
}
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 920px) {
  .grid.cols-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid.cols-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 560px) {
  .grid.cols-4, .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
}

.list {
  margin: 0;
  padding-left: 18px;
}
.list li { margin: 6px 0; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}
@media (max-width: 920px) {
  .split { grid-template-columns: 1fr; }
}

.callout {
  border-left: 4px solid var(--green);
  padding: 16px 16px 14px;
  background: rgba(44,94,79,.06);
  border-radius: 12px;
}

.testimonials {
  position: relative;
}
.testimonial {
  display: none;
}
.testimonial.active { display: block; }
blockquote {
  margin: 0;
  padding: 0;
  color: var(--navy);
  font-weight: 700;
  font-size: 1.08rem;
}
.cite {
  margin-top: 10px;
  font-weight: 700;
  color: rgba(89,99,111,.95);
}
.slider-controls {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.slider-controls button {
  border: 1px solid rgba(28,58,95,.18);
  background: white;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}
.slider-controls button:focus-visible { outline:none; box-shadow: var(--focus); }

.table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border: 1px solid rgba(28,58,95,.10);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow2);
}
.table th, .table td {
  padding: 12px 12px;
  border-bottom: 1px solid rgba(28,58,95,.08);
  vertical-align: top;
}
.table th {
  text-align: left;
  color: var(--navy);
  background: rgba(238,241,244,.9);
  font-weight: 800;
}
.table tr:last-child td { border-bottom: none; }

details.faq {
  border: 1px solid rgba(28,58,95,.10);
  border-radius: 14px;
  background: white;
  box-shadow: var(--shadow2);
  padding: 14px 16px;
}
details.faq + details.faq { margin-top: 10px; }
details.faq summary {
  cursor: pointer;
  font-weight: 900;
  color: var(--navy);
  outline: none;
}
details.faq summary:focus-visible { box-shadow: var(--focus); border-radius: 10px; }
details.faq p { margin-top: 10px; }

footer {
  background: var(--navy);
  color: rgba(255,255,255,.9);
  padding: 52px 0;
  margin-top: 40px;
}
footer a { color: white; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 22px;
}
@media (max-width: 920px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.smallprint {
  margin-top: 20px;
  font-size: .92rem;
  color: rgba(255,255,255,.75);
}

.form {
  display: grid;
  gap: 12px;
}
label { font-weight: 800; color: var(--navy); }
input, select, textarea {
  font: inherit;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(28,58,95,.18);
  background: white;
}
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-color: rgba(76,135,199,.9);
}
textarea { min-height: 140px; resize: vertical; }
/* ------------------------------
   Contact form polish (CMB)
-------------------------------- */
.cmb-form {
  display: grid;
  gap: 14px;
}

.cmb-form label {
  display: block;
  font-weight: 700;
  margin: 0 0 6px;
}

.cmb-form input,
.cmb-form select,
.cmb-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(28, 58, 95, 0.25);
  background: #fff;
  font: inherit;
  line-height: 1.25;
}

.cmb-form textarea {
  min-height: 140px;
  resize: vertical;
}

.cmb-form input:focus,
.cmb-form select:focus,
.cmb-form textarea:focus {
  outline: none;
  border-color: rgba(28, 58, 95, 0.55);
  box-shadow: 0 0 0 4px rgba(28, 58, 95, 0.10);
}

.cmb-form .grid.cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}

@media (max-width: 720px) {
  .cmb-form .grid.cols-2 {
    grid-template-columns: 1fr;
  }
}

.cmb-form button[type="submit"] {
  justify-self: start;
}

/* Honeypot hidden */
.cmb-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
/* HARD HIDE honeypot (wins against almost anything) */
.cmb-hp{
  position: absolute !important;
  left: -99999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
/* Contact form layout overrides */
.cmb-form { margin-top: 14px; }

/* Grid layout */
.cmb-grid{
  display:grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}

/* Each field */
.cmb-field{
  display:flex !important;
  flex-direction:column !important;
}

.cmb-span-2{
  grid-column: 1 / -1;
}

.cmb-form label{
  margin: 0 0 6px !important;
  font-weight: 700 !important;
}

/* Inputs */
.cmb-form input,
.cmb-form select,
.cmb-form textarea{
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 12px 12px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(28, 58, 95, 0.25) !important;
  background: #fff !important;
  font: inherit !important;
  line-height: 1.25 !important;
  margin: 0 !important;
}

/* Textarea sizing */
.cmb-form textarea{
  min-height: 150px !important;
  resize: vertical !important;
}

/* Button row */
.cmb-actions{
  display:flex;
  justify-content:flex-start;
}

/* Mobile: stack */
@media (max-width: 720px){
  .cmb-grid{
    grid-template-columns: 1fr !important;
  }
  .cmb-span-2{
    grid-column: auto;
  }
}

/* ---------- HERO (Index) ---------- */
.hero {
  padding: clamp(18px, 3vw, 34px) 0;
}

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
  background: #0b1b2a; /* fallback if image fails */
}

/* Image layer */
.hero-media {
  background-image: url("../img/hero-northern-michigan.jpg");
  background-size: cover;
  background-position: center;
  min-height: clamp(260px, 42vw, 520px);
  filter: saturate(1.05) contrast(1.05);
}

/* Dark gradient for readable text */
.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(11, 27, 42, 0.78) 0%,
    rgba(11, 27, 42, 0.46) 45%,
    rgba(11, 27, 42, 0.10) 80%,
    rgba(11, 27, 42, 0.00) 100%
  );
}

/* Text layer */
.hero-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  gap: 12px;
  padding: clamp(18px, 4vw, 44px);
  max-width: 720px;
  color: #fff;
  z-index: 1;
}

.hero-overlay h1,
.hero-overlay h2 {
  margin: 0;
  line-height: 1.05;
  font-size: clamp(28px, 4.2vw, 54px);
  letter-spacing: -0.02em;
}

.hero-overlay p {
  margin: 0;
  font-size: clamp(15px, 1.6vw, 18px);
  color: rgba(255, 255, 255, 0.9);
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* Mobile: make gradient more even & center text */
@media (max-width: 720px) {
  .hero-card::after {
    background: linear-gradient(
      180deg,
      rgba(11, 27, 42, 0.65) 0%,
      rgba(11, 27, 42, 0.55) 55%,
      rgba(11, 27, 42, 0.35) 100%
    );
  }

  .hero-overlay {
    max-width: none;
    align-content: end;
    text-align: left;
  }
}
/* Hero image card (index) */
.hero .wrap {
  align-items: center; /* keeps text + image aligned on desktop */
}

.hero-media-card {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
  background: #0b1b2a; /* fallback */
}

.hero-media-card img {
  display: block;
  width: 100%;
  height: clamp(260px, 34vw, 420px); /* responsive height */
  object-fit: cover;
  object-position: center;
  border-radius: 22px; /* keeps edges crisp in some browsers */
}

/* Mobile: stack nicely and avoid oversized height */
@media (max-width: 900px) {
  .hero-media-card img {
    height: clamp(220px, 50vw, 340px);
  }
}
/* Hero image placed under H1 (left column) */
.hero-media-left {
  margin: 16px 0 14px; /* space above/below image */
}

.hero-media-card {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
  background: #0b1b2a;
}

.hero-media-card img {
  display: block;
  width: 100%;
  height: clamp(220px, 24vw, 360px); /* fits under headline on desktop */
  object-fit: cover;
  object-position: center;
}

/* Mobile: give it a bit more height */
@media (max-width: 900px) {
  .hero-media-card img {
    height: clamp(200px, 52vw, 320px);
  }
}
/* Hero: move lead + buttons to the "right side" of the left column */
.hero-side {
  max-width: 460px;
  margin-left: auto;          /* pushes it toward the right edge */
  text-align: left;
  padding-top: 6px;
}

.hero-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Mobile: keep it readable */
@media (max-width: 900px) {
  .hero-side {
    max-width: none;
    margin-left: 0;
  }
}
/* Hero: 2-column grid where the H1 spans both columns */
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr; /* tweak as you like */
  gap: 22px;
  align-items: start;
}

/* Make kicker + H1 span across both columns */
.hero-top {
  grid-column: 1 / -1;
}

/* Left column */
.hero-media {
  grid-column: 1;
}

/* Right column */
.hero-cardcol {
  grid-column: 2;
}

/* Hero image card */
.hero-media-card {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
  background: #0b1b2a;
}

.hero-media-card img {
  display: block;
  width: 100%;
  height: clamp(240px, 26vw, 380px);
  object-fit: cover;
  object-position: center;
}

/* Buttons row */
.hero-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Mobile: stack everything */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-top,
  .hero-media,
  .hero-cardcol {
    grid-column: 1;
  }

  .hero-media-card img {
    height: clamp(210px, 52vw, 320px);
  }
}
/* HERO grid: H1 spans both columns; image + card side-by-side */
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 22px;
  align-items: start;
}

.hero-top {
  grid-column: 1 / -1;
}

.hero-media {
  grid-column: 1;
}

.hero-cardcol {
  grid-column: 2;
}

.hero-media-card {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
  background: #0b1b2a;
}

.hero-media-card img {
  display: block;
  width: 100%;
  height: clamp(240px, 26vw, 380px);
  object-fit: cover;
  object-position: center;
}

.hero-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-top,
  .hero-media,
  .hero-cardcol {
    grid-column: 1;
  }

  .hero-media-card img {
    height: clamp(210px, 52vw, 320px);
  }
}
/* =========================
   HERO (Option A - Photo)
   ========================= */

.hero--photo {
  padding: clamp(18px, 3vw, 34px) 0;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.18);
  background: #0b1b2a;
  min-height: clamp(420px, 48vw, 560px);
}

/* Background image layer */
.hero-panel__bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/CMB%20Northern%20Michigan%20Billing.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.02); /* slight “cinematic” scale */
  filter: saturate(1.05) contrast(1.05);
}

/* Readability overlay (dark → transparent) */
.hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(11, 27, 42, 0.55) 0%,
    rgba(11, 27, 42, 0.38) 40%,
    rgba(11, 27, 42, 0.16) 70%,
    rgba(11, 27, 42, 0.00) 100%
  );
}

/* Content on top of image */
.hero-panel__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: clamp(22px, 4vw, 52px);
  color: #fff;
}

.hero-panel__content .kicker {
  color: rgba(255,255,255,0.9);
}

.hero-panel__content h1 {
	 color: #fff;
  margin: 10px 0 12px;
  line-height: 1.05;
}

.hero-panel__content .lead {
  margin: 0;
  color: rgba(255,255,255,0.92);
  max-width: 62ch;
}

/* Buttons row */
.hero-panel__actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Floating card on the right */
.hero-panel__card {
  position: absolute;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  width: min(420px, 40%);
  z-index: 2;
}

/* Make the card feel like it belongs on top of the image */
.hero-panel__card .card {
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.35);
}

/* Tablet/mobile adjustments */
@media (max-width: 980px) {
  .hero-panel {
    min-height: 540px;
  }

  .hero-panel::after {
    background: linear-gradient(
      180deg,
      rgba(11, 27, 42, 0.78) 0%,
      rgba(11, 27, 42, 0.62) 55%,
      rgba(11, 27, 42, 0.40) 100%
    );
  }

  .hero-panel__card {
    position: relative;
    right: auto;
    bottom: auto;
    width: auto;
    margin: 0 clamp(16px, 4vw, 24px) clamp(18px, 4vw, 24px);
    z-index: 1;
  }

  .hero-panel__content {
    padding-bottom: 10px;
    max-width: none;
  }
}