/* ============================================================
   VFB CORE — header.css
   ============================================================ */

/* ============================================================
   HEADER
   ============================================================ */
.vfb-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition: background-color 0.35s ease,
              border-color 0.35s ease,
              box-shadow 0.35s ease;
}

.vfb-header.is-scrolled {
  background-color: rgba(8, 71, 83, 0.97);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.vfb-header.is-open {
  background-color: rgba(8, 71, 83, 0.98);
}

/* ============================================================
   NAV CONTAINER
   ============================================================ */
.vfb-nav {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 24px;
}

/* ============================================================
   BRAND
   ============================================================ */
.vfb-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
}

.vfb-brand .logo-img {
  height: 4rem;
  width: auto;
  object-fit: contain;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  display: block;
}

.vfb-header.is-scrolled .vfb-brand .logo-img {
  opacity: 1;
  transform: translateX(0);
}

.vfb-brand .logo-text {
  display: none;
}
@media (min-width: 640px) {
  .vfb-brand .logo-text { display: block; }
}

.vfb-brand .logo-title {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  display: block;
  line-height: 1.25;
}

.vfb-brand .logo-tagline {
  font-size: 0.75rem;
  color: hsl(var(--gold));
  font-style: italic;
  display: block;
}

/* ============================================================
   MENU WRAP
   ============================================================ */
.vfb-menu-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

/* ============================================================
   PRIMARY MENU — desktop
   ============================================================ */
.vfb-menu {
  display: none;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
@media (min-width: 1024px) {
  .vfb-menu { display: flex; }
}

.vfb-menu > li {
  position: relative;
  list-style: none;
}

.vfb-menu > li > a {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.vfb-menu > li > a:hover {
  color: hsl(var(--gold));
}

/* ============================================================
   CHEVRON — desktop only
   ============================================================ */
@media (min-width: 1024px) {

  .vfb-menu > li.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    position: relative;
    top: -2px;
    width: 7px;
    height: 7px;
    margin-left: 8px;
    flex-shrink: 0;

    /* Creates a downward chevron */
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);

    transition: color 0.2s ease;
  }

}

/* ============================================================
   DESKTOP DROPDOWN PANEL
   ============================================================ */
@media (min-width: 1024px) {

  .vfb-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    min-width: 220px;
    padding: 0.375rem 0;
    list-style: none;
    background-color: rgba(8, 71, 83, 0.97);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius, 8px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease,
                visibility 0.2s ease,
                transform 0.2s ease;
    z-index: 1000;
  }

  .vfb-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .vfb-menu .sub-menu li {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .vfb-menu .sub-menu a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    white-space: nowrap;
    transition: color 0.15s ease, background-color 0.15s ease;
  }

  .vfb-menu .sub-menu a:hover {
    color: hsl(var(--gold));
    background-color: rgba(255,255,255,0.05);
  }

}

/* ============================================================
   HEADER CTA BUTTON
   ============================================================ */
.header-cta-wrap,
.vfb-cta-wrap {
  display: none;
}
@media (min-width: 640px) {
  .header-cta-wrap,
  .vfb-cta-wrap { display: block; }
}

.vfb-cta {
  background: hsl(var(--gold));
  color: hsl(var(--midnight));
  padding: 12px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
  display: inline-block;
}

/* ============================================================
   MOBILE TOGGLE
   ============================================================ */
.vfb-toggle {
  display: block;
  background: none;
  border: 0;
  cursor: pointer;
  color: #fff;
  padding: 0.5rem;
  margin-left: auto;
}
@media (min-width: 1024px) {
  .vfb-toggle { display: none; }
}

.vfb-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ============================================================
   MOBILE MENU
   ============================================================ */
@media (max-width: 1023px) {

  .vfb-nav {
    flex-wrap: wrap;
  }

  .vfb-menu-wrap {
    width: 100%;
  }

  .vfb-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background: rgba(8, 71, 83, 0.98);
    position: absolute;
    top: 100%;
    left: 0;
    padding: 14px;
    gap: 0;
    list-style: none;
    margin: 0;
  }

  .vfb-header.is-open .vfb-menu {
    display: flex;
  }

  .vfb-menu > li {
    width: 100%;
    list-style: none;
  }

  .vfb-menu > li > a {
    padding: 14px 0;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    color: rgba(255,255,255,0.9);
  }

  .vfb-menu > li > a:hover {
    color: hsl(var(--gold));
  }

  /* Hide CSS chevron on mobile */
  .vfb-menu > li.menu-item-has-children > a::after {
    display: none;
  }

  .vfb-menu .sub-menu {
    position: static;
    min-width: auto;
    width: 100%;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    box-shadow: none;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    margin-top: 4px;
    padding: 4px 0;
    list-style: none;
  }

  .vfb-menu li.is-open > .sub-menu {
    display: block;
  }

  .vfb-menu li.is-open > a {
    color: hsl(var(--gold));
  }

  .vfb-menu .sub-menu li {
    list-style: none;
  }

  .vfb-menu .sub-menu a {
    background: none;
    border: none;
    box-shadow: none;
    color: rgba(255,255,255,0.7);
    padding: 10px 12px;
    font-size: 0.875rem;
  }

  .vfb-menu .sub-menu a:hover {
    color: hsl(var(--gold));
    background: none;
  }

  .vfb-cta {
    display: none;
  }

}
