/* ==========================================================================
   SWEET HOME REAL ESTATE — HOMEPAGE COMPONENTS (home.css)
   ========================================================================== */

/* -------------------------------------------------------------------------
   1. Hero Section (Full-Screen 100vh)
   ------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 700px;
  width: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-dark);
}

.hero-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  transition: transform 1.2s var(--ease-out-expo);
  filter: brightness(0.60) contrast(1.15) saturate(1.1) blur(2px);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(11, 61, 46, 0.65) 0%,
    rgba(10, 10, 10, 0.75) 50%,
    rgba(10, 10, 10, 0.90) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  color: var(--color-text-inverse);
  max-width: 800px;
  margin-top: 60px;
  padding: 48px;
  background: rgba(10, 10, 10, 0.35);
  border-radius: var(--radius-2xl, 24px);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(40px, 5.5vw, 76px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.8), 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: clamp(17px, 1.4vw, 21px);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--space-2xl);
  line-height: 1.6;
  max-width: 580px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-scroll-down {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color var(--transition-fast);
}

.hero-scroll-down:hover {
  color: var(--color-accent);
}

.hero-scroll-down svg {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(6px); }
  60% { transform: translateY(3px); }
}

/* -------------------------------------------------------------------------
   2. Sticky Filter Bar Component
   ------------------------------------------------------------------------- */
.filter-bar-wrapper {
  position: relative;
  z-index: 100;
  margin-top: -50px;
  margin-bottom: var(--space-3xl);
}

.filter-bar {
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--shadow-xl);
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: var(--space-md);
  align-items: center;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-group label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.filter-select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: var(--color-text-inverse);
  font-size: 14px;
  outline: none;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.filter-select:focus, .filter-select:hover {
  border-color: var(--color-accent);
  background: rgba(255, 255, 255, 0.1);
}

.filter-select option {
  background-color: var(--color-dark-elevated);
  color: var(--color-text-inverse);
}

.filter-search-btn {
  height: 48px;
  padding: 0 var(--space-xl);
  margin-top: 16px;
}

/* -------------------------------------------------------------------------
   3. Market Explorer Showcase Cards
   ------------------------------------------------------------------------- */
.markets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.market-card {
  position: relative;
  height: 420px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-2xl);
  color: var(--color-text-inverse);
}

.market-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo);
}

.market-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.9) 0%, rgba(10, 10, 10, 0.2) 60%, transparent 100%);
  transition: opacity 0.4s ease;
}

.market-card:hover .market-card-bg {
  transform: scale(1.06);
}

.market-card-content {
  position: relative;
  z-index: 2;
}

.market-card-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 400;
  margin-bottom: var(--space-xs);
}

.market-card-count {
  font-size: 13px;
  color: var(--color-accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

/* -------------------------------------------------------------------------
   4. Redesigned Property Cards
   ------------------------------------------------------------------------- */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.property-card {
  background-color: var(--color-bg-elevated);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.property-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.property-thumb {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.property-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo);
}

.property-card:hover .property-thumb img {
  transform: scale(1.06);
}

.property-price-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background-color: var(--color-accent);
  color: var(--color-dark);
  font-weight: 700;
  font-size: 15px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}

.property-body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.property-location-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

.property-title {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
}

.property-specs {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 13px;
  color: var(--color-text-secondary);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-surface);
  margin-top: auto;
}

.property-specs span:not(:last-child)::after {
  content: "•";
  margin-left: var(--space-sm);
  color: var(--color-text-tertiary);
}

/* -------------------------------------------------------------------------
   5. Alternating 50/50 Neighborhood Guides Section
   ------------------------------------------------------------------------- */
.neighborhood-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-3xl);
  margin-bottom: var(--space-4xl);
}

.neighborhood-row:nth-child(even) {
  direction: rtl;
}

.neighborhood-row:nth-child(even) .neighborhood-content {
  direction: ltr;
}

.neighborhood-image {
  height: 440px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.neighborhood-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.neighborhood-content {
  padding: var(--space-xl);
}

.neighborhood-title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 400;
  margin-bottom: var(--space-md);
}

.neighborhood-desc {
  color: var(--color-text-secondary);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

/* -------------------------------------------------------------------------
   6. Dark Emerald Trust / Stats Section
   ------------------------------------------------------------------------- */
.trust-section {
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  text-align: center;
  margin-top: var(--space-3xl);
  padding-top: var(--space-3xl);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(42px, 4vw, 64px);
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

/* -------------------------------------------------------------------------
   7. Split Office / Contact Section
   ------------------------------------------------------------------------- */
.contact-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.contact-office-panel {
  position: relative;
  background-color: var(--color-dark);
  color: var(--color-text-inverse);
  padding: var(--space-4xl);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.contact-office-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.contact-office-info {
  position: relative;
  z-index: 2;
}

.contact-form-panel {
  background-color: var(--color-bg-elevated);
  padding: var(--space-4xl);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 14px 16px;
  background-color: var(--color-bg-subtle);
  border: 1px solid var(--color-surface);
  border-radius: var(--radius-md);
  outline: none;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--color-accent);
  background-color: var(--color-bg-elevated);
}

/* -------------------------------------------------------------------------
   8. Responsive Modifications
   ------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .markets-grid, .properties-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .filter-bar {
    grid-template-columns: 1fr 1fr;
  }
  .neighborhood-row {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .neighborhood-row:nth-child(even) {
    direction: ltr;
  }
  .contact-split-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .markets-grid, .properties-grid {
    grid-template-columns: 1fr;
  }
  .filter-bar {
    grid-template-columns: 1fr;
  }
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
}
