/* ==========================================================================
   ShieldU Insurance — brand homepage additions (loads after style.css)
   ========================================================================== */

/* Hero: rotating product photos under a navy scrim, with the SU shield mark */
.hub-hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-950);
  color: var(--white);
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.2s ease, transform 7s ease-out;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hub-hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(26,35,79,0.94) 0%, rgba(26,35,79,0.78) 45%, rgba(26,35,79,0.25) 100%);
}
.hero-products { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 22px; }
.hero-product {
  position: relative;
  padding: 0 0 8px;
  border: 0;
  background: none;
  color: rgba(255,255,255,0.6);
  font: 700 0.8rem/1 var(--font-sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
.hero-product::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: rgba(255,255,255,0.2);
}
.hero-product.is-active { color: var(--white); }
.hero-product.is-active::after { background: var(--red-500); }
.hero-product:hover { color: var(--white); }
.hero-product:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 4px; }
.hub-hero-mark {
  z-index: 1;
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: min(560px, 48vw);
  height: auto;
  opacity: 0.12;
  pointer-events: none;
}
.hub-hero-inner { position: relative; z-index: 2; max-width: 680px; padding: 110px 0 120px; }
.hub-hero h1 { color: var(--white); }
.hub-hero .lede { color: rgba(255,255,255,0.82); max-width: 52ch; }
.hub-hero .cta-row { margin-top: 30px; }

/* Product cards */
.hub-products { position: relative; z-index: 2; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  min-width: 0;
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:not(.is-soon):hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-100); }
.product-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-card.is-soon .product-media img { filter: saturate(0.75); }
.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--navy-900);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.product-badge.live { background: var(--blue-500); }
.product-body { display: flex; flex-direction: column; flex: 1; padding: 26px 28px 30px; }
.product-icon { position: relative; z-index: 1; margin: -54px 0 14px; }
.product-icon img {
  width: 56px;
  height: auto;
  background: var(--white);
  border-radius: 14px;
  padding: 6px;
  box-shadow: var(--shadow-sm);
}
.product-body h3 { margin-bottom: 10px; }
.product-body p { color: var(--ink-soft); margin-bottom: 22px; }
.product-body .btn { margin-top: auto; align-self: flex-start; }
.btn-soon {
  background: var(--navy-100);
  color: var(--navy-700);
  cursor: default;
  box-shadow: none;
}
.btn-soon:hover { transform: none; }
.product-note { margin-top: 30px; color: var(--ink-soft); }
.product-note a { color: var(--blue-600); font-weight: 600; }

/* Nav "Soon" tag */
.nav-soon {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--navy-100);
  color: var(--navy-700);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: 1px;
}

/* Mission banner */
.mission-banner {
  position: relative;
  overflow: hidden;
  background: var(--navy-diag);
  color: var(--white);
  padding: 64px 0;
}
.mission-mark {
  position: absolute;
  left: -50px;
  top: 50%;
  transform: translateY(-50%);
  width: 260px;
  opacity: 0.08;
  pointer-events: none;
}
.mission-banner .container { position: relative; }
.mission-quote {
  margin: 0 auto;
  max-width: 30ch;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.25;
  color: var(--white);
}

/* About side cards */
.about-cards { display: grid; gap: 20px; }
.about-cards .card { padding: 26px 28px; }
.about-cards .card-icon { margin-bottom: 12px; }
.about-cards .card-icon svg, .about-cards .card-icon img { width: 42px; height: auto; }

.stat-label a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* Our Carrier (Spriska) */
.carrier-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.carrier-logo { width: 230px; height: auto; margin-bottom: 26px; }
.carrier-intro .lede { margin-bottom: 0; }
.carrier-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card-icon img.carrier-badge { width: auto; height: 50px; }

/* How it works CTA */
.steps-cta { margin-top: 40px; }
.steps-call { color: var(--ink-soft); font-weight: 600; }
.steps-call a { color: var(--blue-600); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 26px; text-align: left; }
.contact-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-600);
  margin-bottom: 10px;
}
.contact-value {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--navy-900);
  margin-bottom: 6px;
  overflow-wrap: anywhere;
}
a.contact-value:hover { color: var(--blue-600); }
.contact-grid .card p a { color: var(--blue-600); font-weight: 600; }

/* Closing section: brand-neutral background (product sites use their own photos) */
.section-close { background: linear-gradient(180deg, var(--sky-100), var(--cream-100)); }

#about, #carrier, #how-it-works, #products, #contact { scroll-margin-top: 90px; }

@media (max-width: 960px) {
  .product-grid { grid-template-columns: 1fr 1fr; }
  .carrier-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .product-grid { grid-template-columns: 1fr; }
  .hub-hero-inner { padding: 72px 0 80px; }
  .hub-hero-mark { width: 300px; right: -90px; opacity: 0.1; }
  .hub-hero-scrim { background: linear-gradient(180deg, rgba(26,35,79,0.86), rgba(26,35,79,0.92)); }
  .carrier-cards { grid-template-columns: 1fr; }
  .mission-banner { padding: 52px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; transform: none; }
}
