/* ============================================================
   WE7 — PROJETO DETAIL PAGE
   Sunset-quality cinematic layout — glassmorphic & immersive
   ============================================================ */

/* ==================== BASE OVERRIDES ==================== */
.projeto-page {
    background: #0c0a09;
    color: #f5efe6;
    overflow-x: hidden;
}
.projeto-page .nav {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transition: background .5s ease;
}
.projeto-page .nav.scrolled {
    background: rgba(12,10,9,.85) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
}
.projeto-page .nav-logo-text,
.projeto-page .nav-logo-sub,
.projeto-page .nav-link {
    color: #f5efe6 !important;
}
.projeto-page .nav-link:hover { color: var(--accent) !important; }

.projeto-page .footer {
    background: #0c0a09;
    border-top: 1px solid rgba(255,255,255,.06);
}
.projeto-page .footer-logo-big,
.projeto-page .footer-tagline,
.projeto-page .footer-col-title,
.projeto-page .footer-nav a,
.projeto-page .footer-nav span,
.projeto-page .footer-bottom p {
    color: rgba(245,239,230,.7) !important;
}
.projeto-page .footer-logo-big { color: rgba(245,239,230,.15) !important; }

/* Reusable eyebrow */
.pj-eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: clamp(.65rem, 1vw, .75rem);
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}
.pj-heading {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.15;
    color: #f5efe6;
}
.pj-heading em {
    font-family: var(--font-accent);
    font-style: italic;
    color: var(--accent);
}
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding-left: clamp(24px, 5vw, 60px);
    padding-right: clamp(24px, 5vw, 60px);
}

/* ==================== COVER (Sunset-quality hero) ==================== */
.pj-cover {
    position: relative;
    height: 100vh;
    height: 100dvh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}
.pj-cover-img {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.pj-cover-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.08);
    will-change: transform;
}
.pj-cover-fade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(to top,
            rgba(12,10,9,.95) 0%,
            rgba(12,10,9,.55) 35%,
            rgba(12,10,9,.15) 65%,
            rgba(12,10,9,.08) 100%
        );
}
.pj-cover-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 clamp(24px,5vw,80px) clamp(60px,10vh,120px);
    display: flex;
    flex-direction: column;
    gap: 0;
}
.pj-back-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--font-body);
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(245,239,230,.6);
    text-decoration: none;
    transition: color .35s ease;
    margin-bottom: 2rem;
}
.pj-back-link:hover { color: var(--accent); }

/* Badge glassmorphic (like sunset) */
.pj-cover-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    border: 1px solid rgba(176,137,104,.4);
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 28px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(176,137,104,.06);
    width: fit-content;
}
.pj-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pjBadgePulse 2s ease-in-out infinite;
}
@keyframes pjBadgePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .4; transform: scale(1.6); }
}

.pj-cover-text { max-width: 700px; }
.pj-cover-num {
    display: block;
    font-family: var(--font-body);
    font-size: clamp(.65rem,1vw,.8rem);
    font-weight: 600;
    letter-spacing: .35em;
    color: var(--accent);
    margin-bottom: .75rem;
}
.pj-cover-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(3.5rem, 10vw, 8rem);
    line-height: .88;
    letter-spacing: -.04em;
    color: #f5efe6;
    margin: 0 0 24px;
}
.pj-cover-tagline {
    font-family: var(--font-accent);
    font-style: italic;
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: rgba(245,239,230,.55);
    margin-bottom: 16px;
}
.pj-cover-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-body);
    font-size: .8rem;
    font-weight: 400;
    color: rgba(245,239,230,.35);
    letter-spacing: .05em;
}
.pj-meta-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

/* Scroll indicator (sunset-style) */
.pj-cover-scroll {
    position: absolute;
    right: clamp(24px,5vw,60px);
    bottom: clamp(40px,8vh,80px);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.pj-cover-scroll span {
    font-family: var(--font-body);
    font-size: .6rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(245,239,230,.35);
    writing-mode: vertical-rl;
}
.pj-scroll-bar {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--accent));
    animation: pjScrollLine 2s ease-in-out infinite;
}
@keyframes pjScrollLine {
    0%     { transform: scaleY(0); transform-origin: top; }
    50%    { transform: scaleY(1); transform-origin: top; }
    50.1%  { transform: scaleY(1); transform-origin: bottom; }
    100%   { transform: scaleY(0); transform-origin: bottom; }
}

