/* ============================================================
   Header v2 — CVList
   ============================================================ */

/* ── WRAPPER ──────────────────────────────────────────────── */
.hdr-v2-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: #fff;
  box-shadow: 0 1px 0 var(--c-border, #E2E8F0);
  transition: background .3s ease, box-shadow .3s ease;
}

/* Paginas internas: offset do header fixo */
body.hdr-v2:not(.home) {
  padding-top: var(--hdr-v2-h, 165px);
}

/* ── TOP BAR ──────────────────────────────────────────────── */
.hdr-v2-topbar {
  border-bottom: 1px solid rgba(0,0,0,.06);
  overflow: hidden;
  max-height: 44px;
  transition: max-height .32s ease, opacity .28s ease, border-color .28s ease;
}
.hdr-v2-wrap.is-sticky .hdr-v2-topbar {
  max-height: 0;
  opacity: 0;
  border-color: transparent;
}
.hdr-v2-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  padding-top: 4px;
}

/* topbar nav (links primarios) */
.hdr-v2-topbar-list {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0; padding: 0;
}
.hdr-v2-topbar-list a {
  color: var(--c-text-soft, #64748B);
  font-size: 12.5px;
  font-weight: 500;
  transition: color .15s;
}
.hdr-v2-topbar-list a:hover,
.hdr-v2-topbar-list .current-menu-item a { color: var(--c-blue, #2563EB); font-weight: 600; }

/* topbar right: info + sociais */
.hdr-v2-topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.hdr-v2-topbar-info {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--c-text-soft, #64748B);
  font-size: 12px;
}
.hdr-v2-topbar-info svg { flex-shrink: 0; }
.hdr-v2-topbar-socials {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 14px;
  border-left: 1px solid var(--c-border, #E2E8F0);
}
.hdr-v2-topbar-socials a {
  color: var(--c-text-soft, #64748B);
  display: flex;
  align-items: center;
  transition: color .15s;
}
.hdr-v2-topbar-socials a:hover { color: var(--c-blue, #2563EB); }

/* ── MAIN BAR ──────────────────────────────────────────────── */
.hdr-v2-main {
  /* inherits bg from wrapper */
}
.hdr-v2-main-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 14px;
}

/* Logo */
.hdr-v2-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.hdr-v2-logo img,
.hdr-v2-logo .custom-logo { height: 40px; width: auto; display: block; }

/* Search */
.hdr-v2-search {
  flex: 1;
  max-width: 580px;
  margin-left: 32px;
}

/* Action icons */
.hdr-v2-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.hdr-v2-icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--c-text, #1E293B);
  background: none;
  border: none;
  cursor: pointer;
  transition: background .15s, color .15s;
  flex-shrink: 0;
  text-decoration: none;
}
.hdr-v2-icon-btn:hover { background: var(--c-bg-s, #F1F5F9); color: var(--c-blue, #2563EB); }
.hdr-v2-badge {
  position: absolute;
  top: 2px; right: 1px;
  min-width: 16px; height: 16px;
  background: var(--c-yellow, #FACC15);
  color: #1F2937;
  font-size: 9px; font-weight: 700; line-height: 1;
  border-radius: 999px; padding: 0 3px;
  display: flex; align-items: center; justify-content: center;
}
.hdr-v2-badge:empty,
.hdr-v2-badge[data-count="0"] { display: none; }

/* Separador */
.hdr-v2-sep {
  width: 1px;
  height: 20px;
  background: var(--c-border, #E2E8F0);
  flex-shrink: 0;
  margin: 0 4px;
}

/* Account / language dropdown buttons */
.hdr-v2-dd-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--c-text, #1E293B);
  font-size: 13px; font-weight: 500; font-family: inherit;
  padding: 6px 8px;
  border-radius: 7px;
  white-space: nowrap;
  transition: background .15s, color .15s;
  height: 38px;
}
.hdr-v2-dd-btn:hover,
.hdr-v2-acct-dd:focus-within .hdr-v2-dd-btn { background: var(--c-bg-s, #F1F5F9); color: var(--c-blue, #2563EB); }
.hdr-v2-dd-label { max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hdr-v2-chev { opacity: .5; flex-shrink: 0; }

/* Mobile buttons */
.hdr-v2-mob-search,
.hdr-v2-mob-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: none; border: none; cursor: pointer;
  color: var(--c-text, #1E293B);
  transition: background .15s, color .15s;
  flex-shrink: 0;
}
.hdr-v2-mob-search:hover,
.hdr-v2-mob-menu:hover { background: var(--c-bg-s, #F1F5F9); color: var(--c-blue, #2563EB); }

/* ── CATEGORY NAV — override para o contexto v2 ───────────── */
.hdr-v2-wrap .hdr-cats {
  background: rgba(255,255,255,.97);
  box-shadow: 0 1px 0 var(--c-border, #E2E8F0);
}

/* ── MOBILE SEARCH OVERLAY ────────────────────────────────── */
.hdr-v2-mob-search-ov {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: flex-start;
  padding-top: 10px;
}
.hdr-v2-mob-search-ov.is-open { display: flex; }
.hdr-v2-mob-search-bar {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #fff;
}
.hdr-v2-mob-search-bar .msearch { flex: 1; min-width: 0; }
.hdr-v2-mob-search-cancel {
  flex-shrink: 0;
  background: none; border: none; cursor: pointer;
  color: var(--c-blue, #2563EB);
  font-size: 14px; font-weight: 600; font-family: inherit;
  padding: 6px 4px;
}

/* ── STICKY STATE ─────────────────────────────────────────── */
.hdr-v2-wrap.is-sticky {
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1023px) {
  .hdr-v2-topbar-info,
  .hdr-v2-topbar-socials { display: none; }
}
@media (max-width: 767px) {
  .hdr-v2-topbar { display: none; }
  .hdr-v2-main-inner { padding-block: 10px; gap: 8px; }
  .hdr-v2-logo img,
  .hdr-v2-logo .custom-logo { height: 34px; }
}

/* ── FOOTER V2 ────────────────────────────────────────────── */
.ftr-v2 {
  background: #0A2240;
  color: rgba(255,255,255,.65);
  padding: 56px 70px 32px;
  margin: 24px auto;
  max-width: 1300px;
  border-radius: 20px;
  overflow: hidden;
}
.ftr-v2-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: none;
  padding-inline: 0;
}
.ftr-v2-main {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px;
}
@media (max-width: 1023px) {
  .ftr-v2 { padding: 48px 24px 28px; }
  .ftr-v2-main { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 599px) {
  .ftr-v2 { margin: 12px; border-radius: 16px; padding: 32px 20px 24px; }
  .ftr-v2-main { grid-template-columns: 1fr; }
}

.ftr-v2-col-title {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
}
.ftr-v2-col-list,
.ftr-v2-col-list ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 9px;
}
.ftr-v2-col-list a {
  font-size: 13px;
  color: rgba(255,255,255,.65);
  transition: color .2s;
}
.ftr-v2-col-list a:hover { color: #fff; }

.ftr-v2-nl-desc {
  font-size: 13px;
  color: rgba(255,255,255,.55);
  margin-bottom: 14px;
  line-height: 1.55;
}

/* newsletter form inline */
.ftr-v2-nl .footer-news,
.ftr-v2-nl .nl-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ftr-v2-nl .footer-news input,
.ftr-v2-nl .nl-form input {
  height: 42px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.07);
  color: #fff;
  font-size: 13.5px; font-family: inherit;
  padding: 0 14px;
  outline: none;
  transition: border-color .2s;
}
.ftr-v2-nl .footer-news input:focus,
.ftr-v2-nl .nl-form input:focus { border-color: var(--c-blue, #2563EB); }
.ftr-v2-nl .footer-news input::placeholder,
.ftr-v2-nl .nl-form input::placeholder { color: rgba(255,255,255,.35); }
.ftr-v2-nl .footer-news button,
.ftr-v2-nl .nl-form button {
  height: 42px;
  border-radius: 8px;
  background: var(--c-blue, #2563EB);
  color: #fff;
  border: none; cursor: pointer;
  font-size: 14px; font-weight: 600; font-family: inherit;
  transition: background .2s;
}
.ftr-v2-nl .footer-news button:hover,
.ftr-v2-nl .nl-form button:hover { background: #1D4ED8; }

/* bottom bar */
.ftr-v2-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.08);
  flex-wrap: wrap;
  position: relative;
}
.ftr-v2-copy { font-size: 12.5px; color: rgba(255,255,255,.4); }
.ftr-v2-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.ftr-v2-logo img,
.ftr-v2-logo .custom-logo { height: 46px; width: auto; filter: brightness(0) invert(1); opacity: .7; }
.ftr-v2-logo .logo:hover img,
.ftr-v2-logo .logo:hover .custom-logo { opacity: 1; }

.ftr-v2-socials-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ftr-v2-socials-label { display: none; }
.ftr-v2-socials { display: flex; align-items: center; gap: 10px; }
.ftr-v2-social {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  color: #fff;
  transition: opacity .2s;
}
.ftr-v2-social svg { width: 18px; height: 18px; }
.ftr-v2-social:hover { opacity: .85; }
.ftr-v2-social--fb { background: #1877F2; }
.ftr-v2-social--yt { background: #FF0000; }
.ftr-v2-social--ig { background: linear-gradient(135deg, #FCAF45 0%, #E1306C 50%, #833AB4 100%); }

/* newsletter form inline (fallback simples) */
.ftr-v2-nl-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ftr-v2-nl-form input {
  height: 42px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.07);
  color: #fff;
  font-size: 13.5px; font-family: inherit;
  padding: 0 14px;
  outline: none;
  transition: border-color .2s;
}
.ftr-v2-nl-form input:focus { border-color: var(--c-blue, #2563EB); }
.ftr-v2-nl-form input::placeholder { color: rgba(255,255,255,.35); }
.ftr-v2-nl-form button {
  height: 42px;
  border-radius: 8px;
  background: var(--c-blue, #2563EB);
  color: #fff;
  border: none; cursor: pointer;
  font-size: 14px; font-weight: 600; font-family: inherit;
  transition: background .2s;
}
.ftr-v2-nl-form button:hover { background: #1D4ED8; }

/* legal links */
.ftr-v2-legal { padding-top: 0; }
.ftr-v2-legal-list,
.ftr-v2-legal-list ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}
.ftr-v2-legal-list a {
  font-size: 11.5px;
  color: rgba(255,255,255,.35);
  transition: color .15s;
}
.ftr-v2-legal-list a:hover { color: rgba(255,255,255,.7); }

@media (max-width: 599px) {
  .ftr-v2-bottom { flex-direction: column; align-items: flex-start; }
  .ftr-v2-logo { display: none; }
}
