/**
 * Homepage — Premium CSS
 * Scoped under .hp-main for high specificity (overrides theme base)
 */

/* ── Variables ── */
.hp-main {
    --hp-primary: #731452;
    --hp-dark: #111827;
    --hp-accent: #ca8a04;
    --hp-bg: #f8f9fa;
    --hp-white: #ffffff;
    --hp-radius: 16px;
    --hp-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    background: var(--hp-bg);
}

/* ============================================
   1.  HERO — scoped .hp-main .hp-hero
   ============================================ */
.hp-main .hp-hero {
    background: linear-gradient(135deg, #0b0f19 0%, #1a1040 55%, #2d1a4a 100%);
    background-size: cover;
    background-position: center;
    padding: 100px 0 100px;
    position: relative;
    overflow: hidden;
    text-align: center;
    color: #fff;
    min-height: 480px;
    display: flex;
    align-items: center;
}

.hp-main .hp-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 15, 25, 0.75) 0%, rgba(45, 26, 74, 0.8) 100%);
    z-index: 1;
}

/* Decorations */
.hp-main .hp-hero-deco {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
}

.hp-main .hp-deco-1 {
    width: 420px;
    height: 420px;
    top: -120px;
    right: -100px;
    background: radial-gradient(circle, rgba(115, 20, 82, 0.25), transparent 70%);
    animation: hpFloat1 8s ease-in-out infinite;
}

.hp-main .hp-deco-2 {
    width: 280px;
    height: 280px;
    bottom: -60px;
    left: -60px;
    background: radial-gradient(circle, rgba(202, 138, 4, 0.18), transparent 70%);
    animation: hpFloat2 10s ease-in-out infinite;
}

.hp-main .hp-deco-3 {
    width: 180px;
    height: 180px;
    top: 40%;
    left: 15%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05), transparent 70%);
    animation: hpFloat1 12s ease-in-out infinite reverse;
}

@keyframes hpFloat1 {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-30px)
    }
}

@keyframes hpFloat2 {

    0%,
    100% {
        transform: translateY(0) translateX(0)
    }

    50% {
        transform: translateY(-20px) translateX(15px)
    }
}

.hp-main .hp-hero-inner {
    position: relative;
    z-index: 3;
    max-width: 850px;
    margin: 0 auto;
    padding: 0 20px;
}

.hp-main .hp-hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem) !important;
    font-weight: 800 !important;
    line-height: 1.4 !important;
    margin: 0 0 15px !important;
    color: #ffffff !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    animation: hpFadeIn 0.7s 0.1s both;
}

.hp-main .hp-hero-sub {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    color: rgba(255, 255, 255, 0.85) !important;
    margin: 0 0 30px !important;
    line-height: 1.6;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
    animation: hpFadeIn 0.7s 0.2s both;
}

@keyframes hpFadeIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Search */
.hp-main .hp-hero-search {
    margin-bottom: 30px;
    animation: hpFadeIn 0.7s 0.3s both;
}

.hp-main .hp-search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 60px;
    padding: 8px 10px 8px 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 700px;
    margin: 0 auto;
    transition: all 0.3s;
}

.hp-main .hp-search-box:focus-within {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 40px rgba(115, 20, 82, 0.2);
}

.hp-main .hp-search-box>i {
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
    margin-left: 12px;
}

.hp-main .hp-search-box input[type="search"] {
    flex: 1;
    border: none;
    background: none;
    color: #fff;
    font-size: 16px;
    font-family: inherit;
    outline: none;
    padding: 14px 10px;
    -webkit-appearance: none;
    appearance: none;
}

.hp-main .hp-search-box input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.hp-main .hp-search-box button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--hp-primary), #9a1c6e);
    color: #fff;
    border: none;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.hp-main .hp-search-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(115, 20, 82, 0.4);
}

/* Removed tags and stats CSS to simplify Hero Section as requested */

/* ============================================
   SECTION SHARED
   ============================================ */
.hp-main .hp-section {
    padding: 80px 0;
}

.hp-main .hp-sec-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 45px;
    gap: 20px;
}

.hp-main .hp-sec-head--center {
    justify-content: center;
    text-align: center;
}

.hp-main .hp-sec-title {
    font-size: 1.7rem !important;
    font-weight: 900 !important;
    color: var(--hp-dark) !important;
    margin: 0 0 8px !important;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hp-main .hp-sec-title::after {
    display: none !important;
}

.hp-main .hp-sec-head--center .hp-sec-title {
    justify-content: center;
}

.hp-main .hp-sec-sub {
    font-size: 1rem;
    color: #777 !important;
    margin: 0 !important;
    line-height: 1.6;
}

.hp-main .hp-sec-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--hp-primary) !important;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    white-space: nowrap;
    transition: gap 0.2s;
}

