@font-face {
    font-family: 'Hatton';
    src: url('./fonts/Hatton-Regular.woff2') format('woff2'),
    url('./fonts/Hatton-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Hatton', serif;
}

.header {
    width: 100%;
    background: #0a4049;
    backdrop-filter: blur(6px);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header nav a {
    font-weight: 400;
    letter-spacing: 1px;
}
.container {
    max-width: 1400px;
    margin: auto;
    padding: 18px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    width: 80px;
    height: auto;
    margin-left: 20px;
    cursor: pointer;
}

.navbar {
    display: flex;
    align-items: center;
    gap: 35px;
}

.navbar a {
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
    color: #fff;
    font-size: 18px;
    letter-spacing: 1.5px;
    font-weight: 500;
    margin-right: 10px;
    position: relative;
    transition: 0.3s ease;
}

.navbar a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background: #c5a46d;
    transition: 0.3s ease;
}

.navbar a:hover {
    color: #d0a04f;
}

.navbar a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 26px;
    cursor: pointer;
    color: white;
}

/* drop down menu of products list */
.arrow {
    display:inline-block;
    width:6px;
    height:6px;
    border-right:2px solid white;
    border-bottom:2px solid white;
    transform: rotate(45deg);
    margin-left:8px;
    margin-bottom:2px;
}

.dropdown:hover .arrow{
    transform: rotate(-135deg);
    transition:0.3s;
}

.dropdown {
    position: relative;
}

.dropdown-content{
    display:none;
    position:absolute;
    top:100%;
    left:0;
    background:white;
    min-width:220px;
    box-shadow:0 10px 25px rgba(0,0,0,0.2);
    padding:10px 0;
}

.dropdown-content a{
    color:#0a4049;
    padding:10px 20px;
    display:block;
    font-size:16px;
}

.dropdown-content a:hover{
    background:#f4f4f4;
}

.dropdown:hover .dropdown-content{
    display:block;
}

@media (max-width:1024px){

    .dropdown-content{
        position: absolute;
        top:100%;
        left:0;
        background:white;
        width:80px;
        box-shadow:0 10px 20px rgba(0,0,0,0.1);
    }

    .dropdown-content a{
        color:#0a4049;
    }

}

/* mobile viewer */
@media (max-width: 768px) {

    #header {
        min-height: 70px;
        background: #0a4049;
    }
    
    .container {
        padding: 15px 20px;
    }

    .logo img {
        width: 80px;
    }

    .navbar {
        position: fixed;
        align-items: center;
        top: 107px;
        right: -100%;
        font-size: 24px;
        width: 240px;
        height: 100vh;
        background: #216974;
        flex-direction: column;
        padding: 40px 20px;
        gap: 25px;
        transition: 0.4s ease;
        box-shadow: -5px 0 25px rgba(0,0,0,0.08);
    }

    .navbar.active {
        right: 0;
    }

    .menu-toggle {
        display: block;
    }

    .dropdown{
        width:100%;
        text-align:center;
        padding: 0 10px;
    }

    .dropdown-content{
        display:none;
        position:static;
        flex-direction:column;
        background:#ffffff;
        margin-top:10px;
        padding:10px 0;
        border-radius:8px;
        width:80%;
        margin-left: 10px;
        box-shadow:0 8px 20px rgba(0,0,0,0.12);
    }

    .dropdown-content a{
        color:#0a4049;
        padding:10px 0;
        font-size:16px;
        letter-spacing:1px;
        transition:0.2s;
    }

    .dropbtn{
        display:block;
        width:100%;
    }

    .dropdown.active .dropdown-content{
        display:flex;
    }

    .arrow{
        border-color:white;
    }
}