/* Public showcase pages: agencies, projects, certificates and satisfaction letters. */
.showcase-page {
    --showcase-primary: #0d9488;
    --showcase-primary-dark: #08756c;
    --showcase-accent: #ffa920;
    --showcase-ink: #172027;
    --showcase-muted: #69747c;
    --showcase-surface: #ffffff;
    --showcase-soft: #f5f8f8;
    --showcase-line: #e7eded;
    padding: 54px 0 82px;
    background: #fff;
}

.showcase-page * {
    box-sizing: border-box;
}

.showcase-intro {
    max-width: 760px;
    margin: 0 auto 38px;
    text-align: center;
}

.showcase-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 6px 14px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: rgba(13, 148, 136, .09);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.showcase-eyebrow::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--showcase-accent);
}

.showcase-title {
    margin: 0 0 14px;
    color: var(--showcase-surface);
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.45;
    font-weight: 800;
}

.showcase-lead {
    max-width: 650px;
    margin: 0 auto;
    color: var(--showcase-muted);
    font-size: 15px;
    line-height: 2;
}

.showcase-empty {
    padding: 48px 24px;
    border-radius: 18px;
    background: var(--showcase-soft);
    color: var(--showcase-muted);
    text-align: center;
}

/* Project listing */
.showcase-project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.showcase-project-card {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border-radius: 18px;
    background: var(--showcase-surface);
    box-shadow: 0 10px 34px rgba(20, 45, 47, .08);
    transition: transform .28s ease, box-shadow .28s ease;
}

.showcase-project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 42px rgba(20, 45, 47, .13);
}

.showcase-project-card__media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #edf2f2;
}

.showcase-project-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.showcase-project-card:hover .showcase-project-card__media img {
    transform: scale(1.035);
}

.showcase-project-card__badge {
    position: absolute;
    inset-inline-start: 14px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 10px;
    background: rgba(17, 29, 31, .78);
    color: #fff;
    font-size: 12px;
    backdrop-filter: blur(8px);
}

.showcase-project-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px 22px 20px;
}

.showcase-project-card__title {
    margin: 0 0 10px;
    color: var(--showcase-ink);
    font-size: 19px;
    line-height: 1.75;
    font-weight: 800;
}

.showcase-project-card__title a {
    color: inherit;
}

.showcase-project-card__excerpt {
    display: -webkit-box;
    min-height: 57px;
    margin: 0 0 18px;
    overflow: hidden;
    color: var(--showcase-muted);
    font-size: 13.5px;
    line-height: 1.9;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.showcase-project-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--showcase-line);
}

.showcase-project-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #818b91;
    font-size: 12px;
}

.showcase-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--showcase-primary-dark);
    font-size: 13px;
    font-weight: 800;
}

.showcase-link__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(13, 148, 136, .1);
    transition: transform .2s ease, background .2s ease;
}

.showcase-link:hover .showcase-link__arrow {
    transform: translateX(-3px);
    background: rgba(13, 148, 136, .17);
}

html[dir="ltr"] .showcase-link:hover .showcase-link__arrow {
    transform: translateX(3px);
}

/* Agencies */
.showcase-agencies {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.showcase-agency {
    position: relative;
    display: flex;
    min-height: 92px;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    overflow: hidden;
    border: 1px solid var(--showcase-line);
    border-radius: 16px;
    background: #fff;
    transition: border-color .22s ease, transform .22s ease, box-shadow .22s ease;
}

.showcase-agency::after {
    content: '';
    position: absolute;
    inset-inline-end: -24px;
    top: -28px;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: rgba(13, 148, 136, .055);
}

.showcase-agency:hover {
    transform: translateY(-3px);
    border-color: rgba(13, 148, 136, .35);
    box-shadow: 0 12px 28px rgba(20, 45, 47, .07);
}

.showcase-agency__icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(13, 148, 136, .1);
    color: var(--showcase-primary-dark);
}

