/* =========================================
   RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #f5f5f5;
    color: #171717;
    font-family: "Inter", sans-serif;
    overflow-x: hidden;
}

img {
    width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* =========================================
   VARIABLES
========================================= */

:root {
    --black: #111111;
    --white: #ffffff;
    --cream: #f5f5f5;
    --gray: #777777;
    --line: #d5d5d5;
    --accent: #d4bd96;
}


/* =========================================
   HEADER
========================================= */

.header {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;

    height: 90px;

    padding: 0 5vw;

    display: flex;
    align-items: center;
    justify-content: space-between;

    z-index: 1000;

    color: white;

    transition: 0.4s ease;
}

.header.scrolled {
    background: rgba(245, 245, 245, 0.95);

    color: var(--black);

    backdrop-filter: blur(12px);
}

.logo {
    display: block;
    width: 82px;
    height: 78px;
    flex: 0 0 auto;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.desktop-nav {
    display: flex;
    gap: 35px;
}

.desktop-nav a {
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    position: relative;
}

.desktop-nav a::after {
    content: "";

    position: absolute;

    bottom: -7px;
    left: 0;

    width: 0;
    height: 1px;

    background: currentColor;

    transition: 0.3s;
}

.desktop-nav a:hover::after {
    width: 100%;
}


/* =========================================
   MOBILE MENU BUTTON
========================================= */

.menu-button {
    display: none;

    border: 0;

    background: transparent;

    cursor: pointer;

    width: 40px;
    height: 30px;

    flex-direction: column;

    justify-content: center;

    gap: 6px;
}

.menu-button span {
    width: 28px;
    height: 1px;

    background: currentColor;

    display: block;
}


/* =========================================
   MOBILE MENU
========================================= */

.mobile-menu {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100vh;

    background: #111;

    color: white;

    z-index: 900;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    gap: 30px;

    transform: translateY(-100%);

    transition: 0.5s ease;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu a {
    font-family: "Playfair Display", serif;

    font-size: 42px;
}


/* =========================================
   HERO
========================================= */

.hero {
    height: 100vh;

    position: relative;

    color: white;

    overflow: hidden;
}

.hero img {
    position: absolute;

    width: 100%;
    height: 100%;

    object-fit: cover;

    animation: heroZoom 12s ease-out forwards;
}

@keyframes heroZoom {

    from {
        transform: scale(1.08);
    }

    to {
        transform: scale(1);
    }

}

.hero-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,.6),
            rgba(0,0,0,.15)
        );
}

.hero-content {
    position: absolute;

    left: 8vw;

    bottom: 13vh;

    max-width: 700px;
}

.small-title {
    font-size: 11px;

    letter-spacing: 3px;

    margin-bottom: 25px;
}

.hero h1 {
    font-family: "Inter", sans-serif;

    font-size: clamp(65px, 9vw, 145px);

    line-height: .86;

    font-weight: 400;

    letter-spacing: 0;

    margin-bottom: 35px;
}

.hero h1 em {
    color: var(--accent);
    font-weight: 400;
}

.hero-description {
    max-width: 450px;

    line-height: 1.7;

    color: rgba(255,255,255,.8);

    margin-bottom: 35px;
}

.hero-button {
    display: inline-flex;

    gap: 35px;

    align-items: center;

    border-bottom: 1px solid white;

    padding-bottom: 10px;

    font-size: 12px;

    text-transform: uppercase;

    letter-spacing: 1px;
}

.hero-button span {
    font-size: 18px;
}

.hero-number {
    position: absolute;

    right: 5vw;

    bottom: 40px;

    font-size: 11px;

    letter-spacing: 2px;
}


/* =========================================
   GENERAL SECTION
========================================= */

.section {
    padding: 150px 8vw;
}

.services.section {
    padding-top: 90px;
    padding-bottom: 90px;
}

.section-label {
    display: flex;

    gap: 20px;

    align-items: center;

    font-size: 10px;

    letter-spacing: 2px;

    margin-bottom: 90px;
}

.section-label span {
    color: var(--gray);
}


/* =========================================
   ABOUT
========================================= */

.about-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 10vw;
}

.about-title h2,
.projects-heading h2,
.services-heading h2,
.contact h2 {
    font-family: "Playfair Display", serif;

    font-size: clamp(55px, 6vw, 95px);

    line-height: .95;

    font-weight: 400;

    letter-spacing: -3px;
}

.about-title em,
.projects-heading em,
.services-heading em,
.contact h2 em {
    font-weight: 400;
}

.about-text {
    padding-top: 10px;

    max-width: 500px;
}

.large-text {
    font-family: "Playfair Display", serif;

    font-size: 29px;

    line-height: 1.3;

    margin-bottom: 35px;
}

.about-text p:not(.large-text) {
    color: #666;

    line-height: 1.8;

    margin-bottom: 20px;
}

.text-link {
    display: inline-block;

    margin-top: 20px;

    border-bottom: 1px solid #222;

    padding-bottom: 8px;

    font-size: 12px;

    text-transform: uppercase;

    letter-spacing: 1px;
}


