@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@500;600;700&display=swap");

/* ===== WRAP ===== */
.cc-projects-wrap {
    font-family: "Inter", sans-serif !important;
    color: #364152;
}

/* ===== FILTER BAR ===== */
.cc-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.cc-filter-btn {
    appearance: none;
    border: 1.5px solid #d0d9e8;
    border-radius: 999px;
    background: #fff;
    color: #364152;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font: 500 0.88rem "Inter", sans-serif;
    padding: 7px 20px;
    transition: all 0.15s ease;
}

.cc-filter-btn:hover {
    border-color: #1a2d60;
    color: #1a2d60;
}

.cc-filter-btn.active {
    background: #1a2d60 !important;
    border-color: #1a2d60 !important;
    color: #fff !important;
}

/* ===== GRID ===== */
.cc-projects-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(4, 1fr);
}

/* ===== PROJECT CARD (full-bleed image style) ===== */
.cc-project-card {
    position: relative !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    border: 0 !important;
    border-bottom: 3px solid #0dcaf0 !important;
    height: 400px;
    background: #1a2540;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 24px rgba(0,0,0,0.16);
    display: block;
    transform: translateZ(0);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    isolation: isolate;
}

.cc-project-card:hover {
    transform: translateZ(0) translateY(-5px);
    box-shadow: 0 16px 42px rgba(0,0,0,0.28);
    border-radius: 16px !important;
    overflow: hidden !important;
}

.cc-project-card--hidden,
.cc-project-card--filtered-out {
    display: none !important;
}

/* Location badge  top-left */
.ccp-location-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 4;
    padding: 5px 10px;
    border-radius: 10px;
    background: rgba(255,255,255,0.88);
    color: #12202f;
    font-size: 0.75rem;
    font-weight: 600;
    max-width: 58%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px solid rgba(255,255,255,0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    line-height: 1.3;
}

/* Status pill  top-right */
.ccp-status-pill {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 4;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    line-height: 1.4;
}

.ccp-status-completed {
    background: rgba(5,150,105,0.92);
    color: #fff;
}

.ccp-status-progress {
    background: rgba(217,119,6,0.92);
    color: #fff;
}

.ccp-status-default {
    background: rgba(255,255,255,0.88);
    color: #12202f;
}

/* Stretched transparent link covers full card */
.ccp-card-link {
    position: absolute !important;
    inset: 0;
    z-index: 3;
    display: block;
    color: transparent;
    cursor: pointer;
}

/* Full-bleed figure */
figure.ccp-card-figure {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    position: absolute !important;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 1;
}

figure.ccp-card-figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.cc-project-card:hover figure.ccp-card-figure img {
    transform: scale(1.06);
}

/* No-image placeholder */
.ccp-no-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a2d60 0%, #243d82 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.2);
    font-size: 3rem;
}

/* Bottom gradient overlay */
.ccp-card-overlay {
    position: absolute !important;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 70px 14px 14px;
    background: linear-gradient(to top,
        rgba(6,10,28,0.96) 0%,
        rgba(6,10,28,0.62) 55%,
        transparent 100%);
    pointer-events: none;
}

.ccp-card-cats {
    color: rgba(255,255,255,0.58);
    font-size: 0.7rem;
    font-weight: 600;
    margin: 0 0 5px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ccp-card-title {
    color: #fff !important;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 8px;
    font-family: "Poppins", sans-serif !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Stats row */
ul.ccp-stats {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;
    overflow: hidden;
}

ul.ccp-stats li {
    color: rgba(255,255,255,0.82);
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    font-weight: 500;
    white-space: nowrap;
}

ul.ccp-stats li svg {
    flex-shrink: 0;
    opacity: 0.82;
}

/* ===== LOAD MORE ===== */
.cc-load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.cc-btn,
.cc-load-more {
    appearance: none;
    border: 1.5px solid #1a2d60;
    border-radius: 999px;
    background: transparent;
    color: #1a2d60;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font: 600 0.9rem "Inter", sans-serif;
    padding: 10px 28px;
    transition: all 0.2s;
    text-decoration: none;
}

.cc-btn:hover,
.cc-load-more:hover {
    background: #1a2d60;
    color: #fff;
}

.cc-btn-primary {
    background: #1a2d60 !important;
    border-color: #1a2d60 !important;
    color: #fff !important;
}

.cc-btn-primary:hover {
    background: #243d82 !important;
    border-color: #243d82 !important;
}

.cc-btn-outline {
    background: transparent;
}

.cc-btn-full {
    width: 100%;
    justify-content: center;
}

.cc-btn-sm {
    padding: 6px 16px;
    font-size: 0.82rem;
}

.cc-no-projects {
    padding: 2rem 0;
    color: #64748b;
}

/* ===== MODAL ===== */
.cc-modal-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(8,15,23,0.75);
    z-index: 9999;
}

.cc-modal-overlay.is-open {
    display: flex;
}

.cc-modal {
    position: relative;
    width: min(1100px, 100%);
    max-height: 92vh;
    overflow: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.cc-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
    box-sizing: border-box;
    border: 1px solid #d4dbe3;
    border-radius: 50% !important;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
    color: #364152;
    transition: all 0.15s;
    line-height: 1;
}

.cc-modal-close:hover {
    background: #f1f5f9;
    color: #1a2d60;
}

.cc-modal-loading {
    padding: 3rem 1.5rem;
    text-align: center;
    color: #64748b;
}

.cc-spinner {
    width: 2rem;
    height: 2rem;
    margin: 0 auto 12px;
    border: 3px solid #e2e8f0;
    border-top-color: #1a2d60;
    border-radius: 50%;
    animation: cc-spin 0.8s linear infinite;
}

@keyframes cc-spin {
    to { transform: rotate(360deg); }
}

.cc-modal-content {
    padding: 1rem;
}

.cc-modal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
    margin-bottom: 1rem;
}

