/* Sydney Line Marking / Premier Workplace Solutions
   Header + Footer — Joomla 6 / Bootstrap 5 native build */

:root {
  --slm-yellow: #F5B800;
  --slm-yellow-hover: #E0A600;
  --slm-navy: #0F172A;
  /*--slm-black: #0B111A;*/
  --slm-black: #1f2427;
  /*--slm-slate: #1E293B;*/
  --slm-slate: #6c757d;

  --slm-font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --slm-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --slm-radius-sm: 4px;
  --slm-transition: 0.2s ease;
}

/* Hazard stripe accent */
.hazard-stripe-thin {
  background: repeating-linear-gradient(-45deg, var(--slm-yellow), var(--slm-yellow) 8px, var(--slm-navy) 8px, var(--slm-navy) 16px);
  height: 4px;
  width: 100%;
}

/* CTA buttons */
.btn-slm-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--slm-yellow);
  color: var(--slm-black);
  font-family: var(--slm-font-heading);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 20px;
  border-radius: var(--slm-radius-sm);
  border: 2px solid var(--slm-yellow);
  box-shadow: 0 3px 10px rgba(245, 184, 0, 0.35);
  transition: all var(--slm-transition);
  text-decoration: none;
}

.btn-slm-primary:hover {
  background-color: var(--slm-yellow-hover);
  border-color: var(--slm-yellow-hover);
  color: var(--slm-black);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(245, 184, 0, 0.5);
}

/* Top bar */
.top-bar {
  background-color: var(--slm-black);
  color: #CBD5E1;
  font-size: 12px;
  font-family: var(--slm-font-body);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.top-bar-item i {
  color: var(--slm-yellow);
}

.top-bar-link {
  color: #CBD5E1;
  text-decoration: none;
  transition: color var(--slm-transition);
}

.top-bar-link:hover {
  color: var(--slm-yellow);
  text-decoration: none;
}

/* Defeat a stale Bootstrap-2 rule in the old protostar template.css
   (".collapse { height: 0px; }") that otherwise clips this Bootstrap-5 navbar. */
#navbarContent {
  height: auto !important;
  overflow: visible !important;
}

/* Sticky header */
.site-header {
  --slm-header-cta-reserve: 14.5rem;
  position: sticky;
  top: 0;
  z-index: 1050;
  background-color: var(--slm-navy);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  border-bottom: 2px solid rgba(245, 184, 0, 0.4);
  padding: 10px 0;
  transition: all var(--slm-transition);
}

.site-header.scrolled {
  padding: 6px 0;
  background-color: rgba(15, 23, 42, 0.98);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
}

.site-header .header-container {
  max-width: 1440px;
}

.site-header .navbar-brand {
  padding: 0;
  margin-right: 0;
  z-index: 2;
}

.brand-logo-card {
  background-color: #FFFFFF;
  padding: 6px 14px;
  border-radius: var(--slm-radius-sm);
  display: inline-flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: all var(--slm-transition);
}

.navbar-brand:hover .brand-logo-card {
  box-shadow: 0 4px 14px rgba(245, 184, 0, 0.4);
  border-color: var(--slm-yellow);
}

.brand-logo-img {
  height: 44px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
  transition: all var(--slm-transition);
}

.site-header.scrolled .brand-logo-card {
  padding: 4px 10px;
}

.site-header.scrolled .brand-logo-img {
  height: 38px;
}

@media (min-width: 992px) {
  .site-header .navbar {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
  }

  .site-header .navbar-brand {
    flex: 0 0 auto;
  }

  .site-header #navbarContent {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    position: relative;
  }

  .site-header .navbar-nav {
    position: absolute;
    left: 0;
    right: var(--slm-header-cta-reserve);
    top: 50%;
    transform: translateY(-50%);
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin: 0 !important;
    white-space: nowrap;
    box-sizing: border-box;
    z-index: 1;
  }

  .site-header .header-action-wrap {
    position: relative;
    flex: 0 0 auto;
    margin-left: 0;
    z-index: 3;
  }
}

@media (max-width: 991px) {
  .site-header #navbarContent {
    background-color: var(--slm-black);
    padding: 16px;
    border-radius: var(--slm-radius-sm);
    margin-top: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .site-header .navbar-nav {
    margin-bottom: 12px !important;
    gap: 4px;
  }

  .site-header .header-action-wrap a {
    width: 100%;
    justify-content: center;
  }
}

.nav-link-custom {
  color: #F8FAFC;
  font-family: var(--slm-font-heading);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 12px;
  position: relative;
  display: inline-flex;
  align-items: center;
  transition: color var(--slm-transition);
  text-decoration: none;
}

.nav-link-custom.dropdown-toggle::after {
  display: none !important;
}

.nav-link-custom:focus,
.nav-link-custom:active {
  color: #F8FAFC;
}

.nav-link-custom:hover,
.nav-link-custom.active,
.nav-link-custom.active:focus,
.nav-link-custom.active:active {
  color: var(--slm-yellow);
}

.nav-link-custom::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 8px;
  right: 8px;
  height: 2px;
  background-color: var(--slm-yellow);
  transform: scaleX(0);
  transition: transform var(--slm-transition);
}

.nav-link-custom:hover::after,
.nav-link-custom.active::after {
  transform: scaleX(1);
}

.nav-chevron {
  font-size: 10px;
  transition: transform var(--slm-transition);
}

.dropdown-mega-wrap:hover .nav-chevron,
.dropdown-mega-wrap .show .nav-chevron {
  transform: rotate(180deg);
}

