/* ==============================================
   VIVID HORIZON — Shared Header Styles
   Matches home.html header exactly.
   Used by: guides.html, article-*.html
   ============================================== */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 56px 22px;
  height: 124px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  background: transparent;
  transition: background 0.5s ease, backdrop-filter 0.5s ease, box-shadow 0.5s ease, transform 0.4s cubic-bezier(0.4,0,0.2,1);
}

/* Scrolling down: glass blur */
.site-header.glass {
  background: rgba(10,10,10,0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(194,155,107,0.2);
}

/* Scrolling up: solid navy */
.site-header.scrolled {
  background: #293352;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 1px 0 rgba(194,155,107,0.2);
}

/* Hide on scroll down */
.site-header.hidden {
  transform: translateY(-100%);
}

/* Logo */
.header-logo {
  grid-column: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 48px;
}

.header-logo img {
  max-height: 80px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: filter 0.45s ease;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.55));
}

.site-header.scrolled .header-logo img {
  filter: brightness(0) invert(0.5) sepia(1);
}

/* Nav */
.header-nav-left,
.header-nav-right {
  display: flex;
  align-items: center;
  list-style: none;
}

.header-nav-left { grid-column: 1; justify-content: flex-start; }
.header-nav-right { justify-content: flex-end; }

.header-right-col {
  grid-column: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  align-self: stretch;
  padding-top: 12px;
}

.header-nav-left li,
.header-nav-right li {
  padding: 0 22px;
}

.header-nav-left li:first-child { padding-left: 0; }
.header-nav-right li:last-child  { padding-right: 0; }

.header-nav-left a,
.header-nav-right a {
  font-family: 'Roboto Condensed', Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 1px 12px rgba(0,0,0,0.7);
  transition: color 0.25s;
  position: relative;
  white-space: nowrap;
  display: block;
  text-decoration: none;
}

.header-nav-left a::after,
.header-nav-right a::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 0;
  width: 0; height: 1px;
  background: #C29B6B;
  transition: width 0.3s ease;
}

.header-nav-left a:hover,
.header-nav-right a:hover { color: #ffffff; }

.header-nav-left a:hover::after,
.header-nav-right a:hover::after { width: 100%; }

.header-nav-left a.active,
.header-nav-right a.active { color: #C29B6B; }

.header-nav-left a.active::after,
.header-nav-right a.active::after { width: 100%; }

.site-header.scrolled .header-nav-left a,
.site-header.scrolled .header-nav-right a {
  color: rgba(255,255,255,0.85);
  text-shadow: none;
}

.site-header.scrolled .header-nav-left a:hover,
.site-header.scrolled .header-nav-right a:hover { color: #ffffff; }

/* Private Consultation button */
.btn-sell-header {
  display: inline-block;
  padding: 10px 28px 11px;
  border: 0.5px solid rgba(255,255,255,0.6);
  color: rgba(255,255,255,0.95) !important;
  font-family: 'Roboto Condensed', Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(0,0,0,0.55);
  transition: border-color 0.35s, color 0.35s, background 0.35s;
  white-space: nowrap;
  line-height: 1;
  text-decoration: none;
}

.btn-sell-header::after { display: none !important; }

.btn-sell-header:hover {
  border-color: rgba(194,155,107,0.9) !important;
  color: #C29B6B !important;
  background: rgba(194,155,107,0.07);
  text-shadow: none;
}

.site-header.scrolled .btn-sell-header {
  border-color: rgba(255,255,255,0.4);
  color: rgba(255,255,255,0.85) !important;
  text-shadow: none;
}

.site-header.scrolled .btn-sell-header:hover {
  border-color: #C29B6B !important;
  color: #C29B6B !important;
  background: rgba(194,155,107,0.1);
}

/* Utility row (Join / Log In, Preferences) */
.header-utility {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-util-btn {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
  transition: color 0.25s;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Roboto Condensed', Arial, sans-serif;
  white-space: nowrap;
}

.header-util-btn:hover { color: #C29B6B; }
.site-header.scrolled .header-util-btn { color: rgba(255,255,255,0.32); text-shadow: none; }
.site-header.scrolled .header-util-btn:hover { color: #C29B6B; }

/* Globe / language button */
.lang-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 1px 12px rgba(0,0,0,0.7);
  transition: color 0.25s;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Roboto Condensed', Arial, sans-serif;
}

.lang-btn svg { flex-shrink: 0; }
.lang-btn:hover { color: #C29B6B; }
.site-header.scrolled .lang-btn { color: rgba(255,255,255,0.85); text-shadow: none; }
.site-header.scrolled .lang-btn:hover { color: #C29B6B; }

/* Mobile nav toggle + dropdown menu */
.vh-mobile-nav-toggle { display: none; }

@media (max-width: 900px) {
  .vh-mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.85);
    cursor: pointer;
    padding: 0;
    grid-column: 3;
    justify-self: end;
  }

  .header-nav-left,
  .header-right-col {
    display: none;
  }

  .site-header.nav-open .header-nav-left,
  .site-header.nav-open .header-right-col {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: #0A0A0A;
    padding: 16px 24px 24px;
    border-top: 1px solid rgba(194,155,107,0.2);
  }

  .site-header.nav-open .header-nav-right {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header.nav-open .header-utility {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
  }
}
