/*
Theme Name: LOWE Projekt UE
Theme URI: https://local.test/lowe
Author: Zespol LOWE
Description: Prosty motyw WordPress dla projektu LOWE z naciskiem na czytelnosc, dostepnosc (WCAG 2.1) i blog projektu.
Version: 1.0.0
Text Domain: lowe-projekt
*/

:root {
  --color-bg: #f4f2ee;
  --color-surface: #ffffff;
  --color-text: #17222e;
  --color-muted: #4a5a6a;
  --color-primary: #005fa3;
  --color-primary-dark: #00497e;
  --color-accent: #0e7aa7;
  --color-border: #d4dbe2;
  --shadow-soft: 0 12px 30px rgba(11, 35, 61, 0.12);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--color-text);
  background: linear-gradient(180deg, #f5f4ef 0%, #edf2f7 100%);
}

body.a11y-alt-font {
  font-family: Verdana, Tahoma, sans-serif;
}

a {
  color: var(--color-primary-dark);
}

a:hover,
a:focus-visible {
  color: #003357;
}

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

:focus-visible {
  outline: 3px solid #111111;
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -50px;
  left: 12px;
  background: #ffffff;
  color: #111111;
  padding: 10px 14px;
  z-index: 1200;
  border-radius: 8px;
  border: 2px solid #111111;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(4px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--color-border);
}

.top-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 20px;
}

.branding-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(320px, 2.4fr) minmax(120px, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
}

.branding-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 6px 10px;
}

.branding-item img {
  max-height: 52px;
  width: auto;
}

.branding-item-lowe,
.branding-item-powiat {
  border: 0;
  padding: 2px 4px;
  min-height: 52px;
}

.branding-item-lowe {
  justify-content: flex-start;
}

.branding-item-lowe img {
  max-height: 64px;
}

.branding-item-ue {
  min-height: 76px;
  padding: 2px 4px;
}

.branding-item-ue img {
  width: 100%;
  max-width: 560px;
  max-height: 72px;
  object-fit: contain;
}

.branding-item-powiat {
  justify-content: flex-end;
}

.branding-item-powiat img {
  max-height: 60px;
}

.tools-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.a11y-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.a11y-tools button {
  border: 1px solid #9fb3c6;
  background: #f5fbff;
  color: #112232;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.94rem;
}

.a11y-tools button:hover,
.a11y-tools button:focus-visible {
  background: #dfefff;
}

.a11y-tools button[aria-pressed="true"] {
  background: #b8dcff;
  border-color: #326a98;
  font-weight: 700;
}

.font-scale-indicator {
  align-self: center;
  font-weight: 700;
  color: #1f425f;
  font-size: 0.9rem;
}

.main-nav ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  gap: 18px;
  flex-wrap: wrap;
}

.main-nav a {
  text-decoration: none;
  color: #1d2e3f;
  font-weight: 700;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  text-decoration: underline;
}

.site-main {
  max-width: 1180px;
  margin: 24px auto;
  padding: 0 20px;
}

.hero {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: #e8edf2;
  margin-bottom: 26px;
}

.hero-media {
  position: relative;
  min-height: 410px;
  background: linear-gradient(120deg, rgba(18, 46, 72, 0.87), rgba(0, 95, 163, 0.44)),
    url("assets/images/hero.jpg") center/cover no-repeat;
  display: flex;
  align-items: flex-end;
}

.hero-content {
  color: #fff;
  padding: 30px;
  max-width: 700px;
}

.hero-content h1 {
  margin: 0 0 8px;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  line-height: 1.18;
}

.hero-content p {
  margin: 0;
  font-size: 1.1rem;
}

.section-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-soft);
}

.section-card h2 {
  margin-top: 0;
  font-size: 1.55rem;
  line-height: 1.2;
}

.section-card h3 {
  margin-bottom: 8px;
  line-height: 1.3;
}

.lead {
  font-size: 1.1rem;
  color: var(--color-muted);
}

.documents-page {
  display: flex;
  flex-direction: column;
}

.documents-hero h1 {
  margin-bottom: 8px;
}

.documents-cta {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: stretch;
  gap: 12px;
}

.documents-download-item {
  background: #f7fbff;
  border: 1px solid #d8e5f2;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.documents-download {
  font-size: 1rem;
  padding: 12px 18px;
  width: 100%;
  text-align: center;
}

.documents-meta {
  margin: 0;
  color: #36485a;
  font-size: 0.95rem;
}

.documents-content h2 {
  margin-bottom: 18px;
}

.documents-section + .documents-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.documents-section h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
}

.documents-list,
.documents-ordered-list {
  margin: 10px 0 0 0;
  padding-left: 22px;
}

.documents-list li,
.documents-ordered-list li {
  margin-bottom: 8px;
}

