/* =========================================================
   VERDANT — PROJECT PAGES
   ========================================================= */

:root {
    --forest: #18352b;
    --forest-dark: #0d2119;
    --forest-light: #29483a;

    --cream: #f3f0e7;
    --warm-white: #faf9f5;
    --stone: #d9d3c5;

    --text: #18201c;
    --muted: #6d746e;

    --border: rgba(24, 53, 43, 0.16);

    --serif: "Playfair Display", Georgia, serif;
    --sans: "DM Sans", Arial, sans-serif;
}


/* =========================================================
   RESET
   ========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans);
    background: var(--warm-white);
    color: var(--text);
    line-height: 1.6;
}

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

button {
    font-family: inherit;
    cursor: pointer;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.project-nav {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;

    z-index: 100;
}

.project-nav-inner {
    width: min(1420px, calc(100% - 80px));
    margin: 0 auto;

    padding: 28px 0;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.project-logo {
    color: white;

    font-size: 22px;
    font-weight: 600;

    letter-spacing: 4px;
}

.project-nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.project-nav-links a {
    position: relative;

    color: white;

    font-size: 13px;
    font-weight: 500;
}

.project-nav-links a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -7px;

    width: 0;
    height: 1px;

    background: white;

    transition: width 0.25s ease;
}

.project-nav-links a:hover::after {
    width: 100%;
}

.project-nav-cta {
    padding: 12px 21px;

    border: 1px solid rgba(255, 255, 255, 0.7);

    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);

    color: white;

    font-size: 12px;
    font-weight: 500;

    transition: all 0.25s ease;
}

.project-nav-cta:hover {
    background: white;
    color: var(--forest);
}


/* =========================================================
   PROJECT HERO
   ========================================================= */

.project-hero {
    position: relative;

    min-height: 720px;

    display: flex;
    align-items: flex-end;

    padding: 0 max(40px, calc((100% - 1420px) / 2)) 75px;

    overflow: hidden;

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    color: white;
}

.villa-hero {
    background-image:
        linear-gradient(
            180deg,
            rgba(5, 15, 11, 0.28),
            rgba(5, 15, 11, 0.08) 42%,
            rgba(5, 15, 11, 0.78) 100%
        ),
        url("../images/project-1.png");
}

.courtyard-hero {
    background-image:
        linear-gradient(
            180deg,
            rgba(5, 15, 11, 0.28),
            rgba(5, 15, 11, 0.08) 42%,
            rgba(5, 15, 11, 0.78) 100%
        ),
        url("../images/project-2.png");
}

.retreat-hero {
    background-image:
        linear-gradient(
            180deg,
            rgba(5, 15, 11, 0.28),
            rgba(5, 15, 11, 0.08) 42%,
            rgba(5, 15, 11, 0.78) 100%
        ),
        url("../images/project-3.png");
}

.project-hero-content {
    position: relative;
    z-index: 2;

    max-width: 1000px;
}

.project-eyebrow {
    margin-bottom: 22px;

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 2px;
}

.project-hero h1 {
    font-family: var(--serif);

    font-size: clamp(62px, 8vw, 110px);
    font-weight: 500;

    line-height: 0.94;

    letter-spacing: -3px;
}

.project-hero-subtitle {
    max-width: 600px;

    margin-top: 26px;

    color: rgba(255, 255, 255, 0.8);

    font-size: 15px;
}


/* =========================================================
   BACK LINK
   ========================================================= */

.back-link {
    position: absolute;

    top: 112px;
    left: max(40px, calc((100% - 1420px) / 2));

    z-index: 5;

    color: rgba(255, 255, 255, 0.78);

    font-size: 11px;

    transition: color 0.25s ease;
}

.back-link:hover {
    color: white;
}


/* =========================================================
   PROJECT INTRO
   ========================================================= */

.project-intro {
    padding: 135px max(40px, calc((100% - 1420px) / 2));

    background: var(--warm-white);
}

.project-intro-grid {
    display: grid;

    grid-template-columns: 1.1fr 0.9fr;

    gap: 110px;
}

.project-intro h2 {
    max-width: 800px;

    font-family: var(--serif);

    font-size: clamp(42px, 4.5vw, 67px);
    font-weight: 500;

    line-height: 1.06;

    letter-spacing: -1.8px;

    color: var(--forest);
}

.project-intro-copy {
    padding-top: 12px;
}

.project-intro-copy p {
    color: var(--muted);

    font-size: 15px;

    line-height: 1.9;
}


/* =========================================================
   PROJECT FACTS
   ========================================================= */

.project-facts {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    margin-top: 85px;

    border-top: 1px solid var(--border);
}

.fact {
    padding: 25px 20px 25px 0;

    border-right: 1px solid var(--border);
}

.fact:not(:first-child) {
    padding-left: 25px;
}

.fact:last-child {
    border-right: none;
}

.fact-label {
    display: block;

    margin-bottom: 8px;

    color: var(--muted);

    font-size: 9px;
    font-weight: 600;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}

.fact-value {
    color: var(--forest);

    font-size: 13px;
    font-weight: 600;
}


