/* ============================================================
   Hard Court — Nav v2 (Sistema de Navegação com Mega-Menu)
   Criado: 16/04/2026 · Namespace: .hcv2-*
   Self-contained: não depende de variáveis CSS da página.
   ============================================================ */

/* Reset interno + isolamento de box-sizing */
.hcv2-nav, .hcv2-nav *, .hcv2-drawer, .hcv2-drawer * {
  box-sizing: border-box;
}

/* ——— BARRA FIXA DESKTOP + MOBILE ——— */
.hcv2-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10000;
  background: rgba(15, 25, 35, 0.95);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  height: 60px;
  color: #e8edf2;
}

.hcv2-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.hcv2-brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  color: #31AA40;
  text-decoration: none;
  font-weight: 400;
  flex-shrink: 0;
  letter-spacing: 0.2px;
}

.hcv2-brand:hover { color: #5fd9a3; }

.hcv2-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}

.hcv2-item { position: relative; }

.hcv2-btn {
  background: transparent;
  border: 0;
  color: #e8edf2;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  line-height: 1;
}

.hcv2-btn:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }

.hcv2-btn .hcv2-caret {
  font-size: 9px;
  opacity: 0.55;
  transition: transform 0.2s;
  margin-left: 2px;
}

.hcv2-item[data-hcv2-open="true"] .hcv2-btn .hcv2-caret {
  transform: rotate(180deg);
}

.hcv2-item[data-hcv2-open="true"] .hcv2-btn {
  background: rgba(62, 207, 142, 0.08);
  color: #31AA40;
}

