/* ============================================
   OB Sistemas - Páginas de Projeto
   Complemento do assets/css/style.css principal
   ============================================ */

/* Hero do projeto */
.project-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: flex-end;
    padding: 160px 0 80px;
    overflow: hidden;
}

.project-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.project-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 12, 12, 0.55) 0%, rgba(12, 12, 12, 0.88) 100%);
}

.project-hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

/* Breadcrumb — os SVGs precisam de tamanho fixo;
   sem isso ocupam a tela inteira na ausência de CSS */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-family: 'DM Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
}

.breadcrumb svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.25s ease;
}

.breadcrumb a:hover {
    color: #009fe3;
}

.breadcrumb span {
    color: #009fe3;
}

.project-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.project-subtitle {
    max-width: 640px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
}

/* Imagem principal */
.project-image-hero {
    padding: 80px 24px 0;
}

.project-image-main {
    max-width: 1200px;
    margin: 0 auto;
}

.project-image-main img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Corpo do projeto */
.project-body {
    padding: 80px 0;
}

.project-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 64px;
    align-items: start;
}

.project-content h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 40px 0 16px;
}

.project-content h2:first-child {
    margin-top: 0;
}

.project-content p {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 16px;
}

.project-content ul {
    list-style: none;
    margin: 16px 0;
}

.project-content li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.75);
}

.project-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: #009fe3;
}

/* Sidebar */
.project-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 96px;
}

.sidebar-card,
.cta-card {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 28px;
}

.sidebar-card h3,
.cta-card h3 {
    font-size: 1.125rem;
    margin-bottom: 16px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    font-family: 'DM Mono', monospace;
    font-size: 0.75rem;
    color: #009fe3;
    background: rgba(0, 159, 227, 0.1);
    border: 1px solid rgba(0, 159, 227, 0.3);
    border-radius: 50px;
    padding: 6px 12px;
}

.info-list {
    display: flex;
    flex-direction: column;
}

.info-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.875rem;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item .label {
    color: rgba(255, 255, 255, 0.5);
}

.info-item .value {
    font-weight: 600;
    text-align: right;
}

.cta-card {
    background: linear-gradient(135deg, #009fe3 0%, #0077b6 100%);
    border: none;
}

.cta-card p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
    margin-bottom: 20px;
}

.btn-cta-white {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #0c0c0c;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 14px 28px;
    border-radius: 50px;
    transition: all 0.25s ease;
}

.btn-cta-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.btn-cta-white svg {
    width: 16px;
    height: 16px;
}

/* Galeria */
.project-gallery {
    padding: 0 0 80px;
}

.project-gallery h2,
.related-projects h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 32px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    aspect-ratio: 16 / 9;
}

.gallery-item.wide {
    grid-column: 1 / -1;
}

/* Projetos relacionados */
.related-projects {
    padding: 0 0 96px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.related-item {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s ease;
}

.related-item:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 159, 227, 0.5);
}

.related-item-img img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.related-item-content {
    padding: 20px;
}

.related-item-content h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.related-item-content p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    margin-bottom: 12px;
}

.related-link {
    color: #009fe3;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Responsivo */
@media (max-width: 900px) {
    .project-hero {
        min-height: 50vh;
        padding: 128px 0 56px;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .project-sidebar {
        position: static;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}
