/* Fonts */
@font-face {
    font-family: 'Touvlo';
    src: url('./fonts/Touvlo-Regular.otf');
}

@font-face {
    font-family: 'Montserrat';
    src: url('./fonts/Montserrat-Regular.ttf');
}

/* Page Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: rgb(57, 54, 54);
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.7;
}

header {
    font-family: 'Touvlo', sans-serif;
    padding: 50px 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgb(184, 192, 174);
    border-bottom: 3px solid #000000;
}

.logo {
    text-align: center;
    display: block;
}

.logo h1 {
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 3px;
    /* Spacing between letters */
    margin-bottom: 5px;
}

.logo p {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #555;
    /* Slightly lighter than main text */
}

nav ul {
    list-style: none;
    display: flex;
    gap: 50px;
}

nav ul li a,
nav ul li span {
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    /* Sits right under the nav link */
    left: 0;
    background-color: rgb(184, 192, 174);
    /* Matches body color */
    min-width: 280px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 10;
    padding: 20px 0;
    list-style: none;
    border: 1px solid #333;
    /* Optional: adds definition */
}

/* Show the dropdown on hover */
.dropdown:hover .dropdown-content,
.dropdown.open .dropdown-content {
    display: block;
}

.dropdown-content li {
    padding: 12px 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-content li:last-child {
    border-bottom: none;
}

.dropdown-content a {
    font-size: 16px;
    text-transform: none;
    letter-spacing: 0.5px;
    display: block;
}

.dropdown-content span {
    display: block;
    font-size: 12px;
    font-style: italic;
    font-weight: 400;
    color: #555;
    margin-top: 4px;
}

main {
    width: 100%;
    display: flex;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Tweaks for smaller screens */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 20px;
        padding: 30px 15px;
    }

    .logo h1 {
        font-size: 20px;
        /* Slightly smaller for mobile */
    }

    nav {
        width: 100%;
    }

    nav ul {
        flex-direction: column;
        /* Stacks items vertically so they don't cut off */
        align-items: center;
        gap: 15px;
        width: 100%;
    }

    nav ul li {
        width: 100%;
        text-align: center;
    }

    .dropdown-content {
        position: static;
        /* Flows naturally within the menu */
        box-shadow: none;
        min-width: 100%;
        /* Spans full width */
        border: none;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        background-color: rgba(255, 255, 255, 0.1);
        /* Subtle contrast for the sub-menu */
        padding: 10px 0;
        margin-top: 10px;
    }

    .dropdown-content li {
        padding: 15px 10px;
    }
}