/* =============================================
   Project Detail Page Styles
   (Standalone — work.css not required on singles)
   ============================================= */

/* --- Base layout --- */
.hero-content {
    display: flex;
    justify-content: flex-end;
}

.overview-content {
    width: 700px;
}

.overview-title {
    font-size: 68px;
    font-weight: 500;
    line-height: 90px;
    margin-bottom: 20px;
}

.overview-text {
    font-size: 20px;
    font-weight: 400;
    line-height: 30px;
}

.hero-image {
    width: 100%;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.hero-line {
    width: 100%;
    height: 1px;
    background-color: #D9D9D9;
    margin-bottom: 60px;
}

/* --- Work hero (desktop) --- */
.work-hero {
    padding-top: 120px;
}

.work-hero .project-header {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 40px;
    margin-bottom: 30px;
    width: 100%;
}

.view-project-btn {
    display: inline-flex;
    overflow: hidden;
    align-items: center;
    padding: 0;
    background-color: transparent;
    color: #1a1a1a;
    border: none;
    border-radius: 0;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.view-project-btn:hover {
    color: #4f4f4f;
}

.view-project-btn__inner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.view-project-btn__inner svg {
    display: block;
    flex-shrink: 0;
}

.view-website-btn:hover {
    background-color: transparent;
    color: #4f4f4f;
}

.view-website-btn svg {
    transition: transform 0.3s ease;
}

.view-website-btn:hover svg {
    transform: translate(2px, -2px);
}

.work-hero .project-header .hero-title {
    margin-bottom: 0;
    width: auto;
}

/* Hero animation initial states */
.work-hero .hero-title {
    font-size: 60px;
    font-weight: 500;
    line-height: 1.2;
    color: #1a1a1a;
    visibility: hidden;
}

.work-hero .hero-line {
    margin-top: 40px;
    margin-bottom: 40px;
    width: 100%;
    height: 1px;
    background-color: #e0e0e0;
    transform: scaleX(0);
    transform-origin: left center;
}

.work-hero .overview-content {
    max-width: 600px;
    opacity: 0;
}

.work-hero .overview-title {
    font-size: 40px;
    font-weight: 500;
    line-height: 1;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.work-hero .overview-text {
    font-size: 18px;
    line-height: 1.6;
    color: #4f4f4f;
}

.work-hero .overview-text p {
    margin: 0 0 1em;
}

.work-hero .overview-text p:last-child {
    margin-bottom: 0;
}

.work-hero .hero-image {
    margin-top: 30px;
    opacity: 0;
}

.work-hero .hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- Process section (desktop) --- */
.process {
    margin-top: 80px;
    padding: 0;
}

.process .section-title,
.outcome .section-title,
.more-work .section-title {
    font-size: 40px;
    font-weight: 500;
    color: #1a1a1a;
}

.process .section-line,
.outcome .section-line,
.more-work .section-line {
    width: 100%;
    height: 1px;
    background-color: #e0e0e0;
    margin-top: 20px;
    margin-bottom: 40px;
}

.process-content {
    width: 700px;
    display: flex;
    flex-direction: column;
    align-self: flex-end;
    margin-left: auto;
}

.process-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 0;
}

.process-item .process-title {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 12px;
}

.process-item .process-text {
    font-size: 16px;
    line-height: 1.6;
    color: #4f4f4f;
}

.process-images {
    margin-top: 60px;
}

.process-image-single {
    width: 100%;
    margin-bottom: 20px;
}

.process-image-single img {
    width: 100%;
}

.process-image {
    width: 100%;
}

.process-image-single img,
.process-image img {
    border-radius: 8px;
}

.process-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.process-image-grid .process-image img {
    width: 100%;
}

/* --- Outcome section (desktop) --- */
.outcome {
    margin-top: 80px;
    padding: 0;
}

.outcome-content {
    width: 700px;
    display: flex;
    flex-direction: column;
    align-self: flex-end;
    margin-left: auto;
    text-align: left;
}

.outcome-text {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.outcome-text p {
    font-size: 18px;
    line-height: 1.7;
    color: #4f4f4f;
    margin-bottom: 20px;
}

/* --- More Work section (desktop) --- */
.more-work {
    margin-top: 80px;
    margin-bottom: 0;
    padding: 0;
}

.work-listing {
    padding: 0 0 120px;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.work-item {
    position: relative;
}

.work-item-featured {
    grid-column: 1 / -1;
}

.work-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.work-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 0;
    transition: transform 0.3s ease;
}

.work-item:hover .work-image {
    transform: scale(1.02);
}

.work-item-title {
    font-size: 28px;
    font-weight: 500;
    line-height: 34px;
    color: var(--text-color);
}

/* --- Mobile (all overrides at end for clean cascade) --- */
@media screen and (max-width: 767px) {
    /* Hero */
    .work-hero {
        padding-top: 60px;
    }

    .work-hero .project-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 20px;
    }

    .hero-title,
    .work-hero .hero-title {
        font-size: 38px;
        line-height: 48px;
        margin-bottom: 30px;
    }

    .hero-line,
    .work-hero .hero-line {
        margin-bottom: 40px;
    }

    .hero-content,
    .work-hero .hero-content {
        flex-direction: column;
    }

    .overview-content,
    .work-hero .overview-content {
        width: 100%;
        max-width: none;
    }

    .overview-title,
    .work-hero .overview-title {
        font-size: 28px;
        line-height: 34px;
        margin-bottom: 20px;
    }

    .overview-text,
    .work-hero .overview-text {
        font-size: 16px;
        line-height: 24px;
        margin-bottom: 40px;
    }

    .hero-image,
    .work-hero .hero-image {
        margin-top: 0;
    }

    .hero-image img,
    .work-hero .hero-image img {
        border-radius: 4px;
    }

    .view-website-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    /* Process */
    .process {
        margin-top: 80px;
        padding: 0;
    }

    .process-content {
        width: 100%;
        margin-top: 40px;
    }

    .process-item {
        margin-bottom: 30px;
        padding: 0;
    }

    .process-item:last-child {
        margin-bottom: 0;
    }

    .process-item .process-title {
        font-size: 24px;
        line-height: 32px;
        margin-bottom: 12px;
    }

    .process-item .process-text {
        font-size: 16px;
        line-height: 24px;
        margin-top: 0;
        margin-bottom: 0;
    }

    .process-item .process-text p {
        margin: 0;
    }

    .process-item .process-text p + p {
        margin-top: 16px;
    }

    .process-images {
        margin-top: 40px;
    }

    .process-image-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .process-image-single {
        margin-bottom: 20px;
    }

    .process-image img,
    .process-image-single img {
        border-radius: 4px;
    }

    /* Outcome */
    .outcome {
        margin-top: 80px;
        padding: 0;
    }

    .outcome-content {
        width: 100%;
        margin-top: 40px;
    }

    .outcome-title {
        font-size: 28px;
        line-height: 34px;
        margin-bottom: 20px;
    }

    .outcome-text {
        gap: 20px;
    }

    .outcome-text p {
        font-size: 16px;
        line-height: 24px;
    }

    /* More Work */
    .more-work {
        margin-top: 80px;
        margin-bottom: 80px;
        padding: 0;
    }

    .work-listing {
        padding: 0 0 80px;
    }

    .work-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 0;
    }

    .work-item-title {
        font-size: 24px;
        line-height: 32px;
        margin-top: 16px;
    }

    .work-image {
        border-radius: 4px;
        margin-bottom: 0;
    }

    /* Section titles */
    .process .section-title,
    .outcome .section-title,
    .more-work .section-title {
        font-size: 32px;
        line-height: 42px;
    }

    .section-line,
    .process .section-line,
    .outcome .section-line,
    .more-work .section-line {
        margin-bottom: 40px;
    }

    /* Navigation */
    .desktop-menu {
        display: none;
    }

    .hamburger-menu {
        display: flex;
    }
}