/* ═══════════════════════════════════════════════════════════════
   URBAN HAVEN — Real Estate Template
   Palette: White bg · Light-gray surface · Sage green accent
   Font: Plus Jakarta Sans
═══════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #ffffff;
  --bg-2:       #f8faf8;
  --surface:    #f1f5f1;
  --surface-2:  #e8f0e8;
  --border:     #d4e4d4;
  --text:       #1a2e1a;
  --text-muted: #5a7a5a;
  --green:      #16a34a;
  --green-light:#4ade80;
  --green-bg:   rgba(22,163,74,.08);
  --green-glow: rgba(22,163,74,.2);
  --font:       'Plus Jakarta Sans', sans-serif;
  --radius:     10px;
  --radius-lg:  18px;
  --ease:       cubic-bezier(.22,1,.36,1);
  --tr:         .3s var(--ease);
  --shadow:     0 4px 24px rgba(0,0,0,.07);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.12);
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.7; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
select { cursor: pointer; appearance: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.uh-green { color: var(--green); }

/* ── CONTAINER ───────────────────────────────────────────────── */
.uh-container { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 1.5rem; }

/* ── BUTTONS ─────────────────────────────────────────────────── */
.uh-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .7rem 1.5rem;
  border-radius: var(--radius); font-weight: 700; font-size: .9rem;
  transition: var(--tr); white-space: nowrap;
}
.uh-btn--primary { background: var(--green); color: #fff; }
.uh-btn--primary:hover { background: #15803d; transform: translateY(-2px); box-shadow: 0 8px 24px var(--green-glow); }
.uh-btn--outline { background: transparent; color: var(--green); border: 1.5px solid var(--green); }
.uh-btn--outline:hover { background: var(--green-bg); }
.uh-btn--sm { padding: .45rem 1rem; font-size: .82rem; }
.uh-btn--wide { width: 100%; }

/* ── TYPOGRAPHY ──────────────────────────────────────────────── */
.uh-label { font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--green); margin-bottom: .5rem; }
.uh-section-title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.2; margin-bottom: 2rem; }
.uh-link { font-size: .9rem; color: var(--text-muted); font-weight: 500; transition: color .2s; }
.uh-link:hover { color: var(--green); }

/* ── BADGES ──────────────────────────────────────────────────── */
.uh-badge { display: inline-block; padding: .28rem .7rem; border-radius: 99px; font-size: .72rem; font-weight: 700; }
.uh-badge--green  { background: var(--green); color: #fff; }
.uh-badge--blue   { background: #3b82f6; color: #fff; }
.uh-badge--orange { background: #f97316; color: #fff; }

/* ── REVEAL ──────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal--delay-1 { transition-delay: .1s; }
.reveal--delay-2 { transition-delay: .2s; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ── HEADER ──────────────────────────────────────────────────── */
.uh-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.uh-header__inner {
  display: flex; align-items: center; gap: 2rem; padding: .9rem 1.5rem;
}
.uh-logo {
  font-size: 1.15rem; font-weight: 800; color: var(--text); flex-shrink: 0;
  display: flex; align-items: center; gap: .4rem;
}
.uh-logo span { color: var(--green); }
.uh-nav { margin-left: auto; }
.uh-nav ul { display: flex; gap: 2rem; }
.uh-nav a { font-size: .9rem; font-weight: 500; color: var(--text-muted); transition: color .2s; }
.uh-nav a:hover { color: var(--green); }
.uh-header__actions { display: flex; align-items: center; gap: 1.25rem; flex-shrink: 0; }

.uh-burger { display: none; flex-direction: column; gap: 5px; padding: 4px; margin-left: auto; }
.uh-burger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--tr); }
.uh-burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.uh-burger.active span:nth-child(2) { opacity: 0; }
.uh-burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.uh-drawer {
  position: fixed; top: 65px; left: 0; right: 0; bottom: 0;
  background: var(--bg); padding: 2rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 2rem;
  transform: translateX(-100%); transition: transform .35s var(--ease); z-index: 850;
}
.uh-drawer.open { transform: none; }
.uh-drawer ul { display: flex; flex-direction: column; gap: 1.25rem; }
.uh-drawer__link { font-size: 1.25rem; font-weight: 700; color: var(--text); }
.uh-drawer__link:hover { color: var(--green); }
.uh-backdrop { display: none; position: fixed; inset: 0; z-index: 800; background: rgba(0,0,0,.35); }
.uh-backdrop.show { display: block; }

/* ── HERO ────────────────────────────────────────────────────── */
.uh-hero {
  position: relative; padding: 5rem 0 0;
  background: var(--bg-2); overflow: hidden;
}
.uh-hero__bg { position: absolute; inset: 0; pointer-events: none; }
.uh-hero__shape {
  position: absolute; border-radius: 50%;
}
.uh-hero__shape--1 {
  width: 600px; height: 600px; top: -200px; right: -150px;
  background: radial-gradient(circle, rgba(74,222,128,.12) 0%, transparent 70%);
}
.uh-hero__shape--2 {
  width: 300px; height: 300px; bottom: 80px; left: -100px;
  background: radial-gradient(circle, rgba(22,163,74,.06) 0%, transparent 70%);
}
.uh-hero__inner { position: relative; z-index: 1; padding-bottom: 3rem; }
.uh-hero__content { max-width: 680px; }
.uh-hero__eyebrow { font-size: .85rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--green); margin-bottom: 1rem; }
.uh-hero__title { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.15; margin-bottom: 1.25rem; }
.uh-hero__sub { color: var(--text-muted); font-size: 1.05rem; max-width: 480px; margin-bottom: 2.5rem; }

