/* Simply Mortgages homepage redesign.
   Scoped to the homepage replacement sections so preserved areas keep their current design. */

:root {
  --home-ink: #141827;
  --home-muted: #5a6475;
  --home-plum: #65265f;
  --home-plum-dark: #381735;
  --home-sky: #4f9fcd;
  --home-mist: #f5f7fa;
  --home-line: rgba(20, 24, 39, 0.1);
}

.home-home {
  background:
    radial-gradient(circle at 15% 12%, rgba(101, 38, 95, 0.08), transparent 26rem),
    radial-gradient(circle at 88% 44%, rgba(79, 159, 205, 0.1), transparent 30rem),
    #f7f8fb;
  color: var(--home-ink);
  overflow: hidden;
}

.home-section {
  position: relative;
  padding: clamp(4.5rem, 8vw, 7.5rem) 0;
}

.home-wrap {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.home-eyebrow {
  color: var(--home-plum);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home-eyebrow::before {
  content: "";
  width: 1.9rem;
  height: 1px;
  background: currentColor;
  opacity: 0.65;
}

.home-title {
  color: var(--home-ink);
  font-size: clamp(2.35rem, 5vw, 5.4rem);
  font-weight: 850;
  letter-spacing: -0.045em;
  line-height: 0.96;
  text-wrap: balance;
}

.home-title span {
  color: var(--home-plum);
}

.home-copy {
  color: var(--home-muted);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.75;
  max-width: 64ch;
}

.home-soft-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 28px 80px rgba(47, 55, 80, 0.11);
  backdrop-filter: blur(16px);
}

.home-button {
  align-items: center;
  background: var(--home-plum);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  gap: 0.65rem;
  justify-content: center;
  min-height: 3.35rem;
  padding: 0 1.35rem;
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1), background 260ms ease, box-shadow 260ms ease;
}

.home-button:hover {
  background: var(--home-plum-dark);
  box-shadow: 0 18px 42px rgba(101, 38, 95, 0.22);
  transform: translateY(-2px);
}

.home-button:active {
  transform: translateY(1px) scale(0.99);
}

.home-button.secondary {
  background: #fff;
  border: 1px solid var(--home-line);
  color: var(--home-ink);
}

.home-trust {
  margin-top: -1px;
  padding: 2.2rem 0 3.2rem;
  background: #fff;
  border-bottom: 1px solid rgba(20, 24, 39, 0.08);
}

.home-trust-grid {
  align-items: stretch;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border-radius: 1.6rem;
  border: 1px solid var(--home-line);
  background: var(--home-line);
}

.home-trust-stat {
  background: #fff;
  padding: 1.35rem 1.5rem;
}

