:root{
    --green:#0d7139;
    --green-dark:#06371f;
    --green-deep:#041f13;
    --gold:#d7b24a;
    --gold-light:#efd98c;
    --ivory:#f6f4ed;
    --white:#ffffff;
    --dark:#111713;
    --text:#5d655f;
    --line:#dfe4df;
    --shadow:0 24px 70px rgba(6,45,25,.13);
    --container:1220px;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    background:var(--ivory);
    color:var(--dark);
    font-family:"Manrope",Arial,sans-serif;
    line-height:1.65;
    overflow-x:hidden;
}

body.menu-open{
    overflow:hidden;
}

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

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

button{
    border:0;
    font:inherit;
    cursor:pointer;
}

.container{
    width:min(92%,var(--container));
    margin:auto;
}

.section-label,
.eyebrow{
    display:inline-block;
    color:var(--gold);
    font-size:.68rem;
    font-weight:800;
    letter-spacing:2px;
    text-transform:uppercase;
}

/* Header */

.site-header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    z-index:1000;
    border-bottom:1px solid rgba(255,255,255,.12);
    transition:
        background .3s ease,
        box-shadow .3s ease;
}

.site-header.scrolled{
    background:rgba(4,31,19,.97);
    box-shadow:0 10px 35px rgba(0,0,0,.18);
    backdrop-filter:blur(16px);
}

.header-inner{
    min-height:88px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:28px;
}

.brand{
    display:flex;
    align-items:center;
    gap:13px;
    color:var(--white);
}

.brand img{
    width:53px;
    height:53px;
    border-radius:12px;
    object-fit:cover;
}

.brand > span{
    display:flex;
    flex-direction:column;
    line-height:1.05;
}

.brand strong{
    font-size:1.02rem;
    letter-spacing:1.8px;
}

.brand small{
    margin-top:6px;
    color:var(--gold-light);
    font-size:.6rem;
    letter-spacing:1.6px;
    text-transform:uppercase;
}

.main-navigation{
    display:flex;
    align-items:center;
    gap:34px;
}

.main-navigation a{
    position:relative;
    padding:10px 0;
    color:rgba(255,255,255,.82);
    font-size:.78rem;
    font-weight:700;
}

.main-navigation a:hover,
.main-navigation a.active{
    color:var(--white);
}

.main-navigation a::after{
    content:"";
    position:absolute;
    left:0;
    right:100%;
    bottom:3px;
    height:2px;
    background:var(--gold);
    transition:right .25s ease;
}

.main-navigation a:hover::after,
.main-navigation a.active::after{
    right:0;
}

.header-cta{
    padding:11px 18px;
    border:1px solid rgba(255,255,255,.35);
    border-radius:999px;
    color:var(--white);
    font-size:.7rem;
    font-weight:800;
    transition:.25s ease;
}

.header-cta:hover{
    background:var(--gold);
    border-color:var(--gold);
    color:var(--green-deep);
}

.menu-button{
    display:none;
    width:45px;
    height:45px;
    padding:11px;
    border-radius:50%;
    background:rgba(255,255,255,.1);
}

.menu-button span{
    display:block;
    width:100%;
    height:2px;
    margin:4px 0;
    background:var(--white);
    transition:.25s ease;
}

/* Hero */

.projects-hero{
    position:relative;
    min-height:620px;
    display:flex;
    align-items:flex-end;
    overflow:hidden;
    background:var(--green-deep);
    color:var(--white);
}

.hero-background{
    position:absolute;
    inset:0;
    background:
        url("../images/properties/property7.jpg")
        center/cover
        no-repeat;
    transform:scale(1.02);
}

.hero-overlay{
    position:absolute;
    inset:0;
    background:
        linear-gradient(
            90deg,
            rgba(3,26,15,.94),
            rgba(3,26,15,.55)
        ),
        linear-gradient(
            to top,
            rgba(3,26,15,.72),
            transparent 60%
        );
}

.hero-content{
    position:relative;
    z-index:2;
    padding-bottom:85px;
}

.hero-content h1{
    max-width:830px;
    margin-top:16px;
    font-family:"Cormorant Garamond",Georgia,serif;
    font-size:clamp(4.5rem,8vw,7.5rem);
    font-weight:600;
    line-height:.88;
    letter-spacing:-3px;
}

.hero-content h1 em{
    display:block;
    color:var(--gold-light);
    font-style:normal;
}

.hero-content p{
    max-width:520px;
    margin-top:25px;
    color:rgba(255,255,255,.78);
    font-size:.95rem;
}

/* Portfolio */

.portfolio-section{
    padding:105px 0 115px;
}

