/* JM Management Solutions — shared site styles */

:root {
  --navy-950: #060f1e;
  --navy-900: #0a1a2f;
  --navy-800: #10233d;
  --navy-700: #16304f;
  --gold-400: #e8d089;
  --gold-500: #d4af5a;
  --gold-600: #c9a227;
  --cream: #f7f5f0;
  --ink: #16202c;
  --ink-soft: #4b5563;
  --line: #e6e2d8;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(10, 26, 47, 0.08);
  --shadow-lg: 0 20px 50px rgba(10, 26, 47, 0.18);
  --maxw: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: "Poppins", "Inter", sans-serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--navy-900);
  letter-spacing: -0.01em;
}
p { margin: 0 0 16px; color: var(--ink-soft); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 14px;
}
.lede {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 640px;
}
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--navy-950);
  box-shadow: 0 10px 24px rgba(201, 162, 39, 0.35);
}
.btn-gold:hover { box-shadow: 0 14px 30px rgba(201, 162, 39, 0.45); }
.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }
.btn-navy {
  background: var(--navy-900);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy-800); }
.btn-block { width: 100%; justify-content: center; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo img { height: 54px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-weight: 600;
  font-size: 15px;
  color: var(--navy-900);
}
.nav-links a { padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a.active { border-bottom-color: var(--gold-600); }
.nav-cta { display: flex; align-items: center; gap: 18px; }

.nav-dropdown { position: relative; }
.nav-dropdown-toggle { display: inline-flex; align-items: center; gap: 5px; }
.nav-caret { transition: transform 0.2s ease; }
.nav-dropdown:hover .nav-caret, .nav-dropdown:focus-within .nav-caret { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 10px;
  display: grid;
  gap: 2px;
  min-width: 250px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s;
  z-index: 50;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-900);
  white-space: nowrap;
  border-bottom: none !important;
}
.nav-dropdown-menu a:hover { background: var(--cream); color: var(--gold-600); }
.nav-phone { font-weight: 700; color: var(--navy-900); font-size: 15px; white-space: nowrap; }
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  background: var(--navy-900);
  color: var(--white);
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle:hover { background: var(--navy-800); }

@media (max-width: 860px) {
  .nav-inner { position: relative; flex-wrap: wrap; }
  .nav-phone { display: none; }
  .nav-toggle { display: inline-flex; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.25s ease, opacity 0.2s ease, padding 0.25s ease;
  }
  .nav-links.open {
    max-height: 600px;
    opacity: 1;
    visibility: visible;
    padding: 8px 24px 18px;
  }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-dropdown > a { border-bottom: 1px solid var(--line); }
  .nav-links > a:last-child { border-bottom: none; }

  .nav-dropdown { position: static; width: 100%; }
  .nav-dropdown-toggle { width: 100%; justify-content: space-between; }
  .nav-dropdown-menu {
    position: static;
    transform: none;
    background: var(--cream);
    border: none;
    border-radius: 10px;
    box-shadow: none;
    padding: 0;
    min-width: 0;
    display: block;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: max-height 0.25s ease, padding 0.25s ease;
  }
  .nav-dropdown.open .nav-dropdown-menu { max-height: 500px; padding: 8px; }
  .nav-dropdown-menu a { border-bottom: none !important; padding: 12px 14px; }
}

/* Hero */
.hero {
  background:
    radial-gradient(circle at 15% 20%, rgba(212, 175, 90, 0.18), transparent 45%),
    linear-gradient(160deg, var(--navy-950), var(--navy-800));
  color: var(--white);
  padding: 96px 0 100px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { color: var(--white); font-size: 46px; margin-bottom: 20px; }
.hero .lede { color: rgba(255, 255, 255, 0.82); font-size: 19px; }
.hero-badges {
  display: flex;
  gap: 22px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.page-header .hero-badges { justify-content: center; }
.hero-badge { font-size: 14px; color: rgba(255, 255, 255, 0.85); display: flex; align-items: center; gap: 8px; }
.hero-badge svg { flex: none; }
.hero-photo {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
}

/* Banner strip (tagline graphic) */
.banner-strip { width: 100%; overflow: hidden; background: var(--navy-950); }
.banner-strip img { width: 100%; height: auto; display: block; }

/* Cards */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-6px) scale(1.015); box-shadow: var(--shadow-lg); border-color: var(--gold-500); }
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-950));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--gold-500);
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s ease;
}
.card:hover .card-icon { transform: scale(1.1); box-shadow: 0 10px 22px rgba(201, 162, 39, 0.4); }
.card h3 { font-size: 19px; margin-bottom: 10px; transition: color 0.2s ease; }
.card:hover h3 { color: var(--gold-600); }
.card p { margin-bottom: 0; font-size: 15px; }
.card a.card-link { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--gold-600); font-size: 14px; }
.card-link .arrow { display: inline-block; transition: transform 0.25s ease; }
.card:hover .card-link .arrow { transform: translateX(5px); }

