/* =========================================================
   Page: Homepage
   - Styles for the main landing page (home.php).
   - All styles are scoped to the .home body class.
   ========================================================= */

@layer pages {
  /* ---------- HERO ---------- */
  .home .hero {
    padding-block: clamp(48px, 10vw, 96px);
    text-align: center;
    border-bottom: 1px solid var(--border-default);
    background:
      radial-gradient(900px 500px at 15% -10%, color-mix(in srgb, var(--brand-100) 80%, #fff), transparent),
      radial-gradient(700px 400px at 85% 0%, color-mix(in srgb, #dbeafe 60%, #fff), transparent),
      linear-gradient(180deg, #ffffff 0%, #f7fbff 60%, #f4f7ff 100%);
  }

  .home .hero__title {
    margin: 0 0 16px;
    font-weight: 800;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.15;
    letter-spacing: -0.02em;
  }

  .home .hero__subtitle {
    margin: 0 auto var(--sp-7);
    max-width: 55ch;
    color: var(--text-muted);
    font-size: clamp(16px, 2.5vw, 20px);
  }

  .home .hero__actions {
    display: flex;
    justify-content: center;
    gap: var(--sp-4);
    flex-wrap: wrap;
  }

  /* ---------- SECTIONS ---------- */
  .home .section {
    padding-block: var(--sp-9);
  }
  @media (min-width: 1000px) {
    .home .section {
      padding-block: var(--sp-11);
    }
  }

  .home .section--alt {
    background-color: var(--surface);
    border-top: 1px solid var(--border-default);
    border-bottom: 1px solid var(--border-default);
  }

  .home .section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: var(--sp-7);
    gap: var(--sp-4);
  }

  .home .section-header__title {
    margin: 0;
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
  }

  .home .section-header__link {
    font-weight: 500;
    color: var(--brand-600);
    white-space: nowrap;
    text-decoration: none;
  }
   .home .section-header__link:hover {
    text-decoration: underline;
  }


  /* ---------- LISTING GRID (1 col -> 2 col) ---------- */
  .home .listing-grid {
    display: grid;
    grid-template-columns: 1fr; /* Default: 1 column */
    gap: var(--sp-6);
  }

  @media (min-width: 1000px) {
    .home .listing-grid {
      grid-template-columns: repeat(2, 1fr); /* 2 columns on desktop */
      gap: var(--sp-7);
    }
  }
}
