/* Homepage only — reference-inspired layout (navy real-estate) */
body.home {
  --navy: #0b1c33;
  --navy-mid: #132a47;
  --sky: #e8eef6;
  --paper: #f5f7fb;
  --gold: #e6b422;
  --ink: #0b1c33;
  --ink-soft: #5a6b7d;
  --line: rgba(11, 28, 51, 0.1);
  --jade: #1a4d7c;
  --jade-deep: #0b1c33;
  --sand: #e6b422;
  background: var(--paper);
}

body.home .site-nav {
  background: var(--navy);
  border-bottom: 0;
  backdrop-filter: none;
}

body.home .site-nav .brand,
body.home .site-nav .nav-links a,
body.home .site-nav .muted {
  color: #f4f7fb;
}

body.home .site-nav .brand span {
  color: var(--gold);
}

body.home .nav-cat {
  color: #f4f7fb !important;
}

body.home .nav-cat:hover,
body.home .nav-cat.is-active {
  background: rgba(230, 180, 34, 0.2);
  color: var(--gold) !important;
}

body.home .site-nav .btn-ghost {
  border-color: rgba(244, 247, 251, 0.35);
  color: #f4f7fb;
}

body.home .site-nav .btn-primary {
  background: var(--gold);
  color: var(--navy);
}

@media (max-width: 900px) {
  body.home .nav-cats {
    background: rgba(244, 247, 251, 0.08);
  }
}

body.home .hero {
  min-height: 100vh;
  min-height: 100dvh;
}

body.home .hero-media img {
  animation: heroDrift 26s ease-in-out infinite alternate;
}

body.home .hero-scrim {
  background:
    linear-gradient(105deg, rgba(11, 28, 51, 0.82) 0%, rgba(11, 28, 51, 0.45) 48%, rgba(11, 28, 51, 0.25) 100%),
    linear-gradient(180deg, rgba(11, 28, 51, 0.15) 0%, rgba(11, 28, 51, 0.75) 100%);
}

body.home .hero-content {
  padding-bottom: 5.5rem;
  max-width: 36rem;
}

body.home .hero-brand {
  font-size: clamp(3.2rem, 10vw, 6.2rem);
  margin-bottom: 0.6rem;
}

body.home .hero-brand em {
  color: var(--gold);
  font-style: italic;
}

body.home .hero h1 {
  max-width: 16ch;
  font-size: clamp(1.45rem, 3.4vw, 2.15rem);
}

body.home .hero-actions .btn-sand {
  background: var(--gold);
  color: var(--navy);
}

body.home .hero-actions .btn-ghost {
  border-color: rgba(244, 247, 251, 0.45);
  color: #f4f7fb;
}

body.home .view-all-wrap {
  margin-top: 1.35rem;
  text-align: center;
}

@media (max-width: 800px) {
  body.home .hero {
    align-items: center;
    justify-items: center;
    min-height: 92vh;
    min-height: 92dvh;
  }

  body.home .hero-scrim {
    background:
      linear-gradient(180deg, rgba(11, 28, 51, 0.55) 0%, rgba(11, 28, 51, 0.72) 45%, rgba(11, 28, 51, 0.88) 100%);
  }

  body.home .hero-content {
    text-align: center;
    max-width: 100%;
    margin-inline: auto;
    padding: 5.5rem 1.1rem 3.5rem;
  }

  body.home .hero-brand {
    font-size: clamp(2.6rem, 14vw, 3.8rem);
  }

  body.home .hero h1 {
    max-width: 18ch;
    margin-inline: auto;
  }

  body.home .hero-content > p {
    margin-inline: auto;
    max-width: 34ch;
  }

  body.home .hero-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  body.home .section-head {
    text-align: center;
  }

  body.home .section-head p {
    margin-inline: auto;
  }

  body.home #home-listings.grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    max-width: none;
    margin-inline: 0;
  }

  body.home #home-listings .listing-body h3 {
    font-size: 0.92rem;
  }

  body.home #home-listings .listing .rent {
    font-size: 0.88rem;
  }

  body.home #home-listings .meta {
    font-size: 0.78rem;
  }
}