/* =========================================================
   CASE STUDY
   ========================================================= */

.case-study {
    padding: 130px max(40px, calc((100% - 1420px) / 2));

    background: var(--cream);
}

.case-study-header {
    display: grid;

    grid-template-columns: 0.35fr 1fr;

    gap: 80px;
}

.case-study-label {
    color: var(--muted);

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 1.7px;

    text-transform: uppercase;
}

.case-study-label span {
    margin-right: 12px;

    color: var(--forest);
}

.case-study-header h2 {
    max-width: 900px;

    font-family: var(--serif);

    color: var(--forest);

    font-size: clamp(42px, 4.2vw, 64px);
    font-weight: 500;

    line-height: 1.07;

    letter-spacing: -1.5px;
}

.case-study-text {
    max-width: 780px;

    margin-top: 55px;
    margin-left: calc(35% + 80px);
}

.case-study-text p {
    margin-bottom: 22px;

    color: var(--muted);

    font-size: 15px;

    line-height: 1.9;
}


/* =========================================================
   GALLERY
   ========================================================= */

.project-gallery {
    width: 100%;
}

.gallery-image {
    width: 100%;

    min-height: 680px;

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.gallery-image.tall {
    min-height: 760px;
}


/* Contemporary Villa */

.gallery-image.villa-2 {
    background-image: url("../images/contemporary-villa-2.png");
}

.gallery-image.villa-3 {
    background-image: url("../images/contemporary-villa-3.png");
}

.gallery-image.villa-4 {
    background-image: url("../images/contemporary-villa-4.png");
}


/* Tropical Courtyard */

.gallery-image.courtyard-2 {
    background-image: url("../images/tropical-courtyard-2.png");
}

.gallery-image.courtyard-3 {
    background-image: url("../images/tropical-courtyard-3.png");
}

.gallery-image.courtyard-4 {
    background-image: url("../images/tropical-courtyard-4.png");
}


/* Urban Retreat */

.gallery-image.retreat-2 {
    background-image: url("../images/urban-retreat-2.png");
}

.gallery-image.retreat-3 {
    background-image: url("../images/urban-retreat-3.png");
}

.gallery-image.retreat-4 {
    background-image: url("../images/urban-retreat-4.png");
}


/* =========================================================
   IMAGE + TEXT FEATURE
   ========================================================= */

.gallery-feature {
    display: grid;

    grid-template-columns: 1fr 0.42fr;

    min-height: 680px;

    background: var(--cream);
}

.gallery-feature-image {
    min-height: 680px;

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.gallery-feature-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 65px;
}

.gallery-feature-copy .eyebrow {
    margin-bottom: 20px;

    color: var(--forest);

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 2px;
}

.gallery-feature-copy h3 {
    color: var(--forest);

    font-family: var(--serif);

    font-size: 42px;
    font-weight: 500;

    line-height: 1.08;
}

.gallery-feature-copy p {
    margin-top: 20px;

    color: var(--muted);

    font-size: 14px;

    line-height: 1.85;
}


/* =========================================================
   WORK SECTION
   ========================================================= */

.work-section {
    padding: 135px max(40px, calc((100% - 1420px) / 2));

    background: var(--warm-white);
}

.work-section-title {
    max-width: 800px;

    margin-bottom: 75px;
}

.work-section-title .eyebrow {
    margin-bottom: 20px;

    color: var(--forest);

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 2px;
}

.work-section-title h2 {
    font-family: var(--serif);

    color: var(--forest);

    font-size: clamp(42px, 4vw, 62px);
    font-weight: 500;

    line-height: 1.08;

    letter-spacing: -1.5px;
}

.work-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}

