@import url("template-project.css");

.post-type-archive-cs_projeto .page-header,
.post-type-archive-cs_projeto .page-title,
.post-type-archive-cs_projeto .page-title-bar,
.post-type-archive-cs_projeto .breadcrumbs,
.post-type-archive-cs_projeto .page-header-content {
    display: none !important;
}

.cs-projects-archive {
    --cs-navy: #07111f;
    --cs-teal: #009eae;
    --cs-teal-dark: #008694;
    --cs-blue: #006da8;
    --cs-muted: #66717f;
    --cs-soft: #f6fafb;
    --cs-line: #e3e8eb;
    overflow: hidden;
    color: var(--cs-navy);
    background: #fff;
}

.cs-projects-archive *,
.cs-projects-archive *::before,
.cs-projects-archive *::after {
    box-sizing: border-box;
}

.cs-projects-container {
    width: min(1180px, calc(100% - 40px));
}

.cs-projects-archive .cs-project-label {
    margin-bottom: 14px;
    color: var(--cs-teal);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .02em;
}

.cs-projects-hero {
    position: relative;
    isolation: isolate;
    min-height: 560px;
    padding: 56px 0 46px;
    border-bottom: 1px solid #edf0f2;
    background:
        linear-gradient(105deg, rgba(255, 255, 255, .98) 0%, rgba(255, 255, 255, .92) 48%, rgba(247, 250, 251, .78) 100%),
        radial-gradient(circle at 79% 44%, rgba(0, 158, 174, .09), transparent 30%),
        linear-gradient(105deg, #fff 0%, #fff 48%, #f7fafb 100%);
}

.cs-projects-hero::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, .92) 42%, rgba(255, 255, 255, .38) 72%, rgba(255, 255, 255, .72) 100%);
}

.cs-projects-hero::after {
    position: absolute;
    top: 70px;
    right: 5%;
    width: 116px;
    height: 116px;
    content: "";
    opacity: .42;
    background-image: radial-gradient(var(--cs-teal) 1.2px, transparent 1.2px);
    background-size: 10px 10px;
}

.cs-projects-hero .cs-project-breadcrumb {
    position: relative;
    z-index: 2;
    margin-bottom: 40px;
    color: var(--cs-muted);
    font-size: 13px;
}

.cs-projects-hero .cs-project-breadcrumb a {
    color: var(--cs-navy);
}

.cs-projects-hero-grid {
    position: relative;
    z-index: 2;
    display: block;
    min-height: 390px;
}

.cs-projects-hero-grid > div:first-child {
    position: relative;
    z-index: 2;
}

.cs-projects-hero h1 {
    max-width: 680px;
    margin: 0 0 24px;
    color: var(--cs-navy);
    font-size: clamp(44px, 5.2vw, 68px);
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1.06;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}

.cs-projects-hero h1::first-line {
    color: var(--cs-navy);
}

.cs-projects-hero .cs-project-lead {
    max-width: 560px;
    color: var(--cs-muted);
    font-size: 16px;
    line-height: 1.85;
}

.cs-projects-hero-image {
    position: absolute;
    z-index: 1;
    inset: 34px 0 0 auto;
    width: min(58vw, 720px);
    min-height: 0;
    pointer-events: none;
}

.cs-projects-hero-image img {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    opacity: .82;
}

.cs-projects-filters {
    position: relative;
    z-index: 3;
    padding: 0;
    margin-top: -22px;
}

.cs-projects-filter-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px;
    border: 1px solid var(--cs-line);
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(7, 17, 31, .05);
}

.cs-projects-filter-select {
    display: none;
}

.cs-projects-filter-strip button {
    display: inline-flex;
    min-height: 38px;
    padding: 0 13px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 4px;
    background: #fff;
    color: var(--cs-navy);
    cursor: pointer;
    font-size: 12px;
    font-weight: 750;
    text-transform: none;
    transition: background .2s ease, color .2s ease;
}

.cs-projects-filter-strip button:hover {
    color: var(--cs-teal);
    background: #f5fbfc;
}

.cs-projects-filter-strip button.active {
    color: var(--cs-teal);
    background: #eefafb;
    box-shadow: none;
}

.cs-projects-filter-strip button img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.cs-projects-filter-strip button i,
.cs-projects-filter-strip button .dashicons {
    width: auto;
    height: auto;
    color: currentColor;
    font-size: 18px;
    line-height: 1;
}

