/* ==========================================================================
   Nationwide Properties - home page treatment
   Loaded only by site/index.html, on top of styles.css. Everything here is
   scoped to `body.home`, so the Properties / detail / contact pages are
   untouched.

   Look: warm off-white ground, large rounded panels, a hero with a floating
   spotlight card and a floating search bar, black pill buttons.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap");

body.home {
  --cream: #f4f0e9;
  --cream-deep: #ebe3d6;
  --ink: #191713;
  --muted: #8c857a;
  --line: #e2d9cb;
  --card: #ffffff;
  --pill: #17150f;
  --pill-ink: #ffffff;
  --r-lg: 30px;
  --r-md: 18px;
  --r-pill: 999px;
  --shadow: 0 26px 60px -28px rgba(60, 46, 20, 0.45);
  --shadow-sm: 0 12px 30px -14px rgba(60, 46, 20, 0.35);

  background: var(--cream);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body.home h1,
body.home h2,
body.home h3 {
  font-family: inherit;
  color: var(--ink);
  letter-spacing: -0.02em;
}

body.home .wrap { max-width: 1200px; }

/* ---------- header ---------- */
body.home .site-header {
  background: transparent;
  border-bottom: 0;
}
body.home .site-header__inner {
  padding-top: 26px;
  padding-bottom: 10px;
}
body.home .site-header__brand {
  font-family: inherit;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
body.home .site-nav a {
  color: var(--ink);
  font-size: .95rem;
  font-weight: 500;
  border-bottom: 0;
  opacity: .8;
}
body.home .site-nav a:hover { opacity: 1; border-bottom: 0; }
body.home .site-header__cta {
  display: inline-block;
  background: var(--pill);
  color: var(--pill-ink);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--r-pill);
}
body.home .site-header__cta:hover { background: #000; color: #fff; }

/* ---------- hero ---------- */
.hp-hero { padding: 8px 0 0; }

.hp-hero__panel {
  position: relative;
  border-radius: var(--r-lg);
  background: var(--cream-deep);
  box-shadow: var(--shadow);
}

.hp-hero__media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: 420px;
  padding: clamp(48px, 7vw, 88px) clamp(24px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Swap in a real photo later: set --hero-image to url("../img/hero.jpg")
     on body.home (or here) and it layers above the drawn background. */
  background-image:
    var(--hero-image, none),
    linear-gradient(180deg, rgba(244, 240, 233, 0) 55%, rgba(40, 32, 18, 0.28) 100%),
    url("../img/hero-contours.svg");
  background-size: cover, cover, cover;
  background-position: center, center, center;
}

.hp-hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .72rem;
  font-weight: 600;
  color: #6f6656;
  margin: 0 0 18px;
}
.hp-hero__title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.04;
  font-weight: 600;
  margin: 0;
  max-width: 18ch;
}
.hp-hero__sub {
  margin: 20px 0 0;
  max-width: 46ch;
  font-size: 1.08rem;
  color: #5c5443;
}

/* ---------- floating search bar ---------- */
.hp-search {
  position: relative;
  z-index: 2;
  margin: -44px auto 0;
  width: min(960px, calc(100% - 32px));
  background: var(--card);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: stretch;
  padding: 10px 10px 10px 8px;
  gap: 4px;
}
.hp-search__field {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 8px 16px;
  min-width: 0;
  position: relative;
}
.hp-search__field + .hp-search__field::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: var(--line);
}
.hp-search__field label {
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--muted);
  font-weight: 600;
}
.hp-search__field input,
.hp-search__field select {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink);
  padding: 0;
  width: 100%;
  appearance: none;
  cursor: pointer;
}
.hp-search__field input { cursor: text; }
.hp-search__field input:focus,
.hp-search__field select:focus { outline: none; }
.hp-search__submit {
  flex: 0 0 auto;
  align-self: center;
  border: 0;
  background: var(--pill);
  color: var(--pill-ink);
  font: inherit;
  font-weight: 600;
  font-size: .92rem;
  padding: 14px 26px;
  border-radius: var(--r-pill);
  cursor: pointer;
}
.hp-search__submit:hover { background: #000; }

/* ---------- stats strip ---------- */
.hp-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 40px 0 8px;
}
.hp-stat {
  flex: 1 1 160px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 20px;
}
.hp-stat b {
  display: block;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.hp-stat span {
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}

/* ---------- latest section ---------- */
.hp-section { margin: 56px 0; }
.hp-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.hp-section__head h2 { font-size: 1.7rem; margin: 0; }
.hp-pill-link {
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.hp-pill-link:hover { background: var(--ink); color: var(--cream); }

/* warm, rounder cards on the home page only */
body.home #property-grid .card {
  border-color: var(--line);
  border-radius: var(--r-md);
  background: var(--card);
}
body.home #property-grid .card:hover {
  box-shadow: var(--shadow-sm);
}
body.home #property-grid .card__media {
  background: var(--cream-deep);
  border-bottom-color: var(--line);
}
body.home #property-grid .card__title { font-family: inherit; }
body.home #property-grid .card__price { color: var(--ink); }

/* ---------- closing CTA ---------- */
.hp-cta {
  margin: 64px 0 8px;
  background: var(--cream-deep);
  border-radius: var(--r-lg);
  padding: clamp(32px, 6vw, 64px);
  text-align: center;
}
.hp-cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 10px; }
.hp-cta p { color: #5c5443; margin: 0 auto 24px; max-width: 46ch; }
.hp-cta a {
  display: inline-block;
  background: var(--pill);
  color: var(--pill-ink);
  text-decoration: none;
  font-weight: 600;
  padding: 14px 30px;
  border-radius: var(--r-pill);
}
.hp-cta a:hover { background: #000; }

/* ---------- footer ---------- */
body.home .site-footer {
  margin-top: 56px;
  background: transparent;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
body.home .site-footer a { color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hp-hero__media { min-height: 0; padding: 40px 24px 90px; }
  .hp-search {
    flex-direction: column;
    border-radius: var(--r-md);
    width: calc(100% - 32px);
    margin-top: -60px;
    gap: 2px;
    padding: 8px;
  }
  .hp-search__field { padding: 10px 14px; }
  .hp-search__field + .hp-search__field::before {
    left: 14px;
    right: 14px;
    top: 0;
    bottom: auto;
    width: auto;
    height: 1px;
  }
  .hp-search__submit { width: 100%; margin-top: 6px; }
}

@media (max-width: 560px) {
  body.home .site-header__inner { flex-direction: column; align-items: flex-start; }
  .hp-hero__title { font-size: 2rem; }
}
