/* ---------------- NAVIGATION ---------------- */

.navbar {
    background: #f0e7db;
    border-bottom: 2px solid #d2c7b8;
    width: 100%;
}

.nav-container {
    max-width: 1200px;
    margin: auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    height: 100px;   /* smaller logo size */
    width: auto;
    display: block;
}

.menu-icon {
    font-size: 1.8rem;
    cursor: pointer;
    display: none;
}

#menu-toggle {
    display: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: #4a4035;
    font-weight: 600;
    padding: 8px 0;
}

/* Force all top nav items to align perfectly */
.nav-links > li > a {
    padding: 10px 0;
    display: inline-block;
    line-height: 1;
}

.dropdown > a {
    padding: 10px 0 !important;
    display: inline-block;
    line-height: 1;
}

/* Dropdown Styling */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #f8f4ee;
    border: 1px solid #d2c7b8;
    border-radius: 4px;
    min-width: 180px;
    z-index: 9999;
    margin-top: 0;
}

.dropdown:hover > .dropdown-content {
    display: block;
    animation: dropdownFade 0.25s ease-in-out;
}

.dropdown-content li {
    padding: 10px;
    white-space: nowrap;
}

.dropdown-content li:hover {
    background: #e6ded5;
}

/* ---------------- MOBILE MENU ---------------- */
@media (max-width: 900px) {
    .menu-icon {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 60px;
        left: 0;
        background: #f0e7db;
        width: 100%;
        flex-direction: column;
        padding: 15px;
        display: none;
        border-bottom: 2px solid #d2c7b8;
    }

    #menu-toggle:checked + .menu-icon + .nav-links {
        display: flex;
    }

    .dropdown-content {
        position: relative;
        border: none;
        background: #eae2d9;
    }

    .dropdown:hover .dropdown-content {
        display: none;
    }

    .dropdown > a:active + .dropdown-content,
    .dropdown > a:focus + .dropdown-content {
        display: block;
    }
}

/* GENERAL RESET */
* { margin:0; padding:0; box-sizing:border-box; font-family:'Georgia', serif; }
body { background:#f4f1ec; color:#333; }

/* HERO / HEADER */
.hero {
    text-align: center;
    padding: 60px 20px;
    height: 100vh;
    background-image: url("images/The\ Sling\ Brace/IMG_5732.jpeg"); /* update path */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-bottom: 2px solid #d2c7b8;
    color: white;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
}

.hero h1,
.hero p {
    position: relative;
    z-index: 1;
}

.hero h1 { font-size: 2.4rem; margin-bottom: 10px; }
.hero p { font-size: 1.1rem; }

/* GALLERY */
.gallery-section { padding:50px 20px; }
.gallery-section h2 { text-align:center; font-size:2rem; margin-bottom:25px; }
.gallery { display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:20px; max-width:1000px; margin:auto; }
.gallery-item { height:200px; display:flex; justify-content:center; align-items:center; border:2px dashed #d2c7b8; border-radius:8px; background:#fff; color:#7a5230; font-weight:bold; font-size:1rem; }

/* ABOUT */
.about { max-width:900px; margin:50px auto; padding:0 20px; }
.about h2 { font-size:2rem; margin-bottom:15px; }
.about p { font-size:1.1rem; line-height:1.6; }

/* FOOTER */
footer { text-align:center; padding:20px; background:#e8e1d5; margin-top:40px; font-size:0.9rem; }