/* Mega menu dropdown */
.dropdown-mega-wrap {
  position: static;
}

@media (min-width: 992px) {
  .dropdown-mega-wrap {
    position: relative;
  }

  .dropdown-mega-wrap .mega-menu-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    width: 620px;
    max-width: 90vw;
    background-color: var(--slm-navy);
    border: 1px solid rgba(245, 184, 0, 0.45);
    border-radius: var(--slm-radius-sm);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s ease;
    display: block;
    pointer-events: none;
    z-index: 1100;
  }

  .dropdown-mega-wrap:hover .mega-menu-dropdown,
  .dropdown-mega-wrap .mega-menu-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
  }
}

@media (max-width: 991px) {
  .dropdown-mega-wrap .mega-menu-dropdown {
    background-color: rgba(11, 19, 43, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--slm-radius-sm);
    margin-top: 8px;
    margin-bottom: 8px;
  }

  .mega-menu-col:first-child {
    margin-bottom: 12px;
  }
}

.mega-menu-header {
  font-family: var(--slm-font-heading);
  font-size: 12.5px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 2px solid var(--slm-yellow);
  display: flex;
  align-items: center;
}

.mega-submenu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mega-submenu-link {
  display: flex;
  align-items: center;
  padding: 6px 8px;
  color: #CBD5E1;
  font-family: var(--slm-font-heading);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: all var(--slm-transition);
}

.mega-submenu-link:focus,
.mega-submenu-link:active {
  color: #CBD5E1;
}

.mega-submenu-link:hover {
  background-color: rgba(245, 184, 0, 0.12);
  color: var(--slm-yellow);
  transform: translateX(4px);
}

.mega-submenu-link i {
  font-size: 12px;
  width: 16px;
  text-align: center;
  color: var(--slm-yellow);
}

.btn-header-quote {
  padding: 10px 20px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px !important;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(245, 184, 0, 0.35);
}

.btn-header-quote:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(245, 184, 0, 0.5);
}

.btn-header-quote i {
  font-size: 15px;
  line-height: 1;
}

@media (min-width: 992px) and (max-width: 1399px) {
  .site-header {
    --slm-header-cta-reserve: 12.5rem;
  }

  .nav-link-custom {
    font-size: 13px;
    letter-spacing: 0.3px;
    padding: 6px 9px;
  }

  .btn-header-quote {
    padding: 8px 16px !important;
    font-size: 13px !important;
  }
}

/* ============ FOOTER ============ */
.site-footer {
  background-color: #070B11;
  color: #94A3B8;
  padding: 70px 0 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
  font-family: var(--slm-font-body);
}

.footer-logo-card {
  background-color: #FFFFFF;
  padding: 8px 16px;
  border-radius: var(--slm-radius-sm);
  display: inline-flex;
  align-items: center;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.footer-logo-img {
  height: 46px;
  width: auto;
  max-width: 250px;
  object-fit: contain;
  display: block;
}

.footer-brand-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.footer-tagline {
  color: var(--slm-yellow);
  font-family: var(--slm-font-heading);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 8px;
}

.footer-desc {
  color: #CBD5E1;
  font-size: 13.5px;
  line-height: 1.6;
  margin-top: 10px;
  margin-bottom: 16px;
}

.footer-cert-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #F1F5F9;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}

.footer-cert-badge i {
  color: var(--slm-yellow);
  font-size: 14px;
  flex-shrink: 0;
}

.footer-heading {
  color: #FFFFFF;
  font-family: var(--slm-font-heading);
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--slm-yellow);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 11px;
}

.footer-links a {
  color: #E2E8F0;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--slm-transition);
}

.footer-links a i {
  color: var(--slm-yellow);
  font-size: 11px;
}

.footer-links a:hover {
  color: var(--slm-yellow);
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  color: #F1F5F9;
}

.footer-contact-item i {
  color: var(--slm-yellow);
  font-size: 16px;
  margin-top: 3px;
}

.footer-contact-link {
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 700;
  display: inline-block;
  transition: color var(--slm-transition);
}

.footer-contact-link:hover {
  color: var(--slm-yellow);
}

.footer-contact-sub {
  color: #94A3B8;
  font-size: 12px;
}

.footer-bottom {
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: #94A3B8;
}


.footer-bottom > .mod-custom {
  width: 100%;
}


.footer-bottom a {
  color: #b3b3b3;
  text-decoration: none;
  transition: color var(--slm-transition);
}

.footer-bottom a:hover {
  color: var(--slm-yellow);
}

.footer-bottom a.back-to-top {
  color: var(--slm-yellow);
  font-weight: 700;
}

.footer-bottom a.back-to-top:hover {
  color: #FFFFFF;
}

/* Desktop nav must not paint over header CTA (wins over Bootstrap .navbar-collapse flex) */
@media (min-width: 992px) {
  header.site-header#mainHeader .navbar-expand-lg .navbar-collapse#navbarContent {
    display: flex !important;
    flex: 1 1 auto;
    min-width: 0;
    position: relative;
    justify-content: flex-end;
    align-items: center;
  }

  header.site-header#mainHeader .navbar-collapse#navbarContent > .navbar-nav {
    position: absolute !important;
    left: 0 !important;
    right: var(--slm-header-cta-reserve, 14.5rem) !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    justify-content: center !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  header.site-header#mainHeader .navbar-collapse#navbarContent > .header-action-wrap {
    position: relative !important;
    z-index: 4 !important;
    flex-shrink: 0;
  }
}

@media (min-width: 1400px) {
  .site-header {
    --slm-header-cta-reserve: 16.5rem;
  }
}
