/* Hide checkbox toggles on desktop */
.toggle,
[id^=drop] {
    display: none;
}

/* NAV CONTAINER */
nav {
    margin: 0;
    padding: 0;
    z-index: 999;
}

/* Clearfix for nav */
nav:after {
    content: "";
    display: table;
    clear: both;
}

/* WRAPPER FOR MENU */
.menu-wrap {
    clear: none;
    float: right;
    width: 65%;
    z-index: 900;
    margin-top: 0;
    padding-top: 0;
    padding-right: 0;
}

/* LOGO */
#logo {
    display: block;
    float: left;
    padding: 0;
    z-index: 999;
    width: 227px;
    height: auto;
    margin-top: 5px;
}

#logo a:hover {
    z-index: 999;
    background-color: rgba(255, 255, 255, 0);
}

/* Alternate logo */
.logo-landing {
    display: block;
    float: left;
    padding: 5px 0 5px 15px;
    z-index: 999;
    width: 157px;
    height: auto;
}

/* TAGLINE (desktop only) */
.tagline {
    text-align: right;
    float: right;
    font-size: 24px;
    font-weight: 600;
    padding-right: 0;
    margin-bottom: 4px;
    width: 100%;
    line-height: 27px;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.tagline.landing {
    margin-top: 20px;
}

.tagline a {
    color: #eaebec;
}

.tagline h4 {
    font-size: 24px;
    line-height: 29px;
    font-weight: 600;
    margin-bottom: 5px;
}

.tagline h5 {
    font-size: 24px;
    line-height: 34px;
    font-weight: 600;
    display: block;
    padding-top: 1px;
}

/* MAIN NAV LIST (desktop base) */
nav ul {
    float: right;
    padding: 0;
    margin: 0;
    list-style: none;
    position: relative;
    z-index: 999;
}

nav ul li {
    margin: 0;
    display: inline-block;
    float: left;
}

/* Selected state */
nav ul li.selected,
nav ul li a.selected {
    background-color: #f2f2f2;
}

/* Top-level links */
nav ul li a {
    color: #3d3d3d;
    display: block;
    font-size: 16px;
    text-decoration: none;
    padding: 0 15px;
    line-height: 40px;
    font-weight: 500;
}

/* Hover colours (no radius here – handled in desktop media query) */
nav ul li:hover {
    color: #3d3d3d;
}

nav ul li a:hover {
    background-color: #f7f7f8;
    color: #3d3d3d;
}

/* SUB-MENUS (desktop base) */
nav ul ul {
    display: none;
    position: absolute;
    top: 40px; /* matches line-height of top-level items */
}

/* Show dropdown on hover (desktop) */
nav ul li:hover > ul {
    display: block;
}

/* First tier dropdown items */
nav ul ul li {
    float: none;
    display: list-item;
    position: relative;
    color: #3d3d3d;
    width: 280px;
    padding-top: 0;
    margin-left: 0;
}

/* Dropdown links */
nav ul ul li a {
    position: relative;
    color: #3d3d3d;
    height: 40px;
    font-weight: 500;
    font-size: 16px;
    width: auto;
    padding-top: 5px;
    padding-bottom: 5px;
    margin: 0;
    padding-right: 0;
    background-color: #f7f7f8;
}

/* Dropdown hover */
nav ul ul li a:hover {
    color: #3d3d3d;
    background-color: #eaebec;
}

/* Dropdown selected state */
nav ul ul li.selected,
nav ul ul li a.selected {
    position: relative;
    color: #3d3d3d;
    background-color: #eaebec;
    left: auto;
    font-weight: 300;
}

/* Deeper tiers (unused, left for compatibility) */
nav ul ul ul li {
    position: relative;
    top: -60px;
    left: 340px;
}

/* Remove default "+" indicators (structure kept for compatibility) */
li > a:after {
    content: "";
    color: #ff0004;
}

li > a:only-child:after {
    content: "";
    color: #fff;
}

/* Top-level hover: change text colour on link itself */
nav ul li:hover > a {
    color: #3d3d3d;
}

/* ------------------------------- */
/* DESKTOP-ONLY CORNER CONTROL     */
/* ------------------------------- */

@media all and (min-width: 1201px) {

    /* Reset border radius on all top-level li and anchors */
    nav ul.menu > li,
    nav ul.menu > li > a {
        border-radius: 0;
    }

    /* Default behaviour: Our work, About, FAQs, Contact
       (all top-level items) rounded on hover... */
    nav ul.menu > li > a:hover {
        border-radius: 4px; /* all four corners */
    }

    /* ...EXCEPT the first item (Services) */
    nav ul.menu > li:first-child > a:hover {
        border-radius: 4px 4px 0 0; /* top corners only */
    }

    /* Dropdown panel for Services */
    nav ul.menu > li:first-child > ul {
        border-radius: 0;
    }

    nav ul.menu > li:first-child:hover > ul {
        /* TL square (touches Services), TR rounded, bottom corners rounded */
        border-radius: 0 4px 4px 4px;
        overflow: hidden;
    }

    /* First item in dropdown – keep top square */
    nav ul.menu > li:first-child ul li:first-child a {
        border-radius: 0;
    }

    /* Last item in dropdown – rounded bottom corners */
    nav ul.menu > li:first-child ul li:last-child a {
        border-bottom-left-radius: 4px;
        border-bottom-right-radius: 4px;
    }
    
    nav ul.menu > li:first-child:hover > a {
        background-color: #f7f7f8 !important;
        color: #3d3d3d !important;
        border-radius: 4px 4px 0 0; /* keep the top-only rounding */
    }
    
}

/* ------------------------------- */
/* TABLET & MOBILE NAV             */
/* ------------------------------- */

@media all and (max-width: 1200px) {

    
**TABLET** {}  
    
    #logo {
        padding-left: 20px;
    }

    .logo-landing {
        display: inline-block;
        float: left;
        padding: 5px 0;
        z-index: 999;
        width: 20%;
        height: auto;
        margin-left: 40%;
        margin-right: 40%;
    }

    .tagline {
        display: none;
    }

    nav {
        margin: 0;
    }

    /* Hide menu by default, show toggle button */
    .toggle + a,
    .menu {
        display: none;
    }

    .menu-wrap {
        width: 100%;
        padding-right: 0;
        padding-left: 0;
    }

    /* Mobile/tablet toggle label */
    .toggle {
        display: block;
        font-size: 18px;
        text-decoration: none;
        border: none;
        padding: 0 20px;
        line-height: 50px;
        text-align: left;
        background-image: url(/images/icon-menu.png);
        background-repeat: no-repeat;
        background-position: 96% center;
        font-weight: 500;
    }

    /* Main toggle (hamburger) */
    .toggle-main {
    position: absolute;
    top: 4px;
    right: 34px;
    width: 28px;
    height: 19px;
    background-image: url(/images/icon-menu-main.png) !important;
    padding: 0;
    font-weight: 500;
    margin-top: 25px;
    }

    /* Show menu when checkbox is checked */
    [id^=drop]:checked + ul {
        display: block;
    }

    nav ul {
        float: left;
        width: 100%;
    }

    /* Stack menu items vertically */
    nav ul li {
        display: block;
        width: 100%;
        border-bottom: 1px solid #eaebec;
        background-image: none;
        margin: 0;
        background-color: #f7f7f8;
        color: #3d3d3d;
    }

    nav ul li a {
        background-color: #f7f7f8;
        color: #3d3d3d;
        padding-left: 20px;
        height: 40px;
        padding-top: 5px;
        padding-bottom: 5px;
        margin: 0;
    }

    nav ul li a:hover {
        background-color: #eaebec;
        color: #3d3d3d;
    }

    nav ul li a.book {
        background-color: #a99e73;
        color: #3d3d3d;
        padding-left: 20px;
        height: 40px;
        padding-top: 5px;
        padding-bottom: 5px;
        margin: 0;
    }

    /* Dropdown items inside mobile menu */
    nav ul ul .toggle,
    nav ul ul a {
        padding: 0 40px;
        color: #3d3d3d;
    }

    nav ul ul ul a {
        padding: 0 80px;
        color: #3d3d3d;
    }

    nav ul li ul li .toggle,
    nav ul ul a,
    nav ul ul ul a {
        color: #e00b0e;
        padding-top: 0;
        padding-right: 20px;
        padding-bottom: 0;
        padding-left: 20px;
    }

    /* Mobile dropdown behaviour */
    nav ul ul {
        float: none;
        position: static;
        color: #3d3d3d;
        background-image: none;
    }

    nav ul ul li:hover > ul,
    nav ul li:hover > ul {
        display: none;
    }

    /* First tier dropdown items in mobile */
    nav ul ul li {
        display: block;
        width: 100%;
        border-top: 1px solid #f7f7f8;
        border-bottom: none;
    }

    nav ul ul li a {
        color: #f7f7f8;
        line-height: 40px;
        background-color: #3d3d3d;
    }

    nav ul ul ul li {
        position: static;
    }

    nav ul li.selected,
    nav ul li a.selected {
        font-weight: 500;
        color: #3d3d3d;
        background-color: #eaebec;
    }
}

/* ------------------------------- */
/* SMALL MOBILE ADJUSTMENTS        */
/* ------------------------------- */

@media all and (max-width: 481px) {

**MOBILE** {}   
     
    #logo {
        text-align: left;
        float: left;
        width: 200px;
        padding-top: 0;
        margin-top: 4px;
    }

    .logo-landing {
        width: 30%;
        margin-left: 35%;
        margin-right: 35%;
    }

    .toggle-main {
        top: 35px;
        margin-top: 25px;
        right: 20px;
    }

    .tagline2 {
        text-align: center;
        padding-top: 0;
        margin-bottom: 25px;
        width: 100%;
    }

    .tagline2 a {
        color: #a99e73;
    }

    .tagline2 h5 {
        font-size: 30px;
        font-weight: 600;
        color: #a99e73;
    }
}
