
@import "variables.css";
@import "global.css";

/* navigation bar for the pages (red) */
.navbar-pages, .footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 12px 10vw;
    z-index: 99;

    color: white;
    font-family: "Geologica", sans-serif;
}

.navbar-pages {
    background-color: var(--red);
    position: sticky;
    top: 0;
    box-shadow: 0 0 15px #00000060;
}


.hero-home {
    height: 60vh;
    background-size: cover;
    display: flex;
    align-items: center;
    color: white;

    .hero-text {
        width: 70vw;
        padding-top: 0;
        margin: auto;
    }
    
    h2 {
        font-size: 48px;
        margin-bottom: 0;
        text-align: left;
        color: white;
    }

    .hero-subtitle {
        text-align: left;
        font-size: 18px;
    }
}

.hero-right {
    display: flex;
    flex-direction: column;
    align-items: end;
    /* testing stuff out */
    gap: 100px; 
}

.navbar-items {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 48px;
}

.navbar-items.left {
    gap: 20px;
}

.navbar-logo {
    height: 48px;
}

.navbar-logo.home {
    position: absolute;
    height: 150px;
    bottom: 20%;
    left: 15%;
}

.navbar-title {
    font-size: 20px;
    font-weight: 700;
    /* margin-bottom: 16px; */
}

.navbar-link {
    transition: all ease-in-out 0.2s;
}

.navbar-link:hover {
    transform: translateY(-2px);
}

.navbar-link:active, .navbar-link.active {
    font-weight: 500;
}

.lang-link { 
    border-radius: 8px;
    padding: 8px;
    width: 24px;
    text-align: center;
    border: 3px white solid;
    color: white;
    font-weight: 500;
    transition: all ease-in-out 0.3s;
    text-transform: uppercase;
}

.lang-link:hover {
    background-color: var(--dark-red);
}

/* HOME PAGE */
.introduction-container {
    .main-content {
        padding: 0;
    }

    padding: 60px 0;
    text-align: center;
    /* box-shadow: inset 0 -2px 16px hsla(0, 100%, 24%, 0.15); */

    .subtitle {
        font-size: 20px;
        font-weight: 200;;
    }
}

ul{
    padding-inline-start: 8px;
}


.home-page-video {
    &.container {
        background: var(--beige);
        /* parallax */
        min-height: min-content;
        background-attachment: fixed;
        background-position: top;
        background-size: 100vw;
    }

    h2 {
        font-size: 28px;
        text-align: center;
    }

    .main-content {
        padding: 72px 0;
    }

    .text {
        text-align: justify;
    }

    .columns {
        padding: 0;
        align-items: top;
    }

    .column-left, .column-right {
        border-top: var(--dark-green) 4px solid;
        background-color: var(--green-50);
        border-radius: 8px;
        backdrop-filter: blur(4px);
        padding : 12px 36px;
        width: 50%;

        strong, h2 {
            color: var(--dark-green);
        }
    }
}


/* 30x30 initiative */
.red-container {
    background-color: var(--dark-green);
    padding: 72px 10vw;
    color: white;
    
    .text {
        /* font-size: 18px; */
        line-height: 1.75;
        text-align: justify;
    }

    .headline {
        color: var(--light-green); 
        font-size: 18px;
        line-height: 1.75;
        font-weight: bold;
        margin: 32px 0;
    }

    .logos-container {
        display: flex;
        flex-direction: row;
        gap: 0px 32px;
        margin-top: 12px;
    }

    .logos {
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 12px;
        gap: 12px;
        /* background-color: #DB5260; */

        img {
            width: auto;
            height: 40px;
            /* filter: drop-shadow(0px 4px 2px rgba(0, 0, 0, 0.25)); */
        }
        
        p {
            text-align: left;
            /* width: 25%; */
            font-size: 12px;
            font-weight: 600;
        }
    }
    
    .box {
        border: var(--green-50) 4px solid;
        margin-top: 32px;
        padding: 24px;
    }
}

.two-columns-red {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 48px;
    margin-top: 24px;
}

.home-page-canadian-bon {
    .columns {
        align-items: center;
        padding-bottom: 40px;
        padding-top: 0;
    }

    .column-left {
        width: 33%;
    }

    .column-right {
        width: 66%;
    }

    .column-img {
        margin-top: 40px;
        width: 100%;
    }
}


