/* ═══════════════════════════════════════════════════════════
   ORGANISM: Hero
   Split layout: message on the left, animated coverage
   graphic on the right. Electric-blue background in light
   mode (default), deep navy in dark mode.
   ═══════════════════════════════════════════════════════════ */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 72vh;
  padding: calc(var(--space-24) + var(--space-8)) var(--space-8) var(--space-12);
  background: var(--color-deep-navy);   /* dark-mode default */
  overflow: hidden;
}

/* Light mode (default & opt-in): bright electric blue */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .hero {
    background: var(--color-blue);
  }
}
[data-theme="light"] .hero {
  background: var(--color-blue);
}

/* Gradient overlay for depth (dark mode only) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(6, 11, 20, 0.4) 0%,
    transparent 50%,
    rgba(14, 165, 233, 0.08) 100%
  );
  pointer-events: none;
  z-index: 0;
}
[data-theme="light"] .hero::before { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .hero::before { display: none; }
}

/* Decorative radial orb (dark mode only) */
.hero::after {
  content: "";
  position: absolute;
  top: -140px;
  right: -140px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.16) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
[data-theme="light"] .hero::after { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .hero::after { display: none; }
}

/* Orb — bottom-left (dark mode only; hidden in light) */
.hero__orb {
  position: absolute;
  bottom: -100px;
  left: -60px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.10) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
[data-theme="light"] .hero__orb { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .hero__orb { display: none; }
}

/* ── Split layout container ───────────────────────────────── */

.hero__inner {
  position: relative;
  max-width: var(--max-width-page);
  margin: 0 auto;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: var(--space-12);
  align-items: start;
}

/* Content column */
.hero__content {
  max-width: 640px;
}

/* Graphic column — animated coverage network */
.hero__graphic {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 682px; /* 10% larger than original 620px */
  justify-self: end;
  margin-top: -30px; /* align top with the "Managed" headline */
}
.hero__graphic-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}

/* ── Typography ───────────────────────────────────────────── */

.hero__headline {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: var(--weight-extrabold);
  color: var(--color-white);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-4);
}

.hero__subhead {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: var(--weight-semibold);
  color: rgba(255, 255, 255, 0.85);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-6);
}

.hero__body {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.75);
  line-height: var(--leading-relaxed);
  max-width: 560px;
  margin: 0 0 var(--space-10);
}

.hero__actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* White CTA button on blue background */
.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-8);
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--color-blue);
  background: var(--color-white);
  border: none;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}
.hero__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero__secondary-link {
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.15s ease;
}
.hero__secondary-link:hover {
  color: var(--color-white);
}

/* ── Responsive ───────────────────────────────────────────── */

/* Tablet & below — stack graphic under content */
@media (max-width: 960px) {
  .hero__inner {
    /* minmax(0, 1fr) prevents the content column's intrinsic min-width
       (long words in the headline) from pushing the grid wider than the
       container and offsetting the graphic off-center on mobile. */
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-8);
  }
  .hero__graphic {
    justify-self: center;
    margin-top: var(--space-4);
    max-width: 480px;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: var(--space-20) var(--space-3) var(--space-12);
  }
  .hero__content {
    max-width: 100%;
  }
  .hero__body {
    font-size: var(--text-base);
  }
  .hero__cta {
    font-size: var(--text-base);
    padding: var(--space-3) var(--space-6);
  }
  .hero__graphic {
    /* Fill the full hero width minus the 12px symmetric padding above,
       so the coverage animation is as big as possible on phones. */
    max-width: 100%;
    width: 100%;
  }
}

/* Reduced motion — hide the animated iframe (fallback is blank blue) */
@media (prefers-reduced-motion: reduce) {
  .hero__graphic { opacity: 0.6; }
  .hero__graphic-frame { display: none; }
}