.showcase-agency__icon svg {
    width: 22px;
    height: 22px;
}

.showcase-agency__content {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.showcase-agency__label {
    margin-bottom: 3px;
    color: #929a9f;
    font-size: 11px;
}

.showcase-agency__title {
    margin: 0;
    color: var(--showcase-ink);
    font-size: 15px;
    line-height: 1.8;
    font-weight: 800;
}

/* Documents (certificates / satisfaction letters) */
.showcase-document-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.showcase-document {
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 32px rgba(20, 45, 47, .075);
    transition: transform .25s ease, box-shadow .25s ease;
}

.showcase-document:hover {
    transform: translateY(-4px);
    box-shadow: 0 17px 38px rgba(20, 45, 47, .12);
}

.showcase-document__image {
    position: relative;
    display: flex;
    width: 100%;
    aspect-ratio: 4 / 5;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 16px;
    border: 0;
    background: #f5f7f7;
    cursor: zoom-in;
}

.showcase-document__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
    transition: transform .35s ease;
}

.showcase-document:hover .showcase-document__image img {
    transform: scale(1.018);
}

.showcase-document__zoom {
    position: absolute;
    inset-inline-end: 14px;
    bottom: 14px;
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(17, 29, 31, .82);
    color: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
}

.showcase-document__body {
    padding: 18px 20px 20px;
}

.showcase-document__title {
    margin: 0;
    color: var(--showcase-ink);
    font-size: 16px;
    line-height: 1.8;
    font-weight: 800;
    text-align: center;
}

/* Project detail */
.showcase-project-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(320px, .94fr);
    gap: 38px;
    align-items: center;
    margin-bottom: 54px;
}

.showcase-project-hero__media {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #edf2f2;
    box-shadow: 0 18px 45px rgba(20, 45, 47, .12);
}

.showcase-project-hero__media::before {
    content: '';
    display: block;
    padding-top: 68%;
}

.showcase-project-hero__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.showcase-project-hero__content {
    min-width: 0;
}

.showcase-project-hero__title {
    margin: 0 0 17px;
    color: var(--showcase-ink);
    font-size: clamp(28px, 3.8vw, 46px);
    line-height: 1.5;
    font-weight: 850;
}

.showcase-project-hero__summary {
    display: -webkit-box;
    margin: 0 0 24px;
    overflow: hidden;
    color: var(--showcase-muted);
    font-size: 15px;
    line-height: 2.05;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.showcase-project-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.showcase-project-stat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 13px;
    border-radius: 12px;
    background: var(--showcase-soft);
    color: #5f6a71;
    font-size: 12px;
    font-weight: 700;
}

.showcase-section {
    margin-top: 56px;
}

.showcase-section:first-child {
    margin-top: 0;
}

.showcase-section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.showcase-section__head h2 {
    position: relative;
    margin: 0;
    padding-inline-start: 15px;
    color: var(--showcase-ink);
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.6;
    font-weight: 850;
}

.showcase-section__head h2::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 9px;
    bottom: 9px;
    width: 4px;
    border-radius: 6px;
    background: var(--showcase-primary);
}

.showcase-section__head p {
    max-width: 480px;
    margin: 0;
    color: var(--showcase-muted);
    font-size: 13px;
    line-height: 1.9;
}

.showcase-richtext {
    padding: 28px 30px;
    border-radius: 18px;
    background: var(--showcase-soft);
    color: #48545a;
    font-size: 15px;
    line-height: 2.15;
}

