/* ════════════════════════════════════════════════════════════
   PORTFOLIO PAGE STYLES
   ════════════════════════════════════════════════════════════ */

/* Sticky navbar on portfolio: fill the contact button */
.portfolio-page .navbar--sticky .nav-cta .btn-contact {
    background: #CDB68D;
    color: var(--pure-white);
    border-color: #CDB68D;
}

/* --- Hero --- */
.portfolio-hero {
    position: relative;
    height: 85vh;
    min-height: 650px;
    display: flex;
    align-items: center;
    color: var(--pure-white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.72), rgba(0,0,0,0.42) 55%, rgba(0,0,0,0.18) 100%);
    z-index: 2;
}

.portfolio-hero .container {
    position: relative;
    z-index: 3;
}

.portfolio-content {
    max-width: 800px;
}

.portfolio-content h1 {
    font-family: var(--serif);
    font-size: clamp(36px, 5.5vw, 72px);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 28px;
    color: var(--pure-white);
}

.portfolio-content p {
    font-family: var(--sans);
    font-size: clamp(14px, 2.2vw, 22px);
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 42px;
    opacity: 0.9;
}

.btn-bronze {
    background: #CDB68D;
    color: var(--pure-white);
    padding: 12px 28px;
    font-size: 11px;
    letter-spacing: 0.14em;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    width: fit-content;
}

/* --- Filter --- */
.portfolio-section {
    padding: 100px 0;
    background: #F9F8F6;
}

.portfolio-filter {
    display: flex;
    gap: 32px;
    margin-bottom: 60px;
    justify-content: flex-start;
}

.filter-btn {
    background: none;
    border: none;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--warm-graphite);
    cursor: pointer;
    padding: 8px 16px;
    transition: color 0.3s ease;
    text-transform: uppercase;
}

.filter-btn.active {
    background: #CDB68D;
    color: var(--pure-white);
}

/* --- Grid --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    cursor: pointer;
}

.portfolio-item.large {
    grid-column: span 3;
}

.portfolio-item.medium {
    grid-column: span 2;
}

.item-image {
    width: 100%;
    height: 100%;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}

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

.item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0); /* Start transparent */
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: var(--pure-white);
    transition: background 0.4s ease;
    opacity: 0; /* Completely hidden */
    pointer-events: none; /* Can't click until visible */
    transition: all 0.5s var(--ease);
}

.portfolio-item:hover .item-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.5); /* Subtle dark overlay on hover */
    pointer-events: auto;
}




.item-overlay .category {
    font-size: 10px;
    letter-spacing: 0.25em;
    margin-bottom: 12px;
    display: block;
    font-weight: 500;
}

.item-overlay h3 {
    font-size: 28px;
    margin-bottom: 12px;
    color: var(--pure-white);
    font-family: var(--serif);
}

.item-overlay p {
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 28px;
    opacity: 0.9;
    max-width: 320px;
}

.view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 10px;
    font-weight: 500;
    color: var(--pure-white);
    background: #CDB68D;
    padding: 12px 20px;
    width: fit-content;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* --- Quote --- */
.portfolio-quote {
    padding: 140px 0;
    background: #F4F1EC;
    text-align: center;
}

.portfolio-quote blockquote {
    font-family: var(--serif);
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.2;
    color: var(--ink-black);
    max-width: 900px;
    margin: 0 auto;
}


/* --- Responsive --- */
@media (max-width: 1024px) {
    .portfolio-item.large,
    .portfolio-item.medium {
        grid-column: span 3;
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .portfolio-item.large,
    .portfolio-item.medium {
        grid-column: span 1;
    }
    .hero-content h1 {
        font-size: 36px;
    }
    .portfolio-quote {
        padding: 80px 24px;
    }
}