.home-trust-stat strong {
  display: block;
  color: var(--home-ink);
  font-size: clamp(1.45rem, 2vw, 2.1rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.home-trust-stat span {
  color: var(--home-muted);
  display: block;
  font-size: 0.88rem;
  margin-top: 0.45rem;
}

.home-logo-strip {
  align-items: center;
  display: flex;
  gap: clamp(1.4rem, 3vw, 3rem);
  margin-top: 1.75rem;
  overflow: auto;
  padding: 0.2rem 0 0.6rem;
  scrollbar-width: none;
}

.home-logo-strip::-webkit-scrollbar {
  display: none;
}

.home-logo-strip img {
  background: #fff;
  border: 1px solid rgba(20, 24, 39, 0.08);
  border-radius: 1rem;
  flex: 0 0 auto;
  height: 4.2rem;
  object-fit: contain;
  padding: 0.85rem 1.15rem;
  width: 9.5rem;
}

.home-journey-grid {
  align-items: start;
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
}

.home-sticky-intro {
  position: sticky;
  top: 7rem;
}

.home-path-stack {
  display: grid;
  gap: 1rem;
}

.home-path-card {
  border-radius: 1.7rem;
  display: grid;
  gap: 1.3rem;
  grid-template-columns: auto 1fr auto;
  padding: clamp(1.2rem, 2.6vw, 2rem);
  text-decoration: none;
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 260ms ease;
}

.home-path-card:hover {
  transform: translateX(-0.35rem);
}

.home-path-card.featured {
  background:
    linear-gradient(135deg, rgba(101, 38, 95, 0.92), rgba(56, 23, 53, 0.96)),
    url("/assets/images/content/Purple_Door_3_75-scaled.webp") center / cover;
  color: #fff;
  min-height: 16rem;
}

.home-path-card:not(.featured) {
  background: #fff;
  border: 1px solid var(--home-line);
}

.home-path-number {
  color: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  opacity: 0.58;
  text-transform: uppercase;
}

.home-path-card h3 {
  font-size: clamp(1.35rem, 2.4vw, 2.2rem);
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.home-path-card p {
  color: inherit;
  line-height: 1.65;
  margin-top: 0.65rem;
  max-width: 43ch;
  opacity: 0.74;
}

.home-arrow {
  align-items: center;
  align-self: start;
  border: 1px solid currentColor;
  border-radius: 999px;
  display: inline-flex;
  height: 2.8rem;
  justify-content: center;
  opacity: 0.38;
  width: 2.8rem;
}

.home-bento {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.1fr 0.9fr;
}

.home-bento-card {
  background: #fff;
  border: 1px solid var(--home-line);
  border-radius: 1.7rem;
  min-height: 13rem;
  overflow: hidden;
  padding: 1.45rem;
  position: relative;
}

.home-bento-card.wide {
  grid-column: 1 / -1;
  min-height: 15rem;
  padding: 0;
}

.home-bento-card.dark {
  background: #161a2a;
  color: #fff;
}

.home-bento-card h3 {
  font-size: 1.35rem;
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.home-bento-card p {
  color: inherit;
  line-height: 1.6;
  margin-top: 0.65rem;
  opacity: 0.68;
}

.home-bento-card img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.home-bento-overlay {
  background: linear-gradient(90deg, rgba(20, 24, 39, 0.88), rgba(20, 24, 39, 0.22));
  color: #fff;
  inset: 0;
  padding: 1.6rem;
  position: absolute;
}

.home-specialist-intro {
  display: grid;
  justify-items: center;
  margin-inline: auto;
  max-width: 880px;
  text-align: center;
}

.home-specialist-intro .home-copy {
  margin-inline: auto;
  max-width: 680px;
}

#how-it-works > div > .text-center > span {
  color: var(--home-plum) !important;
  font-size: 0.78rem !important;
  font-weight: 850 !important;
  letter-spacing: 0.12em !important;
}

#how-it-works > div > .text-center > h2 {
  color: var(--home-ink) !important;
  font-size: clamp(2.8rem, 6.6vw, 5.8rem) !important;
  font-weight: 900 !important;
  letter-spacing: -0.06em !important;
  line-height: 0.92 !important;
  margin-inline: auto;
  max-width: 10ch;
  text-wrap: balance;
}

.home-proof {
  background: #151a2b;
  color: #fff;
}

.home-proof::before {
  background:
    radial-gradient(circle at 18% 20%, rgba(101, 38, 95, 0.42), transparent 21rem),
    radial-gradient(circle at 90% 75%, rgba(79, 159, 205, 0.26), transparent 24rem);
  content: "";
  inset: 0;
  opacity: 0.9;
  position: absolute;
}

.home-proof .home-wrap {
  position: relative;
  z-index: 1;
}

.home-proof-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.home-proof-aside {
  display: grid;
  gap: 1rem;
}

.home-proof-pills {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-proof-pills span {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1rem;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
  display: flex;
  font-size: 0.9rem;
  font-weight: 800;
  justify-content: center;
  line-height: 1.25;
  min-height: 4.5rem;
  padding: 0.95rem;
  text-align: center;
}

.home-elfsight-panel {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  min-height: 320px;
  overflow: visible;
  padding: 0;
}

.home-elfsight-label {
  color: var(--home-plum);
  display: none;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.home-tools {
  background: #fff;
}

.home-tool-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 0.9fr 1.1fr 1.1fr;
}

.home-tool-card {
  background: #f8fafc;
  border: 1px solid var(--home-line);
  border-radius: 1.5rem;
  padding: 1.35rem;
}

.home-tool-card.main {
  background: linear-gradient(135deg, var(--home-plum), var(--home-plum-dark));
  color: #fff;
  grid-row: span 2;
}

.home-tool-card h3 {
  font-size: 1.25rem;
  font-weight: 850;
  letter-spacing: -0.035em;
}

.home-tool-card p {
  color: inherit;
  line-height: 1.6;
  margin-top: 0.55rem;
  opacity: 0.72;
}

.home-cta {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(235, 245, 251, 0.78)),
    radial-gradient(circle at top left, rgba(101, 38, 95, 0.2), transparent 24rem);
}

.home-cta-panel {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(20, 24, 39, 0.08);
  border-radius: 2rem;
  box-shadow: 0 28px 90px rgba(47, 55, 80, 0.12);
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr auto;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.home-mini-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.home-mini-list span {
  background: #fff;
  border: 1px solid var(--home-line);
  border-radius: 999px;
  color: var(--home-muted);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.55rem 0.8rem;
}

@media (max-width: 900px) {
  .home-trust-grid,
  .home-journey-grid,
  .home-proof-grid,
  .home-tool-grid,
  .home-cta-panel {
    grid-template-columns: 1fr !important;
  }

  .home-sticky-intro {
    position: static;
  }

  .home-bento {
    grid-template-columns: 1fr;
  }

  .home-path-card {
    grid-template-columns: 1fr auto;
  }

  .home-path-number {
    grid-column: 1 / -1;
  }

  .home-proof-pills {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .home-section {
    padding: 4rem 0;
  }

  .home-title {
    font-size: clamp(2.15rem, 10.8vw, 3.05rem);
    letter-spacing: -0.055em;
  }

  #how-it-works > div > .text-center > h2 {
    font-size: clamp(2.5rem, 13vw, 4.05rem) !important;
  }

  .home-trust-grid {
    border-radius: 1.2rem;
  }

  .home-path-card,
  .home-bento-card,
  .home-elfsight-panel,
  .home-tool-card,
  .home-cta-panel {
    border-radius: 1.2rem;
  }

  .home-button {
    width: 100%;
  }
}
