/* Choosing Your Home page styles */
:root {
  --journey-line: rgba(25, 41, 69, 0.1);
}

.guide--choose-home {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 60%, #f4f6fb 100%);
}

.section {
  padding-block: var(--section-spacing);
}

.section--soft {
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 60%, #ffffff 100%);
}

.hero--choose-home {
  --choose-home-hero-image-pos: 50% 15%;
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(420px, 78vh, 640px);
  color: var(--ink);
  background: #0b172f;
  isolation: isolate;
}

.hero--choose-home .hero-bg {
  object-position: var(--choose-home-hero-image-pos);
}

.hero--choose-home .hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 25% 25%,
      rgba(255, 255, 255, 0.18),
      transparent 60%
    ),
    linear-gradient(
      135deg,
      rgba(10, 20, 40, 0.75),
      rgba(25, 41, 69, 0.5)
    ),
    linear-gradient(180deg, rgba(9, 20, 46, 0.15), rgba(9, 20, 46, 0));
  z-index: -1;
}

.hero--choose-home .hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.25rem;
  padding-block: calc(var(--section-spacing) * 1.4);
}

.hero--choose-home .eyebrow {
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 8px rgba(12, 25, 49, 0.3);
}

.hero--choose-home .eyebrow::before {
  background: rgba(255, 255, 255, 0.72);
}

.hero--choose-home .hero__title {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.hero--choose-home .hero__lead {
  margin: 0;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero--choose-home .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.intro {
  background: linear-gradient(180deg, rgba(25, 41, 69, 0.04), transparent);
}

.intro__grid {
  display: grid;
  gap: 2rem;
}

.intro__copy .prose {
  color: var(--muted);
}

.intro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.intro__cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.intro-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(25, 41, 69, 0.08);
  box-shadow: var(--shadow-sm);
}

.intro-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.08rem;
  color: var(--brand);
}

.intro-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.intro-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  border: 1px solid rgba(25, 41, 69, 0.2);
  background: linear-gradient(
    135deg,
    rgba(25, 41, 69, 0.08),
    rgba(255, 255, 255, 0.65)
  );
  display: grid;
  place-items: center;
  color: var(--brand);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  position: relative;
  overflow: hidden;
}

.intro-card__icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.selecting {
  background: #fff;
}

.model-section__grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.model-section__copy .prose {
  color: var(--muted);
}

.model-section__factors {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
  color: var(--brand);
  font-weight: 600;
}

.model-section__factors li {
  position: relative;
  padding-left: 1.8rem;
  color: var(--muted);
  font-weight: 500;
}

.model-section__factors li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 0.35rem;
  background: linear-gradient(135deg, #f9d887, #f5a73b);
  box-shadow: 0 0 0 4px rgba(245, 167, 59, 0.16);
}

.model-section__visuals {
  position: relative;
  display: grid;
  gap: 1.25rem;
  min-height: 100%;
  align-content: center;
  justify-items: center;
}

.model-visual {
  margin: 0;
  overflow: hidden;
}

.model-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.model-visual--primary {
  width: min(100%, 520px);
  justify-self: center;
}

.model-visual figcaption {
  margin: 0;
  padding: 0.85rem 1rem;
  background: rgba(12, 18, 32, 0.8);
  color: #fff;
  font-size: 0.9rem;
}

.model-section__cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: clamp(2rem, 4vw, 3.5rem);
}

.model-card {
  padding: 1.35rem 1.5rem;
  border-radius: calc(var(--radius) * 0.85);
  border: 1px solid rgba(25, 41, 69, 0.08);
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
  display: grid;
  gap: 0.65rem;
}

.model-card:hover {
  transform: translateY(-6px);
  border-color: rgba(25, 41, 69, 0.25);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.12);
}

.model-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  color: var(--brand);
}

.model-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(25, 41, 69, 0.08);
  display: grid;
  place-items: center;
  color: var(--brand);
}

.card-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.making-yours {
  background: linear-gradient(145deg, rgba(25, 41, 69, 0.04), transparent);
}

.making-yours__grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.making-yours__intro {
  color: var(--muted);
  display: grid;
  gap: 0.9rem;
}

.making-yours__intro p {
  margin: 0;
  line-height: 1.65;
}

.making-yours__choices {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 0.5rem;
}

.making-yours__choice {
  padding: 1.15rem 1.3rem;
  border-radius: calc(var(--radius) * 0.9);
  background: var(--brand);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.35);
}

.making-yours__choice h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: #fff;
}

.making-yours__choice p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.making-yours__media {
  margin: 0;
  border-radius: calc(var(--radius) * 1);
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.14);
}

.making-yours__media img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.journey {
  position: relative;
  overflow: hidden;
  background: #f7f9fc;
}

.journey__inner {
  position: relative;
  z-index: 1;
}

