@import url('https://fonts.googleapis.com/css2?family=Prociono&display=swap');

:root {
    /* Fonts  */

    --font1: 'Prociono', sans-serif;
    --font2: 'Inter';
    --navFont: 'Prociono', sans-serif;


    --primaryColour: black;
    --backgroundColour: #f8f7f2;

    --Colour1: blue;
    --shadeColour1: rgb(0, 0, 212);
    --tintColour1: ;

    --Colour2: rgb(206, 223, 255);
    --shadeColour2: rgb(188, 212, 255);
    --tintColour2: ;

    --Colour3: ;
    --shadeColour3: ;
    --tintColour3: ;


    /*  Buttons  */
    --primaryButtonText: var(--backgroundColour);
    --primaryButtonColour: var(--Colour1);
    --primaryButtonHover: var(--shadeColour1);

    --subButtonText: var(--Colour1);
    --subButtonColour: var(--Colour2);
    --subButtonHover: var(--shadeColour2);



    /*  Mobile  */
    --contentWidth: 88.88vw;
    --h1FontSize: 4.375rem;
    --h2FontSize: 2.68rem;
    --h3FontSize: 1.6875rem;
    --pFontSize: 3.2vw;

    --columnRatio: 1fr;
    --heroRatio: 1fr;

    --buttonWidth: 100%;
    --buttonFontSize: var(--h3FontSize);

    /* Navbar specific variables */
    --navFontSize: 1rem;
    --navLogoSize: 1.2rem;

    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;

}

@media only screen and (min-width: 900px) {
    :root {
        --contentWidth: 800px;
        --pFontSize: 16px;

        --columnRatio: 1fr 1fr;
        --heroRatio: 1fr 1.2fr;
        --buttonWidth: 5.5rem;

        --buttonFontSize: calc(var(--h3FontSize)/1.5);
    }



    .nav-links {
        display: flex;
        position: static;
        flex-direction: row;
        background-color: transparent;
        padding: 0;
        box-shadow: none;
        gap: 2rem;
    }

    .hamburger {
        display: none;
    }
}

html {
    font-size: var(--pFontSize);
}



/* ========== 1. Nav ========== */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: var(--contentWidth);
    margin: 1.5rem auto 0;
    padding: 0;
}

.logo a {
    font-size: 20px;
    /* Fixed pixel size for consistent appearance */
    height: 2.25rem;
    display: flex;
    align-items: center;
}



.logo img {
    height: 36px;
    /* Matches hamburger size proportionally */
    width: auto;
}