.documents-cta-bottom {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.project-highlight {
  background: linear-gradient(145deg, #f9fcff 0%, #e8f3ff 100%);
  border: 1px solid #b8d5ef;
}

.project-highlight-kicker {
  margin: 0 0 8px;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #0d5f99;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.project-highlight h2 {
  margin: 0 0 14px;
}

.project-highlight-ids {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.project-highlight-ids p {
  margin: 0;
  background: #ffffff;
  border: 1px solid #c2dbee;
  border-radius: 10px;
  padding: 10px 12px;
}

.project-highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.project-highlight-card {
  background: #ffffff;
  border: 1px solid #c2dbee;
  border-radius: 12px;
  padding: 16px;
}

.project-highlight-card h3 {
  margin-top: 0;
}

.project-highlight-card-wide {
  margin-top: 14px;
}

.project-highlight-list {
  margin: 0;
  padding-left: 22px;
}

.project-highlight-list li {
  margin-bottom: 7px;
}

.project-highlight-summary {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.project-highlight-tile {
  background: #ffffff;
  border: 1px solid #c2dbee;
  border-radius: 12px;
  padding: 16px;
}

.project-highlight-tile h3 {
  margin-top: 0;
}

.project-highlight-tags {
  margin: 18px 0 0;
  font-size: 1rem;
}

.compliance-highlight {
  background: linear-gradient(135deg, #fff8dc 0%, #fff0bf 100%);
  border: 2px solid #c27a00;
  box-shadow: 0 14px 28px rgba(125, 79, 0, 0.18);
}

.compliance-kicker {
  margin: 0 0 8px;
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  background: #8a5300;
  color: #ffffff;
  font-weight: 700;
}

.compliance-highlight h2 {
  margin: 0 0 10px;
}

.compliance-highlight p {
  margin-bottom: 10px;
}

.compliance-highlight p:last-child {
  margin-bottom: 0;
}

.compliance-highlight a {
  color: #4d2f00;
}

.highlight {
  background: linear-gradient(135deg, #e2f1ff 0%, #eaf9ff 100%);
  border-left: 6px solid var(--color-primary);
  padding: 16px;
  border-radius: 10px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 9px;
}

.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: #0a6a3e;
  font-weight: 900;
}

.columns-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.blog-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.blog-thumb {
  aspect-ratio: 16 / 9;
  background: #d7e1ea;
}

.blog-card-content {
  padding: 14px;
}

.blog-card h3 {
  margin-top: 0;
  font-size: 1.1rem;
}

.blog-meta {
  color: #445463;
  font-size: 0.9rem;
  margin: 0 0 8px;
}

.button-link {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 8px;
  font-weight: 700;
  border: 2px solid transparent;
}

.button-link:hover,
.button-link:focus-visible {
  background: var(--color-primary-dark);
  color: #fff;
}

.site-footer {
  margin-top: 30px;
  background: #0c2135;
  color: #f1f7ff;
}

.pre-footer-ue {
  background: transparent;
  padding: 14px 0 4px;
}

.pre-footer-ue-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 20px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

.pre-footer-ue img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 88px;
  object-fit: contain;
  margin: 0 auto;
}

.footer-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 22px;
  align-items: start;
}

.footer-logos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: center;
}

.footer-logo-item {
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  min-height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-logo-item img {
  max-height: 80px;
  width: auto;
}

.footer-logo-lowe img {
  max-height: 86px;
}

.footer-logo-powiat img {
  max-height: 78px;
}

.site-footer a {
  color: #cfe8ff;
}

.entry {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.entry img {
  border-radius: 8px;
}

.entry .wp-post-image {
  margin-bottom: 14px;
}

.pagination {
  margin-top: 20px;
}

.pagination .page-numbers {
  display: inline-block;
  padding: 7px 10px;
  margin-right: 6px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #fff;
  text-decoration: none;
}

.pagination .current {
  background: #d4e9ff;
  border-color: #7ba7cf;
  font-weight: 700;
}

body.a11y-high-contrast {
  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-text: #000000;
  --color-muted: #000000;
  --color-primary: #000000;
  --color-primary-dark: #000000;
  --color-accent: #000000;
  --color-border: #000000;
}

body.a11y-high-contrast {
  background: #ffffff;
}

body.a11y-high-contrast .site-header,
body.a11y-high-contrast .section-card,
body.a11y-high-contrast .entry,
body.a11y-high-contrast .blog-card,
body.a11y-high-contrast .branding-item-ue,
body.a11y-high-contrast .pre-footer-ue,
body.a11y-high-contrast .footer-logo-item,
body.a11y-high-contrast .a11y-tools button {
  border-width: 2px;
  box-shadow: none;
}

body.a11y-high-contrast .hero-media {
  background: linear-gradient(120deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.75)),
    url("assets/images/hero.jpg") center/cover no-repeat;
}

@media (max-width: 980px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .branding-row,
  .columns-2,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .tools-nav-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-logos {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 300px;
  }

  .hero-content {
    padding: 18px;
  }

  .documents-download {
    width: 100%;
    text-align: center;
  }

  .project-highlight-ids,
  .project-highlight-grid,
  .project-highlight-summary {
    grid-template-columns: 1fr;
  }

  .project-highlight-card,
  .project-highlight-tile {
    padding: 14px;
  }

  .compliance-highlight {
    border-width: 1px;
  }
}
