/* ============================================================
   vm-layout.css — Header e Footer compartilhados (vmh-/vmf-)
   Incluído em: nova-home, product-tvplay, linha-vm, tabela-precos
   ============================================================ */

:root {
  --vmh-bg:           #06091a;
  --vmh-border:       rgba(255,255,255,0.08);
  --vmh-accent:       #6f4bf1;
  --vmh-text:         #f0f2ff;
  --vmh-text-muted:   rgba(240,242,255,0.65);
  --vmh-text-sub:     rgba(240,242,255,0.38);
  --vmh-surface:      #0d1230;
  --vmh-transition:   0.2s ease;
}

/* ── RESET MÍNIMO ────────────────────────────────────────── */
.vmh-header *, .vmf-footer * { box-sizing: border-box; }

/* ============================================================
   HEADER
   ============================================================ */
.vmh-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 68px;
  background: transparent;
  transition: background var(--vmh-transition), border-color var(--vmh-transition);
  border-bottom: 1px solid transparent;
}
.vmh-header.scrolled {
  background: rgba(6,9,26,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: var(--vmh-border);
}
.vmh-container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 28px;
}
/* Especificidade reforçada — sobrepõe resets globais de cada template */
.vmh-header .vmh-container {
  margin-left: auto;
  margin-right: auto;
}
.vmh-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 32px;
}
.vmh-logo { display: flex; align-items: center; text-decoration: none; }
.vmh-logo-img { height: 48px; width: auto; display: block; }

/* Phone */
.vmh-phone {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--vmh-text);
  text-decoration: none;
  white-space: nowrap;
  background: rgba(255,255,255,0.07);
  padding: 7px 16px;
  border-radius: 8px;
  transition: background var(--vmh-transition);
}
.vmh-phone:hover { background: rgba(255,255,255,0.13); color: #fff; }
.vmh-phone svg { flex-shrink: 0; opacity: .7; }

/* Nav */
.vmh-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.vmh-nav a {
  color: var(--vmh-text);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  transition: color var(--vmh-transition), background var(--vmh-transition);
}
.vmh-nav a:hover { color: #fff; background: var(--vmh-surface); }
.vmh-nav-cta {
  background: var(--vmh-accent) !important;
  color: #fff !important;
  font-weight: 600 !important;
  padding: 7px 18px !important;
}
.vmh-nav-cta:hover { opacity: .85 !important; background: var(--vmh-accent) !important; }

/* Toggle mobile */
.vmh-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.vmh-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--vmh-text);
  border-radius: 2px;
  transition: transform var(--vmh-transition), opacity var(--vmh-transition);
}

/* ── RESPONSIVE HEADER ───────────────────────────────────── */
@media (max-width: 900px) {
  .vmh-header .vmh-container { padding-left: 20px; padding-right: 20px; }
  .vmh-phone { display: none; }
  .vmh-toggle { display: flex; }
  .vmh-nav {
    display: none;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--vmh-bg);
    border-bottom: 1px solid var(--vmh-border);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    z-index: 199;
  }
  .vmh-nav.open { display: flex; }
  .vmh-nav a { width: 100%; padding: 10px 14px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.vmf-footer {
  background: #040610;
  border-top: 1px solid var(--vmh-border);
}
/* Especificidade reforçada contra resets de cada template */
body .vmf-footer {
  margin-top: 80px;
}
.vmf-container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 28px;
}
.vmf-footer .vmf-container {
  margin-left: auto;
  margin-right: auto;
  padding-left: 28px;
  padding-right: 28px;
}
.vmf-footer-inner {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
  padding: 64px 0 48px;
}
.vmf-footer .vmf-footer-inner {
  padding-top: 64px;
  padding-bottom: 48px;
}

/* Brand */
.vmf-footer-brand { flex: 0 0 200px; }
.vmf-footer-logo { height: 28px; width: auto; margin-bottom: 12px; display: block; }
.vmf-footer-brand p {
  font-size: .8rem;
  color: var(--vmh-text-sub);
  line-height: 1.6;
}
.vmf-footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.vmf-social-link {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  color: var(--vmh-text-muted);
  transition: background var(--vmh-transition), color var(--vmh-transition);
}
.vmf-social-link:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* Link columns */
.vmf-footer-links {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  flex: 1;
}
.vmf-footer-col {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.vmf-footer-col-title {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--vmh-text-sub);
  margin-bottom: 6px;
}
.vmf-footer-col a {
  font-size: .9rem;
  color: var(--vmh-text-muted);
  text-decoration: none;
  transition: color var(--vmh-transition);
}
.vmf-footer-col a:hover { color: var(--vmh-text); }

/* Phone bar */
.vmf-footer-phone-bar {
  border-top: 1px solid rgba(111,75,241,0.3);
  border-bottom: 1px solid rgba(111,75,241,0.3);
  background: rgba(111,75,241,0.06);
  padding: 14px 0;
}
.vmf-footer-phone-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.vmf-footer-phone-icon { color: var(--vmh-accent); flex-shrink: 0; }
.vmf-footer-phone-label {
  font-size: .8rem;
  color: var(--vmh-text-muted);
  font-weight: 500;
}
.vmf-footer-phone-number {
  font-size: 1rem;
  font-weight: 700;
  color: var(--vmh-text);
  text-decoration: none;
  letter-spacing: .02em;
  transition: color var(--vmh-transition);
}
.vmf-footer-phone-number:hover { color: var(--vmh-accent); }
.vmf-footer-phone-secondary { font-size: .9rem; font-weight: 600; }
.vmf-footer-phone-sep { color: var(--vmh-text-sub); }

/* Bottom bar */
.vmf-footer-bottom {
  padding: 16px 0;
  border-top: 1px solid var(--vmh-border);
}
.vmf-footer-bottom .vmf-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .78rem;
  color: var(--vmh-text-sub);
}
.vmf-footer-bottom a {
  color: var(--vmh-text-sub);
  text-decoration: none;
  transition: color var(--vmh-transition);
}
.vmf-footer-bottom a:hover { color: var(--vmh-text); }

/* ── RESPONSIVE FOOTER ───────────────────────────────────── */
@media (max-width: 900px) {
  .vmf-footer-inner { gap: 32px; }
  .vmf-footer-links { gap: 28px; }
}
@media (max-width: 640px) {
  .vmf-footer-inner { flex-direction: column; padding: 36px 0; }
  .vmf-footer-links { flex-wrap: wrap; gap: 24px; }
  .vmf-footer-col { min-width: calc(50% - 12px); }
  .vmf-footer-bottom .vmf-container { flex-direction: column; text-align: center; }
}
