/* ═══════════════════════════════════════
   ROSHAN AASHIYANA — home.css
   Homepage: hero, features, stats,
   categories, properties, CTA
═══════════════════════════════════════ */

/* ───── SHARED HELPERS ───── */
.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 12px;
}
.section-header h2 { font-size: 26px; font-weight: 800; color: var(--text); }
.section-header p  { font-size: 13.5px; color: var(--text-muted); margin-top: 4px; }

.btn-view-all {
  background: var(--green);
  color: #fff;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  transition: background .2s;
  white-space: nowrap;
  align-self: flex-start;
}
.btn-view-all:hover { background: var(--green-dark); }

/* ═══════════════════════════
   HERO — matches reference exactly
═══════════════════════════ */
.hero {
  position: relative;
  min-height: 500px;
  background-color: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 100px 0 50px 0;
}

/* Right-side diagonal photo */
.hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-image: url('https://t3.ftcdn.net/jpg/03/22/06/68/360_F_322066808_CANrp7u5Cdiz7700TJReqKD299d2AZtD.jpg');
  background-size: cover;
  background-position: center;
  clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 1;
}

/* Left-fade gradient so text stays readable */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--navy) 40%, rgba(7,26,52,0.6) 65%, transparent 100%);
  z-index: 2;
}

/* Container above everything */
.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
}

/* Text block — left column */
.text-area {
  max-width: 450px;
  margin-bottom: 30px;
}

.text-area .welcome {
  font-size: 20px;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  margin-bottom: 8px;
}

.text-area .title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 12px;
}

.text-area .title span { color: var(--green); }

.text-area .subtitle {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
}

.green-text {
  color: var(--green);
  font-weight: 600;
}

/* Hero buttons */
.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.btn-hero-primary {
  background-color: var(--green);
  color: #fff;
  padding: 12px 26px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .3s;
}
.btn-hero-primary:hover { background-color: var(--green-dark); }

.btn-hero-secondary {
  background: rgba(255,255,255,0.12);
  color: #fff;
  padding: 12px 26px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  border: 1.5px solid rgba(255,255,255,0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .3s, border-color .3s;
}
.btn-hero-secondary:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.6);
}

/* ── Search Box ── */
.search-box {
  background-color: #fff;
  padding: 12px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  max-width: 750px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  flex: 1;
  min-width: 0;
}

.search-field i {
  color: var(--navy);
  font-size: 16px;
  flex-shrink: 0;
}

.field-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.field-content label {
  font-size: 10px;
  color: #888;
  font-weight: 500;
  margin-bottom: 2px;
}

.field-content input,
.field-content select {
  border: none;
  outline: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  width: 100%;
  background: transparent;
  font-family: inherit;
}

.field-content input::placeholder {
  color: #aab4c4;
  font-weight: 400;
}

/* Thin vertical separator */
.divider {
  width: 1px;
  height: 35px;
  background-color: #e5e7eb;
  flex-shrink: 0;
}

/* Green search button */
.btn-search {
  background-color: var(--green);
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-left: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-family: inherit;
  transition: background .3s;
  flex-shrink: 0;
}
.btn-search:hover { background-color: var(--green-dark); }

/* Trust badges */
.trust-badges {
  list-style: none;
  display: flex;
  gap: 20px;
  margin-top: 25px;
  flex-wrap: wrap;
  padding: 0;
}

.trust-badges li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
}

.trust-badges li i {
  color: var(--green);
  font-size: 16px;
}

/* ═══════ FEATURES ═══════ */
.features-section { background: #fff; padding: 64px 0; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-card {
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 32px 24px 28px;
  text-align: center;
  transition: box-shadow .2s, transform .2s;
}
.feature-card:hover { box-shadow: var(--card-shadow); transform: translateY(-4px); }
.feature-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--green-light);
  margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
}
.feature-icon i { font-size: 26px; color: var(--green); }
.feature-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.feature-card p  { font-size: 12.5px; color: var(--text-muted); line-height: 1.65; margin-bottom: 16px; }
.feature-line { width: 36px; height: 3px; background: var(--green); border-radius: 2px; margin: 0 auto; }

