/*
 * chrome-v9b.css - site-wide header + footer "Home v9b" for build.3by400.com (STAGING)
 * YOOtheme Pro 5 / Joomla 5, template style #24. Successor of chrome-v8.css (which stays on disk, no longer loaded).
 *
 * Loaded on EVERY page two ways (same URL, one download):
 *  - <link rel="stylesheet" href="/templates/yootheme/css/chrome-v9b.css?v=N"> at the start of module
 *    "Header Contact Button (chrome-v8)" (#392, position header, all pages; page HTML is no-store), and
 *  - "/* chrome-v9b:import *\/ @import" as the first line of templates/yootheme/css/custom.css.
 *
 * Cascade: theme.24.css loads before this file; custom.css rules come after the @import, so rules that
 * must beat custom.css use an "html body" prefix (same convention as chrome-v8.css).
 *
 * Markup hooks (written by deploy-chrome-v9b.php):
 *  - desktop header (YOOtheme "horizontal-right"): logo | mainmenu (dropdowns unchanged) | module #392:
 *      a.tb4-nav-login (divider + person icon + "Client login") + a.tb4-btn-contact
 *  - mobile header (YOOtheme .tm-header-mobile, < 960px): logo | module #393:
 *      .tb4-mhdr (a.tb4-mlogin person icon + button.nav-toggle) + .tb4-mnav panel + .tb4-mnav-backdrop + JS
 *      (html.menu-open + aria-expanded). YOOtheme's own mobile toggle and #tm-dialog-mobile are hidden while
 *      the custom toggle is on the page (:has), so unpublishing #393 brings YOOtheme's off-canvas back.
 *  - footer builder layout: section .tb4-footer > html element <div class="tb4-foot tb4-foot-v9b">
 * Colors: green #3DB54A, green-dark #2f8f3a, lime #9FCC45, yellow #D7DF28, ink #231F20.
 */
