:root {
  --qme-blue: #0D6EFD;
  --qme-blue-dark: #0A58CA;
  --qme-text: #212529;
  --qme-muted: #555;
  --qme-border: #DEE2E6;
  --qme-bg: #F8F8F8;
}
* { box-sizing: border-box; }
body.site-page {
  margin: 0; padding: 0;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px; line-height: 1.65;
  color: var(--qme-text); background: #fff;
}
.site-nav {
  background: #fff; border-bottom: 1px solid var(--qme-border);
  position: sticky; top: 0; z-index: 100;
}
.site-nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 12px 16px;
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 12px 20px; justify-content: space-between;
}
.site-brand {
  font-weight: 700; font-size: 15px; text-decoration: none;
  color: var(--qme-text); display: flex; align-items: center; gap: 10px;
}
.site-brand img { width: 40px; height: 40px; object-fit: contain; }
.site-nav-links {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  list-style: none; margin: 0; padding: 0;
}
.site-nav-links a {
  text-decoration: none; color: var(--qme-text);
  font-weight: 600; font-size: 14px; padding: 6px 4px;
}
.site-nav-links a:hover { color: var(--qme-blue); }
.site-nav-links a.active { color: var(--qme-blue); border-bottom: 2px solid var(--qme-blue); }
.page-wrap { max-width: 1100px; margin: 0 auto; padding: 24px 16px 48px; }
.page-wrap h1 { font-size: 1.85rem; font-weight: 700; line-height: 1.3; margin: 0 0 16px; }
.page-wrap h2 { font-size: 1.25rem; font-weight: 700; margin: 28px 0 10px; }
.page-wrap h3 { font-size: 1.05rem; font-weight: 700; margin: 20px 0 8px; }
.page-wrap p { margin: 0 0 14px; color: var(--qme-muted); }
.page-wrap ul { margin: 0 0 16px; padding-left: 1.25rem; color: var(--qme-muted); }
.page-wrap li { margin-bottom: 6px; }
.lead { font-size: 1.05rem; color: var(--qme-text); }
.cta-box {
  background: var(--qme-bg); border: 1px solid var(--qme-border);
  border-radius: 10px; padding: 20px 22px; margin: 28px 0;
}
.cta-box a { color: var(--qme-blue); font-weight: 600; text-decoration: none; }
.cta-box a:hover { text-decoration: underline; }
.nap { font-size: 15px; line-height: 1.8; }
.btn {
  display: inline-block; background: var(--qme-blue); color: #fff !important;
  text-decoration: none !important; font-weight: 600; font-size: 14px;
  padding: 11px 18px; border-radius: 8px; margin: 4px 8px 4px 0;
}
.btn:hover { background: var(--qme-blue-dark); }
.btn-outline {
  background: #fff; color: var(--qme-blue) !important;
  border: 1px solid var(--qme-blue);
}
.btn-outline:hover { background: #eef4ff; }
.loc-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px; margin: 20px 0 32px;
}
.loc-card {
  border: 1px solid var(--qme-border); border-radius: 10px; padding: 18px;
  background: #fff; text-decoration: none; color: inherit;
  transition: box-shadow .15s, border-color .15s;
}
.loc-card:hover {
  border-color: var(--qme-blue);
  box-shadow: 0 4px 14px rgba(13,110,253,.12);
}
.loc-card h3 { margin: 0 0 6px; font-size: 1.05rem; color: var(--qme-blue); }
.loc-card p { margin: 0; font-size: 14px; }
.related-links { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 12px 0 24px; }
.related-links a { font-size: 14px; font-weight: 600; color: var(--qme-blue); text-decoration: none; }
.related-links a:hover { text-decoration: underline; }
.site-footer {
  background: var(--qme-bg); border-top: 1px solid var(--qme-border);
  padding: 28px 16px 36px; margin-top: 24px; font-size: 14px; color: var(--qme-muted);
}
.site-footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px;
}
.site-footer a { color: var(--qme-blue); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer h4 { margin: 0 0 8px; color: var(--qme-text); font-size: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 4px; }
.wb-safe-row { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.wb-safe-col { flex: 1 1 320px; min-width: 280px; }
img { max-width: 100%; height: auto; display: block; }
.hero-img { border-radius: 8px; margin-bottom: 16px; }
.home-intro { max-width: 1100px; margin: 0 auto; padding: 18px 16px 8px; }
.home-intro h1 { font-size: 1.75rem; margin: 0 0 8px; font-family: 'Open Sans', Arial, sans-serif; }
.home-intro p { margin: 0; color: #555; font-family: 'Open Sans', Arial, sans-serif; }
@media (max-width: 600px) {
  .page-wrap h1 { font-size: 1.45rem; }
  .site-nav-inner { flex-direction: column; align-items: flex-start; }
}

/* ===== Homepage polish (overrides YourQme.css without breaking layout IDs) ===== */
.home-intro {
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 16px 18px;
  text-align: left;
}
.home-intro h1 {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 700;
  line-height: 1.28;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.home-intro .home-sub,
.home-intro p.home-sub {
  margin: 0 0 16px;
  color: var(--qme-muted);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 46rem;
}
.home-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  margin-bottom: 6px;
}
.home-cta .btn {
  margin: 0;
}

/* Marketing cards: smaller headers, readable body (CSS still targeted h1; HTML uses h2/ul) */
#Card4-card-header,
#Card7-card-header,
#Card1-card-header,
#Card3-card-header,
#Card9-card-header,
#Card11-card-header,
#Card13-card-header,
#Card15-card-header,
#Card17-card-header,
#Card19-card-header {
  font-size: 1.2rem !important;
  line-height: 1.35 !important;
  padding: 10px 16px !important;
  font-weight: 700;
}

#Card4-card-item1,
#Card7-card-item1,
#Card1-card-item1,
#Card3-card-item1,
#Card9-card-item1,
#Card11-card-item1,
#Card13-card-item1,
#Card15-card-item1,
#Card17-card-item1,
#Card19-card-item1 {
  margin: 12px 16px 16px !important;
}

.home-card-copy {
  font-size: 14px !important;
  line-height: 1.55 !important;
  font-weight: 400 !important;
}
.home-card-copy h2,
.home-card-copy h3 {
  font-size: 14px !important;
  line-height: 1.55 !important;
  font-weight: 400 !important;
  margin: 0;
}
.home-card-copy ul {
  margin: 0;
  padding-left: 1.15rem;
  list-style: disc;
  color: inherit;
  font-size: 14px;
  line-height: 1.55;
}
.home-card-copy li {
  margin: 0 0 0.45em;
}
.home-card-copy li:last-child {
  margin-bottom: 0;
}

/* Tone down alternating marketing grids — less vertical sprawl */
#wb_layoutGridInfo2,
#wb_layoutGridInfo3,
#wb_LayoutGrid1,
#wb_LayoutGrid2,
#wb_LayoutGrid3,
#wb_LayoutGrid4,
#wb_LayoutGrid5,
#wb_LayoutGrid6,
#wb_LayoutGrid7,
#wb_LayoutGrid8 {
  margin-top: 0;
}

