.page-home {
  --home-shell-width: min(var(--container), calc(100% - 2rem));
  --home-navy: #06224a;
}

.page-home .home-hero-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(22rem, 45vw, 32rem);
  margin-top: 0;
  background:
    linear-gradient(90deg, rgba(252, 250, 247, 0.98) 0%, rgba(252, 250, 247, 0.9) 38%, rgba(252, 250, 247, 0.18) 68%),
    url("../../images/OldCoupleChilling.png") right center / cover no-repeat;
  color: var(--text);
}

.page-home .home-hero-stage::after {
  content: "";
  position: absolute;
  inset: auto -6vw -1px -6vw;
  z-index: 0;
  height: clamp(3.25rem, 7vw, 5.5rem);
  border-radius: 50% 50% 0 0 / 72% 72% 0 0;
  background: linear-gradient(180deg, rgba(252, 250, 247, 0.72), var(--background) 72%);
  pointer-events: none;
}

.page-home .home-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  min-height: clamp(22rem, 45vw, 32rem);
  width: var(--home-shell-width);
  margin-inline: auto;
  padding: clamp(2.7rem, 5vw, 4.4rem) 0 clamp(3.8rem, 6vw, 5.8rem);
}

.page-home .home-hero__copy {
  display: grid;
  gap: 1rem;
  max-width: min(34rem, 48vw);
}

.page-home .home-hero-stage .eyebrow {
  color: var(--private-700);
}

.page-home .home-hero-stage h1 {
  max-width: 7.6em;
  color: var(--home-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 5.6vw, 5.4rem);
  font-weight: 800;
  line-height: 0.98;
}

.page-home .home-hero__lead {
  max-width: min(27rem, 42vw);
  color: #26384e;
  font-size: clamp(1.04rem, 1vw + 0.95rem, 1.22rem);
  line-height: 1.7;
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 0.2rem;
}

.page-home .home-cta-row,
.page-home .home-section-shell,
.page-home .home-values {
  width: var(--home-shell-width);
  margin-inline: auto;
}

.page-home .home-cta-row {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 1rem;
  margin-top: clamp(-5rem, -7vw, -4rem);
}

.page-home .home-audience-cta {
  display: grid;
  gap: 0.8rem;
  min-height: 100%;
  margin: 0;
  border-width: 2px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 58px rgba(31, 41, 55, 0.13);
}

.page-home .home-audience-cta--private {
  border-color: color-mix(in srgb, var(--private-600) 48%, var(--border));
}

.page-home .home-audience-cta--company {
  border-color: color-mix(in srgb, var(--company-600) 48%, var(--border));
}

.page-home .home-audience-cta p {
  color: var(--text-muted);
}

.page-home .home-audience-cta .btn {
  width: 100%;
  margin-top: auto;
}

.page-home .home-free-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0.24rem 0.68rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1;
}

.page-home .home-free-badge--private {
  color: var(--private-800);
  background: var(--private-50);
  border: 1px solid var(--private-100);
}

.page-home .home-free-badge--company {
  color: var(--company-800);
  background: var(--company-50);
  border: 1px solid var(--company-100);
}

.page-home .home-section-shell {
  margin-top: clamp(0.35rem, 1vw, 0.8rem);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(247, 244, 240, 0.72)),
    var(--surface-muted);
  box-shadow: var(--shadow-sm);
}

.page-home .home-section-toolbar {
  position: relative;
  padding: clamp(1rem, 2vw, 1.35rem) clamp(1rem, 2vw, 1.45rem);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.page-home .home-section-toolbar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--private-600), var(--company-600), transparent);
  opacity: 0.5;
}

.page-home .home-section-toolbar > div {
  display: grid;
  gap: 0.35rem;
  max-width: 44rem;
  margin-inline: auto;
}

.page-home .home-section-toolbar .eyebrow {
  color: var(--text-muted);
}

.page-home .home-section-toolbar h2 {
  color: var(--home-navy);
  font-size: clamp(1.35rem, 2vw, 1.9rem);
}

.page-home .home-section-toolbar p:not(.eyebrow) {
  color: var(--text-muted);
}

.page-home .home-categories {
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 2vw, 1.35rem) clamp(1rem, 2vw, 1.45rem) clamp(1.1rem, 2.2vw, 1.55rem);
}

.page-home .home-category-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  gap: 0.95rem;
  align-content: start;
  min-height: 100%;
  grid-template-rows: auto auto auto 1fr auto;
  padding: clamp(1.2rem, 2vw, 1.55rem);
  border: 2px solid color-mix(in srgb, var(--section-600) 24%, var(--border));
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: none;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.page-home .home-category-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--section-600);
  opacity: 0.82;
}

.page-home .home-category-card:hover,
.page-home .home-category-card:focus-visible {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
  border-color: color-mix(in srgb, var(--section-600) 44%, var(--border));
}

.page-home .home-category-card[data-section="travel"] {
  --section-600: var(--travel-600);
  --section-50: var(--travel-50);
}

