/* bv17.css — Beach Insurance Mechanical & Body Shops (Archetype A5: Tabbed Coverage Matrix)
   Coastal Carolinas sunlit editorial palette, WCAG 2.2 AA contrast, zero CLS, strict bv17- scoping. */

.bv17-sec {
  background: linear-gradient(180deg, #F5F0E8 0%, #EEF4FB 52%, #FFFFFF 100%);
}

.bv17-shell {
  background: #FFFFFF;
  border: 1px solid rgba(13, 59, 110, 0.16);
  border-radius: 22px;
  box-shadow: 0 2px 8px rgba(13, 59, 110, 0.05), 0 22px 44px -22px rgba(13, 59, 110, 0.22);
  overflow: hidden;
}

/* Folder / Spec Tab Bar */
.bv17-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0.75rem 0.85rem 0;
  background: linear-gradient(180deg, #E8F1FA 0%, #F5F0E8 100%);
  border-bottom: 2px solid rgba(13, 59, 110, 0.14);
}

.bv17-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  min-height: 48px;
  min-width: 44px;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid rgba(13, 59, 110, 0.16);
  border-bottom: none;
  border-radius: 14px 14px 0 0;
  background: rgba(255, 255, 255, 0.72);
  color: #0D3B6E;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.bv17-tab:hover {
  background: #FFFFFF;
  border-color: rgba(11, 107, 82, 0.45);
}

.bv17-tab[aria-selected="true"] {
  background: #0D3B6E;
  border-color: #0D3B6E;
  color: #FFFFFF;
  box-shadow: 0 -2px 10px -4px rgba(13, 59, 110, 0.35);
}

.bv17-tab-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #E4F5F0;
  color: #0B6B52;
  font-size: 0.74rem;
  font-weight: 800;
}

.bv17-tab[aria-selected="true"] .bv17-tab-num {
  background: #D4A017;
  color: #0D3B6E;
}

.bv17-tab-label {
  min-width: 0;
}

/* CLS-locked Schematic Stage */
.bv17-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 960 / 390;
  background: #EEF4FB;
  border-bottom: 1px solid rgba(13, 59, 110, 0.12);
  overflow: hidden;
}

.bv17-svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Zone illumination via CSS classes/data-layer (zero layout shift) */
.bv17-zone {
  opacity: 0.56;
  transition: opacity 0.32s ease;
}

.bv17-halo {
  transition: stroke-width 0.32s ease, fill-opacity 0.32s ease;
}

.bv17-shell[data-layer="garagekeepers"] .bv17-z-garagekeepers,
.bv17-shell[data-layer="paintbooth"] .bv17-z-paintbooth,
.bv17-shell[data-layer="equipment"] .bv17-z-equipment,
.bv17-shell[data-layer="roadparts"] .bv17-z-roadparts {
  opacity: 1;
}

.bv17-shell[data-layer="garagekeepers"] .bv17-z-garagekeepers .bv17-halo,
.bv17-shell[data-layer="paintbooth"] .bv17-z-paintbooth .bv17-halo,
.bv17-shell[data-layer="equipment"] .bv17-z-equipment .bv17-halo,
.bv17-shell[data-layer="roadparts"] .bv17-z-roadparts .bv17-halo {
  stroke-width: 3.5;
}

/* GPU-composited & stroke-dashoffset living vector motion */
@keyframes bv17-dash-flow {
  from { stroke-dashoffset: 24; }
  to { stroke-dashoffset: 0; }
}

@keyframes bv17-dash-up {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: 20; }
}

@keyframes bv17-road-scroll {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: 48; }
}

@keyframes bv17-soft-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes bv17-pulse-soft {
  0%, 100% { opacity: 0.78; }
  50% { opacity: 1; }
}

@keyframes bv17-car-glide {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-8px); }
}

.bv17-flow-down {
  animation: bv17-dash-flow 1.8s linear infinite;
}

.bv17-flow-up {
  animation: bv17-dash-up 1.5s linear infinite;
}

.bv17-mist {
  animation: bv17-dash-flow 1.4s linear infinite;
}

.bv17-spray {
  animation: bv17-pulse-soft 2.2s ease-in-out infinite;
}

.bv17-laser {
  animation: bv17-dash-flow 2s linear infinite;
}

.bv17-lift-car {
  animation: bv17-soft-float 3.8s ease-in-out infinite;
}

.bv17-shield-pulse {
  animation: bv17-pulse-soft 2.8s ease-in-out infinite;
}

.bv17-road-dash {
  animation: bv17-road-scroll 2.1s linear infinite;
}

.bv17-testcar {
  animation: bv17-car-glide 3.2s ease-in-out infinite;
}

/* Dynamic Readout Panel */
.bv17-panel {
  padding: clamp(1.2rem, 2.5vw, 1.8rem);
  background: linear-gradient(180deg, #FFFFFF 0%, #FAF8F4 100%);
}

.bv17-panel-top {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 1.4rem;
  align-items: center;
  margin-bottom: 1.35rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(13, 59, 110, 0.12);
}

.bv17-panel-intro {
  min-width: 0;
}

.bv17-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.72rem;
  border-radius: 999px;
  background: #E4F5F0;
  border: 1px solid rgba(11, 107, 82, 0.28);
  color: #0B6B52;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}

.bv17-panel-title {
  margin: 0 0 0.45rem;
  font-size: clamp(1.12rem, 2vw, 1.4rem);
  font-weight: 800;
  line-height: 1.22;
  color: #0D3B6E;
}

.bv17-panel-desc {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.58;
  color: #334155;
}

/* Coverage Meters */
.bv17-meters {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: #EEF4FB;
  border: 1px solid rgba(13, 59, 110, 0.14);
  min-width: 0;
}

.bv17-meter {
  min-width: 0;
}

.bv17-meter-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.32rem;
}

.bv17-meter-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0D3B6E;
}

.bv17-meter-tag {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0B6B52;
}

.bv17-meter-track {
  height: 9px;
  border-radius: 999px;
  background: rgba(13, 59, 110, 0.12);
  overflow: hidden;
}

.bv17-meter-fill {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  transform-origin: left center;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.bv17-fill-teal { background: #0B6B52; }
.bv17-fill-navy { background: #1565A8; }
.bv17-fill-gold { background: #D4A017; }

/* Policy-Feature Callout Cards */
.bv17-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.bv17-card {
  min-width: 0;
  padding: 1.05rem 1.1rem;
  border-radius: 18px;
  background: #FFFFFF;
  border: 1px solid rgba(13, 59, 110, 0.14);
  box-shadow: 0 6px 18px -14px rgba(13, 59, 110, 0.25);
}

.bv17-card-kicker {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #664904;
  background: #FDF6E3;
  padding: 0.18rem 0.56rem;
  border-radius: 999px;
}

.bv17-card-h {
  margin: 0 0 0.38rem;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.28;
  color: #0D3B6E;
}

.bv17-card-p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.54;
  color: #334155;
}

/* Responsive Breakpoints (Zero horizontal overflow at 390px) */
@media (max-width: 900px) {
  .bv17-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0.65rem;
    gap: 0.45rem;
  }

  .bv17-tab {
    border-bottom: 1.5px solid rgba(13, 59, 110, 0.16);
    border-radius: 12px;
  }

  .bv17-panel-top {
    grid-template-columns: minmax(0, 1fr);
  }

  .bv17-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .bv17-tabs {
    grid-template-columns: minmax(0, 1fr);
  }

  .bv17-shell {
    border-radius: 18px;
  }
}
