:root {
    --bg: #28282b;
    --panel: #242426;
    --text: #faf9f6;
    --muted: #d7d5d1;
    --gold: #d8ad55;
    --gold-dark: #b78639;
    --grad-gold: linear-gradient(110deg, rgba(175, 132, 69, 1) 0%, rgba(232, 201, 136, 1) 33%, rgba(229, 202, 131, 1) 66%, rgba(175, 132, 69, 1) 100%);
    --grad-gold-text: linear-gradient(100deg, #BC9554 0%, #E9CE8B 45%, #E5CA83 60%, #C09A5C 100%);
    --container: 1240px
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Neue Montreal', 'Helvetica Now', Canela, 'PP Editorial', Arial, sans-serif;
    line-height: 1.55
}

img {
    display: block;
    max-width: 100%
}

a {
    color: inherit;
    text-decoration: none
}

button,
input {
    font: inherit
}

.portfolio-container,
.container {
    width: min(var(--container), calc(100% - 48px));
    margin-inline: auto
}

.portfolio-hero {
    height: 600px;
    background: url('/images/portfolio-hero.webp') center/cover;
    display: flex;
    align-items: flex-end;
    padding: 100px max(7vw, 50px) 40px;
}

.portfolio-hero__panel {
    width: 100%;
    padding: 42px 48px 44px;
    background: rgba(84, 82, 81, .55);
    backdrop-filter: blur(15px);
    border-radius: 14px
}

.portfolio-hero__panel span {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .2px
}

.portfolio-hero h1 {
    font-size: 40px;
    line-height: 1.15;
    margin: 12px 0 28px
}

.gold-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 30px;
    font-size: 13px;
    font-weight: 700;
    background: linear-gradient(110deg, rgba(175, 132, 69, 1) 0%, rgba(232, 201, 136, 1) 33%, rgba(229, 202, 131, 1) 66%, rgba(175, 132, 69, 1) 100%);
    color: #1d1810;
    border-radius: 4px
}

.gold-button b {
    font-size: 17px
}

.portfolio-work {
    width: min(1240px, 86%);
    margin: auto;
    padding: 70px 0 115px
}

.portfolio-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    margin-bottom: 28px
}

.portfolio-heading h2 {
    font-size: 38px;
    line-height: 1.35;
    margin: 0
}

.filter-button {
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    color: #fff;
    border: 1px solid #a6a29c;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer
}

.filter-button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round
}

.filter-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 100;
}

.filter-sidebar-overlay[hidden] {
    display: none !important;
}

.filter-sidebar {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: 320px;
    background: #111111;
    z-index: 101;
    padding: 40px;
    display: flex;
    flex-direction: column;
    color: #fff;
}

.filter-sidebar[hidden] {
    display: none !important;
}

.close-filter-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

.filter-sidebar h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 10px 0 30px;
    text-transform: uppercase;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    overflow-y: auto;
}

.filter-options label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    cursor: pointer;
}

.filter-options input[type="checkbox"] {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid #555;
    border-radius: 3px;
    background: transparent;
    cursor: pointer;
    position: relative;
}

.filter-options input[type="checkbox"]:checked {
    background: #fff;
    border-color: #fff;
}

.filter-options input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid #000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.apply-filter-btn {
    background: linear-gradient(110deg, rgba(175, 132, 69, 1) 0%, rgba(232, 201, 136, 1) 33%, rgba(229, 202, 131, 1) 66%, rgba(175, 132, 69, 1) 100%);
    color: #1d1810;
    border: none;
    border-radius: 4px;
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 30px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 74px;
    row-gap: 39px;
    align-items: start
}

.project:nth-child(odd) {
    transform: translateY(98px)
}

.project-img-wrapper {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 22px;
    overflow: hidden;
}

.project img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.project:hover img {
    transform: scale(1.15);
}

.project h3 {
    font-size: 27px;
    line-height: 1.2;
    margin: 19px 0 4px
}

.project p {
    font-size: 13px;
    margin: 0 0 14px;
    color: var(--muted)
}

.project>a {
    display: inline-block;
    background: linear-gradient(110deg, rgba(175, 132, 69, 1) 0%, rgba(232, 201, 136, 1) 33%, rgba(229, 202, 131, 1) 66%, rgba(175, 132, 69, 1) 100%);
    color: #1d1810;
    border-radius: 4px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 700
}

.project[hidden] {
    display: none
}

.portfolio-newsletter {
    padding: 76px 0 32px;
    border-bottom: 1px solid #5a5a5c
}

.portfolio-newsletter .portfolio-container {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.portfolio-newsletter h2 {
    font-size: 20px;
    margin: 0
}

.portfolio-newsletter form {
    width: 50%;
    display: flex
}

.portfolio-newsletter input {
    flex: 1;
    min-width: 0;
    padding: 14px 20px;
    background: transparent;
    color: #fff;
    border: 1px solid #aaa;
    border-radius: 7px 0 0 7px
}

.portfolio-newsletter button {
    padding: 0 25px;
    border: 0;
    border-radius: 0 7px 7px 0;
    background: linear-gradient(110deg, #b88939, #e9c36d);
    font-weight: 700
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}


@media(max-width:760px) {

    .container,
    .portfolio-container {
        width: 90%
    }

    .portfolio-hero {
        height: 510px;
        padding: 0 20px
    }

    .portfolio-hero__panel {
        margin-bottom: 28px;
        padding: 32px 24px;
    }

    .portfolio-hero__panel span {
        font-size: 10px
    }

    .portfolio-hero h1 {
        font-size: 30px
    }

    .portfolio-work {
        width: 90%;
        padding: 55px 0 31px;
    }

    .portfolio-heading {
        display: block
    }

    .portfolio-heading h2 {
        font-size: 28px
    }

    .filter-button {
        margin-top: 24px
    }

    .filter-menu {
        left: 0;
        right: auto;
        top: 110px
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 48px
    }

    .project:nth-child(odd) {
        transform: none
    }

    .project img {
        border-radius: 15px
    }

    .project h3 {
        font-size: 22px
    }

    .portfolio-newsletter {
        padding: 45px 0 30px
    }

    .portfolio-newsletter .portfolio-container {
        display: block
    }

    .portfolio-newsletter h2 {
        font-size: 16px;
        margin-bottom: 18px
    }

    .portfolio-newsletter form {
        width: 100%
    }

    .portfolio-newsletter button {
        padding: 0 15px
    }


}