/* Public homepage (/) and company profile (/company) — compact, minimal. Light page, slim navy hero; same brand blue as the sign-in page. */
:root{
  --h-brand:#1f5a82; --h-brand-d:#17486a; --h-ink:#14212c; --h-muted:#68798a; --h-line:#e4eaef; --h-bg:#f6f8fa;
  --h-green:#1e7d46; --h-green-bg:#e6f4ec; --h-blue:#2856a3; --h-blue-bg:#e4edf7; --h-amber:#b4600a;
}
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{ margin:0; background:var(--h-bg); color:var(--h-ink); font-family:"Segoe UI",Roboto,system-ui,sans-serif; font-size:14px; line-height:1.45; }
a{ color:inherit; }
.hm-wrap{ width:100%; max-width:none; margin:0 auto; padding:0 clamp(16px,3.2vw,56px); }   /* the whole screen width */

/* ---- top bar ---- */
.hm-top{ position:sticky; top:0; z-index:50; background:rgba(255,255,255,.95); backdrop-filter:blur(8px); border-bottom:1px solid var(--h-line); }
.hm-top-in{ display:flex; align-items:center; gap:18px; height:48px; }
.hm-brand{ display:flex; align-items:center; gap:8px; text-decoration:none; font-weight:700; font-size:15px; color:var(--h-ink); }
.hm-brandlogo{ display:block; height:38px; width:auto; }
.hm-mark{ width:26px; height:26px; border-radius:7px; display:flex; align-items:center; justify-content:center; background:var(--h-brand); }
.hm-mark svg{ width:16px; height:16px; }
.hm-nav{ display:flex; gap:16px; margin-left:auto; font-size:12.5px; font-weight:600; }
.hm-nav a{ text-decoration:none; color:var(--h-muted); }
.hm-nav a:hover{ color:var(--h-brand); }

/* ---- buttons ---- */
.hm-btn{ display:inline-flex; align-items:center; justify-content:center; gap:6px; height:36px; padding:0 14px; border-radius:8px;
  border:1px solid transparent; font:inherit; font-size:13px; font-weight:600; text-decoration:none; cursor:pointer; white-space:nowrap;
  transition:background .15s,border-color .15s; }
