/* -------------------------------------------------------------------------- */
/*	Single Project - Sticky Layout
/* -------------------------------------------------------------------------- */

/* Hero Section */
.aw-project-hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    padding-bottom: 6rem;
}

.aw-project-hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.aw-project-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
    /* Text contrast */
}

.aw-project-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.aw-project-hero__title {
    font-family: var(--aw-font-sans);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    color: #fff;
    line-height: 0.95;
    margin: 0;
    max-width: 20ch;
}

/* Layout Container */
.aw-project-layout {
    background-color: #fff;
    padding: 8rem 0;
    position: relative;
    z-index: 2;
}

.aw-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.aw-project-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 6rem;
}

/* Sticky Sidebar */
.aw-project-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 6rem;
    /* Header offset */
    height: fit-content;
    padding-top: 1rem;
}

.aw-meta-item {
    margin-bottom: 3rem;
}

.aw-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--aw-color-primary, #9500FF);
    margin-bottom: 0.5rem;
}

.aw-value {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--aw-color-dark);
    margin: 0;
    line-height: 1.4;
}

.aw-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    text-decoration: none;
    color: rgba(26, 11, 10, 0.5);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.aw-btn-back:hover {
    color: var(--aw-color-dark);
}

/* Content Area */
.aw-project-content {
    min-height: 50vh;
}

.aw-editor-content {
    font-size: 1.25rem;
    line-height: 1.8;
    color: rgba(26, 11, 10, 0.8);
    max-width: 70ch;
}

.aw-editor-content p {
    margin-bottom: 2rem;
}

.aw-editor-content h2,
.aw-editor-content h3 {
    color: var(--aw-color-dark);
    font-weight: 700;
    margin-top: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.aw-editor-content h2 {
    font-size: 2.5rem;
}

.aw-editor-content h3 {
    font-size: 1.75rem;
}

.aw-editor-content img,
.aw-editor-content figure {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 4rem 0;
}

/* Next Project Footer */
.aw-next-project {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 70vh;
    background-color: var(--aw-color-dark, #1A0B0A);
    position: relative;
    text-decoration: none;
    overflow: hidden;
}

.aw-next-project__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    transition: opacity 0.4s ease, transform 0.8s ease;
    z-index: 1;
}

.aw-next-project:hover .aw-next-project__bg {
    opacity: 0.4;
    transform: scale(1.05);
}

.aw-next-project__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

.aw-next-project .aw-label {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
}

.aw-next-project__title {
    font-family: var(--aw-font-sans);
    font-size: clamp(2.5rem, 6vw, 5rem);
    color: #fff;
    font-weight: 800;
    margin: 0;
    line-height: 1;
}

/* Responsive */
@media (max-width: 1024px) {
    .aw-project-grid {
        gap: 3rem;
        grid-template-columns: 300px 1fr;
    }
}

@media (max-width: 768px) {
    .aw-project-hero {
        height: 70vh;
        /* Not full height on mobile */
        padding-bottom: 4rem;
    }

    .aw-project-layout {
        padding: 4rem 0;
    }

    .aw-project-grid {
        display: flex;
        flex-direction: column-reverse;
        /* Content first? Or Sidebar first? Usually Sidebar Meta first */
        flex-direction: column;
        gap: 4rem;
    }

    /* Sticky disabled on mobile */
    .aw-project-sidebar {
        position: static;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        padding-bottom: 2rem;
    }

    .aw-meta-item {
        margin-bottom: 1.5rem;
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        padding-bottom: 1rem;
    }

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

    .aw-value {
        text-align: right;
    }
}