/* bv24.css — Beach Insurance Consultants/Consulting (A3 Timeline Ribbon)
   Coastal Carolinas sunlit editorial styling, WCAG 2.2 AA contrast & 44px targets, zero CLS. */

.bv24-shell {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  min-width: 0;
  box-sizing: border-box;
}

.bv24-shell *,
.bv24-shell *::before,
.bv24-shell *::after {
  box-sizing: border-box;
}

.bv24-stage-frame {
  background: linear-gradient(155deg, #FFFFFF 0%, #F5F0E8 55%, #EEF4FB 100%);
  border: 1px solid rgba(13, 59, 110, 0.16);
  border-radius: 22px;
  padding: 0.75rem;
  box-shadow: 0 2px 6px rgba(13, 59, 110, 0.05), 0 18px 40px -20px rgba(13, 59, 110, 0.22);
  overflow: hidden;
}

.bv24-stage-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 960 / 360;
  border-radius: 16px;
  overflow: hidden;
  background: #EEF5FC;
}

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

/* SVG Stage Highlighting & GPU-Composited Transitions */
.bv24-card-bg {
  transition: fill-opacity 0.35s ease, stroke-opacity 0.35s ease, stroke 0.35s ease, stroke-width 0.35s ease;
}

.bv24-scene {
  opacity: 0.68;
  transition: opacity 0.35s ease;
}

.bv24-shell[data-stage="1"] .bv24-scene[data-scene="1"],
.bv24-shell[data-stage="2"] .bv24-scene[data-scene="2"],
.bv24-shell[data-stage="3"] .bv24-scene[data-scene="3"],
.bv24-shell[data-stage="4"] .bv24-scene[data-scene="4"] {
  opacity: 1;
}

.bv24-shell[data-stage="1"] .bv24-card-bg[data-card="1"],
.bv24-shell[data-stage="2"] .bv24-card-bg[data-card="2"],
.bv24-shell[data-stage="3"] .bv24-card-bg[data-card="3"],
.bv24-shell[data-stage="4"] .bv24-card-bg[data-card="4"] {
  fill-opacity: 0.98;
  stroke: #0B6B52;
  stroke-opacity: 0.95;
  stroke-width: 2.5;
}

