/*
Theme Name: Skuteczni Razem
Theme URI: https://skutecznirazem.pl/
Author: Skuteczni Razem
Description: Motyw dla Stowarzyszenia Samorządowego Skuteczni Razem.
Version: 1.11.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
Text Domain: skuteczni-razem
*/

@font-face {
  font-family: "Lato";
  src: url("assets/fonts/Lato-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --sr-blue: #4058a8;
  --sr-blue-dark: #17285f;
  --sr-orange: #ff7f16;
  --sr-orange-dark: #d96100;
  --sr-black: #080b12;
  --sr-ink: #151925;
  --sr-muted: #667085;
  --sr-paper: #f5f7fb;
  --sr-white: #ffffff;
  --sr-line: #e2e7f0;
  --sr-radius: 8px;
  --sr-shadow: 0 22px 60px rgba(13, 24, 62, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Lato", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--sr-ink);
  background: var(--sr-white);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
a { color: var(--sr-blue); text-decoration: none; }
a:hover { color: var(--sr-orange-dark); }
img { max-width: 100%; height: auto; display: block; }
.sr-wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.sr-main { min-height: 56vh; background: var(--sr-white); }

.sr-site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid rgba(64, 88, 168, .14);
  box-shadow: 0 10px 32px rgba(8, 11, 18, .05);
  backdrop-filter: blur(14px);
}
.sr-header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}
.sr-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--sr-blue-dark);
  font-weight: 900;
  min-width: 210px;
}
.sr-brand:hover { color: var(--sr-blue-dark); }
.sr-brand-logo {
  width: 76px;
  height: 58px;
  object-fit: contain;
}
.sr-brand strong {
  display: grid;
  gap: 1px;
  font-size: 18px;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0;
}
.sr-brand span {
  display: block;
  font-size: 12px;
  color: var(--sr-muted);
  font-weight: 700;
  letter-spacing: 0;
}
.sr-nav { display: flex; align-items: center; gap: 14px; }
.sr-menu { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.sr-menu li { position: relative; }
.sr-menu a {
  display: block;
  padding: 10px 11px;
  border-radius: 6px;
  color: var(--sr-blue-dark);
  font-weight: 800;
  font-size: 14px;
  line-height: 1.2;
}
.sr-menu a:hover {
  background: rgba(64, 88, 168, .08);
  color: var(--sr-blue);
}
.sr-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  padding: 8px;
  margin: 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--sr-line);
  box-shadow: var(--sr-shadow);
  border-radius: var(--sr-radius);
}
.sr-menu li:hover > .sub-menu { display: block; }
.sr-menu-toggle { display: none; border: 0; cursor: pointer; }

.sr-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: var(--sr-orange);
  color: #fff;
  font-weight: 900;
  line-height: 1.15;
  box-shadow: 0 12px 28px rgba(255, 127, 22, .26);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
}
.sr-button:hover {
  color: #fff;
  background: var(--sr-orange-dark);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(255, 127, 22, .34);
}
.sr-button.secondary {
  background: var(--sr-blue);
  box-shadow: 0 12px 28px rgba(64, 88, 168, .24);
}
.sr-button.secondary:hover { background: var(--sr-blue-dark); }
.sr-button.ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .38);
  box-shadow: none;
}
.sr-button.ghost:hover { background: rgba(255,255,255,.09); }

