/* RESET + GLOBAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
}

a {
    text-decoration: none;
    color: black;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================= */
/* NAVIGATION */
/* ========================================= */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: white;
    box-shadow: 0px 2px 10px rgba(0,0,0,0.15);
    padding-top: 1rem;
    z-index: 10;
    text-align: center;
}

#nav_title {
    font-weight: bold;
    font-size: 2.8rem;
}

#nav_links {
    margin-top: 1rem;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1.2rem;
    text-align: center;
}

#nav_links a {
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
}

#nav_links a:hover {
    color: goldenrod;
}
#hamburger {
    display: none;
    width: 30px;
    height: 22px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    margin-bottom: 1%;
} 

#hamburger span {
    height: 4px;
    width: 100%;
    background: black;
    border-radius: 5px;
    transition: 0.3s ease;
}

/* Hamburger Animation */
#hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
#hamburger.active span:nth-child(2) {
    opacity: 0;
}
#hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}
#nav_links.active {
    right: 0;
}
/* ========================================= */
/* BANNER ROTATOR */
/* ========================================= */
.banner_rotator {
    margin-top: 8vw;
    width: 100%;
    height: 56.25vw;
    max-height: 500px;
    position: relative;
}

.banner {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    opacity: 0;
    animation: fade 25s infinite;
}

.banner_rotator img:nth-child(1) { animation-delay: 0s; }
.banner_rotator img:nth-child(2) { animation-delay: 5s; }
.banner_rotator img:nth-child(3) { animation-delay: 10s; }
.banner_rotator img:nth-child(4) { animation-delay: 15s; }
.banner_rotator img:nth-child(5) { animation-delay: 20s; }

@keyframes fade {
  0% { opacity: 0; }
  8% { opacity: 1; }
  20% { opacity: 1; }
  28% { opacity: 0; }
  100% { opacity: 0; }
}

/* ========================================= */
/* INTRO SECTION */
/* ========================================= */
#intro {
    text-align: center;
    background: rgb(240,240,240);
    padding: 3rem 2rem;
}

#intro h3 {
    font-size: 1.7rem;
    font-family: "Birthstone Bounce", cursive;
    font-weight: 500;
}

#intro h1 {
    font-size: 3rem;
    font-family: "Italianno", cursive;
    color: goldenrod;
    margin: 1rem 0;
    font-weight: normal;
}

#intro p {
    font-size: 1rem;
    max-width: 900px;
    margin: auto;
}

/* ========================================= */
/* SEGMENTS */
/* ========================================= */
.segment {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin: 3rem auto;
    padding: 0 2rem;
    max-width: 1300px;
}

.segment_img {
    width: 45%;
    border-radius: 10px;
}

.segment_content {
    width: 55%;
    text-align: center;
}

.segment_content h1 {
    font-family: "Italianno", cursive;
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.segment_content p {
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* ========================================= */
/* SLIDESHOW */
/* ========================================= */
#slideshow {
    background: rgb(240,240,240);
    padding: 3rem 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

#slideshow img {
    width: 260px;
    height: 350px;
    object-fit: cover;
    filter: grayscale;
}

#slideshow img:hover {
    filter: none;
}

/* ========================================= */
/* BOTTOM BANNER */
/* ========================================= */
#bottom_banner {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

/* ========================================= */
/* FOOTER */
/* ========================================= */
footer {
    position: relative;
    background: black;
    color: white;
    padding: 3rem 1.5rem;
}

#footer_div {
    max-width: 1400px;
    margin: auto;
}

.footer1 {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer1 * {
    color: white;
    font-size: 1.1rem;
}

.footer1 h1:first-child {
    font-size: 2.8rem;
}

.footer_heading3 {
    font-weight: bold;
    font-size: 1.4rem;
}

.footer_items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#footer2 {
    display: flex;
    justify-content: center;
    gap: 1rem;
    border-top: 1px solid white;
    padding: 1.5rem 0;
}

.fa {
    background: white;
    color: black;
    padding: 15px;
    width: 50px;
    text-align: center;
    border-radius: 10px;
}

#footer3 {
    border-top: 1px solid white;
    padding-top: 1.5rem;
    text-align: center;
    font-size: 1.1rem;
}

#footer_img {
    width: 80%;
    max-width: 700px;
    margin: 2rem auto 0;
    height: 280px;
    object-fit: cover;
}

/* ========================================= */
/* MEDIA QUERIES */
/* ========================================= */

/* TABLETS */
@media (max-width: 992px) {
    nav{
        display: flex;
        align-items: center;
        flex-direction: column;
    }
    .segment { 
        flex-direction: column;
        text-align: center;
    }
    .segment_img, .segment_content {
        width: 100%;
    }
    #nav_links {
        position: fixed;
        top: 60px;
        right: -100%; 
        width: 70%;
        height: 100vh;
        background: white;
        flex-direction: column;
        text-align: center;
        padding-top: 40px;
        gap: 10px;
        transition: 0.3s ease-in-out;
    }

    #nav_links a {
        font-size: 18px;
        padding: 20px;
        border-bottom: 1px solid #3a2a3c;
    }

    #nav_links.active {
        right: 0;
    }

    #hamburger {
        display: flex;
    }
    #nav_title {
        font-size: 2.3rem;
    }

    .banner_rotator {
    }
}

/* LARGE PHONES */
@media (max-width: 768px) {
    nav {
        padding: 1.5rem 1rem;
    }
    #nav_links {
        position: fixed;
        top: 60px;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: white;
        flex-direction: column;
        text-align: center;
        padding-top: 40px;
        gap: 10px;
        transition: 0.3s ease-in-out;
    }

    #nav_links a {
        font-size: 18px;
        padding: 20px;
        border-bottom: 1px solid #3a2a3c;
    }

    #nav_links.active {
        right: 0;
    }

    #hamburger {
        display: flex;
    }

    #intro h1 {
        font-size: 2.2rem;
    }

    .segment_content h1 {
        font-size: 2.2rem;
    }

    #slideshow img {
        width: 45%;
        height: auto;
    }
}

/* SMALL PHONES */
@media (max-width: 480px) {
    #nav_title {
        font-size: 2rem;
    }
    #nav-links {
        position: fixed;
        top: 60px;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: #1b0f1c;
        flex-direction: column;
        text-align: center;
        padding-top: 40px;
        gap: 10px;
        transition: 0.3s ease-in-out;
    }

    #nav-links a {
        font-size: 18px;
        padding: 20px;
        border-bottom: 1px solid #3a2a3c;
    }

    #nav-links.active {
        right: 0;
    }

    #hamburger {
        display: flex;
    }
    .banner_rotator {
    }

    #slideshow img {
        width: 100%;
    }

    #bottom_banner {
        height: 250px;
    }
}
