/* Site header - self-contained styles under the "sh-" namespace.
   Deliberately kept separate from styles.css (which has accumulated a lot
   of complexity from the site's original Bootstrap 3 + Bootstrap 5
   template) so this stays easy to find and maintain on its own. Doesn't
   rely on any Bootstrap grid/flex classes for its own layout - uses plain
   flexbox throughout, so it can't be affected by either Bootstrap
   version's competing rules the way the old header repeatedly was. */

.sh * {
    box-sizing: border-box;
}

.sh {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    font-family: "Poppins", Arial, sans-serif;
}

/* Nav bar: logo + links. */
.sh-navbar {
    background: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sh-navbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 24px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.sh-logo {
    justify-self: start;
}

.sh-menu {
    justify-self: center;
}

.sh-toggle {
    justify-self: end;
}

.sh-logo img {
    height: 56px;
    width: auto;
    display: block;
}

.sh-menu>ul {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 28px;
}

.sh-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    white-space: nowrap;
}

.sh-menu>ul>li>a:hover {
    color: #8E7037;
}

.sh-cta a {
    background: #fff;
    color: #000 !important;
    border: 1px solid #fff;
    border-radius: 4px;
    padding: 8px 18px;
    display: inline-block;
}

.sh-cta a:hover {
    background: transparent;
    color: #fff !important;
}

/* "About" dropdown - plain button/menu, not dependent on Bootstrap's
   dropdown JS or CSS at all. */
.sh-dropdown {
    position: relative;
}

.sh-dropdown-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sh-dropdown-toggle:hover {
    color: #8E7037;
}

.sh-caret {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
}

.sh-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 12px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    list-style: none;
    padding: 8px 0;
    min-width: 200px;
}

.sh-dropdown.sh-open .sh-dropdown-menu {
    display: block;
}

.sh-dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: #333 !important;
    font-size: 13px;
    text-transform: none;
    font-weight: 400;
}

.sh-dropdown-menu li a:hover {
    background: #f5f0e6;
    color: #8E7037 !important;
}

/* Mobile hamburger toggle - hidden on desktop. */
.sh-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}

.sh-toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    margin: 5px 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Page content needs top padding equal to the header's own height, since
   the header is position:fixed and would otherwise overlap page content.
   Reduced from the old 128px/108px/64px values now that the top contact
   bar is gone and the header no longer shrinks on scroll - it's a single,
   static height at every breakpoint now. */
body {
    padding-top: 96px;
}

@media (max-width: 991px) {
    .sh-menu>ul {
        gap: 18px;
    }

    .sh-menu a,
    .sh-dropdown-toggle {
        font-size: 12px;
    }
}

/* Mobile: hide the desktop nav, show the hamburger, and turn the nav menu
   into a full-width dropdown panel instead of a horizontal row. */
@media (max-width: 767px) {
    body {
        padding-top: 72px;
    }

    .sh-navbar-inner {
        /* The 3-column grid (logo | nav | toggle) works well on desktop,
           but on mobile the middle nav column is hidden until tapped,
           collapsing its grid track to zero width - leaving just two
           equal-width columns for logo and toggle, which put the toggle
           only at the midpoint of the right half rather than the true
           corner. Switching to a simple 2-item flex layout here instead,
           since the nav doesn't need a dedicated column in this row on
           mobile at all - it drops down as its own full-width panel
           below when opened. */
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 16px;
    }

    .sh-logo img {
        height: 40px;
    }

    .sh-toggle {
        display: block;
    }

    .sh-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #000;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .sh.sh-menu-open .sh-menu {
        display: block;
    }

    .sh-menu>ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 0;
    }

    .sh-menu>ul>li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .sh-menu>ul>li:last-child {
        border-bottom: none;
    }

    .sh-menu a,
    .sh-dropdown-toggle {
        display: block;
        width: 100%;
        padding: 14px 20px;
        font-size: 14px;
    }

    .sh-cta {
        padding: 10px 20px;
    }

    .sh-cta a {
        display: block;
        text-align: center;
    }

    /* v1.3.4: the toggle is a <button>, so the earlier display:block
       above made browsers center its text ("ABOUT" sat in the middle of
       the menu). Flex + start keeps it left-aligned like the other items,
       with the caret right after the word. */
    .sh-dropdown-toggle {
        display: flex;
        justify-content: flex-start;
        text-align: left;
    }

    .sh-dropdown-menu {
        display: none;
        position: static;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.05);
        margin-top: 0;
        border-radius: 0;
        padding: 0;
    }

    .sh-dropdown.sh-open .sh-dropdown-menu {
        display: block;
    }

    .sh-dropdown-menu li a {
        color: #fff !important;
        padding-left: 44px; /* v1.3.4: was 36px - a bit more indent */
    }

    .sh-dropdown-menu li a:hover {
        background: rgba(255, 255, 255, 0.08);
        color: #8E7037 !important;
    }
}