.hcv2-btn.hcv2-active { color: #31AA40; }

/* ——— DROPDOWN DESKTOP ——— */
.hcv2-drop {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 300px;
  background: rgba(22, 34, 49, 0.98);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.hcv2-item[data-hcv2-open="true"] .hcv2-drop {
  display: block;
  animation: hcv2-fade-in 0.15s ease-out;
}

@keyframes hcv2-fade-in {
  from { opacity: 0; transform: translateX(-50%) translateY(-4px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.hcv2-drop-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #5a6a7a;
  padding: 8px 14px 8px;
  font-weight: 700;
}

.hcv2-drop a {
  display: block;
  color: #e8edf2;
  text-decoration: none;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.12s, color 0.12s;
  line-height: 1.3;
}

.hcv2-drop a:hover {
  background: rgba(62, 207, 142, 0.1);
  color: #31AA40;
}

.hcv2-drop-desc {
  display: block;
  font-size: 11.5px;
  color: #8a9bb0;
  margin-top: 3px;
  font-weight: 400;
  line-height: 1.4;
}

.hcv2-drop a:hover .hcv2-drop-desc { color: #a8bccc; }

/* ——— CTA "PLANOS" ——— */
.hcv2-cta {
  background: linear-gradient(135deg, #1A5C2A, #2a8c42);
  color: #ffffff !important;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.1s;
  box-shadow: 0 4px 12px rgba(26, 92, 42, 0.3);
  flex-shrink: 0;
  display: inline-block;
  line-height: 1;
}

.hcv2-cta:hover { opacity: 0.92; box-shadow: 0 6px 16px rgba(26, 92, 42, 0.4); }
.hcv2-cta:active { transform: scale(0.98); }

/* ——— HAMBÚRGUER MOBILE ——— */
.hcv2-hamb {
  display: none;
  background: transparent;
  border: 0;
  color: #e8edf2;
  font-size: 22px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  line-height: 1;
  flex-shrink: 0;
}

.hcv2-hamb:hover { background: rgba(255, 255, 255, 0.06); }

/* ——— DRAWER MOBILE ——— */
.hcv2-drawer {
  display: none;
  position: fixed;
  top: 60px;
  left: 0; right: 0; bottom: 0;
  z-index: 9999;
  background: rgba(15, 25, 35, 0.98);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  overflow-y: auto;
  padding: 20px 20px 40px;
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
}

.hcv2-drawer.hcv2-open { display: block; }

.hcv2-drawer-cta {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, #1A5C2A, #2a8c42);
  color: #ffffff !important;
  padding: 16px;
  border-radius: 10px;
  font-weight: 700;
  margin: 0 0 24px;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(26, 92, 42, 0.3);
}

.hcv2-drawer-group { margin-bottom: 20px; }

.hcv2-drawer-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #31AA40;
  padding: 10px 4px 8px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 4px;
}

.hcv2-drawer a {
  display: block;
  color: #e8edf2;
  text-decoration: none;
  padding: 14px 4px;
  font-size: 15px;
  border-radius: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-weight: 500;
}

.hcv2-drawer a:last-child { border-bottom: none; }
.hcv2-drawer a:active { background: rgba(62, 207, 142, 0.1); color: #31AA40; }

.hcv2-drawer .hcv2-drawer-desc {
  display: block;
  font-size: 12px;
  color: #8a9bb0;
  margin-top: 2px;
  font-weight: 400;
}

/* ——— SPACER DE PÁGINA ——— */
body.hcv2-has-nav { padding-top: 60px; }

/* Anuário-style TOC secundário (nav.nav SEM .nav-inner) — empurra pra baixo */
body.hcv2-has-nav:has(> nav.nav:not(:has(.nav-inner))) {
  padding-top: 112px;
}
body.hcv2-has-nav > nav.nav:not(:has(.nav-inner)) {
  top: 60px !important;
}

/* ——— HIDE NAV ANTIGO (nav padrão com nav-inner) ——— */
body.hcv2-has-nav > nav.nav:has(.nav-inner) { display: none !important; }
body.hcv2-has-nav .hc-menu-toggle { display: none !important; }

/* ——— HIDE FAB UNIVERSAL ANTIGO ——— */
body.hcv2-has-nav .hc-fab-menu,
body.hcv2-has-nav .hc-fab-drop { display: none !important; }

/* ——— RESPONSIVE: esconde links desktop, mostra hambúrguer ——— */
@media (max-width: 960px) {
  .hcv2-links { display: none; }
  .hcv2-cta { display: none; }
  .hcv2-hamb { display: inline-flex; align-items: center; justify-content: center; }
}

@media (min-width: 961px) {
  .hcv2-drawer { display: none !important; }
}

/* ============================================================
   FOOTER CANÔNICO v2
   ============================================================ */

.hcv2-footer {
  background: #0a0f15;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 56px 24px 32px;
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  color: #8a9bb0;
  font-size: 13px;
  line-height: 1.65;
}

.hcv2-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 40px;
}

.hcv2-footer-brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  color: #31AA40;
  margin-bottom: 12px;
}

.hcv2-footer-tagline {
  font-size: 13px;
  color: #5a6a7a;
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 260px;
}

.hcv2-footer-selo {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(62, 207, 142, 0.06);
  border: 1px solid rgba(62, 207, 142, 0.15);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 11px;
  color: #31AA40;
  font-weight: 600;
  letter-spacing: 0.3px;
  line-height: 1.4;
}

.hcv2-footer-selo-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.hcv2-footer-col-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #e8edf2;
  font-weight: 700;
  margin-bottom: 16px;
}

.hcv2-footer-col a {
  display: block;
  color: #8a9bb0;
  text-decoration: none;
  padding: 5px 0;
  font-size: 13px;
  transition: color 0.15s;
}

.hcv2-footer-col a:hover { color: #31AA40; }

.hcv2-footer-bottom {
  max-width: 1100px;
  margin: 36px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #5a6a7a;
  flex-wrap: wrap;
  gap: 12px;
}

.hcv2-footer-bottom a {
  color: #5a6a7a;
  text-decoration: none;
}
.hcv2-footer-bottom a:hover { color: #31AA40; }

/* Hide old footers when canonical footer present */
body.hcv2-has-footer footer,
body.hcv2-has-footer .footer,
body.hcv2-has-footer .foot {
  display: none !important;
}

@media (max-width: 768px) {
  .hcv2-footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .hcv2-footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ——— PRINT: nav v2 + footer v2 somem ——— */
@media print {
  .hcv2-nav, .hcv2-drawer, .hcv2-footer { display: none !important; }
  body.hcv2-has-nav { padding-top: 0 !important; }
  body.hcv2-has-footer footer,
  body.hcv2-has-footer .footer,
  body.hcv2-has-footer .foot { display: revert !important; }
}
