/* bv13.css — Beach Insurance Food Service (A5 Tabbed Coverage Matrix Switcher)
   Coastal Carolinas Sunlit Editorial | WCAG 2.2 AA | Zero CLS | Zero 390px overflow */

.bv13-sec *,
.bv13-sec *::before,
.bv13-sec *::after {
  box-sizing: border-box;
}

.bv13-shell {
  background: var(--bv-paper, #FFFFFF);
  border: 1px solid var(--bv-line-strong, rgba(13, 59, 110, 0.24));
  border-radius: 22px;
  box-shadow: var(--bv-shadow, 0 18px 40px -18px rgba(13, 59, 110, 0.18));
  overflow: hidden;
}

/* Horizontal folder/spec tab bar */
.bv13-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.75rem 0.85rem 0;
  background: linear-gradient(180deg, #F5F0E8 0%, #ECE6DA 100%);
  border-bottom: 1px solid var(--bv-line, rgba(13, 59, 110, 0.14));
}

.bv13-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 46px;
  min-width: 44px;
  padding: 0.6rem 1.05rem;
  margin: 0 0 -1px 0;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background: rgba(255, 255, 255, 0.58);
  color: var(--bv-navy, #0D3B6E);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.bv13-tab:hover {
  background: rgba(255, 255, 255, 0.92);
}

.bv13-tab[aria-selected="true"] {
  background: #FFFFFF;
  color: var(--bv-navy, #0D3B6E);
  border-color: var(--bv-line-strong, rgba(13, 59, 110, 0.24));
  box-shadow: 0 -3px 0 0 #0B6B52 inset;
}

.bv13-tab-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.65rem;
  height: 1.65rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #EEF4FB;
  color: #0D3B6E;
  font-size: 0.75rem;
  font-weight: 800;
}

.bv13-tab[aria-selected="true"] .bv13-tab-num {
  background: #0B6B52;
  color: #FFFFFF;
}

/* Full-width schematic stage — locked 960/390 aspect-ratio for CLS = 0.000 */
.bv13-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 960 / 390;
  background: linear-gradient(180deg, #DCECF9 0%, #EEF4FB 58%, #F5F0E8 100%);
  border-bottom: 1px solid var(--bv-line, rgba(13, 59, 110, 0.14));
  overflow: hidden;
}

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

/* SVG Zone state transitions */
.bv13-zone {
  transition: opacity 0.32s ease;
  opacity: 0.56;
}

.bv13-zone-halo {
  opacity: 0;
  transition: opacity 0.32s ease;
}

.bv13-shell[data-active="kitchen"] .bv13-zone[data-bv13-zone="kitchen"],
.bv13-shell[data-active="liquor"] .bv13-zone[data-bv13-zone="liquor"],
.bv13-shell[data-active="delivery"] .bv13-zone[data-bv13-zone="delivery"],
.bv13-shell[data-active="catering"] .bv13-zone[data-bv13-zone="catering"] {
  opacity: 1;
}

.bv13-shell[data-active="kitchen"] .bv13-zone[data-bv13-zone="kitchen"] .bv13-zone-halo,
.bv13-shell[data-active="liquor"] .bv13-zone[data-bv13-zone="liquor"] .bv13-zone-halo,
.bv13-shell[data-active="delivery"] .bv13-zone[data-bv13-zone="delivery"] .bv13-zone-halo,
.bv13-shell[data-active="catering"] .bv13-zone[data-bv13-zone="catering"] .bv13-zone-halo {
  opacity: 1;
}

/* Living vector GPU-composited animations */
.bv13-steam {
  animation: bv13SteamRise 3.2s ease-in-out infinite;
}
.bv13-steam-2 { animation-delay: 0.9s; }
.bv13-steam-3 { animation-delay: 1.8s; }

.bv13-chill-ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: bv13SpinSlow 14s linear infinite;
}

.bv13-bar-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: bv13SoftPulse 3s ease-in-out infinite;
}

.bv13-flow-line {
  animation: bv13DashFlow 2.6s linear infinite;
}

.bv13-umbrella-arch {
  animation: bv13DashFlow 6s linear infinite;
}

.bv13-road-dash {
  animation: bv13DashFlow 2.2s linear infinite;
}

.bv13-wave-a {
  animation: bv13WaveDrift 5.5s ease-in-out infinite;
}
.bv13-wave-b {
  animation: bv13WaveDrift 7s ease-in-out infinite reverse;
}