.cc-modal-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.cc-modal-body {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0,1.4fr) minmax(260px,0.7fr);
}

.cc-modal-header {
    margin-bottom: 1rem;
}

.cc-modal-cats,
.cc-modal-status {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.cc-modal-title {
    margin: 0;
    font-size: 1.5rem;
    font-family: "Poppins", sans-serif !important;
    color: #12202f;
    font-weight: 700;
}

.cc-project-badge {
    display: inline-flex;
    padding: 3px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #1a2d60;
    font-size: 0.78rem;
    font-weight: 600;
}

.cc-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
    margin-bottom: 1rem;
}

.cc-overview-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
    background: #fff;
}

.cc-overview-label {
    font-size: 0.78rem;
    color: #64748b;
    margin: 0 0 3px;
    display: block;
}

.cc-overview-value {
    color: #12202f;
    font-weight: 600;
    font-size: 0.92rem;
}

.cc-modal-section {
    margin-top: 1rem;
}

.cc-modal-section h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 8px;
    color: #12202f;
    font-family: "Poppins", sans-serif !important;
}

.cc-modal-description {
    color: #364152 !important;
    line-height: 1.65;
    font-size: 0.95rem;
}

.cc-services-list,
.cc-summary-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cc-services-list li,
.cc-summary-list li {
    border-top: 1px solid #edf2f7;
    padding: 6px 0;
    color: #364152;
    font-size: 0.9rem;
}

.cc-modal-sidebar {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.cc-sidebar-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem;
    background: #fff;
}

.cc-sidebar-card h4 {
    margin: 0 0 8px;
    font-size: 0.95rem;
    color: #12202f;
    font-weight: 600;
    font-family: "Poppins", sans-serif !important;
}

.cc-sidebar-card p {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0 0 10px;
}

.cc-share-btns {
    display: grid;
    gap: 6px;
}

.cc-video-wrap iframe {
    border-radius: 8px;
    max-width: 100%;
}

/* ===== HERO BANNER ===== */
.cc-hero-banner {
    background: linear-gradient(135deg, #1a2d60 0%, #243d82 100%);
    color: #fff;
    padding: 2.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
}

.cc-hero-content {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0,1.45fr) minmax(300px,0.9fr);
    align-items: start;
}

.cc-hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cc-hero-badge {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 4px 12px;
    border: 1px solid rgba(255,255,255,0.28);
    border-radius: 999px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.85);
}

.cc-hero-heading {
    margin: 0;
    font-size: 2rem;
    font-family: "Poppins", sans-serif !important;
    font-weight: 700;
    line-height: 1.25;
}

.cc-hero-sub {
    margin: 8px 0 0;
    color: rgba(255,255,255,0.85);
    font-size: 1rem;
}

.cc-hero-para {
    margin: 14px 0 0;
    color: rgba(255,255,255,0.88);
    line-height: 1.65;
    font-size: 0.95rem;
}

.cc-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}

.cc-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}

.cc-stat-item {
    min-width: 130px;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 10px;
    background: rgba(255,255,255,0.07);
}

.cc-stat-num {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: "Poppins", sans-serif !important;
}

.cc-stat-label {
    color: rgba(255,255,255,0.75);
    font-size: 0.85rem;
}

.cc-hero-form {
    background: rgba(255,255,255,0.09);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 1.25rem;
}

.cc-hero-form h3 {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    font-family: "Poppins", sans-serif !important;
    font-weight: 600;
}

/* ===== QUOTE FORM ===== */
.cc-quote-form .cc-form-group,
.cc-quote-form .cc-form-row {
    margin-bottom: 10px;
}

.cc-form-row {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 1fr;
}

.cc-input {
    width: 100%;
    border: 1.5px solid rgba(255,255,255,0.2) !important;
    border-radius: 8px !important;
    padding: 10px 12px !important;
    font: inherit !important;
    font-size: 0.9rem !important;
    background: rgba(255,255,255,0.1) !important;
    color: #fff !important;
    box-sizing: border-box;
    transition: border-color 0.15s;
    box-shadow: none !important;
}

.cc-input::placeholder {
    color: rgba(255,255,255,0.5);
}

.cc-input:focus {
    outline: none;
    border-color: rgba(255,255,255,0.5) !important;
    background: rgba(255,255,255,0.14) !important;
}

.cc-textarea {
    min-height: 80px;
    resize: vertical;
}

.cc-form-msg {
    min-height: 1.25rem;
    margin-top: 6px;
    font-size: 0.9rem;
}

.cc-form-msg.is-success { color: #6ee7b7; }
.cc-form-msg.is-error   { color: #fca5a5; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .cc-projects-grid { grid-template-columns: repeat(2, 1fr); }
    .cc-hero-content  { grid-template-columns: 1fr; }
    .cc-modal-body    { grid-template-columns: 1fr; }
    .cc-form-row      { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .cc-projects-grid  { grid-template-columns: 1fr; }
    .cc-project-card   { height: 340px; }
    .cc-hero-banner    { padding: 1.5rem; }
    .cc-hero-heading   { font-size: 1.5rem; }
}