.showcase-richtext > *:first-child { margin-top: 0; }
.showcase-richtext > *:last-child { margin-bottom: 0; }
.showcase-richtext p { margin: 0 0 15px; }
.showcase-richtext h2,
.showcase-richtext h3,
.showcase-richtext h4 {
    margin: 25px 0 12px;
    color: var(--showcase-ink);
    line-height: 1.7;
}
.showcase-richtext h2 { font-size: 23px; }
.showcase-richtext h3 { font-size: 20px; }
.showcase-richtext h4 { font-size: 17px; }
.showcase-richtext ul,
.showcase-richtext ol { padding-inline-start: 22px; }
.showcase-richtext img { max-width: 100%; height: auto; border-radius: 12px; }
.showcase-richtext table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; }
.showcase-richtext th,
.showcase-richtext td { padding: 10px 12px; border: 1px solid #dfe7e7; }

.showcase-video {
    overflow: hidden;
    border-radius: 20px;
    background: #11191c;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .12);
}

.showcase-video video {
    display: block;
    width: 100%;
    max-height: 700px;
    background: #111;
}

.showcase-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.showcase-gallery__item {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 0;
    border-radius: 15px;
    background: #edf2f2;
    cursor: zoom-in;
    padding: 0;
}

.showcase-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .38s ease;
}

.showcase-gallery__item:hover img {
    transform: scale(1.045);
}

.showcase-gallery__item::after {
    content: '+';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(7, 55, 52, 0);
    color: rgba(255,255,255,0);
    font-size: 34px;
    transition: background .25s ease, color .25s ease;
}

.showcase-gallery__item:hover::after {
    background: rgba(7, 55, 52, .32);
    color: #fff;
}

/* Feedback */
.showcase-feedback-layout {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
    gap: 28px;
    align-items: start;
}

.showcase-feedback-list {
    display: grid;
    gap: 13px;
}

.showcase-feedback {
    padding: 19px 20px;
    border-radius: 16px;
    background: var(--showcase-soft);
}

.showcase-feedback__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.showcase-feedback__name {
    color: var(--showcase-ink);
    font-size: 14px;
    font-weight: 800;
}

.showcase-feedback__date {
    color: #8e979c;
    font-size: 11px;
}

.showcase-feedback__text {
    margin: 0;
    color: #59656b;
    font-size: 13.5px;
    line-height: 1.95;
    white-space: pre-line;
}

