
/* ================================================================================================================================================================================================================================
   NAVIGATION BAR - BASE
   ============================================================================================================================================================================================================================= */
#cs-navigation {
  font-family: 'Montserrat', sans-serif;
  width: 94%;
  max-width: 90rem;
  background: #fff;
  border-bottom: 1px solid #ddd;
  position: fixed;
  top: .5rem;
  left: 0;
  right: 0;
  margin: 0 auto;
  z-index: 10000;
  border-radius: 0.75rem;
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
  
}

#cs-navigation .cs-logo img {
  max-height: 5.5rem;
  width: auto;
  object-fit: contain;
}

/* Toggle Button */
#cs-navigation .cs-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
#cs-navigation.cs-active .cs-toggle { transform: rotate(-90deg); }

.cs-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
}
.cs-line {
  height: 2px;
  width: 100%;
  background-color: #333;
  border-radius: 1px;
}

/* Nav List */
.cs-ul-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}
.cs-ul {
  display: flex;
  gap: 1rem; /* tightened spacing */
  list-style: none;
  margin: 0;
  padding: 0;
}
.cs-li { position: relative; }
.cs-li-link {
  font-family: 'Montserrat', sans-serif;
  text-decoration: none;
  color: #333;
  font-size: .95rem;
  font-weight: 600;
  padding: 0.5rem 0;
  display: block;
  cursor: pointer;
  transition: color 0.25s ease;
}
.cs-drop-icon { margin-left: 0.5rem; vertical-align: middle; }

/* Dropdowns */
.cs-drop-ul {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 0 0 0.75rem 0.75rem;
  opacity: 0;
  visibility: hidden;
  transform: scaleY(0);
  transform-origin: top;
  transition: all 0.25s ease;
  z-index: 1000;
}
.cs-drop-li { white-space: nowrap; }
.cs-drop-link {
  padding: 0.5rem 1rem;
  display: block;
  color: #333;
  transition: color 0.25s ease, background 0.25s ease;
}
.cs-dropdown:hover .cs-drop-ul {
  opacity: 1;
  visibility: visible;
  transform: scaleY(1);
}

/* Social Icons (always horizontal) */
.cs-contact-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
  flex-shrink: 0;
}
.cs-social {
  display: flex;
  flex-direction: row !important;
  gap: 0.75rem;
}
.cs-social a {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #f7f7f7;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease;
}
.cs-social img {
  width: 0.9rem;
  height: auto;
  display: block;
  transition: filter 0.25s ease;
}

/* =========================
   HOVER STATES
   ========================= */
#cs-navigation .cs-li-link:hover,
#cs-navigation .cs-drop-link:hover { color: orange; }
#cs-navigation .cs-social a:hover img {
  filter: brightness(0) saturate(100%) invert(48%) sepia(94%) saturate(749%) hue-rotate(359deg) brightness(101%) contrast(105%);
}

/* ================================================================================================================================================================================================================================
   NAVIGATION BAR - DESKTOP & TABLET LAYOUT
   ============================================================================================================================================================================================================================== */
@media (min-width: 64rem) {
  .cs-club-name { display: inline; }
  .cs-club-abbrev { display: none; }

  #cs-navigation .cs-container {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: stretch;
    column-gap: 2rem;
    padding: 1rem 2rem;
  }

  #cs-navigation .cs-right {
    display: grid;
    grid-template-rows: auto auto;
    align-content: stretch;
  }

  #cs-navigation .cs-header-top { 
    margin-bottom: 0.25rem;
  }
  #cs-navigation .cs-club-name {
	font-family: 'Montserrat', sans-serif;
    font-size: 2.3rem;
    font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.2;
    color: #222;
    margin: 0;
    
  }
/* Slogan: tighten spacing below the divider */
#cs-navigation .cs-slogan {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #e67e22;
  margin: 0;                 /* remove bottom margin */
  text-align: left;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.25rem;   /* keep just enough for readability */
}


  #cs-navigation .cs-header-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0;
    margin-top: 0;
    border-top: none;
  }
}

/* ================================================================================================================================================================================================================================
   NAVIGATION BAR - MOBILE LAYOUT
   ============================================================================================================================================================================================================================== */
