:root {
    /* Fonts  */

    --font1: 'DM Sans', sans-serif;
    --font2: 'DM Sans', sans-serif;
    --navFont: 'DM Sans', sans-serif;


    --primaryColour: #000;
    --backgroundColour: #FAFAFA;

    --Colour1: #000;
    --shadeColour1: #2a2a2a;
    --tintColour1: ;

    --Colour2: #ebebeb;
    --shadeColour2: #d7d7d7;
    --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;
    --buttonWidth: 100%;
    --buttonFontSize: var(--h3FontSize);

    /* Navbar specific variables */
    --navFontSize: 1rem;
    /* Size used for both the logo and hamburger icon */
    --navLogoSize: 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;
        --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);
    scroll-behavior: smooth;
}



/* ========== 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;
    /* Logo container height follows the shared nav size */
    height: var(--navLogoSize);
    display: flex;
    align-items: center;
}


.logo img {
    height: 100%;
    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;
    font-family: var(--font1);
    font-weight: 500;

}

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


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

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

/* Ensure hamburger icon scales with the logo */
.hamburger svg {
    width: var(--navLogoSize);
    height: var(--navLogoSize);
}

/* 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: column;
    justify-content: center;
    align-items: center;
    margin: var(--space-lg) 0;
}

footer a {
    width: 100%;
    display: flex;
    justify-content: center;
}

footer img {
    width: 25%;
    max-width: 80px;
}

.copyright {
    font-size: 0.8rem;
    color: grey;
}



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

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;
    line-height: 2.25rem;


}

h2 {
    font-family: var(--font1), serif;
    color: var(--Colour1);
    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(--Colour1);
    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;
    line-height: 1.3;
}

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

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

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: 80%;
    height: auto;
    display: block;
    margin: 0 0 0 0;

}

ul {
    margin: var(--space-xs) 0 var(--space-lg) 0;
    font-family: var(--font2), serif;
    color: var(--primaryColour);
    font-size: calc(var(--h3FontSize) / 1.5);
    font-weight: normal;
}





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

main {
    width: 100%;
    max-width: var(--contentWidth);
    margin: 0 auto;
    padding-top: var(--space-lg);
}

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

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


.hero {
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero button {
    margin-left: auto;
    margin-right: auto;
}

.heroImage {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.actionCall {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    justify-content: center;
    /* start | end | center | space-between | space-around | space-evenly */
    margin: 0 0 0 0;
    height: auto;
}

.actionCall .sub {
    margin: 0 0;
}

@media only screen and (min-width: 700px) {
    .actionCall {
        flex-direction: row;
        gap: var(--space-sm)
    }

    .actionCall .sub {
        margin: var(--space-md) 0;
    }
}
