/* Consolidated Brand Color System - Override conflicting colors */
/* This file ensures all colors use the unified brand palette */

/* Primary text and backgrounds */
body {
  color: var(--gray-text) !important;
  background-color: var(--gray-light) !important;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--brand-charcoal) !important;
}

/* Hero section text should be cream - matching next section background */
.tt-main-header .title,
.tt-main-header h1,
.tt-main-header .description,
.tt-main-header .description p,
.tt-main-header .trust-indicator,
.tt-main-header .trust-indicator span {
  color: var(--brand-cream) !important;
}

/* Role switch icon should be cream */
.tt-main-header .role-switch i {
  color: var(--brand-cream) !important;
}

/* Keep trust indicator icons their accent color (secondary) */
.tt-main-header .trust-indicator i {
  color: var(--brand-secondary) !important;
}

/* Buttons should keep their intended colors */
.tt-main-header .btn {
  /* Buttons maintain their own styling */
}

/* Role badges keep their background but text can be cream for the secondary one */
.tt-main-header .role-badge {
  background: var(--brand-secondary) !important;
  color: white !important;
}

.tt-main-header .role-badge[style*="background: rgba"] {
  background: rgba(255, 255, 255, 0.2) !important;
  color: var(--brand-cream) !important;
}

.text-white {
  color: #fff !important;
}

.light-grey-bg,
.section-padding.light-grey-bg {
  background-color: var(--gray-light) !important;
}

/* Content text - all use consistent gray */
.feature-card p,
.step-content p,
.story-content,
.press-excerpt,
.stat-label,
.section-description,
.description {
  color: var(--gray-text) !important;
}

/* Headings use charcoal */
.feature-card h4,
.step-content h4,
.story-name,
.press-title {
  color: var(--brand-charcoal) !important;
}

/* Remove any red/orange accent colors - use brand secondary instead */
.fa-envelope,
[style*="#f44336"],
[style*="color: #f44336"] {
  color: var(--brand-primary) !important;
}

/* Ensure section dividers use brand primary */
.section-divider {
  background-color: var(--brand-primary) !important;
}

/* Buttons should use brand colors */
.btn-danger,
[style*="background.*#f44336"] {
  background-color: var(--brand-primary) !important;
  border-color: var(--brand-primary) !important;
}

/* Smooth role badge transitions */
.role-switch .role-badge {
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
  will-change: opacity, transform, background, color !important;
}

/* Progress bar should be coral */
.scroll-indicator {
  background: var(--brand-secondary) !important;
}

/* Override color1.css and ensure navbar is transparent when it has navbar-transparent class */
.navbar.navbar-transparent,
.navbar.navbar-transparent.navbar-fixed-top,
.navbar.navbar-transparent.navbar-color-on-scroll,
.navbar.navbar-transparent.navbar-fixed-top.navbar-color-on-scroll {
  background-color: transparent !important;
  background: transparent !important;
  background-image: none !important;
}

/* Ensure navbar is transparent initially before JavaScript runs */
.navbar.navbar-fixed-top.navbar-color-on-scroll {
  background-color: transparent !important;
  background: transparent !important;
}

@media screen and (max-width: 768px) {
  .navbar.navbar-transparent,
  .navbar.navbar-transparent.navbar-fixed-top,
  .navbar.navbar-transparent.navbar-color-on-scroll {
    background-color: transparent !important;
    background: transparent !important;
    background-image: none !important;
  }
  
  .navbar.navbar-fixed-top.navbar-color-on-scroll {
    background-color: transparent !important;
    background: transparent !important;
  }
}

/* Sticky navbar should be teal (same as hero section) - override color1.css and any white backgrounds */
.navbar:not(.navbar-transparent),
.navbar.navbar-color-on-scroll:not(.navbar-transparent),
.navbar.navbar-default:not(.navbar-transparent),
.navbar.navbar-default.navbar-fixed-top:not(.navbar-transparent),
.navbar.navbar-primary:not(.navbar-transparent),
.navbar.navbar-fixed-top:not(.navbar-transparent) {
  background-color: #003F4E !important;
  background: #003F4E !important;
  background-image: none !important;
  color: #ffffff !important;
}

