/* Proof / Case Study Page */
body.proof-page {
    padding-top: 0;
}

.logo a {
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
}

/* Proof Hero */
.proof-hero {
    padding: 8rem 0 3rem;
    background: var(--bg-cream);
    border-bottom: 1px solid var(--border-color);
}

.proof-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
    background: var(--metallic-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.proof-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-secondary);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 2rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--primary-gold);
    color: var(--primary-gold-dark);
    background: rgba(212, 175, 55, 0.08);
}

/* Featured Work Section */
.proof-work {
    padding: 4rem 0;
}

.proof-section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary-gold-dark);
    text-align: center;
    margin-bottom: 3rem;
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

/* Featured cards group – golden box & spacing only in "All" filter view */
.proof-featured-group {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.proof-featured-group .proof-section-title {
    grid-column: 1 / -1;
    margin-bottom: 0.5rem;
}

.proof-work.proof-filter-all .proof-featured-group {
    border-radius: 1.5rem;
    padding: 2rem;
    margin-bottom: 2.5rem;
    background: rgba(212, 175, 55, 0.75);
}

.proof-work.proof-filter-all .proof-featured-group .proof-section-title {
    color: #fff;
}

/* When not "All": hide section title, make featured cards flow in main grid */
.proof-work:not(.proof-filter-all) .proof-featured-group .proof-section-title {
    display: none;
}

.proof-work:not(.proof-filter-all) .proof-featured-group {
    display: contents;
}

@media (max-width: 900px) {
    .proof-featured-group {
        grid-template-columns: 1fr;
    }
}

/* Proof Cards */
.proof-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.proof-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(212, 175, 55, 0.3);
}

.proof-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-gold-dark);
    background: rgba(212, 175, 55, 0.15);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
}

.proof-card-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 64px;
    margin-bottom: 1rem;
}

.proof-card-logo img {
    max-height: 100%;
    max-width: 140px;
    width: auto;
    object-fit: contain;
}

.proof-card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.proof-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.proof-tags span {
    font-size: 0.75rem;
    color: var(--text-light);
    background: var(--bg-light);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

.proof-card-heading {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-gold-dark);
    line-height: 1.3;
    margin-bottom: 1rem;
}

.proof-view-case {
    display: block;
    width: 100%;
    margin-top: auto;
    padding: 0.6rem 1.25rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-gold-dark);
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--primary-gold);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.proof-view-case:hover {
    background: rgba(212, 175, 55, 0.2);
    color: var(--primary-gold-dark);
}

/* Proof Modal */
.proof-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.proof-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.proof-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.proof-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    padding: 2rem 2rem 2.5rem;
    cursor: default;
}

.proof-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.proof-modal-close:hover {
    color: var(--text-primary);
}

.proof-modal-header {
    margin-bottom: 1.5rem;
    padding-right: 2.5rem;
}

.proof-modal-logo-wrap {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.proof-modal-logo {
    max-height: 48px;
    max-width: 120px;
    width: auto;
    object-fit: contain;
}

.proof-modal-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.proof-modal-body .proof-modal-blurb {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.proof-modal-body .proof-modal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.proof-modal-body .proof-modal-links a {
    font-size: 0.9rem;
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.proof-modal-body .proof-modal-links a:hover {
    color: var(--primary-gold-dark);
    text-decoration: underline;
}

.proof-modal-body h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.proof-modal-body h4:first-child {
    margin-top: 0;
}

.proof-modal-body ul {
    margin: 0 0 1rem 1.25rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.proof-modal-body li {
    margin-bottom: 0.35rem;
}

.proof-modal-body .proof-modal-videos {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.proof-modal-body .proof-modal-videos a {
    font-size: 0.9rem;
    color: var(--primary-gold);
    text-decoration: none;
    transition: color 0.2s ease;
}

.proof-modal-body .proof-modal-videos a:hover {
    color: var(--primary-gold-dark);
    text-decoration: underline;
}

.proof-modal-body .proof-placeholder {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

/* Truesight Analytics view (inside modal) */
.proof-analytics-section {
    margin-top: 1.5rem;
}

.proof-view-analytics {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-gold-dark);
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid var(--primary-gold);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.proof-view-analytics:hover {
    background: rgba(212, 175, 55, 0.2);
}

.proof-analytics-view[hidden] {
    display: none !important;
}

.proof-modal-body.showing-analytics .proof-modal-main {
    display: none;
}

.proof-modal-body.showing-analytics .proof-analytics-view {
    display: block !important;
}

.proof-analytics-back {
    display: block;
    margin-bottom: 1rem;
    padding: 0.4rem 0;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-gold);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.proof-analytics-back:hover {
    color: var(--primary-gold-dark);
}

.proof-analytics-collage {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.proof-collage-item {
    display: block;
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.proof-collage-item:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.proof-collage-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    aspect-ratio: 1;
}

@media (max-width: 480px) {
    .proof-analytics-collage {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Collage lightbox (focus view) */
.proof-collage-lightbox[hidden] {
    display: none !important;
}

.proof-collage-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.proof-collage-lightbox-bg {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

.proof-collage-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    font-size: 2rem;
    line-height: 1;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease;
}

.proof-collage-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.proof-collage-lightbox-img {
    position: relative;
    z-index: 1;
    max-width: 100%;
    max-height: calc(100vh - 4rem);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Proof CTA Section */
.proof-cta {
    padding: 4rem 0;
    background: var(--bg-dark);
    color: var(--bg-white);
}

.proof-disciplines {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    text-align: center;
}

.proof-discipline-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
}

.proof-discipline h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.proof-discipline p {
    font-size: 0.95rem;
    opacity: 0.85;
}

.proof-cta-content {
    text-align: center;
}

.proof-cta-content .btn {
    margin-bottom: 1rem;
}

.proof-cta-note {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Filter: hide cards that don't match */
.proof-card.filtered-out {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .proof-hero {
        padding: 6rem 0 2rem;
    }
    .proof-grid {
        grid-template-columns: 1fr;
    }
    .proof-modal {
        padding: 1rem;
    }
    .proof-modal-dialog {
        padding: 1.5rem 1.5rem 2rem;
    }
    .proof-disciplines {
        grid-template-columns: 1fr;
    }
}