.bv13-spoke {
  transform-box: fill-box;
  transform-origin: center;
  animation: bv13SpinSlow 4.5s linear infinite;
}

.bv13-sun-halo {
  transform-box: fill-box;
  transform-origin: center;
  animation: bv13SoftPulse 5s ease-in-out infinite;
}

@keyframes bv13SteamRise {
  0% { opacity: 0.15; transform: translateY(5px); }
  50% { opacity: 0.85; transform: translateY(-4px); }
  100% { opacity: 0.15; transform: translateY(-11px); }
}

@keyframes bv13SpinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes bv13SoftPulse {
  0%, 100% { opacity: 0.25; transform: scale(0.94); }
  50% { opacity: 0.72; transform: scale(1.08); }
}

@keyframes bv13DashFlow {
  from { stroke-dashoffset: 32; }
  to { stroke-dashoffset: 0; }
}

@keyframes bv13WaveDrift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(10px); }
}

/* 44x44 accessible HTML hotspot pins centered over SVG zones */
.bv13-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
}

.bv13-pin-dot {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  color: #0D3B6E;
  border: 2px solid #0D3B6E;
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(13, 59, 110, 0.25);
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.bv13-pin:hover .bv13-pin-dot {
  transform: scale(1.08);
  background: #EEF4FB;
}

.bv13-pin[aria-pressed="true"] .bv13-pin-dot {
  background: #D4A017;
  color: #0D3B6E;
  border-color: #0D3B6E;
  transform: scale(1.12);
  box-shadow: 0 0 0 5px rgba(212, 160, 23, 0.34), 0 6px 14px rgba(13, 59, 110, 0.28);
}

/* Readout panel & coverage meters */
.bv13-panel {
  padding: clamp(1.15rem, 2.5vw, 1.75rem);
  background: linear-gradient(180deg, #FFFFFF 0%, #FAF8F4 100%);
}

.bv13-panel-top {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  margin-bottom: 1.25rem;
}

.bv13-panel-head {
  min-width: 0;
}

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

.bv13-panel-title {
  margin: 0 0 0.45rem;
  font-size: clamp(1.15rem, 1.9vw, 1.42rem);
  font-weight: 800;
  line-height: 1.22;
  color: #0D3B6E;
}

.bv13-panel-lead {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.58;
  color: #334155;
}

.bv13-meters {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
  padding: 0.95rem 1.05rem;
  border-radius: 16px;
  background: #EEF4FB;
  border: 1px solid rgba(13, 59, 110, 0.14);
}

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

.bv13-meter-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0D3B6E;
}

.bv13-meter-val {
  font-size: 0.78rem;
  font-weight: 800;
  color: #0B6B52;
  white-space: nowrap;
}

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

.bv13-meter-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #1565A8 0%, #2E90D1 100%);
  transition: width 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.bv13-meter-teal {
  background: linear-gradient(90deg, #0B6B52 0%, #0F8A6A 100%);
}

.bv13-meter-gold {
  background: linear-gradient(90deg, #B6840E 0%, #D4A017 100%);
}

/* 3 Policy-feature callout cards */
.bv13-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem;
}

.bv13-card {
  min-width: 0;
  padding: 1rem 1.05rem;
  border-radius: 16px;
  background: #FFFFFF;
  border: 1px solid rgba(13, 59, 110, 0.14);
  box-shadow: 0 4px 14px -10px rgba(13, 59, 110, 0.22);
}

.bv13-card-kicker {
  display: inline-block;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #664904;
  background: #FDF6E3;
  border: 1px solid rgba(212, 160, 23, 0.38);
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

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

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

/* Mobile responsiveness (zero overflow at 390px) */
@media (max-width: 860px) {
  .bv13-panel-top {
    grid-template-columns: minmax(0, 1fr);
  }
  .bv13-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .bv13-tabs {
    padding: 0.6rem;
    gap: 0.4rem;
  }
  .bv13-tab {
    flex: 1 1 calc(50% - 0.4rem);
    justify-content: flex-start;
    border-radius: 12px;
    border-bottom: 1px solid transparent;
    margin-bottom: 0;
    padding: 0.55rem 0.7rem;
    font-size: 0.83rem;
  }
  .bv13-tab[aria-selected="true"] {
    border-color: #0B6B52;
    box-shadow: 0 0 0 1px #0B6B52 inset;
  }
  .bv13-pin-dot {
    width: 26px;
    height: 26px;
    font-size: 0.68rem;
  }
}