.nav-links {
    display: none;
    position: absolute;
    top: 3.5rem;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: var(--backgroundColour, #fff);
    text-align: center;
    padding: 1.5rem;
    gap: 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 100;
    align-items: center;
}

.nav-links.active {
    display: flex;
}

.nav-links a:hover {
    color: var(--Colour1);
}

.hamburger {
    display: block;
    cursor: pointer;
}

/* Desktop layout adjustments */
@media only screen and (min-width: 700px) {
    .nav-links {
        display: flex;
        position: static;
        flex-direction: row;
        background-color: transparent;
        padding: 0;
        box-shadow: none;
        gap: 2rem;
    }

    .hamburger {
        display: none;
    }
}


footer {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin: var(--space-lg) 0;
}




/* ========== 3. Headings ========== */
h1 {
    font-family: var(--font1);
    color: var(--primaryColour);
    font-size: var(--h1FontSize);
    font-weight: bold;
    margin: 0 0 0 0;
    /*top left bottom right */
    padding: 0;
}

h1.subHeading {
    font-family: var(--font2), serif;
    color: var(--primaryColour);
    font-size: calc(var(--h1FontSize)/2);
    font-weight: normal;
    margin: 0 0 0 0;
    /*top left bottom right */
    padding: 0;
}

h2 {
    font-family: var(--font1), serif;
    color: var(--primaryColour);
    font-size: var(--h2FontSize);
    font-weight: bold;
    margin: 0 0 0 0;
    /*top left bottom right */
    padding: 0;
}

h2.subHeading {
    font-family: var(--font2), serif;
    color: var(--primaryColour);
    font-size: calc(var(--h2FontSize) / 2);
    font-weight: normal;
    margin: 0 0 0 0;
    padding: 0;
}

h3 {
    font-family: var(--font1), serif;
    color: var(--primaryColour);
    font-size: var(--h3FontSize);
    font-weight: bold;
    margin: 0 0 0 0;
    /*top left bottom right */
    padding: 0;
}

h3.subHeading {
    font-family: var(--font2), serif;
    color: var(--primaryColour);
    font-size: calc(var(--h3FontSize) / 1.5);
    font-weight: normal;
    margin: 0 0 0 0;
    /*top left bottom right */
    padding: 0;
}

/* ========== 4. Links & Buttons ========== */
a {
    color: inherit;
    text-decoration: inherit;
}

a:hover {
    color: var(--Colour1);
}

button {
    border: none;
    color: var(--primaryButtonText);
    margin: var(--space-md) 0;
    padding: 0.8rem 1.2rem;
    border-radius: 0.5rem;
    width: fit-content;
    min-width: var(--buttonWidth);
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: var(--buttonFontSize);
    font-weight: 500;
    cursor: pointer;
    background-color: var(--primaryButtonColour);
}

button:hover {
    background-color: var(--primaryButtonHover);
}

.sub {
    color: var(--subButtonText);
    background-color: var(--subButtonColour);
}

button.sub:hover {
    background-color: var(--subButtonHover);
}

/* ========== 5. General ========== */
p {
    font-family: var(--font2);
    color: var(--primaryColour);
    font-size: var(--pFontSize);
    font-weight: normal;
    margin: 0 0 0 0;
    /*top left bottom right */
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 0 0 0;

}

ul {
    margin: var(--space-sm) 0;
}





/* ========== 2. Layout Grids ========== */
body {
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
    width: 100%;
    max-width: var(--contentWidth);
    margin: 0 auto;
    padding: 0;
    background-color: var(--backgroundColour);
}

main {
    width: 100%;
}

section {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    justify-content: start;
    /* start | end | center | space-between | space-around | space-evenly */
    align-items: stretch;
    /* flex-start | flex-end | center | baseline */
    margin: var(--space-xl) 0 0 0;
    height: auto;
}

.columns {
    grid-template-columns: var(--columnRatio);
}

.hero {
    justify-content: start;
    /* start | end | center | space-between | space-around | space-evenly */
    align-items: center;
    /* flex-start | flex-end | center | baseline */
    grid-template-columns: var(--heroRatio);
    gap: var(--space-xl);
}

.hero button {
    margin-bottom: 0;
}

.heroButtons {
    margin-top: var(--space-lg);
}

@media (min-width: 900px) {
    .hero button {
        margin-right: var(--space-sm);
    }

    .heroButtons {
        margin-top: 0;
    }
}

.spotlight {
    gap: var(--space-xl);
}

.spotlight h2.subHeading {
    margin: var(--space-sm) 0 var(--space-md) 0;
}

.projectCard {
    display: flex;
    flex-direction: column;
    gap: 0;
}

@media (min-width: 900px) {
    .projectCard {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto;
        grid-template-areas:
            "title title"
            "subblock subblock"
            "image image";
        gap: var(--space-sm);
    }

    .projectCard h2 {
        grid-area: title;
        margin: 0;
    }

    /* Simulated flex container */
    .projectCard h2.subHeading,
    .projectCard button {
        grid-area: subblock;
    }

    .projectCard .subHeading {
        justify-self: start;
        max-width: 80%;
    }

    .projectCard button {
        align-self: end;
        justify-self: end;
        margin: 0 0 var(--space-md) 0;
    }

    .projectCard img {
        grid-area: image;
    }
}




.contact {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.email {
    margin-top: 0;

}

@media (min-width: 900px) {

    .contact {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;

    }

    .email {
        margin-top: 4.5rem;
    }

}

.pageTitle {
    font-size: calc(var(--h2FontSize)*1.5);
}







.tree {

    grid-template-columns: 1fr;
    justify-content: center;
    align-items: start;
    gap: var(--space-xl)
}

.tree div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    gap: var(--space-sm);
}

.tree button {
    margin: 0;
}


@media (min-width: 900px) {

    .tree {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-lg)
    }

}