/* ===================================
   HEADER STYLES
   Header, navigation, and top bar styles for the dsite theme
   =================================== */

/* ===================================
   HEADER STYLES
   =================================== */
.site-header {
  background-color: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 0;
}

.site-branding {
  display: flex;
  flex-direction: column;
}

.site-title {
  font-size: 1.875rem;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.site-title a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-title a:hover {
  color: var(--primary-color);
}

.site-description {
  font-size: 0.875rem;
  color: var(--text-light);
  margin: 0;
}

/* ===================================
   NAVIGATION STYLES
   =================================== */
.main-navigation {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

.main-navigation li {
  margin: 0;
}

.main-navigation a {
  display: block;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 1rem;
  padding: 0.625rem 1rem;
  position: relative;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.main-navigation a:hover {
  color: var(--primary-color);
  background-color: rgba(37, 99, 235, 0.05);
}

.main-navigation a::after {
  content: '';
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.main-navigation a:hover::after {
  width: calc(100% - 2rem);
}

/* Active/Current Menu Item */
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
  color: var(--primary-color);
  background-color: rgba(37, 99, 235, 0.08);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 4px;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-dark);
  transition: var(--transition);
}

/* ============================
   Header CTA Button
   ============================ */
.header-cta-wrapper {
  margin-left: 1.5rem;
}

.header-cta-button {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background-color: var(--primary-color);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.2);
  border: 2px solid transparent;
}

.header-cta-button a {
  color: red;
}

.header-cta-button:hover {
  background-color: var(--white);
  color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.header-cta-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

/* ============================
   Top Bar
   ============================ */

.top-bar {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  color: white;
  font-size: 0.875rem;
  padding: 0.625rem 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.top-bar-left {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  font-weight: 500;
}

.top-bar-item svg {
  opacity: 0.9;
  flex-shrink: 0;
}

.top-bar-item a {
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.top-bar-item a:hover {
  opacity: 0.85;
  text-decoration: underline;
}

.top-bar-right {
  display: flex;
  align-items: center;
}

.top-bar-right .social-icons {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.top-bar-right .social-icons a {
  color: white;
  opacity: 0.9;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.1);
}

.top-bar-right .social-icons a:hover {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.top-bar-right .social-icons svg {
  width: 18px;
  height: 18px;
}
