/* CSS RESET */

/* GLOBAL STYLES */

:root {
/* Color Palette */
    --orange: #dd5937;
    --white: #fafafa;
    --black: #212121;

/* Font Stack */
    --font-heading: 'Helvetica Neue', Arial, sans-serif;
    --font-body: 'futura-pt', sans-serif;
    

}


/* BODY STYLES */
body {
    font-family: var(--font-body);
    line-height: 1.2;
    font-size: 1.1rem;
    background-color: var(--white);
    margin: 2rem;
    padding: 0;
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: calc(100vh - 4rem);
    width: auto;
}
/* HEADER STYLES */

/* NAVIGATION STYLES */

nav ul {
    padding: 0;
    margin: 0;
}
nav li {
    list-style: none;
    padding: 0 0.5rem 0.5rem 0;
    display: block;
    width: 100%
}
nav a {
    text-decoration: none;
    font-family: var(--font-heading);
    padding: 0.5rem;
    font-weight:500;
    text-transform: uppercase;
}
.active {
    background-color: var(--orange);
    padding: 0.5rem;
    font-weight: 900;
    font-size: 1.2rem;
    color: var(--white);
}


.header {
    position: relative;
    
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* MOBILE NAVIGATION */
.mobile-nav {
    position: absolute;
    top: 99%;     /* sits right below the header */
    left: -1px;
    background: var(--white);
    color: var(--black);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;

  /* start hidden */
    opacity: 0;
    pointer-events: none;
    transform: translateY(0px);
    transition: opacity .25s ease, transform .25s ease;
}

.mobile-nav a {
    color: var(--black);
    display: block;
}
.mobile-nav a.active {
    color: var(--white);
}

/* When active, hover above page */
.mobile-nav.active {
    z-index: 1000;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0px);
}

/* Your toggle button */
.menu-toggle {
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 1rem 1rem 1rem 1rem;
}

/* MAIN STYLES */
main{
    display: block;
    margin-bottom: 8rem;
}
/* HEADING STYLES */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 900;
    text-transform: uppercase;
}
h1 {
    display: none;
}
h2 {
    font-size: 1.6rem;
    
}
#homepage h2 {
    justify-self: right;
    text-align: right;
    max-width: 24ch;
    padding: 1rem 0;
}
#contactpage h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    grid-column: 1/1;
}
h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

/* LINK STYLES */
main a, footer a {
    color: var(--orange);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
}
/* SECTION STYLES */
#contactpage section {
    padding-bottom: 2rem;
    display: grid;
    gap: 2rem;
}
#aboutpage section {
    display: grid;
    gap: 1rem;
}

/* ARTICLE STYLES */
article {
    display: grid;
    grid-template-columns: 1fr;
    padding-bottom: 3rem;
}   
article h2 {
    grid-column: 1/2;
}
article section {
    grid-column: 1/2;
}

.stills {
    display: none;
}

/* IMAGE STYLES */
picture, picture img {
    max-width: 100%;
    height: auto;
    display: block;
}
#aboutpage img {
    max-width: 99%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* PARAGRAPH STYLES */
p {
    padding: 0 1rem 0 0;
    margin: 0 0 1rem 0;
}
#contactpage p {
    margin-bottom: .2rem;
}
#contactpage p:last-of-type {
    margin-bottom: 1rem;
}

/* VIDEO STYLES */
video {
    display: block;
    width: 100%;
    height: auto;
    border: none;
}

.video-vertical {
    display: block;
    width: 100%;
    height: auto;
}
.video-horizontal {
    display: none;
}

/* FORM STYLES */
form{
    display: grid;
    grid-template-columns: 1fr;
    gap: .5rem;
    padding: 0 1rem 0 0;
}
label {
    font-weight: bold;
}
input, textarea {
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 0.5rem;
    border: 1px solid var(--black);
}

.hidden {
    display: none;
}

/* FOOTER STYLES */

footer {
    position: fixed;
    bottom: 0;
    left: 2rem;
    width: 100%;
    z-index: 100;
    background-color: var(--white);
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-top: 1rem;
}
footer img {
    display: block;
    max-width: 160px;
    margin: 0;
}

small {
    font-size: 0.7rem;
}

footer p {
    margin: 0;
    
}
footer p:last-child {
    font-size: 0.9rem;
    margin-bottom: 2rem;
    
}
.logo-vertical {
    display: none;
}
.logo-horizontal {
    display: block;
    position: relative;
    bottom: .5rem;
}

