/* ROOT CSS VARIABLES */
:root {
    --color-white: #ffffff;
    --color-light: #f0eff5;
    --color-gray-light: #86848c;
    --color-gray-dark: #56555e;
    --color-dark: #27282f;
    --color-primary: rgb(12,71,157); /* Mobil Blue */
    --color-danger: rgb(254,0,12); /* Mobil Red */

    --color-bg-overlay: rgba(29, 45, 68, 0.5);
    --color-primary-light: rgba(12, 71, 157, 0.2);
}

* {
    margin: 0;
    padding: 0;
    outline: 0;
    border: 0;
    appearance: none;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
}

html {
    font-size: 12px;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    background: var(--color-light);
    font-family: "Poppins", sans-serif;
    min-height: 100vh;
    color: var(--color-dark);
}

.container {
    width: 100%;
  }

img {
    width: 100%;
    height: auto;
}

h1 {
    font-size: 2.2rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.1rem;
    font-weight: 500;
}

h6 {
    font-size: 7.6rem;
}

p {
    font-size: 1.15rem;
    color: var(--color-gray-dark);
}

/* NAV BAR */
nav {
    background: var(--color-white);
    position: fixed;
}


.nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 96%;
    margin: 0 auto;
}

nav .logo {
    width: 12rem;
}

.nav-items {
    width: 50%;
    padding: 1rem 0;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.nav-items a {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    height: 4.2rem;
    color: var(--color-gray-light);
    position: relative;
}

.nav-items a span {
    font-size: 1.7rem;
    margin-left: 3rem;
    transition: all 300ms ease;
}

.nav-items a.active {
    background: var(--color-white);
    color: var(--color-primary);
}

.nav-items a:hover {
    color: var(--color-primary);
}

.nav-items a:hover span {
    margin-left: 2rem;
}

.nav-items a h4 {
    font-weight: 500;
}

.social-nav a {
    font-size: 1.7rem;
    margin: 1.2rem;
}

.mobile-menu {
    display: none;
}

.dropdown-menu {
    display: none;
    position: fixed;
    right: 2rem;
    top: 60px;
    width: 350px;
    height: 0;
    background-color: var(--color-bg-overlay);
    backdrop-filter: blur(15px);
    border-radius: 10px;
    overflow: hidden;
    transition: height .2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dropdown-menu.open {
    height: 340px;
}

.dropdown-menu li {
    padding: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    height: 4.2rem;
    color: var(--color-white);
    position: relative;
}

/* MAIN */
main {
    display: grid;
    width: 100%;
    margin: 0 auto 4rem;
}

.banner-section {
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: var(--color-primary-light);
    color: var(--color-dark);
    padding: 0.5rem;
    width: 100%;
    margin-top: 6rem;
}

.hero-section {
    display: flex;
    background-image: url(./images/hero.jpg);
    background-position: center;
    background-size: cover;
    height: 100vh;
    justify-content: center;
    font-family: "Gelasio", serif;
    font-style: italic;
}

.hero-section h6 {
    font-style: italic;
}

.hero-content {
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    color: var(--color-light);
    background-color: var(--color-bg-overlay);
    width: 100%;
}

/* FEATURED */

.featured-section {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 5rem;
}

.featured-content {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 3rem 0;
}

.featured-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0 5rem 0;
}

.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.feature {
    margin: 40px 20px;
}

.feature-image {
    width: 40rem;
}

.feature-image img {
    height: 50rem;
    object-fit: cover;
}

/* ABOUT */

.about-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-flow: column;
    background-color: var(--color-primary-light);
    padding: 5rem;
}

.about-content h2 {
    padding: 5rem 5rem;
    font-weight: 500;
    line-height: 2;
}

.about-content img {
    width: 100%;
    height: 40vh;
    padding-top: 4rem;
    object-fit: cover;
    object-position: 10% 35%;
}

/* LOCATION */

.location-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* FOOTER */

.footer {
    display: flex;
    justify-content: space-evenly;
    margin-top: 3rem;
}

footer .logo {
    width: 30rem;
    height: 100%;
}

.footer-info h2 {
    margin : 1rem 0rem;
}

.footer-info h3 {
    margin: 1rem;
}

/* MEDIA QUERIES */
@media (max-width: 900px) {
    .nav-items, .social-nav {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .dropdown-menu {
        display: block;
    }
}

@media (max-width: 331px) {
    .dropdown-menu {
        width: 100%;
    }

    h2 {
        font-size: 2.5rem;
    }

    h3 {
        font-size: 2rem;
    }

    h1 {
        font: 2.2rem;
    }

    p {
        font-size: 1.8rem;
    }

    .banner-section h2 {
        font-size: 1.5rem;
    }
}