.home-page-development-plan {
    /* color: white !important; */

    /* p {
        font-size: 15px;
        font-weight: 200;
    } */

    .container {
        height: max-content;
        background-color: var(--beige);
        /* for parallax */
        background-attachment: fixed;
        background-position: top;
        background-size: contain;
        padding-bottom: 60px;
    }

    .columns {
        margin-top: 40px;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
    }  

    .step {
        /* width: 25%; */
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .step-icon {
        height: 40px;
        width: auto;
    }

    .step-name {
        font-family: "Geologica", sans-serif;
        font-size : 20px;
        font-weight: 500;
    }

    .arrow {
        width: auto;
        height: 20px;
    }

    .design-summit, .get-in-touch {
        font-family: "Geologica", sans-serif;
        font-size : 20px;
        font-weight: 400;
        line-height: 2.5;
        text-align: center;
    }

    .design-summit {
        margin-top: 40px;
    }
    
    .get-in-touch {
        color: var(--red);
    }
}
    

/* about section */
.join-section-container {
    background-color: var(--red);
    padding: 24px 0;
    
    /* parallax */
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: top;
    background-size: 100vw;

    p, .section-title {
        color: white;
    }

    .title {
        font-size: 20px;
        font-weight: bold;
    }

    .column {
        width: 33%;
        text-align: center;
        border: var(--beige-50) 4px solid;
        padding: 12px 24px;

        .title {
            font-weight: 500;
        }
    }
}

.join-section {
    padding-bottom: 60px;

    .button {
        border-color: #ffffffc0;
        color: white;

        &:hover {
            border-color: white;
        }
    }

    .button-container {
        margin-top: 32px;
    }
}

.join-section.main-content {
    width: max-content;
}

/* button */
.button-container {
    text-align: center;
}

.button {
    display: inline-flex;
    padding: 10px 16px;
    color: var(--red);
    font-family: "Geologica", sans-serif;
    font-weight: 500;
    border: var(--red) 3px solid;
    border-radius: 10px;
    transition: all ease-in-out 0.3s;
}

.button:hover {
    color: white;
    background-color: var(--red);
}

.button:active {
    background-color: var(--dark-red);
    border: var(--dark-red) 3px solid;
}

/* SHARED CSS FOR PAGES */
.page-title {
    font-size: 48px;
    margin-bottom: 0;
}

.section-title {
    font-size: 32px;
    margin-bottom: 24px;
}

.columns {
    display: flex;
    flex-direction: row;
    gap: 60px;
    padding-top: 24px;
}


.subtitle {
    font-family: "Geologica", sans-serif;
    font-size: 24px;
    line-height: 150%;
    text-align: center;
    margin-bottom: 24px;;
}

.about-page-coordinating-body {
    .coordinating-body-cards {
        display: grid;
        /* grid-template-columns: repeat(2, 1fr); */
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
        justify-items: center;
        gap: 48px;

        .bio {
            text-align: justify;
        }
    }
}

.logos-container, .cards-container {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    flex-wrap: wrap;
    row-gap: 24px;
}

.coordinating-body-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    justify-items: center;
    gap: 48px;
}

.coordinating-body-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.name {
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 8px;
}

.name, .position {
    text-align: center;
    margin: 0;
}

.bio {
    text-align: center;
    margin: 12px 0;
    line-height: 1.5;
    font-size: 13px;
    margin-top: 0;
}

.avatar {
    aspect-ratio: 1/1;        
    object-fit: cover; 
    border-radius: 50%; 
    width: 172px;
    margin-top: 24px;
    margin-bottom: 16px;
}

.about-page-coordinating-body {
    .main-content{ 
        padding: 12px 0;
    }

    .container {
        margin-top: 24px;
        padding-bottom: 24px;
    }

    .university-logo {
        max-height: 50px;
        margin-top: 10px;
    }
}

.about-page-partners {
    .partner-logo {
        max-height: 100px;
        max-width: 240px;
    }

    .logos-container {
        align-items: center;
        justify-content: center;
        gap: 48px;
        margin: 24px 0;
    }
}