@font-face { font-family: "Lato"; src: url("/images/home-v4/fonts/Lato-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Lato"; src: url("/images/home-v4/fonts/Lato-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }

.tm-header, .tm-header-mobile, footer .tb4-foot, .tb4-footer, .tb4-mnav {
  --tb4-green: #3DB54A;
  --tb4-green-dark: #2f8f3a;
  --tb4-lime: #9FCC45;
  --tb4-yellow: #D7DF28;
  --tb4-ink: #231F20;
  --tb4-ink-soft: #3a3637;
  --tb4-muted: #5c5856;
  --tb4-icon: #8a8582;
  --tb4-line: #e8e8e8;
  --tb4-rule: #e1dfdc;
  --tb4-sans: "Lato", "Helvetica Neue", Arial, sans-serif;
}

/* =====================================================================
 * HEADER - shared surface (unchanged from chrome-v8)
 * ===================================================================== */
html body .tm-header,
html body .tm-header-mobile { background: #fff !important; border: 0 !important; box-shadow: none !important; }
html body .tm-header .uk-navbar-container,
html body .tm-header-mobile .uk-navbar-container {
  background: #fff !important;
  border-bottom: 1px solid var(--tb4-line) !important;
  box-shadow: none !important;
}
html body .tm-header .uk-navbar-container.uk-navbar-sticky { box-shadow: 0 1px 0 var(--tb4-line) !important; }

/* overrides of obsolete Warp-era rules that may still be compiled into theme.24.css */
html body .tm-header .tm-headerbar-top { background: #fff !important; }
@media (min-width: 960px) {
  html body .tm-header .uk-navbar-container,
  html body .tm-header .uk-navbar-container .uk-navbar-nav,
  html body .tm-header .uk-navbar-container .uk-navbar-nav > li > a,
  html body .tm-header .uk-navbar-container .uk-navbar-item { height: auto !important; min-height: 80px !important; }
  html body .tm-header .uk-navbar-container .uk-navbar-right { height: auto !important; justify-content: flex-end !important; margin-left: auto !important; }
}
html body .tm-page .tm-header .uk-navbar .uk-navbar-nav > li > a::before,
html body .tm-page .tm-header .uk-navbar .uk-navbar-nav > li > a::after,
html body .tm-page .tm-header .uk-navbar .uk-navbar-nav > li::before,
html body .tm-page .tm-header .uk-navbar .uk-navbar-nav > li::after { content: none !important; background: none !important; display: none !important; }
html body .tm-header .uk-navbar-item:has(> form.uk-search-navbar) { display: none !important; }

/* =====================================================================
 * HEADER - desktop (>= 960px, YOOtheme .tm-header uk-visible@m)
 * logo | Work Services About Contact | divider | Client login | [Contact]
 * ===================================================================== */
html body .tm-header .uk-logo { display: flex; align-items: center; min-height: 80px; padding-left: 0; }
html body .tm-header .uk-logo img { width: 200px !important; max-width: 200px !important; height: auto !important; }

html body .tm-header .uk-navbar-nav { gap: 0; }
html body .tm-header .uk-navbar-right { gap: 0; }
html body .tm-header .uk-navbar-nav > li > a {
  min-height: 80px;
  padding: 0 11px !important;
  font-family: var(--tb4-sans) !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: var(--tb4-ink) !important;
}
html body .tm-header .uk-navbar-nav > li > a:hover,
html body .tm-header .uk-navbar-nav > li > a:focus-visible,
html body .tm-header .uk-navbar-nav > li.uk-open > a,
html body .tm-header .uk-navbar-nav > li.uk-active > a { color: var(--tb4-green) !important; }
/* the logo links home: never show the Home item (menu item 21, menu_show=0 since chrome-v8) */
html body .tm-header .uk-navbar-nav > li.item-21,
html body .tm-header-mobile .uk-nav > li.item-21,
html body #tm-dialog-mobile .uk-nav > li.item-21 { display: none !important; }
/* visual order Work, Services, About, Contact (DOM order is Services, Work, About, Contact) */
html body .tm-header .uk-navbar-nav > li { order: 5; }
html body .tm-header .uk-navbar-nav > li.item-38 { order: 1; }
html body .tm-header .uk-navbar-nav > li.item-79 { order: 2; }
html body .tm-header .uk-navbar-nav > li.item-42 { order: 3; }
html body .tm-header .uk-navbar-nav > li.item-64 { order: 4; }

/* dropdowns (existing staging menu, unchanged) */
html body .tm-header .uk-navbar-dropdown {
  background: #fff !important;
  color: var(--tb4-ink) !important;
  border: 1px solid var(--tb4-line);
  border-top: 3px solid var(--tb4-green);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 12px 28px rgba(35, 31, 32, 0.10);
  padding: 16px 20px;
  --uk-inverse: dark;
}
html body .tm-header .uk-navbar-dropdown-nav > li > a,
html body .tm-header .uk-navbar-dropdown-nav .uk-nav-sub a {
  font-family: var(--tb4-sans) !important;
  font-size: 15px; font-weight: 400;
  text-transform: none !important; letter-spacing: 0;
  color: var(--tb4-ink-soft) !important;
  padding: 5px 0;
}
html body .tm-header .uk-navbar-dropdown-nav > li > a:hover,
html body .tm-header .uk-navbar-dropdown-nav .uk-nav-sub a:hover,
html body .tm-header .uk-navbar-dropdown-nav > li.uk-active > a { color: var(--tb4-green) !important; }
html body .tm-header .uk-navbar-dropdown-nav > li.uk-nav-header {
  font-family: var(--tb4-sans) !important;
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--tb4-muted) !important; padding: 4px 0 6px;
}

/* module #392: divider + Client login + green Contact button */
html body .tm-header .uk-navbar-item:has(.tb4-btn-contact) { padding-left: 0; padding-right: 0; min-height: 80px; }
html body .tm-header :is(.custom, .uk-panel):has(> .tb4-btn-contact) { display: flex; align-items: center; margin: 0; }
html body .tm-header a.tb4-nav-login {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 0 28px 0 28px;
  padding: 6px 2px 6px 20px;
  border-left: 1px solid var(--tb4-line);
  font-family: var(--tb4-sans) !important;
  font-size: 13.5px !important; font-weight: 700; line-height: 16px;
  letter-spacing: 0; text-transform: none;
  color: var(--tb4-muted) !important;
  text-decoration: none !important;
  white-space: nowrap;
  transition: color .15s ease-in-out;
}
html body .tm-header a.tb4-nav-login .tb4-ic { flex: none; color: var(--tb4-icon); transition: color .15s ease-in-out; }
html body .tm-header a.tb4-nav-login:hover,
html body .tm-header a.tb4-nav-login:focus-visible,
html body .tm-header a.tb4-nav-login:hover .tb4-ic,
html body .tm-header a.tb4-nav-login:focus-visible .tb4-ic { color: var(--tb4-green-dark) !important; }

/* green Contact button (desktop) */
html body a.tb4-btn-contact {
  display: inline-flex; align-items: center; justify-content: center;
  box-sizing: border-box; height: 40px; padding: 0 20px;
  border: 0; border-radius: 6px;
  background: var(--tb4-green, #3DB54A) !important;
  color: #fff !important;
  font-family: var(--tb4-sans, Lato, Arial, sans-serif) !important;
  font-size: 14px !important; font-weight: 700 !important; line-height: 1 !important;
  letter-spacing: 0 !important; text-transform: none !important; text-decoration: none !important;
  white-space: nowrap;
  transition: background-color .15s ease-in-out;
}
html body a.tb4-btn-contact:hover,
html body a.tb4-btn-contact:focus-visible { background: var(--tb4-green-dark, #2f8f3a) !important; color: #fff !important; }
html body a.tb4-btn-contact:focus-visible,
html body a.tb4-nav-login:focus-visible,
html body .tb4-mhdr > :focus-visible,
html body .tb4-mnav a:focus-visible { outline: 2px solid var(--tb4-ink, #231F20); outline-offset: 2px; }

/* =====================================================================
 * HEADER - mobile (< 960px, YOOtheme .tm-header-mobile uk-hidden@m)
 * logo | person icon | hamburger  (44px tap targets)
 * ===================================================================== */
html body .tm-header-mobile .uk-container { padding-left: 20px; padding-right: 16px; }
html body .tm-header-mobile .uk-navbar-container .uk-navbar,
html body .tm-header-mobile .uk-navbar-item,
html body .tm-header-mobile .uk-navbar-toggle { min-height: 72px; }
html body .tm-header-mobile .uk-logo { padding-left: 0; }
html body .tm-header-mobile .uk-logo img { width: 150px !important; max-width: 150px !important; height: auto !important; }
html body .tm-header-mobile .uk-navbar-item:has(.tb4-mhdr) { padding: 0; }
html body .tm-header-mobile :is(.custom, .uk-panel):has(> .tb4-mhdr) { margin: 0; }
/* custom toggle replaces YOOtheme's off-canvas toggle + dialog (only while it is on the page) */
html body .tm-header-mobile:has(.tb4-nav-toggle) a.uk-navbar-toggle[href="#tm-dialog-mobile"],
html body:has(.tb4-nav-toggle) #tm-dialog-mobile { display: none !important; }

html body .tb4-mhdr { display: flex; align-items: center; gap: 4px; }
html body .tb4-mhdr > a.tb4-mlogin,
html body .tb4-mhdr > button.nav-toggle {
  display: grid; place-items: center;
  width: 44px; height: 44px; min-width: 44px;
  margin: 0; padding: 0;
  border: 0; border-radius: 50%;
  background: transparent;
  color: var(--tb4-ink-soft, #3a3637) !important;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
html body .tb4-mhdr > button.nav-toggle { color: var(--tb4-ink, #231F20) !important; }
html body .tb4-mhdr > a.tb4-mlogin:hover,
html body .tb4-mhdr > a.tb4-mlogin:focus-visible { color: var(--tb4-green-dark, #2f8f3a) !important; }
html body .tb4-mhdr .tb4-ic-close,
html.menu-open body .tb4-mhdr .tb4-ic-open { display: none; }
html.menu-open body .tb4-mhdr .tb4-ic-close { display: block; }

/* open menu panel (fixed under the bar; JS sets top + max-height) + dimmed page */
html body .tb4-mnav,
html body .tb4-mnav-backdrop { display: none; }
@media (max-width: 959px) {
  html.menu-open body { overflow: hidden; }
  html.menu-open body .tm-header-mobile { position: relative; z-index: 1000; }
  html.menu-open body .tb4-mnav-backdrop {
    display: block; position: fixed; inset: 0; z-index: -1;
    background: rgba(35, 31, 32, .35);
  }
  html.menu-open body .tb4-mnav {
    display: block; position: fixed; left: 0; right: 0; top: 72px; z-index: 2;
    max-height: calc(100vh - 72px); overflow-y: auto; overscroll-behavior: contain;
    box-sizing: border-box;
    padding: 8px 20px 24px;
    background: #fff;
    border-top: 1px solid var(--tb4-line);
    box-shadow: 0 24px 40px -18px rgba(35, 31, 32, .35);
    font-family: var(--tb4-sans) !important;
    text-align: left;
  }
}
html body .tb4-mnav nav { display: flex; flex-direction: column; }
html body .tb4-mnav nav a {
  display: flex; align-items: center; min-height: 56px;
  border-bottom: 1px solid #efefef;
  font-family: var(--tb4-sans) !important;
  font-size: 19px !important; font-weight: 700; line-height: 1.2;
  letter-spacing: 0; text-transform: none;
  color: var(--tb4-ink) !important; text-decoration: none !important;
}
html body .tb4-mnav nav a:hover { color: var(--tb4-green) !important; }
html body .tb4-mnav-util { display: flex; flex-direction: column; padding: 10px 0 16px; }
html body .tb4-mnav-util a {
  display: flex; align-items: center; gap: 10px; min-height: 48px;
  font-family: var(--tb4-sans) !important;
  font-size: 16px !important; font-weight: 700;
  color: var(--tb4-muted) !important; text-decoration: none !important;
}
html body .tb4-mnav-util a:hover { color: var(--tb4-green-dark) !important; }
html body .tb4-mnav-util .tb4-ic { flex: none; color: var(--tb4-green); }
html body .tb4-mnav a.tb4-mnav-cta {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 52px; box-sizing: border-box;
  border-radius: 6px;
  background: var(--tb4-green) !important; color: #fff !important;
  font-family: var(--tb4-sans) !important;
  font-size: 16px !important; font-weight: 700; line-height: 1;
  text-decoration: none !important;
}
html body .tb4-mnav a.tb4-mnav-cta:hover { background: var(--tb4-green-dark) !important; }
html body .tb4-mnav a.tb4-mnav-phone {
  display: block; margin-top: 14px; text-align: center;
  font-family: var(--tb4-sans) !important;
  font-size: 16px !important; font-weight: 700;
  color: var(--tb4-green-dark) !important; text-decoration: none !important;
}

/* =====================================================================
 * FOOTER (YOOtheme footer builder layout -> section.tb4-footer)
 * brand (logo, blurb, social) | links + utility row | copyright
 * ===================================================================== */
html body footer > .uk-section.tb4-footer,
html body footer > .uk-section:has(.tb4-foot) {
  background: #F4F4F2 !important;
  border-top: 6px solid var(--tb4-yellow, #D7DF28) !important;
  padding-top: 40px !important;
  padding-bottom: 28px !important;
  color: var(--tb4-ink-soft, #3a3637);
}
html body footer .tb4-foot {
  font-family: var(--tb4-sans) !important;
  font-size: 14px; line-height: 1.5;
  color: var(--tb4-ink-soft);
  text-align: left;
}
html body footer .tb4-foot a { color: var(--tb4-ink); text-decoration: none; }
html body footer .tb4-foot a:hover { color: var(--tb4-green); text-decoration: none; }
html body footer .tb4-foot p { margin: 0; font-size: inherit; line-height: inherit; }

html body footer .tb4-foot-main {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.1fr;
  align-items: start;
  gap: 24px;
}
html body footer .tb4-foot-logo { display: inline-block; }
html body footer .tb4-foot-logo img {
  display: block;
  width: 180px !important; max-width: 180px !important; height: auto !important;
  margin: 0 0 12px;
}
html body footer .tb4-foot .tb4-foot-blurb { max-width: 30ch; font-size: 13.5px; line-height: 1.5; color: var(--tb4-muted); }
html body footer .tb4-foot-social { display: flex; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
html body footer .tb4-foot-social li { margin: 0; padding: 0; }
html body footer .tb4-foot-social li::before { content: none; }
html body footer .tb4-foot .tb4-foot-social a {
  display: grid; place-items: center;
  width: 36px; height: 36px; box-sizing: border-box;
  border: 1px solid var(--tb4-rule); border-radius: 50%;
  background: #fff; color: #5c5856;
  transition: color .15s, border-color .15s, background-color .15s;
}
html body footer .tb4-foot .tb4-foot-social a:hover,
html body footer .tb4-foot .tb4-foot-social a:focus-visible { color: #fff; background: var(--tb4-green, #3DB54A); border-color: var(--tb4-green, #3DB54A); }
html body footer .tb4-foot .tb4-foot-social svg { display: block; }

html body footer .tb4-foot-links {
  display: flex; flex-wrap: wrap; justify-content: flex-start;
  gap: 10px 16px; align-self: center;
}
html body footer .tb4-foot-links > a { font-size: 14px; font-weight: 400; color: var(--tb4-ink); }
html body footer .tb4-foot-util {
  flex-basis: 100%;
  display: flex; flex-wrap: wrap; gap: 8px 16px;
  margin-top: 6px; padding-top: 12px;
  border-top: 1px solid var(--tb4-rule);
  font-size: 13.5px;
}
html body footer .tb4-foot .tb4-foot-util a { display: inline-flex; align-items: center; gap: 6px; color: var(--tb4-muted); }
html body footer .tb4-foot .tb4-foot-util a:hover { color: var(--tb4-green-dark); }
html body footer .tb4-foot .tb4-foot-copy { align-self: center; font-size: 12.5px; line-height: 1.5; color: var(--tb4-muted); text-align: right; }

html body footer .tb4-foot-legal { margin-top: 28px; padding-top: 16px; border-top: 1px solid #e2e1dc; }
html body footer .tb4-foot-legal-links {
  display: flex; flex-wrap: wrap; justify-content: center;
  margin: 0 0 10px; padding: 0; list-style: none;
  font-size: 12px; line-height: 1.6;
}
html body footer .tb4-foot-legal-links li { margin: 0; padding: 0; }
html body footer .tb4-foot-legal-links li + li::before { content: "|"; margin: 0 10px; color: #b9b6b1; }
html body footer .tb4-foot-legal-links a { color: var(--tb4-muted); }
html body footer .tb4-foot .tb4-foot-disclaimer { max-width: 900px; margin: 0 auto; font-size: 11px; line-height: 1.5; color: #8a8683; text-align: center; }

@media (max-width: 959px) {
  html body footer > .uk-section.tb4-footer,
  html body footer > .uk-section:has(.tb4-foot) { padding-top: 32px !important; padding-bottom: 24px !important; }
  html body footer .tb4-foot-main { grid-template-columns: 1fr; gap: 20px; }
  html body footer .tb4-foot-social { margin-top: 14px; }
  html body footer .tb4-foot-links { gap: 10px 16px; }
  html body footer .tb4-foot-util { width: 100%; }
  html body footer .tb4-foot .tb4-foot-copy { text-align: left; font-size: 13px; }
  html body footer .tb4-foot-legal-links { justify-content: flex-start; gap: 4px 18px; }
  html body footer .tb4-foot-legal-links li + li::before { content: none; }
  html body footer .tb4-foot .tb4-foot-disclaimer { text-align: left; margin: 0; }
}

/* =====================================================================
 * HOMEPAGE HERO GUARD (module 391, .tb4-home-v4 only)
 * home-v9-full.css fix: one column on phones. Staging's home-v8.css already stacks the hero
 * (checked 2026-09-25 at 390px), so this is a no-op today; it only keeps a later desktop
 * grid rule from bringing the two-column hero back on phones.
 * ===================================================================== */
@media (max-width: 860px) {
  html body .tb4-home-v4 .hero { grid-template-columns: 1fr; }
}
