/* ============================================================
   LISA HARRIS REAL ESTATE — Las Vegas / Henderson
   Premium Luxury Night Design System
   ============================================================ */

:root {
  --bg: #0a0a0b;
  --bg-elevated: #111113;
  --surface: #161618;
  --surface-hover: #1c1c1f;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --neon: #00d4ff;
  --neon-soft: rgba(0, 212, 255, 0.15);
  --neon-glow: 0 0 24px rgba(0, 212, 255, 0.35);
  --magenta: #ff2d95;
  --magenta-soft: rgba(255, 45, 149, 0.12);
  --gold: #d4af37;
  --text: #f5f5f5;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --font-serif: "Playfair Display", "Georgia", serif;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --container: 1280px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 0.45s;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.85rem, 4vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2.5vw, 1.75rem); }

.lead { font-size: 1.2rem; color: var(--text-muted); max-width: 42ch; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 5rem 0; }
.section-sm { padding: 3.5rem 0; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(10, 10, 11, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--duration) var(--ease);
}

.site-header.scrolled { background: rgba(10, 10, 11, 0.92); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text);
}

.logo span { color: var(--neon); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 450;
  color: var(--text-muted);
  transition: color 0.25s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.25rem;
  background: var(--neon);
  color: #000 !important;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 999px;
  transition: transform 0.25s, box-shadow 0.25s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--neon-glow);
}

.mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: 1.25rem;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  transition: all 0.3s var(--ease);
}

.btn-primary { background: var(--neon); color: #000; }
.btn-primary:hover { box-shadow: var(--neon-glow); transform: translateY(-2px); }
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover { border-color: var(--neon); color: var(--neon); }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: var(--neon); }

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--header-h);
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 11, 0.35) 0%,
    rgba(10, 10, 11, 0.55) 40%,
    rgba(10, 10, 11, 0.92) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 2rem 1.5rem;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--neon);
  margin-bottom: 1.25rem;
}

.hero h1 { margin-bottom: 1.25rem; }
.hero h1 em { font-style: italic; color: var(--neon); }
.hero-lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 36ch;
  margin: 0 auto 2.5rem;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat {
  background: var(--bg-elevated);
  padding: 2rem 1.5rem;
  text-align: center;
}

.stat-value {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 500;
  color: var(--neon);
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}

.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
}

.card-body { padding: 1.5rem; }
.card-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.card-meta {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.neighborhood-card {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}

.neighborhood-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s var(--ease);
}

.neighborhood-card img.logo-fit {
  object-fit: contain;
  padding: 1.75rem;
  background: #0c0c0e;
}

.neighborhood-card:hover img { transform: scale(1.06); }
.neighborhood-card:hover img.logo-fit { transform: scale(1.04); }

.neighborhood-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

.neighborhood-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.neighborhood-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1rem;
  transition: border-color 0.25s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--neon);
}
.form-group textarea { min-height: 120px; resize: vertical; }

.site-footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

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

.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 28ch;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--neon); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.equal-housing {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.equal-housing img {
  height: 28px;
  width: auto;
  opacity: 0.85;
}

.footer-legal {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text-dim);
  max-width: 520px;
}
.footer-legal strong {
  color: var(--text-muted);
  font-weight: 500;
}

.text-center { text-align: center; }
.text-neon { color: var(--neon); }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}
.section-header .eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--neon);
  margin-bottom: 0.75rem;
}

/* IDX page specific — mobile + desktop optimized */
.search-page {
  padding-top: var(--header-h);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.search-header {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
  flex-shrink: 0;
  z-index: 2;
}

.idx-wrapper {
  flex: 1 1 auto;
  position: relative;
  width: 100%;
  min-height: calc(100vh - var(--header-h) - 120px);
  min-height: calc(100dvh - var(--header-h) - 120px);
  -webkit-overflow-scrolling: touch;
  overflow: auto;
  overscroll-behavior: contain;
}

.idx-wrapper iframe {
  display: block;
  width: 100% !important;
  max-width: 100%;
  border: 0;
  min-height: calc(100vh - var(--header-h) - 120px);
  min-height: calc(100dvh - var(--header-h) - 120px);
  height: 100%;
  background: #fff;
  touch-action: pan-y pinch-zoom;
}

.search-legal {
  flex-shrink: 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 0.75rem 1.25rem;
  font-size: 0.72rem;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .search-header {
    padding: 0.65rem 0;
  }
  .search-header h1 {
    font-size: 1.15rem !important;
  }
  .idx-wrapper {
    min-height: calc(100vh - var(--header-h) - 100px);
    min-height: calc(100dvh - var(--header-h) - 100px);
  }
  .idx-wrapper iframe {
    min-height: 1400px;
    height: auto;
  }
  .search-legal {
    font-size: 0.68rem;
    padding: 0.6rem 1rem;
  }
}

@media (min-width: 769px) {
  .idx-wrapper {
    overflow: hidden;
  }
  .idx-wrapper iframe {
    position: absolute;
    inset: 0;
    height: 100% !important;
    min-height: 100%;
  }
}

.page-hero {
  padding: calc(var(--header-h) + 4rem) 0 3rem;
  border-bottom: 1px solid var(--border);
}
.page-hero .breadcrumb {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}
.page-hero .breadcrumb a:hover { color: var(--neon); }

.prose { max-width: 720px; margin: 0 auto; }
.prose p { margin-bottom: 1.25rem; color: var(--text-muted); }
.prose h2 { margin: 2.5rem 0 1rem; color: var(--text); }
.prose h3 { margin: 2rem 0 0.75rem; color: var(--text); }
.prose ul {
  margin: 1rem 0 1.5rem 1.25rem;
  list-style: disc;
  color: var(--text-muted);
}
.prose li { margin-bottom: 0.4rem; }

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}
.faq-item summary {
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary { color: var(--neon); }
.faq-item p {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.testimonial-quote {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  color: var(--text);
}
.testimonial-author { font-size: 0.9rem; font-weight: 600; }
.testimonial-role { font-size: 0.8rem; color: var(--text-dim); }

:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3.5rem;
  align-items: center;
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .about-grid > div:first-child {
    margin: 0 auto;
  }
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 768px) {
  .contact-layout,
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Neighborhood page: panorama banner + content cards */
.neighborhood-banner {
  width: 100%;
  height: clamp(200px, 32vw, 520px);
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--border);
  background: #0a0a0b;
}
.neighborhood-banner img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center center;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
}
@media (max-width: 700px) {
  .neighborhood-banner {
    height: clamp(160px, 42vw, 260px);
  }
}

.content-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (max-width: 800px) {
  .content-cards { grid-template-columns: 1fr; }
}

.content-card {
  background: #fafafa;
  color: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.85rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}
.content-card h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: #0a0a0b;
  margin: 0 0 0.85rem;
  letter-spacing: -0.02em;
}
.content-card p {
  color: #3f3f46;
  margin-bottom: 0.9rem;
  font-size: 0.95rem;
  line-height: 1.65;
}
.content-card p:last-child { margin-bottom: 0; }
.content-card ul {
  margin: 0.5rem 0 0.75rem 1.1rem;
  list-style: disc;
  color: #3f3f46;
}
.content-card li {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  line-height: 1.55;
}
.content-card strong { color: #18181b; }

.neighborhood-cta {
  text-align: center;
  padding: 2.5rem 0 0;
}
