:root {
    --cp-primary: #0E7C7B;
    --cp-secondary: #041A2F;
    --cp-accent: #EC4899;
    --cp-indigo: #4338ca;
    --cp-amber: #f59e0b;
    --cp-amber-soft: rgba(245, 158, 11, 0.14);
    --bg-dark: #0b192c;
    --bg-card: #112240;
    --bg-light: #f4f7fb;
    --text-main: #1e293b;
    --text-muted: #475569;
    --text-light: #f1f5f9;
    --border-subtle: #e2e8f0;
}

body {
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    background: linear-gradient(180deg, #eef2f7 0%, #ffffff 42%);
    color: var(--text-main);
    margin: 0;
}

h1, h2, h3, .niche-number, .badge-top, .section-kicker {
    font-family: 'Space Grotesk', 'Manrope', sans-serif;
}

.project-hero {
    background: linear-gradient(135deg, var(--cp-secondary) 0%, var(--cp-primary) 100%);
}

.project-hero::after {
    content: '';
    display: block;
    height: 4px;
    background: var(--cp-accent);
}

.gallery-grid img,
.before-after img {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery-grid img:hover,
.before-after img:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
}

.detail-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
}

.cta-link {
    color: var(--cp-indigo);
}

.cta-link:hover {
    color: #312e81;
}

/* ========== Relatório técnico (Capoto Geométrico) ========== */

.report-page {
    background:
        radial-gradient(circle at 12% 8%, rgba(14, 124, 123, 0.08), transparent 34%),
        radial-gradient(circle at 88% 0%, rgba(245, 158, 11, 0.08), transparent 28%),
        linear-gradient(180deg, #eef3f8 0%, #f8fafc 40%, #ffffff 100%);
    color: var(--text-main);
    line-height: 1.65;
}

.report-container {
    max-width: 1120px;
    margin: 0 auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.report-header {
    background:
        linear-gradient(145deg, rgba(14, 124, 123, 0.22), transparent 42%),
        linear-gradient(135deg, var(--bg-dark) 0%, #13283f 55%, #0e4f4e 100%);
    color: var(--text-light);
    padding: 1.75rem 0 2.1rem;
    border-bottom: 4px solid var(--cp-amber);
    position: relative;
    overflow: hidden;
}

.report-header::before {
    content: '';
    position: absolute;
    inset: auto -10% -40% auto;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.18), transparent 68%);
    pointer-events: none;
}

.report-header-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.75rem;
    width: 100%;
    margin-bottom: 1rem;
}

.report-back {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: rgba(241, 245, 249, 0.82);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    transition: color 0.2s ease;
}

.report-back:hover {
    color: #fff;
}

.badge-top {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: var(--cp-amber-soft);
    border: 1px solid rgba(245, 158, 11, 0.42);
    color: #fbbf24;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0;
}

.badge-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--cp-amber);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2);
}

.report-header h1 {
    font-size: clamp(1.05rem, 1.7vw, 1.45rem);
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.7rem;
    max-width: none;
    white-space: nowrap;
}

.report-header .subtitle {
    font-size: 0.95rem;
    color: #cbd5e1;
    max-width: 760px;
    margin: 0;
    line-height: 1.55;
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 0.85rem;
    margin-top: 1.35rem;
    padding-top: 1.15rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.meta-item span {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #94a3b8;
    margin-bottom: 0.3rem;
}

.meta-item strong {
    font-size: 0.95rem;
    color: #fff;
    font-weight: 700;
}

.report-main {
    padding-top: 2.25rem;
    padding-bottom: 1rem;
}

.section-kicker {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cp-primary);
    margin: 0 0 0.45rem;
}

.executive-summary,
.niche-section,
.before-after-panel,
.report-cta {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.75rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(226, 232, 240, 0.9);
    backdrop-filter: blur(6px);
}

.executive-summary {
    border-left: 5px solid var(--cp-primary);
}

.executive-summary h2,
.niche-header h3,
.before-after-copy h2,
.report-cta h2 {
    margin: 0 0 0.75rem;
    color: var(--bg-dark);
    line-height: 1.25;
}

.executive-summary h2 {
    font-size: 1.4rem;
}

.executive-summary p,
.niche-section > p,
.before-after-copy p,
.report-cta p {
    color: var(--text-muted);
    margin: 0;
}

.before-after-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.before-after-grid figure {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    background: #fff;
}

.before-after-grid img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.before-after-grid figcaption {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--bg-dark);
}

.niche-header {
    display: flex;
    align-items: flex-start;
    gap: 0.95rem;
    margin-bottom: 1.15rem;
    padding-bottom: 0.95rem;
    border-bottom: 1px solid #eef2f7;
}

.niche-number {
    background: linear-gradient(145deg, var(--bg-dark), #16324f);
    color: var(--cp-amber);
    font-weight: 700;
    font-size: 0.95rem;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.25);
}

.niche-label {
    margin: 0 0 0.2rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cp-primary);
}

.niche-header h3 {
    font-size: 1.22rem;
}