.cs-projects-grid-section {
    padding: 56px 0 24px;
    background: #fff;
}

.cs-projects-grid {
    gap: 24px;
}

.cs-projects-card {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    border: 1px solid var(--cs-line);
    border-radius: 6px;
    background: #fff;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.cs-projects-card:hover {
    border-color: rgba(0, 158, 174, .5);
    box-shadow: 0 10px 24px rgba(7, 17, 31, .05);
}

.cs-projects-card-image {
    display: block;
    overflow: hidden;
    background: var(--cs-soft);
    border-bottom: 1px solid var(--cs-line);
}

.cs-projects-card-image img {
    aspect-ratio: 16 / 9;
    transition: none;
}

.cs-projects-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px 20px 22px;
}

.cs-projects-card-body > span {
    display: inline-block;
    margin-bottom: 7px;
    color: var(--cs-teal);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .01em;
    text-transform: uppercase;
}

.cs-projects-card h2 {
    margin: 0 0 10px;
    color: var(--cs-navy);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.3;
}

.cs-projects-card p {
    min-height: 0;
    margin: 0 0 18px;
    color: var(--cs-muted);
    font-size: 13px;
    line-height: 1.65;
}

.cs-projects-card-body a:last-child {
    display: inline-flex;
    width: fit-content;
    min-height: auto;
    margin-top: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--cs-teal) !important;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none !important;
    text-transform: uppercase;
    transition: color .2s ease;
}

.cs-projects-card-body a:last-child:hover {
    background: transparent;
    color: var(--cs-teal-dark) !important;
}

.cs-projects-stats {
    padding: 42px 0 24px;
}

.cs-projects-stats-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(100deg, #effafb, #f7fbfc);
    box-shadow: none;
}

.cs-projects-stats-strip article {
    display: grid;
    min-height: 105px;
    padding: 24px 30px;
    grid-template-columns: 48px 1fr;
    gap: 5px 16px;
    border-right: 1px solid rgba(7, 17, 31, .08);
}

.cs-projects-stats-strip article.cs-project-no-icon {
    grid-template-columns: 1fr;
}

.cs-projects-stats-strip article:last-child {
    border-right: 0;
}

.cs-projects-stats-strip .cs-project-icon {
    grid-row: span 2;
    color: var(--cs-teal);
}

.cs-projects-stats-strip strong {
    color: var(--cs-teal);
    font-size: 27px;
    font-weight: 850;
    line-height: 1;
}

.cs-projects-stats-strip span {
    grid-column: auto;
    color: var(--cs-navy);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.45;
}

.cs-projects-stats-strip article.cs-project-no-icon span {
    grid-column: 1;
}

.cs-projects-archive .cs-project-cta {
    padding: 34px 0 75px;
}

