/* ==========================================================================
   KLUB WALKI MACO — style.css
   ========================================================================== */

:root {
  --bg-dark: #14161c;
  --bg-darker: #0b0c10;
  --bg-panel: #1c1f27;
  --bg-light: #f7f4ee;
  --bg-light-alt: #eeeae1;
  --red: #d81e3f;
  --red-dark: #9c1530;
  --red-glow: rgba(216, 30, 63, 0.35);
  --gold: #f0a500;
  --text-light: #f6f4ef;
  --text-muted: #b7b9c2;
  --text-dark: #1a1a1a;
  --text-dark-muted: #55565f;
  --border-dark: rgba(255, 255, 255, 0.08);
  --border-light: rgba(0, 0, 0, 0.08);
  --radius: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  --container: 1180px;
  --ff-head: "Oswald", "Arial Narrow", sans-serif;
  --ff-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--ff-body);
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--ff-head);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--text-dark);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--text-dark-muted); }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-head);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--gold);
  display: inline-block;
}

.section {
  padding: 88px 0;
}
.section--tight { padding: 56px 0; }
.section--dark {
  background: var(--bg-dark);
  color: var(--text-light);
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--text-light); }
.section--dark p { color: var(--text-muted); }
.section--alt { background: var(--bg-light-alt); }

.section-head {
  max-width: 680px;
  margin: 0 0 44px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-head);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 20px var(--red-glow);
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-2px); }
.section:not(.section--dark) .btn-ghost:hover { background: rgba(0, 0, 0, 0.05); }
.btn-gold { background: var(--gold); color: #1a1200; }
.btn-gold:hover { background: #ffb700; transform: translateY(-2px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 12, 16, 0.97);
  border-bottom: 1px solid var(--border-dark);
}
/* Note: intentionally no backdrop-filter here — it would create a new
   containing block for the fixed-position mobile .nav panel below,
   trapping it inside the header's own box instead of the viewport. */
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.brand__mark {
  width: 42px;
  height: 42px;
  flex: none;
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand__name {
  font-family: var(--ff-head);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.brand__tag {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  font-family: var(--ff-head);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 10px 14px;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.nav a.is-active { color: var(--gold); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-dark);
  color: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 880px) {
  .nav {
    position: fixed;
    inset: 82px 0 0 0;
    background: var(--bg-darker);
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    gap: 4px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    overflow-y: auto;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav a { padding: 16px; font-size: 1rem; border-bottom: 1px solid var(--border-dark); }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(216, 30, 63, 0.35), transparent 55%),
    radial-gradient(ellipse at 85% 80%, rgba(240, 165, 0, 0.18), transparent 50%),
    linear-gradient(160deg, var(--bg-darker) 0%, var(--bg-dark) 60%);
  color: #fff;
  padding: 120px 0 100px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.035) 0 2px, transparent 2px 34px);
  pointer-events: none;
}
.hero--photo {
  background-image:
    linear-gradient(100deg, rgba(11,12,16,0.93) 28%, rgba(11,12,16,0.72) 50%, rgba(11,12,16,0.4) 78%),
    linear-gradient(0deg, rgba(11,12,16,0.75), rgba(11,12,16,0.2) 40%),
    url("../img/photos/hero-team.jpg");
  background-size: cover;
  background-position: center 22%;
}
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 em {
  font-style: normal;
  color: var(--red);
  text-shadow: 0 0 30px var(--red-glow);
}
.hero p.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.hero-stats .stat strong {
  display: block;
  font-family: var(--ff-head);
  font-size: 2rem;
  color: var(--gold);
}
.hero-stats .stat span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.hero-visual {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.hero-visual__badge {
  width: 100%;
  background: rgba(11,12,16,0.72);
  backdrop-filter: none;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.hero-visual__badge strong { color: #fff; display: block; font-family: var(--ff-head); letter-spacing: 0.04em; }

@media (max-width: 880px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { min-height: 180px; order: -1; }
}

/* Authentic club logo shown full-detail on light backgrounds */
.brand-strip {
  text-align: center;
  padding: 52px 0;
}
.brand-strip img { width: 148px; margin: 0 auto 18px; }
.brand-strip p { max-width: 56ch; margin: 0 auto; }

/* ---------- Page header (non-home pages) ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--bg-darker), var(--bg-dark));
  color: #fff;
  padding: 72px 0 56px;
  position: relative;
}
.page-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--gold));
}
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.breadcrumb {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--gold); }

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 24px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) {
  .grid--3, .grid--4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.card--dark {
  background: var(--bg-panel);
  border-color: var(--border-dark);
  color: var(--text-light);
}
.card--dark h3 { color: #fff; }
.card--dark p { color: var(--text-muted); }

.discipline-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-dark);
  background: var(--bg-panel);
  color: var(--text-light);
  display: flex;
  flex-direction: column;
}
.discipline-card__top {
  padding: 26px 26px 0;
  display: flex;
  align-items: center;
  gap: 14px;
}
.discipline-card__icon {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 10px;
  background: linear-gradient(150deg, var(--red), var(--red-dark));
  display: flex;
  align-items: center;
  justify-content: center;
}
.discipline-card__icon svg { width: 26px; height: 26px; color: #fff; }
.discipline-card h3 { margin: 0; color: #fff; }
.discipline-card__body { padding: 18px 26px 28px; }
.discipline-card__body p { color: var(--text-muted); font-size: 0.95rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 26px 26px; }
.tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(240, 165, 0, 0.14);
  color: var(--gold);
  border: 1px solid rgba(240, 165, 0, 0.3);
}

/* ---------- Timeline (aktualności) ---------- */
.timeline { border-left: 2px solid var(--border-dark); margin-left: 6px; }
.timeline-item {
  position: relative;
  padding: 4px 0 34px 28px;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid var(--bg-dark);
  box-shadow: 0 0 0 2px var(--red);
}
.timeline-item .date {
  display: inline-block;
  font-family: var(--ff-head);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--red);
  margin-bottom: 6px;
}
.timeline-item h3 { margin-bottom: 6px; font-size: 1.1rem; }
.timeline-item--muted { opacity: 0.75; }
.timeline-item__photo {
  display: block;
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 10px 0 14px;
}

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border-light); }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--border-light); font-size: 0.95rem; }
thead th {
  font-family: var(--ff-head);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  background: var(--bg-light-alt);
  color: var(--text-dark-muted);
}
tbody tr:last-child td { border-bottom: none; }

