/* ========================================================
   Godrej Blue PRD Modules & Clean UI/UX Polish
   ======================================================== */
html {
    scroll-behavior: smooth;
}

.prd-section {
    padding: 84px 0;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.prd-section-dark {
    background: linear-gradient(180deg, #0a2540 0%, #071b2f 100%);
    color: #ffffff;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.prd-section-light {
    background: #ffffff;
    color: #1e293b;
}

.prd-section-soft {
    background: #f8fafc;
    color: #1e293b;
}

.prd-badge {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #b88c3e;
    background: rgba(197, 160, 89, 0.12);
    padding: 5px 14px;
    border-radius: 9999px;
    margin-bottom: 10px;
}

.prd-section-dark .prd-badge {
    color: #e6c687;
    background: rgba(197, 160, 89, 0.16);
}

.prd-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(10, 37, 64, 0.05);
}

/* Module 1: Cost Estimator */
.cost-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cost-pill {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0a2540;
    padding: 9px 15px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
}

.cost-pill:hover {
    border-color: #076291;
    color: #076291;
    transform: translateY(-1px);
}

.cost-pill.active {
    background: #076291;
    border-color: #076291;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(7, 98, 145, 0.25);
}

.prd-section-dark .cost-pill {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #e2e8f0;
}

.prd-section-dark .cost-pill.active {
    background: #c5a059;
    border-color: #c5a059;
    color: #0a2540;
    box-shadow: 0 4px 14px rgba(197, 160, 89, 0.35);
}

#prdFloorSlider {
    accent-color: #076291;
    cursor: pointer;
}

.cost-summary-box {
    background: linear-gradient(145deg, #0a2540 0%, #0e3459 100%);
    color: #ffffff;
    border-radius: 14px;
    padding: 28px;
    height: 100%;
    box-shadow: 0 16px 38px rgba(10, 37, 64, 0.18);
    border: 1px solid rgba(197, 160, 89, 0.25);
}

.cost-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    gap: 12px;
}

.cost-row span {
    color: rgba(255, 255, 255, 0.82);
}

.cost-row.total {
    border-bottom: none;
    border-top: 2px solid #c5a059;
    margin-top: 10px;
    padding-top: 14px;
    font-size: 18px;
    font-weight: 800;
    color: #f7edd7;
}

.cost-row.total span {
    color: #f7edd7;
}

/* Module 2: SVG Master Plan */
.svg-masterplan-box {
    background: #06182a;
    border: 1px solid rgba(197, 160, 89, 0.35);
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.3);
}

.tower-node {
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.tower-node rect {
    transition: all 0.2s ease;
}

.tower-node:hover rect,
.tower-node.active rect {
    fill: #c5a059 !important;
    stroke: #ffffff !important;
    stroke-width: 2.5px !important;
}

.tower-node.dimmed {
    opacity: 0.22;
}

.tower-info-panel {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(197, 160, 89, 0.35);
    border-radius: 14px;
    padding: 26px;
    height: 100%;
}

/* Module 3: RERA Vault */
.rera-verified-banner {
    background: linear-gradient(90deg, #ecfdf5 0%, #f0fdf4 100%);
    border: 1.5px solid #10b981;
    border-radius: 12px;
    padding: 18px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 24px;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.08);
}

.doc-vault-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    height: 100%;
    transition: all 0.18s ease;
    box-shadow: 0 4px 12px rgba(10, 37, 64, 0.03);
}

.doc-vault-card:hover {
    border-color: #076291;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(10, 37, 64, 0.07);
}

/* Module 4: Commute Matrix */
.commute-table {
    border-collapse: separate;
    border-spacing: 0;
}

.commute-table th {
    background: #0a2540;
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 14px 18px;
    border: none;
}

.commute-table td {
    padding: 14px 18px;
    font-size: 14px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}

.commute-table tbody tr:last-child td {
    border-bottom: none;
}

/* Module 5: Construction Timeline */
.timeline-track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
    gap: 16px;
}

.milestone-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: 4px solid #cbd5e1;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 4px 14px rgba(10, 37, 64, 0.04);
    transition: transform 0.18s ease;
}

.milestone-card:hover {
    transform: translateY(-2px);
}

.milestone-card.completed {
    border-top-color: #10b981;
}

.milestone-card.ongoing {
    border-top-color: #f59e0b;
    background: #fffdf5;
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.1);
}

.milestone-status {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 9999px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.milestone-card.completed .milestone-status { background: #d1fae5; color: #065f46; }
.milestone-card.ongoing .milestone-status { background: #fef3c7; color: #92400e; }
.milestone-card.scheduled .milestone-status { background: #f1f5f9; color: #475569; }

/* Back to Top Floating Button */
.back-to-top-btn {
    position: fixed;
    right: 22px;
    bottom: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #0a2540;
    color: #ffffff;
    border: 1.5px solid #c5a059;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 998;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    transition: all 0.2s ease;
}

.back-to-top-btn:hover {
    background: #076291;
    transform: translateY(-2px);
}

.back-to-top-btn.visible {
    display: flex;
}

@media (max-width: 991px) {
    .prd-section {
        padding: 52px 0;
    }
    .prd-card,
    .cost-summary-box,
    .tower-info-panel {
        padding: 20px;
    }
    .back-to-top-btn {
        bottom: 74px;
        right: 14px;
        width: 40px;
        height: 40px;
    }
}
