/*************************************************
 * Motion & visual depth — GSAP-friendly hooks
 * Brand: navy #0F3C5C, teal #3AAFA9, warm #FCF7F3
 *************************************************/

/* Immersive hero — .hero.hero--immersive beats later .hero rules in main.css */
.hero.hero--immersive {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-deep) 45%, #0a2844 100%);
  min-height: clamp(480px, 62vh, 640px);
  padding-block: clamp(3rem, 6vw, 4.5rem);
  margin: 0;
  width: 100%;
  max-width: none;
  border-radius: 0;
  align-items: stretch;
}

/* Full-bleed hero — no card-style radius or glow from .hero::after */
.hero.hero--immersive::after {
  content: none;
  display: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(100% - 2rem, 1200px);
  margin-inline: auto;
  padding-inline: max(1rem, 3vw);
}

.hero-content--split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(240px, 0.95fr);
  gap: clamp(1.25rem, 3.5vw, 2.75rem);
  align-items: center;
  width: 100%;
  text-align: left;
}

.hero-copy {
  min-width: 0;
}

.hero-content--split .title-row {
  justify-content: flex-start;
  font-size: clamp(2.15rem, 4.2vw, 3.35rem);
}

.hero-content--split .hero-title {
  margin-bottom: clamp(1rem, 2vw, 1.75rem);
}

.hero-content--split .subtitle {
  text-align: left;
  padding-inline-end: 0;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  margin-bottom: 0.75rem;
}

.hero-content--split .hero-entity {
  text-align: left;
  max-width: 36ch;
  margin: 0 0 1.25rem;
}

.hero-content--split .hero-cta-row {
  justify-content: flex-start;
}

.hero-portrait {
  margin: 0;
  position: relative;
  align-self: center;
}

.hero-portrait__img {
  display: block;
  width: 100%;
  max-height: clamp(280px, 42vh, 420px);
  aspect-ratio: 1024 / 819;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 14px;
  box-shadow:
    0 16px 40px -12px rgba(0, 0, 0, 0.45),
    0 0 0 1px color-mix(in srgb, var(--teal) 22%, transparent);
}

@media (max-width: 900px) {
  .hero-content--split {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    text-align: center;
  }

  .hero-content--split .title-row {
    justify-content: center;
    font-size: clamp(2rem, 7vw, 2.75rem);
  }

  .hero-content--split .subtitle,
  .hero-content--split .hero-entity {
    text-align: center;
    max-width: none;
    margin-inline: auto;
  }

  .hero-content--split .hero-cta-row {
    justify-content: center;
  }

  .hero-portrait {
    order: -1;
    max-width: min(100%, 520px);
    margin-inline: auto;
  }

  .hero-portrait__img {
    max-height: clamp(220px, 38vh, 320px);
  }
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-noise {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero--immersive .hero-content {
  z-index: 2;
  text-align: center;
  width: min(100%, 1200px);
  margin-inline: auto;
}

.hero--immersive .hero-content .title-row {
  justify-content: center;
}

.hero--immersive .hero-content .subtitle {
  text-align: center;
  padding-inline-end: 0;
}

.hero--immersive .hero-content .hero-entity {
  text-align: center;
  margin-inline: auto;
}

.hero--immersive .hero-content .hero-cta-row {
  justify-content: center;
}

/* Beat global h1 { color: text-primary } and GSAP opacity fades */
.hero.hero--immersive .hero-title {
  color: var(--warm-bg);
  max-width: none;
}

.hero.hero--immersive .title-text {
  color: var(--warm-bg);
}

.hero.hero--immersive .text-accent {
  color: var(--teal);
}

.hero.hero--immersive .title-dot {
  color: var(--teal);
}

.hero.hero--immersive .subtitle {
  color: color-mix(in srgb, var(--warm-bg) 88%, var(--teal));
}

.hero-entity {
  font-family: var(--font-body, Inter, sans-serif);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 500;
  color: color-mix(in srgb, var(--warm-bg) 92%, var(--teal));
  text-align: center;
  max-width: 42ch;
  margin: 0 auto 1.5rem;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.25rem;
}

.hero-cta-row .button-ghost {
  border-color: color-mix(in srgb, var(--teal) 55%, white);
  color: var(--warm-bg);
}

.hero-cta-row .button-ghost:hover {
  background: color-mix(in srgb, var(--teal) 18%, transparent);
  border-color: var(--teal);
  color: var(--warm-bg);
}

/* Section atmosphere */
.section--mesh {
  position: relative;
}

.section--mesh::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 10% 20%, color-mix(in srgb, var(--teal) 12%, transparent), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 80%, color-mix(in srgb, var(--navy) 8%, transparent), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.section--mesh > .container {
  position: relative;
  z-index: 1;
}

/* Elevated cards — less generic “white box” */
.main-content .card:not(.card--location) {
  border: 1px solid color-mix(in srgb, var(--navy) 12%, white);
  background:
    linear-gradient(165deg, var(--pure-white) 0%, color-mix(in srgb, var(--warm-bg) 40%, white) 100%);
  box-shadow:
    0 1px 2px rgba(15, 60, 92, 0.04),
    0 12px 40px -12px rgba(15, 60, 92, 0.12);
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease;
}

.main-content .card:not(.card--location)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.25rem;
  right: 1.25rem;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--teal-muted), var(--teal));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.main-content .card:not(.card--location):hover::before,
.main-content .card:not(.card--location):focus-within::before {
  opacity: 1;
}

.main-content .card:not(.card--location):hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--teal) 35%, white);
  box-shadow:
    0 4px 8px rgba(15, 60, 92, 0.06),
    0 24px 48px -16px rgba(15, 60, 92, 0.18);
}

/* Cancer Smart tiles — editorial depth */
.cancer-tile {
  position: relative;
  overflow: hidden;
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.5s ease;
}

.cancer-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, color-mix(in srgb, var(--navy) 75%, transparent) 100%);
  opacity: 0.35;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.cancer-tile:hover::after {
  opacity: 0.55;
}

.cancer-tile:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 50px -12px rgba(15, 60, 92, 0.35);
}

/* GSAP reveal hooks */
.motion-reveal {
  opacity: 0;
  transform: translateY(28px);
  will-change: transform, opacity;
}

.motion-reveal.is-visible {
  opacity: 1;
  transform: none;
}

.grid-layout.motion-stagger > * {
  opacity: 0;
  transform: translateY(24px);
}

/* Cancer Smart hub visual */
.smart-hero-wrap {
  margin: 2rem auto 2.5rem;
  max-width: 720px;
  position: relative;
}

.smart-hero-wrap .smart-hero {
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 12px 32px rgba(15, 60, 92, 0.15));
}

/* Game disclaimer */
.tool-medical-disclaimer {
  font-size: 0.875rem;
  color: var(--gray);
  border: 1px solid color-mix(in srgb, var(--teal) 28%, transparent);
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  background: color-mix(in srgb, var(--teal) 6%, white);
  border-radius: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .motion-reveal,
  .grid-layout.motion-stagger > * {
    opacity: 1;
    transform: none;
  }

  .main-content .card:not(.card--location):hover {
    transform: none;
  }

  .cancer-tile:hover {
    transform: none;
  }
}