.portfolio-heading{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:35px;
    margin-bottom:38px;
}

.portfolio-heading h2{
    margin-top:8px;
    font-family:"Cormorant Garamond",Georgia,serif;
    font-size:clamp(2.8rem,5vw,4.4rem);
    font-weight:600;
    line-height:1;
    letter-spacing:-1.5px;
}

.portfolio-heading > p{
    color:var(--text);
    font-size:.74rem;
    font-weight:700;
}

.project-tabs{
    display:flex;
    align-items:center;
    gap:8px;
    margin-bottom:35px;
    padding-bottom:16px;
    border-bottom:1px solid var(--line);
    overflow-x:auto;
    scrollbar-width:none;
}

.project-tabs::-webkit-scrollbar{
    display:none;
}

.project-tab{
    flex-shrink:0;
    min-height:48px;
    display:flex;
    align-items:center;
    gap:10px;
    padding:10px 19px;
    border-radius:999px;
    background:transparent;
    color:var(--text);
    font-size:.75rem;
    font-weight:800;
    transition:.25s ease;
}

.project-tab span{
    width:24px;
    height:24px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:rgba(0,0,0,.06);
    font-size:.62rem;
}

.project-tab:hover,
.project-tab.active{
    background:var(--green-deep);
    color:var(--white);
}

.project-tab.active span{
    background:var(--gold);
    color:var(--green-deep);
}

/* Project cards */

.projects-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:22px;
}

.project-card{
    position:relative;
    min-height:510px;
    overflow:hidden;
    background:var(--green-dark);
    animation:cardReveal .5s ease both;
}

