:root {
  /* BRAND COLORS */
  --brand-navy: #121639;
  --brand-teal: #009ca6;
  --brand-gold: #c5a065;
  --brand-red: #e31e24;
  --brand-light: #f8f9fa;
}

/* =========================================
   1. GLOBAL THEME
   ========================================= */
body {
  background-color: #e3e3e3;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #333;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--brand-navy);
  font-weight: 700;
}

/* =========================================
   2. NAVBAR STYLING (The Fixes)
   ========================================= */

/* A. Header Height & Alignment */
.navbar {
  min-height: 110px !important;
  /* Force tall header */
  align-items: center;
  padding: 0 !important;
  /* Reset padding to let us control it */
  background-color: #121639; 
  padding-top: 20px; 
  padding-bottom: 20px;
}

.container-fluid {
  height: 100%;
  /* Ensure container fills the navbar height */
}

/* B. Burger Button - Remove "Large Border" on click */
.navbar-toggler {
  border: none;
  /* Optional: removes the white square border */
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none !important;
  /* ✅ REMOVES THE GLOW/RING */
  outline: none !important;
}

.navbar-toggler-icon {
  width: 1.5em;
  height: 1.5em;
}

/* C. Logo Hover */
.navbar-brand img {
  transition: opacity 0.2s ease;
  max-height: 95px;
}

.navbar-brand:hover img {
  opacity: 1 !important;
}


@media (max-width: 400px) {
  .navbar-brand img {
    max-height: 75px;
  }
}

@media (min-width: 992px) {
  .navbar .badge {
    line-height: 1;
    position: relative;
    top: -1px; /* tiny optical correction */
  }
}

@media (max-width: 991.98px) {
  .navbar .nav-item > div {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
}



/* ✅ Ensure sticky header actually sticks */
.navbar.sticky-top {
  position: sticky;
  top: 0;
  z-index: 1020;
}



  /* Fixed Castlerock footer */
.crh-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;

  height: 72px;
  background-color: #121639; 
  border-top: 1px solid rgba(0, 0, 0, 0.08);

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 1030;
  box-shadow:
  0 -2px 4px rgba(0, 0, 0, 0.12),
  0 -8px 20px rgba(0, 0, 0, 0.18);
}

/* Constrain logo size on ALL screens */
.crh-footer img {
  max-height: 40px;
  max-width: 320px;   /* 🔑 prevents giant logo */
  width: 100%;
  height: auto;
  object-fit: contain;
  opacity: 0.85;
}

/* Ensure content never flows behind footer */
body {
  padding-bottom: 72px;
}

/* Mobile refinement */
@media (max-width: 576px) {
  .crh-footer {
    height: 56px;
  }

  .crh-footer img {
    max-height: 30px;
    max-width: 240px;
  }

  body {
    padding-bottom: 56px;
  }
}

/* Logged-in user role badge polish */
.navbar .badge {
  font-weight: 600;
  font-size: 0.7rem;
  padding: 0.35em 0.6em;
  border-radius: 999px;
}

/* Subtle role colors in mobile menu */
.navbar .badge.bg-danger {
  background-color: rgba(227, 30, 36, 0.9) !important;
}
.navbar .badge.bg-primary {
  background-color: rgba(13, 110, 253, 0.9) !important;
}

.mt-2 {
    margin-bottom: .5rem !important;
}

/* Admin Tools dropdown polish */
.navbar .dropdown-menu {
  border-radius: 0.5rem;
  padding: 0.25rem 0;
}

.navbar .dropdown-item {
  font-weight: 500;
}

.navbar .dropdown-item:hover {
  background-color: rgba(18, 22, 57, 0.06);
}

@media (max-width: 576px) {

  /* Establish stacking context */
  .navbar {
    position: relative;
  }

  /* Logo should never steal taps on mobile */
  .navbar-brand {
    pointer-events: none;
  }

  /* Ensure BOTH logout buttons are always tappable */
  #logoutBtnPinned,
  #logoutBtnMenu {
    position: relative;   /* not static */
    z-index: 10;
    pointer-events: auto;
  }
}