/* Suit your needs — search strip */
.suit-section {
  margin-top: -2.5rem;
  position: relative;
  z-index: 5;
  padding-bottom: 3.5rem;
}

.suit-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.35rem 1.25rem 1.25rem;
  box-shadow: 0 16px 36px rgba(11, 28, 51, 0.08);
}

.suit-panel h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.suit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 0.75rem;
  align-items: stretch;
}

@media (max-width: 900px) {
  .suit-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .suit-grid .btn {
    grid-column: 1 / -1;
  }
}

.suit-opt {
  display: grid;
  gap: 0.35rem;
  place-items: center;
  text-align: center;
  padding: 1rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--sky);
  color: var(--navy);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.suit-opt:hover,
.suit-opt.is-active {
  transform: translateY(-2px);
  border-color: var(--navy);
  background: #fff;
}

.suit-opt .ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gold);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--navy);
}

.suit-opt strong {
  font-size: 0.92rem;
}

.suit-opt span {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

/* Category browse */
.cat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}

@media (max-width: 800px) {
  .cat-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cat-tile {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  isolation: isolate;
  transition: transform 0.3s ease;
}

.cat-tile:hover {
  transform: translateY(-4px);
}

.cat-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cat-tile:hover img {
  transform: scale(1.06);
}

.cat-tile .label {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 2;
  background: var(--navy);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
}

.cat-tile .caption {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 2.2rem 0.9rem 0.9rem;
  background: linear-gradient(transparent, rgba(11, 28, 51, 0.85));
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

/* PG band */
.pg-band {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.5rem;
  align-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: #f4f7fb;
  border-radius: 18px;
  overflow: hidden;
  padding: 0;
}

@media (max-width: 800px) {
  .pg-band {
    grid-template-columns: 1fr;
  }
}

.pg-band-copy {
  padding: 2rem 1.75rem;
}

.pg-band-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin: 0 0 0.75rem;
}

.pg-band-copy ul {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.pg-band-copy li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  color: rgba(244, 247, 251, 0.88);
}

.pg-band-copy li::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.45rem;
  flex-shrink: 0;
  border-radius: 2px;
  background: var(--gold);
}

.pg-band-media {
  min-height: 260px;
  position: relative;
}

.pg-band-media img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

/* Featured */
body.home .listing {
  background: #fff;
  border-color: var(--line);
}

body.home .listing-type {
  color: #1a4d7c;
}

body.home .listing .rent {
  color: var(--navy);
}

/* Stats */
.stats-bar {
  background: var(--navy);
  color: #f4f7fb;
  padding: 2.5rem 0;
  margin: 1rem 0 0;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}

@media (max-width: 700px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--gold);
  letter-spacing: -0.02em;
}

.stat span {
  font-size: 0.92rem;
  color: rgba(244, 247, 251, 0.75);
}

/* Services */
.service-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}

@media (max-width: 800px) {
  .service-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.25rem 1.1rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.service:hover {
  transform: translateY(-3px);
  border-color: rgba(11, 28, 51, 0.28);
}

.service .mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--sky);
  color: var(--navy);
  display: grid;
  place-items: center;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.service h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.service p {
  margin: 0 0 0.7rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.service .more {
  color: #1a4d7c;
  font-weight: 700;
  font-size: 0.88rem;
}

/* Home footer */
body.home .footer {
  background: var(--navy);
  color: rgba(244, 247, 251, 0.75);
  border-top: 0;
  padding: 2.75rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.footer-grid .brand {
  color: #fff;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.footer-grid .brand span {
  color: var(--gold);
}

.footer-grid h4 {
  margin: 0 0 0.65rem;
  color: #fff;
  font-size: 0.95rem;
}

.footer-grid a {
  display: block;
  margin-bottom: 0.4rem;
  color: rgba(244, 247, 251, 0.7);
  font-size: 0.9rem;
}

.footer-grid a:hover {
  color: var(--gold);
}

.footer-copy {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(244, 247, 251, 0.12);
  font-size: 0.85rem;
}

.section.tight {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

body.home .section-head h2 {
  color: var(--navy);
}