.divider {
    margin: 24px 0;
    width: 100%;
    height: 3px;
    border-radius: 5px;
    background-color: var(--green);
}

.about-page-working-groups {
    .container {
        margin-top: 24px;
        background-color: var(--beige);
        padding-bottom: 24px;
    }

    .main-content {
        padding: 12px;
    }

    .cards-container {
        padding-top: 24px;
        justify-content: left;
        row-gap: 48px;
        gap: 48px;
    }

    .group-card {
        width: 46%;
    }

    .group-thumbnail {
        border-radius: 15px;
        background-size: cover;
        background-position: center;
        height: 152px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 24px;

        p {
            color: white;
            font-weight: 600;
            font-family: "Geologica", sans-serif;
            font-size: 24px;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
        }
    }

    .group-description {
        padding: 0 16px;
        margin-bottom: 16px;
        text-align: justify;
    }
}

/* OUR WORK PAGE */

.view-more-container {
    display: flex;
    justify-content: end;
}

.view-more {
    font-family: "Geologica", sans-serif;
    color: var(--red);
    font-weight: 600;
    font-size: 14px;
}

.our-work-page-data-tools {
    .container {
        background-attachment: fixed;
        background-position: 0% 100%;
        background-size: contain;
        background-repeat: no-repeat;
        padding-bottom: 24px;
    }
}

.resources-page-resources {
    color: white;
    
    p{
        font-family: "Geologica", sans-serif;
        font-size: 16px;
    }

    .columns, .main-content{
        padding-bottom: 48px;
    }

    .column {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .section-title {
        color: white;
    }

    .view-more {
        color: white;
    }

    .column-title {
        font-size: 24px;
        font-weight: 600;
    }

    .resource-item {
        display: flex;
        /* align-items: center; */
        gap: 16px;
        flex-direction: row;
        padding: 12px 0;
        color: white;
        text-decoration: none;
        border-bottom: 3px solid #ED616F;

        p {
            margin: 0;
        }
    }

    .resource-item:last-child {
        border-bottom: none;
    }

    .resource-icon {
        width: auto;
        height: 24px;
    }
}

.resources-page-resources {
    .column-title {
        color: var(--red);
    }
}

/* 
these are rendered in two different pages 
 - .products-page-data-tools
 - .our-work-page-data-tools 
*/

.cards-container {
    padding-top: 24px;
    justify-content: left;
    row-gap: 48px;
    justify-content: space-between;
    margin-bottom: 36px;
}

.data-tool-card {
    border-radius: 15px;
    border: 3px solid var(--red);
    
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 30%;
    height: fit-content;
    box-shadow: 0 4px 4px #00000030;
    background-color: white;
    backdrop-filter: blur(3px);

    transition: all ease-in-out 0.3s;
}

.data-tool-card:hover {
    transform: translateY(-6px);
    border-color: var(--bright-red);
    box-shadow: 0 4px 4px #00000080;
}

.data-tool-thumbnail {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 1;
    object-fit: cover;   
    border-radius: 12px;
    object-position: top right;
}

.data-tool-name {
    padding: 12px;
    text-align: center;
    font-family: "Geologica", sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--red);
    margin: auto;
}

.resources-page-resources {
    p {
        color: var(--grey);
    }

    .resource-item {
        border-bottom: 3px solid var(--red-50);
    }
}

/* summit page */
.summit-page {
    .subtitle {
        font-size: 18px;
        border-radius: 8px;
        border-top: var(--dark-green) solid 4px;
        background-color: var(--green-50);
        padding: 20px;
        margin-top: 40px;
        font-weight: 300;
        line-height: 2;

        strong {
            color: var(--dark-green);
        }
    }

    .description {
        /* border-bottom: var(--green) solid 3px; */
        .columns {
            padding: 0;
            justify-content: space-between;
        }
    }

    .details {
        margin-bottom: 40px;
        padding: 24px 0;

        a, strong {
            color: var(--dark-green);
        }

        .columns, .main-content {
            padding: 0;
            justify-content: space-around;
        }

        .column-left {
            width: 70%;
        }

        .column-right {
            width: 40%;
            border-radius: 8px;
            border-top: var(--dark-green) solid 4px;
            padding: 24px;
            background-color: var(--green-50);

            /* p, a {
                color: white;
            } */
        }

        h1 {
            color: var(--dark-green);
            text-align: center;
        }

        a {
            font-weight: bold;
        }
    }
}


