/* ==========================================================================
   Vistaar Homes — Sections
   1. Home hero slider   2. Inner page hero   3. Fact bar   4. Notice band
   5. About              6. Contact            7. CTA band  8. Offer
   9. Process            10. Audience tabs     11. Home blocks (Stanmore)
   ========================================================================== */

/* ---------- 1. Home hero slider ---------- */
.hero {
  position: relative;
  height: 88vh;
  height: 88svh;               /* Stable on iOS/Android as the address bar hides */
  min-height: 560px;
  max-height: 980px;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}

.hero__carousel,
.hero__slides,
.hero__slide {
  height: 100%;
}

.hero__slide {
  touch-action: pan-y;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__slide.active .hero__image {
  animation: heroZoom 7s ease-out both;
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 18, 22, 0.5) 0, transparent 180px),
    linear-gradient(0deg, rgba(15, 18, 22, 0.9) 0%, rgba(15, 18, 22, 0.55) 55%, rgba(15, 18, 22, 0.55) 100%);
}

.hero__content-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  height: 100%;
  align-items: flex-end;
  padding-top: var(--nav-height);
  padding-bottom: 9.5rem;
}

.hero__content {
  max-width: 720px;
}

.hero__content > * {
  opacity: 0;
  transform: translateY(18px);
}

.hero__slide.active .hero__content > * {
  animation: heroIn 0.7s var(--ease-out) forwards;
}

.hero__slide.active .hero__content > :nth-child(2) { animation-delay: 0.1s; }
.hero__slide.active .hero__content > :nth-child(3) { animation-delay: 0.2s; }
.hero__slide.active .hero__content > :nth-child(4) { animation-delay: 0.3s; }

@keyframes heroIn {
  to {
    opacity: 1;
    transform: none;
  }
}

.hero__title {
  margin-bottom: 1rem;
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 500;
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.18);
  text-wrap: balance;
}

.hero__text {
  max-width: 560px;
  margin-bottom: 1.75rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--fs-lg);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Controls: numbered progress bars + pause/prev/next */
.hero__controls {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: max(20px, env(safe-area-inset-bottom));
  left: 0;
}

.hero__controls-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero__indicators {
  display: flex;
  gap: 0.75rem;
}

.hero__indicator {
  width: min(84px, 20vw);
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: left;
  opacity: 0.55;
  transition: opacity var(--duration) ease;
}

.hero__indicator.active {
  opacity: 1;
}

.hero__indicator-number {
  display: block;
  margin-bottom: 0.45rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.hero__indicator-track {
  display: block;
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.3);
}

.hero__indicator-track > span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--brand);
}

.hero__buttons {
  display: flex;
  gap: 8px;
}

.hero__button {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  color: #fff;
  transition:
    background-color var(--duration) ease,
    border-color var(--duration) ease,
    color var(--duration) ease;
}

/* Phones: swipe replaces the arrows; keep only the pause button */
@media (max-width: 575.98px) {
  .hero__button[data-bs-slide] {
    display: none;
  }
  .hero__indicator {
    width: 56px;
  }
}

@media (min-width: 992px) {
  .hero__content-wrap {
    align-items: center;
    padding-bottom: 6rem;
  }
  .hero__overlay {
    background:
      linear-gradient(180deg, rgba(15, 18, 22, 0.5) 0, transparent 180px),
      linear-gradient(90deg, rgba(15, 18, 22, 0.82) 0%, rgba(15, 18, 22, 0.45) 50%, rgba(15, 18, 22, 0.1) 100%),
      linear-gradient(0deg, rgba(15, 18, 22, 0.55) 0%, transparent 35%);
  }
}

/* Landscape phones: keep the text clear of the controls */
@media (max-width: 991.98px) and (orientation: landscape) and (max-height: 520px) {
  .hero {
    min-height: 440px;
  }
  .hero__content-wrap {
    padding-bottom: 6rem;
  }
  .hero__title {
    font-size: clamp(2rem, 6vw, 3rem);
  }
  .hero__text {
    margin-bottom: 1rem;
  }
}

/* ---------- 2. Inner page hero ---------- */
.page-hero {
  position: relative;
  display: flex;
  min-height: 420px;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}

.page-hero--lg {
  min-height: 78vh;
  min-height: 78svh;
}

.page-hero__media,
.page-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.page-hero__image {
  object-fit: cover;
  animation: heroZoom 9s ease-out both;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 18, 22, 0.55) 0, transparent 180px),
    linear-gradient(0deg, rgba(15, 18, 22, 0.92) 0%, rgba(15, 18, 22, 0.62) 55%, rgba(15, 18, 22, 0.5) 100%);
}