/* =========================================
   FEATURED PROJECT
========================================= */

.featured-project {
    background: #e6e6e6;

    display: grid;

    grid-template-columns: 1.3fr .7fr;

    min-height: 700px;
}

.featured-image {
    overflow: hidden;
}

.featured-image img {
    height: 100%;

    object-fit: cover;

    transition: transform .8s ease;
}

.featured-project:hover img {
    transform: scale(1.03);
}

.featured-content {
    padding: 10vw 7vw;

    display: flex;

    flex-direction: column;

    justify-content: center;
}

.project-category {
    font-size: 10px;

    letter-spacing: 2px;

    margin-bottom: 30px;
}

.featured-content h2 {
    font-family: "Playfair Display", serif;

    font-size: clamp(55px, 6vw, 90px);

    line-height: .95;

    font-weight: 400;

    margin-bottom: 35px;
}

.featured-content > p:not(.project-category) {
    color: #666;

    line-height: 1.8;

    max-width: 400px;
}


/* =========================================
   PROJECTS
========================================= */
.projects {
    background: #f5f5f5;
}

.projects-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 80px;
}

.projects-heading p {
    max-width: 400px;
    color: #777;
    line-height: 1.7;
}


/* =========================================
   FILTERS
========================================= */

.filters {
    display: flex;
    gap: 35px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 60px;
}

.filter {
    background: none;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding-bottom: 15px;
    color: #888;
    position: relative;
}

.filter.active {
    color: #111;
}

.filter.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 1px;
    background: #111;
}


/* =========================================
   PROJECT GRID
========================================= */

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 70px 30px;
}


/* =========================================
   PROJECT CARD
========================================= */

.project-card {
    transition: 0.4s ease;
}

.project-card.hide {
    display: none;
}


/* =========================================
   PROJECT IMAGE
========================================= */

.project-image {
    position: relative;
    overflow: hidden;
    background: #ddd;
    aspect-ratio: 4 / 5;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}


/* =========================================
   HOVER OVERLAY
========================================= */