.showcase-feedback-form {
    position: sticky;
    top: 100px;
    padding: 26px;
    border: 1px solid var(--showcase-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(20, 45, 47, .07);
}

.showcase-feedback-form__title {
    margin: 0 0 6px;
    color: var(--showcase-ink);
    font-size: 20px;
    font-weight: 850;
}

.showcase-feedback-form__note {
    margin: 0 0 19px;
    color: var(--showcase-muted);
    font-size: 12.5px;
    line-height: 1.8;
}

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

.showcase-field {
    margin-bottom: 14px;
}

.showcase-field label {
    display: block;
    margin-bottom: 7px;
    color: #39464c;
    font-size: 12px;
    font-weight: 800;
}

.showcase-field input,
.showcase-field textarea {
    width: 100%;
    border: 1px solid #dfe6e6;
    border-radius: 11px;
    outline: none;
    background: #fff;
    color: var(--showcase-ink);
    font-size: 13px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.showcase-field input {
    height: 46px;
    padding: 0 13px;
}

.showcase-field textarea {
    min-height: 136px;
    padding: 12px 13px;
    resize: vertical;
    line-height: 1.8;
}

.showcase-field input:focus,
.showcase-field textarea:focus {
    border-color: rgba(13, 148, 136, .7);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, .09);
}

.showcase-field__error {
    display: block;
    margin-top: 5px;
    color: #c74343;
    font-size: 11px;
}

.showcase-submit {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    border: 0;
    border-radius: 11px;
    background: var(--showcase-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.showcase-submit:hover {
    background: var(--showcase-primary-dark);
    transform: translateY(-1px);
}

.showcase-alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 11px;
    font-size: 12.5px;
    line-height: 1.8;
}

.showcase-alert--success {
    background: #eaf8f4;
    color: #176a5e;
}

.showcase-alert--error {
    background: #fff0f0;
    color: #a63f3f;
}

.showcase-related {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.showcase-related__item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 10px;
    border: 1px solid var(--showcase-line);
    border-radius: 14px;
    background: #fff;
    transition: border-color .2s ease, transform .2s ease;
}

.showcase-related__item:hover {
    transform: translateY(-2px);
    border-color: rgba(13, 148, 136, .35);
}

.showcase-related__image {
    width: 92px;
    height: 72px;
    flex: 0 0 92px;
    overflow: hidden;
    border-radius: 10px;
    background: #edf2f2;
}

.showcase-related__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.showcase-related__title {
    margin: 0;
    color: var(--showcase-ink);
    font-size: 13px;
    line-height: 1.8;
    font-weight: 800;
}

/* Pagination */
.showcase-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 38px;
}

.showcase-pagination a,
.showcase-pagination span {
    display: inline-flex;
    min-width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border-radius: 10px;
    background: var(--showcase-soft);
    color: #58646a;
    font-size: 12px;
    font-weight: 700;
}

.showcase-pagination a:hover,
.showcase-pagination .is-active {
    background: var(--showcase-primary);
    color: #fff;
}

.showcase-pagination .is-disabled {
    opacity: .45;
}

/* Lightbox */
.showcase-lightbox {
    position: fixed;
    z-index: 99999;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(6, 14, 16, .9);
}

.showcase-lightbox.is-open {
    display: flex;
}

.showcase-lightbox__inner {
    position: relative;
    display: flex;
    max-width: min(1100px, 96vw);
    max-height: 92vh;
    flex-direction: column;
    align-items: center;
}

.showcase-lightbox__image {
    display: block;
    max-width: 100%;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
}

.showcase-lightbox__title {
    margin-top: 12px;
    color: #fff;
    font-size: 13px;
    text-align: center;
}

.showcase-lightbox__close {
    position: absolute;
    top: -16px;
    inset-inline-end: -16px;
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #182226;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0,0,0,.25);
}

body.showcase-lightbox-open {
    overflow: hidden;
}

@media (max-width: 1199px) {
    .showcase-project-grid,
    .showcase-document-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .showcase-agencies {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .showcase-project-hero {
        grid-template-columns: minmax(0, 1fr) minmax(300px, .9fr);
        gap: 28px;
    }
}

@media (max-width: 991px) {
    .showcase-page {
        padding: 42px 0 65px;
    }

    .showcase-project-hero {
        grid-template-columns: 1fr;
        margin-bottom: 45px;
    }

    .showcase-project-hero__media {
        max-width: 760px;
    }

    .showcase-feedback-layout {
        grid-template-columns: 1fr;
    }

    .showcase-feedback-form {
        position: static;
    }

    .showcase-related {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .showcase-page {
        padding: 34px 0 52px;
    }

    .showcase-intro {
        margin-bottom: 28px;
    }

    .showcase-project-grid,
    .showcase-document-grid,
    .showcase-agencies {
        grid-template-columns: 1fr;
    }

    .showcase-project-card__body {
        padding: 18px;
    }

    .showcase-document__image {
        aspect-ratio: 4 / 5;
    }

    .showcase-project-hero {
        gap: 22px;
    }

    .showcase-project-hero__media {
        border-radius: 16px;
    }

    .showcase-section {
        margin-top: 42px;
    }

    .showcase-section__head {
        display: block;
    }

    .showcase-section__head p {
        margin-top: 8px;
    }

    .showcase-richtext {
        padding: 21px 18px;
        border-radius: 14px;
    }

    .showcase-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .showcase-feedback-form {
        padding: 20px 17px;
    }

    .showcase-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .showcase-lightbox {
        padding: 15px;
    }

    .showcase-lightbox__close {
        top: -10px;
        inset-inline-end: -7px;
    }
}

@media (max-width: 479px) {
    .showcase-title {
        font-size: 27px;
    }

    .showcase-project-card__footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .showcase-gallery {
        grid-template-columns: 1fr;
    }

    .showcase-project-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}
