@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --red: #E8102A;
  --red-dark: #C00D22;
  --red-light: #ff2d47;
  --dark: #0f0f0f;
  --dark-2: #1a1a1a;
  --mid: #2d2d2d;
  --gray: #6b7280;
  --gray-light: #9ca3af;
  --border: #e5e7eb;
  --white: #ffffff;
  --off-white: #f9fafb;
  --shadow: 0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.14);
  --radius: 16px;
  --radius-sm: 10px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 72px;
  background: rgba(15,15,15,0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s;
}
.navbar.scrolled { background: rgba(10,10,10,0.97); }

.logo {
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -1px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}
.logo span { color: var(--red); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: rgba(255,255,255,0.82);
  font-size: 0.93rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.btn-outline-white {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.4);
  color: var(--white);
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-outline-white:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

.btn-red {
  background: var(--red);
  color: var(--white);
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-red:hover { background: var(--red-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(232,16,42,0.35); }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 60px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('hero.png') center center / cover no-repeat;
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0.62) 0%, rgba(10,10,10,0.72) 60%, rgba(10,10,10,0.9) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 860px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232,16,42,0.18);
  border: 1px solid rgba(232,16,42,0.35);
  color: #ff6b7a;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red-light); animation: pulse 2s infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.12;
  letter-spacing: -1.5px;
  margin-bottom: 18px;
}
.hero-title em { color: var(--red-light); font-style: normal; }

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.22rem);
  color: rgba(255,255,255,0.82);
  font-weight: 400;
  margin-bottom: 44px;
  letter-spacing: 0.01em;
}
.hero-sub strong { color: var(--white); font-weight: 700; }

/* ── RENTAL TYPE SELECTOR ── */
.search-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.32), 0 4px 20px rgba(0,0,0,0.15);
  padding: 10px;
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
  animation: riseUp 0.7s cubic-bezier(0.22,1,0.36,1) 0.3s both;
}
@keyframes riseUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

.type-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 10px;
  background: #f1f1f1;
  border-radius: 14px;
  padding: 5px;
}
.tab-btn {
  border: none;
  border-radius: 10px;
  padding: 16px 12px;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.4,0,0.2,1);
  background: transparent;
  text-align: center;
}
.tab-btn.active {
  background: var(--red);
  box-shadow: 0 4px 18px rgba(232,16,42,0.38);
  transform: scale(1.01);
}
.tab-btn .tab-title {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gray);
  letter-spacing: -0.3px;
  transition: color 0.28s;
}
.tab-btn.active .tab-title { color: var(--white); }
.tab-btn .tab-sub {
  display: block;
  font-size: 0.78rem;
  color: var(--gray-light);
  font-weight: 500;
  margin-top: 3px;
  transition: color 0.28s;
}
.tab-btn.active .tab-sub { color: rgba(255,255,255,0.8); }

/* SEARCH ROWS */
.search-panel { display: none; padding: 6px 4px 4px; }
.search-panel.active { display: block; animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; } }

.search-row {
  display: grid;
  gap: 8px;
  align-items: stretch;
}
.search-row.long { grid-template-columns: 1.4fr 1fr 1fr auto; }
.search-row.short { grid-template-columns: 1.4fr 1fr 1fr 1fr auto; }

.search-field {
  display: flex;
  flex-direction: column;
  background: var(--off-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  cursor: pointer;
  transition: border-color 0.2s;
  position: relative;
}
.search-field:hover { border-color: var(--red); }
.search-field label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 3px;
}
.search-field select, .search-field input {
  border: none;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--dark);
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.search-field .field-icon {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--gray-light);
  font-size: 0.9rem;
  pointer-events: none;
}

.btn-search {
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.02em;
}
.btn-search:hover { background: var(--red-dark); transform: scale(1.03); box-shadow: 0 6px 24px rgba(232,16,42,0.4); }

/* ── STATS BAR ── */
.stats-bar {
  background: var(--dark);
  padding: 44px 40px;
}
.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  text-align: center;
  padding: 0 24px;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -1.5px;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-num span { color: var(--red-light); }
.stat-label {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
  line-height: 1.4;
}
.stat-icon { font-size: 1.6rem; margin-bottom: 10px; display: block; }

/* ── HOW IT WORKS ── */
.section { padding: 96px 40px; }
.section-center { text-align: center; max-width: 1200px; margin: 0 auto; }

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--dark);
  margin-bottom: 14px;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 540px;
  margin: 0 auto 56px;
  line-height: 1.7;
}

.how-grid {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  gap: 0;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}
.how-col { text-align: left; }
.how-col-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.how-col-title .pill {
  background: var(--red);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.06em;
}