.project-overlay {
    position: absolute;
    inset: 0;

    background: rgba(0,0,0,0.35);

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;

    transition: 0.4s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay span {
    color: white;

    border: 1px solid white;

    padding: 14px 24px;

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: 1.5px;
}


/* =========================================
   PROJECT INFO
========================================= */

.project-info {
    display: flex;
    justify-content: space-between;
    padding-top: 18px;
}

.project-card--compact-info .project-info {
    padding-top: 0;
}

.project-info h3 {
    font-family: "Playfair Display", serif;

    font-size: 23px;

    font-weight: 400;

    margin-bottom: 5px;
}

.project-info p {
    font-size: 9px;

    color: #888;

    text-transform: uppercase;

    letter-spacing: 1px;
}

.project-arrow {
    font-size: 22px;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 650px) {

    .project-grid {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .filters {
        gap: 20px;
        overflow-x: auto;
        white-space: nowrap;
    }

    .filter {
        flex-shrink: 0;
    }

    .project-info h3 {
        font-size: 21px;
    }

}
/* =========================================
   SERVICES
========================================= */

.services {
    --accent: #80643c;

    background: transparent;

    color: var(--black);
}

.services .section-label {
    color: var(--black);

    margin-bottom: 55px;
}

.services-heading {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 50px;

    margin-bottom: 45px;
}

.services-heading p {
    max-width: 390px;

    color: #666;

    line-height: 1.7;

    margin-bottom: 8px;
}

.services-list {
    border-top: 1px solid var(--line);
}

.service {
    border-bottom: 1px solid var(--line);

    transition: padding-left .3s;
}

.service > summary {
    display: grid;

    grid-template-columns: 80px minmax(0, 1fr) 50px;

    align-items: center;

    gap: 30px;

    padding: 24px 0;

    cursor: pointer;

    list-style: none;
}

.service > summary::-webkit-details-marker {
    display: none;
}

.service > summary::marker {
    content: "";
}

.service > summary > span {
    color: #777;

    font-size: 12px;
}

.service h3 {
    font-family: "Playfair Display", serif;

    font-size: 32px;

    font-weight: 400;

    margin-bottom: 10px;
}

.service p {
    color: #666;

    max-width: 500px;

    line-height: 1.6;
}

.service strong {
    font-size: 25px;

    font-weight: 300;

    transition: transform .2s, color .2s;
}

.service[open] > summary strong {
    color: var(--accent);

    transform: rotate(45deg);
}

.service-details {
    max-width: 680px;

    margin: 0 80px 30px 110px;
}

.service-features {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 14px 24px;

    margin-bottom: 25px;

    list-style: none;
}

.service-features li {
    padding-top: 12px;

    border-top: 1px solid var(--line);

    color: #555;

    font-size: 13px;

    line-height: 1.6;
}

.service-contact {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding-bottom: 6px;

    border-bottom: 1px solid var(--accent);

    color: var(--accent);

    font-size: 11px;

    letter-spacing: 1px;

    text-transform: uppercase;
}

.service-contact:focus-visible,
.service > summary:focus-visible {
    outline: 1px solid var(--accent);

    outline-offset: 5px;
}

.service:hover {
    padding-left: 15px;
}


/* =========================================
   IMAGE BANNER
========================================= */

.image-banner {
    height: 80vh;

    position: relative;

    overflow: hidden;

    color: white;
}

.image-banner img {
    height: 100%;

    object-fit: cover;
}

.image-banner::after {
    content: "";

    position: absolute;

    inset: 0;

    background: rgba(0,0,0,.35);
}

.image-banner-overlay {
    position: absolute;

    z-index: 2;

    left: 8vw;

    bottom: 10vh;
}

.image-banner-overlay p {
    font-size: 12px;

    letter-spacing: 3px;

    margin-bottom: 15px;
}

.image-banner-overlay h2 {
    font-family: "Playfair Display", serif;

    font-size: clamp(70px, 12vw, 180px);

    line-height: .8;

    font-weight: 400;

    letter-spacing: -5px;
}


/* =========================================
   CONTACT
========================================= */

.contact {
    background: #e7e7e7;
}

.contact-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 10vw;
}

.contact-details {
    padding-top: 10px;
}

.contact-intro {
    font-family: "Playfair Display", serif;

    font-size: 30px;

    line-height: 1.3;

    margin-bottom: 60px;
}

.contact-item {
    border-top: 1px solid #c7c7c7;

    padding: 20px 0;

    display: flex;

    justify-content: space-between;

    gap: 30px;
}

.contact-item span {
    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: 1.5px;

    color: #777;
}

.contact-item a,
.contact-item p {
    font-size: 14px;
}

.contact-button {
    display: inline-block;

    margin-top: 40px;

    background: #111;

    color: white;

    padding: 18px 30px;

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 1px;
}


/* =========================================
   FOOTER
========================================= */

footer {
    background: #111;

    color: white;

    padding: 60px 8vw 30px;
}

.footer-top {
    display: flex;

    justify-content: space-between;

    padding-bottom: 70px;
}

.footer-logo {
    font-size: 16px;

    letter-spacing: 0;
}

.footer-logo span {
    font-weight: 300;
}

.footer-top p {
    color: #888;

    font-size: 12px;
}

.footer-bottom {
    border-top: 1px solid #333;

    padding-top: 25px;

    display: flex;

    justify-content: space-between;

    color: #777;

    font-size: 10px;
}

.footer-bottom div {
    display: flex;

    gap: 25px;
}

.footer-bottom a:hover {
    color: white;
}


/* =========================================
   PROJECT FILTER ANIMATION
========================================= */

.project-card.hide {
    display: none;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {

    .desktop-nav {
        display: none;
    }

    .menu-button {
        display: flex;
    }

    .section {
        padding: 100px 6vw;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;

        gap: 60px;
    }

    .featured-project {
        grid-template-columns: 1fr;
    }

    .featured-image {
        min-height: 600px;
    }

    .featured-content {
        min-height: 500px;
    }

    .projects-heading {
        flex-direction: column;

        align-items: flex-start;

        gap: 30px;
    }

    .service > summary {
        grid-template-columns: 50px minmax(0, 1fr) 30px;

        gap: 20px;
    }

    .service-details {
        margin-left: 70px;
    }

}


@media (max-width: 650px) {

    .header {
        height: 75px;

        padding: 0 6vw;
    }

    .hero-content {
        left: 6vw;

        right: 6vw;

        bottom: 12vh;
    }

    .hero h1 {
        font-size: clamp(38px, 10vw, 58px);
    }

    .hero-description {
        font-size: 14px;
    }

    .section {
        padding: 80px 6vw;
    }

    .section-label {
        margin-bottom: 55px;
    }

    .about-title h2,
    .projects-heading h2,
    .services-heading h2,
    .contact h2 {
        font-size: 58px;
    }

    .project-grid {
        grid-template-columns: 1fr;

        gap: 60px;
    }

    .project-card.large {
        grid-column: span 1;
    }

    .project-card.large .project-image {
        aspect-ratio: 4 / 5;
    }

    .filters {
        gap: 20px;

        overflow-x: auto;

        white-space: nowrap;
    }

    .services-heading {
        display: block;

        margin-bottom: 55px;
    }

    .services.section {
        padding: 65px 6vw;
    }

    .services-heading p {
        margin-top: 24px;

        margin-bottom: 0;
    }

    .service > summary {
        grid-template-columns: 35px minmax(0, 1fr) 24px;

        gap: 14px;
    }

    .service-details {
        margin: 0 0 25px 49px;
    }

    .service-features {
        grid-template-columns: 1fr;

        gap: 8px;
    }

    .service h3 {
        font-size: 25px;
    }

    .image-banner {
        height: 60vh;
    }

    .image-banner-overlay h2 {
        font-size: 80px;
    }

    .contact-item {
        flex-direction: column;

        gap: 10px;
    }

    .footer-top,
    .footer-bottom {
        flex-direction: column;

        gap: 25px;
    }

}