.sr-hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 127, 22, .24), transparent 27%),
    radial-gradient(circle at 8% 16%, rgba(64, 88, 168, .42), transparent 32%),
    linear-gradient(135deg, #060810 0%, #111a38 52%, #05070c 100%);
}
.sr-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 127, 22, .7), rgba(64, 88, 168, .6), transparent);
}
.sr-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
  padding: 92px 0 78px;
}
.sr-hero-content { max-width: 760px; }
.sr-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffb171;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 12px;
}
.sr-kicker::before {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--sr-orange);
}
.sr-hero h1 {
  margin: 16px 0 20px;
  font-size: clamp(42px, 6.3vw, 86px);
  line-height: .98;
  letter-spacing: 0;
  max-width: 860px;
}
.sr-hero p {
  margin: 0;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(18px, 2vw, 22px);
  max-width: 690px;
}
.sr-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.sr-hero-panel {
  position: relative;
  justify-self: end;
  width: min(690px, 100%);
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.sr-hero-logo-box {
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 22px;
  border-radius: 8px;
  background: #fff;
}
.sr-hero-logo-box img { max-height: 220px; object-fit: contain; }
.sr-hero-note {
  margin: 18px 0 0;
  color: rgba(255,255,255,.76);
  font-size: 14px;
}
.sr-action-map {
  margin-top: 16px;
  padding: 14px;
  border-radius: 8px;
  background: #fff;
  color: var(--sr-blue-dark);
}
.sr-action-map img {
  display: block;
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--sr-line);
}
.sr-map-label {
  margin: 0 0 10px;
  color: var(--sr-orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
.sr-action-map p:last-child {
  margin: 10px 0 0;
  color: #26345f;
  font-size: 14px;
  line-height: 1.45;
  max-width: none;
}
.sr-hero-map {
  position: relative;
  margin-right: min(-5vw, -24px);
}
.sr-hero-map img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  filter: drop-shadow(0 28px 46px rgba(0, 0, 0, .34));
}
.sr-hero-map-caption {
  position: absolute;
  left: 7%;
  bottom: 4%;
  max-width: 330px;
  padding: 12px 14px;
  border-left: 4px solid var(--sr-orange);
  border-radius: 8px;
  color: #fff;
  background: rgba(8, 11, 18, .72);
  backdrop-filter: blur(8px);
}
.sr-hero-map-caption strong,
.sr-hero-map-caption span {
  display: block;
}
.sr-hero-map-caption strong {
  font-size: 14px;
  color: #fff;
}
.sr-hero-map-caption span {
  margin-top: 4px;
  color: rgba(255,255,255,.78);
  font-size: 13px;
  line-height: 1.4;
}
.sr-section { padding: 82px 0; }
.sr-section.alt { background: var(--sr-paper); }
.sr-section.dark { color: #fff; background: var(--sr-black); }
.sr-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 34px;
}
.sr-section h2,
.sr-content h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.08;
  color: var(--sr-blue-dark);
}
.sr-section.dark h2 { color: #fff; }
.sr-lead {
  margin: 0;
  color: var(--sr-muted);
  font-size: 18px;
  max-width: 780px;
}
.sr-section.dark .sr-lead { color: rgba(255,255,255,.72); }
.sr-about-copy {
  display: grid;
  gap: 16px;
  max-width: 940px;
}
.sr-about-copy p {
  margin: 0;
  color: #26345f;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.68;
}
.sr-about-cards { margin-top: 30px; }
.sr-grid { display: grid; gap: 22px; }
.sr-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sr-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sr-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sr-card {
  background: #fff;
  border: 1px solid var(--sr-line);
  border-radius: var(--sr-radius);
  padding: 26px;
  box-shadow: 0 14px 40px rgba(13, 24, 62, .06);
}
.sr-card h3 {
  margin: 0 0 10px;
  color: var(--sr-blue-dark);
  font-size: 22px;
  line-height: 1.2;
}
.sr-card p { margin-bottom: 0; color: #3f4757; }
.sr-card.accent {
  border-top: 4px solid var(--sr-orange);
}
.sr-card.blue {
  border-top: 4px solid var(--sr-blue);
}
.sr-number {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 7px;
  color: #fff;
  background: var(--sr-blue);
  font-weight: 900;
}
.sr-photo-band {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 34px;
  align-items: center;
}
.sr-photo-placeholder {
  min-height: 380px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(64,88,168,.36);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(64,88,168,.08), rgba(255,127,22,.08)),
    #fff;
}
.sr-photo-placeholder img {
  max-width: 74%;
  max-height: 280px;
  object-fit: contain;
}
.sr-team-photo {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(64,88,168,.18);
  box-shadow: var(--sr-shadow);
  background: #fff;
}
.sr-team-photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.sr-facebook-widget {
  display: grid;
  place-items: center;
  padding: 18px;
  border: 1px solid var(--sr-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(13, 24, 62, .06);
}
.sr-facebook-widget iframe {
  width: min(100%, 500px);
  min-height: 650px;
  border: 0;
}
.sr-pdf-card {
  padding: 0;
  overflow: hidden;
}
.sr-pdf-frame {
  display: block;
  width: 100%;
  min-height: min(76vh, 760px);
  border: 0;
  background: var(--sr-paper);
}
.sr-payment-box {
  margin-top: 24px;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid rgba(64,88,168,.2);
  background: #fff;
  box-shadow: var(--sr-shadow);
}
.sr-payment-box h3 {
  margin: 0 0 12px;
  color: var(--sr-blue-dark);
}
.sr-payment-box dl {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
}
.sr-payment-box dl div {
  padding: 12px;
  border-radius: 7px;
  background: var(--sr-paper);
}
.sr-payment-box dt {
  color: var(--sr-muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}
.sr-payment-box dd {
  margin: 4px 0 0;
  color: var(--sr-blue-dark);
  font-weight: 900;
  word-break: break-word;
}
.sr-join-intro {
  max-width: 920px;
}
.sr-join-frame-card {
  padding: 0;
  overflow: hidden;
}
.sr-join-frame-wide {
  margin-top: 28px;
}
.sr-join-frame {
  display: block;
  width: 100%;
  min-height: 1180px;
  border: 0;
  background: #fff;
}
.sr-frame-fallback {
  margin: 0;
  padding: 12px 16px 16px;
  font-size: 14px;
}
.sr-support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .72fr);
  gap: 28px;
  align-items: start;
}
.sr-donation-card dl {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
}
.sr-donation-card dt {
  color: var(--sr-muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}
.sr-donation-card dd {
  margin: 4px 0 0;
  color: var(--sr-blue-dark);
  font-weight: 900;
}
.sr-bank-number {
  color: var(--sr-blue);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.15;
  word-break: break-word;
}
.sr-contact-card p:last-child { margin-bottom: 0; }
.sr-person { display: grid; gap: 14px; }
.sr-person-photo {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(64,88,168,.92), rgba(23,40,95,.96)),
    var(--sr-blue);
  font-weight: 900;
  font-size: clamp(28px, 4vw, 36px);
}
.sr-person:nth-child(2n) .sr-person-photo {
  background: linear-gradient(135deg, var(--sr-orange), var(--sr-orange-dark));
}

.sr-page-title {
  color: #fff;
  background:
    radial-gradient(circle at 86% 20%, rgba(255, 127, 22, .22), transparent 26%),
    linear-gradient(135deg, #060810, #18295f);
  padding: 76px 0 62px;
}
.sr-page-title h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.06;
  color: #fff;
}
.sr-content { padding: 54px 0; }
.sr-content p, .sr-content li { font-size: 17px; }
.sr-content a { font-weight: 800; }

.sr-footer {
  background: #060810;
  color: #d9e1f5;
  padding: 56px 0 30px;
}
.sr-footer a { color: #fff; }
.sr-footer h2,
.sr-footer h3 { color: #fff; margin-top: 0; }
.sr-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, .65fr);
  gap: 34px;
}
.sr-footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.sr-footer-brand img {
  width: 82px;
  height: 62px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 7px;
}
.sr-footer small { color: #9aa8c3; }
.sr-legal-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 24px;
  margin-top: 32px;
  border-top: 1px solid rgba(255,255,255,.14);
}

.sr-form {
  display: grid;
  gap: 18px;
  padding: 26px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--sr-line);
  box-shadow: var(--sr-shadow);
}
.sr-field label,
.sr-field legend {
  display: block;
  font-weight: 900;
  margin-bottom: 7px;
  color: var(--sr-blue-dark);
}
.sr-field input,
.sr-field textarea,
.sr-field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cfd7e6;
  border-radius: 7px;
  padding: 11px 12px;
  font: inherit;
  background: #fff;
}
.sr-field input:focus,
.sr-field textarea:focus,
.sr-field select:focus {
  outline: 3px solid rgba(255,127,22,.22);
  border-color: var(--sr-orange);
}
.sr-field textarea { min-height: 124px; resize: vertical; }
.sr-checkboxes { display: grid; gap: 9px; }
.sr-notice {
  border-left: 5px solid var(--sr-blue);
  background: #eef2ff;
  padding: 16px 18px;
  border-radius: 6px;
}
.sr-alert { border-left-color: var(--sr-orange); background: #fff3e8; }

@media (max-width: 1080px) {
  .sr-header-inner { gap: 16px; }
  .sr-menu a { padding: 10px 8px; font-size: 13px; }
}

@media (max-width: 860px) {
  .sr-wrap { width: min(100% - 28px, 1180px); }
  .sr-header-inner { align-items: center; min-height: 74px; flex-wrap: wrap; padding: 10px 0; }
  .sr-brand-logo { width: 62px; height: 48px; }
  .sr-brand strong { font-size: 15px; }
  .sr-menu-toggle { display: inline-flex; margin-left: auto; }
  .sr-nav { width: 100%; display: none; }
  .sr-nav.is-open { display: block; }
  .sr-menu { display: block; width: 100%; padding: 8px 0; }
  .sr-menu .sub-menu {
    position: static;
    display: block;
    box-shadow: none;
    border: 0;
    padding: 2px 0 2px 18px;
  }
  .sr-hero { min-height: auto; }
  .sr-hero-grid,
  .sr-photo-band,
  .sr-support-layout,
  .sr-grid.cols-4,
  .sr-grid.cols-3,
  .sr-grid.cols-2,
  .sr-footer-grid {
    grid-template-columns: 1fr;
  }
  .sr-hero-grid { padding: 56px 0 48px; }
  .sr-hero-panel { justify-self: stretch; }
  .sr-hero-map { margin: 6px 0 0; }
  .sr-hero-map-caption {
    position: static;
    max-width: none;
    margin-top: 12px;
  }
  .sr-hero-logo-box { min-height: 220px; }
  .sr-section { padding: 56px 0; }
  .sr-section-head { display: block; }
  .sr-section-head .sr-button { margin-top: 18px; }
}