/* Services section typography */
#servicesCard1-card-item1,
#servicesCard2-card-item1,
#servicesCard3-card-item1 {
  margin: 12px 14px 6px !important;
}
#servicesCard1-card-item1 h2,
#servicesCard2-card-item1 h2,
#servicesCard3-card-item1 h2,
#servicesCard1-card-item1,
#servicesCard2-card-item1,
#servicesCard3-card-item1 {
  font-size: 1.15rem !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
  margin: 0;
}
.home-service-copy,
.home-service-copy h3 {
  font-size: 14px !important;
  line-height: 1.55 !important;
  font-weight: 500 !important;
  margin: 0 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}
#servicesCard1-card-item2,
#servicesCard2-card-item2,
#servicesCard3-card-item2 {
  margin: 6px 14px 10px !important;
}
#servicesCard1-card-item3,
#servicesCard3-card-item3 {
  margin: 0 14px 14px !important;
}
#servicesCard1-card-item3 a,
#servicesCard3-card-item3 a {
  font-size: 14px !important;
  font-weight: 600;
}

/* Locations / contact hierarchy inside services card */
.home-locations {
  display: block;
}
.home-loc-block {
  margin: 0 0 12px;
}
.home-loc-block h3 {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  margin: 0 0 4px !important;
  color: inherit;
}
.home-loc-block p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}
.home-loc-contact {
  padding-top: 6px;
  border-top: 1px solid rgba(0,0,0,.08);
}
html.darktheme .home-loc-contact {
  border-top-color: rgba(255,255,255,.15);
}
.home-loc-block a {
  color: var(--qme-blue);
  text-decoration: none;
  font-weight: 600;
}
.home-loc-block a:hover {
  text-decoration: underline;
}

