/* Project Details Page Styles */

/* Hero Section */
.project-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: flex-end;
    color: white;
    overflow: hidden;
}

.project-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.project-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.project-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 31, 63, 0.9) 0%, transparent 80%);
    z-index: 1;
}

.project-hero-content {
    position: relative;
    z-index: 2;
    padding-bottom: 80px;
    width: 100%;
}

.project-meta-tag {
    display: inline-block;
    padding: 8px 16px;
    background: var(--color-accent);
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    border-radius: 4px;
    margin-bottom: 20px;
}

.project-hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.project-location {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.9;
}

/* Main Content Layout */
.project-content-section {
    padding: 100px 0;
    background: white;
}

/* .project-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
} */

.project-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.left-col {
    flex: 1;
}

.right-col {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    /* pushes image to right */
}


/* Left Content Column */
.content-block {
    margin-bottom: 60px;
}

.content-block h2 {
    font-size: 2rem;
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-bottom: 20px;
    font-weight: 700;
}

.content-block p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.quote-box {
    border-left: 4px solid var(--color-accent);
    padding: 30px;
    background: #F8FAFC;
    margin: 40px 0;
    font-style: italic;
}

.quote-text {
    font-size: 1.25rem;
    color: var(--color-text-dark);
    margin-bottom: 15px;
    font-family: var(--font-heading);
}

.quote-author {
    font-weight: 600;
    color: var(--color-primary);
}


/* Hero Warning Stripe */
.project-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: repeating-linear-gradient(45deg,
            var(--construction-orange),
            var(--construction-orange) 10px,
            var(--construction-yellow) 10px,
            var(--construction-yellow) 20px);
    z-index: 10;
}

/* Right Sidebar Column */
.project-sidebar {
    position: sticky;
    top: 100px;
    /* Sticky offset */
    height: fit-content;
}

.sidebar-box {
    background: white;
    padding: 0 40px 40px;
    /* Adjust padding for rivets */
    border-radius: 8px;
    /* Sharper */
    border: 3px solid #4a5568;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Sidebar Rivets */
.sidebar-box::before,
.sidebar-box::after {
    content: '';
    position: absolute;
    top: 15px;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, #718096 40%, transparent 40%);
    border: 2px solid var(--construction-orange);
    border-radius: 50%;
    z-index: 5;
}

.sidebar-box::before {
    left: 15px;
}

.sidebar-box::after {
    right: 15px;
}

.sidebar-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 30px;
    margin-top: 40px;
    /* Space for rivets */
    color: var(--color-primary);
    border-bottom: 3px solid #E2E8F0;
    padding-bottom: 15px;
    position: relative;
}

.sidebar-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--construction-orange);
}

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

.info-item h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 5px;
    letter-spacing: 0.05em;
}

.info-item p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-dark);
}

.sidebar-btn {
    margin-top: 40px;
    width: 100%;
    text-align: center;
}

/* Gallery Section */
.gallery-section {
    padding: 0 0 100px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.gallery-item {
    height: 300px;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Related Projects */
.related-projects {
    padding: 100px 0;
    background: #F8FAFC;
    border-top: 1px solid #E2E8F0;
}

.related-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
}

/* Responsive */
@media (max-width: 992px) {
    .project-layout {
        flex-direction: column;
        gap: 50px;
    }

    .right-col {
        justify-content: flex-start;
        width: 100%;
    }

    .project-sidebar {
        position: static;
        margin-top: 0;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .project-hero {
        min-height: 400px;
        height: auto;
    }

    .project-hero-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

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

    .related-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .related-header .btn-link {
        align-self: flex-start;
    }
}