/* =====================================================================
   Strona główna — style strukturalne.
   Kolor akcentu (--accent) jest wstrzykiwany inline z ustawień portalu
   (patrz modules/homepage/front/views/home.html) — brak tu na sztywno wpisanej wartości.
   ===================================================================== */

* { box-sizing: border-box; }
body { margin: 0; font-family: 'Manrope', system-ui, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { opacity: 0.8; }

.cta:hover { filter: brightness(1.08); }
.cta-ghost:hover { background: oklch(0.96 0.01 250); }
.plan { transition: box-shadow .15s, transform .15s; }
.plan:hover { box-shadow: 0 8px 24px oklch(0.4 0.05 250 / 0.12); transform: translateY(-2px); }
input, textarea { font-family: 'Manrope', sans-serif; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 22px;
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: oklch(0.22 0.02 255);
  border-left: 1px solid oklch(0.93 0.005 250);
  transition: background .18s, color .18s;
}
.nav-item:first-child { border-left: none; }
.nav-item:hover { background: var(--accent); color: #fff; }

.nav-drop { position: relative; height: 100%; display: flex; }
.nav-drop > .nav-item { height: 100%; }

.nav-drop-panel {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: #fff;
  border: 1px solid oklch(0.92 0.005 250);
  border-top: none;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 16px 32px oklch(0.3 0.05 250 / 0.18);
  padding: 10px;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 50;
}
.nav-drop:hover .nav-drop-panel,
.nav-drop:focus-within .nav-drop-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-drop-link {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  color: oklch(0.3 0.02 255);
  white-space: nowrap;
}
.nav-drop-link:hover { background: oklch(0.96 0.02 250); color: var(--accent); opacity: 1; }

.footer-link { color: oklch(0.72 0.02 255); font-size: 13px; text-decoration: none; transition: color .15s; }
.footer-link:hover { color: var(--accent); opacity: 1; }

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid oklch(0.32 0.02 255);
  display: flex;
  align-items: center;
  justify-content: center;
  color: oklch(0.75 0.02 255);
  transition: background .15s, border-color .15s, color .15s;
}
.social-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; opacity: 1; }

.back-to-top { display: inline-flex; align-items: center; gap: 6px; color: oklch(0.6 0.02 255); font-size: 12px; text-decoration: none; white-space: nowrap; transition: color .15s; }
.back-to-top:hover { color: var(--accent); opacity: 1; }

/* Dynamiczne pojawianie się sekcji przy przewijaniu — klasa reveal-init jest
   dodawana wyłącznie przez JS (patrz koniec pliku home.html), więc bez JS
   lub przy prefers-reduced-motion treść zawsze jest w pełni widoczna. */
.reveal-init {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.16,.8,.24,1), transform .7s cubic-bezier(.16,.8,.24,1);
}
.reveal-visible { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  .reveal-init { transition: none !important; opacity: 1 !important; transform: none !important; }
}

@media (max-width: 960px) {
  .ip-header, .ip-hero, .ip-promo-wrap, .ip-offer, .ip-why, .ip-testimonials, .ip-contact-wrap, .ip-footer-grid {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
  .ip-nav { flex-wrap: wrap; height: auto !important; padding: 8px 24px !important; }
  .ip-hero { flex-direction: column !important; }
  .ip-offer-grid, .ip-why-grid, .ip-testi-grid, .ip-footer-grid { grid-template-columns: 1fr !important; }
  .ip-contact-wrap { flex-direction: column !important; }
}
