/*
 * multitasker.llc's header and footer, for the LLC host (cloud.multitasker.llc).
 * Markup: resources/views/partials/llc-site-header.php, llc-site-footer.php.
 *
 * Ported from the site's scss/mt.scss (palette authority: BRAND.md in the
 * multitasker-llc repo), NOT its compiled app.css: that file is purged to the
 * site's own pages and carries the site's Bootstrap build, which would restyle
 * every table and form on the VPS pages. Here the CRM keeps its Bootstrap 5.3.3
 * and everything below is scoped to .llc-site — the header and the footer —
 * so nothing reaches the page content.
 *
 * Two kinds of rule:
 *  1. The site's Bootstrap Sass settings (17px type, 2px button borders, .65rem
 *     radii, navy secondary, the dropdown look) re-applied as Bootstrap's own
 *     CSS variables inside the scope.
 *  2. The site's brand classes (.lockup, .eyebrow, .btn-orange, .mega-menu,
 *     .mnav-*, .site-footer …) with the same values as mt.scss.
 */

/* ---- 1. The site's Bootstrap settings, inside the scope -------------------- */
.llc-site {
  --bs-body-color: #0F1B33; --bs-body-color-rgb: 15, 27, 51;
  --bs-body-bg: #ffffff; --bs-body-bg-rgb: 255, 255, 255;
  --bs-emphasis-color: #0D1530; --bs-emphasis-color-rgb: 13, 21, 48;
  --bs-secondary-color: #5A6B85; --bs-secondary-color-rgb: 90, 107, 133;
  --bs-tertiary-bg: #F7F7F8; --bs-tertiary-bg-rgb: 247, 247, 248;
  --bs-heading-color: #0D1530;
  --bs-link-color: #C2410C; --bs-link-color-rgb: 194, 65, 12;
  --bs-link-hover-color: #A5370A; --bs-link-hover-color-rgb: 165, 55, 10;
  --bs-border-color: rgba(13, 21, 48, .14);
  --bs-border-radius: .65rem; --bs-border-radius-sm: .5rem; --bs-border-radius-lg: .9rem; --bs-border-radius-xl: 1rem;
  --mt-surface: rgba(13, 21, 48, .035);
  --mt-muted: #5A6B85;
  --mt-faint: #5E6E88;
  --mt-ease: cubic-bezier(.22, 1, .36, 1);
  --mark-navy: #052554;
  --mark-teal: #FF6A00;
  font-family: 'Figtree', ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--bs-body-color);
}
/* :where() keeps these at the specificity of the site's own `a` rules, so
   .nav-link and .dropdown-item still win their hover, as they do on the site. */
:where(.llc-site) a { text-decoration: none; }
:where(.llc-site) a:hover { text-decoration: underline; }
/* The site's Bootstrap emits these because its links underline on hover; the
   CDN build does not, so they are restated here. */
.llc-site .nav-link:hover, .llc-site .nav-link:focus,
.llc-site .navbar-brand:hover, .llc-site .navbar-brand:focus,
.llc-site .dropdown-item:hover, .llc-site .dropdown-item:focus,
.llc-site .btn:hover { text-decoration: none; }
.llc-site h2 { line-height: 1.16; }

.llc-site .btn {
  --bs-btn-padding-x: 1.4rem; --bs-btn-padding-y: .75rem;
  --bs-btn-font-size: 1.0625rem; --bs-btn-font-weight: 700; --bs-btn-line-height: 1.65;
  --bs-btn-border-width: 2px; --bs-btn-border-radius: var(--bs-border-radius);
  --bs-btn-focus-box-shadow: 0 0 0 .2rem rgba(var(--bs-btn-focus-shadow-rgb), .5);
  min-height: 3rem; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; white-space: nowrap;
}
.llc-site .btn-sm {
  --bs-btn-padding-y: .25rem; --bs-btn-padding-x: .5rem;
  --bs-btn-font-size: .9296875rem; --bs-btn-border-radius: var(--bs-border-radius-sm);
  min-height: 2.75rem;
}
.llc-site .btn-outline-secondary {
  --bs-btn-color: #0D1530; --bs-btn-border-color: #0D1530;
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #0D1530; --bs-btn-hover-border-color: #0D1530;
  --bs-btn-focus-shadow-rgb: 13, 21, 48;
  --bs-btn-active-color: #fff; --bs-btn-active-bg: #0D1530; --bs-btn-active-border-color: #0D1530;
  --bs-btn-disabled-color: #0D1530; --bs-btn-disabled-border-color: #0D1530;
}
/* White text on the orange: #FF6A00 itself only clears 2.87:1, so the fill is
   the darker CTA orange (5.35:1), hover darker still. */