.journey__map {
  position: absolute;
  inset: 8% 5% auto;
  height: 60%;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(255, 255, 255, 0.6),
      transparent 60%
    ),
    radial-gradient(circle at 80% 20%, rgba(25, 41, 69, 0.08), transparent 55%),
    repeating-linear-gradient(
      90deg,
      var(--journey-line) 0,
      var(--journey-line) 1px,
      transparent 1px,
      transparent 40px
    ),
    repeating-linear-gradient(
      var(--journey-line) 0,
      var(--journey-line) 1px,
      transparent 1px,
      transparent 40px
    );
  opacity: 0.35;
  border-radius: calc(var(--radius) * 1.3);
  pointer-events: none;
}

.journey-steps {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.25rem;
}

.journey-step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  border-radius: calc(var(--radius) * 0.9);
  background: #fff;
  border: 1px solid rgba(25, 41, 69, 0.06);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.journey-step::after {
  content: "";
  position: absolute;
  inset: auto 1.25rem -0.5rem 1.25rem;
  height: 0.5rem;
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  background: linear-gradient(
    90deg,
    rgba(25, 41, 69, 0.1),
    rgba(25, 41, 69, 0)
  );
  opacity: 0.4;
}

.journey-step:last-child::after {
  display: none;
}

.journey-step__icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.95),
    rgba(230, 236, 247, 0.7)
  );
  border: 1px solid rgba(25, 41, 69, 0.15);
  color: var(--brand);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.18);
}

.journey-step__icon::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid rgba(25, 41, 69, 0.12);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.6);
}

.journey-step__icon svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.journey-step__count {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(25, 41, 69, 0.65);
}

.journey-step h3 {
  margin: 0.2rem 0 0.35rem;
  font-size: 1.1rem;
  color: var(--brand);
}

.journey-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.cta-band {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(
      circle at 12% 20%,
      rgba(255, 255, 255, 0.22),
      transparent 45%
    ),
    linear-gradient(135deg, #0b1323 0%, #172741 55%, #233658 100%);
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 85% 15%,
      rgba(139, 183, 255, 0.25),
      transparent 55%
    ),
    linear-gradient(120deg, rgba(255, 255, 255, 0.06), transparent 60%);
  mix-blend-mode: screen;
  opacity: 0.65;
  pointer-events: none;
}

.cta-band__grid {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.cta-band .section-title,
.cta-band .section-kicker,
.cta-band .eyebrow {
  color: #fff;
}

.cta-band .eyebrow::before {
  background: rgba(255, 255, 255, 0.75);
}

.cta-band__cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.cta-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem;
  border-radius: calc(var(--radius) * 1.1);
  background: transparent;
  border: 1px solid rgba(160, 189, 230, 0.25);
  box-shadow: 0 18px 40px rgba(3, 6, 17, 0.28);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
  min-height: 100%;
  flex: 1 1 260px;
  transition: transform 0.25s ease, border-color 0.25s ease,
    background 0.25s ease;
}

.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    145deg,
    rgba(16, 24, 40, 0.92),
    rgba(12, 18, 32, 0.92)
  );
  transition: background 0.25s ease;
  z-index: 0;
}

.cta-card > * {
  position: relative;
  z-index: 1;
}

.cta-card:hover {
  transform: translateY(-6px);
  border-color: rgba(160, 189, 230, 0.55);
  background: transparent;
  box-shadow: 0 20px 46px rgba(3, 6, 17, 0.35);
}

.cta-card:hover::before {
  background: linear-gradient(
    145deg,
    rgba(22, 33, 54, 0.96),
    rgba(14, 22, 38, 0.96)
  );
}

.cta-card__header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cta-card__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8fbefc;
  background: rgba(143, 190, 252, 0.12);
  box-shadow: inset 0 0 0 1px rgba(143, 190, 252, 0.35);
}

.cta-card__icon svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.cta-card__title {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  align-items: flex-start;
}

.cta-card__eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
}

.cta-card h3 {
  margin: 0;
  font-size: 1.15rem;
  color: #f7fbff;
}

.cta-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.96rem;
}

.cta-card__action {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-weight: 600;
  color: var(--brand);
  background: linear-gradient(120deg, #dae6ff, #f5f7fb);
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 20px rgba(10, 20, 40, 0.25);
}

.cta-card__action span {
  display: inline-flex;
}

.cta-card__action svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.cta-card__action:hover {
  background: linear-gradient(120deg, #c8dafc, #e7eefc);
  transform: translateX(3px);
  box-shadow: 0 10px 24px rgba(10, 20, 40, 0.35);
}

@media (max-width: 719px) {
  .cta-card {
    flex-basis: 100%;
  }

  .cta-card:hover {
    transform: translateY(0);
  }
}

@media (min-width: 720px) {
  .intro__grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 0.8fr);
    align-items: center;
  }

  .model-section__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 3rem;
  }

  .journey-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .making-yours__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .making-yours__choices {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .hero--choose-home .hero__content {
    padding-block: calc(var(--section-spacing) * 1.8);
  }

  .journey__map {
    inset: 10% 12% auto;
    height: 55%;
  }

  .making-yours__choices {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
