/* Customer pages: home, service pages, flow steps. Mobile-first. */

/* ---------- Home hero (v4c split, elevated): the decision IS the hero ---------- */
.hero { position: relative; background: #fff; overflow: hidden; }
.hero__grid { position: relative; z-index: 1; display: grid; gap: 28px; padding-block: 32px 56px; }
.hero__copy h1 { margin-bottom: 14px; }
.hero__copy .answer { margin-bottom: 20px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 0; list-style: none; font-size: var(--fs-sm); color: var(--muted); }
.hero__facts li { display: flex; align-items: center; gap: 6px; }
.hero__facts .icon { width: 18px; height: 18px; color: var(--green); }
.hero__pick { position: relative; z-index: 1; }
.hero__pick-card { background: #fff; border-radius: var(--r-xl); box-shadow: var(--shadow-lg); padding: 20px; border: 1px solid var(--line); }
.hero__pick-card h2 { font-size: var(--fs-xl); margin-bottom: 4px; }
.hero__pick-card > p { color: var(--muted); font-size: var(--fs-sm); margin-bottom: 16px; }
.hero__bg { display: none; }
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1fr 480px; align-items: center; padding-block: 72px 112px; gap: 72px; }
  .hero__copy { max-width: 560px; }
  .hero__bg { display: block; position: absolute; top: 0; right: 0; bottom: 0; width: 40%; background: var(--purple-pale); }
  .hero__bg svg { position: absolute; left: -1px; top: 0; height: 100%; width: 120px; transform: translateX(-99%); }
  .hero__pick-card { padding: 28px; }
}

