/* ─────────────────────────────────────────
   POINT REAL ESTATE · Homepage Styles
   ───────────────────────────────────────── */

/* ─── HERO ─── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  padding-top: var(--nav-height);
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px var(--page-gutter) 120px;
  background: var(--warm-white);
  position: relative;
  z-index: 1;
}

.hero-markets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-market-tag {
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
  border: 1px solid rgba(163,177,198,0.3);
  padding: 5px 14px;
  border-radius: 1px;
  opacity: 0.8;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(56px, 5.5vw, 88px);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin-bottom: 24px;
}

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

.hero-sub {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 360px;
  margin-bottom: 48px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 32px;
}

.hero-right {
  position: relative;
  overflow: hidden;
  background: var(--navy);
}

.hero-video,
.hero-video-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.hero-video-fallback {
  display: none;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,30,53,0.4) 0%, transparent 60%);
}

.hero-image-overlay {
  position: absolute;
  bottom: 40px;
  left: 40px;
  right: 40px;
}

.hero-featured-label {
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  opacity: 0.9;
}

.hero-featured-address {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 6px;
}

.hero-featured-price {
  font-size: 15px;
  color: rgba(245,240,232,0.6);
  letter-spacing: 0.04em;
}

/* ─── SEARCH SECTION ─── */
.search-tabs {
  display: flex;
  gap: 0;
  flex-shrink: 0;
}

.search-tab {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 17px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.4);
  padding: 8px 20px;
  cursor: pointer;
  transition: color 0.2s;
  border-right: 1px solid rgba(245,240,232,0.08);
}

.search-tab:first-child { padding-left: 0; }
.search-tab:hover { color: rgba(245,240,232,0.8); }
.search-tab.active { color: var(--gold); }

.search-divider {
  width: 1px;
  height: 28px;
  background: rgba(245,240,232,0.1);
  margin: 0 24px;
  flex-shrink: 0;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.search-input {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  color: var(--cream);
  outline: none;
  width: 100%;
}

.search-input::placeholder { color: rgba(245,240,232,0.3); }

.search-select {
  background: none;
  border: none;
  border-left: 1px solid rgba(245,240,232,0.1);
  font-family: var(--font-body);
  font-size: 15px;
  color: rgba(245,240,232,0.5);
  padding: 8px 16px 8px 20px;
  cursor: pointer;
  outline: none;
  appearance: none;
  flex-shrink: 0;
}

.search-select option { background: var(--navy); }

.search-btn {
  background: var(--gold);
  border: none;
  font-family: var(--font-body);
  font-size: 17px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warm-white);
  padding: 12px 28px;
  cursor: pointer;
  transition: background 0.2s;
  border-radius: 2px;
  margin-left: 16px;
  flex-shrink: 0;
}

.search-btn:hover { background: var(--gold-light); }

/* ─── STATS STRIP ─── */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  background: var(--navy);
  border-top: 1px solid rgba(245,240,232,0.06);
  border-bottom: 1px solid rgba(245,240,232,0.06);
}

.stat-cell {
  padding: 32px var(--page-gutter);
  border-right: 1px solid rgba(245,240,232,0.06);
  text-align: left;
}
.stat-cell:last-child { border-right: none; }
.stat-cell:first-child { padding-left: var(--page-gutter); }

.stat-number {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 300;
  color: var(--cream);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-number sup {
  font-size: 18px;
  vertical-align: super;
}

.stat-label {
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  opacity: 0.7;
  margin-bottom: 6px;
}

.stat-change {
  font-size: 17px;
  color: var(--gold);
  opacity: 0.8;
}

/* ─── WHAT WE DO / SERVICES ─── */
.services-section {
  padding: 100px var(--page-gutter);
  background: var(--navy);
}

.services-header {
  text-align: center;
  margin-bottom: 64px;
}

.services-label {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.services-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  color: var(--cream);
  line-height: 1.1;
}

.services-title em {
  font-style: italic;
  color: var(--gold);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: rgba(196,151,58,0.15);
  border: 1px solid rgba(196,151,58,0.15);
}

.service-card {
  background: var(--navy);
  padding: 48px 32px;
  transition: background 0.3s;
}

.service-card:hover {
  background: #162540;
}

.service-icon {
  margin-bottom: 28px;
}

.service-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 6px;
  line-height: 1.2;
}

