/* ============================================================
   FuelerLinx public site (868meknp3): shell, nav, footer, buttons and
   overlays. LoginForm: fx-site-login.css. Home: fx-site-home.css.
   ------------------------------------------------------------
   Ported from the website design (SiteNav / SiteFooter .dc.html).
   Colors are Dega tokens (brand-*, navy-*, gray-*); the design's hex
   values map 1:1 onto them.

   Everything is scoped by the fls- prefix ("FuelerLinx site") so it
   never meets the app's fl-* classes, Bootstrap, Radzen or theme.css.
   Element resets use :where() so they cost no specificity and every
   fls- class below wins over them.
   ============================================================ */

/* ---------- Root + resets ---------- */

/* Menus are always in the markup and hidden until opened; [hidden] must win over their display rules. */
.fls-site [hidden] {
    display: none !important;
}

.fls-site {
    --fls-gutter: clamp(24px, 4vw, 64px);
    --fls-section-y: clamp(56px, 7vw, 92px);
    --fls-nav-h: 80px;
    --fls-rule: var(--gray-200);
    --fls-rule-dark: rgba(255, 255, 255, .1);

    min-height: 100vh;
    background: #FFFFFF;
    color: var(--gray-900);
    font-family: 'Open Sans', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

:where(.fls-site, .fls-login) :where(h1, h2, h3, p, ul) {
    margin: 0;
    padding: 0;
    letter-spacing: normal;
}

:where(.fls-site, .fls-login) :where(h1, h2, h3) {
    text-wrap: pretty;
}

:where(.fls-site, .fls-login) :where(ul) {
    list-style: none;
}

:where(.fls-site, .fls-login) :where(a, a:hover, a:focus) {
    text-decoration: none;
}

:where(.fls-site, .fls-login) :where(*, *::before, *::after) {
    box-sizing: border-box;
}

/* Fixed nav: anchors land below it (in-page clicks; fxSite.scrollToId covers first load). */
.fls-site [id] {
    scroll-margin-top: 96px;
}

.fls-anchor {
    display: block;
    height: 0;
}

.fls-nav-fill {
    flex: 1;
}

.fls-svg-defs {
    position: absolute;
    width: 0;
    height: 0;
}

/* ---------- Buttons + links ---------- */

.fls-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-family: inherit;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .15s, border-color .15s, color .15s;
}

.fls-btn-sm { height: 40px; padding: 0 22px; font-size: 14px; }
.fls-btn-md { height: 48px; padding: 0 26px; font-size: 15px; }
.fls-btn-lg { height: 50px; padding: 0 28px; font-size: 15px; }
.fls-btn-block { display: flex; width: 100%; }

.fls-btn-primary,
.fls-btn-primary:hover,
.fls-btn-primary:focus {
    background: var(--brand-500);
    color: #FFFFFF;
}

.fls-btn-primary:hover {
    background: var(--brand-700);
}

.fls-btn-primary:disabled {
    opacity: .6;
    cursor: default;
}

.fls-btn-ghost-dark,
.fls-btn-ghost-dark:hover {
    border-color: rgba(255, 255, 255, .28);
    color: #FFFFFF;
}

.fls-btn-ghost-dark:hover {
    border-color: var(--brand-300);
}

.fls-btn-outline,
.fls-btn-outline:hover {
    background: #FFFFFF;
    border-color: var(--gray-300);
    color: var(--navy-600);
}

.fls-btn-outline:hover {
    border-color: var(--brand-500);
    color: var(--brand-500);
}

.fls-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.fls-icon-btn {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 6px;
    background: none;
    color: var(--gray-500);
    cursor: pointer;
}

.fls-icon-btn:hover {
    background: var(--gray-100);
    color: var(--navy-600);
}

.fls-link-btn {
    border: 0;
    background: none;
    padding: 0;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--brand-500);
    cursor: pointer;
}

.fls-link-btn:hover {
    color: var(--brand-700);
}