/* Ensure navbar is transparent from the start - override any white backgrounds */
.navbar.navbar-transparent.navbar-fixed-top.navbar-color-on-scroll,
.navbar.navbar-transparent.navbar-fixed-top,
.navbar.navbar-transparent,
.navbar.navbar-fixed-top {
  background-color: transparent !important;
  background: transparent !important;
  background-image: none !important;
}

/* When navbar becomes sticky (loses transparent class), make it teal */
.navbar.navbar-fixed-top:not(.navbar-transparent),
.navbar.navbar-color-on-scroll.navbar-fixed-top:not(.navbar-transparent),
.navbar.navbar-fixed-top.navbar-color-on-scroll:not(.navbar-transparent),
.navbar:not(.navbar-transparent).navbar-fixed-top {
  background-color: #003F4E !important;
  background: #003F4E !important;
  background-image: none !important;
}

/* Navbar links should be white/cream when sticky */
.navbar:not(.navbar-transparent) .navbar-nav > li > a,
.navbar.navbar-color-on-scroll:not(.navbar-transparent) .navbar-nav > li > a {
  color: #ffffff !important;
}

.navbar:not(.navbar-transparent) .navbar-nav > li > a:hover,
.navbar.navbar-color-on-scroll:not(.navbar-transparent) .navbar-nav > li > a:hover {
  color: var(--brand-cream) !important;
}

/* Mobile sticky navbar - same teal color - must override color1.css and material-kit.css */
@media (max-width: 991px) {
  .navbar.navbar-fixed-top:not(.navbar-transparent),
  .navbar.navbar-color-on-scroll.navbar-fixed-top:not(.navbar-transparent),
  .navbar.navbar-default.navbar-fixed-top:not(.navbar-transparent),
  .navbar.navbar-default:not(.navbar-transparent).navbar-fixed-top,
  .navbar.navbar-primary:not(.navbar-transparent).navbar-fixed-top,
  .navbar:not(.navbar-transparent).navbar-fixed-top {
    background-color: #003F4E !important;
    background: #003F4E !important;
    color: #ffffff !important;
  }
  
  .navbar.navbar-fixed-top:not(.navbar-transparent) .navbar-nav > li > a,
  .navbar.navbar-color-on-scroll.navbar-fixed-top:not(.navbar-transparent) .navbar-nav > li > a {
    color: #ffffff !important;
  }
  
  .navbar.navbar-fixed-top:not(.navbar-transparent) .navbar-nav > li > a:hover,
  .navbar.navbar-color-on-scroll.navbar-fixed-top:not(.navbar-transparent) .navbar-nav > li > a:hover {
    color: var(--brand-cream) !important;
  }
}

@media (max-width: 768px) {
  /* Mobile navbar should be teal even "at rest" (material-kit keeps navbar-transparent until scroll threshold) */
  .navbar.navbar-fixed-top.navbar-color-on-scroll,
  .navbar.navbar-fixed-top.navbar-color-on-scroll.navbar-transparent {
    background-color: #003F4E !important;
    background: #003F4E !important;
    background-image: none !important;
  }

  .navbar.navbar-fixed-top:not(.navbar-transparent),
  .navbar.navbar-color-on-scroll.navbar-fixed-top:not(.navbar-transparent),
  .navbar.navbar-default.navbar-fixed-top:not(.navbar-transparent),
  .navbar.navbar-default:not(.navbar-transparent).navbar-fixed-top,
  .navbar.navbar-primary:not(.navbar-transparent).navbar-fixed-top,
  .navbar:not(.navbar-transparent).navbar-fixed-top {
    background-color: #003F4E !important;
    background: #003F4E !important;
    color: #ffffff !important;
  }
  
  .navbar.navbar-fixed-top:not(.navbar-transparent) .navbar-nav > li > a,
  .navbar.navbar-color-on-scroll.navbar-fixed-top:not(.navbar-transparent) .navbar-nav > li > a {
    color: #ffffff !important;
  }
  
  .navbar.navbar-fixed-top:not(.navbar-transparent) .navbar-nav > li > a:hover,
  .navbar.navbar-color-on-scroll.navbar-fixed-top:not(.navbar-transparent) .navbar-nav > li > a:hover {
    color: var(--brand-cream) !important;
  }
  
  /* Ensure progress bar is coral on mobile */
  .scroll-indicator {
    background: var(--brand-secondary) !important;
  }
}
