/* ═══════════════════════════════════════════════════════════════
   HOME.CSS — Portfolio V3 · Arquitetura: banner + strip + sections
   ═══════════════════════════════════════════════════════════════ */

/* ── PORTFOLIO BANNER ────────────────────────────────────────────
   Camada 1 do topo. Contém o fundo, gradiente e elementos inside/edge.
   As classes .banner-* definem a altura.
   ────────────────────────────────────────────────────────────── */
.portfolio-banner {
    position: relative;
    width: 100%;
    overflow: visible;
    /* permite fotos edge saírem para fora */
}

/* Alturas controladas */
.banner-sm {
    height: clamp(180px, 25vh, 280px);
}

.banner-md {
    height: clamp(300px, 42vh, 520px);
}

.banner-lg {
    height: clamp(400px, 58vh, 680px);
}

.banner-xl {
    height: clamp(520px, 75vh, 900px);
}

/* Fundo absoluto */
.pb-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.pb-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.pb-gradient-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Conteúdo interno do banner (texto, foto inside) */
.pb-content {
    position: relative;
    z-index: 10;
    height: 100%;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 60px 36px;
    box-sizing: border-box;
    display: flex;
    align-items: flex-end;
    gap: 40px;
}

/* Layout 4 (compacto) não tem padding-bottom tão grande */
.banner-sm .pb-content {
    padding-bottom: 20px;
}

/* Quando há foto edge-left: empurra o conteúdo para dar espaço */
.has-edge-left .pb-content {
    padding-left: clamp(200px, 26vw, 400px);
}

.has-edge-right .pb-content {
    padding-right: clamp(200px, 26vw, 400px);
}

/* ── Texto dentro do banner ── */
.pb-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    min-width: 0;
}

.pb-text.inside-center {
    align-items: center;
    text-align: center;
    margin: 0 auto;
}

.pb-text.inside-right {
    align-items: flex-end;
    text-align: right;
}

.pb-text.below-left {
    align-items: flex-start;
    text-align: left;
}

.pb-text.below-center {
    align-items: center;
    text-align: center;
    margin: 0 auto;
}

.pb-text.below-right {
    align-items: flex-end;
    text-align: right;
}

/* ── Foto dentro do banner (inside-*) ── */
.pb-photo {
    flex-shrink: 0;
    display: flex;
    align-items: flex-end;
    height: 90%;
    max-width: clamp(160px, 25vw, 340px);
}

.pb-photo img {
    display: block;
    max-height: 100%;
    max-width: clamp(160px, 22vw, 340px);
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 16px 32px rgba(0, 0, 0, .55));
}

.pb-photo.inside-left {
    order: -1;
}

.pb-photo.inside-right {
    order: 1;
}

/* ── Foto meia dentro meia fora (edge-*) ── */
.pb-photo-edge {
    position: absolute;
    bottom: 0;
    z-index: 20;
    height: 125%;
    display: flex;
    align-items: flex-end;
    pointer-events: none;
}

.pb-photo-edge img {
    display: block;
    max-height: 100%;
    max-width: clamp(200px, 26vw, 420px);
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 48px rgba(0, 0, 0, .6));
    pointer-events: auto;
}

.pb-photo-edge.edge-left {
    left: 5%;
}

.pb-photo-edge.edge-right {
    right: 5%;
}

.pb-photo-edge.edge-center {
    left: 50%;
    transform: translateX(-50%);
}

/* ── Títulos e botões do hero ── */
.pb-eyebrow {
    display: inline-block;
    font-size: clamp(.78rem, 1.1vw, .88rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .2em;
    color: var(--accent);
    margin-bottom: .75rem;
}

.pb-headline {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.03em;
    color: #fff;
    margin: 0 0 .75rem;
    text-shadow: 0 4px 16px rgba(0, 0, 0, .45);
}

.pb-subtitle {
    font-size: clamp(.9rem, 1.4vw, 1.1rem);
    color: rgba(255, 255, 255, .82);
    line-height: 1.6;
    margin: 0;
    max-width: 560px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}

.inside-center .pb-subtitle,
.below-center .pb-subtitle {
    max-width: 700px;
}

.pb-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 22px;
}

.inside-center .pb-actions,
.below-center .pb-actions {
    justify-content: center;
}

.inside-right .pb-actions,
.below-right .pb-actions {
    justify-content: flex-end;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-size: .93rem;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
    transition: filter .2s, transform .2s;
}

.btn-hero-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.btn-hero-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, .28);
    color: #fff;
    text-decoration: none;
    font-size: .91rem;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 8px;
    transition: border-color .2s, background .2s;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.btn-hero-ghost:hover {
    border-color: rgba(255, 255, 255, .7);
    background: rgba(255, 255, 255, .08);
}


/* ── PORTFOLIO PROFILE STRIP ─────────────────────────────────────
   Camada 2 do topo. Aparece somente quando foto ou texto são "below-*".
   ────────────────────────────────────────────────────────────── */
.portfolio-profile-strip {
    width: 100%;
    position: relative;
    z-index: 30;
}

.pps-card {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 60px 52px;
    display: flex;
    align-items: center;
    gap: 36px;
}

.pps-card.center {
    flex-direction: column;
    align-items: center;
}

/* Foto na strip */
.pps-photo {
    flex-shrink: 0;
}

.pps-photo img {
    display: block;
    width: clamp(92px, 12vw, 150px);
    height: clamp(92px, 12vw, 150px);
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--bg-color, #0d0d0f);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .5);
    margin-top: -52px;
    /* sobe sobre o banner */
    position: relative;
    z-index: 2;
}