/* ═══════ STATS ═══════ */
.stats-section { background: var(--navy); padding: 40px 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  display: flex; align-items: center; gap: 18px;
  padding: 12px 28px;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.stat-item:last-child { border-right: none; }
.stat-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(60,182,72,0.16);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.stat-icon i { font-size: 22px; color: var(--green); }
.stat-num   { font-size: 30px; font-weight: 800; color: var(--green); line-height: 1; }
.stat-label { font-size: 12px; color: #8da0b8; margin-top: 2px; }

/* ═══════ CATEGORIES ═══════ */
.categories-section { background: var(--light-gray); padding: 64px 0; }
.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.category-card {
  background: #071a34; border: 2.5px solid var(--border);
  border-radius: 14px; padding: 32px 16px;
  text-align: center; display: flex; flex-direction: column;
  align-items: center; gap: 12px;
  transition: box-shadow .2s, transform .2s, border-color .2s;
  color: var(--white);
}
.category-card:hover {
  box-shadow: var(--card-shadow); transform: translateY(-4px);
  border-color: var(--green);
}
.cat-emoji { font-size: 36px; line-height: 1; }
.category-card h3 { font-size: 14px; font-weight: 600; }

/* ═══════ FEATURED PROPERTIES ═══════ */
.properties-section { background: #fff; padding: 64px 0; }
.property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.prop-card-link { display: block; color: inherit; }
.prop-card {
  background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform .2s, box-shadow .2s;
}
.prop-card:hover { transform: translateY(-5px); box-shadow: 0 16px 48px rgba(0,0,0,0.14); }

.prop-img-wrap { position: relative; height: 210px; overflow: hidden; }
.prop-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s;
}
.prop-card:hover .prop-img-wrap img { transform: scale(1.06); }

.prop-badge {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 13px; border-radius: 5px;
  font-size: 11px; font-weight: 700; color: #fff;
}
.badge-sale { background: var(--green); }
.badge-rent { background: #1976d2; }

.prop-info { padding: 18px 18px 16px; }
.prop-info h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.prop-location {
  font-size: 12.5px; color: var(--text-muted);
  display: flex; align-items: center; gap: 5px; margin-bottom: 12px;
}
.prop-location i { color: var(--green); font-size: 12px; }
.prop-specs { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.prop-spec {
  font-size: 12px; color: var(--text-muted);
  display: flex; align-items: center; gap: 4px;
}
.prop-spec i { font-size: 12px; color: #8096b0; }
.prop-footer { display: flex; align-items: center; justify-content: space-between; }
.prop-price { font-size: 16px; font-weight: 800; color: var(--green); }
.btn-details {
  background: var(--navy); color: #fff;
  padding: 8px 16px; border-radius: 6px;
  font-size: 12px; font-weight: 600;
  transition: background .2s;
}
.prop-card:hover .btn-details { background: #1a3050; }

/* Empty state */
.no-props {
  grid-column: 1 / -1; text-align: center; padding: 60px 20px;
  color: var(--text-muted);
}
.no-props i { font-size: 48px; color: var(--border); margin-bottom: 16px; display: block; }
.no-props h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.no-props p  { font-size: 13.5px; }

/* ═══════ CTA BANNER ═══════ */
.cta-section { padding: 0 0 60px; background: var(--light-gray); }
.cta-banner {
  background: linear-gradient(135deg, #071a34 60%, #0f2b52);
  border-radius: 16px;
  padding: 40px 52px;
  display: flex; align-items: center;
  gap: 28px; flex-wrap: wrap;
}
.cta-icon-wrap {
  width: 70px; height: 70px; border-radius: 50%;
  background: var(--green);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.cta-icon-wrap i { font-size: 30px; color: #fff; }
.cta-text { flex: 1; min-width: 220px; }
.cta-text h3 { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.cta-text p  { font-size: 13px; color: #8da0b8; line-height: 1.55; }
.btn-post {
  background: var(--green); color: #fff;
  border: none; padding: 13px 30px; border-radius: 8px;
  font-size: 14px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .2s; white-space: nowrap;
}
.btn-post:hover { background: var(--green-dark); }
.cta-art { font-size: 52px; opacity: .3; margin-left: 8px; }

/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 1100px) {
  .features-grid   { grid-template-columns: repeat(2, 1fr); }
  .property-grid   { grid-template-columns: repeat(2, 1fr); }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item  { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); padding: 20px; }
  .stat-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.08); }
}

@media (max-width: 768px) {
  /* Hero */
  .hero { padding: 60px 0 40px 0; min-height: auto; }
  .hero-bg { display: none; }
  .hero::before { background: var(--navy); }
  .text-area .title { font-size: 32px; }
  .text-area { max-width: 100%; }

  /* Search box stacks */
  .search-box {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 0;
  }
  .search-field {
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
  }
  .search-field:last-of-type { border-bottom: none; }
  .divider { display: none; }
  .btn-search {
    width: 100%; justify-content: center;
    margin-left: 0; margin-top: 12px;
    border-radius: 8px; padding: 13px;
  }

  .property-grid   { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-banner { padding: 32px 24px; flex-direction: column; text-align: center; }
  .cta-art { display: none; }
}

@media (max-width: 480px) {
  .hero { padding: 50px 0 30px 0; }
  .text-area .title { font-size: 28px; }
  .features-grid   { grid-template-columns: 1fr; }
  .stats-grid      { grid-template-columns: 1fr; }
  .stat-item       { border-right: none !important; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .section-header  { flex-direction: column; }
}