/* Public site header (res_SiteNimbl.Master): one slim fixed bar.
   .nimblHeader in main.css still supplies position: fixed and the z-index. */

.siteHeader {
    height: 68px;
    background: rgba(255, 255, 255, 0.85) !important;
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: "Mulish", sans-serif;
}
.siteHeader.isScrolled { border-bottom-color: rgba(9, 45, 64, 0.08); box-shadow: 0 6px 24px -12px rgba(9, 45, 64, 0.18); }
.siteHeaderSpacer { height: 68px; }
.siteHeaderInner { display: flex; align-items: center; gap: 32px; max-width: 1240px; height: 100%; margin: 0 auto; padding: 0 32px; }

.siteLogo { display: flex; flex-shrink: 0; }
.nimblHeader .siteLogo img { float: none; padding: 0; width: 150px; height: auto; display: block; }

/* Menu: sits next to the logo; each item fills the bar's height so the pointer can travel into its panel */
.siteNav { display: flex; align-items: stretch; align-self: stretch; gap: 4px; flex: 1; }
.siteNavItem { display: flex; align-items: center; }
.siteNav > .siteNavLink { align-self: center; }
.siteNavLink {
    display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 10px 14px; border: 0; border-radius: 999px;
    background: none; font-family: "Mulish", sans-serif !important; font-size: 15px !important; font-weight: 600 !important; line-height: 1;
    color: var(--black) !important; text-decoration: none !important; cursor: pointer; transition: background-color 0.2s, color 0.2s;
}
/* Foundation turns button text white on hover/focus; keep it dark, and coral while its panel is open */
.siteNavLink:hover, .siteNavLink:focus { background: rgba(9, 45, 64, 0.06); color: var(--black) !important; }
.siteNavItem:hover > .siteNavLink, .siteNavItem:focus-within > .siteNavLink, .siteNavItem.isOpen > .siteNavLink { background: none; color: var(--red) !important; }
.siteNavLink i { font-size: 10px; transition: transform 0.2s; }
.siteNavItem:hover > .siteNavLink i, .siteNavItem:focus-within > .siteNavLink i, .siteNavItem.isOpen > .siteNavLink i { transform: rotate(180deg); }

