/* =========================================================
   CONSULTEVO PORTFOLIO
   Work Archive
   Version 3.2.1 LOCKED
   ========================================================= */

:root {
    --ce-work-blue: #144A9E;
    --ce-work-bright: #1E90FF;
    --ce-work-cyan: #40C4FF;
    --ce-work-ink: #10213D;
    --ce-work-text: #44546A;
    --ce-work-muted: #738399;
    --ce-work-line: #DCEAF8;
    --ce-work-soft: #F6FAFE;
    --ce-work-white: #FFFFFF;
}

body.post-type-archive-portfolio_project {
    background: #ffffff;
}

body.post-type-archive-portfolio_project #page,
body.post-type-archive-portfolio_project #content,
body.post-type-archive-portfolio_project .site-content,
body.post-type-archive-portfolio_project .content-area,
body.post-type-archive-portfolio_project .site-main {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

body.post-type-archive-portfolio_project .widget-area {
    display: none;
}

.cew3 {
    background: #ffffff;
    color: var(--ce-work-ink);
}

.cew3-container {
    width: calc(100% - 64px);
    max-width: 1220px;
    margin: 0 auto;
}

/* HERO */

.cew3-hero {
    position: relative;
    overflow: hidden;
    padding: 48px 0 44px;
    border-bottom: 1px solid var(--ce-work-line);
    background:
        radial-gradient(circle at 87% 30%, rgba(64, 196, 255, 0.15), transparent 28%),
        linear-gradient(135deg, #ffffff, #f4fbff);
}

.cew3-eyebrow {
    margin-bottom: 10px;
    color: var(--ce-work-bright);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.17em;
}

.cew3-hero h1 {
    margin: 0;
    color: var(--ce-work-blue);
    font-size: clamp(42px, 5vw, 64px);
    line-height: 0.98;
    font-weight: 740;
    letter-spacing: -0.05em;
}

.cew3-hero p {
    max-width: 760px;
    margin: 15px 0 0;
    color: var(--ce-work-text);
    font-size: 17px;
    line-height: 1.55;
}

/* TOOLBAR */

.cew3-tools {
    position: relative;
    z-index: 30;
    padding: 20px 0;
    border-bottom: 1px solid var(--ce-work-line);
    background: rgba(255, 255, 255, 0.98);
}

.cew3-tools-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 235px 235px;
    gap: 10px;
    align-items: start;
}

.cew3-search-wrap {
    position: relative;
}

.cew3-search-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: var(--ce-work-muted);
    font-size: 17px;
    pointer-events: none;
}

.cew3-search {
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 0 16px 0 44px !important;
    border: 1px solid var(--ce-work-line) !important;
    border-radius: 11px !important;
    outline: 0;
    background: #ffffff !important;
    color: var(--ce-work-ink) !important;
    font-family: inherit;
    font-size: 13px;
    box-shadow: none !important;
}

.cew3-search:focus {
    border-color: rgba(30, 144, 255, 0.55) !important;
    box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.07) !important;
}

/* MULTI SELECT */

.cew3-filter {
    position: relative;
}

body.post-type-archive-portfolio_project button.cew3-filter-trigger,
body.post-type-archive-portfolio_project button.cew3-filter-trigger:hover,
body.post-type-archive-portfolio_project button.cew3-filter-trigger:focus,
body.post-type-archive-portfolio_project button.cew3-filter-trigger:active {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    width: 100% !important;
    height: 48px !important;
    margin: 0 !important;
    padding: 0 14px !important;
    border: 1px solid var(--ce-work-line) !important;
    border-radius: 11px !important;
    outline: 0 !important;
    background: #ffffff !important;
    color: var(--ce-work-ink) !important;
    box-shadow: none !important;
    font-family: inherit !important;
    font-size: 12px !important;
    line-height: 1 !important;
    font-weight: 650 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    cursor: pointer !important;
}

body.post-type-archive-portfolio_project button.cew3-filter-trigger:hover {
    border-color: rgba(30, 144, 255, 0.34) !important;
}

.cew3-filter.has-selection .cew3-filter-trigger {
    border-color: rgba(30, 144, 255, 0.40) !important;
    background: rgba(30, 144, 255, 0.04) !important;
}

.cew3-filter-trigger-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cew3-filter-arrow {
    flex: 0 0 auto;
    color: var(--ce-work-muted);
    font-size: 11px;
    transition: transform 0.2s ease;
}

.cew3-filter.is-open .cew3-filter-arrow {
    transform: rotate(180deg);
}

.cew3-filter-menu {
    position: absolute;
    top: calc(100% + 7px);
    left: 0;
    right: 0;
    z-index: 60;
    display: none;
    overflow: hidden;
    border: 1px solid var(--ce-work-line);
    border-radius: 13px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(20, 74, 158, 0.14);
}