@media (max-width: 63.9375rem) {
  /* Base container becomes a stacked layout with a positioned header row */
  #cs-navigation .cs-container {
    position: relative;             /* allows absolute brand placement */
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 1rem;
  }

  /* Hide full club name on mobile */
  #cs-navigation .cs-club-name { display: none; }

  /* Header row: logo left, hamburger right */
  #cs-navigation .cs-header-top {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    min-height: 4.5rem;             /* ensures adequate row height */
    padding-right: 4rem;            /* reserve space for toggle on the right */
    margin-bottom: 0.25rem;
    border-bottom: none;
  }

  /* Logo sizing on mobile */
  #cs-navigation .cs-logo {
    flex: 0 0 auto;
	margin-left: -.75rem;
	margin-bottom: -1.5rem;
  }
  #cs-navigation .cs-logo img {
    max-height: 4.5rem;
    width: auto;
    height: auto;
  }

  /* Hamburger toggle: fixed top-right */
  #cs-navigation .cs-toggle {
    display: flex;
    position: absolute;
    top: 50%;
    right: .5rem;
	margin-right: -.75rem;
    transform: translateY(-50%);
    z-index: 10002;
  }

  /* Place abbrev + slogan BETWEEN logo and hamburger using absolute positioning */
  #cs-navigation .cs-brand-text {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: calc(1rem + 4.5rem + 0.5rem); /* nav side padding + logo height used as a proxy + gap */
    right: 4rem;                        /* reserved toggle width from header-top padding-right */
    display: flex;
    flex-direction: column;
    justify-content: center;            /* vertical align within the band */
    align-items: flex-start;            /* left-justify text */
    text-align: left;
	margin-bottom: -1.5rem;
    pointer-events: none;               /* keeps clicks going to toggle/logo; remove if needed */
  }

  /* Abbreviation and slogan styles in the inline band */
  #cs-navigation .cs-club-abbrev {
	font-family: 'Montserrat', sans-serif;
    display: block;
    font-size: .8rem;
    font-weight: 800;
	letter-spacing: 0.02rem;
    color: #222;
    margin: -2rem;
	margin-top: -1rem;
	margin-bottom: -.5rem;
	line-height:1.2;
  }
  #cs-navigation .cs-slogan {
    display: block;
    font-size: 0.75rem;
    font-style: italic;
    color: #e67e22;
    line-height: 1.2;
    margin-top: .5rem;
	margin-left: -2rem;
    padding: 0;
    border: none;                       /* no divider in the band */
  }

  /* Overlay menu wrapper */
  #cs-navigation .cs-ul-wrapper {
    display: none;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 10001;
    overflow-y: auto;
    padding-top: 8rem;                  /* clears the header row */
  }
  #cs-navigation.cs-active .cs-ul-wrapper { display: flex; }

  /* Menu list */
  #cs-navigation .cs-ul {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding-bottom: 2rem;
  }
  #cs-navigation .cs-li-link {
    width: 100%;
    padding: 1rem;
    border-bottom: 1px solid #eee;
  }

  /* Dropdowns expand inline */
  #cs-navigation .cs-drop-ul {
    position: static;
    border: none;
    border-radius: 0;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: none;
    padding-top: 0.5rem;
  }
  #cs-navigation .cs-drop-link { padding-left: 2rem; }
  #cs-navigation .cs-dropdown.cs-active .cs-drop-ul { display: block; }

  /* Social icons pinned to bottom, centered */
  #cs-navigation .cs-contact-group {
    margin-top: 0rem;
  /*  border-top: 1px solid #ddd;     horizontal line above icons */ 
    border-top: none;
    justify-content: center;
    width: 100%;
    display: flex;
    flex-direction: row;
  }
  #cs-navigation .cs-social {
    display: flex;
    flex-direction: row !important;
    gap: 1rem;
  }

  /* === Animation cascade for top-level items === */
  #cs-navigation .cs-ul > li {
    opacity: 0;
    transform: translateX(-20px);
  }
  #cs-navigation.cs-active .cs-ul > li { animation: cs-slide-in 0.4s ease forwards; }
  #cs-navigation.cs-active .cs-ul > li:nth-child(1) { animation-delay: 0.05s; }
  #cs-navigation.cs-active .cs-ul > li:nth-child(2) { animation-delay: 0.1s; }
  #cs-navigation.cs-active .cs-ul > li:nth-child(3) { animation-delay: 0.15s; }
  #cs-navigation.cs-active .cs-ul > li:nth-child(4) { animation-delay: 0.2s; }
  #cs-navigation.cs-active .cs-ul > li:nth-child(5) { animation-delay: 0.25s; }
  #cs-navigation.cs-active .cs-ul > li:nth-child(6) { animation-delay: 0.3s; }
  #cs-navigation.cs-active .cs-ul > li:nth-child(7) { animation-delay: 0.35s; }
  #cs-navigation.cs-active .cs-ul > li:nth-child(8) { animation-delay: 0.4s; }

  /* Sub-menu animation */
  #cs-navigation .cs-drop-ul li {
    opacity: 0;
    transform: translateX(-15px);
  }
  #cs-navigation .cs-dropdown.cs-active .cs-drop-ul li { animation: cs-slide-in 0.3s ease forwards; }
  #cs-navigation .cs-dropdown.cs-active .cs-drop-ul li:nth-child(1) { animation-delay: 0.05s; }
  #cs-navigation .cs-dropdown.cs-active .cs-drop-ul li:nth-child(2) { animation-delay: 0.1s; }
  #cs-navigation .cs-dropdown.cs-active .cs-drop-ul li:nth-child(3) { animation-delay: 0.15s; }
  #cs-navigation .cs-dropdown.cs-active .cs-drop-ul li:nth-child(4) { animation-delay: 0.2s; }
  #cs-navigation .cs-dropdown.cs-active .cs-drop-ul li:nth-child(5) { animation-delay: 0.25s; }
}

/* Keyframes (shared) */
@keyframes cs-slide-in {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}
/*==========================End of Navigation Bar CSS=============================================================================================================================================================================*/