/* The service business systems map (map.html). Uses the tokens from styles.css. */

.map-wrap { max-width: 64rem; }
.map-hero { padding-top: clamp(1.25rem, 3vw, 2rem); padding-bottom: 0; }
.map-hero h1 { margin: .4rem 0 .5rem; font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.02; }
.map-lede { font-size: 1.05rem; line-height: 1.5; color: var(--muted); max-width: 46rem; margin: 0; }
.map-note { margin-top: .75rem; color: var(--muted); }

.map-steps { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 0 0 1.25rem; padding: 0; font-size: .85rem; color: var(--muted); }
.map-steps li { display: flex; align-items: center; gap: .45rem; }
.map-steps span { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 1px solid var(--line); font-size: .75rem; }
.map-steps .is-current { color: var(--ink); font-weight: 600; }
.map-steps .is-current span { background: var(--red); border-color: var(--red); color: var(--cream); }
.map-steps .is-done span { background: var(--red-light); border-color: transparent; color: var(--red); }

.map-card { background: var(--cream); border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.25rem, 4vw, 2.25rem); margin-bottom: 1.25rem; box-shadow: 0 1px 0 rgba(0,0,0,.02); }
.map-card h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin: 0 0 .5rem; }
.map-sub { color: var(--muted); margin: 0 0 1.5rem; line-height: 1.5; }
.map-kicker { font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: var(--orange-deep); margin: 0 0 .5rem; }
.map-bar { height: 4px; background: var(--line); border-radius: 4px; margin: 0 0 1.25rem; overflow: hidden; }
.map-bar span { display: block; height: 100%; background: var(--red); transition: width .3s ease; }

.map-form label, .map-q { display: flex; flex-direction: column; gap: .4rem; font-weight: 600; font-size: .95rem; }
.map-form input, .map-form select, .map-q input, .map-q textarea {
  font: inherit; font-weight: 400; padding: .8rem .9rem; border: 1px solid var(--line-2, var(--line)); border-radius: 10px; background: #fff; color: var(--ink); width: 100%;
}
.map-form input:focus, .map-form select:focus, .map-q input:focus, .map-q textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; }
.map-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.map-grid__wide { grid-column: 1 / -1; }
.map-opt { font-weight: 400; color: var(--muted); }
.map-check { display: flex !important; flex-direction: row !important; align-items: flex-start; gap: .6rem; font-weight: 400 !important; font-size: .85rem !important; color: var(--muted); margin-bottom: 1.25rem; line-height: 1.45; }
.map-check input { width: auto !important; margin-top: .2rem; }
.map-q { margin-bottom: 1.1rem; }
.map-q textarea { resize: vertical; }

.map-sys { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 1.1rem 0; }
.map-sys legend { display: flex; flex-direction: column; gap: .2rem; padding: 0; margin-bottom: .75rem; }
.map-sys legend span { color: var(--muted); font-size: .92rem; }
.map-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.map-chips--hours { margin-top: .6rem; padding-left: .75rem; border-left: 2px solid var(--red-light); }
.map-chip { font: inherit; font-size: .88rem; padding: .55rem .85rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; transition: background .15s, border-color .15s; }
.map-chip:hover { border-color: var(--red); }
.map-chip.is-on { background: var(--red); border-color: var(--red); color: var(--cream); }

