/* ============================================
   RPI HOMES — Homepage Redesign Styles
   October 2026 | BudgetPe
   ============================================ */

/* --- CSS Custom Properties (Brand Tokens) --- */
:root {
    --rpi-primary: #1a3c2a;
    --rpi-primary-light: #2a5c40;
    --rpi-accent: #c9a84c;
    --rpi-accent-hover: #b8972f;
    --rpi-dark: #0f1923;
    --rpi-dark-light: #1a2332;
    --rpi-light: #f7f8fa;
    --rpi-white: #ffffff;
    --rpi-text: #2d3436;
    --rpi-text-secondary: #636e72;
    --rpi-card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --rpi-card-shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.15);
    --rpi-radius: 12px;
    --rpi-radius-lg: 16px;
    --rpi-transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


/* ========================================
   1. HERO BANNER
   ======================================== */

.banner-wrapper {
    position: relative;
}

/* Dark gradient overlay on each slider slide */
.banner-wrapper .slider-slide-item {
    position: relative !important;
}

.banner-wrapper .slider-slide-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(15, 25, 35, 0.55) 0%,
        rgba(15, 25, 35, 0.30) 40%,
        rgba(15, 25, 35, 0.70) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.banner-wrapper .slider-slide-item .container {
    position: relative;
    z-index: 2;
}

/* Hero title */
.hero-title {
    font-family: 'Inter', sans-serif !important;
    font-weight: 800 !important;
    font-size: 3.2rem !important;
    line-height: 1.15 !important;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    animation: heroFadeInUp 0.8s ease-out both;
}

/* Hero subtitle */
.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.88);
    margin-top: 12px;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
    animation: heroFadeInUp 0.8s ease-out 0.15s both;
}

/* Trust badges row below subtitle */
.hero-trust-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin-top: 18px;
    animation: heroFadeInUp 0.8s ease-out 0.3s both;
}

.hero-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.85rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

.hero-trust-badge i {
    color: var(--rpi-accent);
    font-size: 0.9rem;
}

@keyframes heroFadeInUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Search Form Overlay (Desktop: absolute on banner) --- */
.hero-search-overlay {
    position: absolute;
    bottom: 32px;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 0 15px;
}

/* Glassmorphism card for search */
.hero-search-glass {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--rpi-radius-lg);
    padding: 20px 28px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    max-width: 700px;
    margin: 0 auto;
}

.hero-search-glass .nav-tabs {
    border-bottom: 2px solid #eaeaea;
    margin-bottom: 14px;
    gap: 4px;
}

.hero-search-glass .nav-tabs .nav-link {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--rpi-text-secondary);
    border: none;
    padding: 7px 18px;
    border-radius: 8px 8px 0 0;
    transition: var(--rpi-transition);
    background: transparent;
}

.hero-search-glass .nav-tabs .nav-link:hover {
    color: var(--rpi-primary);
    background: rgba(26, 60, 42, 0.05);
}

.hero-search-glass .nav-tabs .nav-link.active {
    color: var(--rpi-primary);
    background: rgba(26, 60, 42, 0.08);
    border-bottom: 2px solid var(--rpi-primary);
    margin-bottom: -2px;
}

.hero-search-glass .form-control,
.hero-search-glass select.form-control {
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    padding: 10px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    color: var(--rpi-text);
    transition: var(--rpi-transition);
    height: auto;
}

.hero-search-glass .form-control:focus {
    border-color: var(--rpi-primary);
    box-shadow: 0 0 0 3px rgba(26, 60, 42, 0.1);
}

.hero-search-glass .btn-search-hero {
    background: var(--rpi-primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 22px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--rpi-transition);
    white-space: nowrap;
}

.hero-search-glass .btn-search-hero:hover {
    background: var(--rpi-primary-light);
    transform: translateY(-1px);
}

.hero-search-glass .btn-search-hero .flaticon-search {
    font-size: 1rem;
}


/* ========================================
   2. STATS COUNTER SECTION
   ======================================== */

.stats-section {
    background: var(--rpi-dark);
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.07) 0%, transparent 60%);
    pointer-events: none;
}

.stat-card {
    text-align: center;
    padding: 12px 16px;
    position: relative;
}

.stat-card::after {
    content: '';
    position: absolute;
    right: 0;
    top: 18%;
    height: 64%;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.stat-card:last-child::after {
    display: none;
}

.stat-icon {
    font-size: 1.8rem;
    margin-bottom: 6px;
    display: block;
    line-height: 1.2;
}

.stat-number {
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--rpi-accent);
    line-height: 1.1;
    margin-bottom: 2px;
}

.stat-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 1.2px;
}


/* ========================================
   3. SECTION TITLES (Modern)
   ======================================== */

.section-title-modern {
    font-family: 'Inter', sans-serif !important;
    font-weight: 800 !important;
    font-size: 2rem;
    color: var(--rpi-text);
    position: relative;
    display: inline-block;
    margin-bottom: 6px;
}

.section-title-modern::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 48px;
    height: 3px;
    background: var(--rpi-accent);
    border-radius: 2px;
}