/* Full-width panel under the bar (the fixed header is its containing block) */
.siteMega {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-top: 1px solid rgba(9, 45, 64, 0.06);
    box-shadow: 0 30px 60px -30px rgba(9, 45, 64, 0.35);
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.siteNavItem:hover .siteMega, .siteNavItem:focus-within .siteMega, .siteNavItem.isOpen .siteMega { opacity: 1; visibility: visible; transform: none; }
.siteMegaInner { display: flex; gap: 48px; max-width: 1240px; margin: 0 auto; padding: 36px 32px 40px; }
.siteMegaCol { flex: 0 0 210px; }
.siteMegaTitle { padding-bottom: 14px; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(9, 45, 64, 0.55); }
.siteMegaCol a { display: flex; align-items: center; gap: 12px; padding: 9px 0; font-size: 15px; font-weight: 600; color: var(--black) !important; text-decoration: none !important; transition: color 0.15s; }
.siteMegaCol a i { width: 18px; text-align: center; font-size: 14px; color: rgba(9, 45, 64, 0.4); transition: color 0.15s; }
.siteMegaCol a:hover, .siteMegaCol a:focus { color: var(--red) !important; }
.siteMegaCol a:hover i, .siteMegaCol a:focus i { color: var(--red); }

/* Featured card on the right of a panel */
.siteMegaCard { display: block; width: 280px; margin-left: auto; text-decoration: none !important; }
.nimblHeader .siteMegaCard img { float: none; padding: 0; } /* main.css pads and floats every header image */
.siteMegaCard img { display: block; width: 100%; height: 150px; object-fit: cover; object-position: top; border-radius: 12px; transition: transform 0.3s; }
.siteMegaCard:hover img { transform: scale(1.02); }
.siteMegaCard b { display: block; padding-top: 14px; font-size: 15px; line-height: 1.35; color: var(--black); }
.siteMegaCard span { display: block; padding-top: 4px; font-size: 13px; line-height: 1.5; color: rgba(9, 45, 64, 0.65); }
.siteMegaCard em { display: inline-flex; align-items: center; gap: 6px; padding-top: 10px; font-size: 13px; font-weight: 700; font-style: normal; color: var(--red); }
.siteMegaCard em i { font-size: 11px; transition: transform 0.2s; }
.siteMegaCard:hover em i { transform: translateX(3px); }

/* Right-hand actions */
.siteActions { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-shrink: 0; }
.siteLogin { padding: 10px 14px; font-size: 15px; font-weight: 600; color: var(--black) !important; text-transform: lowercase; text-decoration: none !important; border-radius: 999px; }
.siteLogin::first-letter { text-transform: uppercase; }
.siteLogin:hover { background: rgba(9, 45, 64, 0.06); }
.siteCta {
    padding: 11px 20px; border-radius: 999px; background: var(--black); color: var(--white) !important;
    font-size: 15px; font-weight: 700; text-decoration: none !important; white-space: nowrap; transition: background-color 0.2s, transform 0.2s;
}
.siteCta i { margin-left: 8px; font-size: 11px; }
.siteCta:hover { background: var(--red); transform: translateY(-1px); }
.siteBurger { display: none; flex-direction: column; justify-content: center; gap: 4px; width: 42px; height: 42px; margin: 0; padding: 0 11px; border: 0; border-radius: 50%; background: var(--black); cursor: pointer; }
.siteBurger:hover, .siteBurger:focus { background: var(--red); }
.siteBurger span { display: block; height: 2px; border-radius: 1px; background: var(--white); }

.siteNavLink:focus-visible, .siteMegaCol a:focus-visible, .siteMegaCard:focus-visible, .siteLogin:focus-visible, .siteCta:focus-visible, .siteBurger:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

@media (max-width: 1000px) {
    .siteNav, .siteLogin { display: none; }
    .siteBurger { display: flex; }
    .siteHeaderInner { padding: 0 20px; }
}
@media (max-width: 480px) {
    .siteHeader, .siteHeaderSpacer { height: 60px; }
    .nimblHeader .siteLogo img { width: 124px; }
    .siteCta { padding: 9px 14px; font-size: 13px; }
}

/* Very narrow phones: the header's "Start your store" button pushes the menu button off screen.
   Hide it there; the menu has the same button fixed at its bottom. */
@media (max-width: 387px) {
    .siteCta { display: none; }
}

/* ===== Site footer (res_SiteNimbl.Master) ===== */
/* Short pages: the page fills at least the screen and the content area grows, so the footer sits at the bottom */
#content { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
#content > .MainContent { flex: 1 0 auto; }
#content > .siteFooter { flex-shrink: 0; }
.siteFooter { clear: both; background: var(--black); color: rgba(255, 255, 255, 0.72); font-family: Poppins, sans-serif; }
.siteFooterInner { max-width: 1240px; margin: 0 auto; padding: 72px 32px 32px; }
.siteFooterTop { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.siteFooterBrand img { display: block; width: 180px; height: auto; }
.siteFooterBrand p { max-width: 320px; margin: 0 !important; padding-top: 18px; font-size: 15px; line-height: 1.65; color: rgba(255, 255, 255, 0.72); }
.siteFooterSocial { display: flex; gap: 12px; padding-top: 24px; }
.siteFooterSocial a { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, 0.08); color: var(--white) !important; font-size: 16px; text-decoration: none !important; transition: background-color 0.2s; }
.siteFooterSocial a:hover { background: var(--red); }
.siteFooterCols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 32px; }
.siteFooterCols div { display: flex; flex-direction: column; gap: 12px; }
.siteFooterTitle { margin: 0 0 4px !important; font-family: "Mulish", sans-serif; font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--white); }
.siteFooterCols a { font-size: 15px; font-weight: 400 !important; line-height: 1.4; color: rgba(255, 255, 255, 0.72) !important; text-decoration: none !important; transition: color 0.2s; }
.siteFooterCols a[href^="mailto:"] { white-space: nowrap; }
.siteFooterCols a:hover { color: var(--white) !important; }
.siteFooterBottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 24px; font-size: 13px; color: rgba(255, 255, 255, 0.5); }
.siteFooterBottom i { color: var(--red); }
.siteFooterSr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 960px) {
    .siteFooterTop { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .siteFooterCols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
}
@media (max-width: 480px) {
    .siteFooterInner { padding: 56px 20px 28px; }
    .siteFooterCols a { font-size: 14px; }
    .siteFooterBottom { flex-direction: column; }
}

/* ===== Mobile menu drawer (public master only; the portal master keeps main.css's .offSiteMenu* look) =====
   Fixed top bar and bottom button; only the middle scrolls. Sections expand with <details>. */
.offSiteMenuDrawer.siteDrawer { width: 100vw; max-width: 420px; background: var(--white); color: var(--black); font-family: Poppins, sans-serif; }
.siteDrawerTop { display: flex; align-items: center; gap: 12px; flex-shrink: 0; padding: 14px 16px 14px 20px; border-bottom: 1px solid rgba(9, 45, 64, 0.08); }
.siteDrawerLogo { margin-right: auto; }
.siteDrawerLogo img { display: block; width: 120px; height: auto; }
.siteDrawerClose { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin: 0; padding: 0; border: 0; border-radius: 12px; background: var(--white); color: var(--black); font-size: 20px; cursor: pointer; }
.siteDrawerClose:hover, .siteDrawerClose:focus { background: rgba(9, 45, 64, 0.06); color: var(--black); }
.siteDrawerScroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 8px 20px 24px; }
.siteDrawerGroup { border-bottom: 1px solid rgba(9, 45, 64, 0.08); }
.siteDrawerGroup summary, .siteDrawer .siteDrawerRow {
    display: flex; align-items: center; justify-content: space-between; padding: 20px 0; list-style: none; cursor: pointer;
    font-family: "Mulish", sans-serif; font-size: 20px; font-weight: 700; color: var(--black) !important; text-decoration: none !important;
}
.siteDrawerGroup summary::-webkit-details-marker { display: none; }
.siteDrawerGroup summary::after, .siteDrawer .siteDrawerRow::after { content: "\f054"; font-family: "Font Awesome 5 Free"; font-weight: 900; font-size: 14px; color: rgba(9, 45, 64, 0.45); transition: transform 0.2s; }
.siteDrawerGroup[open] summary::after { transform: rotate(90deg); }
.siteDrawer .siteDrawerRow { border-bottom: 1px solid rgba(9, 45, 64, 0.08); }
.siteDrawerLinks { display: flex; flex-direction: column; padding: 0 0 18px; }
.siteDrawerLinks p { margin: 0 !important; padding: 14px 0 6px; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); }
.siteDrawerLinks a { padding: 9px 0; font-size: 16px; font-weight: 400 !important; color: var(--black) !important; text-decoration: none !important; }
.siteDrawerSocial { display: flex; gap: 10px; padding-top: 24px; }
.siteDrawerSocial a { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(9, 45, 64, 0.06); color: var(--black) !important; text-decoration: none !important; }
.siteDrawerBottom { flex-shrink: 0; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(9, 45, 64, 0.08); background: var(--white); }
.siteDrawer .siteDrawerCta { display: flex; align-items: center; justify-content: center; height: 52px; border-radius: 999px; background: var(--black); font-family: "Mulish", sans-serif; font-size: 16px; font-weight: 700; color: var(--white) !important; text-decoration: none !important; }
.siteDrawer .siteDrawerCta:hover { background: var(--red); }
/* Login sits above "Start your store": same size, in our red (text from the master's code-behind: Login / Portal) */
.siteDrawer .siteDrawerLogin { margin-bottom: 10px; background: var(--red); }
.siteDrawer .siteDrawerLogin:hover { background: var(--black); }
