/* ==========================================================================
   O'Steen Meats — site header
   Loaded after the page's own <style>, so these win without touching 13 files.

   The bar used to run on the default system font stack at 16px/500, inside a
   1400px container, with no wrap protection — so "Our Top 10" and "Restaurant
   Tools" broke onto two lines and the bar grew to 130px tall. Here it gets a
   real typeface, one line, and a fixed rhythm.
   ========================================================================== */

:root {
    --hdr-font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --hdr-ink: #1d2a23;
    --hdr-ink-soft: #55635b;
}

/* ---- the bar ---- */
#navbar {
    background: rgba(255, 255, 255, 0.88);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(0, 102, 51, 0.08);
    transition: box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.96);
    border-bottom-color: rgba(0, 102, 51, 0.14);
    box-shadow: 0 6px 28px -18px rgba(12, 36, 24, 0.55);
}
#navbar { padding: 0; }
#navbar .nav-container {
    max-width: 1560px;
    padding: 0.55rem clamp(1rem, 2.4vw, 2.25rem);
    gap: clamp(1rem, 2.2vw, 2rem);
    min-height: 0;
}
#navbar .nav-left { gap: clamp(0.85rem, 1.8vw, 1.75rem); }
/* the logo drove the old 130px bar: pin its height instead of its width */
#navbar .logo img { height: clamp(38px, 3.3vw, 52px); width: auto; }

/* ---- links ---- */
#navbar .nav-links {
    gap: clamp(0.85rem, 1.75vw, 2.1rem);
    align-items: center;
    margin: 0;
    padding: 0;
}
#navbar .nav-links a {
    font-family: var(--hdr-font);
    font-size: 0.795rem;
    font-weight: 600;
    letter-spacing: 0.085em;
    text-transform: uppercase;
    color: var(--hdr-ink);
    white-space: nowrap;            /* the fix for the two-line bar */
    padding: 0.45rem 0;
    line-height: 1;
    transition: color 0.2s ease;
}
#navbar .nav-links a:hover,
#navbar .nav-links a:focus-visible { color: var(--primary, #006633); }

/* the underline that already existed, tightened up */
#navbar .nav-links a:after {
    height: 2px;
    bottom: -2px;
    background: var(--secondary, #FFD700);
    border-radius: 2px;
}
/* current page: gold rule stays put */
#navbar .nav-links a[aria-current="page"] { color: var(--primary, #006633); }
#navbar .nav-links a[aria-current="page"]:after { width: 100%; }

/* ---- phone ---- */
#navbar .nav-phone {
    font-family: var(--hdr-font);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
    background: rgba(0, 102, 51, 0.07);
    border: 1px solid rgba(0, 102, 51, 0.1);
    border-radius: 50px;
    padding: 0.42rem 0.9rem;
    transition: background 0.2s ease, border-color 0.2s ease;
}
#navbar .nav-phone:hover { background: rgba(0, 102, 51, 0.12); border-color: rgba(0, 102, 51, 0.2); }
#navbar .nav-phone-icon { font-size: 0.95rem; line-height: 1; }

/* ---- member login ---- */
#navbar .cta-button {
    font-family: var(--hdr-font);
    font-size: 0.775rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    white-space: nowrap;
    padding: 0.7rem 1.35rem;
    line-height: 1;
    box-shadow: 0 10px 22px -14px rgba(0, 77, 38, 0.9);
}
#navbar .cta-button:hover { transform: translateY(-1px); box-shadow: 0 14px 26px -14px rgba(0, 77, 38, 0.95); }

/* ---- narrow desktop: tighten the bar ---- */
@media (min-width: 1181px) and (max-width: 1400px) {
    #navbar .nav-links a { font-size: 0.735rem; letter-spacing: 0.06em; }
    #navbar .nav-phone span:not(.nav-phone-icon) { display: none; }
    #navbar .nav-phone { padding: 0.42rem 0.6rem; }
}

/* Seven links + logo + phone + Member Login stop fitting below ~1180px: the row
   used to overflow and the button was clipped by body{overflow-x:hidden}. Hand
   over to the drawer here instead of at the original 968px. */
@media (max-width: 1180px) {
    #navbar .nav-links,
    #navbar .cta-button { display: none; }
    #navbar .mobile-menu-btn { display: block; }
    .mobile-nav { display: flex; }
}

/* ---- mobile drawer gets the same voice ---- */
/* was rgba(0,102,51,0.98): the hero headline ghosted through it */
.mobile-nav {
    background: linear-gradient(180deg, #00562c 0%, #003c1e 100%);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.mobile-nav a {
    font-family: var(--hdr-font);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.85rem;
}
.mobile-nav a.cta-button { letter-spacing: 0.07em; }

@media (max-width: 968px) {
    #navbar .nav-container { padding: 0.55rem 1rem; }
    #navbar .logo img { width: clamp(108px, 30vw, 132px); }
}