.section-subtitle-modern {
    font-family: 'Inter', sans-serif;
    font-size: 0.98rem;
    color: var(--rpi-text-secondary);
    font-weight: 400;
    margin-top: 14px;
}


/* ========================================
   4. KEY ZONES
   ======================================== */

.keyzone-section {
    padding: 72px 0;
    background: var(--rpi-white);
}

.keyzone-card-modern {
    position: relative;
    border-radius: var(--rpi-radius);
    overflow: hidden;
    height: 220px;
    cursor: pointer;
    transition: var(--rpi-transition);
    display: block;
}

.keyzone-card-modern:hover {
    transform: translateY(-6px);
    box-shadow: var(--rpi-card-shadow-hover);
}

.keyzone-card-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.keyzone-card-modern:hover img {
    transform: scale(1.1);
}

.keyzone-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.08) 55%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    transition: var(--rpi-transition);
}

.keyzone-card-modern:hover .keyzone-card-overlay {
    background: linear-gradient(to top, rgba(26, 60, 42, 0.88) 0%, rgba(26, 60, 42, 0.25) 55%, transparent 100%);
}

.keyzone-card-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.12rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.keyzone-card-count {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.keyzone-card-arrow {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.82rem;
    opacity: 0;
    transform: translateX(-6px);
    transition: var(--rpi-transition);
}

.keyzone-card-modern:hover .keyzone-card-arrow {
    opacity: 1;
    transform: translateX(0);
}


/* ========================================
   5. PROPERTY CARDS (Global)
   ======================================== */

.property-section {
    padding: 72px 0;
}

.listing-style7 {
    border-radius: var(--rpi-radius) !important;
    overflow: hidden;
    transition: var(--rpi-transition) !important;
    box-shadow: var(--rpi-card-shadow) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    background: var(--rpi-white) !important;
}

.listing-style7:hover {
    transform: translateY(-8px) !important;
    box-shadow: var(--rpi-card-shadow-hover) !important;
}

.listing-style7 .list-thumb {
    overflow: hidden !important;
    position: relative !important;
}

.listing-style7 .list-thumb > img {
    transition: transform 0.55s ease !important;
}

.listing-style7:hover .list-thumb > img {
    transform: scale(1.08) !important;
}

/* Hover-reveal action buttons on property images */
.property-card-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent);
    padding: 28px 12px 12px;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    opacity: 0;
    transform: translateY(8px);
    transition: var(--rpi-transition);
    z-index: 2;
}

.listing-style7:hover .property-card-actions {
    opacity: 1;
    transform: translateY(0);
}

.property-card-actions a {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--rpi-text);
    font-size: 0.88rem;
    transition: var(--rpi-transition);
    text-decoration: none;
}

.property-card-actions a:hover {
    background: var(--rpi-accent);
    color: #fff;
    transform: scale(1.1);
}

/* Property badge on image */
.property-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 4px 12px;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
}

.property-badge-residential { background: var(--rpi-primary); }
.property-badge-commercial  { background: #2d6a9f; }
.property-badge-plots       { background: #8b5e3c; }
.property-badge-featured    { background: var(--rpi-accent); color: var(--rpi-dark); }

/* Card content area */
.listing-style7 .list-content {
    padding: 16px 18px !important;
}

.listing-style7 .list-title a {
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    color: var(--rpi-text) !important;
    transition: color 0.3s !important;
    text-decoration: none !important;
}

.listing-style7 .list-title a:hover {
    color: var(--rpi-primary) !important;
}

.listing-style7 .list-text {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.82rem !important;
    color: var(--rpi-text-secondary) !important;
    margin-bottom: 8px !important;
}

.listing-style7 .list-price {
    font-family: 'Inter', sans-serif !important;
    font-weight: 800 !important;
    color: var(--rpi-primary) !important;
    font-size: 1rem !important;
}


/* ========================================
   6. WHY CHOOSE US (Icon Feature Grid)
   ======================================== */

.why-choose-section {
    padding: 80px 0;
    background: var(--rpi-light);
}

.why-choose-section .why-image {
    border-radius: var(--rpi-radius-lg);
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.why-choose-section .why-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.feature-card {
    background: var(--rpi-white);
    border-radius: var(--rpi-radius);
    padding: 26px 22px;
    box-shadow: var(--rpi-card-shadow);
    transition: var(--rpi-transition);
    border: 1px solid rgba(0, 0, 0, 0.04);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--rpi-card-shadow-hover);
    border-color: rgba(201, 168, 76, 0.18);
}

.feature-card-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--rpi-primary), var(--rpi-primary-light));
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    font-size: 1.3rem;
    color: #fff;
    transition: var(--rpi-transition);
}

.feature-card:hover .feature-card-icon {
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(26, 60, 42, 0.25);
}

.feature-card-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--rpi-text);
    margin-bottom: 7px;
}

.feature-card-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--rpi-text-secondary);
    line-height: 1.65;
    margin: 0;
}


/* ========================================
   7. TRENDING SECTION (Differentiated)
   ======================================== */

.trending-section {
    padding: 72px 0;
    background: var(--rpi-white);
}


