/* =====================================================
   NIS2 Compliance Theme — Custom Styles
   ===================================================== */

/* Body offset for fixed navbar */
body {
  padding-top: 0;
}

/* ── Accordion animations ── */
.nis2-accordion-content,
.nis2-faq-content {
  transition: max-height 0.25s ease, opacity 0.2s ease;
}

.nis2-accordion-item.is-open,
.nis2-faq-item.is-open {
  border-color: #c4122f !important;
}

.nis2-accordion-item.is-open .nis2-accordion-icon {
  background-color: #c4122f !important;
}

.nis2-accordion-chevron,
.nis2-faq-chevron {
  transition: transform 0.2s ease;
}

.nis2-accordion-item.is-open .nis2-accordion-chevron,
.nis2-faq-item.is-open .nis2-faq-chevron {
  transform: rotate(180deg);
  color: #c4122f;
}

/* ── Mobile nav transition ── */
#nis2-mobile-nav {
  transition: opacity 0.2s ease;
}

/* ── Card hover lift (fallback for non-Tailwind) ── */
.nis2-card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* ── Smooth scroll offset for anchors (accounts for sticky nav) ── */
:target {
  scroll-margin-top: 90px;
}

/* ── Focus styles for form inputs ── */
input:focus,
textarea:focus {
  border-color: rgba(196, 18, 47, 0.5) !important;
  box-shadow: 0 0 0 2px rgba(196, 18, 47, 0.1);
}

/* ── Partner logo filter (fallback) ── */
.nis2-partner-logo {
  filter: brightness(0) invert(1);
  opacity: 0.5;
  transition: opacity 0.2s;
}
.nis2-partner-logo:hover {
  opacity: 0.8;
}

/* ── Glassmorphism for dark sections ── */
.nis2-glass {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ── Responsive typography ── */
@media (max-width: 640px) {
  h1 { font-size: 2rem !important; line-height: 1.2; }
  h2 { font-size: 1.75rem !important; }
}

/* ── Cookie consent banner ── */
.nis2-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px 20px;
  background: #1a2744;
  border-top: 2px solid rgba(196,18,47,.4);
  flex-wrap: wrap;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nis2-cookie-banner--hidden {
  transform: translateY(100%);
  opacity: 0;
}
.nis2-cookie-text {
  margin: 0;
  color: rgba(255,255,255,.8);
  font-size: 13px;
  line-height: 1.5;
  flex: 1;
  min-width: 200px;
}
.nis2-cookie-btn {
  background: var(--nis2-primary, #c4122f);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.nis2-cookie-btn:hover { opacity: 0.85; }

/* ── Floating CTA button ── */
.nis2-floating-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--nis2-primary, #c4122f);
  color: #fff;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(196,18,47,.4);
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s;
  font-family: 'Open Sans', sans-serif;
}
.nis2-floating-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(196,18,47,.5);
  color: #fff;
  text-decoration: none;
}
.nis2-floating-cta--hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}

/* ── Admin: anchor input w sekcjach ── */
.nis2-section-anchor-input {
  width: 100px !important;
  font-size: 12px;
  color: #666;
  font-family: monospace;
}