@keyframes cardReveal{
    from{
        opacity:0;
        transform:translateY(18px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}

.project-card:nth-child(even){
    margin-top:58px;
}

.project-card-image{
    position:absolute;
    inset:0;
}

.project-card-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .7s ease;
}

.project-card:hover .project-card-image img{
    transform:scale(1.055);
}

.project-card-shade{
    position:absolute;
    inset:0;
    background:
        linear-gradient(
            to top,
            rgba(3,26,15,.94),
            rgba(3,26,15,.05) 65%
        );
}

.project-card-status{
    position:absolute;
    z-index:2;
    top:22px;
    left:22px;
    padding:8px 14px;
    border-radius:999px;
    background:rgba(4,31,19,.78);
    border:1px solid rgba(255,255,255,.2);
    color:var(--gold-light);
    backdrop-filter:blur(10px);
    font-size:.62rem;
    font-weight:800;
    letter-spacing:1.2px;
    text-transform:uppercase;
}

.project-card-content{
    position:absolute;
    z-index:2;
    left:28px;
    right:28px;
    bottom:27px;
    color:var(--white);
}

.project-card-type{
    color:var(--gold-light);
    font-size:.63rem;
    font-weight:800;
    letter-spacing:1.5px;
    text-transform:uppercase;
}

.project-card h3{
    max-width:450px;
    margin-top:5px;
    font-family:"Cormorant Garamond",Georgia,serif;
    font-size:2.6rem;
    font-weight:600;
    line-height:1;
}

.project-location{
    margin-top:11px;
    color:rgba(255,255,255,.69);
    font-size:.72rem;
}

.project-link{
    display:inline-flex;
    align-items:center;
    gap:12px;
    margin-top:20px;
    padding-bottom:4px;
    border-bottom:1px solid rgba(255,255,255,.55);
    color:var(--white);
    font-size:.7rem;
    font-weight:800;
}

.project-link span{
    transition:transform .25s ease;
}

.project-card:hover .project-link span{
    transform:translateX(5px);
}

.empty-projects{
    grid-column:1 / -1;
    min-height:350px;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    gap:9px;
    border:1px solid var(--line);
    background:var(--white);
    text-align:center;
}

.empty-projects strong{
    font-family:"Cormorant Garamond",Georgia,serif;
    font-size:2rem;
}

.empty-projects p{
    color:var(--text);
    font-size:.8rem;
}

/* Contact */

.project-contact{
    padding:0 0 105px;
}

.contact-panel{
    min-height:275px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:40px;
    padding:50px 60px;
    background:
        radial-gradient(
            circle at top right,
            rgba(215,178,74,.22),
            transparent 36%
        ),
        linear-gradient(
            135deg,
            var(--green-deep),
            var(--green)
        );
    color:var(--white);
}

.contact-panel .section-label{
    color:var(--gold-light);
}

.contact-panel h2{
    max-width:700px;
    margin-top:8px;
    font-family:"Cormorant Garamond",Georgia,serif;
    font-size:clamp(2.7rem,5vw,4.3rem);
    font-weight:600;
    line-height:1;
}

.contact-button{
    flex-shrink:0;
    min-height:52px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:13px 25px;
    border-radius:999px;
    background:var(--gold);
    color:var(--green-deep);
    font-size:.76rem;
    font-weight:800;
    transition:.25s ease;
}

.contact-button:hover{
    background:var(--gold-light);
    transform:translateY(-3px);
}

/* Footer */

.site-footer{
    padding:55px 0 23px;
    background:#07100b;
    color:var(--white);
}

.footer-main{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:35px;
    padding-bottom:35px;
}

.footer-brand{
    display:flex;
    align-items:center;
    gap:13px;
}

.footer-brand img{
    width:56px;
    height:56px;
    border-radius:12px;
    object-fit:cover;
}

.footer-brand > span{
    display:flex;
    flex-direction:column;
    line-height:1.1;
}

.footer-brand strong{
    letter-spacing:1.5px;
}

.footer-brand small{
    margin-top:5px;
    color:var(--gold);
    font-size:.58rem;
    letter-spacing:1.3px;
    text-transform:uppercase;
}

.footer-main nav{
    display:flex;
    align-items:center;
    gap:27px;
}

.footer-main nav a{
    color:rgba(255,255,255,.67);
    font-size:.74rem;
    font-weight:600;
}

.footer-main nav a:hover{
    color:var(--gold-light);
}

.footer-bottom{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:25px;
    padding-top:22px;
    border-top:1px solid rgba(255,255,255,.09);
}

.footer-bottom p{
    color:rgba(255,255,255,.43);
    font-size:.67rem;
}

/* Reveal */

.reveal{
    opacity:0;
    transform:translateY(28px);
    transition:
        opacity .7s ease,
        transform .7s ease;
}

.reveal.visible{
    opacity:1;
    transform:translateY(0);
}

/* Tablet */

@media(max-width:950px){

    .header-cta{
        display:none;
    }

    .project-card{
        min-height:440px;
    }

    .project-card h3{
        font-size:2.2rem;
    }

}

/* Mobile */

@media(max-width:780px){

    .header-inner{
        min-height:76px;
    }

    .brand img{
        width:47px;
        height:47px;
    }

    .brand strong{
        font-size:.9rem;
    }

    .menu-button{
        display:block;
        margin-left:auto;
    }

    .menu-button.open span:first-child{
        transform:
            translateY(6px)
            rotate(45deg);
    }

    .menu-button.open span:nth-child(2){
        opacity:0;
    }

    .menu-button.open span:last-child{
        transform:
            translateY(-6px)
            rotate(-45deg);
    }

    .main-navigation{
        position:fixed;
        top:76px;
        left:0;
        right:0;
        bottom:0;
        display:flex;
        align-items:flex-start;
        flex-direction:column;
        gap:0;
        padding:48px 7%;
        background:var(--green-deep);
        opacity:0;
        visibility:hidden;
        transform:translateY(-15px);
        transition:.25s ease;
    }

    .main-navigation.open{
        opacity:1;
        visibility:visible;
        transform:translateY(0);
    }

    .main-navigation a{
        width:100%;
        padding:18px 0;
        border-bottom:1px solid rgba(255,255,255,.1);
        font-family:"Cormorant Garamond",Georgia,serif;
        font-size:2rem;
        font-weight:600;
    }

    .main-navigation a::after{
        display:none;
    }

    .projects-hero{
        min-height:560px;
    }

    .hero-content{
        padding-bottom:60px;
    }

    .hero-content h1{
        font-size:4.8rem;
    }

    .portfolio-section{
        padding:78px 0 85px;
    }

    .portfolio-heading{
        align-items:flex-start;
        flex-direction:column;
        gap:14px;
    }

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

    .project-card,
    .project-card:nth-child(even){
        min-height:430px;
        margin-top:0;
    }

    .contact-panel{
        align-items:flex-start;
        flex-direction:column;
        padding:42px 30px;
    }

    .footer-main,
    .footer-bottom{
        align-items:flex-start;
        flex-direction:column;
    }

    .footer-main nav{
        flex-wrap:wrap;
    }

}

/* Small phones */

@media(max-width:470px){

    .container{
        width:min(90%,var(--container));
    }

    .brand > span{
        display:none;
    }

    .hero-content h1{
        font-size:3.9rem;
        letter-spacing:-2px;
    }

    .project-card{
        min-height:370px;
    }

    .project-card-content{
        left:20px;
        right:20px;
        bottom:20px;
    }

    .project-card h3{
        font-size:2.1rem;
    }

    .contact-panel{
        padding:35px 23px;
    }

    .contact-button{
        width:100%;
    }

}
