/* Video hero (HUB-style): a muted, looping clip fades in over the hero photo,
   with a round pause / play button. Only added to preview-video/ builds
   (python3 tools/make_preview.py --video), never to site/. */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
}
.hero__video.is-playing { opacity: 1; }
html.js .hero__media .hero__video { transform: scale(1.06); animation: settle 2.8s var(--ease) forwards; }

.hero__video-toggle {
  position: absolute;
  z-index: 2;
  right: var(--gutter);
  bottom: calc(clamp(28px, 4vw, 56px) + 24px);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--navy-900);
  cursor: pointer;
  box-shadow: 0 8px 24px -12px rgba(7, 26, 48, 0.6);
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.hero__video-toggle:hover { background: var(--sea-100); transform: scale(1.05); }
.hero__video-toggle:focus-visible { outline: 2px solid var(--sea-300); outline-offset: 3px; }
.hero__video-toggle svg { width: 16px; height: 16px; }
.hero__video-toggle .icon-play { display: none; }
.hero__video-toggle.is-paused .icon-play { display: block; }
.hero__video-toggle.is-paused .icon-pause { display: none; }
.hero__video-toggle[hidden] { display: none; }

/* On smaller screens the specialty chips fill the bottom, so the button moves to the top right */
@media (max-width: 960px) {
  .hero__video-toggle { top: 20px; bottom: auto; }
}
/* Phones get a portrait clip sized to the first screen (not the whole hero with the stacked card),
   fading into navy below, and a slightly lighter overlay so the lit towers read */
@media (max-width: 760px) {
  .hero__video {
    bottom: auto;
    height: min(100%, 100svh);
    object-position: 50% 30%;
    -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
  }
  .hero__media:has(.hero__video.is-playing) img { opacity: 0; transition: opacity 1.4s var(--ease); }
  .hero::before {
    background: linear-gradient(180deg, rgba(7, 26, 48, 0.86) 0%, rgba(7, 26, 48, 0.74) 20%, rgba(7, 26, 48, 0.7) 42%, rgba(7, 26, 48, 0.9) 60%, rgba(7, 26, 48, 0.96) 100%);
  }
}
@media (prefers-reduced-motion: reduce) { .hero__video { transition: none; } }

/* Frosted hero card: a line icon for each promise instead of 01-04 */
.hero-card li::before {
  content: "";
  width: 20px;
  height: 20px;
  margin-top: 1px;
  padding: 0;
  background: var(--sea-300);
  -webkit-mask: var(--hc-icon) center / contain no-repeat;
  mask: var(--hc-icon) center / contain no-repeat;
}
.hero-card li:nth-child(1) { --hc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.5'/%3E%3Cpath d='M5 20a7 7 0 0 1 14 0'/%3E%3C/svg%3E"); } /* one person */
.hero-card li:nth-child(2) { --hc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h4'/%3E%3Cpath d='M14 3v5h5'/%3E%3Cpath d='M19 8v2'/%3E%3Cpath d='M8 8h3M8 12h4'/%3E%3Ccircle cx='16' cy='16' r='3'/%3E%3Cpath d='m18.2 18.2 2.3 2.3'/%3E%3C/svg%3E"); } /* a real look at your policy */
.hero-card li:nth-child(3) { --hc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='6' height='14' rx='1.5'/%3E%3Crect x='14.5' y='5' width='6' height='14' rx='1.5'/%3E%3Cpath d='M6.5 9h0M17.5 9h0'/%3E%3Cpath d='M5.5 13h2M16.5 13h2'/%3E%3C/svg%3E"); } /* several carriers, side by side */
.hero-card li:nth-child(4) { --hc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12a8 8 0 0 1-14.2 5'/%3E%3Cpath d='M4 12a8 8 0 0 1 14.2-5'/%3E%3Cpath d='M18.5 3v4h-4'/%3E%3Cpath d='M5.5 21v-4h4'/%3E%3C/svg%3E"); } /* service after the sale */

/* Hero label: a location pin before "Coral Gables, Florida" instead of the middle dot */
.eyebrow__pin { display: inline-flex; align-items: center; gap: 6px; }
.eyebrow__pin svg { width: 14px; height: 14px; flex: none; margin-top: -1px; }
