@import url("../shared/styles.css");

.home-hero {
  min-height: calc(100dvh - 80px);
  display: grid;
  align-items: center;
  padding: 48px 0 64px;
  overflow: hidden;
}

.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(500px, 1.08fr);
  gap: 64px;
  align-items: center;
}

.hero-copy {
  padding-top: 10px;
}

.home-title {
  max-width: 560px;
  color: #0f172a;
  font-size: var(--home-title-size);
  line-height: 0.98;
  font-weight: 900;
}

.home-tagline {
  margin-top: 8px;
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  line-height: 1.2;
  font-weight: 700;
  background: linear-gradient(90deg, #4f46e5, #0ea5e9, #0f766e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-intro {
  max-width: 590px;
  margin-top: 24px;
  color: #334155;
  font-size: clamp(1.08rem, 1.65vw, 1.3rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.hero-button {
  min-width: 190px;
  min-height: 50px;
  padding: 12px 28px;
  font-size: 1rem;
}

.hero-button.primary {
  box-shadow: 0 14px 25px rgb(79 70 229 / 0.25);
}

.hero-button.outline {
  border-width: 2px;
  box-shadow: 0 10px 24px rgb(15 23 42 / 0.06);
}

.state-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
}

.state-row p {
  color: #0f172a;
  font-size: 0.96rem;
}

.state-bubbles {
  display: flex;
  align-items: center;
}

.state-bubbles span {
  width: 42px;
  height: 42px;
  margin-left: -8px;
  border-radius: 999px;
  border: 2px solid white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: linear-gradient(135deg, #60a5fa, #2dd4bf);
  font-size: 0.78rem;
  font-weight: 900;
}

.state-bubbles span:first-child {
  margin-left: 0;
}

.hero-visual {
  position: relative;
  min-height: 500px;
}

.hero-photo {
  position: relative;
  z-index: 1;
  min-height: 460px;
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: -12px 24px 0 -10px;
  border-radius: 26px;
  background: linear-gradient(135deg, #dfe2ff, #bde8e2);
  transform: rotate(2deg);
}

.hero-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 28px 70px rgb(15 23 42 / 0.16);
}

.floating-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 18px;
  background: white;
  box-shadow: 0 18px 42px rgb(15 23 42 / 0.18);
}

.floating-card-top {
  top: 18px;
  right: -16px;
  min-width: 235px;
}

.floating-card-bottom {
  left: -24px;
  bottom: 4px;
  min-width: 205px;
}

.floating-card strong {
  color: #0f172a;
  font-size: 0.94rem;
}

.floating-card-bottom strong {
  font-size: 1.55rem;
}

.floating-card p {
  color: var(--muted);
  font-size: 0.86rem;
}

.floating-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  background: #eef2ff;
  font-weight: 900;
}

.floating-icon svg {
  width: 24px;
  height: 24px;
}

.floating-icon.mint {
  background: #ccfbf1;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.feature-photo {
  position: relative;
}

.feature-photo::before {
  content: "";
  position: absolute;
  inset: -16px;
  z-index: 0;
  border-radius: 28px;
  background: linear-gradient(135deg, #e0e7ff, #ccfbf1);
  transform: rotate(-2deg);
}

.feature-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.testimonial-grid {
  align-items: stretch;
  margin-bottom: 0;
}

.testimonial-actions {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}

/* Remove the margin from the cards since the grid handles it now */
.testimonial-card {
  /* remove margin-top: 2rem; */
  min-height: 360px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  border-top: 4px solid var(--indigo);
}

.testimonial-mark {
  color: var(--indigo);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4rem;
  font-weight: 800;
  line-height: 0.8;
}

.testimonial-card blockquote {
  margin: 26px 0 32px;
  color: #334155;
  font-size: 1.03rem;
  line-height: 1.75;
}

.testimonial-person {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}

.testimonial-card--teal {
  border-top-color: var(--teal-dark);
}

.testimonial-card--sky {
  border-top-color: #0284c7;
}

.testimonial-card--teal .testimonial-mark {
  color: var(--teal-dark);
}

.testimonial-card--sky .testimonial-mark {
  color: #0284c7;
}

.testimonial-empty {
  grid-column: 1 / -1;
}

.testimonial-person cite,
.testimonial-person span {
  display: block;
}

.testimonial-person cite {
  color: var(--ink);
  font-style: normal;
  font-weight: 850;
}

.testimonial-person div > span {
  color: var(--muted);
  font-size: 0.9rem;
}

.testimonial-placeholder {
  justify-content: center;
  border: 2px dashed #cbd5e1;
  border-top: 4px solid #cbd5e1;
  text-align: center;
  background: linear-gradient(145deg, #f8fafc, #eef2ff);
}

.testimonial-placeholder-logo {
  width: 58px;
  height: 58px;
  margin: 0 auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.38;
}

.testimonial-placeholder h3 {
  margin: 24px 0 0;
}

.program-grid {
  margin-top: 24px;
}

.program-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.program-body {
  padding: 32px;
  flex: 1;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  color: #475569;
}

.check-list li::before {
  content: "+";
  margin-right: 8px;
  color: var(--teal-dark);
  font-weight: 900;
}

/* 1. Force the section to break out of parent constraints to full width */
.impact-band {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  max-width: none;
  padding: 88px 0;
  color: white;
  background: 
    radial-gradient(circle at 28% 12%, rgb(67 56 202 / 0.55), transparent 30%),
    linear-gradient(135deg, #37308f 0%, #2f2c90 52%, #111827 100%);
}

/* 2. Remove standard section padding/margins if inherited from .section */
.section.impact-band {
  border-radius: 0;
  max-width: none;
}

.impact-band .eyebrow {
  color: #2dd4bf;
}

.impact-band h2 {
  color: white;
  font-size: clamp(2.25rem, 4vw, 2.85rem);
}

.impact-band .lead,
.impact-band p {
  color: #c7d2fe;
}

.reach-grid {
  width: min(1096px, 100%);
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
}

.reach-card {
  min-height: 252px;
  padding: 28px 24px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgb(255 255 255 / 0.08);
  box-shadow: 0 14px 40px rgb(0 0 0 / 0.08);
}

.reach-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: linear-gradient(135deg, #2dd4bf, #60a5fa);
}

.reach-icon svg {
  width: 28px;
  height: 28px;
}

.reach-card strong {
  color: white;
  font-size: 2.75rem;
  line-height: 1;
  font-weight: 900;
}

.reach-card span {
  margin-top: 8px;
  color: #2dd4bf;
  font-weight: 850;
}

.reach-card p {
  margin-top: 8px;
  font-size: 0.84rem;
  line-height: 1.45;
}

.quote {
  width: min(1096px, 100%);
  margin: 72px auto 0;
  padding: 42px 36px;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 20px;
  text-align: center;
  background: rgb(255 255 255 / 0.08);
}

.quote blockquote {
  margin: 0;
  color: white;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-style: italic;
}

.quote cite {
  display: block;
  margin-top: 18px;
  color: #2dd4bf;
  font-style: normal;
  font-weight: 850;
}

.subscribe {
  padding: 40px;
  color: white;
  background: linear-gradient(135deg, var(--indigo), var(--teal-dark));
}

.subscribe p {
  color: #e0e7ff;
}

.subscribe-form {
  display: flex;
  gap: 12px;
  width: min(520px, 100%);
  margin: 28px auto 0;
}

.subscribe-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
}

@media (max-width: 1020px) {
  .home-hero-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    width: min(720px, 100%);
    margin: 0 auto;
  }

  .reach-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .home-hero-grid {
    gap: 42px;
  }

  .home-title {
    max-width: 100%;
    font-size: clamp(3rem, 14vw, 3.4rem);
  }

  .home-tagline {
    font-size: 1.55rem;
  }

  .hero-actions .button {
    width: 100%;
  }

  .state-row,
  .subscribe-form {
    align-items: flex-start;
    flex-direction: column;
  }

  .state-row {
    gap: 16px;
  }

  .floating-card-top,
  .floating-card-bottom {
    position: relative;
    inset: auto;
    margin-top: 16px;
  }

  .hero-visual,
  .hero-photo {
    min-height: auto;
  }

  .hero-photo img {
    height: 320px;
  }

  .reach-grid {
    grid-template-columns: 1fr;
  }
}
