/* =========================================================
   CENTRUM PRAW OBYWATELSKICH I BADAŃ NAD DEMOKRACJĄ
   kindaction.info — custom styles (Bootstrap 5 base)
   ========================================================= */

:root {
  --cpo-red: #ae0f0a;
  --cpo-red-dark: #8a0b07;
  --ink: #1d1d1b;
  --gray: #63625f;
  --bg-light: #f7f6f4;
  --line: #e4e1dd;
  --dark: #161616;
  --font-head: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: #fff;
  line-height: 1.75;
  font-size: 1rem;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink);
}

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

a { color: var(--cpo-red); }
a:hover { color: var(--cpo-red-dark); }

:focus-visible {
  outline: 3px solid var(--cpo-red);
  outline-offset: 2px;
}

::selection { background: var(--cpo-red); color: #fff; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--dark);
  color: #cfcdca;
  font-size: .82rem;
  padding: .4rem 0;
}
.topbar a { color: #cfcdca; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar .sep { color: #4d4d4d; margin: 0 .6rem; }

/* ---------- Header / navbar ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.site-header .navbar { padding-top: .75rem; padding-bottom: .75rem; }
.brand-logo { height: 46px; width: auto; }

.navbar-nav { flex-wrap: wrap; }

.navbar-nav .nav-link {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .88rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--ink);
  padding: .5rem .55rem;
  white-space: nowrap;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--cpo-red); }

.navbar-toggler { border-color: var(--line); flex-shrink: 0; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(174,15,10,.25); }

@media (min-width: 992px) {
  .navbar-collapse { flex-direction: row; align-items: center; }
}

@media (max-width: 1399.98px) {
  .brand-logo { height: 40px; }
  .navbar-nav .nav-link { font-size: .82rem; padding: .5rem .45rem; }
}

/* Language switch */
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  margin-left: .75rem;
  flex-shrink: 0;
  align-self: center;
}
.lang-btn {
  font-family: var(--font-head);
  font-size: .82rem;
  letter-spacing: .06em;
  padding: .35rem .7rem;
  display: inline-flex;
  align-items: center;
  background: #fff;
  color: var(--gray);
  border: 0;
  cursor: pointer;
  line-height: 1.4;
}
.lang-btn[aria-pressed="true"] {
  background: var(--cpo-red);
  color: #fff;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--dark);
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(15,15,15,.82) 0%, rgba(15,15,15,.55) 55%, rgba(15,15,15,.35) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 6.5rem 0 6rem;
  max-width: 780px;
}
.hero-content .kicker { color: #f0b9b7; }
.hero-content h1,
.hero-content .hero-title {
  color: #fff;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.15;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.hero-content p {
  color: #eceae7;
  font-size: 1.1rem;
  max-width: 640px;
}

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--dark);
}
.page-hero .hero-img { opacity: .45; }
.page-hero .hero-content { padding: 4.5rem 0 4rem; max-width: 900px; }
.page-hero h1 {
  color: #fff;
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  text-transform: uppercase;
  margin: 0;
}

/* ---------- Kickers & sections ---------- */
.kicker {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .85rem;
  font-weight: 500;
  color: var(--cpo-red);
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .9rem;
}
.kicker::before {
  content: "";
  width: 34px;
  height: 3px;
  background: var(--cpo-red);
  flex-shrink: 0;
}
.kicker.kicker-center { justify-content: center; }