.steps { display: flex; flex-direction: column; gap: 18px; }
.step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--off-white);
  border: 1.5px solid transparent;
  transition: all 0.2s;
}
.step:hover { border-color: var(--red); background: #fff5f6; transform: translateX(4px); }
.step-num {
  min-width: 32px; height: 32px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem; font-weight: 800;
  flex-shrink: 0;
}
.step-text { font-size: 0.95rem; color: var(--dark); font-weight: 500; line-height: 1.5; }

.how-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 50px;
  gap: 12px;
}
.how-logo-circle {
  width: 64px; height: 64px;
  background: var(--red);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 32px rgba(232,16,42,0.35);
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -1px;
}
.connector-line {
  width: 2px;
  height: 60px;
  background: linear-gradient(to bottom, var(--red), transparent);
  margin: 0 auto;
}

/* ── FEATURED LISTINGS ── */
.listings-section { background: var(--off-white); padding: 96px 40px; }
.listings-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.property-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  cursor: pointer;
}
.property-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.card-img {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.property-card:hover .card-img img { transform: scale(1.06); }
.card-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--red);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 100px;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 5px;
}
.card-badge.v360::before {
  content: '360°';
  background: rgba(255,255,255,0.25);
  border-radius: 4px;
  padding: 1px 4px;
  font-size: 0.66rem;
}
.card-fav {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}
.card-fav:hover { background: white; transform: scale(1.1); }

.card-body { padding: 18px 20px 20px; }
.card-type {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
  line-height: 1.35;
}
.card-location {
  font-size: 0.84rem;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 14px;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.card-price { font-size: 1.2rem; font-weight: 900; color: var(--dark); }
.card-price small { font-size: 0.78rem; font-weight: 500; color: var(--gray); }
.card-stars { display: flex; align-items: center; gap: 4px; font-size: 0.84rem; color: var(--gray); }
.card-stars .star { color: #f59e0b; }

.card-cta {
  display: block;
  width: 100%;
  margin-top: 14px;
  background: transparent;
  border: 1.5px solid var(--red);
  color: var(--red);
  padding: 10px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.card-cta:hover { background: var(--red); color: var(--white); }

/* ── WHY EKRI ── */
.why-section { padding: 96px 40px; background: var(--white); }
.benefits-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.benefit-card {
  background: var(--off-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.benefit-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.benefit-card:hover { border-color: var(--red); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.benefit-card:hover::before { transform: scaleX(1); }

.benefit-icon {
  width: 52px; height: 52px;
  background: rgba(232,16,42,0.08);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
  transition: background 0.2s;
}
.benefit-card:hover .benefit-icon { background: rgba(232,16,42,0.15); }
.benefit-title { font-size: 1.05rem; font-weight: 800; color: var(--dark); margin-bottom: 8px; }
.benefit-desc { font-size: 0.9rem; color: var(--gray); line-height: 1.65; }

/* ── FOOTER ── */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 72px 40px 40px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 56px;
  margin-bottom: 56px;
}
.footer-brand .logo { margin-bottom: 14px; display: inline-block; }
.footer-brand p { font-size: 0.92rem; line-height: 1.7; color: rgba(255,255,255,0.55); max-width: 280px; }
.footer-tagline {
  margin-top: 20px;
  font-size: 0.88rem;
  font-style: italic;
  color: var(--red-light);
  font-weight: 500;
}

.footer-col h4 { font-size: 0.85rem; font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { text-decoration: none; color: rgba(255,255,255,0.55); font-size: 0.9rem; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--white); }

.social-links { display: flex; gap: 12px; margin-top: 4px; }
.social-btn {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.07);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid rgba(255,255,255,0.1);
}
.social-btn:hover { background: var(--red); border-color: var(--red); transform: translateY(-2px); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

/* ── SCROLL TO TOP ── */
.scroll-top {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 46px; height: 46px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(232,16,42,0.4);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s;
  z-index: 999;
}
.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover { background: var(--red-dark); transform: translateY(-2px) scale(1.05); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .listings-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .how-grid { grid-template-columns: 1fr; }
  .how-center { flex-direction: row; padding-top: 0; }
  .connector-line { width: 60px; height: 2px; background: linear-gradient(to right, var(--red), transparent); }
}
@media (max-width: 768px) {
  .navbar { padding: 0 20px; }
  .nav-links { display: none; }
  .section { padding: 64px 20px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .stat-item { border-right: none; }
  .listings-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .search-row.long, .search-row.short { grid-template-columns: 1fr 1fr; }
  .btn-search { grid-column: 1 / -1; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
