/* ========================================
   2KijeBB - Nordic Walking Bielsko Biała
   Clean CSS (no WordPress dependencies)
   ======================================== */

/* --- Custom Properties --- */
:root {
  --color-primary: #298857;
  --color-primary-dark: #29754B;
  --color-primary-darker: #295A4A;
  --color-accent: #f00069;
  --color-bg: #f7f8f8;
  --color-card: #f8f9fb;
  --color-white: #ffffff;
  --color-black: #000000;
  --color-divider: #4b7878;
  --color-text: #333333;
  --color-text-light: #666666;
  --font-main: 'Poppins', sans-serif;
  --max-width: 1200px;
  --radius-btn: 50px;
  --radius-card: 20px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, h5, p, ul, ol, figure { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-dark); }
ul, ol { padding-left: 1.5em; }

/* --- Base --- */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
  overflow-x: hidden;
}

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
   Header
   ======================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.site-header .logo img { height: 55px; width: auto; }
.site-header nav { display: flex; gap: 8px; }
.site-header nav a {
  padding: 8px 16px;
  font-weight: 500;
  font-size: 15px;
  color: var(--color-text);
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.site-header nav a:hover,
.site-header nav a.active {
  color: var(--color-primary);
  background: rgba(41,136,87,0.08);
}
.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.3s;
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--color-white);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 22px;
  font-weight: 600;
  color: var(--color-text);
  padding: 12px 24px;
}
.mobile-nav a:hover { color: var(--color-primary); }
.mobile-nav .close-btn {
  position: absolute;
  top: 20px; right: 24px;
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
  color: var(--color-text);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: var(--radius-btn);
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 16px;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: filter 0.2s, transform 0.2s;
}
.btn:hover {
  filter: brightness(0.9);
  transform: translateY(-1px);
  color: var(--color-white);
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn-accent {
  background: var(--color-accent);
  color: var(--color-white);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

/* ========================================
   Hero
   ======================================== */
.hero {
  background: var(--color-bg);
  overflow: hidden;
}
.hero .container {
  display: flex;
  align-items: center;
  gap: 35px;
  min-height: 80vh;
}
.hero-text { flex: 0 0 40%; }
.hero-image { flex: 0 0 60%; text-align: right; }
.hero-image img { max-height: 600px; margin-left: auto; }
.hero h1 {
  font-size: 100px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 16px;
}
.hero p {
  font-size: 18px;
  margin-bottom: 32px;
  color: var(--color-text-light);
}

/* ========================================
   Sections
   ======================================== */
.section {
  padding: 80px 0;
}

/* --- Regulamin page --- */
.regulamin-page {
  max-width: 820px;
}
.regulamin-header {
  text-align: center;
  padding-bottom: 32px;
  margin-bottom: 40px;
  border-bottom: 1px solid #e4e7ea;
}
.regulamin-logo {
  display: block;
  margin: 0 auto 20px;
  max-width: 180px;
  height: auto;
}
.regulamin-header h1 {
  font-size: 48px;
  font-weight: 700;
  color: var(--color-primary-darker);
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.regulamin-header h1::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  background: var(--color-primary);
  border-radius: 2px;
  margin: 16px auto 0;
}
.regulamin-meta {
  font-size: 16px;
  color: var(--color-text-light);
  font-style: italic;
  margin: 0;
}
.regulamin-lead {
  font-size: 19px;
  line-height: 1.7;
  text-align: center;
  color: var(--color-text);
  max-width: 680px;
  margin: 0 auto 48px;
}
.regulamin-list {
  counter-reset: regulamin;
  list-style: none;
  padding: 0;
  margin: 0;
}
.regulamin-list > li {
  counter-increment: regulamin;
  position: relative;
  padding: 16px 8px 16px 48px;
  margin: 0;
  line-height: 1.7;
  border-bottom: 1px solid #eef0f2;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.regulamin-list > li a {
  word-break: break-word;
}
.regulamin-list > li:last-child {
  border-bottom: none;
}
.regulamin-list > li::before {
  content: counter(regulamin) ".";
  position: absolute;
  left: 0;
  top: 16px;
  width: 36px;
  text-align: right;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .regulamin-header h1 { font-size: 36px; }
  .regulamin-lead { font-size: 17px; }
  .regulamin-list > li { padding: 14px 4px 14px 44px; }
  .regulamin-list > li::before { width: 36px; font-size: 17px; top: 14px; }
  .regulamin-logo { max-width: 140px; }
}

.section-title {
  font-size: 54px;
  font-weight: 700;
  text-align: center;
  line-height: 1.1;
  margin-bottom: 40px;
}

/* Divider */
.divider {
  width: 50px;
  height: 4px;
  background: var(--color-divider);
  border-radius: 2px;
  margin: 60px auto;
}

/* ========================================
   Two-column layout
   ======================================== */
.two-col {
  display: flex;
  gap: 35px;
  align-items: flex-start;
}
.two-col > * { flex: 1; }
.two-col.center { align-items: center; }

/* Facebook embeds */
.fb-embeds {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.fb-embeds iframe { border: none; border-radius: 12px; max-width: 100%; }

.text-center { text-align: center; }

/* ========================================
   Card
   ======================================== */
.card {
  background: var(--color-card);
  border: 1px solid #e0e0e0;
  border-radius: var(--radius-card);
  padding: 40px;
  max-width: 900px;
  margin: 0 auto;
}
.card h2 {
  font-size: 42px;
  margin-bottom: 16px;
}

/* ========================================
   Article list (checkmark)
   ======================================== */
.article-list {
  list-style: none;
  padding: 0;
}
.article-list li {
  padding: 10px 0;
  padding-left: 36px;
  position: relative;
  font-size: 17px;
}
.article-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 20px;
}
.article-list a {
  font-weight: 600;
  color: var(--color-primary);
}
.article-list a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

/* ========================================
   Page content (subpages)
   ======================================== */
.featured-image {
  max-width: 580px;
  margin: 56px auto 0;
  padding: 0 24px;
}
.featured-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
}
.content-area {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px;
}
.content-area h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.2;
}
.content-area h2 {
  font-size: 28px;
  font-weight: 700;
  margin-top: 48px;
  margin-bottom: 16px;
  color: var(--color-primary-darker);
}
.content-area h3 {
  font-size: 22px;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
}
.content-area p {
  margin-bottom: 16px;
}
.content-area ol,
.content-area ul {
  margin-bottom: 16px;
}
.content-area li {
  margin-bottom: 8px;
}
.content-area .subtitle {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 16px;
}
.content-area .note {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 16px 20px;
  border-radius: 8px;
  margin: 24px 0;
  font-style: italic;
}

