/* ========================================
   Portfolio Cases Styles
   ======================================== */

/* Banner Section */
.banner-portfolio-cases {
    width: 100%;
    overflow: hidden;
}

.banner-portfolio-cases .banner-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Breadcrumb Title Section */
.breadcrumb-title-section {
    padding: 15px 0 0px;
}

.breadcrumb-title-section .breadcrumb {
    margin-bottom: 10px;
    padding: 0;
    background: none;
}

.breadcrumb-title-section .breadcrumb-item {
    font-size: 14px;
    color: #5C5C5C;
}

.breadcrumb-title-section .breadcrumb-item a {
    color: #5C5C5C;
    text-decoration: none;
}

.breadcrumb-title-section .breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-title-section .breadcrumb-item.active {
    color: #282828;
}

.breadcrumb-title-section .breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: #5C5C5C;
}

.page-main-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--Black, #282828);
    margin: 0;
    font-family: 'Open Sans', sans-serif;
}

/* Cases de Sucesso Section */
.cases-sucesso-section {
    padding: 40px 0 0px;
}

.cases-sucesso-section .section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--Black, #282828);
    margin-bottom: 40px;
    font-family: 'Open Sans', sans-serif;
}

.cases-sucesso-section .container {
    position: relative;
}

.case-destaque {
    display: flex;
    gap: 55px;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.case-main-image {
    flex: 0 0 527px;
    max-width: 527px;
    border-radius: 30px;
    overflow: hidden;
}

.case-image {
    width: 100%;
    height: auto;
    display: block;
}

.slider-nav-case {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: opacity 0.3s ease;
}

.slider-nav-case:hover {
    opacity: 0.7;
}

.slider-nav-case img {
    width: 11.27px;
    height: 21px;
    display: block;
}

.case-info {
    flex: 1;
    max-width: 527px;
}

.case-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--Black, #282828);
    margin-bottom: 24px;
    font-family: 'Open Sans', sans-serif;
}

.case-description {
    font-size: 16px;
    font-weight: 400;
    color: var(--Black, #282828);
    line-height: 30.08px;
    margin-bottom: 32px;
}

.btn-ver-case {
    display: inline-block;
    padding: 12px 40px;
    border: 2px solid var(--Black, #282828);
    border-radius: 24px;
    font-size: 20px;
    font-weight: 600;
    color: var(--Black, #282828);
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    font-family: 'Open Sans', sans-serif;
}

.btn-ver-case:hover {
    background-color: var(--Black, #282828);
    color: white;
}

/* Slider Dots - oculto no desktop */
.slider-dots {
    display: none;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #D9D9D9;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider-dots .dot.active {
    background-color: #282828;
}

.slider-dots .dot:hover {
    background-color: #666;
}

/* Projetos Grid Section */
.projetos-grid-section {
    padding: 60px 0 80px;
}

.projetos-grid-section .section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--Black, #282828);
    margin-bottom: 40px;
    font-family: 'Open Sans', sans-serif;
}

.projetos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 80px;
}

.projeto-card {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    text-decoration: none;
    background-color: #191919;
    aspect-ratio: 1 / 1;
}

.projeto-card img {
    height: auto;
    transition: filter 0.3s ease, opacity 0.3s ease;
    filter: grayscale(100%) brightness(1.2);
}

/* Logo padrão/hover - troca no hover */
.projeto-card .logo-hover {
    display: none;
}

.projeto-card:hover .logo-default {
    display: none;
}

.projeto-card:hover .logo-hover {
    display: block;
}

/* Hover - cor de fundo dinamica via CSS variable */
.projeto-card:hover {
    background-color: var(--hover-color, #191919);
}

.projeto-card:hover img {
    filter: grayscale(0%) brightness(1);
}

/* Hover claro (branco) - adiciona borda preta */
.projeto-card.hover-claro:hover {
    border: 2px solid #191919;
}

/* Screen reader only - acessibilidade */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .case-destaque {
        gap: 30px;
    }

    .case-main-image {
        flex: 0 0 400px;
        max-width: 400px;
    }

    .case-info {
        max-width: 400px;
    }

    .projetos-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
    }
}

@media (max-width: 992px) {
    .case-destaque {
        gap: 30px;
    }

    .case-main-image {
        flex: 0 0 300px;
        max-width: 300px;
    }

    .case-info {
        max-width: 100%;
    }

    .slider-nav-case img {
        width: 9px;
        height: 18px;
    }

    .projetos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .breadcrumb-title-section {
        padding: 15px 0 30px;
    }

    .page-main-title {
        font-size: 24px;
    }

    .cases-sucesso-section {
        padding: 40px 0;
    }

    .cases-sucesso-section .section-title,
    .projetos-grid-section .section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .case-destaque {
        flex-direction: column;
        gap: 20px;
    }

    .case-main-image {
        max-width: 100%;
        flex: none;
        order: 1;
    }

    .case-info {
        order: 3;
        text-align: center;
    }

    .slider-nav-case {
        display: none;
    }

    .slider-dots {
        display: flex;
    }

    .case-title {
        font-size: 24px;
        margin-bottom: 16px;
    }

    .case-description {
        font-size: 14px;
        line-height: 24px;
        margin-bottom: 24px;
    }

    .btn-ver-case {
        font-size: 16px;
        padding: 10px 32px;
    }

    .projetos-grid-section {
        padding: 40px 0 60px;
    }
}

@media (max-width: 576px) {
    .projetos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .projeto-card {
        border-radius: 16px;
    }

    .slider-nav-case {
        padding: 8px;
    }

    .slider-nav-case img {
        width: 10px;
        height: 18px;
    }
}

/* ========================================
   Lightbox / Modal para Projetos
   ======================================== */

.projeto-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.projeto-lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.projeto-lightbox .lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
    border-radius: 8px;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.projeto-lightbox .lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #ffffff;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10000;
    line-height: 1;
    user-select: none;
}

.projeto-lightbox .lightbox-close:hover,
.projeto-lightbox .lightbox-close:focus {
    color: #bbb;
}

/* Mobile Responsive Lightbox */
@media (max-width: 768px) {
    .projeto-lightbox {
        padding-top: 20px;
    }

    .projeto-lightbox .lightbox-content {
        max-width: 95%;
        max-height: 85vh;
    }

    .projeto-lightbox .lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 40px;
    }
}
