/* ============================================================
   ROOMsy — home.css  (Landing Page)
   ============================================================ */

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  overflow: hidden;
  padding-top: var(--nav-height);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  pointer-events: none;
}
.hero__blob--1 { width: 500px; height: 500px; background: var(--primary); top: -100px; right: -100px; }
.hero__blob--2 { width: 300px; height: 300px; background: var(--accent);  bottom: -50px; left: 10%; }
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}
.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wider);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}
.hero__tag span { color: var(--accent); }
.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: var(--font-weight-extrabold);
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), #ffcc70);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__sub {
  font-size: var(--font-size-lg);
  color: rgba(255,255,255,0.75);
  line-height: var(--line-height-loose);
  margin-bottom: 36px;
  max-width: 520px;
}
.hero__stats {
  display: flex;
  gap: 32px;
  margin-top: 36px;
}
.hero__stat-value {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-extrabold);
  color: var(--white);
  line-height: 1;
}
.hero__stat-label {
  font-size: var(--font-size-xs);
  color: rgba(255,255,255,0.55);
  margin-top: 4px;
}

/* ── Search Box ───────────────────────────────────────────── */
.search-box {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 32px;
  max-width: 700px;
}
.search-box__field {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 10px 16px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition);
  min-width: 0;
}
.search-box__field:hover { background: var(--gray-50); }
.search-box__label {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--gray-700);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  margin-bottom: 3px;
}
.search-box__input {
  border: none;
  background: transparent;
  font-size: var(--font-size-sm);
  color: var(--gray-800);
  font-family: var(--font-main);
  width: 100%;
  padding: 0;
}
.search-box__input::placeholder { color: var(--gray-400); }
.search-box__divider {
  width: 1px;
  height: 40px;
  background: var(--gray-200);
  flex-shrink: 0;
}
.search-box__btn {
  background: var(--gradient-primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-lg);
  padding: 14px 24px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.search-box__btn:hover { opacity: 0.92; transform: translateY(-1px); box-shadow: var(--shadow-primary); }

/* ── Categories ───────────────────────────────────────────── */
.categories { background: var(--surface); }
.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.category-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  box-shadow: var(--shadow-sm);
}
.category-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.category-card__icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
  display: block;
}
.category-card__name {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--gray-800);
  margin-bottom: 4px;
}
.category-card__count {
  font-size: var(--font-size-xs);
  color: var(--gray-500);
}

/* ── Featured Properties ──────────────────────────────────── */
.featured { background: var(--white); }
.properties-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ── How It Works ─────────────────────────────────────────── */
.how-it-works { background: var(--surface); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}
.steps-grid::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-light), var(--primary), var(--primary-light));
  z-index: 0;
}
.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}
.step-card__num {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  color: var(--white);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-extrabold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-primary);
}
.step-card__title {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--gray-900);
  margin-bottom: 8px;
}
.step-card__desc {
  font-size: var(--font-size-sm);
  color: var(--gray-500);
  line-height: var(--line-height-loose);
}

/* ── Testimonials ─────────────────────────────────────────── */
.testimonials { background: var(--white); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.testimonial-card__stars {
  display: flex;
  gap: 3px;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 1rem;
}
.testimonial-card__text {
  font-size: var(--font-size-sm);
  color: var(--gray-600);
  line-height: var(--line-height-loose);
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-sm);
  flex-shrink: 0;
}
.testimonial-card__name {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--gray-900);
}
.testimonial-card__location {
  font-size: var(--font-size-xs);
  color: var(--gray-500);
}

/* ── CTA Banner ───────────────────────────────────────────── */
.cta-banner {
  background: var(--gradient-dark);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.08;
  top: -100px; right: -100px;
}
.cta-banner__title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-extrabold);
  color: var(--white);
  margin-bottom: 14px;
}
.cta-banner__sub {
  font-size: var(--font-size-base);
  color: rgba(255,255,255,0.65);
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.cta-banner__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-white {
  background: var(--white);
  color: var(--primary);
  font-weight: var(--font-weight-bold);
}
.btn-white:hover { background: var(--gray-100); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-outline-white {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.5);
  color: var(--white);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

/* ── Navbar transparent on hero ──────────────────────────── */
.navbar--home {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: transparent;
  box-shadow: none;
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.navbar--home .navbar__link { color: rgba(255,255,255,0.85); }
.navbar--home .navbar__link:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.navbar--home .navbar__link.active { color: var(--white); }
.navbar--home .navbar__hamburger span { background: var(--white); }
.navbar--home .btn-ghost { color: rgba(255,255,255,0.85); }
.navbar--home .btn-ghost:hover { background: rgba(255,255,255,0.12); }
.navbar--scrolled {
  background: var(--white) !important;
  box-shadow: var(--shadow-sm) !important;
}
.navbar--scrolled .navbar__link { color: var(--gray-700); }
.navbar--scrolled .navbar__link:hover { background: var(--gray-100); color: var(--primary); }
.navbar--scrolled .navbar__hamburger span { background: var(--gray-800); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1100px) {
  .properties-grid { grid-template-columns: repeat(3, 1fr); }
  .category-grid   { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .steps-grid::before { display: none; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .search-box { flex-wrap: wrap; }
  .search-box__divider { display: none; }
  .search-box__field { min-width: calc(50% - 8px); }
  .search-box__btn { width: 100%; justify-content: center; }
}
@media (max-width: 768px) {
  .hero { min-height: 100vh; padding: 100px 0 60px; }
  .hero__stats { gap: 20px; }
  .properties-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid   { grid-template-columns: repeat(3, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .properties-grid { grid-template-columns: 1fr; }
  .category-grid   { grid-template-columns: repeat(2, 1fr); }
  .steps-grid      { grid-template-columns: 1fr; }
  .hero__stats     { flex-wrap: wrap; gap: 16px; }
  .search-box__field { min-width: 100%; }
}
