/* SSAC1 - Ocean Depths: Header */

/* Header base */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #085fc9 0%, #0d2040 100%);
  border-bottom: 3px solid #085fc9;
  box-shadow: 0 4px 20px rgba(0, 180, 216, 0.2);
}

.site-header__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  gap: 28px;
}

/* Brand */
.brand { flex: 0 0 auto; }

.brand__link {
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.brand__link:hover { transform: scale(1.02); }

.brand__logo {
  display: block;
  width: 90px;
  height: 90px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 180, 216, 0.4)) brightness(1.1);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
  text-shadow: 0 0 20px rgba(0, 180, 216, 0.5);
}

.brand__since {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 1000;
  color: #F4A642;
  letter-spacing: 0.08em;
  font-family: cursive;
}

/* Primary nav (desktop) */
.primary-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

.primary-nav__list {
  list-style: none;
  display: flex;
  flex-direction: row;
  gap: 4px;
  align-items: center;
  padding: 0;
  margin: 0;
}

.primary-nav__list > li { 
  position: relative;
}

.primary-nav__list > li > a {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
  font-size: 15px;
  border-radius: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
  position: relative;
}

.primary-nav__list > li > a::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 14px; right: 14px;
  height: 2px;
  background: #085fc9;
  transform: scaleX(0);
  transition: transform 0.2s ease;
  border-radius: 2px;
}

.primary-nav__list > li > a:hover,
.primary-nav__list > li > a:focus {
  color: #ffffff;
  background: rgba(0, 180, 216, 0.15);
}

.primary-nav__list > li > a:hover::after,
.primary-nav__list > li > a:focus::after { transform: scaleX(1); }

/* Dropdown - shows on hover with all children visible */
.primary-nav__list .sub-menu {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: max-content;
  min-width: 200px;
  max-width: 320px;
  margin: 0;
  padding: 10px;
  background: #0d2040;
  border: 1px solid rgba(0, 180, 216, 0.3);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 180, 216, 0.1);
  display: none;
  z-index: 1000;
}

.primary-nav__list > li:hover > .sub-menu,
.primary-nav__list > li:focus-within > .sub-menu { 
  display: block; 
}

/* All submenu items */
.primary-nav__list .sub-menu li {
  position: relative;
  display: block;
}

.primary-nav__list .sub-menu a {
  display: block;
  width: 100%;
  color: rgba(255,255,255,0.85);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  text-decoration: none;
  box-sizing: border-box;
}

.primary-nav__list .sub-menu a::after { display: none; }

.primary-nav__list .sub-menu a:hover {
  background: linear-gradient(135deg, #085fc9 0%, #085fc9 75%);
  color: rgba(255,255,255,0.85);
}

/* Second-level submenu (nested) - always visible, just indented */
.primary-nav__list .sub-menu .sub-menu {
  position: static;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  min-width: auto;
  width: 100%;
  display: block !important;
}

.primary-nav__list .sub-menu .sub-menu a {
  padding-left: 24px;
}

/* Right cluster */
.site-header__right {
  margin-left: auto;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Join button */
.join-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  background: linear-gradient(135deg, #085fc9 0%, #0096b7 100%);
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 4px 16px rgba(0, 180, 216, 0.4);
  transition: all 0.3s ease;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.join-button:hover,
.join-button:focus {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 180, 216, 0.6);
  background: linear-gradient(135deg, #085fc9 0%, #00b4d8 100%);
  color: rgba(255, 255, 255, 0.85);
}

/* BSAC mark */
.bsac-badge__logo {
  display: block;
  height: 44px;
  width: auto;
  /* filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(0,0,0,0.3)); */ /* IGNORE - use original colors */
  transition: transform 0.2s ease;
}

.bsac-badge:hover .bsac-badge__logo { transform: scale(1.05); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  border: 2px solid rgba(0, 180, 216, 0.4);
  background: rgba(0, 180, 216, 0.1);
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-toggle:hover { background: rgba(0, 180, 216, 0.2); }

.nav-toggle__bars {
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff;
  position: relative;
  border-radius: 2px;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
}

.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }

/* Mobile nav panel */
.mobile-nav {
  border-top: 1px solid rgba(0, 180, 216, 0.3);
  background: #0a1628;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav__list {
  list-style: none;
  padding: 16px 28px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav__list a {
  display: flex;
  padding: 14px 18px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.mobile-nav__list a:hover,
.mobile-nav__list a:focus {
  background: rgba(0, 180, 216, 0.15);
  color: #085fc9;
}

.mobile-nav__list .sub-menu {
  list-style: none;
  margin: 6px 0 10px;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Third-level menu in mobile */
.mobile-nav__list .sub-menu .sub-menu {
  padding-left: 16px;
  margin: 4px 0 8px;
}


.mobile-nav__cta { padding: 0 28px 24px 28px; }

.join-button--mobile {
  width: 100%;
  font-size: 17px;
  padding: 16px 28px;
}

/* Responsive rules */
@media (max-width: 1120px) {
  .site-header__inner { flex-wrap: wrap; gap: 14px; }
  .brand { flex: 0 0 auto; }
  .site-header__right { flex: 0 0 auto; margin-left: auto; }
  .primary-nav { flex: 1 1 100%; order: 3; justify-content: center; }
  .primary-nav__list { gap: 2px; }
  .primary-nav__list > li > a { padding: 9px 11px; font-size: 14px; }
}

@media (max-width: 920px) {
  .primary-nav { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .join-button, .bsac-badge { display: none; }
  .bsac-badge__logo { width: auto; height: 36px; }
  .site-header__inner { padding: 14px 20px; }
  .brand__logo { width: 80px; height: 80px; }
  .brand__name { font-size: 20px; }
  .brand__since { font-size: 16px; }
}

@media (max-width: 520px) {
  .brand__name { font-size: 18px; }
  .brand__since { font-size: 12px; }
  .site-header__inner { padding: 12px 16px; gap: 14px; }
  .brand__logo { width: 68px; height: 68px; }
  .brand__link { gap: 12px; }
}

.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Cover block text on home */
.wp-block-cover__inner-container h1 {
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.1;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 0 40px rgba(0,180,216,0.6), 2px 2px 0 rgba(0,0,0,0.8);
  letter-spacing: -0.02em;
}

.wp-block-cover__inner-container p {
  font-size: 18px;
  max-width: 55ch;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.wp-block-buttons .wp-block-button__link {
  border-radius: 8px;
  font-weight: 700;
  padding: 13px 22px;
  background: #085fc9;
  color: rgba(255, 255, 255, 0.85);
}

.cover-buttons { padding-left: 20px; }
.cover-text { margin-left: 0px !important; }

/* Prevent body scroll when mobile nav is open */
body.nav-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

.heading-padding {
  margin-bottom: 40px;
} 