/* global/root */
:root {
    --fontFamily: 'Helvetica', sans-serif;
    --bgColor: #fafafa;
    --primaryTextColor: #333333;
    --secondaryTextColor: #4d4d4d;
    --linkTextColor: #CC5500;
    --accentOne: #CC5500;
    --black: #333333;
    --border: 2px solid #666666;
    --fontSizeXL: 3.75rem; /* h1, 60px */
    --fontSizeL: 2rem; /* 32px, subheaders */
    --fontSizeM: 1.25rem; /* 20px descriptions */
    --fontSizeS: 1.125rem; /* 18px contents, body, nav */
    --fontSizeXS: 14px;
    --fontSizeXXS: .75rem; /* 12px captions */
    --borderRadius: 0px;
    --contentMaxWidth: 800px; /* case study body copy, images, roles */
}

body {
    font-family: var(--fontFamily);
    background-color: var(--bgColor);
    color: var(--primaryTextColor);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* typography */
.subhead {
    font-family: var(--fontFamily);
    color: var(--primaryTextColor);
    font-size: var(--fontSizeL);
}

.description {
    font-family: var(--fontFamily);
    color: var(--primaryTextColor);
    font-size: var(--fontSizeS);
}

p, h1, h2, li {
    font-family: var(--fontFamily);
    color: var(--primaryTextColor);
    text-decoration: none;
    font-weight: 400;
    line-height: 1.65;
}

a {
    font-family: var(--fontFamily);
    color: var(--linkTextColor);
    text-decoration: none;
    font-weight: 400;
    line-height: 1.5;
}

a:hover {
    text-decoration: underline;
}

p {
    font-size: var(--fontSizeS);
    display: inline;
    max-width: 700px;
}

h1 {
    font-family: var(--fontFamily);
    color: var(--primaryTextColor);
    font-size: var(--fontSizeXL);
}

h2 { /* check that this includes the case study headers? */
    font-family: var(--fontFamily);
    color: var(--primaryTextColor);
    font-size: var(--fontSizeL);
    margin: 0;
}

h3 {
    font-family: var(--fontFamily);
    font-size: var(--fontSizeM);
    font-weight: bold;
    line-height: 1.4;
}


/*header/footer*/
.header-container, .footer-container {
    max-width: 100%;
    margin: 0;
    padding: 0 60px;
}

.header-container {
    border-bottom: var(--border);
}

.footer-container {
    border-top: var(--border);
}

 header, footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 0;
        }

.logo {
    font-size: var(--fontSizeM);
    font-weight: bold;
    text-decoration: none;
    color: var(--black);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

 .nav-menu, .footer-nav {
            display: flex;
            gap: 40px;
        }

.nav-link, .footer-link {
            text-decoration: none;
            color: var(--black);
            font-size: var(--fontSizeS);
            text-transform: uppercase;
        }

.nav-link:hover {
    color: #666;
}

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

/* footer */


.footer-email {
            font-size: var(--fontSizeS);
            color: var(--black);
        }

.footer-left {
            display: flex;
            align-items: center;
            gap: 20px;
        }

/*media queries*/
@media screen and (max-width: 768px) {

    .header-container, .footer-container {
        max-width: 100%;
        padding: 0px 10px;
    }

    .nav-menu {
        position: fixed;
        border: 1px solid #333333;
        padding: 72px 26px 26px 26px;
        top: 0;
        right: -100%;
        width: 30%;
        height: auto;
        background: var(--bgColor);
        flex-direction: column;
        align-items: end;
        gap: 20px;
        transition: right 0.3s ease;
        z-index: 100;
    }
    .nav-menu.active {
        right: 0;
    }

    .hamburger {
        display: block;
        z-index: 101;
    }

    .hamburger span {
        display: block;
        width: 20px;
        height: 2px;
        background: #333333;
        margin: 5px 0;
        transition: all 0.3s ease;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
.hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;
    }
    .footer-nav {
        gap: 60px;
    }
}