/* Insurance coverage cards - icon tile, used on the insurance page */
.ins-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; }
@media (max-width: 900px) { .ins-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .ins-grid { grid-template-columns: 1fr; } }
.ins-card {
  position: relative;
  margin-top: 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 30px 22px 56px;
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s ease;
}
a.ins-card { display: block; color: inherit; text-decoration: none; }
.ins-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.ins-card-line { position: absolute; top: 0; left: 32px; right: 0; height: 3px; background: var(--accent, var(--gold-600)); }
.ins-card-icon {
  position: absolute;
  top: -32px;
  left: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--accent, var(--gold-600));
  color: var(--accent, var(--gold-600));
  display: flex;
  align-items: center;
  justify-content: center;
}
.ins-card h3 { font-size: 19px; margin: 6px 0 10px; }
.ins-card p { font-size: 14px; margin: 0; color: var(--ink-soft); }
.ins-card-arrow {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: var(--navy-900);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* "Reach out to John" personal contact card, used beside the form on service pages */
.person-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
  margin-bottom: 26px;
}
.person-card img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  border: 2px solid var(--gold-500);
}
.person-card strong { display: block; color: var(--navy-900); font-size: 15px; }
.person-card span { font-size: 13px; color: var(--ink-soft); }

/* Sections */
.section-cream { background: var(--cream); }
.section-navy { background: linear-gradient(160deg, var(--navy-950), var(--navy-800)); color: var(--white); }
.section-navy h2 { color: var(--white); }
.section-navy .lede { color: rgba(255, 255, 255, 0.82); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

.check-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--ink); }
.check-list li svg { flex: none; margin-top: 3px; color: var(--gold-600); }
.section-navy .check-list li { color: rgba(255, 255, 255, 0.9); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-num { font-family: "Poppins", sans-serif; font-weight: 800; font-size: 38px; color: var(--gold-500); }
.stat-label { font-size: 14px; color: rgba(255, 255, 255, 0.75); margin-top: 4px; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* CTA band */
.cta-band {
  background:
    radial-gradient(circle at 85% 20%, rgba(212, 175, 90, 0.14), transparent 45%),
    linear-gradient(135deg, var(--navy-800), var(--navy-950));
  color: var(--white);
  border-radius: 22px;
  padding: 52px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin-bottom: 6px; font-size: 28px; }
.cta-band p { color: rgba(255, 255, 255, 0.78); margin: 0; }

/* Service detail rows */
.service-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 22px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
}
.service-row:first-of-type { border-top: none; }
.service-row .num {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--gold-600);
}
.service-row h3 { font-size: 22px; margin-bottom: 8px; }
.service-row ul { margin: 14px 0 0; padding-left: 20px; color: var(--ink-soft); }
.service-row li { margin-bottom: 6px; }

/* Testimonial-style trust quote */
.quote-card {
  background: var(--white);
  border-left: 4px solid var(--gold-600);
  border-radius: 10px;
  padding: 28px 30px;
  box-shadow: var(--shadow);
  font-size: 17px;
  color: var(--navy-900);
  font-style: italic;
}

/* Forms */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: var(--cream);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  background: var(--white);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 13px; color: var(--ink-soft); margin-top: 10px; }

/* Contact info cards */
.contact-info { display: grid; gap: 18px; }
.contact-info .item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
}
.contact-info .item .icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--navy-900); color: var(--gold-400);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.contact-info .item strong { display: block; color: var(--navy-900); font-size: 14px; margin-bottom: 2px; }
.contact-info .item span, .contact-info .item a { color: var(--ink-soft); font-size: 15px; }

/* Footer */
footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.7);
  padding: 56px 0 28px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
footer .flogo img { height: 44px; margin-bottom: 14px; }
footer h4 { color: var(--white); font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
footer a:hover { color: var(--gold-400); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* Page header (non-home pages) */
.page-header {
  background: linear-gradient(160deg, var(--navy-950), var(--navy-800));
  color: var(--white);
  padding: 64px 0 60px;
  text-align: center;
}
.page-header h1 { color: var(--white); margin-bottom: 12px; }
.page-header p { color: rgba(255, 255, 255, 0.8); max-width: 620px; margin: 0 auto; }
