/* ── NestFind — Modern Property Portal ──────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #ffffff;
  --bg2:      #F0F9FF;
  --bg3:      #E0F2FE;
  --sky:      #0EA5E9;
  --sky2:     #0284C7;
  --sky3:     #38BDF8;
  --dark:     #1E293B;
  --mid:      #475569;
  --muted:    #94A3B8;
  --border:   #E2E8F0;
  --border2:  rgba(14,165,233,.2);
  --ff:       'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--dark); font-family: var(--ff); line-height: 1.6; overflow-x: hidden; }

/* ── NAV ─────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 48px;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  transition: padding .3s, box-shadow .3s;
}
.nav.scrolled { padding: 12px 48px; box-shadow: 0 2px 20px rgba(0,0,0,.07); }
.nav-logo {
  font-size: 1.45rem; font-weight: 800; letter-spacing: -.03em;
  text-decoration: none; color: var(--dark);
}
.nav-logo span { color: var(--sky); }
.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a {
  font-size: .86rem; font-weight: 600; text-decoration: none;
  color: var(--mid); transition: color .2s;
}
.nav-links a:hover { color: var(--sky); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.btn-login {
  padding: 9px 20px; border-radius: 8px; border: 1.5px solid var(--border);
  font-size: .82rem; font-weight: 600; text-decoration: none; color: var(--dark);
  transition: border-color .2s;
}
.btn-login:hover { border-color: var(--sky); color: var(--sky); }
.nav-cta {
  padding: 9px 20px; border-radius: 8px;
  background: var(--sky); color: #fff;
  font-size: .82rem; font-weight: 700; text-decoration: none;
  transition: background .2s, transform .15s;
}
.nav-cta:hover { background: var(--sky2); transform: translateY(-1px); }

/* ── HERO ────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 120px 24px 80px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #F0F9FF 0%, #ffffff 50%, #E0F2FE 100%);
}
.hero-bg-circle-1 {
  position: absolute; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(14,165,233,.08) 0%, transparent 70%);
  top: -100px; right: -100px; pointer-events: none;
}
.hero-bg-circle-2 {
  position: absolute; width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(14,165,233,.05) 0%, transparent 70%);
  bottom: -80px; left: -60px; pointer-events: none;
}
.hero-inner { max-width: 1140px; margin: 0 auto; width: 100%; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(14,165,233,.08); border: 1px solid var(--border2);
  padding: 6px 16px; border-radius: 24px;
  font-size: .75rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--sky); margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.5rem);
  font-weight: 800; line-height: 1.08; letter-spacing: -.03em;
  margin-bottom: 20px; color: var(--dark); max-width: 680px;
}
.hero h1 span { color: var(--sky); }
.hero-desc { color: var(--mid); font-size: 1.05rem; line-height: 1.7; max-width: 520px; margin-bottom: 40px; }

/* ── SEARCH BAR ──────────────────────────────────────────────────────── */
.search-bar {
  background: #fff; border: 1.5px solid var(--border); border-radius: 14px;
  padding: 8px 8px 8px 20px;
  display: flex; align-items: center; gap: 8px;
  max-width: 700px;
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
}
.search-input {
  flex: 1; border: none; outline: none; font-family: var(--ff);
  font-size: .93rem; color: var(--dark); background: transparent;
}
.search-input::placeholder { color: var(--muted); }
.search-divider { width: 1px; height: 28px; background: var(--border); }
.search-select {
  border: none; outline: none; font-family: var(--ff);
  font-size: .88rem; color: var(--mid); background: transparent;
  cursor: pointer; padding: 0 8px;
}
.search-btn {
  padding: 11px 22px; border-radius: 10px;
  background: var(--sky); color: #fff;
  font-weight: 700; font-size: .88rem; border: none; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  transition: background .2s;
}
.search-btn:hover { background: var(--sky2); }
.hero-stats { display: flex; gap: 36px; margin-top: 36px; }
.hero-stat-num { font-size: 1.6rem; font-weight: 800; color: var(--dark); line-height: 1; }
.hero-stat-label { font-size: .78rem; color: var(--muted); margin-top: 3px; }
.hero-stat-divider { width: 1px; background: var(--border); align-self: stretch; }

/* ── SECTION WRAPPER ─────────────────────────────────────────────────── */
section { padding: 96px 24px; }
.container { max-width: 1140px; margin: 0 auto; }
.section-eyebrow {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--sky); margin-bottom: 10px;
}
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.025em; margin-bottom: 14px; }
.section-subtitle { color: var(--mid); max-width: 520px; line-height: 1.7; margin-bottom: 52px; }