/* ---------- Schedule chips ---------- */
.schedule-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.schedule-chip {
  flex: 1 1 220px;
  background: var(--bg-panel);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 20px 22px;
  color: var(--text-light);
}
.schedule-chip .day {
  font-family: var(--ff-head);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gold);
  font-size: 0.85rem;
  margin-bottom: 6px;
}
.schedule-chip .time { font-family: var(--ff-head); font-size: 1.5rem; }
.schedule-chip .loc { color: var(--text-muted); font-size: 0.85rem; margin-top: 4px; }

/* ---------- Photo placeholder (media page) ---------- */
.photo-slot {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(216,30,63,0.14), rgba(240,165,0,0.10)),
    repeating-linear-gradient(45deg, rgba(0,0,0,0.05) 0 10px, transparent 10px 20px);
  border: 1px dashed var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: var(--text-dark-muted);
  text-align: center;
  padding: 12px;
}
.photo-slot svg { width: 30px; height: 30px; opacity: 0.5; }
.photo-slot span { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; }

.photo-real {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.photo-real img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; cursor: zoom-in; }
.photo-real:hover img { transform: scale(1.05); }
.timeline-item__photo { cursor: zoom-in; }

/* ---------- Lightbox (photo preview) ---------- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 9, 12, 0.94);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 56px;
}
.lightbox-overlay.is-open { display: flex; }
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 84vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(20, 22, 28, 0.85);
  border: 1px solid var(--border-dark);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
  padding: 0;
}
.lightbox-close svg, .lightbox-prev svg, .lightbox-next svg { width: 20px; height: 20px; }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: var(--red); border-color: var(--red); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lightbox-overlay { padding: 20px; }
  .lightbox-prev, .lightbox-next { width: 38px; height: 38px; }
  .lightbox-close { top: 14px; right: 14px; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}

/* ---------- Partner list ---------- */
.partner-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 26px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
}
.partner-item__mark {
  width: 46px; height: 46px; flex: none; border-radius: 10px;
  background: linear-gradient(150deg, var(--bg-dark), var(--bg-panel));
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-family: var(--ff-head); font-size: 1.1rem;
}

/* ---------- Trainer credential list ---------- */
.cred-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 26px;
}
@media (max-width: 700px) { .cred-grid { grid-template-columns: 1fr; } }
.cred-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-dark);
  font-size: 0.92rem;
}
.cred-item b { color: #fff; font-weight: 600; }
.cred-item span { color: var(--text-muted); text-align: right; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .ico {
  width: 42px; height: 42px; flex: none; border-radius: 10px;
  background: rgba(216,30,63,0.1); color: var(--red);
  display: flex; align-items: center; justify-content: center;
}
.contact-list .ico svg { width: 20px; height: 20px; }
.map-frame {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--red-dark), var(--red));
  color: #fff;
  border-radius: var(--radius);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { color: rgba(255,255,255,0.85); margin: 0; }
.cta-band .btn-ghost { border-color: rgba(255,255,255,0.6); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-darker);
  color: var(--text-muted);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border-dark);
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
}
.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-dark);
}
.social-row a svg { width: 17px; height: 17px; }
.social-row a:hover { background: var(--red); border-color: var(--red); }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--border-light); margin: 48px 0; }
.badge-note {
  display: inline-block;
  font-size: 0.82rem;
  padding: 10px 16px;
  border-radius: 8px;
  background: rgba(240,165,0,0.12);
  border: 1px solid rgba(240,165,0,0.3);
  color: #8a5b00;
}