/* Bio / oath image — constrain sprawl */
#wb_Image2 img,
#Image2 {
  max-width: 720px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
}
#wb_project-two {
  padding: 12px 16px 8px;
}

/* Modal body readability */
#Dialog1 .modal-body p,
#wb_Text1 p {
  font-size: 14px;
  line-height: 1.55;
}

@media (max-width: 768px) {
  .home-intro h1 { font-size: 1.35rem; }
  .home-cta { width: 100%; }
  .home-cta .btn { flex: 1 1 auto; text-align: center; }
  #Card4-card-header,
  #Card7-card-header,
  #Card1-card-header,
  #Card3-card-header,
  #Card9-card-header,
  #Card11-card-header,
  #Card13-card-header,
  #Card15-card-header,
  #Card17-card-header,
  #Card19-card-header {
    font-size: 1.05rem !important;
  }
  .home-card-copy,
  .home-card-copy ul,
  .home-service-copy,
  .home-service-copy h3 {
    font-size: 13.5px !important;
  }
  .site-nav-links {
    width: 100%;
  }
  .site-brand {
    font-size: 13px;
    max-width: 100%;
  }
}


/* ===== Fold peek + scroll cue (hero no longer monopolizes laptop viewports) ===== */
/* Reason: #wb_layoutGridWelcome / #layoutGridWelcome were height:100vh, so next
   section never peeked. Cap desktop/laptop hero so ~80–120px of #wb_layoutGridInfo2
   shows without scrolling; keep mobile usable with a shorter min-height. */
@media (min-width: 769px) {
  #wb_layoutGridWelcome {
    height: calc(100vh - 280px);
    height: calc(100dvh - 280px);
    min-height: 420px;
    max-height: 680px;
  }
  #layoutGridWelcome {
    height: 100%;
    min-height: 420px;
    max-height: 680px;
    padding: 72px 0 88px 0; /* was 188px / 150px */
  }
}
@media (max-width: 768px) {
  #wb_layoutGridWelcome {
    height: auto;
    min-height: 58vh;
    max-height: none;
  }
  #layoutGridWelcome {
    height: auto;
    min-height: 58vh;
    padding: 72px 0 96px 0;
  }
}

.hero-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 6;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 14px;
  text-decoration: none;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
  opacity: 1;
  transition: opacity 0.45s ease, background 0.2s ease;
}
.hero-scroll-cue:hover,
.hero-scroll-cue:focus-visible {
  background: rgba(13, 110, 253, 0.55);
  color: #fff;
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.hero-scroll-cue.is-faded {
  opacity: 0;
  pointer-events: none;
}
.hero-scroll-cue-icon {
  display: block;
  font-size: 18px;
  line-height: 1;
  animation: hero-scroll-bounce 1.55s ease-in-out infinite;
}
.hero-scroll-cue.is-faded .hero-scroll-cue-icon {
  animation: none;
}
@keyframes hero-scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scroll-cue-icon { animation: none; }
  .hero-scroll-cue { transition: none; }
}