.pps-photo.below-center {
    margin-left: auto;
    margin-right: auto;
}

.pps-photo.below-right {
    margin-left: auto;
}

/* Texto na strip */
.pps-text {
    flex: 1;
    min-width: 0;
}

.pps-text .pb-text {
    align-items: flex-start;
    text-align: left;
}

.pps-card.center .pps-text .pb-text {
    align-items: center;
    text-align: center;
    margin-top: 12px;
}

/* ── PORTFOLIO SECTIONS (blocos modulares) ───────────────────────
   Camada 3. Blocos reordenáveis configurados via painel.
   ────────────────────────────────────────────────────────────── */
.portfolio-sections {
    padding-bottom: 80px;
}

.ps-block {
    padding: 5vw 0;
}

.ps-block+.ps-block {
    border-top: 1px solid rgba(255, 255, 255, .04);
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 40px;
}

.ps-block-header {
    margin-bottom: 36px;
}

.ps-block-title {
    font-size: clamp(1.8rem, 2.8vw, 2.4rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
}

.ps-block-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, .55);
    margin: 0;
}

/* Grid de trabalhos */
.works-grid {
    display: grid;
    gap: 1.8rem;
}

.works-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.works-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.works-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Filtros */
.ps-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.ps-filter-btn {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .7);
    border-radius: 50px;
    padding: 7px 16px;
    font-size: .83rem;
    font-family: inherit;
    cursor: pointer;
    transition: all .2s;
}

.ps-filter-btn:hover,
.ps-filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* Carrossel de clientes */
.block-clients-strip {
    padding: 36px 0;
    border-top: 1px solid rgba(255, 255, 255, .05);
    border-bottom: 1px solid rgba(255, 255, 255, .05);
    background: rgba(0, 0, 0, .15);
    overflow: hidden;
}

.clients-strip-mask {
    width: 100%;
    overflow: hidden;
}

.clients-strip {
    display: flex;
    gap: 24px;
    padding: 0 12px;
    animation: marchLeft 40s linear infinite;
    width: max-content;
}

@keyframes marchLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.c-strip-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, .05);
    padding: 10px 16px;
    border-radius: 50px;
    text-decoration: none;
    color: #fff;
    transition: background .2s;
    white-space: nowrap;
}

.c-strip-item:hover {
    background: rgba(255, 255, 255, .1);
}

.c-strip-item img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.c-strip-avatar-ph {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.c-strip-info strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
}

.c-strip-info span {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, .5);
}

/* Especialidades */
.skills-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 50px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    color: #fff;
    font-size: .875rem;
    transition: background .2s;
}

.skill-chip:hover {
    background: rgba(255, 255, 255, .1);
}

.skill-chip i {
    color: var(--chip-color, var(--accent));
    font-size: 1.1rem;
}

/* Sobre */
.about-inner {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

.about-text {
    flex: 1;
    min-width: 0;
}

.about-body {
    color: rgba(255, 255, 255, .72);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* CTA */
.block-cta .cta-inner {
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 16px;
}

.cta-sub {
    color: rgba(255, 255, 255, .6);
    font-size: 1.1rem;
    margin: 0 0 32px;
}

.cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.cta-social {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.cta-social a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    transition: background .2s, transform .2s;
}

.cta-social a:hover {
    background: var(--accent);
    transform: scale(1.1);
}

/* Footer */
.home-footer {
    border-top: 1px solid rgba(255, 255, 255, .06);
    padding: 36px 40px;
}

.home-footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

/* ── RESPONSIVIDADE ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .works-grid.cols-4 {
        grid-template-columns: repeat(3, 1fr);
    }

    .has-edge-left .pb-content {
        padding-left: clamp(160px, 22vw, 320px);
    }

    .has-edge-right .pb-content {
        padding-right: clamp(160px, 22vw, 320px);
    }
}

@media (max-width: 900px) {
    .pb-content {
        padding: 0 28px 28px;
        gap: 24px;
    }

    .pb-photo-edge {
        display: none !important;
    }

    .has-edge-left .pb-content,
    .has-edge-right .pb-content {
        padding-left: 28px;
        padding-right: 28px;
    }

    .pps-card {
        padding: 0 28px 40px;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .pb-content {
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        text-align: center;
    }

    .pb-text {
        align-items: center;
        text-align: center;
    }

    .pb-text.inside-right,
    .pb-text.below-right {
        align-items: center;
        text-align: center;
    }

    .pb-actions {
        justify-content: center;
    }

    .pb-photo {
        max-width: 180px;
        height: 55%;
    }

    .pps-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .pps-text .pb-text {
        align-items: center;
        text-align: center;
    }

    .works-grid.cols-3,
    .works-grid.cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-inner {
        flex-direction: column;
    }

    .container {
        padding: 0 20px;
    }

    .home-footer {
        padding: 28px 20px;
    }
}

@media (max-width: 520px) {

    .works-grid.cols-2,
    .works-grid.cols-3,
    .works-grid.cols-4 {
        grid-template-columns: 1fr;
    }

    .pb-headline {
        font-size: clamp(1.9rem, 8vw, 2.8rem);
    }

    .pb-content {
        padding: 0 16px 20px;
    }

    .pps-card {
        padding: 0 16px 32px;
    }

    .home-footer-inner {
        flex-direction: column;
        text-align: center;
        justify-content: center;
        gap: 12px;
    }
}