.page-hero__inner {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--nav-height) + 2rem);
  padding-bottom: 3.5rem;
}

.page-hero .breadcrumbs {
  margin-bottom: 2rem;
}

.page-hero__content {
  max-width: 820px;
}

.page-hero__title {
  max-width: 16ch;                               /* cleaner line breaks */
  margin-bottom: 1rem;
  color: #fff;
  font-size: clamp(2.3rem, 1.6rem + 2.6vw, 3.9rem);   /* 37px → 62px (was up to 78px) */
  line-height: 1.08;
}

.page-hero__intro {
  max-width: 620px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: var(--fs-lg);
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

@media (min-width: 992px) {
  .page-hero {
    min-height: 520px;
  }
  .page-hero__inner {
    padding-bottom: 4.5rem;
  }
}

/* ---------- 3. Fact bar (key specs under a hero) ---------- */
.fact-bar {
  position: relative;
  z-index: 3;
  background: var(--ink-900);
  color: #fff;
}

.fact-bar__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.fact-bar__item {
  display: grid;
  gap: 0.35rem;
  padding: 1.25rem 0.75rem;
  border-bottom: 1px solid var(--on-dark-line);
}

.fact-bar__item:nth-child(odd) {
  border-right: 1px solid var(--on-dark-line);
}

.fact-bar__item .bi {
  color: var(--brand);
  font-size: 1.1rem;
}

.fact-bar__item dt {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--on-dark-soft);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}

.fact-bar__item dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1.1;
}

.fact-bar--pillars .fact-bar__list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fact-bar--pillars .fact-bar__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border-right: 1px solid var(--on-dark-line);
}

.fact-bar--pillars .fact-bar__item:last-child {
  border-right: 0;
}

.fact-bar--pillars strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
}

@media (min-width: 768px) {
  .fact-bar__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .fact-bar__item {
    padding: 1.75rem 1.5rem;
    border-right: 1px solid var(--on-dark-line);
    border-bottom: 0;
  }
  .fact-bar__item:first-child {
    padding-left: 0;
  }
  .fact-bar__item:last-child {
    border-right: 0;
  }
}

@media (max-width: 575.98px) {
  .fact-bar--pillars .fact-bar__item {
    flex-direction: column;
    gap: 0.25rem;
    border-bottom: 0;
    text-align: center;
  }
  .fact-bar--pillars strong {
    font-size: 1.1rem;
  }
}

/* ---------- 4. Notice band ("coming soon") ---------- */
.notice-band {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem 1.25rem;
  margin-top: 2rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  background: var(--surface-warm);
}

.notice-band__icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  background: var(--brand-tint);
  color: var(--brand-700);
  font-size: 1.25rem;
}

.notice-band__text {
  margin: 0;
  color: var(--ink-soft);
}

.notice-band__text strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
}

.notice-band .btn {
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .notice-band {
    grid-template-columns: auto 1fr auto;
    padding: 1.75rem 2rem;
  }
  .notice-band .btn {
    grid-column: auto;
  }
}

/* ---------- 5. About ---------- */
.about__content p:not(.eyebrow) {
  color: var(--ink-soft);
}

@media (min-width: 992px) {
  .about__content {
    padding-left: 2rem;
  }
}

/* ---------- 6. Contact ---------- */
.contact__shell {
  border: var(--rule);
  box-shadow: var(--shadow-lg);
}

.contact__form-panel,
.contact__info-panel {
  height: 100%;
  padding: 2.25rem 1.25rem;
}

.contact__form-panel {
  background: var(--surface);
}

.contact__form-panel .section-intro {
  margin-bottom: 1.75rem;
}

.contact__info-panel {
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: #fff;
}

.contact__info-title {
  margin-bottom: 1.5rem;
  color: #fff;
  font-size: 1.9rem;
}

.contact__details {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.contact__detail {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
}

.contact__detail > .bi {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--on-dark-line);
  color: var(--brand);
  font-size: 1.1rem;
}

.contact__detail .contact__label {
  margin-bottom: 0.2rem;
  color: var(--on-dark-soft);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}

.contact__detail p {
  margin: 0;
  color: #fff;
  font-size: 0.95rem;
}

.contact__detail a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact__map {
  flex: 1 1 auto;
  min-height: 240px;
  border-color: var(--on-dark-line);
  background: #252a30;
}