/* ========================================
   8. BUILDERS GALLERY
   ======================================== */

.builders-section {
    padding: 60px 0;
    background: var(--rpi-light);
}

.listing-style5 {
    transition: var(--rpi-transition) !important;
    border-radius: var(--rpi-radius) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    padding: 16px !important;
    background: var(--rpi-white) !important;
}

.listing-style5:hover {
    box-shadow: var(--rpi-card-shadow) !important;
    transform: scale(1.06) !important;
}

.listing-style5 img {
    filter: grayscale(25%);
    transition: filter 0.4s ease !important;
}

.listing-style5:hover img {
    filter: grayscale(0%);
}


/* ========================================
   9. BLOG & NEWS
   ======================================== */

.blog-section {
    padding: 72px 0;
    background: var(--rpi-white);
}

.news-section {
    padding: 72px 0;
    background: var(--rpi-light);
}

.blog-style1 {
    border-radius: var(--rpi-radius) !important;
    overflow: hidden;
    box-shadow: var(--rpi-card-shadow) !important;
    transition: var(--rpi-transition) !important;
    background: var(--rpi-white) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.blog-style1:hover {
    transform: translateY(-6px) !important;
    box-shadow: var(--rpi-card-shadow-hover) !important;
}

.blog-style1 .blog-img img {
    transition: transform 0.5s ease !important;
}

.blog-style1:hover .blog-img img {
    transform: scale(1.06) !important;
}

.blog-date-pill {
    display: inline-block;
    background: rgba(26, 60, 42, 0.08);
    color: var(--rpi-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}

.blog-category-pill {
    display: inline-block;
    background: rgba(201, 168, 76, 0.15);
    color: var(--rpi-accent-hover);
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-read-more {
    color: var(--rpi-primary);
    font-weight: 600;
    font-size: 0.88rem;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    transition: var(--rpi-transition);
}

.blog-read-more:hover {
    color: var(--rpi-accent);
    gap: 8px;
}


/* ========================================
   10. TESTIMONIALS
   ======================================== */

.testimonial-section {
    padding: 72px 0;
    position: relative;
    overflow: hidden;
}

.testimonial-modern-card {
    background: var(--rpi-white);
    border-radius: var(--rpi-radius);
    padding: 28px 24px;
    box-shadow: var(--rpi-card-shadow);
    position: relative;
    transition: var(--rpi-transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
}

.testimonial-modern-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--rpi-card-shadow-hover);
}

.testimonial-quote-icon {
    font-size: 2.8rem;
    color: rgba(201, 168, 76, 0.22);
    line-height: 1;
    margin-bottom: 6px;
    font-family: Georgia, 'Times New Roman', serif;
}

.star-rating {
    display: flex;
    gap: 2px;
    margin-bottom: 12px;
}

.star-rating i {
    color: #f1c40f;
    font-size: 0.82rem;
}

.testimonial-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    color: var(--rpi-text-secondary);
    line-height: 1.72;
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid #f0f0f0;
    padding-top: 16px;
}

.testimonial-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.92rem;
    color: #fff;
    flex-shrink: 0;
}

/* Gradient avatar colors — cycled per testimonial */
.testimonial-avatar-1 { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.testimonial-avatar-2 { background: linear-gradient(135deg, #f43f5e, #e879a0); }
.testimonial-avatar-3 { background: linear-gradient(135deg, #14b8a6, #5eead4); }
.testimonial-avatar-4 { background: linear-gradient(135deg, #f97316, #fb923c); }
.testimonial-avatar-5 { background: linear-gradient(135deg, #3b82f6, #60a5fa); }

.testimonial-author-name {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--rpi-text);
}


/* ========================================
   11. RESPONSIVE
   ======================================== */

@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.2rem !important;
    }

    .hero-search-overlay {
        bottom: 20px;
    }

    .hero-search-glass {
        padding: 16px 20px;
        max-width: 90%;
    }

    .stat-number {
        font-size: 1.9rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .stats-section {
        padding: 36px 0;
    }

    .keyzone-card-modern {
        height: 180px;
    }

    .keyzone-section,
    .property-section,
    .why-choose-section,
    .trending-section,
    .builders-section,
    .blog-section,
    .news-section,
    .testimonial-section {
        padding: 56px 0;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 1.65rem !important;
    }

    .hero-subtitle {
        font-size: 0.88rem;
    }

    .hero-trust-badges {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    .hero-trust-badge {
        font-size: 0.78rem;
    }

    .hero-search-overlay {
        display: none !important;
    }

    .stat-card::after {
        display: none;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .stat-icon {
        font-size: 1.5rem;
    }

    .section-title-modern {
        font-size: 1.5rem;
    }

    .keyzone-card-modern {
        height: 160px;
    }

    .keyzone-section,
    .property-section,
    .why-choose-section,
    .trending-section,
    .builders-section,
    .blog-section,
    .news-section,
    .testimonial-section {
        padding: 44px 0;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.4rem !important;
    }

    .stat-number {
        font-size: 1.35rem;
    }

    .stat-label {
        font-size: 0.7rem;
        letter-spacing: 0.5px;
    }
}
