/* ============================================================
   Vacanexus — Shared header & menu styles
   Path: /assets/vacanexus-header.css
   ============================================================ */

/* --- Skip link for accessibility --- */
.vx-skip { position: absolute; left: -9999px; top: -9999px; background: #C9A84C; color: #0D1F3C; padding: 8px 14px; border-radius: 4px; font-weight: 600; font-size: 13px; z-index: 9999; }
.vx-skip:focus { left: 12px; top: 12px; }

/* --- Header --- */
.vx-header { background: #0D1F3C; height: 72px; position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(201,168,76,0.08); font-family: 'Plus Jakarta Sans', sans-serif; }
.vx-header-inner { max-width: 1280px; height: 100%; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.vx-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.vx-logo img { height: 30px; width: auto; }
.vx-logo-fallback { font-family: 'Bodoni Moda', serif; font-size: 22px; font-weight: 700; color: #fff; display: none; }

/* --- Nav --- */
.vx-nav { display: flex; align-items: center; gap: 4px; }
.vx-nav-item { position: relative; }
.vx-nav-link { display: flex; align-items: center; gap: 6px; padding: 10px 18px; color: rgba(255,255,255,0.78); font-size: 13px; font-weight: 500; letter-spacing: 0.02em; border-radius: 4px; transition: all .2s; cursor: pointer; background: none; border: none; font-family: inherit; text-decoration: none; }
.vx-nav-link:hover, .vx-nav-link.is-open { color: #C9A84C; background: rgba(201,168,76,0.06); }
.vx-nav-link svg { width: 10px; height: 10px; transition: transform .2s; }
.vx-nav-link.is-open svg { transform: rotate(180deg); }
.vx-nav-cta { background: #C9A84C; color: #0D1F3C; padding: 10px 22px; border-radius: 3px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; transition: all .2s; text-decoration: none; }
.vx-nav-cta:hover { background: #d6b85a; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(201,168,76,0.3); }
.vx-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 8px; }
.vx-hamburger span { display: block; width: 22px; height: 2px; background: rgba(255,255,255,0.85); border-radius: 2px; transition: all .25s; }

/* --- Mega menu --- */
.vx-mega { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px); width: 880px; background: #fff; border-radius: 8px; box-shadow: 0 24px 60px rgba(13,31,60,0.18), 0 4px 12px rgba(0,0,0,0.05); padding: 32px; opacity: 0; visibility: hidden; transition: all .25s; pointer-events: none; }
.vx-mega.is-open { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.vx-mega::before { content: ''; position: absolute; top: -8px; left: 0; right: 0; height: 8px; }
.vx-mega-grid { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 36px; }
.vx-mega-col h4 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: #999; margin-bottom: 14px; }
.vx-mega-list { list-style: none; display: flex; flex-direction: column; gap: 2px; padding: 0; margin: 0; }
.vx-mega-list a { display: flex; align-items: center; justify-content: space-between; padding: 7px 8px; margin: 0 -8px; border-radius: 4px; font-size: 14px; color: #333; font-weight: 500; transition: all .15s; text-decoration: none; }
.vx-mega-list a:hover { background: #F7F6F2; color: #0D1F3C; }
.vx-mega-list a .vx-tag { font-size: 9px; font-weight: 700; letter-spacing: 0.08em; padding: 2px 6px; border-radius: 2px; background: #C9A84C; color: #0D1F3C; text-transform: uppercase; }
.vx-mega-feature { display: flex; flex-direction: column; gap: 12px; }
.vx-mega-feature-card { display: flex; align-items: center; gap: 12px; padding: 8px; margin: 0 -8px; border-radius: 6px; transition: all .15s; text-decoration: none; }
.vx-mega-feature-card:hover { background: #F7F6F2; }
.vx-mega-feature-img { width: 56px; height: 56px; border-radius: 6px; background-color: #1a3a5c; flex-shrink: 0; overflow: hidden; }
.vx-mega-feature-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vx-mega-feature-text { flex: 1; min-width: 0; }
.vx-mega-feature-name { font-family: 'Bodoni Moda', serif; font-size: 16px; font-weight: 700; color: #0D1F3C; line-height: 1.2; }
.vx-mega-feature-region { font-size: 11px; color: #999; margin-top: 2px; }
.vx-mega-cta { margin-top: 24px; padding-top: 20px; border-top: 1px solid #ECE9E1; display: flex; align-items: center; justify-content: space-between; }
.vx-mega-cta a { font-size: 13px; color: #C9A84C; font-weight: 600; text-decoration: none; }
.vx-mega-cta-secondary { color: #666; font-size: 12px; }

/* --- Mobile menu --- */
.vx-mobile-menu { display: none; position: fixed; top: 72px; left: 0; right: 0; bottom: 0; background: #0D1F3C; padding: 24px 32px 40px; overflow-y: auto; z-index: 99; font-family: 'Plus Jakarta Sans', sans-serif; }
.vx-mobile-menu.is-open { display: block; }
.vx-mobile-menu .vx-mobile-section { margin-bottom: 28px; }
.vx-mobile-menu .vx-mobile-section h4 { font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: #C9A84C; margin-bottom: 12px; }
.vx-mobile-menu .vx-mobile-section a { display: block; padding: 12px 0; color: rgba(255,255,255,0.85); font-size: 16px; border-bottom: 1px solid rgba(255,255,255,0.06); text-decoration: none; }
.vx-mobile-menu .vx-nav-cta { display: block; text-align: center; margin-top: 24px; padding: 16px; }

/* --- Shared footer --- */
.vx-footer { background: #0D1F3C; padding: 48px 32px 32px; font-family: 'Plus Jakarta Sans', sans-serif; }
.vx-footer-inner { max-width: 1100px; margin: 0 auto; }
.vx-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 36px; }
.vx-footer-brand img { height: 28px; margin-bottom: 16px; }
.vx-footer-tagline { font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.6; max-width: 280px; }
.vx-footer-col h5 { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; color: rgba(255,255,255,0.85); text-transform: uppercase; margin-bottom: 16px; }
.vx-footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; padding: 0; margin: 0; }
.vx-footer-col a { font-size: 13px; color: rgba(255,255,255,0.55); transition: color .2s; text-decoration: none; }
.vx-footer-col a:hover { color: #C9A84C; }
.vx-footer-bottom { padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 12px; color: rgba(255,255,255,0.4); }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .vx-mega { width: 700px; }
}
@media (max-width: 768px) {
  .vx-header-inner { padding: 0 20px; }
  .vx-nav { display: none; }
  .vx-hamburger { display: flex; }
  .vx-footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