.cew3-filter.is-open .cew3-filter-menu {
    display: block;
}

.cew3-filter-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px 9px;
    border-bottom: 1px solid var(--ce-work-line);
}

.cew3-filter-menu-head strong {
    color: var(--ce-work-ink);
    font-size: 10px;
    font-weight: 800;
}

.cew3-filter-menu-head span {
    color: var(--ce-work-muted);
    font-size: 8px;
    font-weight: 650;
}

.cew3-filter-options {
    max-height: 300px;
    overflow-y: auto;
    padding: 7px;
}

.cew3-filter-option {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0;
    padding: 9px 10px;
    border-radius: 8px;
    color: var(--ce-work-text);
    font-size: 11px;
    line-height: 1.35;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.cew3-filter-option:hover {
    background: rgba(30, 144, 255, 0.055);
    color: var(--ce-work-blue);
}

.cew3-filter-option input {
    width: 15px;
    height: 15px;
    margin: 1px 0 0;
    flex: 0 0 auto;
    accent-color: var(--ce-work-bright);
}

.cew3-filter-option span {
    flex: 1;
}

.cew3-filter-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-top: 1px solid var(--ce-work-line);
    background: #f8fbfe;
}

.cew3-filter-selected-count {
    color: var(--ce-work-muted);
    font-size: 9px;
    font-weight: 650;
}

body.post-type-archive-portfolio_project button.cew3-filter-clear,
body.post-type-archive-portfolio_project button.cew3-filter-clear:hover,
body.post-type-archive-portfolio_project button.cew3-filter-clear:focus,
body.post-type-archive-portfolio_project button.cew3-filter-clear:active {
    appearance: none !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--ce-work-bright) !important;
    box-shadow: none !important;
    font-family: inherit !important;
    font-size: 9px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    cursor: pointer !important;
}

/* PROJECT LIST */

.cew3-projects {
    padding: 40px 0 90px;
}

.cew3-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 18px;
}

.cew3-heading h2 {
    margin: 0;
    color: var(--ce-work-blue);
    font-size: 28px;
    font-weight: 710;
    letter-spacing: -0.03em;
}

.cew3-result-count {
    color: var(--ce-work-muted);
    font-size: 11px;
    font-weight: 650;
}

.cew3-list {
    display: grid;
    gap: 12px;
}

.cew3-project {
    overflow: hidden;
    border: 1px solid var(--ce-work-line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 26px rgba(20, 74, 158, 0.045);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cew3-project:hover {
    border-color: rgba(30, 144, 255, 0.27);
    box-shadow: 0 14px 34px rgba(20, 74, 158, 0.075);
}

.cew3-project.is-open {
    border-color: rgba(30, 144, 255, 0.36);
    box-shadow: 0 18px 45px rgba(20, 74, 158, 0.09);
}

.cew3-project-main {
    padding: 24px 28px 20px;
}

.cew3-project-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.cew3-project-labels {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cew3-featured {
    display: inline-flex;
    padding: 6px 8px;
    border-radius: 999px;
    background: rgba(30, 144, 255, 0.08);
    color: var(--ce-work-bright);
    font-size: 8px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.cew3-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--ce-work-muted);
    font-size: 10px;
    font-weight: 700;
}

.cew3-status::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ce-work-bright);
}

