/* NovaG — estilos compartilhados das páginas públicas. */
:root {
  --primary-color: #0077B6;
  --primary-hover: #00669B;
  --secondary-color: #0EA5E9;
  --dark-color: #0D1321;
  --dark-blue: #0D1321;
  --font-primary: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --site-navy: #0D1321;
  --site-navy-soft: #101A2E;
  --site-blue: #0077B6;
  --site-cyan: #38BDF8;
  --site-text-muted: #94A3B8;
  --site-border: rgba(255, 255, 255, 0.08);
}

body {
  font-family: var(--font-primary);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100000;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff;
  color: var(--site-navy);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.skip-link:focus {
  transform: translateY(0);
}

body.site-page {
  padding-top: 76px;
  background: #F8FAFC;
  color: #0F172A;
}

.blog-search {
  max-width: 500px;
  margin-inline: auto;
}

.blog-meta {
  font-size: 0.9rem;
}

.blog-meta-small {
  font-size: 0.82rem;
}

.site-page .btn-primary {
  background: var(--site-blue);
  border-color: var(--site-blue);
}

.site-page .btn-primary:hover,
.site-page .btn-primary:focus-visible {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.site-page .btn-outline-primary {
  color: var(--site-blue);
  border-color: var(--site-blue);
}

.site-page .btn-outline-primary:hover,
.site-page .btn-outline-primary:focus-visible {
  background: var(--site-blue);
  border-color: var(--site-blue);
  color: #fff;
}

.legal-page {
  min-height: 70vh;
  padding: 64px 0 80px;
  background: #f8fafc;
}

.legal-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(13, 19, 33, 0.08);
}

.legal-card h1 {
  color: var(--site-navy);
  margin-bottom: 10px;
}

.legal-card h2 {
  color: var(--site-blue);
  font-size: 1.2rem;
  margin-top: 30px;
}

.legal-card p,
.legal-card li {
  color: #475569;
}

.error-page {
  min-height: 72vh;
  display: flex;
  align-items: center;
  padding: 72px 0 88px;
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 119, 182, 0.08), transparent 32%),
    #F8FAFC;
}

.error-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 52px 36px;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(13, 19, 33, 0.08);
}

.error-code {
  margin-bottom: 8px;
  color: var(--site-blue);
  font-size: clamp(3.5rem, 12vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.error-card h1 {
  color: var(--site-navy);
  font-size: clamp(2rem, 5vw, 3rem);
}

.error-card > p:not(.error-code) {
  max-width: 560px;
  margin: 14px auto 0;
  color: #475569;
  font-size: 1.05rem;
}

/* Cabeçalho público */
.navbar {
  background: rgba(13, 19, 33, 0.97);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  padding: 14px 0;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.home-page .navbar {
  background: transparent;
  box-shadow: none;
  padding: 20px 0;
}

.navbar.scrolled,
.home-page .navbar.scrolled {
  background: rgba(13, 19, 33, 0.96);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--site-border);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
  padding: 11px 0;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
}

.navbar-brand .logo-img {
  display: block;
  width: auto;
  height: 40px;
}

.navbar .nav-link {
  color: rgba(255, 255, 255, 0.78) !important;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  text-shadow: none;
  padding: 10px 15px !important;
  position: relative;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #fff !important;
}

.navbar .nav-link::before {
  background: linear-gradient(90deg, var(--site-blue), var(--site-cyan)) !important;
  height: 2px;
  bottom: 5px;
}

.header-buttons .btn {
  border-radius: 999px;
  font-size: 0.85rem;
  padding: 8px 18px;
}

.header-buttons .btn-outline-primary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.header-buttons .btn-outline-primary:hover,
.header-buttons .btn-outline-primary:focus-visible {
  background: #fff;
  border-color: #fff;
  color: var(--site-blue);
}

.header-buttons .btn-primary {
  background: var(--site-blue);
  border-color: var(--site-blue);
}

.header-buttons .btn-primary:hover,
.header-buttons .btn-primary:focus-visible {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .navbar .nav-link {
    padding-left: 9px !important;
    padding-right: 9px !important;
  }

  .header-buttons .btn {
    padding-left: 12px;
    padding-right: 12px;
  }
}

.navbar-toggler {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none !important;
}

.navbar-toggler-icon,
.navbar.scrolled .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(13, 19, 33, 0.98);
    border: 1px solid var(--site-border);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
    margin-top: 12px;
    padding: 18px;
  }

  .header-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 14px;
  }

  .header-buttons .btn + .btn {
    margin-left: 0 !important;
  }
}

/* Rodapé público */
.footer {
  background: var(--site-navy) !important;
  border-top: 1px solid var(--site-border);
  padding: 76px 0 0 !important;
}

.footer::before {
  display: none;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  text-decoration: none;
}

.footer-logo img {
  display: block;
  width: auto;
  height: 40px;
}

.footer-about p,
.footer-links li p {
  color: var(--site-text-muted) !important;
  line-height: 1.7;
}

.footer-heading {
  color: #fff !important;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 22px;
}

.footer-heading::before {
  width: 32px;
  height: 2px;
  background: var(--site-blue);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
}

.footer-links li a {
  color: var(--site-text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links li a::before {
  content: none;
}

.footer-links li a:hover {
  color: var(--site-cyan);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-links li i {
  color: var(--site-blue);
  flex: 0 0 auto;
  font-size: 15px;
  margin-right: 10px;
  margin-top: 5px;
}

.footer-links li p {
  margin: 0;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  margin-right: 0;
  border: 1px solid var(--site-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--site-text-muted);
  text-decoration: none;
}

.footer-social a:hover {
  background: var(--site-blue);
  border-color: var(--site-blue);
  color: #fff;
  transform: translateY(-3px);
}

.footer-bottom {
  background: transparent !important;
  border-top: 1px solid var(--site-border);
  margin-top: 56px;
  padding: 22px 0 !important;
}

.footer-bottom p {
  margin: 0;
  color: var(--site-text-muted) !important;
  font-size: 0.85rem;
  text-align: left;
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: flex-end;
  padding-right: 72px;
}

.footer-bottom-links a {
  color: var(--site-text-muted);
  font-size: 0.85rem;
  text-decoration: none;
}

.footer-bottom-links a:hover {
  color: var(--site-cyan);
  text-decoration: underline;
}

/* Atalho de contato */
.whatsapp-widget {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 998;
}

.home-page .whatsapp-widget {
  bottom: 90px;
}

.whatsapp-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #25D366;
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-button:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
}

.whatsapp-button i {
  font-size: 27px;
}

:focus-visible {
  outline: 3px solid var(--site-cyan);
  outline-offset: 3px;
}

@media (max-width: 767.98px) {
  .legal-card {
    padding: 28px 22px;
  }

  .error-card {
    padding: 40px 22px;
  }

  .footer-bottom p {
    text-align: center;
  }

  .footer-bottom {
    padding-bottom: 88px !important;
  }

  .footer-bottom-links {
    justify-content: center;
    margin-top: 8px;
    padding-right: 0;
  }

  .whatsapp-widget {
    right: 18px;
    bottom: 18px;
  }

  .home-page .whatsapp-widget {
    bottom: 78px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .navbar,
  .nav-link,
  .footer a,
  .whatsapp-button {
    transition: none !important;
  }
}
