/* Porto Bambu — halaman portofolio (tambahan khusus, tidak mengubah halaman lain) */

.porto-hero {
    height: auto;
    min-height: 62vh;
    padding: 9rem 0 5rem;
}

.porto-hero h1 {
    font-size: clamp(1.9rem, 4.5vw, 3rem);
}

.porto-subnav {
    background: var(--primary-color);
    padding: .55rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
    position: sticky;
    top: var(--nav-h, 72px);
    z-index: 1020;
}

.porto-subnav-list {
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.porto-subnav-list::-webkit-scrollbar {
    display: none;
}

.porto-subnav .nav-link {
    color: rgba(255, 255, 255, .85) !important;
    font-size: .92rem;
    font-weight: 600;
    padding: .3rem .7rem !important;
    border-radius: 999px;
    white-space: nowrap;
}

.porto-subnav .nav-link:hover,
.porto-subnav .nav-link:focus {
    color: #fff !important;
    background: rgba(255, 255, 255, .12);
}

.porto-subnav .nav-link.active {
    background: var(--accent-color);
    color: #2b2b2b !important;
}

.porto-badge {
    display: inline-block;
    min-width: 1.5rem;
    padding: 0 .3rem;
    margin-left: .25rem;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
}

.porto-subnav .nav-link.active .porto-badge {
    background: rgba(0, 0, 0, .15);
}

.porto-sec {
    padding: 3.5rem 0;
    scroll-margin-top: calc(var(--nav-h, 72px) + var(--bar-h, 44px) + 8px);
}

.porto-sec:nth-of-type(even) {
    background: #f7f7f5;
}

.porto-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
}

.porto-kicker {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--secondary-color);
    margin-bottom: .35rem;
}

.porto-h2 {
    font-size: clamp(1.45rem, 3vw, 2rem);
    margin-bottom: .75rem;
}

.porto-h2 i {
    color: var(--secondary-color);
}

.porto-desc {
    color: #4a4a4a;
    max-width: 68ch;
    margin-bottom: 1rem;
}

.porto-feats {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 1.4rem;
}

.porto-feats li {
    font-size: .9rem;
    color: #3f3f3f;
}

.porto-feats i {
    color: var(--primary-color);
    margin-right: .35rem;
}

.porto-cta {
    white-space: nowrap;
}

.porto-fig {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 12px;
    background: #e8e6e1 center/cover no-repeat;
    aspect-ratio: 1 / 1;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .12);
    transition: transform .3s ease, box-shadow .3s ease;
}

.porto-fig::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(44, 85, 48, .55), rgba(44, 85, 48, 0) 55%);
    opacity: 0;
    transition: opacity .3s ease;
}

.porto-fig:hover,
.porto-fig:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .18);
}

.porto-fig:hover::after,
.porto-fig:focus-visible::after {
    opacity: 1;
}

.porto-fig img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.porto-fig:hover img {
    transform: scale(1.06);
}

.porto-fig:hover::before,
.porto-fig:focus-visible::before {
    content: '\f4e0'; /* bi-arrows-fullscreen */
    font-family: 'bootstrap-icons';
    position: absolute;
    right: .5rem;
    bottom: .5rem;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    color: var(--primary-color);
    font-size: .9rem;
    opacity: 1;
}

/* Lightbox */
.porto-lb {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(0, 0, 0, .9);
}

.porto-lb.is-open {
    display: flex;
}

.porto-lb img {
    max-width: min(92vw, 720px);
    max-height: 82vh;
    border-radius: 10px;
    background: #111;
}

.porto-lb-cap {
    margin-top: .7rem;
    color: #eee;
    text-align: center;
    font-size: .9rem;
}

.porto-lb-cap a {
    color: #7ee08a;
}

.porto-lb-btn {
    position: absolute;
    top: 1rem;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}

.porto-lb-btn:hover {
    background: rgba(255, 255, 255, .3);
}

.porto-lb-close {
    right: 1rem;
}

.porto-lb-prev {
    left: 1rem;
}

.porto-lb-next {
    right: 1rem;
}

.porto-cta-band {
    background: var(--primary-color);
}

/* Lompatan anchor tetap rapi meski navbar fixed + bar kategori sticky */
section[id],
nav[id] {
    scroll-margin-top: calc(var(--nav-h, 72px) + var(--bar-h, 44px) + 8px);
}

.porto-count {
    color: var(--secondary-color);
}

.porto-grid {
    --bs-gutter-y: .75rem;
}

@media (max-width: 767px) {
    .porto-sec {
        padding: 2.5rem 0;
    }

    .porto-head {
        margin-bottom: 1.25rem;
    }

    .porto-fig::before {
        content: '\f4e0';
        opacity: .9;
        width: 28px;
        height: 28px;
        font-size: .8rem;
    }

    .porto-lb-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

@media print {
    .porto-subnav,
    .floating-whatsapp,
    .porto-cta {
        display: none !important;
    }
}