.fls-link-btn:disabled {
    opacity: .6;
    cursor: default;
}

.fls-site :focus-visible,
.fls-login :focus-visible {
    outline: 2px solid var(--brand-300);
    outline-offset: 2px;
}

/* ---------- Nav ---------- */

.fls-nav-spacer {
    height: var(--fls-nav-h);
    background: var(--navy-900);
}

.fls-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--fls-nav-h);
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 0 var(--fls-gutter);
    background: rgba(11, 16, 32, .94);
    border-bottom: 1px solid rgba(255, 255, 255, .09);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

.fls-nav-logo {
    display: block;
    flex: none;
}

.fls-nav-logo img {
    display: block;
    height: 24px;
    width: auto;
}

.fls-nav-links {
    display: flex;
    align-self: stretch;
    align-items: center;
    gap: 30px;
}

.fls-nav-link,
.fls-nav-link:focus {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 600;
    color: var(--navy-100);
}

.fls-nav-link:hover {
    color: #FFFFFF;
}

.fls-nav-caret {
    font-size: 9px;
    opacity: .7;
}

/* Top-level links fill the bar's height so the current-page marker sits on its bottom edge. */
.fls-nav-links .fls-nav-link {
    position: relative;
    align-self: stretch;
}

.fls-nav-links .fls-nav-link-current {
    color: #FFFFFF;
}

.fls-nav-link-current::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--brand-300);
}

/* A top-level link with its own dropdown (all but FuelerLinx, whose mega-menu spans the nav). */
.fls-nav-drop {
    position: relative;
    align-self: stretch;
    display: flex;
    align-items: center;
}

/* The FuelerLinx menu spans the nav; it is placed against the nav, not its link. */
.fls-nav-drop-wide {
    position: static;
}

.fls-nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: none;
}

.fls-nav-menu-btn {
    display: none;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 6px;
    background: none;
    color: #FFFFFF;
    cursor: pointer;
}

/* Mega-menus */

.fls-mega {
    position: absolute;
    top: 100%;
    background: var(--navy-800);
    border: 1px solid rgba(255, 255, 255, .12);
    border-top: 0;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 28px 64px rgba(0, 0, 0, .5);
}

.fls-mega-drop {
    left: -20px;
    width: 360px;
    padding: 24px 26px 26px;
}

.fls-mega-narrow {
    width: 300px;
}

/* Company sits nearest the actions, so its menu opens toward the left. */
.fls-mega-end {
    left: auto;
    right: -20px;
}

.fls-mega-platform {
    left: var(--fls-gutter);
    width: min(880px, calc(100vw - 2 * var(--fls-gutter)));
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    overflow: hidden;
}

.fls-mega-main,
.fls-mega-side {
    padding: 26px 30px 30px;
}

.fls-mega-side {
    background: var(--navy-900);
    border-left: 1px solid var(--fls-rule-dark);
}

.fls-mega-eyebrow {
    margin-bottom: 20px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gray-500);
}

.fls-mega-drop .fls-mega-eyebrow {
    margin-bottom: 18px;
}

.fls-mega-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fls-mega-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 26px;
}

.fls-mega-item,
.fls-mega-item:focus {
    display: block;
    color: #FFFFFF;
}

.fls-mega-item:hover {
    color: var(--brand-200);
}

.fls-mega-item-ruled {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--fls-rule-dark);
}

.fls-mega-title {
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.3;
}

.fls-mega-desc {
    margin-top: 5px;
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--navy-200);
}

.fls-mega-photo {
    height: 132px;
    margin-top: 18px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--fls-rule-dark);
}

.fls-mega-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 62% 52%;
    filter: grayscale(1) brightness(.82) contrast(1.06);
}

/* Mobile menu */

.fls-mobile-menu {
    position: fixed;
    top: var(--fls-nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 150;
    display: none;
    flex-direction: column;
    overflow-y: auto;
    padding: 8px 24px 32px;
    background: var(--navy-900);
}

.fls-mobile-link,
.fls-mobile-link:focus {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--fls-rule-dark);
    font-size: 17px;
    font-weight: 700;
    color: #FFFFFF;
}