/* ==================== FICHA BAR (glassmorphic cards) ==================== */
.pj-ficha-bar {
    border-top: 1px solid rgba(245,239,230,.06);
    border-bottom: 1px solid rgba(245,239,230,.06);
    padding: clamp(40px, 5vw, 60px) clamp(24px, 5vw, 80px);
    background: rgba(245,239,230,.015);
}
.pj-ficha-bar-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: clamp(12px, 2vw, 20px);
}
.pj-fb-item {
    text-align: center;
    padding: clamp(20px, 3vw, 32px) clamp(12px, 2vw, 24px);
    border: 1px solid rgba(245,239,230,.06);
    border-radius: 16px;
    background: rgba(245,239,230,.02);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: all .4s var(--ease-out-expo);
}
.pj-fb-item:hover {
    border-color: rgba(176,137,104,.4);
    background: rgba(176,137,104,.06);
    transform: translateY(-4px);
}
.pj-fb-label {
    display: block;
    font-family: var(--font-body);
    font-size: .6rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: .6rem;
}
.pj-fb-val {
    display: block;
    font-family: var(--font-body);
    font-size: clamp(.82rem, 1.1vw, .95rem);
    line-height: 1.5;
    color: rgba(245,239,230,.7);
    font-weight: 500;
}
.pj-fb-val small {
    display: block;
    font-size: .72em;
    color: rgba(245,239,230,.35);
    margin-top: .2rem;
    font-weight: 400;
}
.pj-fb-divider {
    display: none;
}

/* ==================== ABERTURA ==================== */
.pj-abertura {
    padding: clamp(120px, 16vw, 240px) clamp(24px, 5vw, 80px);
}
.pj-abertura-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 4px 1fr;
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
}
.pj-abertura-line {
    width: 4px;
    height: 100%;
    min-height: 60px;
    background: var(--accent);
    border-radius: 2px;
    margin-top: .6rem;
}
.pj-abertura-content .pj-eyebrow {
    margin-bottom: 1.6rem;
}
.pj-abertura-content h2 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(1.5rem, 3.5vw, 2.8rem);
    line-height: 1.3;
    color: rgba(245,239,230,.85);
    margin: 0 0 1.8rem;
    letter-spacing: -.02em;
}
.pj-abertura-content p {
    font-family: var(--font-body);
    font-size: clamp(.9rem, 1.15vw, 1.05rem);
    line-height: 1.9;
    color: rgba(245,239,230,.45);
    margin: 0;
    max-width: 600px;
}

/* ==================== PARALLAX IMAGE ==================== */
.pj-parallax-img {
    width: 100%;
    height: 80vh;
    overflow: hidden;
    position: relative;
}
.pj-parallax-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(to top, rgba(12,10,9,.4) 0%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}
.pj-parallax-img img {
    width: 100%;
    height: 130%;
    object-fit: cover;
    display: block;
    will-change: transform;
    cursor: pointer;
}

/* ==================== ACCENT BAND ==================== */
.pj-accent-band {
    background: var(--accent);
    padding: clamp(80px, 10vw, 140px) clamp(24px, 5vw, 80px);
}
.pj-accent-band-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: clamp(40px, 6vw, 100px);
}
.pj-accent-num {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 700;
    line-height: 1;
    color: #0c0a09;
    white-space: nowrap;
}
.pj-accent-num span {
    font-size: .35em;
    vertical-align: super;
    font-weight: 400;
    letter-spacing: .05em;
}
.pj-accent-band p {
    font-family: var(--font-body);
    font-size: clamp(.95rem, 1.3vw, 1.15rem);
    line-height: 1.8;
    color: rgba(12,10,9,.6);
    margin: 0;
    max-width: 480px;
}

/* ==================== NUMBERED SECTIONS ==================== */
.pj-section {
    padding: clamp(100px, 14vw, 200px) clamp(24px, 5vw, 80px) clamp(60px, 8vw, 100px);
}
.pj-section-inner {
    max-width: 900px;
    margin: 0 auto;
}
.pj-section-header {
    display: flex;
    align-items: baseline;
    gap: clamp(16px, 2.5vw, 32px);
    margin-bottom: 2rem;
}
.pj-section-num {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1;
    color: rgba(245,239,230,.06);
    letter-spacing: -.02em;
}
.pj-section-header .pj-eyebrow {
    position: relative;
    top: -2px;
}
.pj-section-body {
    font-family: var(--font-body);
    font-size: clamp(.95rem, 1.2vw, 1.1rem);
    line-height: 1.9;
    color: rgba(245,239,230,.55);
    margin: 0;
    max-width: 700px;
}

/* Light variant — glassmorphic panel */
.pj-section--light {
    background: rgba(245,239,230,.02);
    border-top: 1px solid rgba(245,239,230,.06);
    border-bottom: 1px solid rgba(245,239,230,.06);
    padding-bottom: clamp(100px, 14vw, 200px);
}

