/*
Theme Name:  LZS Żywocice Child
Description: Child theme for LZS Żywocice table-tennis club website.
Template:    astra
Version:     1.0.0
Text Domain: lzs-zywocice-child
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --navy:      #1C2170;
  --navy-dark: #141852;
  --red:       #E2271E;
  --red-dark:  #b81e16;
  --yellow:    #FCE321;
  --bg:        #ffffff;
  --ink:       #14172e;
  --muted:     #5e6478;
  --line:      #e7e8ef;
  --shadow:    0 10px 30px rgba(20,23,46,.08);
  --radius:    14px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: .01em;
  margin: 0;
  line-height: 1.05;
}

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ============================================================
   HEADER / TOPBAR
   ============================================================ */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  color: #fff;
}
.topbar-inner {
  display: flex; align-items: center; gap: 18px;
  min-height: 72px;
  padding: 8px 24px;
  max-width: 1320px; margin: 0 auto;
  position: relative;
}
.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
/* Shared logo ring — used in both header (.brand) and footer */
.logo-ring {
  border-radius: 50%;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 2px var(--yellow), 0 4px 12px rgba(0,0,0,.25);
  flex-shrink: 0;
}
.brand .logo-ring { width: 60px; height: 60px; }
.brand .logo-ring img { width: 50px; height: 50px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.brand-sub {
  font-size: 11px;
  letter-spacing: .18em;
  color: #c8caea;
  text-transform: uppercase;
  margin-top: 4px;
}

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 8px;
  color: #fff;
  transition: background .15s, color .15s;
  cursor: pointer;
  background: none; border: 0;
  font-family: inherit;
}
.nav-link:hover, .nav-link.active { background: rgba(255,255,255,.08); }
.nav-link.active { color: var(--yellow); }
.nav-link .caret {
  width: 8px; height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg); margin-top: -2px; opacity: .8;
}

.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 240px;
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(20,23,46,.18);
  padding: 8px;
  opacity: 0; visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .15s, transform .15s, visibility .15s;
  border-top: 3px solid var(--red);
}
.nav-item:hover > .dropdown,
.nav-item.open > .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.dropdown a:hover { background: #f3f4fa; color: var(--red); }
.dropdown a.ext::after { content: "↗"; margin-left: 6px; color: var(--muted); font-size: 12px; }

.fb-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  margin-left: 8px;
  background: #fff;
  color: var(--navy);
  border-radius: 50%;
  font-weight: 800;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  transition: transform .15s, background .15s;
}
.fb-btn:hover { background: var(--yellow); transform: translateY(-1px); }