.llc-site .btn-orange {
  --bs-btn-color: #fff; --bs-btn-bg: #B34B00; --bs-btn-border-color: #B34B00;
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #A13A00; --bs-btn-hover-border-color: #A13A00;
  --bs-btn-active-color: #fff; --bs-btn-active-bg: #A13A00; --bs-btn-active-border-color: #A13A00;
  --bs-btn-focus-shadow-rgb: 179, 75, 0;
}

.llc-site .navbar {
  --bs-navbar-padding-y: .5rem;
  --bs-navbar-color: rgba(13, 21, 48, .72);
  --bs-navbar-hover-color: #0D1530;
  --bs-navbar-active-color: #0D1530;
  --bs-navbar-brand-padding-y: .280859375rem;
  --bs-navbar-brand-font-size: 1.328125rem;
  --bs-navbar-brand-color: #0D1530;
  --bs-navbar-brand-hover-color: #0D1530;
}
.llc-site .nav-link:focus-visible { outline: 0; box-shadow: 0 0 0 3px #B45309; }

.llc-site .dropdown-menu {
  --bs-dropdown-font-size: 1.0625rem;
  --bs-dropdown-color: var(--bs-body-color);
  --bs-dropdown-bg: var(--bs-body-bg);
  --bs-dropdown-border-color: rgba(13, 21, 48, .14);
  --bs-dropdown-border-radius: 1rem;
  --bs-dropdown-inner-border-radius: calc(1rem - 1px);
  --bs-dropdown-divider-bg: rgba(13, 21, 48, .14);
  --bs-dropdown-box-shadow: 0 30px 60px -30px rgba(13, 21, 48, .45);
  --bs-dropdown-link-color: var(--bs-body-color);
  --bs-dropdown-link-hover-color: var(--bs-body-color);
  --bs-dropdown-link-hover-bg: var(--bs-tertiary-bg);
  --bs-dropdown-link-active-color: #fff;
  --bs-dropdown-link-active-bg: #0D1530;
}
/* A pressed card goes navy; its own colour classes would leave navy on navy. */
.llc-site .dropdown-item.active .text-body-emphasis, .llc-site .dropdown-item:active .text-body-emphasis,
.llc-site .dropdown-item.active .text-muted-mt, .llc-site .dropdown-item:active .text-muted-mt,
.llc-site .dropdown-item.active .text-link, .llc-site .dropdown-item:active .text-link { color: #fff !important; }

/* ---- 2. The site's brand classes ------------------------------------------ */
.llc-site .fs-sm  { font-size: .92rem; }
.llc-site .fs-xs  { font-size: .84rem; }
.llc-site .fs-xxs { font-size: .76rem; }
.llc-site .lh-relaxed { line-height: 1.68; }
.llc-site .mw-44ch { max-width: 44ch; }
.llc-site .min-w-0 { min-width: 0; }
.llc-site .h-4 { height: 1rem; } .llc-site .w-4 { width: 1rem; }
.llc-site .h-5 { height: 1.25rem; } .llc-site .w-5 { width: 1.25rem; }
.llc-site .text-muted-mt { color: var(--mt-muted) !important; }
.llc-site .text-faint { color: var(--mt-faint) !important; }
.llc-site .text-faint a { text-decoration: underline; text-underline-offset: .15em; }
.llc-site .text-link { color: var(--bs-link-color) !important; }
.llc-site .on-navy { color: #D3D5DA !important; }
.llc-site .on-navy-soft { color: #BBBDC5 !important; }

.llc-site .eyebrow {
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .15em;
  color: var(--bs-link-color);
}
.llc-site .icon-tile {
  display: grid; place-items: center; flex: none;
  width: 2.25rem; height: 2.25rem; border-radius: .7rem;
  background: rgba(255, 106, 0, .12); border: 1px solid rgba(255, 106, 0, .32);
  color: var(--bs-link-color);
}
.llc-site .btn-icon { width: 2.75rem; height: 2.75rem; min-height: 2.75rem; padding: 0; flex: none; }

/* The lockup: the mark, then the name with a raised LLC. */
.llc-site .lockup { display: inline-flex; align-items: center; gap: .6rem; color: var(--bs-heading-color, #0D1530); }
.llc-site .lockup-mark { width: 2rem; height: 2rem; flex: none; }
.llc-site .lockup-name { font-size: 1.15rem; font-weight: 700; letter-spacing: -.035em; line-height: 1; }
.llc-site .lockup-llc { font-size: .62em; font-weight: 700; color: var(--bs-link-color); vertical-align: .42em; letter-spacing: .02em; }
.llc-site .lockup-lg { gap: .7rem; }
.llc-site .lockup-lg .lockup-mark { width: 2.4rem; height: 2.4rem; }
.llc-site .lockup-lg .lockup-name { font-size: 1.35rem; }

/* ---- Header --------------------------------------------------------------- */
/* Solid white from the first pixel. The hairline is kept: the site starts it
   transparent and its script draws a shadow once you scroll, and this host
   has neither the script nor the white page under it. */
.llc-site-header { background: #fff; }

/* Full-bleed, so square, its content in a .container lined up with the logo. */
.llc-site .mega-menu {
  --bs-dropdown-spacer: 0;
  --bs-dropdown-border-radius: 0;
  --bs-dropdown-inner-border-radius: 0;
  border-width: 1px 0;
  border-radius: 0;
  padding: 1.25rem 0;
}
/* 16px a side, 12px from 1400 up — the site's measured fit for the row. */
.llc-site .navbar .navbar-nav .nav-link.nav-link-pad { padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 1400px) {
  .llc-site .navbar .navbar-nav .nav-link.nav-link-pad { padding-left: .75rem; padding-right: .75rem; }
}

/* One height per row of buttons: 44px in the header. */
.llc-site .site-actions > .btn,
.llc-site .site-actions > .dropdown > .btn { min-height: 2.75rem; height: 2.75rem; padding-top: 0; padding-bottom: 0; }
.llc-site .site-actions > .btn-orange { padding-inline: 1.1rem; }
.llc-site .site-actions .btn svg { flex: none; }
/* Icon-only through the lg band: square, like the hamburger. */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .llc-site .site-actions .llc-icon-lg { min-width: 2.75rem; }
}
/* A long first name must not widen the row past the container. */
.llc-site .llc-account-name { max-width: 8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.llc-site .site-actions .dropdown-menu { --bs-dropdown-font-size: .95rem; min-width: 12rem; }
.llc-site .site-actions .dropdown-item { padding: .45rem .9rem; }

/* ---- Phone menu: the desktop menu, the header unfolding over the screen ---- */
.llc-site .mnav.offcanvas-top { height: 100vh; height: 100dvh; max-height: none; border-bottom: 0; }
.llc-site .mnav-foot { padding-bottom: env(safe-area-inset-bottom); }
.llc-site .mnav-foot .btn { min-height: 3rem; height: 3rem; padding-top: 0; padding-bottom: 0;
                            display: inline-flex; align-items: center; justify-content: center; }
.llc-site .mnav-item + .mnav-item { border-top: 1px solid var(--bs-border-color); }
.llc-site .mnav-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%; min-height: 3.5rem; padding: .75rem 0;
  background: none; border: 0; text-align: left; text-decoration: none;
  font-size: 1.125rem; font-weight: 600; letter-spacing: -.01em;
  color: var(--bs-emphasis-color);
}
.llc-site .mnav-row:hover { color: var(--bs-emphasis-color); text-decoration: none; }
.llc-site .mnav-chev { flex: none; color: var(--bs-secondary-color); transition: transform .25s var(--mt-ease); }
.llc-site .mnav-row:not(.collapsed) .mnav-chev { transform: rotate(180deg); }
.llc-site .mnav-panel { padding-bottom: 1rem; }
.llc-site .mnav-card { color: inherit; transition: background-color .15s var(--mt-ease); }
.llc-site .mnav-card:hover,
.llc-site .mnav-card:focus-visible { background: var(--mt-surface); color: inherit; }
@media (prefers-reduced-motion: reduce) {
  .llc-site .mnav-chev { transition: none; }
}

/* ---- Footer: the call-to-action navy, the orange rule as its edge ---------- */
.llc-site.site-footer {
  background: #0D1530;
  color: #D3D5DA;
  border-top: 3px solid #FF6A00;
  margin-top: auto;
  --mark-navy: #ffffff;
  --mark-teal: #FF6A00;
}
.llc-site.site-footer h2 { color: #fff; }
/* :not(.btn) — a footer link rule that also matched the buttons once made
   "Get a Free Quote" 1.53:1 on the site. */
.llc-site.site-footer a:not(.btn) { color: #D3D5DA; }
.llc-site.site-footer a:not(.btn):hover { color: #fff; }
.llc-site.site-footer .eyebrow { color: #FF6A00; }
.llc-site.site-footer .lockup { color: #fff; }
.llc-site.site-footer .lockup-llc { color: #FF6A00; }
.llc-site.site-footer .btn-outline-secondary { color: #fff; border-color: rgba(255, 255, 255, .32); }
.llc-site.site-footer .btn-outline-secondary:hover { border-color: #FF6A00; color: #FF6A00; background: transparent; }
/* Every rule down here sits on a plain wrapper, never a .row (whose gutters
   would make it 24px wider than the others). */
.llc-site .footer-rule { border-top: 1px solid rgba(255, 255, 255, .16); }
.llc-site .footer-rule a:not(.btn) { text-decoration: underline; text-underline-offset: .15em; }
