/* ============================================================
   FaniMani — Landing "Kluby sportowe" (static build)
   Consolidated stylesheet: webfonts + design tokens +
   Button component + page styles.
   ============================================================ */

/* ---------- Parkinsans (headings & display) ---------- */
@font-face {
  font-family: "Parkinsans";
  src: url("../fonts/Parkinsans-Light.ttf") format("truetype");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Parkinsans";
  src: url("../fonts/Parkinsans-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Parkinsans";
  src: url("../fonts/Parkinsans-Medium.ttf") format("truetype");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Parkinsans";
  src: url("../fonts/Parkinsans-SemiBold.ttf") format("truetype");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Parkinsans";
  src: url("../fonts/Parkinsans-Bold.ttf") format("truetype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Parkinsans";
  src: url("../fonts/Parkinsans-ExtraBold.ttf") format("truetype");
  font-weight: 800; font-style: normal; font-display: swap;
}

/* ---------- DM Sans (body & UI) — variable font ---------- */
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/DMSans-Variable.ttf") format("truetype");
  font-weight: 100 1000; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/DMSans-Italic-Variable.ttf") format("truetype");
  font-weight: 100 1000; font-style: italic; font-display: swap;
}

/* ============================================================
   Color tokens
   ============================================================ */
:root {
  /* Brand */
  --crimson: #e40148;
  --crimson-700: #c00040;
  --crimson-100: #fbd9e4;
  --logo-pink: #ec1853;

  --green: #0daa76;
  --green-700: #098a5f;
  --green-100: #dbf2ea;

  --teal: #004246;

  /* Neutrals */
  --ink: #22252a;
  --ink-2: #1f1f1f;
  --gray-700: #626366;
  --gray-500: #9096a3;
  --gray-200: #dfe1e6;
  --gray-50: #f8f9fb;
  --white: #ffffff;
  --black: #000000;

  /* Extended palette */
  --blue: #3771c8;
  --blue-100: #d6e4f7;
  --lilac: #c7b4db;
  --lilac-50: #f0eaf4;
  --yellow: #ffdd55;
  --orange: #f48120;
  --blue-soft: #bcd5f2;

  /* Semantic aliases */
  --bg-page: var(--gray-50);
  --bg-surface: var(--white);
  --bg-surface-subtle: var(--gray-50);
  --bg-inverse: var(--ink);

  --text-strong: var(--ink);
  --text-body: var(--ink);
  --text-secondary: var(--gray-700);
  --text-muted: var(--gray-500);
  --text-on-dark: var(--white);
  --text-link: var(--green);

  --border: var(--gray-200);
  --border-strong: var(--gray-500);
  --focus-ring: var(--green);

  --action-primary: var(--crimson);
  --action-primary-hover: var(--crimson-700);
  --action-accent: var(--green);
  --action-accent-hover: var(--green-700);

  --success: var(--green);
  --success-bg: var(--green-100);
  --danger: var(--crimson);
  --danger-bg: var(--crimson-100);
  --info: var(--blue);
  --info-bg: var(--blue-100);

  --impact: var(--green);

  /* ---------- Typography ---------- */
  --font-display: "Parkinsans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;

  --fs-display: 70px;
  --fs-h1: 40px;
  --fs-h2: 28px;
  --fs-h3: 16px;
  --lh-display: 1.1;
  --lh-heading: 1.0;

  --fs-lg: 18px;
  --fs-body: 16px;
  --fs-ui: 14px;
  --fs-sm: 13px;
  --fs-xs: 10px;
  --lh-body: 1.5;
  --lh-ui: 1.4;

  --ls-tight: -0.01em;
  --ls-normal: 0;
  --ls-loose: 0.3px;
  --ls-button: 0.02em;

  /* ---------- Spacing ---------- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* ---------- Radii ---------- */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-input: 20px;
  --radius-pill: 999px;

  /* ---------- Borders ---------- */
  --border-width: 1px;
  --border-hairline: 0.5px;

  /* ---------- Shadows ---------- */
  --shadow-xs: 0 1px 2px rgba(144, 150, 163, 0.16);
  --shadow-sm: 0 2px 6px rgba(144, 150, 163, 0.18);
  --shadow-md: 0 4px 16px rgba(144, 150, 163, 0.20);
  --shadow-lg: 0 12px 32px rgba(144, 150, 163, 0.24);
  --ring-border: inset 0 0 0 1px var(--border);

  /* ---------- Motion ---------- */
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 320ms;

  /* ---------- Layout ---------- */
  --container-max: 1240px;
  --nav-height: 72px;
}

/* ============================================================
   Base
   ============================================================ */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #fff; }
body {
  font-family: var(--font-body);
  color: var(--ink);
}
img { display: block; max-width: 100%; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-700); }
.fmp-nav a { color: var(--ink); }
.fmp-nav a:hover { color: var(--crimson); }
.fmp-foot a { color: var(--gray-700); }
.fmp-foot a:hover { color: var(--ink); }