/* Search */
.uh-search {
  display: flex; gap: .75rem; flex-wrap: wrap;
  background: #fff; border-radius: var(--radius-lg);
  padding: 1rem; box-shadow: var(--shadow-lg);
  border: 1px solid var(--border); margin-bottom: 1rem;
}
.uh-search__group { display: flex; flex: 1; min-width: 160px; }
.uh-search__group input,
.uh-search__group select {
  width: 100%; border: none; background: var(--surface);
  border-radius: var(--radius); padding: .65rem 1rem;
  font-family: var(--font); font-size: .88rem; color: var(--text);
}
.uh-search__group input:focus,
.uh-search__group select:focus { outline: 2px solid var(--green); }
.uh-search__btn { flex-shrink: 0; }

.uh-hero__tags { font-size: .85rem; color: var(--text-muted); }
.uh-hero__tags a { color: var(--green); font-weight: 600; margin: 0 .25rem; }
.uh-hero__tags a:hover { text-decoration: underline; }

/* Stats strip */
.uh-hero__stats { padding: 2.5rem 0; border-top: 1px solid var(--border); background: #fff; }
.uh-stat-strip { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 2rem; }
.uh-kpi { display: flex; flex-direction: column; align-items: center; }
.uh-kpi__val { font-size: 2.2rem; font-weight: 800; color: var(--green); line-height: 1; font-feature-settings: "tnum"; }
.uh-kpi__val + span { font-size: 1.4rem; font-weight: 800; color: var(--green); }
.uh-kpi__label { font-size: .8rem; color: var(--text-muted); font-weight: 500; margin-top: .25rem; }

/* ── LISTINGS ────────────────────────────────────────────────── */
.uh-listings { padding: 6rem 0; }
.uh-listings__head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem; }
.uh-listings__head .uh-section-title { margin-bottom: 0; }