/* ── PROPERTIES ──────────────────────────────────────────────────────── */
.properties { background: var(--bg2); }
.props-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px,1fr)); gap: 28px; }
.prop-card {
  background: var(--bg); border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border);
  transition: transform .25s, box-shadow .25s;
}
.prop-card:hover { transform: translateY(-6px); box-shadow: 0 20px 48px rgba(14,165,233,.1); }
.prop-thumb { height: 220px; position: relative; overflow: hidden; }
.prop-thumb-1 {
  background: linear-gradient(135deg, #1E3A5F 0%, #2E5B8A 40%, #4A8BC0 70%, #7EC8E3 100%);
}
.prop-thumb-2 {
  background: linear-gradient(135deg, #2D4A1E 0%, #4A7A30 40%, #6BA84A 70%, #A8D88A 100%);
}
.prop-thumb-3 {
  background: linear-gradient(135deg, #3D1A4A 0%, #6A3080 40%, #9A58B0 70%, #C890D8 100%);
}
.prop-thumb-art { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 4rem; opacity: .6; }
.prop-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--sky); color: #fff;
  font-size: .7rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: 4px 12px; border-radius: 20px;
}
.prop-badge-sale { background: #10B981; }
.prop-fav {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.9); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: .85rem; cursor: pointer;
}
.prop-body { padding: 22px; }
.prop-price { font-size: 1.5rem; font-weight: 800; color: var(--sky); margin-bottom: 4px; }
.prop-name { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.prop-address { font-size: .83rem; color: var(--muted); margin-bottom: 16px; display: flex; align-items: center; gap: 5px; }
.prop-details { display: flex; gap: 20px; border-top: 1px solid var(--border); padding-top: 14px; }
.prop-detail { display: flex; align-items: center; gap: 6px; font-size: .83rem; color: var(--mid); }
.prop-detail i { color: var(--sky); font-size: .85rem; }

/* ── WHY CHOOSE US ───────────────────────────────────────────────────── */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 28px; }
.why-card {
  padding: 32px; border-radius: 16px; border: 1px solid var(--border);
  background: var(--bg); transition: border-color .25s, box-shadow .25s, transform .25s;
}
.why-card:hover { border-color: var(--border2); box-shadow: 0 8px 24px rgba(14,165,233,.08); transform: translateY(-3px); }
.why-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: rgba(14,165,233,.1); display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: var(--sky); margin-bottom: 18px;
}
.why-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.why-desc { color: var(--mid); font-size: .9rem; line-height: 1.65; }

/* ── STATS BAR ───────────────────────────────────────────────────────── */
.stats-bar {
  background: var(--dark);
  padding: 56px 24px;
}
.stats-inner { max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: repeat(4,1fr); gap: 32px; }
@media (max-width: 700px) { .stats-inner { grid-template-columns: repeat(2,1fr); } }
.stat-item { text-align: center; }
.stat-num { font-size: 2.4rem; font-weight: 800; color: #fff; line-height: 1; }
.stat-num span { color: var(--sky); }
.stat-label { font-size: .8rem; color: var(--muted); margin-top: 6px; letter-spacing: .04em; }

/* ── AGENT CTA ───────────────────────────────────────────────────────── */
.agent-cta { background: var(--bg2); }
.agent-inner {
  background: linear-gradient(135deg, var(--dark) 0%, #2D3F55 100%);
  border-radius: 20px; padding: 64px 48px;
  display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center;
}
@media (max-width: 700px) { .agent-inner { grid-template-columns: 1fr; gap: 28px; } }
.agent-eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sky3); margin-bottom: 12px; }
.agent-title { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; color: #fff; line-height: 1.15; margin-bottom: 12px; }
.agent-desc { color: rgba(255,255,255,.55); font-size: .93rem; line-height: 1.7; max-width: 480px; }
.agent-btns { display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
@media (max-width: 700px) { .agent-btns { align-items: flex-start; flex-direction: row; flex-wrap: wrap; } }
.btn-primary {
  padding: 13px 28px; border-radius: 10px;
  background: var(--sky); color: #fff;
  font-weight: 700; font-size: .9rem; white-space: nowrap;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: var(--sky2); transform: translateY(-2px); }
.btn-ghost {
  padding: 13px 28px; border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,.2); color: rgba(255,255,255,.8);
  font-weight: 600; font-size: .9rem; white-space: nowrap;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  transition: border-color .2s, background .2s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.05); }

/* ── FOOTER ──────────────────────────────────────────────────────────── */
.footer { background: var(--dark); padding: 60px 24px 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { color: var(--muted); font-size: .87rem; line-height: 1.7; margin-top: 12px; max-width: 260px; }
.footer-logo { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.footer-logo span { color: var(--sky); }
.footer-heading { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sky3); margin-bottom: 14px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: .86rem; transition: color .2s; }
.footer-links a:hover { color: var(--sky3); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: .8rem; color: var(--muted); }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 34px; height: 34px; border-radius: 8px; border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: .85rem; text-decoration: none;
  transition: border-color .2s, color .2s, background .2s;
}
.footer-socials a:hover { border-color: var(--sky); color: var(--sky); background: rgba(14,165,233,.1); }

/* ── RESPONSIVE ──────────────────────────────────────────────────────── */
@media (max-width: 900px) { .nav { padding: 16px 24px; } .nav-links { display: none; } .nav.scrolled { padding: 12px 24px; } }