/* ==================== IMAGE LAYOUTS ==================== */
/* Full-width */
.pj-img-full {
    padding: 0 clamp(24px, 5vw, 60px);
    max-width: calc(1400px + clamp(48px, 10vw, 120px));
    margin: clamp(10px, 2vw, 20px) auto;
}
.pj-img-full img {
    width: 100%;
    display: block;
    border-radius: 14px;
    cursor: pointer;
    will-change: transform;
    box-shadow: 0 8px 40px rgba(0,0,0,.25);
    transition: transform .8s var(--ease-out-expo), box-shadow .6s ease;
}
.pj-img-full:hover img {
    transform: scale(1.01);
    box-shadow: 0 16px 60px rgba(0,0,0,.35);
}

/* Image pair */
.pj-img-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(10px, 2vw, 20px);
    padding: 0 clamp(24px, 5vw, 60px);
    max-width: calc(1400px + clamp(48px, 10vw, 120px));
    margin: clamp(10px, 2vw, 20px) auto;
}
.pj-img-pair-item {
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 8px 40px rgba(0,0,0,.2);
    transition: transform .5s var(--ease-out-expo), box-shadow .5s ease;
}
.pj-img-pair-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 50px rgba(0,0,0,.3);
}
.pj-img-pair-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 3/2;
    cursor: pointer;
    transition: transform .8s var(--ease-out-expo);
}
.pj-img-pair-item:hover img {
    transform: scale(1.06);
}

/* Image trio */
.pj-img-trio {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(10px, 2vw, 20px);
    padding: 0 clamp(24px, 5vw, 60px);
    max-width: calc(1400px + clamp(48px, 10vw, 120px));
    margin: clamp(10px, 2vw, 20px) auto;
}
.pj-img-trio-item {
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 8px 40px rgba(0,0,0,.2);
    transition: transform .5s var(--ease-out-expo), box-shadow .5s ease;
}
.pj-img-trio-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 50px rgba(0,0,0,.3);
}
.pj-img-trio-item img {
    width: 100%;
    display: block;
    aspect-ratio: 4/5;
    object-fit: cover;
    cursor: pointer;
    transition: transform .8s var(--ease-out-expo);
}
.pj-img-trio-item:hover img {
    transform: scale(1.06);
}

/* Gap modifiers */
.pj-img-gap-sm { margin-top: clamp(4px, .8vw, 8px); margin-bottom: clamp(4px, .8vw, 8px); }
.pj-img-gap-lg { margin-top: clamp(28px, 5vw, 56px); margin-bottom: clamp(28px, 5vw, 56px); }

/* ==================== QUOTE HERO ==================== */
.pj-quote-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(100px, 14vw, 200px) clamp(24px, 5vw, 80px);
    position: relative;
    background: radial-gradient(ellipse at center, rgba(176,137,104,.08) 0%, transparent 70%);
}
.pj-quote-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(176,137,104,.2), transparent);
}
.pj-quote-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(176,137,104,.2), transparent);
}
.pj-quote-hero-inner {
    max-width: 900px;
    text-align: center;
    position: relative;
}
.pj-quote-mark {
    font-family: var(--font-accent);
    font-size: clamp(8rem, 20vw, 16rem);
    line-height: 1;
    color: rgba(176,137,104,.1);
    position: absolute;
    top: -0.45em;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    user-select: none;
}
.pj-quote-hero blockquote {
    font-family: var(--font-accent);
    font-size: clamp(1.6rem, 3.5vw, 2.8rem);
    font-style: italic;
    font-weight: 400;
    line-height: 1.5;
    color: rgba(245,239,230,.65);
    margin: 0;
    position: relative;
    z-index: 1;
}
.pj-quote-hero blockquote em {
    color: var(--accent);
    font-style: italic;
}

