/* efex-overrides-staging.css
   STAGING copy of efex-overrides.css, for efex.staging.webqem.net only.
   Linked from the staging Mura templates after efex-motion.css; the live
   www.efex.com.au templates link efex-overrides.css instead.
   Workflow: make and test changes here on staging, then copy the tested
   rules into efex-overrides.css for the live site. */

/* 1. Homepage call-to-action row (#home-ctas): its gutter is wider than the
      container padding between 992 and 1199px, which made the page scroll
      sideways by 12px. Match the gutter to the padding at those widths. */
@media (min-width: 992px) and (max-width: 1199.98px) {
  #home-ctas { --bs-gutter-x: 1.5rem; }
}

/* 2. Hero image wrapper with a negative right margin (Page not found template):
      pushed the page 52px wider than the screen at 1024px and 2px at 1280px. */
@media (max-width: 1439.98px) {
  #hero .w-md-45.me-n7 { margin-right: 0 !important; max-width: 100%; }
}
/* ===== 6 Nov 2026: fixes from the full page check (176 pages, desktop and phone) ===== */

/* 3. "More about ..." page links (sub-nav pills on solution and Why efex pages):
      navy pills. Microsite style: outline pills, current page in green. */
ul.sub-nav-menu a.btn.btn-sm {
  background: transparent !important;
  border: 1px solid var(--efx-border) !important;
  color: var(--efx-fg) !important;
  border-radius: 999px;
}
ul.sub-nav-menu a.btn.btn-sm:hover,
ul.sub-nav-menu a.btn.btn-sm:focus-visible {
  border-color: var(--efx-green) !important;
  color: var(--efx-green) !important;
}
ul.sub-nav-menu a.btn.btn-sm.active {
  background: var(--efx-green) !important;
  border-color: var(--efx-green) !important;
  color: var(--efx-bg) !important;
}
ul.sub-nav-menu a.btn.btn-sm svg { color: inherit; }

/* 4. Tabbed sections (Tech for SMBs, Tech for enterprise, Why efex):
      navy tab labels and icons, white selected tab, unreadable text in the
      green panel. */
ul.nav-tabs { border-color: var(--efx-border) !important; }
ul.nav-tabs .nav-link {
  color: var(--efx-muted) !important;
  background: transparent !important;
  border-color: var(--efx-border) !important;
}
ul.nav-tabs .nav-link :is(i, svg) { color: var(--efx-muted) !important; }
ul.nav-tabs .nav-link:hover,
ul.nav-tabs .nav-link.active { color: var(--efx-fg) !important; }
ul.nav-tabs .nav-link.active :is(i, svg),
ul.nav-tabs .nav-link:hover :is(i, svg) { color: var(--efx-green) !important; }
.tab-content .bg-primary.rounded,
[id^="collapse-"] .bg-primary.rounded,
.tab-content .bg-primary.rounded :is(h3, p, span, li) {
  color: var(--efx-bg) !important;
}

/* 5. Testimonial carousel dots (homepage, Why efex): navy current dot. */
.carousel .carousel-indicators [data-bs-target] { background-color: rgba(255, 255, 255, .35) !important; }
.carousel .carousel-indicators [data-bs-target].active { background-color: var(--efx-green) !important; }
#testimonials .carousel-indicators button { border-color: rgba(255, 255, 255, .35) !important; }
#testimonials .carousel-indicators button.active { background: var(--efx-green) !important; border-color: var(--efx-green) !important; }

/* 6. Solutions landing cards: a different coloured edge per product
      (navy, yellow, light blue, orange). One border colour, as on the microsite. */
#soln-cards .card,
#soln-cards .card[class*="soln-"] {
  border: 1px solid var(--efx-border) !important;
}

/* 7. Navy badges (e.g. plan names in the Comms Mobile price table). */
main .badge.bg-secondary {
  background: transparent !important;
  border: 1px solid var(--efx-green);
  color: var(--efx-green) !important;
}

/* 8. Service links on Why efex ("Advice", "Account management", ...): navy. */
main h3 a.stretched-link,
main h4 a.stretched-link { color: var(--efx-fg) !important; }
main h3 a.stretched-link:hover,
main h4 a.stretched-link:hover { color: var(--efx-green) !important; }

/* 9. Quote boxes in news articles (efex-quote-block): white box, name
      invisible. Dark card with a green edge. */
figure.efex-quote-block {
  background: var(--efx-card) !important;
  border-color: var(--efx-border) !important;
  border-left: 2px solid var(--efx-green) !important;
}
figure.efex-quote-block .quote-image { background: transparent !important; }
figure.efex-quote-block :is(p, blockquote, figcaption, sub, strong, span) { color: var(--efx-fg) !important; }
main blockquote figcaption,
main figure.quotation figcaption { color: var(--efx-muted) !important; }

/* 10. Colours typed into page and article text (white highlights, black or
       grey text from old Word copy). The page colours take over. */
main .mura-region-local :is(span, font, b, strong, i, em, u, p, li, a)[style*="background"] {
  background: transparent !important;
}
main .mura-region-local :is(span, font, b, strong, i, em, u, p, li)[style*="color"],
main .mura-region-local font[color] {
  color: inherit !important;
}
main .mura-region-local p[style*="color"] { color: var(--efx-muted) !important; }
main .mura-region-local div[style*="border"] { border-color: var(--efx-border) !important; }

/* 10b. Phone tabbed sections show as accordions: black headings. */
.card-header.bg-white { background: transparent !important; }
[id^="card-head-"] a, [id^="card-head-"] a :is(span, i, svg) { color: var(--efx-fg) !important; }

/* 10c. Sideways scrolling on phones (several pages already scroll sideways on
        the current site): rows nested inside rows in page content, long
        links, the History timeline. Keep page content inside the screen. */
@media (max-width: 767.98px) {
  main .mura-region-local .row.g-6 { --bs-gutter-x: 1.5rem; }
}
main .mura-region-local a { overflow-wrap: anywhere; }
main { overflow-x: clip; }

/* 11. Contact us form: "(optional)" too faint. */
.cf-opt { color: var(--efx-muted) !important; }

/* 12. Report download form fields (ASD summary page): navy field colour. */
.efx-grid input, .efx-grid select, .efx-grid textarea { background-color: var(--efx-input) !important; }

/* 13. Mobile menu (efex.com.au, 30 Nov 2026): stop tapped sections sliding off screen, and make the open menu fill the screen below the header. !important because this file loads before efex-site.css. */
@media (max-width: 1100px) {
  .efex-ui .ex-nav li:hover > .ex-nav-menu,
  .efex-ui .ex-nav li:focus-within > .ex-nav-menu { transform: none !important; }
  .efex-ui .ex-nav { max-height: calc(100dvh - 64px) !important; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
}