.map-nav { display: flex; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.map-msg { min-height: 1.2em; margin: .75rem 0 0; font-size: .9rem; }
.map-msg.is-error { color: #b42318; }
.map-fine { font-size: .8rem; color: var(--muted); margin-top: 1rem; line-height: 1.5; }

.map-picklist { display: grid; gap: .6rem; }
.map-pick { display: flex; gap: .75rem; align-items: flex-start; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.map-pick.is-on { border-color: var(--red); background: var(--red-hover); }
.map-pick input { margin-top: .3rem; }
.map-pick span { display: flex; flex-direction: column; gap: .15rem; }
.map-pick em { font-style: normal; color: var(--muted); font-size: .85rem; }

.map-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.25rem 0 1.75rem; }
.map-stats div { background: var(--red-light); border-radius: 12px; padding: 1rem; }
.map-stats strong { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--red); }
.map-stats span { font-size: .85rem; color: var(--ink); line-height: 1.35; }
.map-result { border-top: 1px solid var(--line); padding: 1.25rem 0; }
.map-result h3 { margin: 0 0 .5rem; }
.map-result details { margin: .75rem 0; }
.map-result summary { cursor: pointer; font-weight: 600; color: var(--red); }
.map-result pre { white-space: pre-wrap; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .82rem; line-height: 1.55; background: #f6f6f3; border-radius: 10px; padding: 1rem; margin-top: .6rem; }

.map-cta { background: var(--dark); color: var(--cream); border-color: var(--dark); }
.map-cta h2 { color: var(--cream); }
.map-cta p { color: rgba(255,255,255,.78); }
.map-cta .btn--primary { background: var(--cream); color: var(--ink); }
.map-links { margin: 1rem 0 0; padding-left: 1.1rem; }
.map-links a { color: var(--cream); text-decoration: underline; }
.map-link { font: inherit; background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 0; }
.map-restart { text-align: center; }

/* Qualified visitors: a way out to a specialist on every step. */
.map-specialist { position: sticky; bottom: 1rem; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: var(--dark); color: var(--cream); border-radius: 14px; padding: .9rem 1.1rem; margin-top: 1rem; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.map-specialist p { margin: 0; font-size: .9rem; line-height: 1.4; color: rgba(255,255,255,.85); }
.map-specialist strong { color: var(--cream); }
.map-specialist .btn { background: var(--cream); color: var(--ink); white-space: nowrap; flex-shrink: 0; }

@media (max-width: 640px) {
  .map-grid, .map-stats { grid-template-columns: 1fr; }
  .map-specialist { flex-direction: column; align-items: stretch; text-align: left; bottom: calc(env(safe-area-inset-bottom, 0px) + .5rem); }
  .map-nav .btn { flex: 1; }
}

@media print {
  .site-header, .site-footer, .map-hero, .map-steps, .map-nav, .map-cta, .map-restart, .map-specialist, .mobile-cta, [data-copy] { display: none !important; }
  .map-card { border: 0; box-shadow: none; padding: 0; }
  .map-result { break-inside: avoid; }
}
.map-q--key { padding: 1rem; background: var(--red-light); border-radius: 12px; }

/* v2: varied questions, two-column scan, live call bar */
.map-hero + .section { padding-top: 1.25rem; }
.map-scanhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.map-scanhead .map-sub { margin-bottom: 1rem; }
.map-scanhead .map-link { white-space: nowrap; font-size: .85rem; margin-top: .3rem; }
.map-systems { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.map-sys { border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; background: #fff; transition: border-color .15s, background .15s; }
.map-sys.is-answered { border-color: var(--red-light); background: #fbfcfa; }
.map-sys legend { float: left; width: 100%; display: flex; flex-direction: column; gap: .25rem; margin-bottom: .75rem; }
.map-sys legend + * { clear: both; }
.map-sys__name { font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; color: var(--orange-deep); }
.map-sys legend strong { font-size: 1.02rem; line-height: 1.3; }
.map-chips { gap: .4rem; }
.map-chip { font-size: .84rem; padding: .5rem .8rem; text-align: left; }
.map-chip--na { border-style: dashed; color: var(--muted); }
.map-chip--na.is-on { background: var(--muted); border-color: var(--muted); color: #fff; }
.map-effort { margin-top: .8rem; padding-top: .7rem; border-top: 1px dashed var(--line); }
.map-effort > span { display: block; font-size: .8rem; color: var(--muted); margin-bottom: .4rem; }
.map-specialist { max-width: 64rem; }
.map-specialist__btns { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }
.map-specialist--live { background: #12301f; }
.map-specialist .map-call { background: #34c759; color: #fff; border-color: #34c759; }
.map-specialist .map-call:hover { background: #2fb350; }
.map-live-dot { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: #34c759; margin-right: .45rem; vertical-align: middle; box-shadow: 0 0 0 0 rgba(52,199,89,.6); animation: map-pulse 1.8s infinite; }
@keyframes map-pulse { 0% { box-shadow: 0 0 0 0 rgba(52,199,89,.6); } 70% { box-shadow: 0 0 0 .5rem rgba(52,199,89,0); } 100% { box-shadow: 0 0 0 0 rgba(52,199,89,0); } }
@media (prefers-reduced-motion: reduce) { .map-live-dot { animation: none; } }
@media (max-width: 760px) {
  .map-systems { grid-template-columns: 1fr; }
  .map-scanhead { flex-direction: column; gap: 0; }
  .map-specialist__btns { justify-content: stretch; }
  .map-specialist__btns .btn { flex: 1; }
}

/* Video waiting room */
.map-video { position: fixed; inset: 0; z-index: 1000; background: rgba(15,15,15,.72); display: grid; place-items: center; padding: 1rem; }
.map-video__card { width: min(64rem, 100%); height: min(46rem, calc(100dvh - 2rem)); background: var(--cream); border-radius: 18px; padding: 1rem; display: flex; flex-direction: column; gap: .75rem; }
.map-video__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.map-video__head p { margin: 0; line-height: 1.4; }
.map-video iframe { flex: 1; width: 100%; border: 0; border-radius: 12px; background: #111; }
.map-video .map-fine { margin: 0; }
@media (max-width: 640px) {
  .map-video { padding: 0; }
  .map-video__card { height: 100dvh; border-radius: 0; }
  .map-video__head { flex-direction: column; align-items: stretch; }
}
