/*
Theme Name: RealtyHaven Elementor
Theme URI: https://example.local/realtyhaven
Author: Codex
Description: Original Elementor-friendly real estate starter theme with demo pages, properties, agents, and generated listing photography.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: realtyhaven
*/

:root {
  --rh-ink: #18202a;
  --rh-muted: #5d6975;
  --rh-line: #dfe5e8;
  --rh-paper: #fbfaf7;
  --rh-white: #ffffff;
  --rh-accent: #0f766e;
  --rh-accent-dark: #0b514c;
  --rh-gold: #c99345;
  --rh-font: "Inter", Arial, sans-serif;
  --rh-display: "Playfair Display", Georgia, serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--rh-font);
  color: var(--rh-ink);
  background: var(--rh-paper);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.rh-container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.rh-section { padding: 88px 0; }
.rh-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--rh-accent);
  border-radius: 4px;
  background: var(--rh-accent);
  color: white;
  font-weight: 700;
}
.rh-button.is-light { background: white; color: var(--rh-ink); border-color: white; }

.rh-site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--rh-line);
  backdrop-filter: blur(14px);
}
.rh-nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.rh-brand { font: 700 26px/1 var(--rh-display); letter-spacing: 0; }
.rh-menu { display: flex; align-items: center; gap: 24px; color: var(--rh-muted); font-size: 14px; font-weight: 700; }
.rh-menu li { list-style: none; margin: 0; padding: 0; }
.rh-menu a { display: inline-flex; align-items: center; min-height: 36px; }

.rh-hero {
  min-height: 720px;
  display: grid;
  align-items: center;
  position: relative;
  color: white;
  background: linear-gradient(90deg, rgba(12, 23, 31, 0.86), rgba(12, 23, 31, 0.2)), var(--rh-hero-image);
  background-size: cover;
  background-position: center;
}
.rh-hero h1 {
  max-width: 690px;
  margin: 0 0 18px;
  font: 700 clamp(44px, 7vw, 82px)/0.98 var(--rh-display);
}
.rh-hero p { max-width: 610px; margin: 0 0 30px; font-size: 19px; line-height: 1.7; color: rgba(255,255,255,0.86); }

.rh-search {
  margin-top: -58px;
  position: relative;
  z-index: 3;
}
.rh-search-panel {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr) auto;
  gap: 12px;
  padding: 18px;
  background: white;
  border: 1px solid var(--rh-line);
  box-shadow: 0 24px 60px rgba(24,32,42,0.14);
}
.rh-field { min-width: 0; }
.rh-field label { display: block; margin-bottom: 7px; color: var(--rh-muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.rh-field input, .rh-field select {
  width: 100%;
  height: 48px;
  border: 1px solid var(--rh-line);
  border-radius: 4px;
  padding: 0 13px;
  font: inherit;
  background: #fff;
}

.rh-eyebrow { color: var(--rh-accent); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.rh-section-title { margin: 8px 0 14px; font: 700 44px/1.08 var(--rh-display); }
.rh-section-lead { max-width: 640px; color: var(--rh-muted); line-height: 1.75; }
.rh-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 38px; }
.rh-card {
  background: white;
  border: 1px solid var(--rh-line);
  border-radius: 6px;
  overflow: hidden;
}
.rh-card-media { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.rh-card-body { padding: 22px; }
.rh-price { color: var(--rh-accent); font-size: 22px; font-weight: 800; }
.rh-card h3 { margin: 8px 0; font-size: 22px; }
.rh-meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--rh-muted); font-size: 14px; }

.rh-band { background: var(--rh-ink); color: white; }
.rh-band .rh-section-lead { color: rgba(255,255,255,0.72); }
.rh-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 34px; }
.rh-stat { border-top: 1px solid rgba(255,255,255,0.18); padding-top: 20px; }
.rh-stat strong { display: block; font-size: 42px; font-family: var(--rh-display); }
.rh-stat span { color: rgba(255,255,255,0.72); }

.rh-footer { padding: 48px 0; background: #111820; color: rgba(255,255,255,0.76); }
.rh-footer strong { color: white; font-family: var(--rh-display); font-size: 24px; }

@media (max-width: 900px) {
  .rh-menu { display: none; }
  .rh-hero { min-height: 620px; }
  .rh-search-panel { grid-template-columns: 1fr; }
  .rh-grid, .rh-stats { grid-template-columns: 1fr; }
  .rh-section { padding: 64px 0; }
}