.footer {
    /* background-color: var(--blue); */
    /* font-family: "Crimson Text", serif; */
    background-color: var(--grey);
    color: white;
    font-family: "Commissioner", sans-serif;
    color: var(--beige);
    padding: 0 10vw;
    min-height: 128px;
    align-items: center;

    p {
        font-size: 14px;
    }

    .lang-link {
        color: var(--beige);
        border-color: var(--beige);
        font-size: 14px;
    }

    .footer-logo {
        height: 48px;
    }
}

.error-404 {

    p {
        font-family: "Geologica", sans-serif;
        font-size: 20px;
        text-align: center;
        font-weight: 200;
    }

    h1 {
        text-align: center;
        font-size: 72px;
        margin-bottom: 12px;
    }

    .button {
        font-size: 18px;
        margin-top: 40px;
    }
}


/* for tablets only*/
@media (min-width:481px) and (max-width:1024px) {
    .main-content {
        max-width: 86vw !important;
    }

    /* HOME PAGE */

    .navbar-logo.home {
        height: 128px;
        left: 5vw;
        top: 75px;
    }

    .two-columns-red {
        padding: 24px 7vw;

        .column.right {
            padding: 0;
        }
    }

    .join-section {
        width: 80vw;
        margin-left: 5vw;
    }

    .join-section-container {
        padding: 0;
        background-size: 100%;
        background-position: 100% 80%;
    }

    .navbar-pages, .navbar-home, .footer {
        padding: 24px 5vw;
    }

    .navbar-items.left {
        gap: 8px;
    }

    .red-container {
        padding: 24px 5%;
    }

    /* ABOUT PAGE */
    .home-page-video, .home-page-video, .home-page-canadian-bon{
        .columns {
            gap: 32px;
        }
    }

    .home-page-video {
        .columns {
            flex-direction: column;
        }

        .column-left, .column-right {
            width: auto;
        }
    }

    .about-page-what-is {
        .column-img {
            aspect-ratio: 5 / 6;
            object-position: center top; 
            width: 100%;
        }
    }

    .home-page-canadian-bon {

        .columns {
            flex-direction: column;
        }

        .column-left {
            width: 60%;
            order: 2;
        }

        .column-img {
            margin: 0;
        }

        .column-right {
            width: 100%;
            order: 1;
        }
    }

    .home-page-development-plan {
        .container {
            background-size: 1536px;
        }
    }

    .arrow {
        display: none;
    }

    /* groups */
    .coordinating-body-cards {
        grid-template-columns: repeat(3, 1fr);
    }

}


