/* ===================================================
   GLOBAL
=================================================== */

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: "Futura PT", Futura, Arial, sans-serif;
    background: #f3f0ea;
    color: #565251;
}

a {
    color: inherit;
    text-decoration: none;
    border-bottom: none;
    transition: color 0.25s ease, transform 0.20s ease;
}

a:hover {
    color: #66B6E8;
}


/* ===================================================
   HOMEPAGE
=================================================== */

.homepage {
    min-height: 100vh;
    background-image: url("assets/images/hero.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.shade {
    min-height: 100vh;
    background: rgba(0, 0, 0, 0.24);
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.intro {
    color: white;
    padding: 78px 64px 64px 72px;
    max-width: 700px;
}

.logo {
    width: min(520px, 85vw);
    height: auto;
    display: block;
    margin-bottom: 34px;
}

.services p {
    margin: 10px 0;
    font-size: clamp(1rem, 2.2vw, 1.45rem);
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.location {
    margin-top: 38px;
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.contact {
    margin-top: 42px;
    font-size: 1rem;
    letter-spacing: 0.08em;
}

.site-nav {
    position: fixed;
    top: 420px;
    right: 120px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 24px;
    z-index: 10;
}

.site-nav a {
    color: white;
    font-size: 0.96rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.site-nav a:hover {
    color: #66B6E8;
    transform: translateX(-6px);
}


/* ===================================================
   PROJECTS PAGE
=================================================== */

.projects-page {
    background: #f3f0ea;
    color: #565251;
    min-height: 100vh;
}

.projects-hero {
    min-height: 20vh;
    background-image:
        linear-gradient(rgba(0,0,0,.28), rgba(0,0,0,.28)),
        url("assets/images/hero.jpg");
    background-size: cover;
    background-position: center;
    padding: 56px 64px 64px;
    display: flex;
    flex-direction: column;
}

.projects-header,
.case-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.page-logo,
.case-logo {
    width: min(280px, 70vw);
    height: auto;
}

.projects-nav,
.case-nav {
    display: flex;
    gap: 42px;
    align-items: center;
}

.projects-nav a,
.case-nav a {
    color: white;
    font-size: 0.9rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.projects-nav a.active,
.case-nav a.active {
    color: white;
    font-weight: 700;
    border-bottom: 2px solid #66B6E8;
    padding-bottom: 6px;
}

.projects-nav a:hover,
.case-nav a:hover {
    color: #66B6E8;
}

.projects-title-block {
    margin: 20px auto 0;
    text-align: center;
    max-width: 650px;
    color: white;
}

.projects-title-block h1 {
    margin: 0 0 16px;
    font-size: clamp(2.2rem, 3.8vw, 3.5rem);
    letter-spacing: 0.10em;
    text-transform: uppercase;
    line-height: 0.95;
}

.projects-title-block p {
    margin: 0 auto;
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    line-height: 1.35;
}

.map-section {
    padding: 32px 64px;
    background: #f3f0ea;
}

#project-map {
    height: 750px;
    width: 100%;
}

.project-list {
    padding: 72px;
    background: #f3f0ea;
    color: #565251;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
}

.project-card {
    background: white;
    padding: 36px;
}

.project-card h2 {
    margin-top: 0;
    font-size: 2rem;
    letter-spacing: 0.04em;
}

.project-meta {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.85rem;
    color: #66B6E8;
}

.project-card p {
    line-height: 1.55;
}

.project-card a {
    color: #565251;
    border-bottom: 1px solid #565251;
}

.project-card a:hover {
    color: #66B6E8;
    border-bottom-color: #66B6E8;
}


/* ===================================================
   CASE STUDY PAGES
=================================================== */

.case-study {
    background: #f3f0ea;
    color: #565251;
    min-height: 100vh;
}

.case-hero {
    min-height: 72vh;
    background-size: cover;
    background-position: center;
    color: white;
    padding: 48px 72px 64px;
}

.bush-bay-hero {
    background-image:
        linear-gradient(rgba(0,0,0,.38), rgba(0,0,0,.18)),
        url("assets/images/bush-bay/hero.jpg");
}

.case-hero-content {
    max-width: 860px;
    margin-top: 120px;
}

.back-link {
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.85rem;
}

.case-hero h1 {
    margin: 28px 0 20px;
    font-size: clamp(2.75rem, 5.2vw, 5rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 0.95;
}

.case-subtitle {
    max-width: 640px;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    line-height: 1.35;
}

.case-meta-grid {
    margin-top: 42px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
}

.case-meta-grid div {
    font-size: 1rem;
    line-height: 1.35;
}

.case-meta-grid span {
    display: block;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.75rem;
    opacity: 0.85;
}


/* Original 3-column case-study layout */

.case-content {
    padding: 72px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr 0.9fr;
    gap: 54px;
    align-items: start;
}

.case-content h2 {
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.case-content p {
    line-height: 1.6;
}

.portal-card {
    background: #ebe5d8;
    padding: 40px;
}

.portal-button {
    display: inline-block;
    margin-top: 24px;
    padding: 14px 22px;
    background: #66B6E8;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.85rem;
}

.portal-button:hover {
    background: #565251;
    color: white;
}

.challenge-card img {
    width: 100%;
    display: block;
    margin-bottom: 24px;
}

.challenge-card a {
    color: #2f7fb8;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.85rem;
}


/* ===================================================
   MOBILE
=================================================== */

@media (max-width: 900px) {
    .site-nav,
    .projects-nav,
    .case-nav {
        display: none;
    }

    .shade {
        align-items: flex-end;
    }

    .intro {
        padding: 32px;
    }

    .logo {
        width: min(340px, 85vw);
        margin-bottom: 32px;
    }

    .projects-hero,
    .map-section,
    .project-list,
    .case-hero,
    .case-content {
        padding: 32px;
    }

    .project-list,
    .case-meta-grid,
    .case-content {
        grid-template-columns: 1fr;
    }

    #project-map {
        height: 420px;
    }

    .case-hero-content {
        margin-top: 80px;
    }
}
.case-content{
    display:grid;
    grid-template-columns:1fr 0.9fr 1fr;
    gap:54px;

    padding:70px;
    align-items:start;
}

.case-content h2{
    margin-top:0;
    margin-bottom:20px;

    font-size:2rem;
    letter-spacing:.06em;
    text-transform:uppercase;
}

.case-content p{
    line-height:1.7;
    margin-bottom:20px;
}

.photo-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:8px;

    margin-top:28px;
}

.photo-grid img{
    width:100%;
    aspect-ratio:4/3;
    object-fit:cover;
}

.portal-column{
    background:#ebe5d8;
    padding:40px;
}

.portal-image{
    width:100%;
    margin-top:30px;
    display:block;
}

.conditions-large{
    width:100%;
    display:block;

    margin:24px 0 8px 0;
}

.conditions-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:8px;
}

.conditions-grid img{

    width:100%;

    aspect-ratio:1;

    object-fit:cover;

}

.text-link{

    display:inline-block;

    margin-top:22px;

    color:#2f7fb8;

    text-transform:uppercase;

    letter-spacing:.12em;

    font-size:.85rem;

}

.portal-button{

    display:inline-block;

    margin-top:24px;

    padding:15px 24px;

    background:#66B6E8;

    color:white;

    text-transform:uppercase;

    letter-spacing:.12em;

}