/*
 * DCM Projects — tabs and card grid.
 * Matches screenshot: text tabs, flush 3-col grid, blue placeholders.
 */

.dcm-site .dcm-projects {
    max-width: 1200px;
    margin: 0 auto;
    padding: 110px 24px 60px;
}

/* ---------- Tabs ---------- */

.dcm-site .dcm-projects-tabs {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 28px;
}

.dcm-site .dcm-tab {
    font-family: 'DM Sans', sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: #ccc;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 0 6px;
    position: relative;
    transition: color 0.3s ease;
}

.dcm-site .dcm-tab.is-active {
    color: #1a1a1a;
    font-weight: 600;
}

.dcm-site .dcm-tab.is-active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: #1a1a1a;
}

.dcm-site .dcm-tab:hover {
    color: #1a1a1a;
}

/* ---------- Panels ---------- */

.dcm-site .dcm-projects-panel {
    display: none;
}

.dcm-site .dcm-projects-panel.is-active {
    display: block;
}

/* ---------- Grid ---------- */

.dcm-site .dcm-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

/* ---------- Card ---------- */

.dcm-site .dcm-project-card {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 1 / 0.85;
    background: #e8f4fd;
    text-decoration: none;
}

.dcm-site .dcm-project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.dcm-site .dcm-project-card:hover img {
    transform: scale(1.05);
}

.dcm-site .dcm-card-placeholder {
    width: 100%;
    height: 100%;
    background: #56b8e6;
}

/* ---------- Card overlay ---------- */

.dcm-site .dcm-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.dcm-site .dcm-project-card:hover .dcm-card-overlay {
    opacity: 1;
}

.dcm-site .dcm-card-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.dcm-site .dcm-card-subtitle {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.85;
}

/* ---------- Responsive ---------- */

@media (max-width: 768px) {
    .dcm-site .dcm-projects {
        padding: 95px 16px 40px;
    }

    .dcm-site .dcm-projects-tabs {
        gap: 28px;
        padding: 0 8px;
    }

    .dcm-site .dcm-tab {
        font-size: 16px;
    }

    .dcm-site .dcm-projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .dcm-site .dcm-projects-grid {
        grid-template-columns: 1fr;
    }
}