.hp-main .hp-sec-link:hover {
    gap: 14px;
}

.hp-main .hp-empty {
    text-align: center;
    padding: 60px;
    color: #888;
    grid-column: 1 / -1;
}


/* ============================================
   2. PROJECTS GRID & CARDS
   ============================================ */
.hp-main .hp-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Project Card */
.hp-main .project-card {
    background: var(--hp-white);
    border-radius: var(--hp-radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.hp-main .project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Image Area */
.hp-main .project-card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.hp-main .project-card-image .img-link {
    display: block;
    width: 100%;
    height: 100%;
}

.hp-main .project-card-image img,
.hp-main .fallback-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hp-main .fallback-img {
    background: linear-gradient(135deg, #f5f7fa, #e8edf3);
}

.hp-main .project-card:hover .project-card-image img {
    transform: scale(1.08);
}

.hp-main .project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(17, 24, 39, 0.8) 0%, transparent 60%);
    pointer-events: none;
}

/* Badges */
.hp-main .project-badge {
    position: absolute;
    z-index: 2;
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.hp-main .location-badge {
    bottom: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--hp-dark);
}

.hp-main .location-badge i {
    color: var(--hp-primary);
}

.hp-main .featured-badge {
    top: 15px;
    left: 15px;
    background: var(--hp-accent);
    color: #fff;
}

/* Content Area */
.hp-main .project-card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hp-main .project-card-title {
    font-size: 1.3rem !important;
    font-weight: 800 !important;
    margin: 0 0 20px !important;
    line-height: 1.4 !important;
}

.hp-main .project-card-title a {
    color: var(--hp-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.hp-main .project-card-title a:hover {
    color: var(--hp-primary);
}

/* Meta Grid (Price & Area) */
.hp-main .project-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
    background: var(--hp-bg);
    padding: 15px;
    border-radius: 12px;
}

.hp-main .meta-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hp-main .meta-area {
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    padding-right: 15px;
}

.hp-main .meta-label {
    font-size: 12px;
    color: #777;
    font-weight: 600;
}

.hp-main .meta-value {
    font-size: 16px;
    font-weight: 800;
    color: var(--hp-primary);
}

.hp-main .meta-value small {
    font-size: 12px;
    font-weight: 600;
    color: #888;
}

/* Actions */
.hp-main .project-card-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.hp-main .card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
    height: 48px;
}

.hp-main .details-btn {
    flex: 1;
    background: var(--hp-primary);
    color: #fff !important;
    gap: 8px;
}

.hp-main .details-btn:hover {
    background: #5a0f40;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(115, 20, 82, 0.2);
}

.hp-main .wa-btn {
    width: 48px;
    background: #e8f5e9;
    color: #2e7d32 !important;
    font-size: 20px;
}

.hp-main .wa-btn:hover {
    background: #2e7d32;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.2);
}


/* ============================================
   3. CITIES
   ============================================ */
.hp-main .hp-cities-section {
    background: #ffffff;
}

.hp-main .hp-cities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.hp-main .hp-city-card {
    position: relative;
    border-radius: var(--hp-radius);
    overflow: hidden;
    text-decoration: none;
    display: block;
    min-height: 280px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.hp-main .hp-city-img {
    position: absolute;
    inset: 0;
    background: #e0e5ec;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hp-main .hp-city-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(11, 15, 25, 0.85) 100%);
    transition: background 0.4s;
    z-index: 1;
}

.hp-main .hp-city-card:hover .hp-city-img {
    transform: scale(1.1);
}

.hp-main .hp-city-card:hover .hp-city-overlay {
    background: linear-gradient(180deg, rgba(115, 20, 82, 0.1) 0%, rgba(11, 15, 25, 0.95) 100%);
}

.hp-main .hp-city-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 25px;
    color: #fff;
    z-index: 2;
    transform: translateY(10px);
    transition: transform 0.4s;
}

.hp-main .hp-city-card:hover .hp-city-info {
    transform: translateY(0);
}

.hp-main .hp-city-info h3 {
    font-size: 1.4rem !important;
    font-weight: 800 !important;
    margin: 0 0 10px !important;
    color: #fff !important;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.hp-main .hp-city-info span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.3);
}


/* ============================================
   4. DEVELOPERS SLIDER
   ============================================ */
.hp-main .hp-devs-section {
    background: var(--hp-dark);
    padding-bottom: 80px;
}

.hp-main .hp-devs-section .hp-sec-title {
    color: #fff !important;
}

.hp-main .hp-devs-section .hp-sec-sub {
    color: rgba(255, 255, 255, 0.6) !important;
}

.hp-main .hp-devs-slider-container {
    padding: 20px 10px 50px;
    /* Space for pagination */
    position: relative;
}

.hp-main .swiper-slide {
    display: flex;
    justify-content: center;
}

.hp-main .hp-dev-slide {
    width: 100%;
    max-width: 220px;
    height: 110px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: all 0.4s;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hp-main .hp-dev-slide:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--hp-accent);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(202, 138, 4, 0.2);
}

