/* =========================
   Connexzia Main CSS (clean)
   ========================= */

:root { --brand:#0d6efd; }

* { box-sizing: border-box; }

body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* ---- Generic UI ---- */
.bg-gradient {
  background: linear-gradient(135deg, #f8fbff 0%, #eef3ff 100%);
}
.navbar-brand { letter-spacing: .3px; }
.dropdown-menu.mega { border-radius: 1rem; }
.card { border-radius: 1rem; }
.btn { border-radius: .75rem; }
img, iframe { border-radius: .75rem; }
h1,h2,h3,h4,h5 { letter-spacing:-.2px; }

/* ---- Hero (gradient like expedited) ---- */
.hero {
  background:
    radial-gradient(1200px 600px at 10% -10%, #eff5ff 0%, rgba(239,245,255,0) 60%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 70%);
  position: relative;
}
.hero-wave {
  position: absolute; inset: auto 0 0 0; height: 80px;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0, #fff 60%);
}
.scroll-hint { font-size: .9rem; color: #6c757d; }
.scroll-hint .chev { display:inline-block; animation: chev 1.2s infinite; }
@keyframes chev { 0%{transform:translateY(0)} 50%{transform:translateY(4px)} 100%{transform:translateY(0)} }

/* ---- Trust tiles ---- */
.trust-tile {
  display:flex; align-items:center; gap:.5rem;
  padding:.6rem .75rem;
  border:1px solid #e9ecef; border-radius:.75rem; background:#fff;
  box-shadow:0 1px 0 rgba(0,0,0,0.02);
}

/* ---- Service cards ---- */
.card-tile { border-radius:1rem; transition: transform .15s ease, box-shadow .15s ease; }
.card-tile:hover { transform: translateY(-2px); box-shadow: 0 .5rem 1rem rgba(0,0,0,.08); }

/* ---- Industry pills ---- */
.pill-tile {
  background:#fff; border:1px solid #e9ecef; border-radius:999px;
  padding:.6rem .9rem; text-align:center;
  box-shadow:0 1px 0 rgba(0,0,0,0.02);
}

/* =========================
   Map (full SVG + hubs)
   ========================= */

/* Frame */
.map-frame { overflow:hidden; border-radius:1rem; }

/* Chips displayed to the right of the map */
.state-chip {
  border:1px dashed #d0d7de; border-radius:.65rem; padding:.45rem .5rem;
  text-align:center; font-weight:700; background:#fff; font-size:.85rem;
}

/* Legend dots (used in header near the map) */
.legend-dot {
  width:.65rem; height:.65rem; display:inline-block;
  border-radius:999px; border:1px solid rgba(0,0,0,.12);
}
.legend-dot.available { background:#10b981; }  /* green */
.legend-dot.standby   { background:#f59e0b; }  /* amber */
.legend-dot.hub       { background:#111827; }  /* black */

/* Scoped map rules — match the wrapper produced by home.php */
#czx-map-wrap.czx-map-wrap svg { width:100%; height:auto; display:block; }

/* State shapes (expects ids like US-CA, US-TX, …). These are SAFE because they are scoped. */
#czx-map-wrap.czx-map-wrap [id^="US-"] {
  fill:#eef2ff; stroke:#c7d2fe; stroke-width:1;
  cursor:pointer; transition:fill .15s ease, stroke .15s ease;
}
#czx-map-wrap.czx-map-wrap [id^="US-"]:hover { fill:#dbeafe; stroke:#93c5fd; }

/* Hub markers injected via JS */
#czx-map-wrap.czx-map-wrap .hub-dot { fill:#111827; stroke:#fff; stroke-width:1.5; }
#czx-map-wrap.czx-map-wrap .hub-dot.active { fill:#10b981; }
#czx-map-wrap.czx-map-wrap .hub-dot.surge  { fill:#f59e0b; }
#czx-map-wrap.czx-map-wrap .hub-label {
  font:600 10px/1 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  fill:#111827; paint-order:stroke; stroke:#fff; stroke-width:3;
}

/* =========================
   Lanes marquee (optional)
   ========================= */
.lanes-wrap{ overflow:hidden; border:1px solid #e5e7eb; border-radius:14px; background:#fff; }
.lanes-track{ display:flex; gap:2rem; padding:.75rem 1rem; white-space:nowrap; animation: lanes 30s linear infinite; }
.lanes-track span{ font-size:.95rem; color:#4b5563; }
@keyframes lanes{ 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ===== Mobile-first upgrades ================================================= */

/* 3-bar icon for the navbar toggler (works regardless of .navbar-light/dark) */
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(17,17,17,.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.navbar-toggler { border: 0; }

/* Better container padding on tiny screens */
@media (max-width: 575.98px) {
  .container { padding-left: 1rem; padding-right: 1rem; }
}

/* Hero: tighter vertical rhythm on phones */
.hero .display-5 { font-size: clamp(1.75rem, 5vw, 2.75rem); }
.hero .lead { font-size: clamp(1rem, 2.8vw, 1.125rem); }
.trust-tile { padding: .55rem .7rem; }

/* Cards: subtle scale on hover only for non-touch */
@media (hover: hover) {
  .card-tile:hover { transform: translateY(-2px); }
}

/* Coverage map: ensure it never overflows, add breathing room */
.map-frame { border-radius: 1rem; }
.czx-map-wrap svg { width: 100%; height: auto; display: block; }
@media (max-width: 991.98px) {
  #coverage .legend-dot { transform: translateY(1px); }
  #coverage .d-none.d-md-flex { display: none !important; } /* hide desktop legend row */
}

/* State chips: switch to responsive CSS grid on small screens */
@media (max-width: 991.98px) {
  .state-chip { font-size: .9rem; padding: .5rem .6rem; }
}
@media (max-width: 575.98px) {
  .state-chip { font-size: .85rem; }
}

/* Services grid: comfortable spacing on phones */
@media (max-width: 767.98px) {
  .card .card-title { font-size: 1rem; }
  .card .text-muted { font-size: .9rem; }
}

/* Footer stacks cleanly on mobile */
footer .row > [class*="col-"] { margin-bottom: 1rem; }

/* Touch target comfort for all buttons/links */
.btn, .nav-link, .state-chip, .dropdown-item { min-height: 42px; }

/* iOS momentum scrolling for any overflow areas (if you add carousels etc.) */
.carousel, .overflow-auto, .map-frame { -webkit-overflow-scrolling: touch; }

/* Make dropdown mega usable on mobile (full width stack) */
@media (max-width: 991.98px) {
  .dropdown-menu.mega { position: static; float: none; width: 100%; margin-top: .5rem !important; border-radius: .75rem; }
}

.industry-card {
  transition: transform .2s ease, box-shadow .2s ease;
}
.industry-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.08);
}

.icon-circle {
  width:48px; height:48px;
  display:flex; align-items:center; justify-content:center;
  border-radius:50%;
  background:#eef2ff;
  color:#0d6efd;
  margin-bottom:.5rem;
}

.card-body h5 { font-weight:600; }
.card-body p { line-height:1.4; }

@media (max-width: 767.98px) {
  .industry-card:hover { transform:none; }
}

/* Industry detail extras */
.state-chip{border:1px dashed rgba(0,0,0,.15); border-radius:10px; padding:.35rem .6rem}

footer .d-flex svg {
  stroke: #0d6efd;          /* your brand color */
}
footer .d-flex svg:hover {
  stroke: #0b5ed7;          /* darker on hover */
}
footer .d-flex span {
  color: #e5e7eb;           /* light gray text on dark bg */
}

/* Tiny trust chips inside the mobile drawer */
.m-trust .chip{
  transform: scale(.78);
  transform-origin: left center;
  padding:.1rem .4rem;
  border-radius: 14px;
}
.m-trust .chip svg{ width:12px; height:12px }
.m-trust{ gap:.35rem }