/* for phones only */
@media (max-width: 480px) {
    .main-content {
        max-width: 90vw !important;
    }

    a {
        font-size: 15px;
    }
    
    h1 {
        font-size : 36px !important;
    }

    h2 {
        font-size: 28px !important;
    }

    .lang-link {
        padding: 6px;
        width: 20px;
    }
    
    /* HOME PAGE */

    .navbar-home, .navbar-pages {
        justify-content: space-between;
        padding: 24px 5vw;
    }
    
    .navbar-items {
        flex-wrap: wrap;
        gap: 20px;
    }

    /* .hero-home {
        .navbar-items.left {
            display: none;
        }
    } */

    .navbar-logo.home {
        height: 128px;
        left: 5vw;
    }
    
    .hero-home {
        min-height: 20vh;
        background-position: 30%;
    }

    .two-columns-red {
        flex-direction: column;
        gap: 0;
        padding: 20px 5vw;
    }

    .column {
        width: 100%;
    }

    .column.left, .column.right {
        padding: 0;
    }

    .column.left {
        h2, p {
            padding: 0 12px;
        }
    }

    .red-container {
        padding: 24px 5%;
    }

    .join-section.main-content {
        width: 94vw;
        margin: auto;
    }

    .red-container {
        & .logos {
            padding: 0;
            padding-left: 12px;
            gap: 4px;
            img {
                height: 32px;
            }
        }
    }
    
    .columns {
        flex-direction: column;
        flex-wrap: wrap;
    }


    /* ABOUT PAGE */
    .home-page-video {
        .column-img {
            width: 90vw;
        }
    }

    .home-page-video, .about-page-what-is {
        .column-left, .column-right {
            width: auto;
        }
    }

    .home-page-canadian-bon {

        h2 {
            margin: 0;
        }

        .columns {
            flex-direction: column;
            gap: 0px;
            align-items: center;
        }

        .column-left, .column-right {
            width: 100%;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .column-left {
            order: 2;
        }

        .column-right {
            order: 1;
        }

        .column-img {
            margin-top: 18px;
        }
    }

    .home-page-development-plan {
        .container {
            height: auto;
            background-size: 1024px;
            padding-bottom: 32px;
        }

        .step {
            width: 40%;
        }

        .columns {
            margin-top: 0;
            flex-wrap: wrap;
            align-items: center;
        }
    }
    
    .coordinating-body-card {
        width: 10ç0%;
    }

    /* NETWORK PAGE */
    .about-page-coordinating-body {
        .section-title {
            margin-bottom: 0;
        }

        .university-logo {
            height: 50px;
            margin-top: 12px;
        }
    }

    .about-page-partners {
        .logos-container{
            gap: 20px;
        }

        .partner-logo {
            max-width: 40vw ;
            /* max-height: 20vw ; */
        }
    }

    /* WORK PAGE */
    .about-page-working-groups {
        .group-card {
            width: 100%;
            gap: 60px;
        }
    }

    .our-work-page-data-tools {
        .container {
            background-size: 1024px;
            background-position: 10px;
        }
    }

    .data-tool-card {
        width: 100%;
    }

    .our-work-page-resources {
        .columns {
            gap: 24px;
        }
    }

    /* PRODUCTS PAGE */

    .products-page-data-tools {
        .data-tool-thumbnail {
            aspect-ratio: 3 / 2;
        }

        .data-tool-card {
            width: 45%;
        }
    }

    /* RESOURCES PAGE */
    .resources-page-resources {
        .columns {
            padding: 0;
            gap: 24px;
        }
    }

    /* FOOTER */

    .footer {
        .navbar-items.left {
            gap: 8px;
        }

        .footer-logo {
            height: 36px;
        }
    }

    /* groups */
    .coordinating-body-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .avatar {
        width: 124px;
    }

    /* summit page */
    .summit-page {
        ul { 
            text-align: justify;
        }
        
        .columns {
            gap: 20px;
        }

        & .details {
            .column-left, .column-right {
                width: auto;
            }
        }
    }

    .join-section-container {
        background-size: 400%;

        .column {
            width: auto;
        }

        .columns {
            gap: 32px;
        }
    }
}

/* hamburger menu */
/* 
.non-mobile {
    display: none;
}


.hamburger {
    display: none;
    background: none;
    border: 3px solid white;
    color: white;
    font-size: 20px;
    padding: 3px 6px;
    border-radius: 8px;
    cursor: pointer;
}

#hamburger-btn {
    img {
        height: 16px;
        width: 16px;
    }
}

.menu-modal {
    display: none;
    position: fixed;
    top: 80px;
    right: 5vw;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 8px #00000040;
    background-color: var(--grey-75);
    backdrop-filter: blur(4px); 
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.menu-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
}

.menu-modal-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.menu-modal-link {
    color: white;
    text-decoration: none;
    font-family: "Geologica", sans-serif;
    font-size: 20px;
    font-weight: 300;
}

.menu-modal-link:hover {
    opacity: 0.7;
}

@media (max-width: 480px) {
    .hamburger, .mobile-display {
        display: block;
    }

    .navbar-items.right.non-mobile  {
        display: none;
    }
} */


/* hamburger menu */
.nav-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 48px;
}

.hamburger {
    display: none;
    background: none;
    border: 3px solid white;
    color: white;
    font-size: 20px;
    padding: 3px 6px;
    border-radius: 8px;
    cursor: pointer;
}

/* tablets and phones */
@media (max-width: 980px) {
    .navbar-items {
        gap: 16px;
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        right: 5vw;
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        padding: 24px;
        border-radius: 8px;
        box-shadow: 0 2px 8px #00000040;
        background-color: var(--grey-75);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }

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