.uh-filter-tabs { display: flex; gap: .5rem; }
.uh-filter {
  padding: .45rem 1rem; border-radius: 99px;
  font-size: .82rem; font-weight: 600;
  border: 1px solid var(--border); color: var(--text-muted);
  transition: var(--tr);
}
.uh-filter.active, .uh-filter:hover { background: var(--green); border-color: var(--green); color: #fff; }

.uh-listings__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.uh-property {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--border);
  transition: var(--tr);
}
.uh-property:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.uh-property__img {
  height: 200px; position: relative; overflow: hidden;
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: .75rem;
}
.uh-property__img--1 { background: linear-gradient(160deg, #d1fae5, #6ee7b7); }
.uh-property__img--2 { background: linear-gradient(160deg, #dbeafe, #93c5fd); }
.uh-property__img--3 { background: linear-gradient(160deg, #ede9fe, #c4b5fd); }
.uh-property__img--4 { background: linear-gradient(160deg, #fef3c7, #fcd34d); }
.uh-property__img--5 { background: linear-gradient(160deg, #fce7f3, #f9a8d4); }
.uh-property__img--6 { background: linear-gradient(160deg, #e0f2fe, #7dd3fc); }
.uh-fav { width: 32px; height: 32px; background: #fff; border-radius: 50%; border: none; font-size: .9rem; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); cursor: pointer; transition: var(--tr); }
.uh-fav:hover { color: #ef4444; }

.uh-property__body { padding: 1.25rem; }
.uh-property__price { font-size: 1.25rem; font-weight: 800; color: var(--green); margin-bottom: .3rem; }
.uh-property__price small { font-size: .85rem; font-weight: 500; color: var(--text-muted); }
.uh-property h3 { font-size: 1rem; font-weight: 700; margin-bottom: .35rem; }
.uh-property__address { font-size: .82rem; color: var(--text-muted); margin-bottom: .75rem; }
.uh-property__specs { display: flex; gap: .75rem; flex-wrap: wrap; }
.uh-property__specs li { font-size: .8rem; color: var(--text-muted); background: var(--surface); padding: .2rem .5rem; border-radius: 4px; }

.uh-listings__more { display: flex; justify-content: center; margin-top: 2.5rem; }

/* ── WHY US ──────────────────────────────────────────────────── */
.uh-why { padding: 6rem 0; background: var(--bg-2); }
.uh-why__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.uh-why__content .uh-section-title { margin-bottom: 1.25rem; }
.uh-why__body { color: var(--text-muted); margin-bottom: 2rem; }
.uh-perks { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2rem; }
.uh-perk { display: flex; gap: 1rem; align-items: flex-start; }
.uh-perk__icon { font-size: 1.5rem; flex-shrink: 0; margin-top: .15rem; }
.uh-perk strong { display: block; font-weight: 700; margin-bottom: .2rem; }
.uh-perk p { font-size: .87rem; color: var(--text-muted); }

/* House card */
.uh-house-card {
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
  border: 1px solid var(--border);
}
.uh-house-card__img {
  height: 220px;
  background: linear-gradient(135deg, #bbf7d0 0%, #4ade80 100%);
}
.uh-house-card__body { padding: 1.25rem; }
.uh-house-card__tag { display: inline-block; background: var(--green); color: #fff; font-size: .72rem; font-weight: 700; padding: .2rem .65rem; border-radius: 99px; margin-bottom: .5rem; }
.uh-house-card__price { font-size: 1.6rem; font-weight: 800; color: var(--text); }
.uh-house-card__body p { font-size: .9rem; color: var(--text-muted); }
.uh-house-card__sub { font-size: .8rem; color: var(--green); font-weight: 600; }

.uh-badge-float {
  position: absolute; bottom: -20px; right: 20px;
  background: var(--green); color: #fff;
  border-radius: var(--radius-lg); padding: 1rem 1.25rem;
  display: flex; flex-direction: column; align-items: center;
  box-shadow: 0 8px 24px var(--green-glow);
  font-size: .78rem; font-weight: 600; line-height: 1.3; text-align: center;
}
.uh-badge-float__num { font-size: 1.8rem; font-weight: 800; line-height: 1; }
.uh-why__visual { position: relative; padding-bottom: 2.5rem; }

/* ── AGENTS ──────────────────────────────────────────────────── */
.uh-agents { padding: 6rem 0; }
.uh-agents__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.uh-agent { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); transition: var(--tr); }
.uh-agent:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.uh-agent__photo { height: 180px; }
.uh-agent__photo--1 { background: linear-gradient(160deg, #f0fdf4, #bbf7d0); }
.uh-agent__photo--2 { background: linear-gradient(160deg, #eff6ff, #bfdbfe); }
.uh-agent__photo--3 { background: linear-gradient(160deg, #fdf4ff, #e9d5ff); }
.uh-agent__photo--4 { background: linear-gradient(160deg, #fff7ed, #fed7aa); }
.uh-agent__body { padding: 1.25rem; display: flex; flex-direction: column; gap: .6rem; }
.uh-agent h3 { font-size: 1rem; font-weight: 700; }
.uh-agent__title { font-size: .8rem; color: var(--green); font-weight: 600; }
.uh-agent__stats { display: flex; gap: .75rem; flex-wrap: wrap; }
.uh-agent__stats span { font-size: .78rem; color: var(--text-muted); background: var(--surface); padding: .2rem .5rem; border-radius: 4px; }

/* ── REVIEWS ─────────────────────────────────────────────────── */
.uh-reviews { padding: 6rem 0; background: var(--bg-2); }
.uh-reviews__carousel {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin-bottom: 1.5rem;
}
.uh-review {
  background: #fff; border-radius: var(--radius-lg);
  padding: 2rem; box-shadow: var(--shadow); border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: .75rem;
}
.uh-review__stars { color: #f59e0b; font-size: 1rem; letter-spacing: .1em; }
.uh-review blockquote { font-size: .92rem; color: var(--text-muted); font-style: italic; flex: 1; }
.uh-review__author { font-size: .82rem; font-weight: 600; color: var(--text); }
.uh-reviews__dots { display: flex; justify-content: center; gap: .5rem; }
.uh-reviews__dots { display: none; } /* visible only on mobile */

/* ── CONTACT ─────────────────────────────────────────────────── */
.uh-contact { padding: 6rem 0; }
.uh-contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.uh-contact__info .uh-section-title { margin-bottom: 1rem; }
.uh-contact__info p { color: var(--text-muted); margin-bottom: 1.5rem; }
.uh-contact__details { display: flex; flex-direction: column; gap: .75rem; }
.uh-contact__details li { font-size: .92rem; color: var(--text-muted); }
.uh-contact__details a { color: var(--green); }

.uh-form { display: flex; flex-direction: column; gap: 1.25rem; }
.uh-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.uh-form__group { display: flex; flex-direction: column; gap: .4rem; }
.uh-form__group label { font-size: .85rem; font-weight: 600; color: var(--text); }
.uh-form__group input,
.uh-form__group select,
.uh-form__group textarea {
  border: 1.5px solid var(--border); background: #fff;
  color: var(--text); font-family: var(--font); font-size: .9rem;
  border-radius: var(--radius); padding: .75rem 1rem;
  transition: border-color .2s; resize: vertical;
}
.uh-form__group input:focus,
.uh-form__group select:focus,
.uh-form__group textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-bg); }
.uh-form__ok { font-size: .9rem; color: var(--green); min-height: 1.2em; }

/* ── FOOTER ──────────────────────────────────────────────────── */
.uh-footer { padding: 2rem 0; border-top: 1px solid var(--border); background: var(--bg-2); }
.uh-footer__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.uh-footer__logo { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.uh-footer__logo strong { color: var(--green); }
.uh-footer__copy { font-size: .82rem; color: var(--text-muted); }
.uh-footer__nav { display: flex; gap: 1.5rem; }
.uh-footer__nav a { font-size: .82rem; color: var(--text-muted); }
.uh-footer__nav a:hover { color: var(--green); }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .uh-nav, .uh-header__actions { display: none; }
  .uh-burger { display: flex; }
  .uh-why__inner { grid-template-columns: 1fr; }
  .uh-agents__grid { grid-template-columns: repeat(2, 1fr); }
  .uh-reviews__carousel { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .uh-listings__grid { grid-template-columns: 1fr 1fr; }
  .uh-contact__inner { grid-template-columns: 1fr; }
  .uh-form__row { grid-template-columns: 1fr; }
  .uh-search { flex-direction: column; }
  .uh-listings__head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 500px) {
  .uh-listings__grid { grid-template-columns: 1fr; }
  .uh-agents__grid { grid-template-columns: 1fr; }
  .uh-footer__inner { flex-direction: column; text-align: center; }
  .uh-stat-strip { gap: 1rem; }
}