.tech-specs {
    background: linear-gradient(180deg, #f1f5f9 0%, #eef6f5 100%);
    border-radius: 12px;
    padding: 1.15rem 1.35rem;
    margin: 1.25rem 0 0;
    font-size: 0.95rem;
    border: 1px solid rgba(14, 124, 123, 0.12);
}

.tech-specs strong {
    color: var(--bg-dark);
}

.tech-specs ul {
    margin: 0.55rem 0 0 1.15rem;
    padding: 0;
}

.tech-specs li {
    margin-bottom: 0.45rem;
    color: var(--text-muted);
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.media-grid-single {
    grid-template-columns: minmax(0, 1fr);
}

.media-card {
    position: relative;
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.media-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

.media-card img,
.media-card video {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    background: #0f172a;
}

.media-caption {
    padding: 1.05rem 1.15rem 1.2rem;
    flex-grow: 1;
}

.media-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.22rem 0.55rem;
    border-radius: 6px;
    background: #e2e8f0;
    color: var(--bg-dark);
    margin-bottom: 0.55rem;
}

.media-tag.video-tag {
    background: rgba(245, 158, 11, 0.2);
    color: #b45309;
}

.media-tag.alert-tag {
    background: #fee2e2;
    color: #991b1b;
}

.media-caption strong {
    display: block;
    color: var(--bg-dark);
    margin-bottom: 0.35rem;
    font-size: 0.98rem;
}

.media-caption p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin: 0;
}

.report-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    background:
        linear-gradient(135deg, rgba(14, 124, 123, 0.08), rgba(245, 158, 11, 0.08)),
        #fff;
    border-color: rgba(14, 124, 123, 0.18);
}

.report-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-weight: 800;
    text-decoration: none;
    padding: 0.85rem 1.25rem;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #0e7c7b, #0a5f5e);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #10928f, #0e7c7b);
}

.btn-secondary {
    border: 1.5px solid #0e7c7b;
    color: #0e7c7b;
    background: transparent;
}

.btn-secondary:hover {
    background: rgba(14, 124, 123, 0.08);
}

.report-footer {
    background: var(--bg-dark);
    color: #94a3b8;
    text-align: center;
    padding: 2.25rem 0;
    margin-top: 1.5rem;
    font-size: 0.88rem;
}

.report-footer strong {
    color: #fff;
}

.report-footer-meta {
    margin-top: 0.4rem;
    font-size: 0.8rem;
}

.report-footer-link {
    display: inline-block;
    margin-top: 0.85rem;
    color: #fbbf24;
    font-weight: 700;
    text-decoration: none;
}

.report-footer-link:hover {
    color: #fde68a;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ========== Lightbox media ========== */

.media-card.is-expandable {
    cursor: zoom-in;
}

.media-expand-hint {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 2;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 999px;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(4, 26, 47, 0.72);
    color: #fff;
    font-size: 0.85rem;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.media-card.is-expandable:hover .media-expand-hint,
.media-card.is-expandable:focus-within .media-expand-hint {
    opacity: 1;
    transform: scale(1);
}

.before-after-grid figure {
    position: relative;
    cursor: zoom-in;
}

.before-after-grid figure .media-expand-hint {
    opacity: 0.85;
}

.before-after-grid figure:hover .media-expand-hint {
    opacity: 1;
    background: rgba(14, 124, 123, 0.92);
}

.media-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(4, 26, 47, 0.88);
    backdrop-filter: blur(8px);
}

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

.media-lightbox-dialog {
    position: relative;
    width: min(1100px, 100%);
    max-height: calc(100vh - 2.5rem);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.media-lightbox-stage {
    position: relative;
    background: #041a2f;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-lightbox-stage img,
.media-lightbox-stage video {
    width: 100%;
    max-height: min(78vh, 820px);
    object-fit: contain;
    display: none;
    background: #041a2f;
}

.media-lightbox-stage img.is-active,
.media-lightbox-stage video.is-active {
    display: block;
}

.media-lightbox-caption {
    color: #e2e8f0;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0 0.5rem;
}

.media-lightbox-close,
.media-lightbox-nav {
    position: absolute;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 3;
}

.media-lightbox-close:hover,
.media-lightbox-nav:hover {
    background: rgba(14, 124, 123, 0.95);
    transform: scale(1.04);
}

.media-lightbox-close {
    top: 0.85rem;
    right: 0.85rem;
    font-size: 1.35rem;
}

.media-lightbox-nav.prev {
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
}

.media-lightbox-nav.next {
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
}

.media-lightbox-nav.prev:hover,
.media-lightbox-nav.next:hover {
    transform: translateY(-50%) scale(1.04);
}

.media-lightbox-counter {
    position: absolute;
    left: 0.95rem;
    top: 0.95rem;
    z-index: 3;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #f8fafc;
    background: rgba(4, 26, 47, 0.7);
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
}

body.lightbox-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .report-header {
        padding: 1.5rem 0 1.85rem;
    }

    .executive-summary,
    .niche-section,
    .before-after-panel,
    .report-cta {
        padding: 1.35rem;
    }

    .before-after-grid {
        grid-template-columns: 1fr;
    }

    .before-after-grid img,
    .media-card img,
    .media-card video {
        height: 220px;
    }

    .report-header h1 {
        font-size: 1.02rem;
        white-space: normal;
        max-width: none;
    }
}