/* Image in content */
.content-area figure {
  margin: 32px 0;
  border-radius: 12px;
  overflow: hidden;
}
.content-area figure img {
  width: 100%;
  border-radius: 12px;
}
.content-area figcaption {
  font-size: 14px;
  color: var(--color-text-light);
  text-align: center;
  margin-top: 8px;
}

/* Team member */
.team-member {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin: 40px 0;
}
.team-member img {
  width: 280px;
  border-radius: 16px;
  flex-shrink: 0;
}
.team-member h3 { margin-top: 0; }

/* ========================================
   Image gallery
   ======================================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0;
}
.gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s;
}
.gallery img:hover {
  transform: scale(1.03);
}

/* Map embed */
.map-embed {
  margin: 24px 0;
  border-radius: 12px;
  overflow: hidden;
}
.map-embed iframe {
  width: 100%;
  height: 300px;
  border: none;
}

/* ========================================
   Related articles
   ======================================== */
.related-articles {
  margin-top: 60px;
  background: var(--color-card);
  border: 1px solid #e0e0e0;
  border-radius: var(--radius-card);
  padding: 32px;
}
.related-articles h3 {
  margin-top: 0;
  margin-bottom: 16px;
}
.related-articles ul {
  list-style: none;
  padding: 0;
}
.related-articles li {
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
}
.related-articles li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}
.related-articles a {
  font-weight: 600;
  color: var(--color-primary);
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
  background: var(--color-bg);
  padding: 40px 0 24px;
  margin-top: 60px;
}
.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text);
  font-weight: 500;
}
.footer-social svg { fill: currentColor; }
.footer-social a:hover { color: var(--color-primary); }
.footer-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: var(--color-text-light);
  font-size: 14px;
  font-weight: 500;
}
.footer-nav a:hover { color: var(--color-primary); }
.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 14px;
  color: var(--color-text-light);
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #ddd;
}

/* Logo centered (regulamin) */
.logo-centered {
  text-align: center;
  margin-bottom: 24px;
}
.logo-centered img {
  display: inline-block;
  width: 200px;
}
.date-line {
  text-align: center;
  font-weight: 500;
  margin-bottom: 32px;
  color: var(--color-text-light);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 999px) {
  .hero .container { min-height: auto; padding-top: 40px; padding-bottom: 40px; }
  .hero h1 { font-size: 60px; }
  .section-title { font-size: 40px; }
  .hero-text { flex: 0 0 55%; }
  .hero-image { flex: 0 0 45%; }
  .site-header nav { display: none; }
  .hamburger { display: block; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .team-member { flex-direction: column; }
  .team-member img { width: 100%; max-width: 300px; }
}

@media (max-width: 689px) {
  body { font-size: 16px; }
  .hero .container {
    flex-direction: column;
    text-align: center;
    padding-top: 60px;
    padding-bottom: 30px;
  }
  .hero-text, .hero-image { flex: none; width: 100%; }
  .hero-image { text-align: center; }
  .hero-image img { max-height: 350px; margin: 0 auto; }
  .hero h1 { font-size: 48px; }
  .hero p { font-size: 16px; }
  .section { padding: 50px 0; }
  .section-title { font-size: 32px; }
  .card { padding: 24px; }
  .card h2 { font-size: 28px; }
  .two-col { flex-direction: column; }
  .fb-embeds { flex-direction: column; align-items: center; }
  .footer-content { flex-direction: column; text-align: center; }
  .footer-nav { justify-content: center; }
  .content-area h1 { font-size: 32px; }
  .content-area h2 { font-size: 24px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery img { height: 200px; }
  .header-cta .btn { display: none; }
  .featured-image { margin-top: 32px; }
  .featured-image img { border-radius: 12px; }
}

/* --- Cookie banner --- */
.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  max-width: 900px;
  margin: 0 auto;
  background: var(--color-white);
  color: var(--color-text);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-card);
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  padding: 18px 22px;
  display: none;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  line-height: 1.5;
}
.cookie-banner.show { display: flex; }
.cookie-banner p { margin: 0; flex: 1; }
.cookie-banner a { color: var(--color-primary); text-decoration: underline; }
.cookie-banner .btn { flex-shrink: 0; }
@media (max-width: 600px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 12px;
  }
}