section { padding: 4.5rem 0; }
section.bg-light-section { background: var(--bg-light); }

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-lead {
  color: var(--gray);
  font-size: 1.05rem;
  max-width: 760px;
}
.section-lead.centered { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn-cpo {
  display: inline-block;
  background: var(--cpo-red);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .92rem;
  padding: .8rem 1.6rem;
  border: 1px solid var(--cpo-red);
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
  cursor: pointer;
}
.btn-cpo:hover { background: var(--cpo-red-dark); border-color: var(--cpo-red-dark); color: #fff; }

.btn-outline-cpo {
  display: inline-block;
  background: transparent;
  color: var(--cpo-red);
  font-family: var(--font-head);
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .92rem;
  padding: .8rem 1.6rem;
  border: 1px solid var(--cpo-red);
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.btn-outline-cpo:hover { background: var(--cpo-red); color: #fff; }

.btn-cpo-light {
  display: inline-block;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .92rem;
  padding: .8rem 1.6rem;
  border: 1px solid #fff;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.btn-cpo-light:hover { background: transparent; color: #fff; border-color: #fff; }

/* ---------- Cards ---------- */
.card-cpo {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--cpo-red);
  padding: 1.9rem 1.7rem;
  height: auto;
}
.card-cpo h3 {
  font-size: 1.25rem;
  text-transform: uppercase;
  margin-bottom: .8rem;
}
.card-cpo p:last-child { margin-bottom: 0; }
.card-cpo .card-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 600;
  color: var(--cpo-red);
  line-height: 1;
  margin-bottom: .9rem;
}

/* ---------- Project cards ---------- */
.project-card {
  background: #fff;
  border: 1px solid var(--line);
  height: auto;
}
.project-card .pc-body { padding: 1.4rem 1.4rem 1.6rem; }
.project-card img.pc-thumb {
  width: 100%;
  aspect-ratio: 8 / 5;
  object-fit: cover;
}
.project-card h3 {
  font-size: 1.08rem;
  text-transform: uppercase;
  line-height: 1.35;
  margin-bottom: .6rem;
}
.project-card .pc-meta {
  font-size: .85rem;
  color: var(--gray);
  margin-bottom: .5rem;
}
.project-card .pc-desc { font-size: .95rem; color: #3c3b39; }
.pc-tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cpo-red);
  border: 1px solid var(--cpo-red);
  padding: .15rem .55rem;
  margin-bottom: .8rem;
}

/* ---------- Numbered lists (goals / forms) ---------- */
.num-list { list-style: none; padding: 0; margin: 0; counter-reset: item; }
.num-list li {
  counter-increment: item;
  position: relative;
  padding: 1rem 0 1rem 3.4rem;
  border-bottom: 1px solid var(--line);
}
.num-list li:last-child { border-bottom: 0; }
.num-list li::before {
  content: counter(item, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--cpo-red);
}

/* ---------- Publications ---------- */
.pub-item {
  border: 1px solid var(--line);
  background: #fff;
  padding: 1.4rem 1.5rem;
  height: auto;
}
.pub-item h3 {
  font-size: 1.05rem;
  line-height: 1.4;
  margin-bottom: .5rem;
  text-transform: none;
}
.pub-item .pub-authors { color: var(--gray); font-size: .92rem; margin-bottom: .8rem; }
.pub-item .pub-link {
  font-family: var(--font-head);
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.pub-item .pub-link img { width: 20px; height: 20px; }

/* ---------- Reports / document rows ---------- */
.doc-row {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  border: 1px solid var(--line);
  background: #fff;
  padding: 1.2rem 1.4rem;
}
.doc-row img { width: 44px; height: 44px; flex-shrink: 0; }
.doc-row .doc-title { font-family: var(--font-head); font-size: 1.02rem; text-transform: uppercase; margin: 0; }
.doc-row .doc-sub { color: var(--gray); font-size: .88rem; margin: 0; }
.doc-row .doc-link { margin-left: auto; flex-shrink: 0; }

/* ---------- Banner (activities page) ---------- */
.page-banner {
  position: relative;
  overflow: hidden;
}
.page-banner img {
  width: 100%;
  height: clamp(180px, 26vw, 380px);
  object-fit: cover;
}

/* ---------- Info cards (contact) ---------- */
.info-card {
  background: var(--bg-light);
  border: 1px solid var(--line);
  padding: 1.6rem 1.6rem 1.4rem;
  height: auto;
}
.info-card h3 {
  font-size: 1.05rem;
  text-transform: uppercase;
  margin-bottom: .8rem;
}
.info-card p, .info-card li { font-size: .95rem; margin-bottom: .35rem; }
.info-card ul { list-style: none; padding: 0; margin: 0; }
.info-card a { color: var(--cpo-red); text-decoration: none; }
.info-card a:hover { text-decoration: underline; }
.info-card .strong-line { font-weight: 600; }

/* ---------- Form ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--cpo-red);
  padding: 2rem 1.9rem;
  height: auto;
}
.form-card label {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .88rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: .35rem;
}
.form-control, .form-check-input {
  border-radius: 0;
  border: 1px solid #c9c6c1;
}
.form-control:focus {
  border-color: var(--cpo-red);
  box-shadow: 0 0 0 3px rgba(174,15,10,.15);
}
.form-check-input:checked { background-color: var(--cpo-red); border-color: var(--cpo-red); }
.form-check-input:focus { box-shadow: 0 0 0 3px rgba(174,15,10,.15); border-color: var(--cpo-red); }
.consent-label { text-transform: none !important; font-family: var(--font-body) !important; font-size: .88rem !important; letter-spacing: 0 !important; }
#formStatus { margin-top: 1rem; font-size: .95rem; }
#formStatus.is-error { color: var(--cpo-red); }
#formStatus.is-success { color: #1e7d32; }

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ---------- Highlight band ---------- */
.band {
  background: var(--dark);
  color: #e9e7e4;
  padding: 4.5rem 0;
}
.band h2, .band h3 { color: #fff; }
.band .kicker { color: #f0b9b7; }
.band .section-lead { color: #c9c7c3; }
.band-img { border: 1px solid #333; }

/* ---------- Text blocks ---------- */
.lead-text { font-size: 1.08rem; }
.prose p { margin-bottom: 1.1rem; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: #C2C2C2;
  color: #333333;
  padding: 3.5rem 0 2rem;
  font-size: .92rem;
}
.site-footer h3 {
  color: #1f1f1f;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1rem;
}
.site-footer a { color: #333333; text-decoration: none; }
.site-footer a:hover { color: #000000; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.footer-logo { height: 46px; width: auto; margin-bottom: 1rem; }
@media (max-width: 575.98px) { .footer-logo { height: 40px; } }
.footer-legal {
  text-align: center;
  border-top: 1px solid #9a9a9a;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: .85rem;
}
.footer-legal p { margin-bottom: .3rem; }

/* ---------- Utility ---------- */
.mt-small { margin-top: 1.25rem; }
.mt-medium { margin-top: 2rem; }
.mb-medium { margin-bottom: 2rem; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--cpo-red);
  color: #fff;
  padding: .6rem 1rem;
  z-index: 2000;
}
.skip-link:focus { left: 8px; top: 8px; color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .hero-content { padding: 5rem 0 4.5rem; }
  .navbar-collapse {
    border-top: 1px solid var(--line);
    margin-top: .75rem;
    padding-top: .5rem;
  }
  .lang-switch { margin: .75rem 0 0; }
  .doc-row { flex-wrap: wrap; }
  .doc-row .doc-link { margin-left: 0; }
  section { padding: 3.5rem 0; }
}

@media (max-width: 575.98px) {
  .brand-logo { height: 36px; }
  .hero-content { padding: 4rem 0 3.5rem; }
  .hero-content p { font-size: 1rem; }
  .form-card { padding: 1.5rem 1.2rem; }
  .topbar { font-size: .78rem; }
}
