/* Homepage hero only. Load after the existing style.css. */
#hero.sd-hero {
  --sd-navy: #063567;
  position: relative;
  overflow: hidden;
  padding: 0;
  background: #052b54;
  color: #fff;
  text-align: left;
  isolation: isolate;
}
#hero .sd-layout { position: relative; max-width: 1920px; margin: auto; min-height: 760px; padding: 156px 5% 98px; }
#hero .sd-copy, #hero .sd-reassurance { position: relative; z-index: 3; width: 45%; max-width: 680px; }
#hero .sd-copy h1 { margin: 0 0 22px; font: 700 clamp(54px, 4.6vw, 88px)/1.02 "Jost", Arial, sans-serif; letter-spacing: -.035em; }
#hero .sd-copy h1 span { color: #a6dfff; }
#hero .sd-intro { margin: 0 0 4px; font-size: clamp(19px, 1.5vw, 26px); line-height: 1.4; }
#hero .sd-value { margin: 0 0 26px; color: #ffdc24; font-size: clamp(19px, 1.5vw, 26px); font-weight: 700; }
#hero .sd-states { display: flex; gap: 12px; }
#hero .sd-states a { display: grid; grid-template-columns: 28px 1fr 20px; flex: 1; align-items: center; gap: 8px; min-height: 62px; padding: 15px 12px; border: 1px solid #d2e8fa; border-radius: 8px; background: #fff; color: #083564; font-size: clamp(16px, 1.2vw, 21px); font-weight: 700; white-space: nowrap; box-shadow: 0 5px 18px #00162d30; transition: background .18s, transform .18s; }
#hero .sd-state-icon { display: block; width: 28px; height: 28px; object-fit: contain; }
#hero .sd-states a span { font-size: 25px; line-height: 1; }
#hero .sd-states a:hover { background: #e2f4ff; transform: translateY(-2px); }
#hero a:focus-visible { outline: 3px solid #ffdc24; outline-offset: 5px; }
#hero .sd-visual { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
#hero .sd-driver { position: absolute; right: 0; top: 0; width: 70%; height: 100%; object-fit: cover; object-position: 35% 45%; }
#hero .sd-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #06366b 0%, #06366bf5 29%, #06366bc9 39%, #06366b08 60%), linear-gradient(0deg, #052b54d9, transparent 28%), linear-gradient(180deg, #052b5499, transparent 110px); }
#hero .sd-story {
  position: absolute;
  z-index: 2;
  right: 1%;
  top: 365px;
  width: 34%;
  pointer-events: none;
}

#hero .sd-story-overlay {
  display: block;
  width: 100%;
  height: auto;
}
#hero .sd-video { display: flex; align-items: center; gap: 14px; width: fit-content; margin: 24px 0 28px; color: #fff; font-size: clamp(16px,1.25vw,22px); font-weight: 600; }
#hero .sd-video:hover { color: #a6dfff; }
#hero .sd-play { display: grid; place-items: center; width: 50px; height: 50px; flex-shrink: 0; padding-left: 3px; border: 2px solid currentColor; border-radius: 50%; font-size: 21px; }
#hero .sd-agencies { display: grid; grid-template-columns: 1fr 1fr 1fr .85fr; align-items: center; gap: 0; width: 100%; max-width: 620px; padding: 0; background: transparent; }
#hero .sd-agencies img { width: 100%; height: 66px; padding: 4px 16px; object-fit: contain; border-right: 1px solid #c0def1aa; }
#hero .sd-agencies img:first-child { padding-left: 0; }
#hero .sd-approval-copy { margin: 0; padding-left: 18px; color: #fff; font-size: 15px; line-height: 1.5; }
#hero .sd-approval-copy span { display: block; white-space: nowrap; }
#hero .hero-waves { position: absolute; bottom: -1px; left: 0; height: 60px; margin: 0; }
@media (min-width: 1600px) {
  #hero .sd-layout { min-height: 840px; padding-top: 175px; }
  #hero .sd-story { top: 305px; }
}
/* Bootstrap xl: tablets use the same DOM in a vertical composition. */
@media (max-width: 1199.98px) {
  #hero .sd-layout { min-height: 0; padding: 122px 0 100px; }
  #hero .sd-copy, #hero .sd-reassurance { width: auto; max-width: 720px; margin: 0 auto; padding: 0 30px; }
  #hero .sd-copy { text-align: center; }
  #hero .sd-copy h1 { font-size: 64px; }
  #hero .sd-intro { margin: 0 auto 5px; font-size: 23px; }
  #hero .sd-value { font-size: 23px; }
  #hero .sd-visual { position: relative; inset: auto; height: 580px; margin-top: 30px; }
  #hero .sd-driver { width: 100%; object-position: center 38%; }
  #hero .sd-visual::after { background: linear-gradient(0deg,#052b54 0%,#052b5433 25%,transparent 50%,#052b5440 100%); }
  #hero .sd-story { top: auto; bottom: 0; width: 43%; right: 5%; }
  #hero .sd-reassurance { display: flex; flex-direction: column; align-items: center; }
  #hero .sd-video { font-size: 20px; }
}
/* Bootstrap md: decision first, then driver and story on continued scroll. */
@media (max-width: 767.98px) {
  #hero .sd-layout { padding-top: 102px; padding-bottom: 90px; }
  #hero .sd-copy, #hero .sd-reassurance { padding: 0 22px; }
  #hero .sd-copy h1 { font-size: clamp(40px, 10.8vw, 64px); margin-bottom: 18px; }
  #hero .sd-intro { max-width: 370px; font-size: 19px; line-height: 1.45; }
  #hero .sd-value { margin: 8px 0 22px; font-size: 18px; }
  #hero .sd-states { flex-direction: column; gap: 10px; max-width: 480px; margin: 0 auto; }
  #hero .sd-states a { width: 100%; min-height: 58px; padding: 14px 23px; font-size: 20px; }
  #hero .sd-visual { height: 630px; margin-top: 22px; }
  #hero .sd-driver { height: 570px; object-position: 34% center; }
  #hero .sd-visual::after { background: linear-gradient(0deg,#052b54 0%,#052b5460 25%,transparent 57%); }
  #hero .sd-story { right: 4%; bottom: 0; width: 82%; }
  #hero .sd-video { font-size: 16px; gap: 10px; margin: 20px 0 25px; }
  #hero .sd-play { width: 42px; height: 42px; font-size: 17px; }
  #hero .sd-agencies { grid-template-columns: repeat(3, 1fr); width: 100%; gap: 0; padding: 0; }
  #hero .sd-agencies img { width: 100%; height: 49px; padding: 3px 12px; }
  #hero .sd-agencies img:nth-child(3) { border-right: 0; padding-right: 0; }
  #hero .sd-approval-copy { grid-column: 1 / -1; padding: 14px 0 0; text-align: center; font-size: 14px; }
  #hero .sd-approval-copy span { display: inline; }
}
@media (max-width: 359.98px) {
  #hero .sd-copy, #hero .sd-reassurance { padding: 0 16px; }
  #hero .sd-value { font-size: 16px; }
  #hero .sd-video { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  #hero *, #hero *::before, #hero *::after { animation: none !important; transition: none !important; }
  #hero .sd-states a:hover { transform: none; }
}