.cs-projects-archive .cs-project-cta-box {
    grid-template-columns: 82px 1fr auto;
    padding: 30px 55px;
    border-radius: 8px;
    background:
        radial-gradient(circle at 93% 42%, rgba(255, 255, 255, .22) 1.4px, transparent 1.4px) 0 0/10px 10px,
        linear-gradient(100deg, #02a9b9, #008d9d);
}

.cs-projects-archive .cs-project-cta-icon {
    width: 74px;
    height: 74px;
    color: var(--cs-teal);
}

.cs-projects-archive .cs-project-cta-box h2 {
    font-size: 25px;
    font-weight: 850;
}

.cs-projects-archive .cs-project-cta-box a {
    min-height: 48px;
    padding: 0 26px;
    border-radius: 4px;
    background: #fff;
    color: var(--cs-teal) !important;
}

.cs-projects-archive .cs-project-cta-box a:hover {
    color: var(--cs-teal-dark) !important;
}

.cs-projects-card.is-hidden {
    display: none;
}

@media (max-width: 1050px) {
    .cs-projects-grid,
    .cs-projects-stats-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cs-projects-stats-strip article:nth-child(2) {
        border-right: 0;
    }
}

@media (max-width: 850px) {
    .cs-projects-hero {
        min-height: auto;
        padding-top: 48px;
    }

    .cs-projects-archive .cs-project-cta-box {
        grid-template-columns: 1fr;
    }

    .cs-projects-hero-grid {
        min-height: 420px;
    }

    .cs-projects-hero-image {
        inset: 108px -70px 0 auto;
        width: min(92vw, 680px);
        opacity: .72;
    }

}

@media (max-width: 620px) {
    .cs-projects-container {
        width: min(100% - 28px, 1180px);
    }

    .cs-projects-hero h1 {
        font-size: 42px;
        max-width: 100%;
    }

    .cs-projects-hero-grid {
        min-height: 380px;
    }

    .cs-projects-hero-image {
        inset: 150px -95px 0 auto;
        width: 115vw;
        opacity: .46;
    }

    .cs-projects-grid,
    .cs-projects-stats-strip {
        grid-template-columns: 1fr;
    }

    .cs-projects-stats-strip article {
        border-right: 0;
        border-bottom: 1px solid rgba(7, 17, 31, .08);
    }

    .cs-projects-archive .cs-project-cta-box {
        padding: 28px;
        text-align: center;
    }

    .cs-projects-archive .cs-project-cta-icon {
        margin: 0 auto;
    }
}

/* Responsive hardening */
.cs-projects-archive,
.cs-projects-archive * {
    min-width: 0;
}

.cs-projects-archive img,
.cs-projects-archive svg,
.cs-projects-archive video {
    max-width: 100%;
    height: auto;
}

.cs-projects-archive h1,
.cs-projects-archive h2,
.cs-projects-archive h3,
.cs-projects-archive p,
.cs-projects-archive a,
.cs-projects-archive span {
    overflow-wrap: break-word;
    word-break: normal;
}

.cs-projects-filter-strip button,
.cs-projects-card-body a:last-child,
.cs-projects-archive .cs-project-cta-box a {
    max-width: 100%;
    text-align: center;
    white-space: normal;
}

@media (max-width: 1050px) {
    .cs-projects-hero {
        min-height: auto;
    }

    .cs-projects-stats-strip article {
        border-bottom: 1px solid rgba(7, 17, 31, .08);
    }
}

@media (max-width: 850px) {
    .cs-projects-hero-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 26px;
        min-height: auto;
    }

    .cs-projects-hero-image {
        position: static;
        width: min(100%, 620px);
        margin: 0 auto;
        opacity: 1;
    }

    .cs-projects-hero-image img {
        position: static;
        max-height: 360px;
    }

    .cs-projects-grid-section {
        padding-top: 48px;
    }

    .cs-projects-filter-select {
        position: relative;
        display: grid;
        gap: 8px;
        padding: 14px;
        border: 1px solid var(--cs-line);
        border-radius: 8px;
        background: #fff;
        box-shadow: 0 8px 22px rgba(7, 17, 31, .05);
    }

    .cs-projects-filter-select label {
        color: var(--cs-teal);
        font-size: 11px;
        font-weight: 850;
        letter-spacing: .02em;
        line-height: 1;
        text-transform: uppercase;
    }

    .cs-projects-filter-select select {
        width: 100%;
        min-height: 46px;
        padding: 0 42px 0 14px;
        border: 1px solid #d9e7eb;
        border-radius: 6px;
        background:
            linear-gradient(45deg, transparent 50%, var(--cs-teal) 50%) calc(100% - 21px) 50% / 6px 6px no-repeat,
            linear-gradient(135deg, var(--cs-teal) 50%, transparent 50%) calc(100% - 16px) 50% / 6px 6px no-repeat,
            #f7fcfd;
        color: var(--cs-navy);
        font-size: 14px;
        font-weight: 800;
        line-height: 1.25;
        appearance: none;
    }

    .cs-projects-filter-strip {
        display: none;
    }

    .cs-projects-archive .cs-project-cta-box a {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 620px) {
    .cs-projects-container {
        width: 100%;
        padding-right: 12px;
        padding-left: 12px;
    }

    .cs-projects-hero {
        padding: 58px 0 36px;
    }

    .cs-projects-hero .cs-project-breadcrumb {
        margin-bottom: 26px;
    }

    .cs-projects-hero h1 {
        font-size: clamp(28px, 8.4vw, 34px);
        line-height: 1.12;
    }

    .cs-projects-hero .cs-project-lead {
        font-size: 15px;
        line-height: 1.72;
    }

    .cs-projects-hero-image img {
        max-height: 280px;
    }

    .cs-projects-filter-select {
        padding: 12px;
    }

    .cs-projects-card-body {
        padding: 18px;
    }

    .cs-projects-stats-strip article {
        grid-template-columns: 42px minmax(0, 1fr);
        padding: 22px 20px;
    }

    .cs-projects-archive .cs-project-cta-box {
        padding: 28px 22px;
    }
}