.work-item {
    min-height: 260px;

    padding: 35px;

    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.work-item-number {
    color: var(--muted);

    font-size: 10px;
}

.work-item h3 {
    margin-top: 48px;

    color: var(--forest);

    font-family: var(--serif);

    font-size: 30px;
    font-weight: 500;
}

.work-item p {
    max-width: 470px;

    margin-top: 12px;

    color: var(--muted);

    font-size: 13px;

    line-height: 1.8;
}


/* =========================================================
   RESULT
   ========================================================= */

.result {
    padding: 140px max(40px, calc((100% - 1420px) / 2));

    background: var(--forest);

    color: white;
}

.result-grid {
    display: grid;

    grid-template-columns: 0.35fr 1fr;

    gap: 80px;
}

.result-label {
    color: rgba(255, 255, 255, 0.55);

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 1.7px;

    text-transform: uppercase;
}

.result-label span {
    margin-right: 12px;

    color: white;
}

.result h2 {
    max-width: 850px;

    font-family: var(--serif);

    font-size: clamp(44px, 4.5vw, 68px);
    font-weight: 500;

    line-height: 1.06;

    letter-spacing: -1.5px;
}

.result p {
    max-width: 750px;

    margin-top: 35px;

    color: rgba(255, 255, 255, 0.65);

    font-size: 15px;

    line-height: 1.9;
}


/* =========================================================
   PROJECT CTA
   ========================================================= */

.project-cta {
    padding: 150px 40px;

    background: var(--stone);

    text-align: center;
}

.project-cta .eyebrow {
    color: rgba(24, 53, 43, 0.6);

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 2px;
}

.project-cta h2 {
    max-width: 900px;

    margin: 20px auto 0;

    color: var(--forest);

    font-family: var(--serif);

    font-size: clamp(48px, 5vw, 78px);
    font-weight: 500;

    line-height: 1.03;

    letter-spacing: -2px;
}

.project-cta p {
    margin-top: 22px;

    color: rgba(24, 53, 43, 0.65);

    font-size: 15px;
}

.project-cta button {
    margin-top: 35px;

    padding: 17px 28px;

    border: 1px solid var(--forest);

    background: var(--forest);

    color: white;

    font-size: 12px;
    font-weight: 600;

    transition: all 0.25s ease;
}

.project-cta button:hover {
    background: transparent;

    color: var(--forest);
}


/* =========================================================
   FOOTER
   ========================================================= */

.project-footer {
    padding: 65px max(40px, calc((100% - 1420px) / 2)) 25px;

    background: #091711;

    color: white;
}

.project-footer-top {
    display: flex;

    justify-content: space-between;

    padding-bottom: 55px;
}

.project-footer-logo {
    color: white;

    font-size: 21px;
    font-weight: 600;

    letter-spacing: 4px;
}

.project-footer p {
    margin-top: 12px;

    color: rgba(255, 255, 255, 0.5);

    font-size: 12px;
}

.project-footer-links {
    display: flex;

    gap: 35px;
}

.project-footer-links a {
    color: rgba(255, 255, 255, 0.65);

    font-size: 12px;

    transition: color 0.2s ease;
}

.project-footer-links a:hover {
    color: white;
}

.project-footer-bottom {
    padding-top: 20px;

    border-top: 1px solid rgba(255, 255, 255, 0.12);

    color: rgba(255, 255, 255, 0.3);

    font-size: 10px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .project-nav-inner {
        width: calc(100% - 50px);
    }

    .project-nav-links {
        gap: 20px;
    }

    .project-nav-cta {
        display: none;
    }

    .project-hero {
        padding-left: 30px;
        padding-right: 30px;
    }

    .back-link {
        left: 30px;
    }

    .project-intro,
    .case-study,
    .work-section,
    .result {
        padding-left: 30px;
        padding-right: 30px;
    }

    .project-intro-grid {
        grid-template-columns: 1fr;

        gap: 40px;
    }

    .project-intro-copy {
        padding-top: 0;
    }

    .project-facts {
        grid-template-columns: repeat(2, 1fr);
    }

    .fact:nth-child(2) {
        border-right: none;
    }

    .fact:nth-child(3) {
        padding-left: 0;
    }

    .case-study-header,
    .result-grid {
        grid-template-columns: 1fr;

        gap: 35px;
    }

    .case-study-text {
        margin-left: 0;
    }

    .gallery-feature {
        grid-template-columns: 1fr;
    }

    .gallery-feature-image {
        min-height: 550px;
    }

    .gallery-feature-copy {
        padding: 65px 40px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .project-nav-inner {
        width: calc(100% - 35px);

        padding: 20px 0;
    }

    .project-logo {
        font-size: 18px;

        letter-spacing: 3px;
    }

    .project-nav-links {
        display: none;
    }

    .project-hero {
        min-height: 620px;

        padding: 0 22px 55px;
    }

    .back-link {
        top: 92px;
        left: 22px;
    }

    .project-hero h1 {
        font-size: 57px;

        letter-spacing: -2px;
    }

    .project-hero-subtitle {
        font-size: 13px;
    }

    .project-intro,
    .case-study,
    .work-section,
    .result {
        padding-top: 90px;
        padding-bottom: 90px;

        padding-left: 22px;
        padding-right: 22px;
    }

    .project-intro h2,
    .case-study-header h2,
    .work-section-title h2 {
        font-size: 40px;
    }

    .project-facts {
        grid-template-columns: 1fr;

        margin-top: 60px;
    }

    .fact,
    .fact:not(:first-child) {
        padding: 18px 0;

        border-right: none;

        border-bottom: 1px solid var(--border);
    }

    .fact:last-child {
        border-bottom: none;
    }

    .gallery-image,
    .gallery-image.tall {
        min-height: 410px;
    }

    .gallery-feature-image {
        min-height: 410px;
    }

    .gallery-feature-copy {
        padding: 55px 25px;
    }

    .gallery-feature-copy h3 {
        font-size: 34px;
    }

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

    .work-item {
        min-height: 230px;

        padding: 28px;
    }

    .result h2 {
        font-size: 42px;
    }

    .project-cta {
        padding: 100px 22px;
    }

    .project-cta h2 {
        font-size: 45px;
    }

    .project-footer {
        padding-left: 22px;
        padding-right: 22px;
    }

    .project-footer-top {
        flex-direction: column;

        gap: 35px;
    }

    .project-footer-links {
        flex-wrap: wrap;

        gap: 18px 25px;
    }
}