/* ==========================================================================
   Polska Federacja Dodgeball - style.css
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Oswald:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #07070a;
  --bg-alt: #0e0f13;
  --card: #141519;
  --card-hover: #191b20;
  --border: #24262e;
  --border-light: #34363f;

  --red: #c8102e;
  --red-dark: #7a0a1c;
  --red-light: #e63946;
  --red-glow: rgba(200, 16, 46, 0.35);

  --white: #f5f6f8;
  --silver: #b9bec9;
  --muted: #888c96;

  --font-display: 'Anton', 'Oswald', sans-serif;
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius: 10px;
  --container: 1160px;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  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(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 0.5em;
  color: var(--white);
}

h1 { font-family: var(--font-display); letter-spacing: 0.01em; }

p { margin: 0 0 1em; color: var(--silver); }

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

/* Background texture: subtle diagonal shield-like glow */
body {
  background-image:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(200,16,46,0.10), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 0%, rgba(200,16,46,0.06), transparent 60%);
  background-repeat: no-repeat;
}

/* ---------------------------------- Header ---------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 7, 10, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  height: 48px;
  width: 48px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text .brand-top {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
}

.brand-text .brand-main {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--white);
  letter-spacing: 0.02em;
}

.brand-text .brand-main span { color: var(--red-light); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--silver);
  padding: 10px 14px;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.main-nav a:hover { color: var(--white); background: var(--card); }
.main-nav a.active { color: var(--white); }
.main-nav a.active::after {
  content: '';
}

.nav-cta {
  background: var(--red);
  color: var(--white) !important;
}
.nav-cta:hover { background: var(--red-light) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
}

/* ---------------------------------- Badges ---------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: var(--card);
  color: var(--silver);
}

.badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red-light);
  box-shadow: 0 0 8px var(--red-glow);
}

.badge.badge-status {
  border-color: rgba(200,16,46,0.4);
  color: var(--white);
}

/* ---------------------------------- Buttons ---------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 13px 26px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--red-light), var(--red-dark));
  color: var(--white);
  box-shadow: 0 8px 24px var(--red-glow);
}
.btn-primary:hover { transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  border-color: var(--border-light);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--red-light); color: var(--red-light); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------------------------------- Hero ---------------------------------- */

.hero {
  padding: 48px 0 32px;
  text-align: center;
}

.hero .badge { margin-bottom: 14px; }

.hero h1 {
  font-size: clamp(2.3rem, 6vw, 4.4rem);
  line-height: 1.02;
  margin-bottom: 12px;
}

.hero h1 .accent { color: var(--red-light); }

.hero-sub {
  max-width: 680px;
  margin: 0 auto 20px;
  font-size: 1.1rem;
  color: var(--silver);
}

.hero .btn-row { justify-content: center; margin-bottom: 0; }

.page-hero {
  padding: 64px 0 48px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

.page-hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
.page-hero p { max-width: 640px; margin: 0 auto; }

/* ---------------------------------- Sections ---------------------------------- */

.section {
  padding: 72px 0;
}

.section-tight { padding: 32px 0; }

.section-alt { background: var(--bg-alt); }

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

.section-head .eyebrow {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red-light);
  margin-bottom: 10px;
}

.section-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }

/* ---------------------------------- Grid / Cards ---------------------------------- */

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.card:hover { border-color: var(--border-light); transform: translateY(-3px); }

.card .icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--red-light), var(--red-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--white);
}

.card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.card p { margin-bottom: 0; font-size: 0.94rem; }

.card-number {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--red-light);
  line-height: 1;
  margin-bottom: 6px;
}

/* Timeline */

.timeline { position: relative; margin: 0; padding: 0; }
.timeline-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.timeline-item:last-child { border-bottom: none; }

.timeline-date {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--red-light);
  font-size: 0.95rem;
}

.timeline-body h3 { font-size: 1.05rem; margin-bottom: 6px; }
.timeline-body p { margin-bottom: 0; font-size: 0.93rem; }

/* Person / board cards */

.person {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.person-avatar {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red-light), var(--red-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.2rem;
}

.person h3 { font-size: 1rem; margin-bottom: 2px; }
.person .role {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red-light);
  display: block;
  margin-bottom: 8px;
}
.person p { margin-bottom: 0; font-size: 0.9rem; }

/* Stat strip */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat .num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--white);
}
.stat .num span { color: var(--red-light); }
.stat .label {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* News cards */

.news-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.news-card .date {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red-light);
  margin-bottom: 10px;
  display: block;
}
.news-card h3 { font-size: 1.1rem; }

/* CTA banner */

.cta-banner {
  background: linear-gradient(135deg, rgba(200,16,46,0.16), rgba(200,16,46,0.03));
  border: 1px solid rgba(200,16,46,0.3);
  border-radius: 16px;
  padding: 52px;
  text-align: center;
}
.cta-banner h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
.cta-banner p { max-width: 560px; margin: 0 auto 26px; }
.cta-banner .btn-row { justify-content: center; }

/* Tables */

table { width: 100%; border-collapse: collapse; }
th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
th {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.76rem;
  color: var(--muted);
}

/* Forms */

.form-grid { display: grid; gap: 16px; max-width: 560px; }
label {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--silver);
  display: block;
  margin-bottom: 6px;
}
input, textarea, select {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 12px 14px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--red-light);
}

/* Contact info list */

.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.info-list li:last-child { border-bottom: none; }
.info-list .info-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  width: 140px;
  flex-shrink: 0;
}

/* Note / callout box */

.note {
  border: 1px dashed var(--border-light);
  border-radius: var(--radius);
  padding: 18px 22px;
  background: var(--bg-alt);
  font-size: 0.9rem;
  color: var(--muted);
}
.note strong { color: var(--silver); }

/* ---------------------------------- Footer ---------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 52px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-brand { display: flex; gap: 12px; margin-bottom: 14px; }
.footer-brand img { height: 40px; width: 40px; object-fit: contain; }
.footer-brand .brand-main { font-family: var(--font-display); font-size: 1rem; }

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--silver); font-size: 0.92rem; }
.footer-col a:hover { color: var(--red-light); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---------------------------------- Responsive ---------------------------------- */

@media (max-width: 960px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .main-nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 10px 24px 20px;
    gap: 2px;
  }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; gap: 6px; }
  .cta-banner { padding: 34px 22px; }
  .stats { grid-template-columns: 1fr 1fr; }
}