.cew3-status-live::before { background: #34C77B; }
.cew3-status-completed::before { background: #7C68EE; }
.cew3-status-prototype::before { background: #FFB84D; }
.cew3-status-internal::before { background: #8897AA; }

.cew3-client {
    color: var(--ce-work-muted);
    font-size: 11px;
}

.cew3-project-title {
    margin: 0;
    color: var(--ce-work-blue);
    font-size: clamp(25px, 2.6vw, 34px);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -0.04em;
}

/* PROBLEM / SOLUTION */

.cew3-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    margin-top: 18px;
}

.cew3-summary-block {
    min-width: 0;
}

.cew3-summary-label {
    display: block;
    margin-bottom: 5px;
    color: var(--ce-work-muted);
    font-size: 8px;
    line-height: 1;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.cew3-summary-block p {
    margin: 0;
    color: var(--ce-work-text);
    font-size: 13px;
    line-height: 1.55;
}

/* SYSTEM / TECH */

.cew3-meta-line {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 7px 18px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--ce-work-line);
    color: var(--ce-work-muted);
    font-size: 10px;
    line-height: 1.5;
}

.cew3-meta-group {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.cew3-meta-group strong {
    color: var(--ce-work-ink);
    font-weight: 750;
}

.cew3-meta-items {
    color: var(--ce-work-muted);
}

/* EXPLORE */

.cew3-project-bottom {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 13px;
}

body.post-type-archive-portfolio_project button.cew3-toggle,
body.post-type-archive-portfolio_project button.cew3-toggle:hover,
body.post-type-archive-portfolio_project button.cew3-toggle:focus,
body.post-type-archive-portfolio_project button.cew3-toggle:active {
    appearance: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--ce-work-bright) !important;
    box-shadow: none !important;
    font-family: inherit !important;
    font-size: 11px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    text-transform: none !important;
    cursor: pointer !important;
}

.cew3-toggle-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(30, 144, 255, 0.20);
    border-radius: 50%;
    background: rgba(30, 144, 255, 0.06);
}

.cew3-project.is-open .cew3-toggle-circle {
    color: #ffffff;
    background: var(--ce-work-blue);
}

/* EXPANDED */

.cew3-details[hidden] {
    display: none !important;
}

.cew3-details {
    border-top: 1px solid var(--ce-work-line);
    background: linear-gradient(180deg, #f9fcff, #f3f9ff);
}

.cew3-details-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
    gap: 42px;
    padding: 30px 28px 32px;
}

.cew3-details-copy {
    min-width: 0;
}

.cew3-detail-section + .cew3-detail-section {
    margin-top: 25px;
}

.cew3-detail-section h4 {
    margin: 0 0 8px;
    color: var(--ce-work-blue);
    font-size: 16px;
    font-weight: 700;
}

.cew3-detail-section p {
    margin: 0 0 14px;
    color: var(--ce-work-text);
    font-size: 14px;
    line-height: 1.7;
}

.cew3-detail-section p:last-child {
    margin-bottom: 0;
}

/* WHAT WE BUILT */

.cew3-built {
    margin-top: 28px;
}

.cew3-built-label {
    display: block;
    margin-bottom: 10px;
    color: var(--ce-work-muted);
    font-size: 8px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.cew3-built-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.cew3-built-list span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 9px;
    border: 1px solid rgba(30, 144, 255, 0.14);
    border-radius: 7px;
    background: #ffffff;
    color: var(--ce-work-blue);
    font-size: 9px;
    font-weight: 700;
}

/* VISUAL */

.cew3-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 330px;
    overflow: hidden;
    border: 1px solid rgba(20, 74, 158, 0.13);
    border-radius: 15px;
    background: linear-gradient(135deg, #edf7ff, #ffffff);
}

.cew3-visual img {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 430px !important;
    padding: 14px;
    object-fit: contain !important;
    object-position: center;
}

.cew3-no-image {
    color: var(--ce-work-muted);
    font-size: 11px;
}

/* CASE STUDY */

.cew3-case-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 27px;
    color: var(--ce-work-blue);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.cew3-case-link:hover {
    color: var(--ce-work-bright);
}

/* NO RESULTS */

.cew3-no-results {
    display: none;
    padding: 55px 25px;
    border: 1px dashed var(--ce-work-line);
    border-radius: 16px;
    color: var(--ce-work-muted);
    text-align: center;
}

.cew3-no-results.is-visible {
    display: block;
}

/* TABLET */

@media (max-width: 900px) {
    .cew3-tools-row {
        grid-template-columns: 1fr 1fr;
    }

    .cew3-search-wrap {
        grid-column: 1 / -1;
    }

    .cew3-details-inner {
        grid-template-columns: 1fr;
    }
}

/* MOBILE */

@media (max-width: 600px) {
    .cew3-container {
        width: calc(100% - 28px);
    }

    .cew3-hero {
        padding: 28px 0 27px;
    }

    .cew3-eyebrow {
        margin-bottom: 7px;
        font-size: 8px;
    }

    .cew3-hero h1 {
        font-size: 38px;
    }

    .cew3-hero p {
        max-width: none;
        margin-top: 10px;
        font-size: 14px;
        line-height: 1.45;
    }

    .cew3-tools {
        padding: 13px 0;
    }

    .cew3-tools-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .cew3-search-wrap {
        grid-column: auto;
    }

    .cew3-search,
    body.post-type-archive-portfolio_project button.cew3-filter-trigger {
        height: 44px !important;
    }

    .cew3-filter-menu {
        position: static;
        margin-top: 7px;
    }

    .cew3-filter-options {
        max-height: 240px;
    }

    .cew3-projects {
        padding: 27px 0 60px;
    }

    .cew3-heading {
        margin-bottom: 14px;
    }

    .cew3-heading h2 {
        font-size: 23px;
    }

    .cew3-project-main {
        padding: 20px 18px 17px;
    }

    .cew3-project-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .cew3-project-title {
        font-size: 25px;
    }

    .cew3-summary {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 16px;
    }

    .cew3-meta-line {
        display: grid;
        gap: 7px;
    }

    .cew3-project-bottom {
        justify-content: flex-start;
    }

    .cew3-details-inner {
        gap: 24px;
        padding: 24px 18px;
    }

    .cew3-visual {
        min-height: 230px;
    }

    .cew3-visual img {
        max-height: 320px !important;
    }
}
