/* ============================================================
   index.php — proptech homepage
   (tokens, buttons, chips from repm-glossy-base.css;
   card grid from property-cards.css)
   ============================================================ */

.repm-home {
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
}

/* ---- Hero ---- */
.repm-home-hero {
    position: relative;
    background: linear-gradient(135deg, #7c3aed 0%, #ec4899 55%, #f59e0b 100%);
    padding: 56px 0 80px;
    overflow: hidden;
    color: #fff;
}
@media (min-width: 992px) {
    .repm-home-hero { padding: 90px 0 120px; }
}

.repm-home-blob {
    position: absolute;
    border-radius: 50%;
    background: #fff;
    opacity: 0.14;
}
.repm-home-blob-1 { width: 320px; height: 320px; top: -120px; right: -80px; opacity: 0.16; }
.repm-home-blob-2 { width: 200px; height: 200px; bottom: -100px; left: -60px; opacity: 0.12; }
.repm-home-blob-3 { width: 140px; height: 140px; top: 30%; right: 12%; opacity: 0.1; }

.repm-home-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 2.1rem;
    line-height: 1.15;
    margin: 16px 0 14px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.1);
}
.repm-home-title-accent {
    background: linear-gradient(90deg, #fff, #fde68a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
@media (min-width: 992px) {
    .repm-home-title { font-size: 3.1rem; }
}

.repm-home-sub {
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
    max-width: 520px;
    margin-bottom: 26px;
}

.repm-home-quicklinks {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.85);
}
.repm-home-quicklinks span { font-weight: 600; }
.repm-home-quicklinks a {
    color: #6d28d9;
    background: #ffffff;
    padding: 5px 14px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    transition: background 0.15s ease, transform 0.15s ease;
}
.repm-home-quicklinks a:hover { background: #f5f3ff; color: #581c87; transform: translateY(-1px); }

/* ---- RERA project lookup ---- */
.repm-rera-search {
    position: relative;
    background: rgba(255,255,255,0.98);
    border-radius: 20px;
    padding: 16px 18px;
    box-shadow: 0 24px 60px rgba(30, 27, 46, 0.25);
    margin-bottom: 18px;
    max-width: 560px;
}

.repm-rera-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #6d28d9;
    margin-bottom: 10px;
}
.repm-rera-label i { color: #10b981; }

.repm-rera-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.repm-rera-input-icon {
    position: absolute;
    left: 14px;
    color: #a855f7;
    font-size: 0.9rem;
    pointer-events: none;
}
.repm-rera-input {
    width: 100%;
    border: 1.5px solid rgba(124, 58, 237, 0.15);
    border-radius: 14px;
    padding: 13px 40px 13px 40px;
    font-size: 0.92rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #1e1b2e;
    background: #faf9ff;
    outline: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.repm-rera-input:focus {
    border-color: #a855f7;
    background: #fff;
}
.repm-rera-clear {
    position: absolute;
    right: 10px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
}
.repm-rera-clear:hover { background: #e2e8f0; }

.repm-rera-hint {
    font-size: 0.74rem;
    color: #9ca3af;
    margin: 8px 0 0;
}

.repm-rera-results-portal {
    position: fixed;
    /* left/top/width are set by JS to match the search box's own rect */
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(30, 27, 46, 0.28);
    max-height: 480px;
    min-width: 340px;
    overflow-y: auto;
    z-index: 2000;
    padding: 8px;
}
/* On wider screens, let the panel breathe a bit past the input's own width
   for better readability — still anchored to the search box's left edge via JS. */
@media (min-width: 640px) {
    .repm-rera-results-portal { min-width: 480px; }
}

.repm-rera-message {
    padding: 16px;
    text-align: center;
    font-size: 0.85rem;
    color: #6b7280;
}

.repm-rera-result {
    display: block;
    padding: 14px 14px;
    border-radius: 12px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    text-decoration: none;
    color: inherit;
    min-height: 88px;
}
.repm-rera-result:last-child { border-bottom: none; }
.repm-rera-result-link:hover {
    background: #faf5ff;
    cursor: pointer;
}
.repm-rera-result-link:hover .repm-rera-result-title { color: #7c3aed; }

.repm-rera-result-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}
.repm-rera-result-title {
    font-weight: 700;
    font-size: 0.92rem;
    color: #1e1b2e;
}
.repm-rera-result-type {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #7c3aed;
    background: #f5f3ff;
    padding: 3px 9px;
    border-radius: 999px;
    white-space: nowrap;
}
.repm-rera-result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.78rem;
    color: #6b7280;
    margin-bottom: 6px;
}
.repm-rera-result-meta i { color: #a855f7; margin-right: 4px; }
.repm-rera-result-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.74rem;
    font-weight: 700;
    color: #047857;
    background: #d1fae5;
    padding: 4px 10px;
    border-radius: 999px;
}

.repm-rera-result-tier {
    display: inline-block;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 2px 8px;
    border-radius: 999px;
    margin-bottom: 6px;
}
.repm-rera-tier-1 { background: #d1fae5; color: #047857; }
.repm-rera-tier-2 { background: #e0e7ff; color: #4338ca; }
.repm-rera-tier-3 { background: #fef3c7; color: #92400e; }
.repm-rera-tier-4 { background: #fce7f3; color: #be185d; }

@media (min-width: 768px) {
    .repm-rera-search { padding: 18px 22px; }
}

/* ---- Hero floating trust cards (desktop only) ---- */
.repm-home-hero-art {
    position: relative;
    height: 420px;
}
.repm-home-hero-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.97);
    color: #1e1b2e;
    padding: 14px 18px;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(30, 27, 46, 0.2);
    font-weight: 700;
    font-size: 0.85rem;
    animation: repm-float 4s ease-in-out infinite;
}
.repm-home-hero-card i { font-size: 1.2rem; color: #7c3aed; }
.repm-home-hero-card-1 { top: 10%; left: 5%; animation-delay: 0s; }
.repm-home-hero-card-2 { top: 45%; right: 0; animation-delay: 1.2s; }
.repm-home-hero-card-3 { bottom: 8%; left: 12%; animation-delay: 2.4s; }

@keyframes repm-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ---- Category shortcuts ---- */
.repm-home-categories {
    padding: 28px 0;
    margin-top: -34px;
    position: relative;
    z-index: 2;
}
.repm-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-radius: 18px;
    padding: 20px 12px;
    text-decoration: none;
    box-shadow: 0 14px 36px rgba(30, 27, 46, 0.1);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    height: 100%;
}
.repm-cat-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(30, 27, 46, 0.16); }
.repm-cat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}
.repm-cat-icon-violet { background: linear-gradient(135deg, #ede9fe, #ddd6fe); color: #7c3aed; }
.repm-cat-icon-pink   { background: linear-gradient(135deg, #fce7f3, #fbcfe8); color: #db2777; }
.repm-cat-icon-amber  { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #b45309; }
.repm-cat-icon-mint   { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #047857; }
.repm-cat-label { font-weight: 700; font-size: 0.9rem; color: #1e1b2e; }

/* ---- Section headers used across the homepage ---- */
.repm-home-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}
.repm-home-h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: #1e1b2e;
    margin: 8px 0 0;
}
@media (min-width: 768px) {
    .repm-home-h2 { font-size: 2rem; }
}

.repm-home-listings { padding: 40px 0; }
@media (min-width: 768px) { .repm-home-listings { padding: 56px 0; } }

/* ---- How it works ---- */
.repm-home-how {
    padding: 40px 0;
    background: linear-gradient(180deg, #faf5ff, #fff);
}
@media (min-width: 768px) { .repm-home-how { padding: 60px 0; } }

.repm-how-card {
    background: #fff;
    border-radius: 20px;
    padding: 28px 22px;
    height: 100%;
    box-shadow: 0 10px 30px rgba(30, 27, 46, 0.06);
    border: 1px solid rgba(0,0,0,0.04);
}
.repm-how-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    color: #fff;
    font-weight: 800;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 14px;
}
.repm-how-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1e1b2e;
    margin-bottom: 8px;
}
.repm-how-text {
    font-size: 0.88rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

/* ---- Trust stats ---- */
.repm-home-trust {
    padding: 36px 0;
    background: #1e1b2e;
}
.repm-trust-stat { color: #fff; }
.repm-trust-number {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.7rem;
    background: linear-gradient(90deg, #c4b5fd, #f9a8d4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.repm-trust-label {
    display: block;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.65);
    margin-top: 4px;
}

/* ---- Final CTA ---- */
.repm-home-cta {
    position: relative;
    overflow: hidden;
    padding: 56px 0;
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    color: #fff;
    text-align: center;
}
.repm-home-cta .repm-home-blob-1 { top: -140px; left: -80px; right: auto; }
.repm-home-cta-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.7rem;
    margin-bottom: 10px;
}
@media (min-width: 768px) { .repm-home-cta-title { font-size: 2.2rem; } }
.repm-home-cta-sub {
    color: rgba(255,255,255,0.9);
    max-width: 480px;
    margin: 0 auto 24px;
}
.repm-home-cta-btn {
    background: #ffffff !important;
    color: #6d28d9 !important;
    font-weight: 800 !important;
    box-shadow: 0 16px 40px rgba(0,0,0,0.25);
    border: none;
}
.repm-home-cta-btn:hover {
    background: #f5f3ff !important;
    color: #581c87 !important;
}
.repm-home-cta-btn i { color: inherit !important; }

/* ---- Scroll reveal (driven by the vanilla IntersectionObserver script) ---- */
.repm-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.repm-reveal-in {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    .repm-reveal { opacity: 1; transform: none; transition: none; }
    .repm-home-hero-card { animation: none; }
}
