/* =========================================================
   Statute page — document figures
   ========================================================= */
.statute-docs { max-width: 1140px; margin-left: auto; margin-right: auto; }
.statute-figure {
  margin: 0 0 2rem;
  background: var(--white);
  border: 1px solid var(--light-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.statute-figure::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--teal) 0%, #1D4ED8 100%);
}
.statute-figure:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.statute-figure img { width: 100%; height: auto; display: block; }
.statute-figure-caption {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.4rem 0.4rem;
  font-family: 'Sora', Arial, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.statute-figure-caption i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(0, 169, 157, 0.12);
  color: var(--teal);
  font-size: 1rem;
  flex: 0 0 auto;
}

/* =========================================================
   Fundacja Nowoczesny Przedsiębiorca — style.css
   Palette: navy #12315E, blue #1D4ED8, teal #00A99D
   Fonts: Sora (headings), Source Sans 3 (body)
   Corner style: 14px rounded everywhere
   ========================================================= */

:root {
  --navy: #12315E;
  --navy-dark: #0C2346;
  --blue: #1D4ED8;
  --teal: #00A99D;
  --teal-dark: #008C82;
  --ink: #1E2A3B;
  --muted: #5A6B80;
  --light: #F4F7FA;
  --light-2: #EAF0F6;
  --white: #ffffff;
  --danger: #C0392B;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(18, 49, 94, 0.08);
  --shadow-hover: 0 16px 40px rgba(18, 49, 94, 0.14);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  font-size: 1.0625rem;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, .font-heading {
  font-family: 'Sora', 'Source Sans 3', Arial, sans-serif;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.25;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); }
a:hover { color: var(--teal-dark); }

/* Focus visibility for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- Header / navigation ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--light-2);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.navbar-brand { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.navbar-brand .brand-logo {
  width: auto; height: 44px; flex-shrink: 0;
  background: var(--navy);
  border-radius: 10px;
  padding: 4px 9px;
}
.site-header .nav-link {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.5rem 0.9rem !important;
  border-radius: 10px;
}
.site-header .nav-link:hover { color: var(--blue); background: var(--light); }
.site-header .nav-link.active { color: var(--blue); }

.navbar-toggler { border-color: var(--light-2); flex-shrink: 0; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(0, 169, 157, 0.35); }

/* Language switch */
.lang-switch {
  display: inline-flex;
  border: 2px solid var(--navy);
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
}
.lang-switch .lang-btn {
  border: 0;
  background: transparent;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.3rem 0.85rem;
  letter-spacing: 0.05em;
}
.lang-switch .lang-btn.active { background: var(--navy); color: var(--white); }
.lang-switch .lang-btn:focus-visible { outline-offset: -4px; }