/* Reset Astra button defaults on the toggle */
.menu-toggle {
  display: none;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none;
  padding: 0 !important;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 10px;
  transition: transform .15s, background .15s, color .15s;
  cursor: pointer;
  border: 0;
  font-family: inherit;
}
.btn-red    { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-ghost  { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.4); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-yellow { background: var(--yellow); color: var(--navy); }
.btn-yellow:hover { background: #ffec5a; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 520px;
  background: #0c0f3a;
  color: #fff;
  overflow: hidden;
}
.hero-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .55;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28,33,112,.55) 0%, rgba(12,15,58,.85) 100%);
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: 1240px; margin: 0 auto; padding: 90px 24px 80px;
  display: grid; gap: 22px;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--yellow); font-weight: 600;
}
/* .hero-eyebrow::before handled by .hero-eyebrow .elementor-heading-title::before for WP */
.hero h1 {
  font-size: clamp(48px, 7vw, 92px);
  text-transform: uppercase;
  max-width: 14ch;
}
.hero h1 .accent { color: var(--yellow); }
.hero p.lede { max-width: 56ch; font-size: 17px; color: #d6d8ef; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* Stats strip */
.hero-stats {
  position: relative; z-index: 2;
  background: var(--yellow);
  color: var(--navy);
}
.hero-stats-inner {
  max-width: 1240px; margin: 0 auto; padding: 18px 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.stat { display: flex; align-items: baseline; gap: 12px; }
.stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 38px; font-weight: 700; line-height: 1;
}
.stat-lbl { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 80px 0; }
.section.alt { background: #f6f7fb; }
.section-head {
  display: flex; align-items: end; justify-content: space-between; gap: 24px;
  margin-bottom: 36px; flex-wrap: wrap;
}
.section-eyebrow {
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--red); font-weight: 700;
}
.section-eyebrow::before { content: "■ "; color: var(--red); }
.section-title {
  font-size: clamp(34px, 4.4vw, 54px);
  text-transform: uppercase;
  margin-top: 8px;
}
.section-title .accent { color: var(--red); }
.section-title .yellow { background: var(--yellow); padding: 0 8px; }
.section-foot { text-align: center; margin-top: 40px; }

/* ============================================================
   NEWS CARDS
   ============================================================ */
.news-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.news-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.news-thumb {
  aspect-ratio: 16 / 10;
  background: #e7e8ef center/cover no-repeat;
  position: relative;
}
.news-tag {
  position: absolute; top: 12px; left: 12px;
  background: var(--red); color: #fff;
  padding: 5px 10px; border-radius: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.news-tag.alt    { background: var(--navy); }
.news-tag.yellow { background: var(--yellow); color: var(--navy); }
.news-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-date { font-size: 12px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.news-title { font-size: 22px; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; line-height: 1.15; }
.news-excerpt { font-size: 14.5px; color: var(--muted); }
.news-more {
  margin-top: auto; padding-top: 10px;
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--red); display: inline-flex; align-items: center; gap: 6px;
}
.news-more::after { content: "→"; transition: transform .15s; }
.news-card:hover .news-more::after { transform: translateX(4px); }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}
.gallery .g-main { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
.gallery .g-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: zoom-in;
  background: #ddd center/cover no-repeat;
}
.gallery .g-item:not(.g-main) { aspect-ratio: 4 / 3; }
.gallery .g-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(28,33,112,.5));
  opacity: 0; transition: opacity .2s;
}
.gallery .g-item:hover::after { opacity: 1; }
.gallery .g-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 18px;
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 600;
  z-index: 2;
  transform: translateY(8px); opacity: 0; transition: transform .2s, opacity .2s;
}
.gallery .g-item:hover .g-caption { transform: translateY(0); opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(8,10,32,.92);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox-close {
  position: absolute; top: 22px; right: 24px;
  background: var(--red); color: #fff; border: 0;
  width: 44px; height: 44px; border-radius: 50%;
  font-size: 22px; cursor: pointer;
}

/* ============================================================
   SPONSORS
   ============================================================ */
.sponsors {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}
.sponsor-slot {
  aspect-ratio: 3 / 2;
  background: repeating-linear-gradient(45deg, #f3f4fa 0 10px, #ffffff 10px 20px);
  border: 1px dashed #c9cbde;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
  padding: 12px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy);
  color: #d6d8ef;
  padding: 60px 0 24px;
  border-top: 4px solid var(--red);
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px;
}
.footer h4 {
  color: #fff;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 16px;
}
.footer h4::after {
  content: ""; display: block; width: 36px; height: 3px;
  background: var(--yellow); margin-top: 8px;
}
.footer p, .footer a, .footer li { font-size: 14px; }
.footer a:hover { color: var(--yellow); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.contact-row { display: flex; gap: 10px; align-items: baseline; }
.contact-row .role {
  color: var(--yellow); font-weight: 600; font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase; min-width: 92px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 40px; padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-size: 13px; color: #9698c4;
}

/* ============================================================
   PAGE HERO (subpages)
   ============================================================ */
.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 70px 0 60px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: var(--red); opacity: .12;
}
.page-hero::after {
  content: ""; position: absolute; left: -60px; bottom: -120px;
  width: 280px; height: 280px; border-radius: 50%;
  background: var(--yellow); opacity: .1;
}
.page-hero .container { position: relative; z-index: 2; }
.crumbs { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); margin-bottom: 12px; }
.crumbs a { opacity: .7; }
.crumbs a:hover { opacity: 1; }
.page-hero h1 { font-size: clamp(40px, 6vw, 72px); text-transform: uppercase; }

/* ============================================================
   CALENDAR
   ============================================================ */