/* Path options inside the hero card */
.paths { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.path { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--r-md); border: 1.5px solid var(--line); background: #fff; text-decoration: none; color: var(--text); min-height: 72px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.path:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); color: var(--text); }
.path:focus-visible { box-shadow: var(--focus); }
.path__title { display: block; font-weight: 800; color: var(--navy); line-height: 1.25; }
.path__meta { display: block; font-size: var(--fs-xs); color: var(--muted); }
.path__go { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--purple-wash); color: var(--purple); }
.path--featured { border-color: var(--purple); box-shadow: inset 0 0 0 1px var(--purple); background: linear-gradient(180deg, #fff, var(--purple-wash)); }
.path--featured .path__go { background: var(--purple); color: #fff; }
.path__icons { display: flex; }
.path__icons .svc-ico { width: 34px; height: 34px; border-radius: 10px; border: 2px solid #fff; }
.path__icons .svc-ico + .svc-ico { margin-left: -10px; }

/* Home sections */
.section { padding-block: 56px; }
.section--wash { background: var(--purple-wash); }
.section__head { max-width: 680px; margin-bottom: 28px; }
.how { display: grid; gap: 16px; counter-reset: how; padding: 0; margin: 0; list-style: none; }
.how li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.how li::before { counter-increment: how; content: counter(how); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 800; }
.how h3 { font-size: var(--fs-lg); margin: 8px 0 4px; letter-spacing: -.2px; }
.how p { color: var(--muted); margin: 0; }
@media (min-width: 768px) { .how { grid-template-columns: repeat(4, 1fr); gap: 24px; } .how li { grid-template-columns: 1fr; } }
.services { display: grid; gap: 16px; }
@media (min-width: 768px) { .services { grid-template-columns: repeat(3, 1fr); } }
.service { border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; }
.service__top { padding: 20px 20px 0; display: flex; gap: 12px; align-items: center; }
.service__top h3 { margin: 0; font-size: var(--fs-lg); }
.service__body { padding: 12px 20px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.service__body ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: var(--fs-sm); }
.service__body .btn { margin-top: auto; align-self: flex-start; }
.service--amber { border-top: 4px solid var(--amber); }
.service--teal { border-top: 4px solid var(--teal); }
.service--green { border-top: 4px solid var(--green); }

/* Service landing pages */
.landing-hero { padding-block: 40px 32px; border-bottom: 1px solid var(--line); }
.landing-hero .btn { margin-top: 8px; }
.breadcrumb { font-size: var(--fs-xs); color: var(--muted); margin-bottom: 12px; }
.breadcrumb a { color: var(--muted); }
.prose h2 { font-size: var(--fs-xl); margin-top: 1.6em; }
.prose ul { padding-left: 20px; }

/* ---------- Flow shell ---------- */
.flow { background: var(--purple-wash); min-height: 100vh; padding-bottom: calc(var(--bar-h) + 24px); }
.flow-top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.flow-top__inner { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 12px; }
.flow-top .brand img { height: 26px; }
.flow-top__help { font-size: var(--fs-xs); color: var(--muted); display: flex; align-items: center; gap: 6px; }
.progress { padding-block: 10px 14px; }
.progress__text { display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--muted); margin-bottom: 8px; }
.progress__text strong { color: var(--navy); }
.progress__bar { display: grid; grid-auto-flow: column; gap: 4px; }
.progress__bar span { height: 6px; border-radius: 4px; background: var(--line); }
.progress__bar span.done { background: var(--green); }
.progress__bar span.now { background: var(--purple); }
.progress__labels { display: none; }
@media (min-width: 768px) {
  .progress__labels { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; margin-top: 6px; font-size: 12px; color: var(--muted); }
  .progress__labels .done { color: var(--green-ink); }
  .progress__labels .now { color: var(--purple-strong); font-weight: 700; }
}

.step-layout { display: grid; gap: 20px; padding-block: 24px; }
@media (min-width: 1024px) { .step-layout--aside { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; gap: 28px; } }
.step-head { margin-bottom: 18px; }
.step-head .svc-tag { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: 700; margin-bottom: 8px; }
.step-head h1 { font-size: var(--fs-2xl); letter-spacing: -.8px; margin-bottom: 6px; }
.step-head p { color: var(--muted); margin: 0; }
.prefill { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; padding: 10px 14px; border-radius: var(--r-md); background: #fff; border: 1px dashed var(--line-strong); font-size: var(--fs-sm); margin-bottom: 16px; }
.prefill strong { color: var(--navy); }

/* Sticky action bar on phones; inline at desktop */
.action-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(107,91,149,.10); padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); display: flex; gap: 10px; align-items: center; }
.action-bar .btn--primary { flex: 1; }
.action-bar .btn--ghost { flex: none; }
.action-bar__note { display: none; }
@media (min-width: 1024px) {
  .flow { padding-bottom: 48px; }
  .action-bar { position: static; box-shadow: none; border: 0; background: transparent; padding: 8px 0 0; justify-content: flex-end; flex-wrap: wrap; }
  .action-bar .btn--primary { flex: none; min-width: 260px; }
  .action-bar__note { display: flex; width: 100%; justify-content: flex-end; margin-top: 4px; }
}

/* Order summary: aside on desktop, collapsible sheet above the bar on phones */
.summary { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.summary > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; cursor: pointer; font-weight: 800; color: var(--navy); min-height: var(--tap); }
.summary > summary::-webkit-details-marker { display: none; }
.summary > summary .amt { color: var(--purple-strong); }
.summary__body { padding: 0 18px 18px; }
.summary__group { font-size: var(--fs-xs); font-weight: 700; color: var(--muted); margin: 14px 0 4px; }
.summary .line { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: var(--fs-sm); }
.summary .line span:last-child { font-weight: 600; white-space: nowrap; }
.summary .line--free span:last-child { color: var(--green-ink); }
.summary .line--total { border-top: 2px solid var(--navy); margin-top: 8px; padding-top: 10px; font-size: var(--fs-md); font-weight: 800; color: var(--navy); }
.schedule { display: grid; gap: 8px; margin-top: 12px; }
.schedule div { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 12px; border-radius: var(--r-sm); background: var(--purple-wash); font-size: var(--fs-sm); gap: 12px; }
.schedule div > span { min-width: 0; }
.schedule div > strong { flex: none; white-space: nowrap; }
.schedule .today { background: var(--amber-pale); }
.schedule strong { font-size: var(--fs-lg); color: var(--navy); }
.check-line { font-size: var(--fs-xs); color: var(--muted); text-align: right; margin-top: 6px; }
@media (min-width: 1024px) { .summary { position: sticky; top: 140px; } }

/* Utility service sections */
.svc-block { border: 1.5px solid var(--line); border-radius: var(--r-lg); background: #fff; margin-bottom: 14px; overflow: hidden; }
.svc-block > summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 16px; cursor: pointer; min-height: 72px; }
.svc-block > summary::-webkit-details-marker { display: none; }
.svc-block[open] > summary { border-bottom: 1px solid var(--line); }
.svc-block__title { font-weight: 800; color: var(--navy); display: block; }
.svc-block__sub { font-size: var(--fs-xs); color: var(--muted); display: block; }
.svc-block__state { margin-left: auto; }
.svc-block__body { padding: 16px; }
.svc-block--amber[open] { border-color: var(--amber); }
.provider-card { border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; background: var(--purple-wash); margin-top: 12px; }
.provider-card h4 { font-size: var(--fs-md); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }

/* Property blocks (Your Move) */
.prop { border-left: 4px solid var(--teal); }
.prop .panel__head .pin { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: #fff; font-weight: 800; }

/* Mover cards */
.sortbar { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px; scrollbar-width: none; }
.sortbar::-webkit-scrollbar { display: none; }
.mover { position: relative; display: grid; gap: 12px; padding: 18px; border-radius: var(--r-lg); background: #fff; border: 1.5px solid var(--line); margin-bottom: 12px; cursor: pointer; }
.mover:has(input:checked) { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal), var(--shadow-md); }
.mover.is-checked { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal), var(--shadow-md); } /* same, for browsers without :has() (Firefox ESR 115, Safari < 15.4): classes set by app.js */
.mover input[type="radio"] { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.mover:has(input:focus-visible) { box-shadow: var(--focus); }
.mover.is-focus { box-shadow: var(--focus); } /* same, for browsers without :has() (Firefox ESR 115, Safari < 15.4): classes set by app.js */
.mover__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.mover__name { font-weight: 800; color: var(--navy); font-size: var(--fs-lg); line-height: 1.25; }
.mover__rating { font-size: var(--fs-sm); color: var(--muted); display: flex; align-items: center; gap: 6px; }
.mover__rating .stars { color: var(--amber); letter-spacing: 1px; }
.mover__price { text-align: right; }
.mover__price strong { display: block; font-size: var(--fs-xl); color: var(--navy); letter-spacing: -.5px; }
.mover__price span { font-size: var(--fs-xs); color: var(--muted); }
.mover__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.mover__links { display: flex; gap: 4px; position: relative; z-index: 1; }
.mover__links .link-btn { min-height: 36px; padding: 4px 8px; }
.mover__best { position: absolute; top: -10px; left: 16px; }

/* Payment options */
.pay-options { display: grid; gap: 10px; margin-bottom: 18px; }
@media (min-width: 600px) { .pay-options { grid-template-columns: 1fr 1fr; } }
.pay-options .choice { align-items: flex-start; flex-direction: column; gap: 2px; padding: 16px 18px; }
.pay-options .choice__mark { position: absolute; top: 16px; right: 16px; }
.pay-options .amount { font-size: var(--fs-xl); font-weight: 800; color: var(--navy); letter-spacing: -.5px; }
#payment-element { min-height: 120px; padding: 4px 0 12px; }
.guarantee { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); background: var(--teal-pale); color: var(--teal-ink); font-size: var(--fs-sm); margin-top: 16px; }

/* Confirmation */
.ref-card { text-align: center; padding: 28px 20px; border-radius: var(--r-xl); background: var(--navy); color: #fff; margin-bottom: 20px; }
.ref-card .check-ico { width: 56px; height: 56px; border-radius: 50%; background: var(--green); display: grid; place-items: center; margin: 0 auto 14px; }
.ref-card h1 { color: #fff; font-size: var(--fs-2xl); }
.ref-card .ref { display: inline-block; font-size: var(--fs-xl); font-weight: 800; letter-spacing: 1px; background: rgba(255,255,255,.1); padding: 8px 18px; border-radius: var(--r-pill); margin-top: 6px; }
.refs { display: grid; gap: 8px; }
.refs div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); font-size: var(--fs-sm); align-items: center; }
.refs code { font-family: inherit; font-weight: 800; color: var(--navy); letter-spacing: .5px; }
.add-cards { display: grid; gap: 12px; }
@media (min-width: 600px) { .add-cards { grid-template-columns: 1fr 1fr; } }
.add-card { display: flex; gap: 12px; align-items: center; padding: 16px; border-radius: var(--r-md); border: 1.5px dashed var(--line-strong); background: #fff; text-decoration: none; color: var(--text); min-height: 72px; }
.add-card:hover { border-style: solid; border-color: var(--purple); color: var(--text); }

/* Energy comparison table (wpDataTables output restyled) */
.energy-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.energy-table th { text-align: left; font-size: var(--fs-xs); color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 2px solid var(--line); }
.energy-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
@media (max-width: 700px) {
  .energy-table thead { display: none; }
  .energy-table tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 10px; background: #fff; }
  .energy-table td { border: 0; padding: 0; }
  .energy-table td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: var(--fs-xs); }
}

/* Floating energy form (path D) */
.sheet { width: min(480px, calc(100vw - 24px)); }
@media (max-width: 599px) {
  dialog.modal.sheet { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: var(--r-xl) var(--r-xl) 0 0; max-height: 92vh; }
}