.page-home .home-category-card[data-section="property"] {
  --section-600: var(--property-600);
  --section-50: var(--property-50);
}

.page-home .home-category-card[data-section="jobs"] {
  --section-600: var(--jobs-600);
  --section-50: var(--jobs-50);
}

.page-home .home-category-card__icon {
  display: inline-grid;
  place-items: center;
  width: 4.4rem;
  height: 4.4rem;
  padding: 0.55rem;
  border-radius: 1.25rem;
  color: var(--section-600);
  background: color-mix(in srgb, var(--section-50) 84%, #ffffff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--section-600) 18%, #ffffff);
}

.page-home .home-category-card__icon img,
.page-home .home-category-card__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.page-home .home-category-card__icon img {
  object-fit: contain;
}

.page-home .home-category-card h3 {
  color: var(--home-navy);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.page-home .home-category-card p {
  color: var(--text-muted);
}

.page-home .home-category-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: auto;
  align-self: end;
  color: var(--section-600);
  font-weight: 800;
}

.page-home .home-category-card__cta::after {
  content: "\2192";
  font-size: 1.05em;
  line-height: 1;
  transition: transform 0.16s ease;
}

.page-home .home-category-card:hover .home-category-card__cta::after,
.page-home .home-category-card:focus-visible .home-category-card__cta::after {
  transform: translateX(0.18rem);
}

.page-home .home-values {
  display: grid;
  gap: 1rem;
  margin-top: clamp(1.2rem, 3vw, 2rem);
  padding: clamp(1rem, 2vw, 1.35rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 0% 0%, rgba(232, 96, 0, 0.08), transparent 34%),
    radial-gradient(circle at 100% 0%, rgba(11, 86, 176, 0.08), transparent 34%),
    rgba(255, 255, 255, 0.7);
}

.page-home .home-value-card {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
}

.page-home .home-value-card h2 {
  color: var(--home-navy);
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
}

.page-home .home-value-card p {
  color: var(--text-muted);
}

@media (min-width: 860px) {
  .page-home .home-cta-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .home-categories,
  .page-home .home-values {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-home .home-value-card {
    position: relative;
  }

  .page-home .home-value-card:not(:first-child)::before {
    content: "";
    position: absolute;
    top: 0.55rem;
    bottom: 0.55rem;
    left: -0.5rem;
    width: 1px;
    background: color-mix(in srgb, var(--border-strong) 74%, transparent);
    opacity: 0.72;
    pointer-events: none;
  }
}

@media (max-width: 859px) {
  .page-home .home-cta-row {
    margin-top: 1rem;
  }
}

@media (max-width: 700px) {
  .page-home {
    --home-shell-width: min(var(--container), calc(100% - 1.5rem));
  }

  .page-home .home-hero-stage {
    min-height: clamp(18rem, 70vw, 22rem);
    background:
      linear-gradient(180deg, rgba(252, 250, 247, 0.99) 0%, rgba(252, 250, 247, 0.97) 58%, rgba(252, 250, 247, 0.82) 100%),
      url("../../images/OldCoupleChilling.png") right center / cover no-repeat;
  }

  .page-home .home-hero-inner {
    min-height: clamp(18rem, 70vw, 22rem);
    padding: 1.45rem 0 2.8rem;
    align-content: start;
  }

  .page-home .home-hero__copy {
    max-width: min(100%, 27rem);
  }

  .page-home .home-hero-stage h1 {
    max-width: 7.6em;
    font-size: clamp(2.35rem, 12vw, 3rem);
  }

  .page-home .home-hero__lead {
    max-width: min(100%, 27rem);
    font-size: 1rem;
    line-height: 1.55;
  }

  .page-home .home-hero__actions {
    display: grid;
  }

  .page-home .home-hero__actions .btn,
  .page-home .home-hero__actions .btn-company {
    width: 100%;
  }

  .page-home .home-audience-cta {
    padding: 1rem;
  }

  .page-home .home-section-shell,
  .page-home .home-values {
    border-radius: var(--radius-md);
  }

  .page-home .home-section-toolbar,
  .page-home .home-categories,
  .page-home .home-values {
    padding-inline: 0.9rem;
  }

  .page-home .home-categories {
    padding-block: 0.9rem;
  }
}

@media (max-width: 430px) {
  .page-home {
    --home-shell-width: min(var(--container), calc(100% - 1rem));
  }

  .page-home .home-section-toolbar,
  .page-home .home-categories,
  .page-home .home-values {
    padding-inline: 0.75rem;
  }

  .page-home .home-audience-cta,
  .page-home .home-category-card,
  .page-home .home-value-card {
    overflow: hidden;
    overflow-wrap: anywhere;
  }

  .page-home .home-hero__actions .btn,
  .page-home .home-hero__actions .btn-company,
  .page-home .home-category-card .btn,
  .page-home .home-category-card .btn-company {
    white-space: normal;
    text-align: center;
  }
}
