/* ================================================================
   TOP CARMEL REAL ESTATE
   Homepage — css/pages/home.css
   ================================================================ */

/* ── Hero ───────────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=1920&q=80');
  background-size: cover;
  background-position: center 40%;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(17,29,51,0.80) 0%,
    rgba(27,43,75,0.65) 50%,
    rgba(17,29,51,0.78) 100%
  );
}

.hero-content {
  position: relative;
  z-index: var(--z-raised);
  text-align: center;
  padding-inline: var(--space-6);
  max-width: 880px;
}

.hero-eyebrow {
  color: var(--color-gold);
  margin-bottom: var(--space-5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-4xl), 7vw, 5rem);
  font-weight: var(--weight-bold);
  color: var(--color-white);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero-title span {
  color: var(--color-gold-light);
  font-style: italic;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(var(--text-lg), 2.5vw, var(--text-xl));
  color: rgba(255,255,255,0.82);
  line-height: var(--leading-relaxed);
  margin-top: var(--space-6);
  max-width: 600px;
  margin-inline: auto;
}

.hero-ctas {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-10);
}

/* ── Stats Bar ──────────────────────────────────────────────────── */
.stats-bar {
  background: var(--color-navy);
  padding: 0;
  overflow: hidden;
}

.stats-bar-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .stats-bar-inner {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stats-bar .stat-tile {
  border-right: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.stats-bar .stat-tile:nth-child(2n) {
  border-right: none;
}

@media (min-width: 768px) {
  .stats-bar .stat-tile {
    border-bottom: none;
  }
  .stats-bar .stat-tile:nth-child(2n) {
    border-right: 1px solid rgba(255,255,255,0.08);
  }
  .stats-bar .stat-tile:last-child {
    border-right: none;
  }
}

/* ── Featured Listings Section ──────────────────────────────────── */
.featured-listings {
  background: var(--color-sand-light);
}

.featured-cta-wrap {
  text-align: center;
  margin-top: var(--space-12);
}

/* ── Why Carmel Section ─────────────────────────────────────────── */
.why-carmel {
  background: var(--color-white);
}

.why-carmel-image-wrap {
  position: relative;
}

.why-carmel-image-wrap::after {
  content: '';
  position: absolute;
  bottom: -var(--space-8);
  right: -var(--space-8);
  width: 200px;
  height: 200px;
  background: var(--color-sand);
  border-radius: var(--radius-2xl);
  z-index: var(--z-below);
}

.why-carmel-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
  margin-top: var(--space-8);
}

/* ── Neighborhood Teasers ───────────────────────────────────────── */
.neighborhood-teasers {
  background: var(--color-navy);
}

.neighborhood-teasers .section-title {
  color: var(--color-white);
}

.neighborhood-teasers .section-subtitle {
  color: rgba(255,255,255,0.65);
}

/* ── Market Snapshot ────────────────────────────────────────────── */
.market-snapshot {
  background: var(--color-sand-light);
}

.market-snapshot-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
}

@media (min-width: 1024px) {
  .market-snapshot-inner {
    grid-template-columns: 1fr 1fr;
  }
}

.market-commentary p {
  margin-bottom: var(--space-4);
}

.market-commentary p:last-child {
  margin-bottom: 0;
}

.market-data-points {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.market-data-point {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  border-left: 3px solid var(--color-gold);
  box-shadow: var(--shadow-sm);
}

.market-data-point-value {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--color-navy);
  line-height: 1;
}

.market-data-point-label {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}

/* ── Testimonials Section ───────────────────────────────────────── */
.testimonials {
  background: var(--color-white);
}

/* ── Lead Capture CTA ───────────────────────────────────────────── */
.lead-capture {
  background: var(--color-navy);
  position: relative;
  overflow: hidden;
}

.lead-capture::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 400px;
  height: 400px;
  border-radius: var(--radius-full);
  background: radial-gradient(circle, rgba(201,169,110,0.10) 0%, transparent 70%);
  pointer-events: none;
}

.lead-capture::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 300px;
  height: 300px;
  border-radius: var(--radius-full);
  background: radial-gradient(circle, rgba(44,62,107,0.60) 0%, transparent 70%);
  pointer-events: none;
}

.lead-capture-inner {
  position: relative;
  z-index: var(--z-raised);
  max-width: 800px;
  margin-inline: auto;
}

.lead-capture .section-title {
  color: var(--color-white);
  margin-bottom: var(--space-3);
}

.lead-capture-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  color: rgba(255,255,255,0.70);
  margin-bottom: var(--space-10);
  line-height: var(--leading-relaxed);
}

.lead-form {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
}

.lead-form .form-label {
  color: rgba(255,255,255,0.85);
}

.lead-form .form-input,
.lead-form .form-select,
.lead-form .form-textarea {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.20);
  color: var(--color-white);
}

.lead-form .form-input::placeholder,
.lead-form .form-textarea::placeholder {
  color: rgba(255,255,255,0.40);
}

.lead-form .form-input:focus,
.lead-form .form-select:focus,
.lead-form .form-textarea:focus {
  border-color: var(--color-gold);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 0 0 3px rgba(201,169,110,0.20);
}

.lead-form .form-select option {
  background: var(--color-navy);
  color: var(--color-white);
}

.lead-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 640px) {
  .lead-form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .lead-form-grid .form-group:last-child,
  .lead-form-grid .form-group.full-width {
    grid-column: 1 / -1;
  }
}

.lead-form-submit {
  margin-top: var(--space-2);
  text-align: center;
}

.lead-form-submit .btn {
  width: 100%;
}

@media (min-width: 640px) {
  .lead-form-submit .btn {
    width: auto;
    min-width: 240px;
  }
}
