/* CSS header.php */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --main-color: #2E61B0;
    --main-color-light: #4570b0;
    --main-color-dark: #1e4072;
    --secundary-color: #F49A25;
    --secundary-color-dark: #b3711b;
    --background-color: #f0f0f0;
}

html,
body {
    height: 100%;
    width: 100%;
    margin: 0;
    font-family: "Roboto Condensed", sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* ====================== Header ====================== */

header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* background-color: #fff; */
    justify-content: space-between;
    height: 300px;
}

/* ====================== Logo and hamburger icon ====================== */

#logo-and-icon-div {
    display: flex;
    align-items: flex-end;
    width: 100%; 
    height: 80%;
    padding-top: 0;

}

/* Logo */

#logo-div {
    display: flex;
    position: absolute;
    text-align: center;
    z-index: 2;
}

#logo {
    height: 100px;
    width: auto;
    margin: 0;
    padding-left: 30px;
}

/* Banner */

#banner-div {
    width: 100%;
    height: 100%;
    position: relative;
    display: block; 
}

#banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 0% 0% 0% 85%;
}

#banner.top-aligned {
    object-fit: cover;
    object-position: top;
}

/* Hamburger icon */

#hamburger-icon {
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    position: absolute;
    right: 40px;
    top: 50px;
    width: 30px; 
    height: 25px;
    display: none;
    z-index: 10;
}

#hamburger-icon span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

#hamburger-icon.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

#hamburger-icon.active span:nth-child(2) {
    opacity: 0;
}

#hamburger-icon.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* ====================== navigation ====================== */

#header-nav {
    display: flex;
    padding-bottom: 10px;
    align-items: center;
    width: 100%;
    height: 20%;
    justify-content: space-evenly;
    z-index: 3;
}

#header-nav ul {
    display: flex;
    flex-direction: row;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: space-evenly;
}

#header-nav ul li {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header-link {
    text-decoration: none;
    color: var(--main-color);
    /* top right bottom left */
    padding: 15px 20px 10px 20px; 
    margin: 0 10px;
    text-align: center;
}

.active .header-link {
    font-weight: bold;
    cursor: default;
}

#header-nav ul li::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background-color: var(--secundary-color);
    transition: width 0.3s ease;
}

#header-nav ul li:hover::after {
    width: 80%;
}

#header-nav ul li.active::after {
    width: 80%;
}

/* In case of scrolling: */

#scroll-to-top {
    display: none; 
    position: fixed; 
    right: 20px; 
    top: 40px; 
    z-index: 10; 
    cursor: pointer; 
}

#scroll-to-top img {
    opacity: 0.5;
    width: 40px; 
    height: 40px;
}

@media screen and (min-width: 1200px) {
    header {
        height: 500px;
    }
    #logo {
        height: 130px;
        padding-left: 80px;
    }
}

@media screen and (max-width: 767px) {
    header {
        flex-direction: column; 
        height: auto;
    }
    
    #logo-and-icon-div {
        display: block;
        width: auto;
        height: auto;
        padding-top: 0;
        background-image: none;
    }

    #logo-div {
        position: relative;
    }

    #logo {
        height: 100px;
        padding-left: 0;
        margin: 10px;
    }

    #banner-div {
        display: none;
    }

    #hamburger-icon {
        display: flex;
    }

    #header-nav {
        flex: 1; 
        justify-content: flex-end; 
        padding: 0;
    }
    
    #header-nav ul {
        display: none; 
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    #header-nav ul li {
        text-align: center;
    }

}