/* ==================== PROGRAMA (glassmorphic pills) ==================== */
.pj-programa {
    padding: clamp(100px, 14vw, 200px) clamp(24px, 5vw, 80px);
    border-top: 1px solid rgba(245,239,230,.06);
}
.pj-programa-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}
.pj-programa-inner .pj-eyebrow {
    margin-bottom: clamp(32px, 5vw, 56px);
}
.pj-programa-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}
.pj-programa-grid span {
    display: inline-block;
    padding: .7rem 1.5rem;
    border: 1px solid rgba(245,239,230,.1);
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: clamp(.75rem, 1vw, .85rem);
    font-weight: 500;
    letter-spacing: .04em;
    color: rgba(245,239,230,.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    background: rgba(245,239,230,.02);
    transition: all .4s var(--ease-out-expo);
}
.pj-programa-grid span:hover {
    border-color: rgba(176,137,104,.5);
    color: var(--accent);
    background: rgba(176,137,104,.08);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(176,137,104,.1);
}

/* ==================== CTA BLOCK (cinematic) ==================== */
.pj-cta-block {
    position: relative;
    padding: clamp(120px, 18vw, 260px) clamp(24px, 5vw, 80px);
    text-align: center;
    background: radial-gradient(ellipse at center, rgba(176,137,104,.05) 0%, transparent 60%);
}
.pj-cta-block-inner {
    max-width: 620px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
.pj-cta-block .pj-eyebrow {
    margin-bottom: 1.4rem;
}
.pj-cta-block h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.2;
    color: rgba(245,239,230,.85);
    margin: 0 0 3rem;
    letter-spacing: -.02em;
}
.pj-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    padding: 1.1rem 2.8rem;
    background: var(--accent);
    color: #0c0a09;
    font-family: var(--font-body);
    font-size: clamp(.8rem, 1vw, .9rem);
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 100px;
    transition: all .4s var(--ease-out-expo);
    box-shadow: 0 4px 20px rgba(176,137,104,.2);
}
.pj-cta-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(176,137,104,.35);
}
.pj-cta-btn svg {
    transition: transform .4s var(--ease-out-expo);
}
.pj-cta-btn:hover svg {
    transform: translateX(4px);
}

/* ==================== NEXT (elevated) ==================== */
.pj-next {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: clamp(36px, 5vw, 56px) clamp(24px, 5vw, 60px);
    text-decoration: none;
    border-top: 1px solid rgba(245,239,230,.06);
    transition: all .4s var(--ease-out-expo);
}
.pj-next:hover {
    background: rgba(176,137,104,.04);
}
.pj-next-label {
    font-family: var(--font-body);
    font-size: clamp(.75rem, 1vw, .85rem);
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: rgba(245,239,230,.35);
    transition: all .4s var(--ease-out-expo);
}
.pj-next:hover .pj-next-label {
    color: var(--accent);
    letter-spacing: .2em;
}

/* ==================== LIGHTBOX ==================== */
.pj-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(12,10,9,.96);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.pj-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}
.pj-lightbox img {
    max-width: 92vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    transform: scale(.92);
    transition: transform .45s var(--ease-out-expo);
    box-shadow: 0 24px 80px rgba(0,0,0,.5);
}
.pj-lightbox.active img { transform: scale(1); }
.pj-lightbox-close {
    position: absolute;
    top: 24px;
    right: 28px;
    width: 48px;
    height: 48px;
    background: rgba(245,239,230,.05);
    border: 1px solid rgba(245,239,230,.15);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.pj-lightbox-close:hover {
    border-color: var(--accent);
    background: rgba(176,137,104,.1);
}
.pj-lightbox-close svg { stroke: #f5efe6; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 968px) {
    .pj-ficha-bar-inner {
        grid-template-columns: repeat(3, 1fr);
    }
    .pj-abertura-inner { grid-template-columns: 1fr; }
    .pj-abertura-line {
        display: none;
    }
    .pj-accent-band-inner { flex-direction: column; text-align: center; }
    .pj-accent-band p { max-width: 100%; }
    .pj-img-trio { grid-template-columns: 1fr 1fr; }
    .pj-img-trio-item:last-child { grid-column: 1 / -1; }
    .pj-img-trio-item:last-child img { aspect-ratio: 16/9; }
    .pj-quote-hero { min-height: 60vh; }
}
@media (max-width: 540px) {
    .pj-cover-title { font-size: clamp(2.8rem, 14vw, 4.5rem); }
    .pj-cover-meta { flex-wrap: wrap; gap: .4rem .8rem; }
    .pj-cover-badge { font-size: .65rem; padding: 6px 16px; }
    .pj-ficha-bar-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .pj-fb-item { padding: 16px 12px; }
    .pj-fb-item:last-child {
        grid-column: 1 / -1;
    }
    .pj-abertura-content h2 { font-size: clamp(1.2rem, 6vw, 1.8rem); }
    .pj-img-pair { grid-template-columns: 1fr; }
    .pj-img-trio { grid-template-columns: 1fr; }
    .pj-img-trio-item:last-child { grid-column: auto; }
    .pj-img-trio-item img { aspect-ratio: 4/3; }
    .pj-parallax-img { height: 50vh; }
    .pj-quote-hero { min-height: 50vh; }
    .pj-quote-hero blockquote { font-size: clamp(1.2rem, 5.5vw, 1.7rem); }
    .pj-accent-num { font-size: clamp(3rem, 15vw, 5rem); }
    .pj-cta-btn { width: 100%; justify-content: center; }
    .pj-cta-block h3 { font-size: clamp(1.5rem, 7vw, 2.2rem); }
}