.service-tag {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
  margin-bottom: 20px;
}

.service-desc {
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(245,240,232,0.45);
}

/* ─── MARKET GRID ─── */
.market-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
}

.market-card {
  background: var(--warm-white);
  padding: 48px 40px;
}

.market-card-region {
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.market-card-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 2.8vw, 44px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--navy);
  margin-bottom: 12px;
}

.market-card-stat {
  font-size: 17px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.market-card-desc {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--navy);
  opacity: 0.7;
  margin-bottom: 36px;
}

.market-card-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 32px;
}

.market-card-metrics {
  display: flex;
  gap: 40px;
  margin-bottom: 36px;
}

.metric-val {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 4px;
}

.metric-label {
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.market-explore {
  font-size: 17px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.market-explore:hover { opacity: 1; }

/* ─── LISTINGS ─── */
.listings-section {
  padding: var(--section-pad) var(--page-gutter);
  background: var(--cream);
}

.listings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.listing-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(15,30,53,0.1);
}

.listing-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

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

.listing-card:hover .listing-image img { transform: scale(1.04); }

.listing-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--navy);
  color: var(--cream);
  padding: 5px 12px;
  border-radius: 1px;
}

.listing-badge.new { background: var(--gold); }

.listing-body { padding: 28px; }

.listing-market {
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.listing-address {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 4px;
}

.listing-city {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.listing-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 20px;
}

.listing-details {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.listing-specs {
  display: flex;
  gap: 16px;
}

.listing-spec {
  font-size: 15px;
  color: var(--text-muted);
}

.listing-spec strong {
  color: var(--navy);
  font-weight: 500;
}

.listing-price {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--navy);
}

/* ─── IDX SECTION ─── */
.idx-section {
  background: var(--navy);
  padding: var(--section-pad) var(--page-gutter);
}

.idx-inner { max-width: 720px; }

.idx-label {
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  opacity: 0.9;
}

.idx-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 4vw, 64px);
  font-weight: 300;
  line-height: 1.05;
  color: var(--cream);
  margin-bottom: 20px;
}

.idx-title em { font-style: italic; color: var(--gold); }

.idx-desc {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  color: rgba(245,240,232,0.55);
  max-width: 520px;
  margin-bottom: 40px;
}

.idx-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.idx-filter {
  background: none;
  border: 1px solid rgba(245,240,232,0.15);
  font-family: var(--font-body);
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.45);
  padding: 8px 18px;
  border-radius: 1px;
  cursor: pointer;
  transition: all 0.2s;
}

.idx-filter:hover { color: var(--cream); border-color: rgba(245,240,232,0.35); }
.idx-filter.active { color: var(--gold); border-color: var(--gold); }

.idx-search-box {
  display: flex;
  gap: 0;
  max-width: 540px;
  margin-bottom: 24px;
}

.idx-search-input {
  flex: 1;
  background: rgba(245,240,232,0.06);
  border: 1px solid rgba(245,240,232,0.12);
  border-right: none;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  color: var(--cream);
  padding: 14px 20px;
  outline: none;
}

.idx-search-input::placeholder { color: rgba(245,240,232,0.3); }

.idx-search-btn {
  background: var(--gold);
  border: none;
  font-family: var(--font-body);
  font-size: 17px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warm-white);
  padding: 14px 28px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.idx-search-btn:hover { background: var(--gold-light); }

.idx-note {
  font-size: 15px;
  letter-spacing: 0.06em;
  color: rgba(245,240,232,0.2);
  line-height: 1.6;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  :root { --page-gutter: 32px; }

  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-right { height: 60vw; }
  .stats-strip { grid-template-columns: repeat(3, 1fr); }
  .stat-cell:nth-child(3) { border-right: none; }
  .market-grid { grid-template-columns: 1fr; }
  .listings-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  :root { --page-gutter: 24px; --section-pad: 64px; }

  .hero-headline { font-size: 48px; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .listings-grid { grid-template-columns: 1fr; }
  .search-bar { flex-wrap: wrap; gap: 12px; }
  .search-select { display: none; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 20px; }
}
