/*
CHANGE LOG
File: static/css/home_carrier_hero.css
Purpose: Homepage carrier search + map hero, stat strip and six workflow cards (2026-09-30).
         Uses the site tokens from prohrhq_public.css only.
Version History:
  2026-09-30 v1.0 - Initial.
*/
.hc-hero { display: grid; grid-template-columns: minmax(300px, 440px) 1fr; gap: 1.25rem; align-items: stretch; margin: 1rem 0 1.25rem; }
.hc-panel { background: var(--color-bg); border: 1px solid var(--color-rule); border-radius: 10px; padding: 1.4rem 1.4rem 1.1rem; box-shadow: 0 2px 10px rgba(20, 40, 70, .06); }
.hc-panel h1 { font-size: clamp(1.5rem, 2.4vw, 1.95rem); line-height: 1.15; margin: 0 0 .6rem; }
.hc-sub { color: var(--color-text-mute); margin: 0 0 1rem; }
.hc-form { display: grid; gap: .65rem; }
.hc-q { width: 100%; box-sizing: border-box; padding: .75rem .9rem; font-size: 1rem; border: 1px solid var(--color-rule); border-radius: 8px; }
.hc-row { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.hc-field { display: grid; gap: .2rem; font-size: .8rem; color: var(--color-text-mute); }
.hc-field select { padding: .6rem .5rem; font-size: .95rem; border: 1px solid var(--color-rule); border-radius: 8px; background: var(--color-bg); color: var(--color-text); }
.hc-actions { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin-top: .2rem; }
.hc-advanced { font-size: .9rem; }
.hc-btn { background: var(--color-accent); color: #fff; border: 0; border-radius: 8px; padding: .75rem 1.3rem; font-size: 1rem; font-weight: 600; cursor: pointer; }
.hc-btn:hover { background: var(--color-link-hover); }
.hc-popular { font-size: .85rem; color: var(--color-text-mute); margin: .9rem 0 0; }

.hc-map { position: relative; min-height: 420px; border-radius: 10px; overflow: hidden; border: 1px solid var(--color-rule); background: var(--color-bg-alt); }
.hc-map-canvas, .hc-map .hc-map-canvas.maplibregl-map { position: absolute; inset: 0; }   /* maplibre-gl.css sets .maplibregl-map{position:relative}, which collapsed the canvas to 0 height */
.hc-map-status { position: absolute; left: 1rem; bottom: 2.6rem; margin: 0; background: var(--color-bg); padding: .35rem .6rem; border-radius: 6px; font-size: .85rem; }
.hc-badge { position: absolute; top: .8rem; left: .8rem; z-index: 2; background: var(--color-bg); border-radius: 10px; padding: .55rem .9rem; box-shadow: 0 2px 10px rgba(20, 40, 70, .15); text-decoration: none; color: var(--color-text); display: grid; }
.hc-badge strong { font-size: 1.3rem; }
.hc-badge span { font-size: .85rem; color: var(--color-text-mute); }
.hc-legend { position: absolute; right: .8rem; bottom: .8rem; z-index: 2; margin: 0; max-width: 16rem; background: var(--color-bg); border-radius: 8px; padding: .45rem .7rem; font-size: .8rem; color: var(--color-text-mute); }
.hc-bubble { display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(31, 77, 138, .85); color: #fff; font-size: .72rem; font-weight: 700; text-decoration: none; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.hc-bubble:hover { background: var(--color-link-hover); }

.hc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--color-rule-soft); border-bottom: 1px solid var(--color-rule-soft); margin-bottom: 1.5rem; }
.hc-stat { display: grid; }
.hc-stat strong { font-size: 1.5rem; color: var(--color-accent); }
.hc-stat span { color: var(--color-text-mute); }
.hc-source { grid-column: 1 / -1; margin: 0; font-size: .8rem; color: var(--color-text-mute); }

.hc-branches h2 { margin: 0 0 .9rem; }
.hc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; margin-bottom: 2rem; }
.hc-card { display: grid; gap: .35rem; align-content: start; padding: 1rem 1.1rem; border: 1px solid var(--color-rule); border-radius: 10px; background: var(--color-bg); text-decoration: none; color: var(--color-text); }
.hc-card:hover { border-color: var(--color-accent); box-shadow: 0 2px 10px rgba(20, 40, 70, .08); }
.hc-card h3 { margin: 0; font-size: 1.05rem; }
.hc-card p { margin: 0; font-size: .9rem; color: var(--color-text-mute); }
.hc-card span { color: var(--color-link); font-size: .9rem; font-weight: 600; }

@media (max-width: 860px) {
  .hc-hero { grid-template-columns: 1fr; }
  .hc-map { min-height: 320px; }
  .hc-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .hc-row, .hc-stats, .hc-cards { grid-template-columns: 1fr; }
}
.hc-card > a { color: var(--color-link); font-size: .9rem; font-weight: 600; }
.hc-carrier-band { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; background: #fff7e0; border: 1px solid #f0d58a; border-radius: 10px; padding: .6rem 1rem; margin: .8rem 0 0; }
.hc-carrier-band p { margin: 0; color: var(--color-text); flex: 1 1 20rem; }
.hc-carrier-band-actions { display: flex; gap: .7rem; }
a.hc-btn { display: inline-block; text-decoration: none; }
a.hc-btn:visited { color: #fff; }
.hc-btn--outline, a.hc-btn--outline:visited { background: var(--color-bg); color: var(--color-accent); border: 1px solid var(--color-accent); }
.cs-page { max-width: 46rem; padding-top: 1rem; padding-bottom: 3rem; }
.cs-lead { font-size: 1.05rem; }
.cs-help { font-size: .9rem; color: var(--color-text-mute); margin-top: 1.5rem; }
.hc-carrier-band .hc-btn { padding: .5rem 1rem; font-size: .95rem; }
.hc-btn--signin, a.hc-btn--signin:visited { background: #f0b429; color: #1a1a1a; }
.hc-btn--signin:hover { background: #e0a31a; }