.hm-btn-primary{ background:var(--h-brand); color:#fff; }
.hm-btn-primary:hover{ background:var(--h-brand-d); }
.hm-btn-line{ height:30px; padding:0 12px; font-size:12.5px; border-color:var(--h-line); background:#fff; color:var(--h-ink); }
.hm-btn-line:hover{ border-color:#c3ced7; background:#f5f8fa; }
.hm-btn-ghost{ background:rgba(255,255,255,.12); border-color:rgba(255,255,255,.34); color:#fff; }
.hm-btn-ghost:hover{ background:rgba(255,255,255,.2); }
.hm-btn:disabled{ opacity:.6; cursor:wait; }

/* ---- hero ---- */
.hm-hero{ position:relative; color:#fff; padding:16px 0 14px; background:linear-gradient(160deg,#1d5379 0%,#143a57 60%,#0e2a40 100%); }
.hm-hero .hm-wrap{ position:relative; }
.hm-hero-row{ display:flex; flex-wrap:wrap; align-items:baseline; gap:2px 14px; margin-bottom:10px; }
.hm-hero h1{ margin:0; font-size:21px; line-height:1.2; font-weight:700; letter-spacing:-.2px; }
.hm-hero h1 em{ font-style:normal; color:#8fd3f4; }
.hm-sub{ margin:0; font-size:12.5px; color:rgba(255,255,255,.72); }
.hm-search{ display:flex; flex-wrap:wrap; gap:8px; max-width:760px; }
.hm-field{ flex:1 1 280px; display:flex; align-items:center; gap:8px; height:38px; padding:0 12px; background:#fff; border-radius:9px; color:var(--h-muted); }
.hm-field svg{ width:16px; height:16px; flex:none; }
.hm-field input{ flex:1; min-width:0; height:100%; border:0; outline:0; background:none; font:inherit; font-size:13.5px; color:var(--h-ink); }
.hm-field input::placeholder{ color:#9aa8b4; }
.hm-search .hm-btn{ height:38px; }
.hm-chips{ display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin-top:9px; font-size:12px; color:rgba(255,255,255,.65); }
.hm-chips:empty{ display:none; }
.hm-chip{ padding:2px 10px; border-radius:20px; border:1px solid rgba(255,255,255,.26); background:rgba(255,255,255,.07); color:#fff;
  font:inherit; font-size:12px; font-weight:600; cursor:pointer; }
.hm-chip:hover{ background:rgba(255,255,255,.2); }
.hm-geomsg{ margin:0; font-size:12px; color:#ffd9a8; }
.hm-geomsg:not(:empty){ margin-top:8px; }

/* ---- results ---- */
.hm-results{ padding-top:14px; padding-bottom:26px; scroll-margin-top:56px; }
.hm-res-head{ display:flex; align-items:flex-end; gap:12px; margin-bottom:10px; }
.hm-res-head h2{ margin:0; font-size:17px; line-height:1.25; }
.hm-res-head p{ margin:1px 0 0; font-size:12.5px; color:var(--h-muted); }
.hm-mapbtn{ display:none; margin-left:auto; }
.hm-demo{ margin-bottom:10px; padding:7px 11px; border-radius:8px; background:#fff5dd; border:1px solid #f0d594; color:#7a5200; font-size:12.5px; }
.hm-cols{ display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); gap:14px; align-items:start; }
.hm-list{ display:grid; gap:4px; }
.hm-mapcol{ position:sticky; top:56px; order:-1; }
#hmMap{ height:calc(100vh - 86px); max-height:860px; min-height:380px; border-radius:12px; border:1px solid var(--h-line); overflow:hidden; background:#dfe7ec; }
.hm-maplegend{ margin:5px 2px 0; font-size:11.5px; color:var(--h-muted); }

/* ---- company card: logo, name, one line of facts, contact icons; the whole card opens the profile ---- */
.hm-card{ display:flex; align-items:center; gap:9px; background:#fff; border:1px solid var(--h-line); border-radius:9px; padding:6px 10px; cursor:pointer;
  transition:box-shadow .15s,border-color .15s; }
.hm-card:hover,.hm-card.hl{ border-color:#b9cddb; box-shadow:0 4px 14px rgba(20,40,60,.08); }
.hm-logo{ flex:0 0 auto; width:32px; height:32px; border-radius:8px; display:flex; align-items:center; justify-content:center; overflow:hidden;
  font-size:12px; font-weight:800; color:#fff; border:1px solid var(--h-line); background:#fff; }
.hm-logo img{ width:100%; height:100%; object-fit:contain; background:#fff; }
.hm-info{ min-width:0; flex:1; }
.hm-name-row{ display:flex; flex-wrap:wrap; align-items:center; gap:2px 8px; }
.hm-name-row h3{ margin:0; font-size:13.5px; line-height:1.25; font-weight:700; }
.hm-name-row h3 a{ text-decoration:none; }
.hm-card:hover .hm-name-row h3 a{ color:var(--h-brand); }
.hm-badge{ display:inline-flex; align-items:center; gap:5px; padding:0 7px; border-radius:20px; font-size:10.5px; font-weight:700; background:#eef2f5; color:#4a5b68; }
.hm-badge.near{ background:var(--h-green-bg); color:var(--h-green); }
.hm-badge.city{ background:var(--h-blue-bg); color:var(--h-blue); }
.hm-meta{ margin-top:0; font-size:11.5px; color:var(--h-muted); }
.hm-meta b{ color:var(--h-ink); font-weight:700; }
.hm-meta i{ font-style:normal; margin:0 5px; opacity:.5; }
.hm-actions{ display:flex; flex:none; gap:5px; }
.hm-dot{ display:inline-block; flex:none; width:9px; height:9px; border-radius:50%; margin-right:6px; vertical-align:1px; box-shadow:0 0 0 2px #fff,0 0 0 3px rgba(0,0,0,.12); }
.hm-live{ font-weight:700; color:var(--h-green); }
.hm-live.hi{ color:#0f6b36; }
.hm-quiet{ color:#8b98a4; }
.hm-card.quiet{ background:#fbfcfd; }
.hm-card.quiet .hm-logo,.hm-card.quiet .hm-name-row h3{ opacity:.7; }
.hm-divider{ margin:8px 2px 2px; font-size:11px; font-weight:700; letter-spacing:.4px; text-transform:uppercase; color:#8b98a4; display:flex; align-items:center; gap:10px; }
.hm-divider::after{ content:""; flex:1; height:1px; background:var(--h-line); }
.hm-act{ display:inline-flex; align-items:center; justify-content:center; gap:6px; width:28px; height:28px; border-radius:7px; border:1px solid var(--h-line); background:#fff;
  font-size:12.5px; font-weight:600; text-decoration:none; color:var(--h-ink); }
.hm-act svg{ width:14px; height:14px; }
.hm-act:hover{ background:#f5f8fa; border-color:#c3ced7; }
.hm-act.wa{ background:#25d366; border-color:#25d366; color:#fff; }
.hm-act.wa:hover{ background:#1fb857; }
.hm-act.off{ opacity:.45; pointer-events:none; }
.hm-more{ display:block; margin:14px auto 0; }
.hm-empty{ padding:34px 20px; text-align:center; background:#fff; border:1px dashed #c8d4dd; border-radius:12px; color:var(--h-muted); }
.hm-empty h3{ margin:0 0 5px; color:var(--h-ink); font-size:16px; }
.hm-skel{ height:46px; border-radius:11px; background:linear-gradient(90deg,#eaeff3 25%,#f4f7fa 50%,#eaeff3 75%); background-size:200% 100%; animation:hm-sh 1.2s linear infinite; }
@keyframes hm-sh{ to{ background-position:-200% 0; } }

/* ---- insights: stats, leaders, building types, recent projects, buying guide ---- */
.hm-ins{ padding:8px 0 4px; background:#fff; border-top:1px solid var(--h-line); border-bottom:1px solid var(--h-line); }
.hm-ins[hidden]{ display:none; }
.hm-stats{ display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin:18px 0 6px; }
.hm-stat{ background:var(--h-bg); border:1px solid var(--h-line); border-radius:12px; padding:12px 14px; }
.hm-stat b{ display:block; font-size:24px; line-height:1.15; color:var(--h-brand-d); font-variant-numeric:tabular-nums; }
.hm-stat span{ font-size:12px; color:var(--h-muted); }
.hm-block{ padding:20px 0 8px; }
.hm-block[hidden]{ display:none; }
.hm-block h2{ margin:0 0 3px; font-size:18px; }
.hm-block .lead{ margin:0 0 12px; color:var(--h-muted); font-size:13px; max-width:680px; }
.hm-board{ display:grid; gap:6px; max-width:880px; }
.hm-row{ display:flex; align-items:center; gap:10px; background:#fff; border:1px solid var(--h-line); border-radius:10px; padding:8px 12px; cursor:pointer; transition:box-shadow .15s,border-color .15s; }
.hm-row:hover{ border-color:#b9cddb; box-shadow:0 4px 14px rgba(20,40,60,.08); }
.hm-row.first{ border-color:#b8dcc8; background:linear-gradient(90deg,#f3fbf6,#fff 60%); }
.hm-rank-n{ flex:none; width:22px; height:22px; border-radius:7px; background:var(--h-blue-bg); color:var(--h-brand); font-size:12px; font-weight:800; display:flex; align-items:center; justify-content:center; }
.hm-row.first .hm-rank-n,.hm-lead.first .hm-rank-n{ background:var(--h-green-bg); color:var(--h-green); }
.hm-row .hm-name-row h3 a{ text-decoration:none; }
.hm-row:hover .hm-name-row h3 a{ color:var(--h-brand); }
.hm-bar{ height:5px; border-radius:4px; background:#eaf0f4; margin:5px 0 4px; max-width:320px; overflow:hidden; }
.hm-bar i{ display:block; height:100%; border-radius:4px; background:linear-gradient(90deg,#2f7fb0,#1fb8aa); }
.hm-citygrid{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.hm-citycard{ background:#fff; border:1px solid var(--h-line); border-radius:12px; padding:12px 14px; display:flex; flex-direction:column; gap:4px; }
.hm-cityhead{ display:flex; align-items:baseline; justify-content:space-between; gap:8px; margin-bottom:4px; }
.hm-cityhead h3{ margin:0; font-size:15px; }
.hm-cityhead span{ font-size:11.5px; color:var(--h-muted); }
.hm-lead{ display:flex; align-items:center; gap:8px; padding:6px 8px; border-radius:8px; text-decoration:none; font-size:13px; color:var(--h-ink); }
.hm-lead:hover{ background:#f3f7fa; color:var(--h-brand); }
.hm-lead.first{ background:#f3fbf6; font-weight:700; }
.hm-lead-name{ flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hm-lead-n{ flex:none; font-size:12px; color:var(--h-muted); font-weight:400; }
.hm-lead-n::after{ content:" projects"; }
.hm-citygo{ margin-top:auto; padding:6px 8px 0; text-align:left; background:none; border:0; font:inherit; font-size:12px; font-weight:700; color:var(--h-brand); cursor:pointer; }
.hm-citygo:hover{ text-decoration:underline; }
.hm-tabs{ display:flex; flex-wrap:wrap; gap:6px; margin-bottom:10px; }
.hm-tab{ padding:5px 12px; border-radius:20px; border:1px solid var(--h-line); background:#fff; font:inherit; font-size:12.5px; font-weight:600; color:#41525f; cursor:pointer; }
.hm-tab i{ font-style:normal; margin-left:4px; font-size:11px; color:var(--h-muted); }
.hm-tab:hover{ border-color:#b9cddb; }
.hm-tab.on{ background:var(--h-brand); border-color:var(--h-brand); color:#fff; }
.hm-tab.on i{ color:#cfe4ef; }
.hm-recent{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.hm-rproj{ display:flex; flex-direction:column; gap:2px; background:#fff; border:1px solid var(--h-line); border-radius:10px; padding:10px 12px; text-decoration:none; color:var(--h-ink); }
.hm-rproj:hover{ border-color:#b9cddb; box-shadow:0 4px 14px rgba(20,40,60,.08); }
.hm-rproj b{ font-size:13.5px; }
.hm-rproj span{ font-size:12px; color:var(--h-muted); }
.hm-rproj em{ font-style:normal; font-size:12px; font-weight:600; color:var(--h-brand); }
.hm-guide{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.hm-gcard{ background:#fff; border:1px solid var(--h-line); border-radius:12px; padding:14px 18px; }
.hm-gcard.wide{ grid-column:1 / -1; }
.hm-gcard h3{ margin:0 0 8px; font-size:14.5px; }
.hm-gcard ol,.hm-gcard ul{ margin:0; padding-left:20px; font-size:13px; line-height:1.55; color:#334651; }
.hm-gcard li{ margin:0 0 6px; }
.hm-gcard p{ margin:0; font-size:13px; line-height:1.55; color:#334651; }
.hm-gtable{ width:100%; border-collapse:collapse; font-size:13px; }
.hm-gtable th,.hm-gtable td{ text-align:left; padding:8px 10px; border-bottom:1px solid var(--h-line); }
.hm-gtable th{ font-size:11px; text-transform:uppercase; letter-spacing:.4px; color:var(--h-muted); }
.hm-gcard .hm-gnote{ margin:8px 2px 0; font-size:12px; color:var(--h-muted); }

/* ---- compare ---- */
.hm-cmpbtn{ flex:none; height:28px; padding:0 9px; border-radius:7px; border:1px solid var(--h-line); background:#fff; font:inherit; font-size:11.5px; font-weight:700; color:var(--h-brand); cursor:pointer; white-space:nowrap; }
.hm-cmpbtn:hover{ border-color:#b9cddb; background:#f5f8fa; }
.hm-cmpbtn.on{ background:var(--h-blue-bg); border-color:#b9cdea; color:var(--h-blue); }
.hm-tray{ position:fixed; left:50%; bottom:16px; transform:translateX(-50%); z-index:60; display:flex; align-items:center; gap:10px; padding:8px 10px 8px 16px; border-radius:12px; background:#14212c; color:#fff; font-size:13px; box-shadow:0 10px 30px rgba(10,20,30,.35); }
.hm-tray .hm-btn{ height:32px; }
.hm-tray .hm-btn-line{ background:transparent; color:#fff; border-color:rgba(255,255,255,.3); }
.hm-modal{ position:fixed; inset:0; z-index:80; display:flex; align-items:center; justify-content:center; padding:16px; background:rgba(10,20,30,.55); }
.hm-modal[hidden],.hm-tray[hidden]{ display:none; }
.hm-modal-box{ width:100%; max-width:900px; max-height:90vh; display:flex; flex-direction:column; background:#fff; border-radius:14px; overflow:hidden; }
.hm-modal-head{ display:flex; align-items:center; padding:12px 18px; border-bottom:1px solid var(--h-line); }
.hm-modal-head h2{ margin:0; font-size:16px; flex:1; }
.hm-modal-x{ border:0; background:none; font-size:26px; line-height:1; cursor:pointer; color:#68798a; }
.hm-modal-body{ padding:14px 18px 18px; overflow:auto; }
.hm-cmptbl{ width:100%; border-collapse:collapse; font-size:13px; min-width:520px; }
.hm-cmptbl th,.hm-cmptbl td{ padding:9px 10px; border-bottom:1px solid var(--h-line); text-align:left; vertical-align:top; }
.hm-cmptbl tbody th{ width:26%; font-size:11.5px; text-transform:uppercase; letter-spacing:.3px; color:var(--h-muted); font-weight:700; }
.hm-cmptbl th.co{ font-size:14px; }
.hm-cmptbl th.co a{ display:block; margin-top:6px; text-decoration:none; color:var(--h-ink); }
.hm-cmptbl th.co small{ display:block; font-weight:400; color:var(--h-muted); }
.hm-cmptbl td.best{ color:var(--h-green); font-weight:800; background:#f3fbf6; }
.hm-noscroll{ overflow:hidden; }

/* ---- how it works / installers / footer ---- */
.hm-sec{ padding:30px 0; scroll-margin-top:50px; }
.hm-sec h2{ margin:0 0 4px; font-size:19px; }
.hm-sec .lead{ margin:0 0 16px; color:var(--h-muted); max-width:620px; }
.hm-steps{ display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.hm-step{ background:#fff; border:1px solid var(--h-line); border-radius:12px; padding:14px 16px; }
.hm-step i{ display:flex; align-items:center; justify-content:center; width:26px; height:26px; border-radius:8px; margin-bottom:8px; background:var(--h-blue-bg); color:var(--h-brand);
  font-style:normal; font-weight:800; font-size:12.5px; }
.hm-step h3{ margin:0 0 3px; font-size:14px; }
.hm-step p{ margin:0; font-size:12.5px; color:var(--h-muted); }
.hm-rank{ margin-top:12px; padding:10px 14px; border-radius:10px; background:#fff; border:1px solid var(--h-line); font-size:12.5px; color:#41525f; }
.hm-rank b{ color:var(--h-ink); }
.hm-cta{ margin:0; padding:20px 24px; border-radius:14px; color:#fff; display:flex; flex-wrap:wrap; align-items:center; gap:14px;
  background:linear-gradient(150deg,#1d5379 0%,#143a57 60%,#0e2a40 100%); }
.hm-cta div{ flex:1 1 360px; }
.hm-cta h2{ margin:0 0 4px; color:#fff; font-size:18px; }
.hm-cta p{ margin:0; color:rgba(255,255,255,.8); font-size:13px; }
.hm-foot{ padding:14px 0 22px; border-top:1px solid var(--h-line); font-size:12px; color:var(--h-muted); }
.hm-foot .hm-wrap{ display:flex; flex-wrap:wrap; gap:6px 18px; align-items:center; }
.hm-foot a{ color:var(--h-brand); font-weight:600; text-decoration:none; }

/* ---- map pins ---- */
.hm-you{ width:16px; height:16px; border-radius:50%; background:#1b6cf2; border:3px solid #fff; box-shadow:0 0 0 5px rgba(27,108,242,.25),0 2px 6px rgba(0,0,0,.35); }

/* ---- company profile page (/company) ---- */
.cp-wrap{ max-width:1000px; padding-top:14px; padding-bottom:30px; }
.cp-back{ display:inline-block; margin-bottom:10px; font-size:12.5px; font-weight:600; color:var(--h-brand); text-decoration:none; }
.cp-head{ display:flex; align-items:center; gap:14px; background:#fff; border:1px solid var(--h-line); border-radius:14px; padding:16px; }
.cp-head .hm-logo{ width:64px; height:64px; border-radius:14px; font-size:22px; }
.cp-head h1{ margin:0; font-size:21px; line-height:1.2; }
.cp-head .hm-meta{ font-size:13px; margin-top:2px; }
.cp-tag{ margin:5px 0 0; font-size:13.5px; color:#364652; }
.cp-act{ display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.cp-act .hm-act{ width:auto; height:34px; padding:0 14px; font-size:13px; }
.cp-act .hm-act svg{ width:16px; height:16px; }
.cp-stats{ display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin:10px 0; }
.cp-stat{ background:#fff; border:1px solid var(--h-line); border-radius:11px; padding:10px 14px; font-size:12px; color:var(--h-muted); }
.cp-stat b{ display:block; font-size:20px; line-height:1.2; color:var(--h-ink); }
.cp-cols{ display:grid; grid-template-columns:minmax(0,1fr) 380px; gap:12px; align-items:start; }
.cp-box{ background:#fff; border:1px solid var(--h-line); border-radius:14px; padding:14px 16px; }
.cp-box h2{ margin:0 0 8px; font-size:14.5px; }
.cp-city{ margin:10px 0 3px; font-size:11.5px; font-weight:700; letter-spacing:.4px; text-transform:uppercase; color:var(--h-muted); }
.cp-city:first-of-type{ margin-top:0; }
.cp-proj{ display:flex; gap:10px; padding:6px 0; border-top:1px solid var(--h-line); font-size:13px; }
.cp-proj span:first-child{ flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cp-proj span:last-child{ flex:none; color:var(--h-muted); font-size:12px; }
#cpMap{ height:320px; border-radius:10px; border:1px solid var(--h-line); overflow:hidden; background:#dfe7ec; }
.cp-note{ margin:8px 2px 0; font-size:11.5px; color:var(--h-muted); }

/* ---- responsive ---- */
@media (max-width:980px){
  .hm-citygrid,.hm-recent{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .hm-cols,.cp-cols{ grid-template-columns:1fr; }
  .hm-mapcol{ position:static; display:none; }
  .hm-mapcol.open{ display:block; order:-1; }
  #hmMap{ height:280px; min-height:0; }
  .hm-mapbtn{ display:inline-flex; }
  .hm-steps{ grid-template-columns:1fr; }
  .cp-stats{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:640px){
  .hm-stats{ grid-template-columns:repeat(2,1fr); }
  .hm-citygrid,.hm-recent,.hm-guide{ grid-template-columns:1fr; }
  .hm-tray{ left:12px; right:12px; transform:none; justify-content:space-between; }
  .hm-actions .hm-cmpbtn{ padding:0 7px; }
  .hm-nav{ display:none; }
  .hm-top-in .hm-btn-line{ margin-left:auto; }
  .hm-search .hm-btn{ flex:1 1 100%; }
  .hm-card{ gap:10px; padding:9px 10px; }
  .hm-logo{ width:32px; height:32px; font-size:12px; }
  .hm-cta{ padding:16px; }
  .cp-head{ flex-wrap:wrap; }
}
@media (prefers-reduced-motion:reduce){ html{ scroll-behavior:auto; } .hm-skel{ animation:none; } }

/* ============================================================================
 * Modern look for the public homepage (loaded after the base rules above, so these win): a richer hero with an illustration,
 * a floating trust strip, softer cards and shadows, picture cards for the lift types, and a dark footer.
 * ==========================================================================*/
:root{ --h-shadow:0 1px 2px rgba(16,36,54,.05),0 8px 24px -8px rgba(16,36,54,.12); --h-shadow-lg:0 2px 4px rgba(16,36,54,.06),0 18px 40px -12px rgba(16,36,54,.22); --h-teal:#1fb8aa; }
body{ -webkit-font-smoothing:antialiased; }

/* ---- top bar ---- */
.hm-top{ box-shadow:0 1px 0 var(--h-line),0 6px 18px -12px rgba(16,36,54,.2); }
.hm-top-in{ height:56px; }
.hm-brandlogo{ height:40px; }
.hm-btn-line{ height:34px; border-radius:9px; font-weight:700; }

/* ---- hero ---- */
.hm-hero{ padding:44px 0 62px; overflow:hidden;
  background:
    radial-gradient(900px 420px at 88% 0%, rgba(63,208,196,.28), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(47,127,176,.45), transparent 60%),
    linear-gradient(160deg,#1d5379 0%,#122f49 55%,#0a2236 100%); }
.hm-hero::before{ content:""; position:absolute; inset:0; opacity:.5; pointer-events:none;
  background-image:linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px);
  background-size:44px 44px; -webkit-mask-image:linear-gradient(180deg,#000 0%,transparent 85%); mask-image:linear-gradient(180deg,#000 0%,transparent 85%); }
.hm-hero-grid{ display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr); gap:24px; align-items:center; }
.hm-eyebrow{ display:inline-flex; align-items:center; gap:7px; padding:4px 12px; border-radius:999px; font-size:11.5px; font-weight:800; letter-spacing:.9px; text-transform:uppercase;
  color:#8ef0e4; background:rgba(63,208,196,.12); border:1px solid rgba(63,208,196,.35); }
.hm-eyebrow::before{ content:""; width:6px; height:6px; border-radius:50%; background:#3fd0c4; box-shadow:0 0 0 3px rgba(63,208,196,.25); }
.hm-hero h1{ margin:14px 0 10px; font-size:clamp(30px,4.2vw,46px); line-height:1.08; letter-spacing:-1.1px; font-weight:800; max-width:620px; }
.hm-hero h1 em{ background:linear-gradient(90deg,#8fd3f4,#3fd0c4); -webkit-background-clip:text; background-clip:text; color:transparent; }
.hm-sub{ font-size:15.5px; line-height:1.55; color:rgba(255,255,255,.8); max-width:560px; margin-bottom:22px; }
.hm-search{ gap:10px; max-width:640px; padding:8px; border-radius:16px; background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.22); backdrop-filter:blur(6px); box-shadow:0 18px 40px -16px rgba(0,0,0,.5); }
.hm-field{ height:48px; border-radius:11px; padding:0 14px; box-shadow:0 1px 2px rgba(0,0,0,.08); }
.hm-field svg{ color:var(--h-teal); width:18px; height:18px; }
.hm-field input{ font-size:15px; }
.hm-search .hm-btn{ height:48px; border-radius:11px; padding:0 18px; font-size:14px; }
.hm-btn-primary{ background:linear-gradient(180deg,#2f86b8,#1f5a82); box-shadow:0 6px 16px -6px rgba(15,60,95,.7); }
.hm-btn-primary:hover{ background:linear-gradient(180deg,#3592c6,#256a97); }
.hm-hero .hm-btn-primary{ background:linear-gradient(180deg,#27c7b8,#16a799); box-shadow:0 8px 18px -8px rgba(10,150,138,.8); }
.hm-hero .hm-btn-primary:hover{ background:linear-gradient(180deg,#31d4c5,#1bb4a5); }
.hm-chips{ margin-top:14px; font-size:12.5px; }
.hm-chip{ padding:4px 12px; }
.hm-points{ list-style:none; margin:22px 0 0; padding:0; display:flex; flex-wrap:wrap; gap:8px 20px; font-size:13px; font-weight:600; color:rgba(255,255,255,.86); }
.hm-points li{ display:flex; align-items:center; gap:7px; }
.hm-points svg{ width:16px; height:16px; padding:3px; border-radius:50%; background:rgba(63,208,196,.22); color:#8ef0e4; box-sizing:content-box; }
.hm-hero-art{ position:relative; }
.hm-hero-art img{ display:block; width:100%; height:auto; max-width:600px; margin-left:auto; filter:drop-shadow(0 24px 40px rgba(0,0,0,.25)); }

/* ---- trust strip that floats over the hero's lower edge ---- */
.hm-trust{ position:relative; z-index:5; margin-top:-34px; }
.hm-trust-in{ display:grid; grid-template-columns:repeat(4,1fr); gap:0; background:#fff; border:1px solid var(--h-line); border-radius:16px; box-shadow:var(--h-shadow-lg); }
.hm-ti{ display:flex; gap:12px; align-items:flex-start; padding:16px 18px; }
.hm-ti + .hm-ti{ border-left:1px solid var(--h-line); }
.hm-ti i{ flex:none; width:38px; height:38px; border-radius:11px; display:flex; align-items:center; justify-content:center; color:#fff; background:linear-gradient(135deg,#2f86b8,#1fb8aa); }
.hm-ti i svg{ width:20px; height:20px; }
.hm-ti b{ display:block; font-size:13.5px; margin-bottom:1px; }
.hm-ti span{ font-size:12px; color:var(--h-muted); line-height:1.4; }

/* ---- results ---- */
.hm-results{ padding-top:30px; padding-bottom:36px; }
.hm-res-head h2{ font-size:22px; letter-spacing:-.4px; }
.hm-res-head p{ font-size:13.5px; }
.hm-list{ gap:8px; }
.hm-card{ padding:10px 14px; border-radius:13px; box-shadow:0 1px 2px rgba(16,36,54,.04); }
.hm-card:hover,.hm-card.hl{ box-shadow:var(--h-shadow); border-color:#a9c6d8; transform:translateY(-1px); }
.hm-card{ transition:box-shadow .18s,border-color .18s,transform .18s; }
.hm-logo{ width:40px; height:40px; border-radius:11px; font-size:14px; }
.hm-name-row h3{ font-size:14.5px; }
.hm-meta{ font-size:12px; margin-top:2px; }
#hmMap{ border-radius:16px; box-shadow:var(--h-shadow); }

/* ---- sections ---- */
.hm-sec{ padding:48px 0; }
.hm-sec h2{ font-size:26px; letter-spacing:-.6px; font-weight:800; }
.hm-sec .lead{ font-size:15px; }
.hm-ins{ background:linear-gradient(180deg,#fff,#f3f8fb); }
.hm-block h2{ font-size:21px; letter-spacing:-.4px; }
.hm-block .lead{ font-size:13.5px; }
.hm-stat{ background:#fff; border-radius:14px; box-shadow:var(--h-shadow); padding:16px 18px; }
.hm-stat b{ font-size:30px; background:linear-gradient(90deg,#1f5a82,#1fb8aa); -webkit-background-clip:text; background-clip:text; color:transparent; }
.hm-row,.hm-citycard,.hm-rproj,.hm-gcard{ border-radius:14px; box-shadow:0 1px 2px rgba(16,36,54,.04); }
.hm-citycard:hover,.hm-rproj:hover{ box-shadow:var(--h-shadow); }
.hm-tab{ display:inline-flex; align-items:center; gap:6px; padding:7px 14px; }
.hm-tab svg{ width:15px; height:15px; flex:none; }

/* ---- picture cards: lift types ---- */
.hm-subhead{ margin:22px 0 10px; font-size:15px; letter-spacing:.1px; color:var(--h-brand-d); }
.hm-types{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-bottom:8px; }
.hm-type{ background:#fff; border:1px solid var(--h-line); border-radius:16px; padding:10px 10px 16px; box-shadow:0 1px 2px rgba(16,36,54,.04); transition:box-shadow .18s,transform .18s; }
.hm-type:hover{ box-shadow:var(--h-shadow); transform:translateY(-2px); }
.hm-type img{ display:block; width:100%; height:auto; border-radius:11px; }
.hm-type h4{ margin:12px 6px 3px; font-size:15px; }
.hm-type p{ margin:0 6px 8px; font-size:12.5px; line-height:1.5; color:var(--h-muted); }
.hm-type span{ display:inline-block; margin:0 6px; padding:2px 10px; border-radius:999px; background:var(--h-blue-bg); color:var(--h-brand); font-size:11.5px; font-weight:700; }

/* ---- how it works ---- */
.hm-step{ position:relative; padding:22px 20px 20px; border-radius:16px; box-shadow:var(--h-shadow); }
.hm-step-art{ display:block; width:64px; height:64px; margin-bottom:12px; }
.hm-step-n{ position:absolute; top:20px; right:18px; font-size:11px; font-weight:800; letter-spacing:.8px; text-transform:uppercase; color:var(--h-teal); }
.hm-step h3{ font-size:16px; margin-bottom:4px; }
.hm-step p{ font-size:13px; line-height:1.55; }
.hm-rank{ border-radius:12px; }

/* ---- call to action ---- */
.hm-cta{ position:relative; overflow:hidden; padding:30px 34px; border-radius:20px; gap:22px;
  background:radial-gradient(500px 260px at 100% 0%, rgba(63,208,196,.3), transparent 60%), linear-gradient(150deg,#1d5379 0%,#122f49 60%,#0a2236 100%); }
.hm-cta h2{ font-size:24px; letter-spacing:-.4px; }
.hm-cta p{ font-size:14px; max-width:520px; }
.hm-cta-art{ flex:0 0 auto; width:250px; height:auto; margin:-14px -8px -30px 0; opacity:.95; }
.hm-cta div{ flex:1 1 320px; }

/* ---- footer ---- */
.hm-footer{ margin-top:30px; background:#0b1b2a; color:#aebdca; font-size:13px; }
.hm-footer-in{ display:grid; grid-template-columns:1.5fr 1fr 1fr 1fr; gap:28px; padding-top:38px; padding-bottom:26px; }
.hm-footer-brand img{ display:block; height:44px; width:auto; }
.hm-footer-brand p{ margin:12px 0 0; max-width:300px; line-height:1.55; }
.hm-footer-col h4{ margin:0 0 10px; font-size:12px; letter-spacing:.8px; text-transform:uppercase; color:#fff; }
.hm-footer-col a{ display:block; padding:4px 0; color:#aebdca; text-decoration:none; }
.hm-footer-col a:hover{ color:#8ef0e4; }
.hm-footer-base{ padding-top:14px; padding-bottom:22px; border-top:1px solid rgba(255,255,255,.1); font-size:12px; color:#7d90a0; }

/* ---- responsive ---- */
@media (max-width:980px){
  .hm-hero{ padding:30px 0 56px; }
  .hm-hero-grid{ grid-template-columns:1fr; }
  .hm-hero-art{ display:none; }
  .hm-trust-in{ grid-template-columns:repeat(2,1fr); }
  .hm-ti:nth-child(3){ border-left:0; }
  .hm-ti:nth-child(n+3){ border-top:1px solid var(--h-line); }
  .hm-types{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .hm-footer-in{ grid-template-columns:1fr 1fr; }
  .hm-cta-art{ display:none; }
}
@media (max-width:640px){
  .hm-hero h1{ font-size:30px; }
  .hm-search{ padding:6px; }
  .hm-trust-in{ grid-template-columns:1fr; }
  .hm-ti + .hm-ti{ border-left:0; border-top:1px solid var(--h-line); }
  .hm-types{ grid-template-columns:1fr 1fr; gap:10px; }
  .hm-type p{ display:none; }
  .hm-sec{ padding:34px 0; }
  .hm-footer-in{ grid-template-columns:1fr; gap:18px; }
}

/* ---- full-width layout ---- */
.hm-board{ max-width:none; grid-template-columns:repeat(auto-fit,minmax(440px,1fr)); gap:8px 14px; }
.hm-hero-grid{ grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
.hm-hero h1{ max-width:760px; }
.hm-search{ max-width:720px; }
.hm-hero-art img{ max-width:680px; }
.hm-go{ flex:none; font-size:22px; line-height:1; color:#9bb0bf; }
.hm-row:hover .hm-go{ color:var(--h-brand); }
.hm-prof{ font-weight:700; text-decoration:none; color:var(--h-brand); }
.hm-prof:hover{ text-decoration:underline; }
@media (max-width:640px){ .hm-board{ grid-template-columns:1fr; } }

/* a button that sets its own display still has to disappear when it is hidden */
.hm-more[hidden],.hm-btn[hidden],.hm-mapbtn[hidden]{ display:none; }

/* ---- the results map: a framed card with a soft shadow ---- */
#hmMap{ border:3px solid #fff; border-radius:18px; background:#dfe7ec;
  box-shadow:0 0 0 1px #b9cddb, 0 2px 4px rgba(16,36,54,.08), 0 16px 36px -10px rgba(16,36,54,.38); }

/* ---- advanced search: mode switch, keyword box, filter panel ---- */
.hm-fbar{ display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin:0 0 12px; padding:10px; background:#fff; border:1px solid var(--h-line); border-radius:14px; box-shadow:var(--h-shadow); }
.hm-fbar[hidden]{ display:none; }
.hm-seg{ display:inline-flex; padding:3px; border-radius:10px; background:#eaf0f4; }
.hm-seg button{ border:0; background:none; padding:7px 14px; border-radius:8px; font:inherit; font-size:13px; font-weight:700; color:#5a6b78; cursor:pointer; }
.hm-seg button.on{ background:#fff; color:var(--h-brand-d); box-shadow:0 1px 3px rgba(16,36,54,.15); }
.hm-kw{ flex:1 1 300px; min-width:220px; display:flex; align-items:center; gap:8px; height:38px; padding:0 12px; border:1px solid #ccd6de; border-radius:10px; background:#fff; color:var(--h-muted); }
.hm-kw:focus-within{ border-color:var(--h-brand); box-shadow:0 0 0 3px rgba(31,90,130,.13); }
.hm-kw svg{ width:16px; height:16px; flex:none; }
.hm-kw input{ flex:1; min-width:0; height:100%; border:0; outline:0; background:none; font:inherit; font-size:13.5px; color:var(--h-ink); }
#hmFiltBtn{ height:38px; }
#hmFiltBtn.open{ background:var(--h-blue-bg); border-color:#b9cdea; color:var(--h-blue); }
.hm-n{ display:inline-flex; align-items:center; justify-content:center; min-width:18px; height:18px; padding:0 5px; margin-left:4px; border-radius:9px; background:var(--h-brand); color:#fff; font-size:11px; font-weight:800; }
.hm-n[hidden]{ display:none; }
.hm-clear{ border:0; background:none; font:inherit; font-size:12.5px; font-weight:700; color:#b3261e; cursor:pointer; }
.hm-clear[hidden]{ display:none; }
.hm-clear:hover{ text-decoration:underline; }
.hm-fpanel{ margin:0 0 14px; padding:16px 18px; background:#fff; border:1px solid var(--h-line); border-radius:14px; box-shadow:var(--h-shadow); }
.hm-fpanel[hidden]{ display:none; }
.hm-fgrid{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px 26px; }
.hm-fg h4{ margin:0 0 10px; padding-bottom:6px; border-bottom:1px solid var(--h-line); font-size:12px; letter-spacing:.7px; text-transform:uppercase; color:var(--h-brand-d); }
.hm-fl{ margin:10px 0 5px; font-size:11.5px; font-weight:700; color:#5a6b78; }
.hm-fl:first-of-type{ margin-top:0; }
.hm-fchips{ display:flex; flex-wrap:wrap; gap:6px; }
.hm-fchip{ padding:4px 10px; border-radius:999px; border:1px solid var(--h-line); background:#fff; font:inherit; font-size:12px; font-weight:600; color:#41525f; cursor:pointer; }
.hm-fchip i{ font-style:normal; margin-left:3px; font-size:10.5px; color:#8b98a4; }
.hm-fchip:hover{ border-color:#b9cddb; }
.hm-fchip.on{ background:var(--h-brand); border-color:var(--h-brand); color:#fff; }
.hm-fchip.on i{ color:#cfe4ef; }
.hm-fmore{ border:0; background:none; font:inherit; font-size:12px; font-weight:700; color:var(--h-brand); cursor:pointer; padding:4px 6px; }
.hm-fnone{ font-size:12px; color:#8b98a4; }
.hm-frow{ display:flex; flex-wrap:wrap; gap:10px; margin-top:10px; }
.hm-fnum,.hm-fsel{ display:flex; flex-direction:column; gap:3px; flex:1 1 110px; min-width:100px; font-size:11.5px; font-weight:700; color:#5a6b78; }
.hm-fnum input,.hm-fsel select{ height:34px; padding:0 9px; border:1px solid #ccd6de; border-radius:8px; font:inherit; font-size:13px; font-weight:400; color:var(--h-ink); background:#fff; }
.hm-fnum input:focus,.hm-fsel select:focus{ outline:none; border-color:var(--h-brand); box-shadow:0 0 0 3px rgba(31,90,130,.13); }
.hm-fchk{ display:inline-flex; align-items:center; gap:7px; font-size:13px; color:#334651; cursor:pointer; }
.hm-fchk input{ width:16px; height:16px; accent-color:var(--h-brand); }
.hm-fhint{ margin:14px 0 0; font-size:11.5px; color:#8b98a4; }
.hm-badge.match{ background:#fff3d6; color:#8a5a00; }
.hm-proj .hm-meta a{ text-decoration:none; color:inherit; }
.hm-proj .hm-meta a:hover{ color:var(--h-brand); }
.hm-proj .hm-name-row h3 a{ text-decoration:none; }
.hm-proj:hover .hm-name-row h3 a{ color:var(--h-brand); }
@media (max-width:1100px){ .hm-fgrid{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:700px){ .hm-fgrid{ grid-template-columns:1fr; } .hm-fbar{ gap:8px; } .hm-seg{ width:100%; } .hm-seg button{ flex:1; } }

/* ============================================================================
 * Homepage layout, round 2: a short hero, a location bar, side-by-side list + map, redesigned company cards, filters, sheet.
 * (appended last so it wins over the earlier rules)
 * ==========================================================================*/

/* ---- short hero ---- */
.hm-hero{ padding:22px 0 26px; }
.hm-hero-grid{ grid-template-columns:minmax(0,1.5fr) minmax(0,.5fr); gap:16px; }
.hm-hero h1{ margin:0 0 6px; font-size:clamp(26px,3vw,36px); letter-spacing:-.8px; max-width:none; }
.hm-sub{ margin:0 0 14px; font-size:14.5px; max-width:none; }
.hm-search{ max-width:780px; padding:6px; border-radius:14px; flex-wrap:nowrap; }
.hm-field{ position:relative; height:44px; }
.hm-search .hm-btn{ height:44px; }
.hm-hero-art img{ max-width:290px; }
.hm-chips{ margin-top:10px; }
.hm-trust,.hm-points{ display:none; }
.hm-sug{ position:absolute; left:-6px; right:-6px; top:calc(100% + 8px); z-index:80; background:#fff; border:1px solid var(--h-line); border-radius:12px; box-shadow:var(--h-shadow-lg); overflow:hidden; color:var(--h-ink); }
.hm-sug[hidden]{ display:none; }
.hm-sugitem{ display:flex; flex-direction:column; gap:1px; padding:9px 14px; cursor:pointer; font-size:13.5px; }
.hm-sugitem small{ font-size:11.5px; color:var(--h-muted); }
.hm-sugitem:hover,.hm-sugitem.on{ background:#f1f6fa; }

/* ---- location bar, quick filters, sort, chips ---- */
.hm-results{ padding-top:16px; padding-bottom:26px; }
.hm-loc{ display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; margin:0 0 10px; padding:10px 14px; background:#fff; border:1px solid var(--h-line); border-radius:12px; font-size:13.5px; box-shadow:var(--h-shadow); }
.hm-locpin{ width:10px; height:10px; border-radius:50%; background:var(--h-teal); box-shadow:0 0 0 4px rgba(31,184,170,.2); flex:none; }
.hm-loc select{ height:30px; padding:0 8px; border:1px solid #ccd6de; border-radius:8px; font:inherit; font-size:13px; background:#fff; }
.hm-linkbtn{ border:0; background:none; font:inherit; font-size:13px; font-weight:700; color:var(--h-brand); cursor:pointer; padding:0; }
.hm-linkbtn:hover{ text-decoration:underline; }
.hm-quick{ display:flex; flex-wrap:wrap; gap:8px 22px; margin:0 0 10px; }
.hm-quick[hidden]{ display:none; }
.hm-qg{ display:flex; flex-wrap:wrap; align-items:center; gap:6px; }
.hm-qg > span{ font-size:12px; font-weight:700; color:#5a6b78; margin-right:2px; }
.hm-sort{ display:flex; align-items:center; gap:6px; font-size:12.5px; font-weight:700; color:#5a6b78; }
.hm-sort select{ height:38px; padding:0 8px; border:1px solid #ccd6de; border-radius:10px; font:inherit; font-size:13px; font-weight:400; background:#fff; color:var(--h-ink); }
.hm-active{ display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin:0 0 12px; }
.hm-active[hidden]{ display:none; }
.hm-achip{ display:inline-flex; align-items:center; gap:6px; padding:4px 6px 4px 11px; border-radius:999px; border:1px solid #b9cdea; background:var(--h-blue-bg); color:var(--h-blue); font:inherit; font-size:12px; font-weight:700; cursor:pointer; }
.hm-achip i{ font-style:normal; font-size:15px; line-height:1; width:16px; height:16px; display:inline-flex; align-items:center; justify-content:center; border-radius:50%; }
.hm-achip:hover i{ background:rgba(40,86,163,.15); }
.hm-view{ display:none; margin-left:auto; padding:3px; border-radius:10px; background:#eaf0f4; }
.hm-view button{ border:0; background:none; padding:6px 16px; border-radius:8px; font:inherit; font-size:13px; font-weight:700; color:#5a6b78; cursor:pointer; }
.hm-view button.on{ background:#fff; color:var(--h-brand-d); box-shadow:0 1px 3px rgba(16,36,54,.15); }
.hm-why{ margin:0 0 10px; font-size:12px; color:var(--h-muted); max-width:900px; }
.hm-why:empty{ display:none; }
.hm-res-head{ margin-bottom:4px; }
.hm-btn.sm{ height:30px; padding:0 12px; font-size:12.5px; border-radius:8px; }
.hm-btn-wa{ background:#f2a93b; border-color:#f2a93b; color:#1b2b3a; font-weight:800; }
.hm-btn-wa:hover{ background:#e39a2c; }
.hm-btn-line.sm,.hm-fbar .hm-btn-line{ background:#fff; }

/* ---- list and map side by side, both in view ---- */
.hm-cols{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:16px; align-items:stretch; height:calc(100vh - 130px); min-height:540px; }
.hm-listcol{ overflow:auto; padding:2px 8px 16px 2px; min-height:0; }
.hm-list{ gap:10px; }
.hm-mapcol{ position:static; order:0; display:flex; flex-direction:column; min-height:0; height:100%; }
.hm-mapbox{ position:relative; flex:1; min-height:0; }
#hmMap{ height:100%; min-height:0; max-height:none; }
.hm-maplegend{ display:flex; flex-wrap:wrap; align-items:center; gap:4px 14px; margin:8px 2px 0; font-size:11.5px; color:var(--h-muted); }
.hm-lg{ display:inline-block; vertical-align:-2px; margin-right:4px; }
.hm-lg.dot{ width:11px; height:11px; border-radius:50%; background:#1f7fb0; border:2px solid #fff; box-shadow:0 0 0 1px #9ab8cc; }
.hm-lg.office,.hm-office{ width:13px; height:13px; border-radius:3px; background:#fff; border:3px solid #1f5a82; box-sizing:border-box; display:inline-block; }
.hm-lg.you{ width:11px; height:11px; border-radius:50%; background:#1b6cf2; border:2px solid #fff; box-shadow:0 0 0 3px rgba(27,108,242,.25); }
.hm-areabtn{ position:absolute; top:12px; left:50%; transform:translateX(-50%); z-index:700; height:34px; box-shadow:0 6px 16px rgba(16,36,54,.3); }
.hm-areabtn[hidden]{ display:none; }
.hm-sheet{ position:absolute; left:12px; bottom:12px; z-index:800; width:min(330px,calc(100% - 24px)); background:#fff; border-radius:14px; box-shadow:0 12px 34px rgba(10,20,30,.35); overflow:hidden; }
.hm-sheet[hidden]{ display:none; }
.hm-sheet-x{ position:absolute; top:8px; right:8px; z-index:2; width:28px; height:28px; border:0; border-radius:50%; background:rgba(255,255,255,.92); font-size:20px; line-height:1; cursor:pointer; box-shadow:0 1px 4px rgba(0,0,0,.25); }
.hm-sheet-photo{ height:150px; background:#e7eef3; display:flex; align-items:center; justify-content:center; color:#8b98a4; font-size:12.5px; }
.hm-sheet-photo img{ width:100%; height:100%; object-fit:cover; display:block; }
.hm-sheet-body{ padding:12px 14px 14px; }
.hm-sheet-body h3{ margin:0 0 3px; font-size:15px; }
.hm-sheet-body p{ margin:0 0 5px; font-size:12.5px; color:#41525f; }
.hm-sheet-body .hm-btn{ margin-top:6px; width:100%; }

/* ---- company cards ---- */
.hm-card{ display:flex; align-items:stretch; gap:14px; padding:14px 16px; cursor:pointer; }
.hm-cmain{ flex:1; min-width:0; display:flex; flex-direction:column; gap:7px; }
.hm-chead{ display:flex; align-items:center; gap:10px; }
.hm-ctitle{ min-width:0; }
.hm-ctitle h3{ margin:0; font-size:15px; line-height:1.25; font-weight:800; }
.hm-ctitle h3 a{ text-decoration:none; }
.hm-card:hover .hm-ctitle h3 a{ color:var(--h-brand); }
.hm-cwhere{ margin-top:1px; font-size:12px; color:var(--h-muted); }
.hm-cwhere i{ font-style:normal; margin:0 5px; opacity:.5; }
.hm-local{ padding:6px 10px; border-radius:9px; background:#eef6fa; color:#1b4f73; font-size:12.5px; }
.hm-local.none{ background:#f4f6f8; color:#6b7b86; }
.hm-local.match{ background:#fff3d6; color:#8a5a00; }
.hm-local .q{ color:#8a5a00; }
.hm-specs{ display:flex; flex-wrap:wrap; gap:5px; }
.hm-specs span{ padding:2px 9px; border-radius:999px; background:var(--h-blue-bg); color:var(--h-brand); font-size:11.5px; font-weight:700; }
.hm-facts{ font-size:12px; color:var(--h-muted); }
.hm-facts b{ color:var(--h-ink); }
.hm-facts a{ text-decoration:none; color:inherit; }
.hm-cactions{ display:flex; flex-wrap:wrap; gap:6px; margin-top:2px; }
.hm-cmpbtn{ height:30px; }
.hm-thumb{ position:relative; flex:0 0 132px; align-self:stretch; min-height:104px; border-radius:11px; overflow:hidden; background:#e7eef3; }
.hm-thumb img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.hm-thumb small{ position:absolute; left:6px; bottom:6px; padding:1px 7px; border-radius:6px; background:rgba(10,20,30,.6); color:#fff; font-size:10.5px; }
.hm-empty-actions{ display:flex; flex-wrap:wrap; justify-content:center; gap:8px; margin-top:12px; }
.hm-divider{ display:none; }

/* ---- sections below the map ---- */
.hm-alt{ background:linear-gradient(180deg,#f3f8fb,#fff); }
.hm-sec{ padding:34px 0; }
.hm-sec h2{ font-size:22px; }
.hm-h2b{ margin-top:30px !important; }
.hm-totals{ margin:14px 0 0; font-size:12px; color:var(--h-muted); }
.hm-lead-name{ display:flex; flex-direction:column; line-height:1.25; }
.hm-lead-name small{ font-size:11px; font-weight:400; color:var(--h-muted); }
.hm-lead-n::after{ content:" installs"; }
.hm-lead-n.v::after{ content:""; }          /* the compare cards write their own unit */
.hm-cmpnote{ margin:0 0 6px; font-size:12px; line-height:1.4; color:var(--h-muted); }
.hm-cmpnone{ padding:10px 8px; font-size:12.5px; color:var(--h-muted); background:#f6f8fa; border-radius:8px; }
.hm-jump{ display:inline-block; margin-top:3px; font-size:12.5px; font-weight:700; color:var(--h-brand); text-decoration:none; }
.hm-jump:hover{ text-decoration:underline; }
.hm-acc{ display:grid; gap:8px; max-width:900px; }
.hm-accitem{ background:#fff; border:1px solid var(--h-line); border-radius:12px; padding:0 16px; }
.hm-accitem summary{ padding:13px 0; font-size:14.5px; font-weight:700; cursor:pointer; list-style:none; display:flex; justify-content:space-between; align-items:center; }
.hm-accitem summary::-webkit-details-marker{ display:none; }
.hm-accitem summary::after{ content:"+"; font-size:20px; color:var(--h-brand); }
.hm-accitem[open] summary::after{ content:"–"; }
.hm-accitem ol,.hm-accitem ul{ margin:0 0 14px; padding-left:20px; font-size:13px; line-height:1.6; color:#334651; }
.hm-accitem .hm-types{ margin:4px 0 8px; }
.hm-accitem .hm-gnote{ margin:0 0 14px; font-size:12px; color:var(--h-muted); }
.hm-types{ grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.hm-type{ padding:8px 8px 12px; }
.hm-type h4{ margin:8px 4px 2px; font-size:13.5px; }
.hm-type span{ margin:0 4px; font-size:11px; }
.hm-steps{ grid-template-columns:repeat(3,1fr); gap:10px; }
.hm-step{ display:flex; align-items:center; gap:12px; padding:14px 16px; box-shadow:none; }
.hm-step-art{ width:48px; height:48px; margin:0; flex:none; }
.hm-step h3{ margin:0 0 2px; font-size:14.5px; }
.hm-step p{ margin:0; font-size:12.5px; }
.hm-cta{ padding:22px 28px; }
.hm-cta-art{ display:none; }
.hm-cta .hm-btn{ flex:none; }

/* ---- compare tray ---- */
.hm-tray{ gap:10px; padding:8px 10px 8px 12px; max-width:calc(100vw - 24px); }
.hm-tray-list{ display:flex; flex-wrap:wrap; gap:6px; }
.hm-traychip{ display:inline-flex; align-items:center; gap:4px; padding:3px 4px 3px 10px; border-radius:999px; background:rgba(255,255,255,.14); font-size:12.5px; font-weight:600; }
.hm-traychip button{ border:0; background:rgba(255,255,255,.2); color:#fff; width:20px; height:20px; border-radius:50%; cursor:pointer; font-size:14px; line-height:1; }
.hm-tray-hint{ font-size:12px; color:#9fb8ca; }
.hm-cmptbl tbody th small{ display:block; margin-top:2px; font-size:10.5px; font-weight:400; text-transform:none; letter-spacing:0; color:#8b98a4; }
.hm-prof{ font-weight:700; text-decoration:none; color:var(--h-brand); }
body.hm-hastray .hm-footer{ padding-bottom:70px; }

/* ---- tablets and phones: one column, List / Map switch ---- */
@media (max-width:980px){
  .hm-hero-grid{ grid-template-columns:1fr; }
  .hm-hero-art{ display:none; }
  .hm-view{ display:inline-flex; }
  .hm-cols{ display:block; height:auto; min-height:0; }
  .hm-listcol{ overflow:visible; padding:0; }
  .hm-mapcol{ display:none; height:auto; }
  body.hm-mapview .hm-listcol{ display:none; }
  body.hm-mapview .hm-mapcol{ display:flex; }
  body.hm-mapview .hm-mapbox{ height:calc(100vh - 250px); min-height:360px; flex:none; }
  .hm-sheet{ position:fixed; left:0; right:0; bottom:0; width:auto; border-radius:18px 18px 0 0; z-index:900; }
  .hm-sheet-photo{ height:130px; }
  .hm-types{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .hm-steps{ grid-template-columns:1fr; }
}
@media (max-width:640px){
  .hm-search{ flex-wrap:wrap; }
  .hm-card{ flex-direction:column-reverse; }
  .hm-thumb{ flex:none; min-height:0; height:130px; }
  .hm-loc{ padding:9px 12px; }
  .hm-fbar .hm-sort{ width:100%; } .hm-sort select{ flex:1; }
  .hm-tray{ left:8px; right:8px; transform:none; flex-wrap:wrap; }
  .hm-types{ grid-template-columns:1fr 1fr; }
}

/* ---- phones: get to the first company quickly ---- */
@media (max-width:640px){
  .hm-hero{ padding:14px 0 16px; }
  .hm-hero h1{ font-size:24px; margin-bottom:4px; }
  .hm-sub{ font-size:13px; margin-bottom:10px; }
  .hm-chips{ display:none; }
  .hm-results{ padding-top:10px; }
  .hm-quick{ flex-wrap:nowrap; overflow-x:auto; gap:14px; padding-bottom:4px; margin-bottom:8px; scrollbar-width:none; }
  .hm-qg{ flex-wrap:nowrap; flex:none; }
  .hm-fchip{ white-space:nowrap; }
  .hm-fbar{ padding:8px; gap:6px; margin-bottom:8px; }
  .hm-fbar .hm-seg{ order:1; flex:1 1 100%; }
  .hm-fbar .hm-kw{ order:2; flex:1 1 100%; min-width:0; }
  .hm-fbar .hm-sort{ order:3; flex:1; width:auto; } .hm-fbar #hmFiltBtn{ order:4; }
  .hm-sort span{ display:none; }
  .hm-why{ display:none; }
  .hm-res-head p{ display:none; }
  .hm-res-head h2{ font-size:17px; }
}

/* the hero picture: big enough that its two cards read comfortably */
.hm-hero-grid{ grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr); }
.hm-hero-art img{ max-width:400px; margin:-14px 0 -18px auto; }


/* ---- the two live cards over the hero picture (a marketing slot + a local figure) ---- */
.hm-hc{ position:absolute; display:flex; align-items:center; gap:11px; max-width:300px; padding:11px 15px; background:#fff; color:#14212c; border-radius:14px; text-decoration:none;
  box-shadow:0 14px 34px -10px rgba(4,16,28,.55); animation:hm-float 6s ease-in-out infinite; }
.hm-hc[hidden]{ display:none; }
.hm-hc1{ left:-6px; top:8%; }
.hm-hc2{ right:2px; top:44%; animation-delay:-2.5s; }
@keyframes hm-float{ 50%{ transform:translateY(-6px); } }
.hm-hc-ic{ flex:none; width:38px; height:38px; border-radius:10px; display:flex; align-items:center; justify-content:center; background:#1f5a82; color:#fff; font-weight:800; font-size:15px; }
.hm-hc2 .hm-hc-ic{ background:#e6f4ec; color:#1e7d46; border-radius:50%; }
.hm-hc b{ display:block; font-size:15px; line-height:1.25; }
.hm-hc small{ display:block; font-size:12.5px; color:#5a6b78; line-height:1.35; }
.hm-hc small.g{ color:#1e7d46; font-weight:600; }
.hm-hc i{ display:inline-block; margin-left:6px; padding:0 7px; border-radius:999px; background:#fff3d6; color:#8a5a00; font-style:normal; font-size:10.5px; font-weight:800; letter-spacing:.4px; text-transform:uppercase; vertical-align:1px; }
a.hm-hc:hover{ box-shadow:0 18px 40px -10px rgba(4,16,28,.65); }
@media (prefers-reduced-motion:reduce){ .hm-hc{ animation:none; } }
@media (max-width:1180px){ .hm-hc{ max-width:240px; padding:9px 12px; } .hm-hc b{ font-size:14px; } .hm-hc small{ font-size:11.5px; } }
