/* =============================================
   BLINDAGEM EMPRESARIAL — MAIN STYLESHEET
   Versão modular | Padrão Google 2026
   Dr. Pedro Henrique — Advocacia Empresarial
   ============================================= */

@import url('base.css');
@import url('components.css');
@import url('layout.css');
@import url('animations.css');
@import url('charts.css');
@import url('sections-extra.css');

/* =============================================
   MODERN ENHANCEMENTS — 2026 STANDARD
   ============================================= */

/* Improved focus state for accessibility (WCAG AA) */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Reduce motion for users who request it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Better text rendering across browsers */
html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Skip-to-content link for keyboard navigation */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--gold);
  color: var(--black);
  padding: 12px 20px;
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 0;
}

/* Improved scroll padding to compensate for sticky navbar */
html {
  scroll-padding-top: 80px;
}

/* Cookie banner (LGPD compliant) */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 720px;
  margin: 0 auto;
  background: rgba(13, 13, 13, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(197, 160, 89, 0.3);
  border-radius: 12px;
  padding: 18px 24px;
  z-index: 9990;
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}
.cookie-banner.show { display: flex; }
.cookie-banner p {
  margin: 0;
  flex: 1 1 320px;
  font-size: 0.88rem;
  color: var(--offwhite);
  line-height: 1.55;
}
.cookie-banner a {
  color: var(--gold);
  text-decoration: underline;
}
.cookie-banner button {
  background: var(--gold);
  color: var(--black);
  border: none;
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: var(--ff-sans);
  transition: transform 0.2s var(--ease);
}
.cookie-banner button:hover { transform: translateY(-2px); }

/* Print styles for legal compliance */
@media print {
  .wa-float, .cookie-banner, #navbar, .hero-geo, video,
  .sec-divider, .sec-divider-orn, .float-title, .float-title-slow {
    display: none !important;
  }
  body { background: white !important; color: black !important; }
  section { padding: 20px 0 !important; }
}

/* Lazy load images smoother */
img[loading="lazy"] {
  background: linear-gradient(90deg, #1a1a1a 25%, #222 50%, #1a1a1a 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s ease-in-out infinite;
}
img[loading="lazy"].loaded {
  background: none;
  animation: none;
}
@keyframes skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
