/* Brand layer on top of the template — token usage rules: docs/brand-colors.md */

/* Secondary: content links */
p a:not(.btn),
li a:not(.btn):not(.nav-link):not(.dropdown-item),
.card-body a:not(.btn) {
  color: var(--secondary-600);
}
p a:not(.btn):hover,
li a:not(.btn):not(.nav-link):not(.dropdown-item):hover,
.card-body a:not(.btn):hover {
  color: var(--secondary-700);
}

/* Secondary: navigation and tab hover/active */
.navigation .nav-link:hover,
.navigation .nav-link.active,
.navigation .dropdown-item:hover,
.nav-tabs .nav-link:hover,
.nav-pills .nav-link:not(.active):hover,
li.nav-item > a.nav-link:hover {
  color: var(--secondary-600) !important;
}

/* Secondary: button hover (Primary core is P900, so hover moves to blue instead of darker) */
.btn-accent:hover,
.btn-accent:focus,
.btn-3:hover,
.btn-outline-3:hover,
.btn-outline-accent:hover,
.btn-outline-success:hover,
.navigation .btn-solid:hover {
  background-color: var(--secondary-600) !important;
  border-color: var(--secondary-600) !important;
  color: #fff !important;
}

/* Secondary: icons */
i.accent,
.icon.accent,
.pe.accent {
  color: var(--secondary-600) !important;
}

/* Accent: small highlights only */
p.small.accent,
.badge-accent {
  color: var(--accent-500) !important;
}
.counters.gradient .counter {
  color: var(--accent-300);
}

/* Mobile: tame oversized page titles and justified text */
@media (max-width: 575.98px) {
  header h1.display-4 {
    font-size: 2.25rem !important;
    line-height: 1.2;
  }
  .text-justify {
    text-align: left !important;
  }
}

/* Navbar logo: ~20% larger than the theme's 180px cap */
.navigation .navbar-brand .logo {
  max-width: 220px;
}
@media (max-width: 575.98px) {
  .navigation .navbar-brand .logo {
    max-width: 200px;
  }
}

/* Mobile/tablet (hamburger menu): center the logo in the navbar */
@media (max-width: 991.98px) {
  .navigation .navbar-brand {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
  }
}

/* Mobile menu: slide the panel over the page instead of pushing the page right */
@media (max-width: 991.98px) {
  .navigation.navbar-expanded.sidebar-left ~ main,
  .navigation.navbar-expanded.sidebar-left .navbar-brand {
    -webkit-transform: none;
            transform: none;
  }
  .navigation.navbar-expanded.sidebar-left .navbar-brand {
    -webkit-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
  }
  /* Dimmed backdrop behind the panel; tapping it closes the menu (site.js) */
  .navigation::before {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    background-color: rgba(5, 39, 89, 0.45);
    opacity: 0;
    visibility: hidden;
    -webkit-transition: opacity .3s ease, visibility .3s ease;
    transition: opacity .3s ease, visibility .3s ease;
  }
  .navigation.navbar-expanded::before {
    opacity: 1;
    visibility: visible;
  }
  .navigation.navbar-expanded .navbar-toggler .icon-bar {
    background-color: #ffffff;
  }
}

/* Hero Mastercard banner: keep it clear of the bottom wave on stacked layouts */
@media (max-width: 991.98px) {
  .hero-promo { max-width: 568px; margin-left: auto; margin-right: auto; margin-bottom: 130px; }
}