.bv24-trace {
  transition: stroke-dashoffset 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.bv24-node {
  transition: fill 0.3s ease, stroke 0.3s ease;
}

.bv24-beacon {
  transform-box: fill-box;
  transform-origin: center;
  animation: bv24Pulse 2.8s ease-in-out infinite;
  transition: cx 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.bv24-wave-a {
  animation: bv24DriftA 7.5s ease-in-out infinite;
}

.bv24-wave-b {
  animation: bv24DriftB 9.2s ease-in-out infinite;
}

.bv24-flow-dash {
  animation: bv24Dash 2.6s linear infinite;
}

.bv24-alert-ping {
  transform-box: fill-box;
  transform-origin: center;
  animation: bv24Ping 2.4s ease-in-out infinite;
}

.bv24-shield-halo {
  transform-box: fill-box;
  transform-origin: center;
  animation: bv24Halo 3.2s ease-in-out infinite;
}

.bv24-sun-core {
  transform-box: fill-box;
  transform-origin: center;
  animation: bv24Halo 4.8s ease-in-out infinite;
}

@keyframes bv24Pulse {
  0%, 100% { transform: scale(1); opacity: 0.92; }
  50% { transform: scale(1.18); opacity: 0.48; }
}

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

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

@keyframes bv24Dash {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -16; }
}

@keyframes bv24Ping {
  0%, 100% { transform: scale(1); opacity: 0.95; }
  50% { transform: scale(1.24); opacity: 0.72; }
}

@keyframes bv24Halo {
  0%, 100% { transform: scale(1); opacity: 0.14; }
  50% { transform: scale(1.07); opacity: 0.24; }
}

/* Accessible 44x44px Pin Overlays */
.bv24-pin-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bv24-pin {
  position: absolute;
  top: 82.2%;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  transform: translate(-50%, -50%);
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  border-radius: 999px;
}

.bv24-pin-1 { left: 13.54%; }
.bv24-pin-2 { left: 37.5%; }
.bv24-pin-3 { left: 61.46%; }
.bv24-pin-4 { left: 85.94%; }

.bv24-pin-dot {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #FFFFFF;
  color: #0D3B6E;
  border: 2px solid #1565A8;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px -4px rgba(13, 59, 110, 0.35);
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.bv24-pin:hover .bv24-pin-dot {
  transform: scale(1.1);
  border-color: #0B6B52;
}

.bv24-pin[aria-pressed="true"] .bv24-pin-dot {
  background: #0B6B52;
  color: #FFFFFF;
  border-color: #D4A017;
  transform: scale(1.12);
}

/* Horizontal 4-Milestone Connected Progress Rail */
.bv24-rail-wrap {
  position: relative;
  min-width: 0;
}

.bv24-rail-track {
  display: none;
}

@media (min-width: 768px) {
  .bv24-rail-track {
    display: block;
    position: absolute;
    top: 50%;
    left: 2rem;
    right: 2rem;
    height: 4px;
    transform: translateY(-50%);
    background: rgba(13, 59, 110, 0.14);
    border-radius: 999px;
    overflow: hidden;
    z-index: 0;
  }

  .bv24-rail-fill {
    height: 100%;
    width: 12%;
    background: linear-gradient(90deg, #1565A8 0%, #0F8A6A 100%);
    border-radius: 999px;
    transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  }
}

.bv24-rail {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.65rem;
}

@media (min-width: 520px) {
  .bv24-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .bv24-rail {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
  }
}

.bv24-step {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  min-width: 0;
  min-height: 54px;
  padding: 0.68rem 0.85rem;
  border: 1.5px solid rgba(13, 59, 110, 0.18);
  border-radius: 18px;
  background: #FFFFFF;
  color: #0D3B6E;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 4px 14px -10px rgba(13, 59, 110, 0.25);
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.bv24-step:hover {
  border-color: #1565A8;
  background: #F7FBFF;
  transform: translateY(-1px);
}

.bv24-step[aria-selected="true"] {
  background: #0D3B6E;
  border-color: #0D3B6E;
  color: #FFFFFF;
  box-shadow: 0 12px 24px -14px rgba(13, 59, 110, 0.55);
}

.bv24-step-num {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  background: #EEF4FB;
  color: #0D3B6E;
  border: 1px solid rgba(21, 101, 168, 0.25);
}

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

.bv24-step-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.bv24-step-title {
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bv24-step-meta {
  font-size: 0.76rem;
  line-height: 1.25;
  color: #475569;
  margin-top: 0.14rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bv24-step[aria-selected="true"] .bv24-step-meta {
  color: #DCEAF7;
}

/* Concise Narrative Strip */
.bv24-narrative {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #FFFFFF;
  border: 1px solid rgba(13, 59, 110, 0.16);
  border-left: 5px solid #0B6B52;
  border-radius: 18px;
  padding: 1.1rem 1.25rem;
  box-shadow: 0 8px 24px -18px rgba(13, 59, 110, 0.22);
  min-width: 0;
}

@media (min-width: 768px) {
  .bv24-narrative {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.2rem 1.45rem;
  }
}

.bv24-nar-main {
  flex: 1 1 auto;
  min-width: 0;
}

.bv24-nar-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  margin-bottom: 0.45rem;
}

.bv24-stage-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.24rem 0.72rem;
  border-radius: 999px;
  background: #E4F5F0;
  color: #0B6B52;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bv24-region-note {
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
}

.bv24-nar-title {
  margin: 0 0 0.42rem;
  font-size: clamp(1.06rem, 1.8vw, 1.24rem);
  font-weight: 800;
  line-height: 1.28;
  color: #0D3B6E;
}

.bv24-nar-body {
  margin: 0 0 0.75rem;
  font-size: 0.94rem;
  line-height: 1.58;
  color: #334155;
  max-width: 62ch;
}

.bv24-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.bv24-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  background: #F5F0E8;
  border: 1px solid rgba(13, 59, 110, 0.16);
  color: #0D3B6E;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
}

.bv24-nar-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  flex: 0 0 auto;
}

.bv24-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  min-height: 44px;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  border: 1.5px solid #0D3B6E;
  background: #FFFFFF;
  color: #0D3B6E;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.bv24-nav-btn:hover {
  background: #EEF4FB;
}

.bv24-nav-primary {
  background: #0B6B52;
  border-color: #0B6B52;
  color: #FFFFFF;
}

.bv24-nav-primary:hover {
  background: #0D3B6E;
  border-color: #0D3B6E;
}

@media (max-width: 480px) {
  .bv24-stage-frame {
    padding: 0.45rem;
    border-radius: 18px;
  }

  .bv24-pin-dot {
    width: 20px;
    height: 20px;
    font-size: 0.68rem;
  }

  .bv24-nar-nav {
    width: 100%;
  }

  .bv24-nav-btn {
    flex: 1 1 auto;
  }
}

/* Reduced motion & paused state */
@media (prefers-reduced-motion: reduce) {
  .bv24-shell *,
  .bv24-shell *::before,
  .bv24-shell *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}

html.bvm-paused .bv24-shell * {
  animation-play-state: paused !important;
}