/* ---------- Buttons ---------- */
.btn { border-radius: var(--radius); font-weight: 600; padding: 0.7rem 1.5rem; transition: all .2s ease; }
.btn-lg { padding: 0.9rem 1.9rem; }
.btn-navy { background: var(--navy); color: var(--white); border: 2px solid var(--navy); }
.btn-navy:hover, .btn-navy:focus { background: var(--navy-dark); border-color: var(--navy-dark); color: var(--white); }
.btn-blue { background: var(--blue); color: var(--white); border: 2px solid var(--blue); }
.btn-blue:hover, .btn-blue:focus { background: #1743B8; border-color: #1743B8; color: var(--white); }
.btn-teal { background: var(--teal); color: var(--white); border: 2px solid var(--teal); }
.btn-teal:hover, .btn-teal:focus { background: var(--teal-dark); border-color: var(--teal-dark); color: var(--white); }
.btn-outline-light-custom { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.7); }
.btn-outline-light-custom:hover, .btn-outline-light-custom:focus { background: rgba(255,255,255,0.12); color: var(--white); border-color: var(--white); }
.btn-outline-navy { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline-navy:hover, .btn-outline-navy:focus { background: var(--navy); color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(0, 169, 157, 0.28), transparent 60%),
    radial-gradient(900px 480px at 8% 110%, rgba(29, 78, 216, 0.30), transparent 62%),
    linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 55%, #16407C 100%);
  color: var(--white);
  padding: 5.5rem 0 6rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero .eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8FE8E0;
  border: 1px solid rgba(143, 232, 224, 0.45);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  margin-bottom: 1.4rem;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(1.7rem, 3.6vw, 2.9rem);
  max-width: 28ch;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.4rem;
}
.hero .hero-lead { font-size: clamp(1.02rem, 1.6vw, 1.25rem); color: #D7E2F2; max-width: 62ch; margin: 0 auto 2.2rem; }
.hero .btn { margin: 0.35rem 0.5rem; }
.hero .org-mark {
  font-family: 'Sora', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #9FB6DA;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* Inner-page hero (page header) */
.page-hero {
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 70%, #16407C 100%);
  color: var(--white);
  padding: 4.2rem 0 4.2rem;
}
.page-hero h1 { color: var(--white); font-size: clamp(1.8rem, 3.4vw, 2.7rem); margin-bottom: 0.9rem; }
.page-hero p { color: #D7E2F2; max-width: 70ch; margin: 0 auto; font-size: 1.1rem; }
.page-hero .breadcrumb-ish {
  color: #8FE8E0; font-size: 0.85rem; letter-spacing: 0.14em;
  text-transform: uppercase; font-weight: 700; margin-bottom: 1rem;
}

/* ---------- Sections ---------- */
section { padding: 4.5rem 0; }
.section-light { background: var(--light); }
.section-light-2 { background: var(--light-2); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }

.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 0.8rem;
}
.section-navy .section-eyebrow { color: #8FE8E0; }

h2.section-title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 1.1rem; }
.section-intro { color: var(--muted); max-width: 70ch; font-size: 1.08rem; }
.section-intro, .text-col { text-align: left; }
.centered { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Cards & feature blocks ---------- */
.card-custom {
  background: var(--white);
  border: 1px solid var(--light-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.9rem;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card-custom:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card-custom h3 { font-size: 1.15rem; margin-bottom: 0.7rem; }
.card-custom p { color: var(--muted); margin-bottom: 0; }

.icon-badge {
  width: 54px; height: 54px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: rgba(0, 169, 157, 0.12);
  color: var(--teal-dark);
  font-size: 1.5rem;
  margin-bottom: 1.1rem;
}
.icon-badge.blue { background: rgba(29, 78, 216, 0.10); color: var(--blue); }
.icon-badge.navy { background: rgba(18, 49, 94, 0.10); color: var(--navy); }

/* Numbered goal list (Mission) */
.goal-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--light-2);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  box-shadow: var(--shadow);
}
.goal-num {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--white);
  font-family: 'Sora', Arial, sans-serif;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
}

/* ---------- AI banner ---------- */
.ai-banner {
  background:
    radial-gradient(800px 400px at 90% 0%, rgba(0, 169, 157, 0.35), transparent 60%),
    linear-gradient(140deg, #0C2346 0%, #12315E 60%, #173C74 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 3rem;
  box-shadow: var(--shadow-hover);
}
.ai-banner h2, .ai-banner h3 { color: var(--white); }
.ai-banner .badge-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #8FE8E0;
  border: 1px solid rgba(143, 232, 224, 0.45);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  margin-bottom: 1rem;
}
.ai-feature {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  font-weight: 600;
  height: 100%;
}
.ai-feature .bi { color: #8FE8E0; margin-right: 0.5rem; }
.warning-box {
  background: rgba(192, 57, 43, 0.14);
  border: 1px solid rgba(255, 138, 122, 0.4);
  border-radius: 12px;
  padding: 1.2rem 1.4rem;
}
.warning-box .warning-label { font-weight: 700; color: #FFC9C2; margin-bottom: 0.5rem; }
.warning-item { color: #FFDAD5; padding: 0.15rem 0; }
.warning-item .bi { color: #FF8A7A; margin-right: 0.5rem; }
.warning-item.critical { color: #FF9E93; font-weight: 700; }
.ai-banner .note { color: #C3D3EA; font-size: 0.95rem; margin-top: 1.2rem; margin-bottom: 0; }

/* Rotator */
#riskRotator { min-height: 3.2em; }
.rotator-dot { display: inline-block; }

/* ---------- Timeline (Projects) ---------- */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px;
  width: 3px; border-radius: 3px;
  background: linear-gradient(var(--teal), var(--blue));
}
.timeline-item { position: relative; padding: 0 0 1.8rem 1rem; }
.timeline-item::before {
  content: ""; position: absolute; left: -1.55rem; top: 0.45rem;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--white); border: 4px solid var(--teal);
}
.timeline-item h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.timeline-item .tl-date {
  font-family: 'Sora', Arial, sans-serif;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em;
  color: var(--teal-dark); text-transform: uppercase; display: block; margin-bottom: 0.2rem;
}
.timeline-item p { color: var(--muted); margin-bottom: 0; }

/* ---------- CTA strip ---------- */
.cta-strip {
  background: linear-gradient(135deg, var(--teal) 0%, #0E8A80 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 2.8rem;
  box-shadow: var(--shadow-hover);
}
.cta-strip h2 { color: var(--white); font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.cta-strip p { color: #E2FAF7; margin-bottom: 1.6rem; }
.cta-strip .btn-white { background: var(--white); color: var(--teal-dark); border: 2px solid var(--white); }
.cta-strip .btn-white:hover { background: #EDFBF9; border-color: #EDFBF9; color: var(--teal-dark); }

/* ---------- Contact ---------- */
.contact-card {
  background: var(--white);
  border: 1px solid var(--light-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}
.contact-line { display: flex; gap: 0.9rem; align-items: flex-start; margin-bottom: 1.1rem; }
.contact-line .bi { color: var(--teal-dark); font-size: 1.2rem; margin-top: 0.2rem; }
.contact-line a { word-break: break-word; }
.form-control, .form-select {
  border-radius: 12px;
  border: 1.5px solid #D5DEE9;
  padding: 0.7rem 1rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 169, 157, 0.18);
}
.form-label { font-weight: 600; color: var(--navy); }

#formStatus { display: none; margin-top: 1rem; border-radius: 12px; padding: 0.9rem 1.1rem; font-weight: 600; }
#formStatus.success { display: block; background: rgba(0, 169, 157, 0.12); color: #00695F; border: 1px solid rgba(0,169,157,0.35); }
#formStatus.error { display: block; background: rgba(192, 57, 43, 0.10); color: var(--danger); border: 1px solid rgba(192,57,43,0.3); }

/* ---------- Legal / long text ---------- */
.legal-body h2 { font-size: 1.3rem; margin: 2.2rem 0 0.8rem; }
.legal-body h3 { font-size: 1.05rem; margin: 1.4rem 0 0.5rem; }
.legal-body p, .legal-body li { color: #3D4B5E; }
.legal-body ul { padding-left: 1.3rem; }

/* ---------- Facts table ---------- */
.fact-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.fact-table th, .fact-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--light-2);
  text-align: left;
  vertical-align: top;
}
.fact-table th { color: var(--navy); font-weight: 700; white-space: nowrap; width: 40%; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: #B9C7DD;
  padding: 3.5rem 0 2rem;
  font-size: 0.97rem;
}
.site-footer h3 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.site-footer a { color: #C9D6EA; text-decoration: none; }
.site-footer a:hover, .site-footer a:focus { color: #8FE8E0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  font-size: 0.88rem;
  color: #8DA1BF;
}
.footer-logo { height: 38px; width: auto; margin-bottom: 1rem; background: #fff; border-radius: 8px; padding: 4px 8px; }

/* ---------- Utility ---------- */
.mt-6 { margin-top: 3.5rem; }
.mb-6 { margin-bottom: 3.5rem; }
.lead-text { font-size: 1.12rem; }
strong { color: var(--navy); }
.section-navy strong, .hero strong, .ai-banner strong { color: inherit; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .site-header .navbar-collapse {
    background: var(--white);
    border: 1px solid var(--light-2);
    border-radius: var(--radius);
    margin-top: 0.75rem;
    padding: 0.9rem 1.1rem;
    box-shadow: var(--shadow);
  }
  .hero { padding: 4rem 0 4.5rem; }
  .hero h1 { max-width: none; }
}

@media (max-width: 575.98px) {
  section { padding: 3.2rem 0; }
  .ai-banner { padding: 1.8rem; }
  .cta-strip { padding: 2rem; }
  .navbar-brand .brand-logo { height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card-custom, .btn { transition: none; }
  .card-custom:hover { transform: none; }
}
