/* TMSA site-wide layout (css/tmsa-layout.css). Loaded on every page; version = file modification time.
   This file holds the container rules shared by every custom TMSA section, plus the site-wide header and footer band.
   Container (matches the theme footer): 40px side padding, 24px up to 600px, 1500px maximum width, centred.
   Created 2026-11-16. The home page keeps its own rules in css/tmsa-home.css. */


/* ==== HEADER ==== */

/* Side padding of the header rows = the page content edges. The theme forces 1rem with !important up to 900px, so the two rules
   below need !important to beat it; above 900px the theme's own 2.5rem (40px) already applies. */
@media(max-width:600px){.l-header .l-subheader{padding-left:1.5rem!important;padding-right:1.5rem!important}}
@media(min-width:601px) and (max-width:900px){.l-header .l-subheader{padding-left:2.5rem!important;padding-right:2.5rem!important}}

/* Up to 780px the header is too narrow for logo, Client Login, menu, search and cart together: Client Login moves into the
   mobile menu (a menu item with the class tmsa-mobile-login). Up to 480px the logo is also smaller. */
@media(max-width:780px){
.l-header .tmsa-client-login-btn{display:none}
.l-header .l-subheader.at_middle .l-subheader-cell.at_left{flex:0 0 auto;width:auto}
.l-header .l-subheader.at_middle .l-subheader-cell.at_right{flex:1 1 auto;width:auto;justify-content:flex-end}
.l-header .w-nav.ush_menu_1,.l-header .w-search,.l-header .w-cart{flex:0 0 auto;width:auto}
/* !important on these two: the theme's header builder writes its 1.4rem element margins in a later, more specific rule. */
.l-header .ush_image_1{margin-right:0!important}
.l-header .w-nav.ush_menu_1,.l-header .w-search{margin-left:0!important}
}
@media(max-width:480px){
.l-header .ush_image_1,.l-header .ush_image_1 .w-image-h{width:110px}
.l-header .ush_image_1 img{width:110px;height:auto}
}
.w-nav .w-nav-list.level_1 > .tmsa-mobile-login{display:none}
@media(max-width:780px){.w-nav .w-nav-list.level_1 > .tmsa-mobile-login{display:block}}

/* Tablets (up to 899px, where the theme switches to its two-row header): the top bar must fit inside the content edges.
   Social icons are hidden (they were pushed off-screen and are in the footer), WhatsApp becomes a one-line button flush with the
   right edge, and the email address is hidden up to 780px to make room. */
@media(max-width:899px){
.l-header .l-subheader.at_top .l-subheader-cell.at_right{display:none}
.l-header .l-subheader.at_top .l-subheader-cell.at_left{flex:0 1 auto;width:auto;min-width:0}
.l-header .l-subheader.at_top .l-subheader-cell.at_center{flex:0 0 auto;width:auto;margin-left:auto;display:flex;justify-content:flex-end}
.l-header .l-subheader.at_top .ush_btn_2{display:inline-flex;align-items:center;gap:8px;padding:0 14px;height:30px;line-height:30px;font-size:13px;white-space:nowrap;width:auto;margin:0}
}
@media(max-width:780px){.l-header .l-subheader.at_top .ush_text_3{display:none}}


/* ==== FOOTER CALL TO ACTION BAND ==== */

/* Navy (as the stats band) so it separates from the blue client area above it; heading weight matches the other section
   headings; the button matches the site's main blue button. The button background is drawn on the theme's ::before, so its border is cleared there. */
.l-footer .l-section.color_primary{background:#1e293b}
.l-footer .w-actionbox h2{font-weight:800;font-size:30px;line-height:1.2}
.l-footer .w-actionbox .w-btn.us-btn-style_2{background:#0047AB;color:#fff;border:0;border-radius:8px;padding:14px 32px;font-size:16px;font-weight:700;line-height:1.2;box-shadow:none;text-transform:none;letter-spacing:normal;transition:none}
.l-footer .w-actionbox .w-btn.us-btn-style_2::before{border:0;background:transparent;box-shadow:none}
.l-footer .w-actionbox .w-btn.us-btn-style_2:hover{background:#003d99}


/* ==== SHARED CONTAINER FOR EVERY CUSTOM TMSA SECTION (tm-*, tmsa-*) ====
   One container for the whole site, matching the theme footer: side padding 40px (24px up to 600px), content 1500px wide at most, centred.
   --tm-edge is the padding each section needs on each side. --tm-pad is the one vertical padding used by every section.
   --tm-card-pad is the one inner padding used by every card. Page stylesheets (tmsa-home.css, tmsa-services.css) use these variables. */
:root{--tm-gutter:2.5rem;--tm-max:1500px;--tm-pad:40px;--tm-edge:max(var(--tm-gutter),calc((100% - var(--tm-max))/2));--tm-card-pad:24px}
@media(max-width:600px){:root{--tm-gutter:1.5rem}}

/* Header height under the fixed header. Impreza does not expose it as a CSS variable (checked 2026-11-16), so its three heights are fixed here:
   210px from 900px wide, 120px from 600px to 899px, 50px up to 599px. Hero and page intros add --tm-pad to this so content starts 40px below the header.
   Update these three values if the header is rebuilt. */
:root{--tm-header-h:210px}
@media(max-width:899px){:root{--tm-header-h:120px}}
@media(max-width:599px){:root{--tm-header-h:50px}}

/* Side padding for every full-width custom section. Page stylesheets set their own vertical padding. */
.tm-hero,.tm-domain-hero,.tm-pricing-inline,.tm-pillars,.tm-trust,.tm-testi-section,.tm-client-area,.tmsa-services,
.tmsa-sv-intro,.tmsa-sv-section,.tmsa-sv-enq,.tmsa-sv-cta{padding-left:var(--tm-edge);padding-right:var(--tm-edge)}

/* Logo strip ("Trusted by our clients"): the strip itself stays full width; its heading sits on the shared edge and its vertical padding is --tm-pad.
   body + !important: the strip carries its own inline style and a 1500px heading rule that load later. */
body .tmsa-marquee-section{padding-top:var(--tm-pad);padding-bottom:var(--tm-pad)}
body .tmsa-marquee-section h2{max-width:none!important;margin-left:0!important;margin-right:0!important;padding-left:var(--tm-edge);padding-right:var(--tm-edge)}

/* Footer lists: the Services page carries a leftover page-level WPBakery rule (".wpb_wrapper ul li {margin:0 0 0 -20px}") that pulled the footer's
   "Support & Resources" links 20px outside the container on that page only. Footer list items always start on the container edge. */
.l-footer .wpb_wrapper ul li{margin-left:0}

/* Footer button label: the theme writes ".us-btn-style_2{color:...!important}" in its own generated CSS (dark grey, unreadable on the blue button),
   so the label colour needs !important and a more specific selector. Added 2026-11-16 (the earlier footer-band rule only set the background). */
.l-footer .w-actionbox .w-btn.us-btn-style_2,.l-footer .w-actionbox .w-btn.us-btn-style_2:hover{color:#fff!important}