.calendar-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 32px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.cal-title { font-family: 'Barlow Condensed', sans-serif; font-size: 34px; text-transform: uppercase; }
.cal-nav { display: flex; gap: 8px; }
.cal-btn {
  width: 40px; height: 40px; border-radius: 8px;
  background: #f3f4fa; border: 0; cursor: pointer; font-size: 18px;
}
.cal-btn:hover { background: var(--navy); color: #fff; }
.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
.cal-dow {
  background: var(--navy); color: #fff;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  padding: 10px 12px; text-align: left; font-weight: 600;
}
.cal-cell {
  min-height: 110px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  padding: 8px; background: #fff;
  display: flex; flex-direction: column; gap: 4px;
}
.cal-cell:nth-child(7n+1) { border-left: 0; }
.cal-cell.out { background: #fafbfd; color: #b4b6c8; }
.cal-cell .d { font-weight: 700; font-size: 13px; }
.cal-cell.today .d { background: var(--red); color: #fff; padding: 2px 8px; border-radius: 6px; align-self: flex-start; }
.cal-evt { font-size: 11px; padding: 3px 6px; border-radius: 4px; font-weight: 600; line-height: 1.3; word-break: break-word; }
.cal-evt.training { background: #e6f0ff; color: var(--navy); }
.cal-evt.match    { background: #ffe2e0; color: var(--red); }
.cal-evt.tourn    { background: #fff5b3; color: #6b5a00; }
.legend { display: flex; flex-direction: column; gap: 14px; }
.legend-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.legend-card h3 { font-size: 20px; text-transform: uppercase; margin-bottom: 12px; font-family: 'Barlow Condensed', sans-serif; }
.legend-item { display: flex; align-items: center; gap: 10px; font-size: 14px; margin-bottom: 8px; }
.legend-dot { width: 14px; height: 14px; border-radius: 4px; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.contact-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 28px;
}
.contact-card + .contact-card { margin-top: 16px; }
.contact-card h3 { font-size: 22px; text-transform: uppercase; margin-bottom: 6px; font-family: 'Barlow Condensed', sans-serif; }
.contact-card .role-tag {
  display: inline-block; background: var(--yellow); color: var(--navy);
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 4px; margin-bottom: 12px;
}
.contact-card a.tel  { font-size: 26px; font-family: 'Barlow Condensed', sans-serif; color: var(--red); font-weight: 700; }
.contact-card a.mail { color: var(--navy); font-weight: 600; }

/* Contact Form 7 styling */
.wpcf7 .form-title { font-size: 26px; text-transform: uppercase; font-family: 'Barlow Condensed', sans-serif; margin-bottom: 18px; }
.wpcf7 p { margin-bottom: 16px; }
.wpcf7 label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
  width: 100%;
  font-family: inherit; font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 8px;
  background: #fafbfd;
  transition: border-color .15s, background .15s;
}
.wpcf7 input:focus,
.wpcf7 textarea:focus { outline: none; border-color: var(--navy); background: #fff; }
.wpcf7 textarea { min-height: 130px; resize: vertical; }
.wpcf7-submit {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px;
  font-weight: 600; font-size: 14px;
  letter-spacing: .06em; text-transform: uppercase;
  border-radius: 10px;
  background: var(--red); color: #fff;
  border: 0; cursor: pointer;
  transition: background .15s, transform .15s;
  font-family: inherit;
}
.wpcf7-submit:hover { background: var(--red-dark); transform: translateY(-1px); }
.wpcf7-response-output {
  padding: 12px; border-radius: 8px;
  background: #e6f9ed; color: #126d3c;
  font-weight: 600; margin-top: 8px;
  border: 0 !important;
}
.wpcf7 .wpcf7-not-valid-tip { font-size: 12px; color: var(--red); margin-top: 4px; }

/* ============================================================
   ARTICLES LIST (aktualnosci archive)
   ============================================================ */
.articles { display: grid; gap: 24px; }
.article-row {
  display: grid; grid-template-columns: 320px 1fr;
  gap: 24px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden;
  transition: transform .15s, box-shadow .15s;
}
.article-row:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.article-thumb { background: #ddd center/cover no-repeat; min-height: 200px; }
.article-body { padding: 24px 24px 24px 0; display: flex; flex-direction: column; gap: 10px; }
.article-body h3 { font-size: 26px; text-transform: uppercase; font-family: 'Barlow Condensed', sans-serif; }

/* ============================================================
   TIMELINE (Historia)
   ============================================================ */
.timeline {
  position: relative; max-width: 980px;
  margin: 0 auto; padding: 20px 0;
}
.timeline::before {
  content: "";
  position: absolute; left: 50%; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--red) 0%, var(--navy) 50%, var(--yellow) 100%);
  transform: translateX(-50%);
  border-radius: 2px;
}
.tl-item { position: relative; width: 50%; padding: 24px 56px 24px 0; }
.tl-item:nth-child(even) { margin-left: 50%; padding: 24px 0 24px 56px; }
.tl-dot {
  position: absolute; top: 36px; right: -11px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--red);
  box-shadow: 0 0 0 4px rgba(226,39,30,.15);
  z-index: 2;
}
.tl-item:nth-child(even) .tl-dot { right: auto; left: -11px; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(28,33,112,.15); }
.tl-item:nth-child(3n) .tl-dot    { border-color: var(--yellow); box-shadow: 0 0 0 4px rgba(252,227,33,.25); }
.tl-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 24px 26px;
  box-shadow: var(--shadow); position: relative;
}
.tl-card::before {
  content: ""; position: absolute; top: 32px;
  width: 16px; height: 16px;
  background: #fff;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.tl-item:nth-child(odd) .tl-card::before  { right: -9px; transform: rotate(-45deg); }
.tl-item:nth-child(even) .tl-card::before { left: -9px; transform: rotate(135deg); }
.tl-year {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 44px; font-weight: 700; line-height: 1;
  color: var(--red); margin-bottom: 6px;
}
.tl-item:nth-child(even) .tl-year { color: var(--navy); }
.tl-item:nth-child(3n) .tl-year   { color: #b3a000; }
.tl-tag {
  display: inline-block; background: var(--navy); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 4px; margin-bottom: 10px;
}
.tl-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 24px; font-weight: 700; text-transform: uppercase;
  line-height: 1.1; margin-bottom: 8px;
}
.tl-body { color: var(--muted); font-size: 14.5px; }
.tl-cap { text-align: center; position: relative; z-index: 2; }
.tl-cap-dot {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--yellow); color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 22px;
  box-shadow: 0 0 0 6px rgba(252,227,33,.25); margin: 12px 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .menu-toggle {
    display: inline-flex !important; align-items: center; justify-content: center;
    width: 40px; height: 40px; margin-left: auto; flex-shrink: 0;
    background: rgba(255,255,255,.12) !important;
    border: 1.5px solid rgba(255,255,255,.25) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    cursor: pointer; color: #fff;
    padding: 0 !important;
    transition: background .15s;
  }
  .menu-toggle:hover { background: rgba(255,255,255,.22) !important; }
  .menu-toggle span,
  .menu-toggle span::before,
  .menu-toggle span::after {
    content: ""; display: block; width: 22px; height: 2px;
    background: #fff; position: relative;
    transition: transform .22s ease, top .22s ease, background .22s ease;
  }
  .menu-toggle span::before { position: absolute; top: -7px; }
  .menu-toggle span::after  { position: absolute; top:  7px; }
  /* Hamburger → X when open */
  .menu-toggle.open span            { background: transparent; }
  .menu-toggle.open span::before    { top: 0; transform: rotate(45deg); }
  .menu-toggle.open span::after     { top: 0; transform: rotate(-45deg); }

  .nav {
    position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
    background: var(--navy);
    flex-direction: column; align-items: stretch;
    padding: 8px 12px 24px; gap: 2px;
    display: none;
    overflow-y: auto;
    border-top: 2px solid var(--red);
    z-index: 49;
  }
  body.admin-bar .nav               { top: calc(72px + 32px); }
  @media screen and (max-width: 782px) {
    body.admin-bar .nav             { top: calc(72px + 46px); }
  }
  .nav.open { display: flex; }
  .nav-link {
    padding: 14px 16px; justify-content: space-between; width: 100%;
    border-bottom: 1px solid rgba(255,255,255,.07);
    border-radius: 0;
  }
  .nav-link:hover, .nav-link.active { background: rgba(255,255,255,.06); border-radius: 8px; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; padding: 4px 0 4px 14px;
    background: transparent; color: #fff;
    display: none; border: 0;
  }
  .nav-item.open > .dropdown { display: block; }
  .dropdown a { color: #d6d8ef; padding: 10px 14px; border-radius: 6px; }
  .dropdown a:hover { background: rgba(255,255,255,.08); color: var(--yellow); }
  /* Facebook button styled as a nav link on mobile */
  .fb-btn {
    display: flex; align-items: center; gap: 10px;
    width: 100%; height: auto;
    background: none; border-radius: 0;
    padding: 14px 16px; margin: 0;
    font-size: 0; /* hide original "f" text */
    color: var(--yellow);
    border-bottom: 1px solid rgba(255,255,255,.07);
  }
  .fb-btn::before {
    content: "Facebook";
    font-size: 14px; font-weight: 700; font-family: 'Barlow Condensed', sans-serif;
    letter-spacing: .08em; text-transform: uppercase;
  }
  .fb-btn:hover { background: rgba(255,255,255,.06); }

  .hero-stats-inner { grid-template-columns: repeat(2, 1fr); gap: 16px 8px; }
  .stat             { flex-direction: column; align-items: flex-start; gap: 1px; }
  .news-grid        { grid-template-columns: 1fr; }
  .gallery          { grid-template-columns: 1fr 1fr; }
  .gallery .g-main  { grid-column: 1 / -1; }
  .footer-grid      { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer           { padding: 48px 0 20px; }
  .calendar-wrap    { grid-template-columns: 1fr; }
  .contact-grid     { grid-template-columns: 1fr; }
  .article-row      { grid-template-columns: 1fr; }
  .article-body     { padding: 0 22px 22px; }

  .contact-row { flex-direction: column; gap: 2px; align-items: flex-start; }
  .contact-row .role { min-width: 0; }

  .timeline::before { left: 18px; }
  .tl-item, .tl-item:nth-child(even) { width: 100%; margin-left: 0; padding: 14px 0 14px 50px; }
  .tl-item .tl-dot, .tl-item:nth-child(even) .tl-dot { left: 7px; right: auto; }
  .tl-item:nth-child(odd) .tl-card::before,
  .tl-item:nth-child(even) .tl-card::before { left: -9px; right: auto; transform: rotate(135deg); }
}

/* ============================================================
   ASTRA HEADING COLOR FIXES
   Astra overrides h1-h6 color globally — re-assert ours on
   every section that needs a specific heading colour.
   ============================================================ */

/* Dark/navy sections → white headings */
.hero h1,
.hero h2,
.hero h3,
.page-hero h1,
.page-hero h2,
.topbar h1,
.topbar h2 {
  color: #fff !important;
}

/* Footer headings already white in footer h4 rule, but re-assert */
.footer h4 { color: #fff !important; }

/* Light sections → ink headings */
.section h2,
.section h3,
.section-title,
.news-title,
.tl-title,
.contact-card h3,
.form h3,
.legend-card h3,
.article-body h3 {
  color: var(--ink);
}

/* Timeline year colours (override Astra dark reset) */
.tl-year                      { color: var(--red); }
.tl-item:nth-child(even) .tl-year { color: var(--navy); }
.tl-item:nth-child(3n) .tl-year   { color: #b3a000; }

/* Hero lede paragraph colour */
.hero p.lede { color: #d6d8ef !important; }
.hero-eyebrow { color: var(--yellow) !important; }

/* ============================================================
   WORDPRESS / ASTRA OVERRIDES
   ============================================================ */

/* Full-width content wrapper */
#lzs-content {
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
  display: block;
}

/* Strip all Astra content constraints */
#content, #primary, #main,
.site-content, .ast-container,
.entry-content, .ast-separate-container {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
}

/* Elementor wrapper full width */
.elementor,
.elementor-section-wrap {
  max-width: 100%;
  width: 100%;
}

/* Elementor stretched sections */
.elementor-section.elementor-section-stretched {
  width: 100vw !important;
  max-width: 100vw !important;
  position: relative !important;
  left: 0 !important;
  margin-left: 0 !important;
}

/* Admin bar — push our sticky topbar down */
body.admin-bar .topbar { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .topbar { top: 46px; }
}
/* Prevent WP adding top margin to body */
body.admin-bar { margin-top: 0 !important; padding-top: 0 !important; }

/* Remove Astra's default site wrapper padding */
.ast-page-builder-template .site-content,
.ast-page-builder-template #primary,
.elementor-page .site-content,
.elementor-page #primary {
  padding: 0 !important;
}

/* Remove Astra breadcrumbs and page title on builder pages */
.ast-breadcrumbs-wrapper,
.ast-above-header-wrap,
.ast-below-header-wrap { display: none; }

/* Prevent Astra from adding padding-top for the fixed header */
html { scroll-padding-top: 72px; }

/* Fix any Astra default link colours bleeding through */
a { color: inherit; }
a:hover { color: inherit; }

/* WP image alignment helpers */
.wp-block-image img { max-width: 100%; height: auto; }

/* ============================================================ */

@media (max-width: 560px) {
  .topbar-inner           { gap: 10px; padding: 8px 16px; }
  .brand-name             { font-size: 17px; }
  .brand-sub              { display: none; }
  .brand .logo-ring       { width: 46px; height: 46px; }
  .brand .logo-ring img   { width: 38px; height: 38px; }
  .hero-inner             { padding: 60px 24px 50px; }
  .hero-stats-inner       { grid-template-columns: 1fr 1fr; }
  /* Footer: logo+desc full-width, kontakt full-width, klub+rozgrywki side-by-side */
  .footer-grid            { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-grid > div:first-child  { grid-column: 1 / -1; }
  .footer-grid > div:nth-child(2) { grid-column: 1 / -1; }
  .gallery                { grid-template-columns: 1fr; }
  .cal-cell               { min-height: 64px; padding: 5px 4px; gap: 2px; }
  .cal-cell .d            { font-size: 12px; }
  .cal-cell.today .d      { padding: 1px 5px; font-size: 11px; }
  .cal-evt                { font-size: 9px; padding: 2px 4px; }
  .cal-dow                { padding: 8px 4px; font-size: 10px; letter-spacing: .06em; text-align: center; }
  .cal-head               { flex-direction: column; align-items: flex-start; gap: 12px; }
  .cal-title              { font-size: 28px; }
  .legend                 { display: grid; grid-template-columns: 1fr; gap: 12px; }
  .legend-card            { padding: 16px; }
  .footer-bottom          { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ── THE EVENTS CALENDAR ─────────────────────────────────────────── */
.tribe-events .tribe-events-l-container { padding-bottom: 60px; }
.tribe-events .tribe-common-l-container { max-width: 1320px; margin: 0 auto; padding: 0 40px; }

/* Month column headers — navy background */
.tribe-events-calendar-month__header-column { background: var(--navy) !important; padding: 10px 4px !important; display: flex !important; align-items: center !important; justify-content: center !important; }
.tribe-events-calendar-month__header-column-title { font-family: 'Barlow Condensed', sans-serif !important; font-size: 14px !important; font-weight: 700 !important; letter-spacing: .08em !important; text-transform: uppercase !important; color: #fff !important; background: none !important; }
.tribe-events-calendar-month__header { background: var(--navy) !important; }

/* Today highlight */
.tribe-events-calendar-month__body .tribe-events-calendar-month__calendar-event:first-child { margin-top: 2px; }

/* Event color coding by category slug via data or class */
.tribe-events-calendar-month__calendar-event-title-link { font-family: 'Inter', sans-serif !important; font-size: 11px !important; }

/* Trening — blue */
.tribe-events [class*="cat-trening"] .tribe-events-calendar-month__calendar-event-title-link,
.tribe-events .tribe-events-calendar-month__calendar-event.category-trening .tribe-events-calendar-month__calendar-event-title-link { color: #1a5fb4; }

/* Mecz ligowy — red */
.tribe-events [class*="cat-mecz"] .tribe-events-calendar-month__calendar-event-title-link,
.tribe-events .tribe-events-calendar-month__calendar-event.category-mecz-ligowy .tribe-events-calendar-month__calendar-event-title-link { color: var(--red); }

/* Turniej — yellow/dark */
.tribe-events [class*="cat-turniej"] .tribe-events-calendar-month__calendar-event-title-link,
.tribe-events .tribe-events-calendar-month__calendar-event.category-turniej .tribe-events-calendar-month__calendar-event-title-link { color: #b8860b; }

/* Find Events button — navy */
.tribe-events .tribe-events-c-search__button { background: var(--navy) !important; border-color: var(--navy) !important; font-family: 'Barlow Condensed', sans-serif !important; font-weight: 700 !important; letter-spacing: .05em !important; text-transform: uppercase !important; }

/* Date picker title */
.tribe-events-c-top-bar__datepicker-button { font-family: 'Barlow Condensed', sans-serif !important; font-size: 22px !important; font-weight: 700 !important; text-transform: uppercase !important; color: var(--ink) !important; }

/* ── ELEMENTOR WIDGET BRAND STYLES ──────────────────────────────── */

/* Elementor heading widget — match our heading style */
.elementor-widget-heading .elementor-heading-title { font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: .03em; font-weight: 700; }

/* Elementor text-editor widget body text */
.elementor-widget-text-editor { font-size: 16px; line-height: 1.75; color: var(--muted); }
.elementor-widget-text-editor p { margin-bottom: 1em; }

/* Eyebrow via CSS class on heading widget */
.lzs-eyebrow .elementor-heading-title { font-family: 'Barlow Condensed', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--red); display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.lzs-eyebrow .elementor-heading-title::before { content: ''; display: inline-block; width: 12px; height: 12px; background: var(--red); flex-shrink: 0; }

/* Red button via CSS class on button widget */
.lzs-btn-red .elementor-button { background: var(--red) !important; color: #fff !important; font-family: 'Barlow Condensed', sans-serif !important; font-size: 15px !important; font-weight: 700 !important; text-transform: uppercase !important; letter-spacing: .06em !important; padding: 14px 28px !important; border-radius: 8px !important; border: none !important; transition: background .2s !important; }
.lzs-btn-red .elementor-button:hover { background: var(--red-dark) !important; }

/* Yellow button */
.lzs-btn-yellow .elementor-button { background: var(--yellow) !important; color: var(--ink) !important; font-family: 'Barlow Condensed', sans-serif !important; font-size: 15px !important; font-weight: 700 !important; text-transform: uppercase !important; letter-spacing: .06em !important; padding: 14px 28px !important; border-radius: 8px !important; border: none !important; transition: background .2s !important; }
.lzs-btn-yellow .elementor-button:hover { background: #e6ce00 !important; }

/* Navy outline button */
.lzs-btn-outline .elementor-button { background: transparent !important; color: #fff !important; font-family: 'Barlow Condensed', sans-serif !important; font-size: 15px !important; font-weight: 700 !important; text-transform: uppercase !important; letter-spacing: .06em !important; padding: 13px 28px !important; border-radius: 8px !important; border: 2px solid rgba(255,255,255,.5) !important; transition: border-color .2s !important; }
.lzs-btn-outline .elementor-button:hover { border-color: #fff !important; }

/* Section title heading widget */
.lzs-section-title .elementor-heading-title { font-family: 'Barlow Condensed', sans-serif; font-size: clamp(32px,4vw,52px); font-weight: 800; color: var(--ink); text-transform: uppercase; line-height: 1.05; }
.lzs-section-title .elementor-heading-title .accent { color: var(--red); }

/* ── Hero fits exactly between header (76px) and stats bar (76px) ── */
.lzs-hero-section {
  height: calc(100vh - 152px) !important;
  min-height: 480px !important;            /* fallback for very short viewports */
  max-height: calc(100vh - 152px) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  padding-top: 40px !important;
  padding-bottom: 56px !important;
}

/* ── Push hero content (eyebrow, h1, CTA buttons) to bottom ── */
.lzs-hero-section .elementor-container {
  height: 100% !important;
  align-items: flex-end !important;
}
.lzs-hero-section .elementor-column { align-self: stretch !important; }
.lzs-hero-section .elementor-widget-wrap {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  height: 100% !important;
}

/* ── Hero Elementor widget overrides ─────────────────────── */
.hero-eyebrow .elementor-heading-title { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--yellow) !important; font-weight: 600; }
.hero-eyebrow .elementor-heading-title::before { content: ''; width: 36px; height: 2px; background: var(--yellow); flex-shrink: 0; }

.hero-h1-el .elementor-heading-title { font-size: clamp(48px, 7vw, 92px) !important; color: #fff !important; text-transform: uppercase; max-width: 14ch; line-height: 1.0 !important; }
.hero-h1-el .elementor-heading-title .accent { color: var(--yellow); }

.hero-lede-el p { max-width: 56ch; font-size: 17px !important; color: #d6d8ef !important; font-family: 'Inter', sans-serif !important; line-height: 1.6 !important; }

/* ── Gallery: wide-item alias ────────────────────────────── */
.gallery .g-item--wide { grid-column: 1 / -1; aspect-ratio: 21 / 9; }

/* ── Sponsors grid ───────────────────────────────────────── */
.sponsors-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.sponsor-box { aspect-ratio: 3 / 2; background: repeating-linear-gradient(45deg, #f3f4fa 0 10px, #ffffff 10px 20px); border: 1px dashed #c9cbde; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; text-align: center; padding: 12px; }

/* ── Responsive: hero h1 smaller on mobile ────────────────── */
@media (max-width: 560px) {
  .hero-h1-el .elementor-heading-title { font-size: clamp(36px, 11vw, 56px) !important; }
  .hero-lede-el p { font-size: 15px !important; }
  .tribe-events .tribe-common-l-container { padding: 0 16px; }
}

/* ── Safety-net: prevent huge Elementor column padding on mobile ─
   Only fires on very small screens where even 60px+ would clip content. */
@media (max-width: 480px) {
  .elementor-section.elementor-section-stretched > .elementor-container
  > .elementor-column > .elementor-widget-wrap.elementor-element-populated {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

/* ── Contact card tweaks ──────────────────────────────────── */
.contact-cards { display: grid; gap: 16px; }
.contact-card .form-title { font-size: 26px; text-transform: uppercase;
  font-family: 'Barlow Condensed', sans-serif; margin-bottom: 18px; }

/* ── Events list ─────────────────────────────────────────── */
.ev-wrap { max-width: 820px; }
.ev-section-label { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0 0 20px; display: flex; align-items: center; gap: 12px; }
.ev-section-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.ev-section-label--past { margin-top: 48px; }

.ev-list { display: flex; flex-direction: column; gap: 12px; }
.ev-item { display: flex; align-items: flex-start; gap: 20px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; transition: box-shadow .2s; }
.ev-item:hover { box-shadow: 0 4px 18px rgba(28,33,112,.08); }
.ev-item--past { opacity: .6; }

.ev-datebox { flex-shrink: 0; width: 54px; text-align: center; background: var(--bg-light); border-radius: 10px; padding: 10px 6px; }
.ev-day { display: block; font-family: 'Barlow Condensed', sans-serif; font-size: 28px; font-weight: 800; color: var(--navy); line-height: 1; }
.ev-mon { display: block; font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }

.ev-body { flex: 1; min-width: 0; }
.ev-tag { display: inline-block; font-family: 'Barlow Condensed', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 2px 8px; border-radius: 4px; margin-bottom: 6px; }
.ev-tag--mecz     { background: var(--red);    color: #fff; }
.ev-tag--turniej  { background: var(--yellow);  color: var(--ink); }
.ev-tag--trening  { background: var(--navy);    color: #fff; }
.ev-tag--inne     { background: var(--border);  color: var(--muted); }

.ev-title { font-family: 'Barlow Condensed', sans-serif; font-size: 20px; font-weight: 700; color: var(--ink); text-transform: uppercase; margin: 0 0 6px; line-height: 1.15; }
.ev-details { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--muted); }
.ev-details span::before { margin-right: 4px; }
.ev-time::before  { content: '🕐'; font-style: normal; }
.ev-loc::before   { content: '📍'; font-style: normal; }

.ev-empty { font-size: 15px; color: var(--muted); padding: 32px 0; }

@media (max-width: 480px) {
  .ev-item { padding: 16px; gap: 14px; }
  .ev-datebox { width: 46px; }
  .ev-day { font-size: 22px; }
}