.hp-main .hp-dev-logo {
    max-width: 100% !important;
    max-height: 70px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    filter: brightness(0) invert(1);
    opacity: 0.6;
    transition: all 0.4s;
}

.hp-main .hp-dev-slide:hover .hp-dev-logo {
    opacity: 1;
    filter: none;
}

.hp-main .hp-dev-fallback {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 700;
    text-align: center;
}


/* ============================================
   5. BLOG
   ============================================ */
.hp-main .hp-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.hp-main .hp-blog-card {
    background: var(--hp-white);
    border-radius: var(--hp-radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}

.hp-main .hp-blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.hp-main .hp-blog-thumb {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.hp-main .hp-blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
    display: block;
}

.hp-main .hp-blog-card:hover .hp-blog-thumb img {
    transform: scale(1.06);
}

.hp-main .hp-blog-cat {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--hp-dark);
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hp-main .hp-blog-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.hp-main .hp-blog-meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 12px;
}

.hp-main .hp-blog-meta i {
    color: var(--hp-primary);
    margin-left: 5px;
}

.hp-main .hp-blog-body h3 {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    margin: 0 0 12px !important;
    line-height: 1.5 !important;
    color: var(--hp-dark) !important;
}

.hp-main .hp-blog-body h3 a {
    color: var(--hp-dark) !important;
    text-decoration: none;
    transition: color 0.2s;
}

.hp-main .hp-blog-body h3 a:hover {
    color: var(--hp-primary) !important;
}

.hp-main .hp-blog-body>p {
    color: #666 !important;
    font-size: 0.95rem;
    line-height: 1.8;
    margin: 0 0 18px !important;
    flex: 1;
}

.hp-main .hp-read-more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--hp-primary) !important;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: gap 0.2s;
}

.hp-main .hp-read-more:hover {
    gap: 12px;
}


/* ============================================
   6. CTA
   ============================================ */
.hp-main .hp-cta {
    background: linear-gradient(135deg, var(--hp-dark) 0%, #2d1a4a 100%);
    padding: 80px 0;
    text-align: center;
    color: #fff;
}

.hp-main .hp-cta h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem) !important;
    font-weight: 900 !important;
    margin: 0 0 14px !important;
    color: #fff !important;
}

.hp-main .hp-cta h2::after {
    display: none !important;
}

.hp-main .hp-cta p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75) !important;
    margin: 0 0 35px !important;
}

.hp-main .hp-cta-btns {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hp-main .hp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
    font-family: inherit;
}

.hp-main .hp-btn--wa {
    background: #25d366;
    color: #fff !important;
}

.hp-main .hp-btn--wa:hover {
    background: #1fba58;
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.hp-main .hp-btn--outline {
    background: transparent;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.4);
}

.hp-main .hp-btn--outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff !important;
}


/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {

    .hp-main .hp-projects-grid,
    .hp-main .hp-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hp-main .hp-cities-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hp-main .hp-hero {
        padding: 90px 0 60px;
    }

    .hp-main .hp-hero-inner {
        padding: 0 16px;
    }

    .hp-main .hp-section {
        padding: 60px 0;
    }

    .hp-main .hp-sec-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .hp-main .hp-projects-grid,
    .hp-main .hp-cities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .hp-main .hp-blog-grid {
        grid-template-columns: 1fr;
    }

    .hp-main .hp-hero-badge {
        font-size: 13px;
        padding: 8px 18px;
        margin-bottom: 20px;
    }

    .hp-main .hp-city-card {
        min-height: 180px;
    }

    .hp-main .hp-search-box {
        padding: 6px;
    }

    .hp-main .hp-search-box button {
        padding: 12px 24px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {

    .hp-main .hp-hero {
        padding: 80px 0 50px;
    }

    .hp-main .hp-hero-inner {
        padding: 0 16px;
    }

    .hp-main .hp-projects-grid,
    .hp-main .hp-cities-grid {
        grid-template-columns: 1fr;
    }

    .hp-main .hp-search-box {
        flex-direction: column;
        border-radius: 18px;
        padding: 10px;
        gap: 8px;
        max-width: 100%;
    }

    .hp-main .hp-search-box>i {
        display: none;
    }

    .hp-main .hp-search-box input[type="search"] {
        text-align: right;
        padding: 12px 16px;
        font-size: 15px;
        width: 100%;
    }

    .hp-main .hp-search-box button {
        width: 100%;
        justify-content: center;
        border-radius: 12px;
        padding: 14px 20px;
        font-size: 15px;
    }
}