.contact__map .contact__map-placeholder {
  color: var(--on-dark-soft);
}

.contact__directions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  margin-top: 0.75rem;
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 700;
}

.contact__directions .bi {
  color: var(--brand);
}

.contact-form__submit {
  width: 100%;
}

@media (min-width: 576px) {
  .contact__form-panel,
  .contact__info-panel {
    padding: 2.75rem;
  }
  .contact-form__submit {
    width: auto;
    min-width: 200px;
  }
}

@media (min-width: 1200px) {
  .contact__form-panel,
  .contact__info-panel {
    padding: 4rem;
  }
}

/* ---------- 7. CTA band ---------- */
.cta-band {
  padding-block: 72px;
  background:
    linear-gradient(120deg, rgba(238, 126, 57, 0.14), transparent 45%),
    var(--ink);
  color: #fff;
}

.cta-band__inner {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

.cta-band__title {
  margin-bottom: 0.6rem;
  color: #fff;
}

.cta-band__text {
  max-width: 560px;
  margin: 0;
  color: var(--on-dark-soft);
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (min-width: 992px) {
  .cta-band {
    padding-block: 96px;
  }
  .cta-band__inner {
    grid-template-columns: 1fr auto;
    gap: 3rem;
  }
}

/* ---------- 8. Offer (vehicle incentive) ---------- */
.offer {
  background:
    radial-gradient(circle at 85% 30%, rgba(238, 126, 57, 0.18), transparent 45%),
    var(--ink);
}

.offer__terms {
  display: grid;
  gap: 0.6rem;
  margin: 1.5rem 0;
}

.offer__terms li {
  display: flex;
  gap: 0.65rem;
  color: var(--on-dark-soft);
}

.offer__terms .bi {
  color: var(--brand);
}

/* ---------- 9. Process ---------- */
.process {
  display: grid;
  gap: 1px;
  margin: 0;
  background: var(--line);
  border: var(--rule);
}

.process__step {
  position: relative;
  padding: 2rem 1.5rem;
  background: var(--surface);
}

.process__number {
  display: block;
  margin-bottom: 1rem;
  color: var(--brand);
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 600;
  line-height: 1;
}

.process__title {
  margin-bottom: 0.75rem;
  font-size: 1.9rem;
}

.process__text {
  color: var(--ink-soft);
}

@media (min-width: 992px) {
  .process {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .process__step {
    padding: 2.5rem 2.25rem;
  }
}

/* ---------- 10. Audience tabs ---------- */
.audience {
  border: var(--rule);
  background: var(--surface);
}

.audience__tabs {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  border-bottom: var(--rule);
  scrollbar-width: none;
}

.audience__tab {
  flex: 1 0 auto;
  min-height: 56px;
  padding: 0.75rem 1.25rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--ink-muted);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.audience__tab.active {
  border-bottom-color: var(--brand);
  color: var(--ink);
}

.audience__panels {
  padding: 1.75rem 1.5rem;
}

.audience__panels p {
  color: var(--ink-soft);
}

@media (min-width: 768px) {
  .audience__panels {
    padding: 2.5rem;
  }
}

/* ---------- 11. Home blocks (Stanmore Road) ---------- */
.home-block + .home-block {
  margin-top: 4rem;
  padding-top: 4rem;
  border-top: var(--rule);
}

.home-block__media {
  display: block;
  overflow: hidden;
}

.home-block__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.home-block__title {
  margin-bottom: 0;
  font-size: var(--fs-h2);
}

.home-block__label {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}

/* Hero feature chips (e.g. "2 & 3 Bedrooms") */
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 600;
}

.hero-chip .bi {
  color: var(--brand);
}

.page-hero__actions:has(.hero-chip) .btn {
  flex-basis: 100%;
  max-width: max-content;
}

/* Sold property tiles (Stanmore page) */
.sold-card {
  position: relative;
  display: block;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
}

.sold-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.sold-card__body {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  gap: 0.35rem;
  padding: 3rem 1.5rem 1.5rem;
  background: linear-gradient(0deg, rgba(15, 18, 22, 0.9), transparent);
}

.sold-card__body strong {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.15;
}

.sold-card__body span {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--fs-sm);
}

@media (hover: hover) and (pointer: fine) {
  .sold-card:hover img {
    transform: scale(1.04);
  }
  .sold-card:hover {
    color: #fff;
  }
}

.offer__date {
  margin: 0;
  color: #ffb4a8;
  font-weight: 700;
}