.fls-mobile-link:hover {
    color: var(--brand-200);
}

.fls-mobile-link-current,
.fls-mobile-link-current:focus {
    color: var(--brand-200);
}

.fls-mobile-link-current::before {
    content: "";
    flex: none;
    width: 4px;
    height: 18px;
    border-radius: 2px;
    background: var(--brand-300);
}

.fls-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
}

.fls-mobile-actions .fls-btn {
    height: 50px;
    font-size: 15px;
}

/* Five dropdown links need more room than V1's four, so the menu button takes over at 1000px. */
@media (max-width: 1000px) {
    .fls-nav-links,
    .fls-nav-actions,
    .fls-nav > .fls-nav-fill,
    .fls-mega {
        display: none;
    }

    .fls-nav-menu-btn {
        display: inline-flex;
    }

    .fls-mobile-menu {
        display: flex;
    }
}

/* ---------- Footer ---------- */

.fls-footer {
    padding: 72px var(--fls-gutter) 36px;
    background: var(--navy-800);
}

.fls-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px 48px;
    padding-bottom: 52px;
    border-bottom: 1px solid var(--fls-rule-dark);
}

.fls-footer-logo {
    display: block;
    height: 26px;
    width: auto;
}

.fls-footer-blurb {
    max-width: 280px;
    margin-top: 18px;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--navy-200);
}

.fls-footer-head {
    margin-bottom: 18px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--navy-300);
}

.fls-footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 14.5px;
}

.fls-footer-col a,
.fls-footer-col a:focus {
    color: var(--navy-100);
}

.fls-footer-col a:hover {
    color: #FFFFFF;
}

.fls-footer-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 28px;
    padding-top: 28px;
}

.fls-footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
}

.fls-footer-legal a,
.fls-footer-legal a:focus {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--navy-300);
}

.fls-footer-legal a:hover {
    color: #FFFFFF;
}

/* The shared data-use notice (Shared/Common/Eula), recoloured for the navy footer. The extra
   .fls-site keeps this ahead of the component's scoped styles whatever order they load in. */
.fls-site .fls-footer .fl-data-use-notice {
    max-width: none;
    margin: 24px 0 0;
    padding: 0;
    text-align: left;
    color: var(--navy-300);
}

.fls-footer-copy,
.fls-footer-clock {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--navy-300);
}

.fls-footer-clock {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    font-variant-numeric: tabular-nums;
}

.fls-footer-clock > div {
    display: flex;
    gap: 8px;
}

.fls-footer-time {
    color: var(--navy-100);
}

/* ---------- Overlays (Log In, Book a Demo) ---------- */

.fls-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(24px, 8vh, 110px) 24px;
    overflow-y: auto;
    background: rgba(11, 16, 32, .72);
}

.fls-overlay-center {
    align-items: center;
    padding: clamp(12px, 3vw, 40px);
}

.fls-overlay-top {
    z-index: 400;
}

.fls-dialog {
    width: 100%;
    max-width: 440px;
    padding: 34px 36px 36px;
    background: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, .45);
    text-align: left;
    cursor: default;
}

.fls-dialog-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.fls-dialog-logo {
    display: block;
    height: 22px;
    width: auto;
}

.fls-dialog-close {
    width: 32px;
    height: 32px;
    margin: -6px -8px 0 0;
}

.fls-booking {
    position: relative;
    width: 100%;
    max-width: 1100px;
    height: 100%;
    max-height: 900px;
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, .45);
    overflow: hidden;
}

.fls-booking-head {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px 14px 24px;
    border-bottom: 1px solid var(--gray-200);
}

.fls-booking-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--navy-600);
}

.fls-booking-frame {
    flex: 1;
    display: block;
    width: 100%;
    border: 0;
}
