/*-------------------- Google Font --------------------*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

/*-------------------- Color Variables --------------------*/
:root {
    --main-color: #253746;
    --secondary-color: #38546B;
    --text-color: #333333;
    --body-color: #ffffff;
    --card-color: #f5f3ef;
    --footer-color: #f6f6f6;

    --font-logo: 'Inter', 'Helvetica Neue', 'Arial', sans-serif;
    --font-title: 'garamond-premier-pro', 'Poppins', sans-serif;
    --font-text: 'DS Trade Gothic', 'Poppins', sans-serif;
}

/*-------------------- Base CSS Rules --------------------*/
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: var(--font-text)
}

html,
body {
    max-width: 1800px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

body {
    position: relative;
    top: 3rem;
    background-color: var(--body-color);
    color: var(--text-color);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

/*-------------------- Header --------------------*/
.header {
    position: fixed;
    width: 100vw;
    max-width: 1800px;
    left: 0;
    top: 0;
    z-index: 100;
    background-color: var(--body-color);
}

.nav {
    height: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 1.5rem;
    font-weight: 500;
}

.nav_logo {
    color: var(--title-color);
    font-family: var(--font-logo);
    letter-spacing: 4px;
}

.nav_logo:hover {
    color: var(--main-color);
}

.nav_list {
    display: flex;
}

.nav_link {
    padding-left: 1rem;
    align-items: center;
    font-size: 0.9rem;
    color: var(--title-color);
    font-family: var(--font-text);
}

.nav_link:hover {
    color: var(--secondary-color);
}

/*-------------------- Drop Down --------------------*/
.dropdown {
    position: relative;
}

.dropdown_menu {
    display: none;
    position: absolute;
    background-color: var(--body-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 0.25rem;
    padding: 0.75rem 0;
    min-width: 180px;
}

.dropdown_menu li {
    padding: 0.5rem 1rem;
}

.dropdown_menu li:hover {
    background-color: var(--card-color);
}

.dropdown_item {
    color: var(--text-color);
    font-size: 0.9rem;
    display: block;
    transition: color 0.2s ease;
}

.dropdown_item:hover {
    color: var(--main-color);
}

.dropdown:hover .dropdown_menu {
    display: block;
}

/* Hover arrow indicator */
.dropdown_item::after {
    content: "→";
    float: right;
    color: var(--main-color);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.dropdown_item:hover::after {
    opacity: 1;
}

/*-------------------- Footer --------------------*/
.footer {
    bottom: 0;
    width: 100%;
    background-color: var(--footer-color);
    padding: 1.25rem 1.5rem;
}

.sign-up,
.socials {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.footer-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer h3 {
    margin-bottom: 0.2rem;
}

.footer p {
    font-size: 0.75rem;
}

.footer-form_input {
    display: flex;
    flex-direction: column;
}

.footer-form_input label {
    font-size: 0.8rem;
    font-weight: bold;
    margin: 1rem 0 0.25rem;
}

.footer-form_input #phone {
    width: 100%;
    padding: 0.25rem;
    font-size: 1rem;
    border-radius: 0.5rem;
}

.footer-form .btn {
    padding: 0.5rem 1.5rem;
    background-color: var(--main-color);
    color: white;
    border: none;
    border-radius: 0.4rem;
    cursor: pointer;
    width: 100%;
    margin-top: 0.25rem;
}

#phone-error {
    color: red;
    padding-top: 0.5rem;
    font-size: 0.9rem;
}  

.input-valid {
    border: 1px solid green;
}

.input-invalid {
    border: 1px solid red;
}

.app-store,
.social-media {
    display: flex;
    justify-content: space-evenly;
}

.app-store {
    margin-bottom: 1rem;
}

.social-media img {
    width: 30px;
    height: 30px;
}

.copyright {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #707070;
    font-size: 0.8rem;
}

/*-------------------- Media Queries --------------------*/
/* For tablet */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .nav_logo {
        font-size: 1.5rem;
    }

    .nav_link {
        font-size: 1rem;
    }

    .footer-form_input-container {
        display: grid;
        grid-template-columns: auto auto;
        gap: 1.5rem;
        margin-top: 0.5rem;
    }

    .footer-form .btn {
        padding: 0.5rem 1.5rem;
        width: 100%;
        margin-top: 40px;
    }
}

/* For large devices */
@media screen and (min-width: 1024px) {
    .nav_logo {
        font-size: 1.5rem;
    }

    .nav_link {
        font-size: 1rem;
    }

    .laptop-display {
        display: flex;
    }

    .footer-form_intro,
    .footer-form_input-container {
        /* padding: 0 1.5rem; */
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

@media screen and (min-width: 1800px) {
    html {
        margin: 0 auto;
    }
    .header {
        position: sticky;
        margin: 0 auto;
    }
}