/* ============================================================
   Button (from FaniMani Design System)
   ============================================================ */
.fm-btn {
  font-family: var(--font-body); font-weight: var(--fw-bold);
  font-size: var(--fs-sm); letter-spacing: var(--ls-button); text-transform: uppercase;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  border-radius: var(--radius-pill); border: 0; cursor: pointer; white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-standard),
              box-shadow var(--dur-fast) var(--ease-standard),
              transform var(--dur-fast) var(--ease-standard), color var(--dur-fast);
  -webkit-tap-highlight-color: transparent; text-decoration: none;
}
.fm-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus-ring) 45%, transparent); }
.fm-btn:active { transform: scale(0.97); }
.fm-btn[disabled] { opacity: .45; pointer-events: none; }
.fm-btn--sm { height: 32px; padding: 0 var(--space-4); font-size: 12px; }
.fm-btn--md { height: 40px; padding: 0 var(--space-5); }
.fm-btn--lg { height: 48px; padding: 0 var(--space-6); font-size: 14px; }
.fm-btn--primary { background: var(--crimson); color: #fff; }
.fm-btn--primary:hover { background: var(--crimson-700); color: #fff; }
.fm-btn--accent { background: var(--green); color: #fff; }
.fm-btn--accent:hover { background: var(--green-700); color: #fff; }
.fm-btn--secondary { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.fm-btn--secondary:hover { background: var(--gray-50); color: var(--ink); }
.fm-btn--ghost { background: transparent; color: var(--ink); }
.fm-btn--ghost:hover { background: var(--gray-50); }
.fm-btn--outline-crimson { background: #fff; color: var(--crimson); box-shadow: inset 0 0 0 2px var(--crimson); }
.fm-btn--outline-crimson:hover { background: var(--crimson-100); color: var(--crimson); }
.fm-btn--full { width: 100%; }
.fm-btn svg { width: 1.25em; height: 1.25em; flex: none; }

/* ============================================================
   Page-specific helpers
   ============================================================ */
.fm-carousel-btn {
  width: 44px; height: 44px; border-radius: 999px; border: 0;
  background: transparent; color: var(--crimson); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur-fast);
}
.fm-carousel-btn:hover { background: var(--gray-50); }

.fm-slot-img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }

/* CTA row above the footer */
.fm-cta-row { display: flex; gap: 16px; justify-content: center; align-items: center; flex-wrap: wrap; }
@media (max-width: 640px) {
  .fm-cta-row { flex-direction: column; }
}

/* Branded placeholder for athlete photos that were not present in the prototype.
   Replace the <img> in index.html with a real photo when available. */
.fm-athlete-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: var(--fw-semibold);
  font-size: 64px; color: #fff;
  background: linear-gradient(135deg, var(--crimson) 0%, var(--logo-pink) 60%, var(--green) 140%);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .fmp-nav { display: none !important; }
}
@media (max-width: 760px) {
  .fm-grid-2 { grid-template-columns: 1fr !important; }
  .fm-foot-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .fm-athletes { grid-template-columns: 1fr !important; gap: 40px !important; max-width: 360px; margin-inline: auto; }
}
@media (min-width: 761px) and (max-width: 900px) {
  .fm-athletes { gap: 16px !important; }
}

/* ============================================================
   Registration subpage
   ============================================================ */
.fm-reg-hero {
  width: 100%;
  height: 220px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.fm-tally-wrap {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  min-height: 480px;
}
.fm-tally-wrap iframe {
  width: 100%;
  border: 0;
  display: block;
  min-height: 480px;
}
@media (max-width: 640px) {
  .fm-reg-hero { height: 140px; border-radius: 10px; }
  .fm-tally-wrap { min-height: 560px; }
}