/* MEDIA QUERY L MOBILE STYLES */
@media (min-width: 480px) {
    /* Responsive styles for large mobile devices */
}

/* MEDIA QUERY TABLET STYLES */
@media (min-width: 768px) {
    /* Responsive styles for tablets */
    body{
        display: grid;
        grid-template-columns: .15fr .85fr;
        gap: 1rem;
        height: auto;
    }
    header{
        position: fixed;
        left: 0;
        top: 0;
        width: 15%;
        z-index: 1000;
    }
    nav{
        grid-column: 1/2;
        width: 15%;
    }
    section{
        grid-column: 2/3;
    }
    picture, picture img {
        max-width: 100%;
        height: auto;
        display: block;
        
    }
    article h2{
        grid-column: 1/3;
    }
    h2{
        font-size: 2rem;
        display: block;
    }
    .header {
        align-items: start;
    }
    /* nav ul li:first-child {
        display: none;
    } */
    
    .mobile-nav {
    opacity: 1;
    pointer-events: auto;
    position: fixed;;
    display: flex;
    background: none;
    padding: 0 0 0 1rem;
    top: 2rem;
    left: .5rem;
    }
    .menu-toggle {
    display: none;           /* hide hamburger */
    }
    main article{
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "title title"
            "video video"
            "objectives synopsis"
            "process results"
            "links links";
        gap: 1rem;  
    }
    .video-vertical {
    display: none;
}
    .video-horizontal {
    display: block;
    grid-column: 1/3;
    width: 100%;
}
    #homepage picture, #homepage picture img {
        grid-column: 1/3;
    }
    #homepage h2, #contactpage h2 {
        grid-column: 1/2;
}
    #contactpage p{
        grid-column: 1/2;
    }
    form {
        grid-column: 1/2;
        grid-template-columns: auto 1fr;
        gap: 1rem 2rem;
        padding-right: 10%;
    }

    /* Divs */
.video {
    grid-area: video;
}
.objectives {
    grid-area: objectives;
}
.synopsis {
    grid-area: synopsis;
}
.process {
    grid-area: process;
}
.results {
    grid-area: results;
}
.links {
    grid-area: links;
}



footer div {
    align-self: end;
    justify-self: end;
    padding-right: 3rem;
}

.logo-vertical {
    display: block;
    max-width: 6rem;
    padding-bottom: 2rem;
}
.logo-horizontal {
    display: none;
    
}

/* MEDIA QUERY DESKTOP STYLES */
@media (min-width: 992px) {
    /* Responsive styles for desktop devices */
    main section {
        display: grid;
        /* grid-template-columns: 1fr 1fr 1fr; */
        gap: 2rem;
    }
    picture, picture img {
        max-width: 100%;
        height: auto;
        display: block;
        grid-column: 1/4;
    }
    #homepage picture, #homepage picture img {
        grid-column: 1/4;
    }
    #homepage h2 {
        grid-column: 2/4;
    }

    .video-horizontal {
        grid-column: 1/4;
    }



    main article{
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "title title"
            "video video"
            "objectives synopsis"
            "process results"
            "links links"
            "stills stills";
        gap: 1rem;  
    }
    .stills {
        grid-area: stills;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        grid-template-rows: auto 1fr;
        gap: 1rem;
        }
    .stills h3 {
        grid-column: 1/6;
    }

    .stills img {
        width: 100%;
        height: auto;
        cursor: pointer;
        border-radius: 4px;
    }

    .lightbox {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.8);
        display: none;
        justify-content: center;
        align-items: center;
        padding: 2rem;
        z-index: 10000;
    }
    .lightbox img {
        max-width: 90%;
        max-height: 90%;
        object-fit: contain;
        border-radius: 6px;
    }

    form {
        padding-right: 20%;
    }

    #aboutpage section {
        display: grid;
        grid-template-columns: auto;
        grid-template-rows: repeat(2, 1fr);
        gap: 1rem;
    }

    #aboutpage section h2 {
        grid-column: 1/2;
        grid-row: 1/2;
        justify-self: end;
    }
    #aboutpage section p {
        grid-column: 1/2;
        grid-row: 2/3;
        align-self: end;
    }
    #aboutpage section img {
        grid-column: 2/4;
        grid-row: 1/3;
    }
}
@media (min-width: 1500px) {
    #aboutpage section p {
        align-self: start;
    }
}