/* ============================================================
   EDJ Szkolenia – style.css
   ============================================================ */

/* ---- Reset & Variables ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:      #2563EB;
  --primary-dark: #1D4ED8;
  --accent:       #3B82F6;
  --text:         #0F172A;
  --text-muted:   #475569;
  --bg:           #FFFFFF;
  --bg-card:      #F8FAFF;
  --border:       #E2E8F0;
  --radius:       0.875rem;
  --shadow-sm:    0 2px 8px rgba(37,99,235,.08);
  --shadow-md:    0 6px 24px rgba(37,99,235,.12);
  --shadow-lg:    0 16px 48px rgba(37,99,235,.16);
  --header-h:     72px;
  --transition:   .3s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---- Typography ---- */
h1,h2,h3,h4,h5 { font-weight: 800; line-height: 1.2; }

/* ---- Utility ---- */
.text-primary  { color: var(--primary); }
.text-muted    { color: var(--text-muted); }
.bg-card       { background: var(--bg-card); }

/* ---- Layout containers ---- */
.container    { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-md { max-width: 960px;  margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 720px;  margin: 0 auto; padding: 0 1.5rem; }

section { padding: 5rem 0; }

/* ---- Grids ---- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.grid-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

/* ---- Section header ---- */
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 { font-size: clamp(1.8rem,4vw,2.8rem); margin-bottom: 1rem; }
.section-header p  { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 700; font-size: 1rem; border-radius: 2rem;
  padding: .75rem 2rem; transition: var(--transition); cursor: pointer;
  text-decoration: none; border: 2px solid transparent;
}
.btn-primary {
  background: var(--primary); color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.7);
}
.btn-outline:hover { background: rgba(255,255,255,.15); }

/* ---- Card ---- */
.card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  box-shadow: var(--shadow-sm); transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

/* ---- Tag label ---- */
.tag-label {
  display: inline-block; font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; color: var(--primary);
  background: rgba(37,99,235,.08); padding: .3rem .9rem;
  border-radius: 2rem;
}

/* ==================== HEADER ==================== */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.9); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
#site-header.scrolled {
  border-color: var(--border);
  box-shadow: 0 2px 16px rgba(37,99,235,.08);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}
.logo img { height: 44px; width: auto; }
.nav-links {
  display: flex; gap: 2rem; align-items: center;
}
.nav-links a {
  font-size: .95rem; font-weight: 600; color: var(--text-muted);
  position: relative; transition: color var(--transition);
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0; right: 0;
  height: 2px; background: var(--primary);
  transform: scaleX(0); transform-origin: center;
  transition: transform var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--primary); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

/* hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: .5rem; }
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--primary); border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile menu */
.mobile-menu {
  position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 99;
  background: #fff; border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column;
  max-height: 0; overflow: hidden;
  transition: max-height .4s cubic-bezier(.4,0,.2,1);
  box-shadow: var(--shadow-md);
}
.mobile-menu.open { max-height: 400px; }
.mobile-menu a {
  padding: 1rem 1.5rem; font-size: 1rem; font-weight: 600;
  color: var(--text-muted); border-bottom: 1px solid var(--border);
  transition: color var(--transition), background var(--transition);
}
.mobile-menu a:hover,
.mobile-menu a.active { color: var(--primary); background: var(--bg-card); }

/* page offset */
main { padding-top: var(--header-h); }

/* ==================== HERO ==================== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
  padding-top: var(--header-h);
}
.hero-bg {
  position: absolute; inset: 0;
}
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: .25;
}
.hero-bg-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,.4) 0%, rgba(255,255,255,.1) 50%, rgba(255,255,255,.6) 100%);
}
.hero-content { position: relative; z-index: 1; padding: 4rem 1.5rem; }
.hero-title {
  font-size: clamp(2rem,6vw,4.5rem);
  font-weight: 900; color: var(--primary);
  margin-bottom: 1.5rem; line-height: 1.1;
  letter-spacing: -.02em;
}
.hero-subtitle {
  font-size: clamp(1.05rem,2.5vw,1.4rem);
  color: var(--text-muted); margin-bottom: 3rem; font-weight: 500;
}
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 1; animation: bounce 2s infinite;
}
.hero-scroll svg { width: 32px; height: 32px; color: var(--primary); }
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(10px); }
}

/* ==================== PAGE HERO ==================== */
.page-hero {
  position: relative; height: 360px;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
}
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .25; }
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,.5) 0%, rgba(248,250,255,.7) 100%);
}
.page-hero-content { position: relative; z-index: 1; padding: 0 1.5rem; }
.page-hero-title {
  font-size: clamp(2rem,6vw,3.5rem);
  font-weight: 900; color: var(--primary);
  letter-spacing: -.01em; margin-bottom: 1rem;
}
.page-hero-divider {
  width: 80px; height: 4px; background: var(--primary);
  border-radius: 2px; margin: 0 auto 1rem;
}
.page-hero-subtitle { font-size: 1.1rem; color: var(--text-muted); }

/* ==================== CAT CARDS ==================== */
.cat-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  box-shadow: var(--shadow-sm); transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  text-decoration: none; color: var(--text); display: block;
}
.cat-card:hover {
  box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: rgba(37,99,235,.3);
}
.cat-card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: .25rem; color: var(--primary); }
.cat-count { font-size: .85rem; color: var(--text-muted); margin-bottom: 1rem; }
.cat-icon {
  width: 52px; height: 52px; border-radius: 1rem;
  background: rgba(37,99,235,.08);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.cat-icon svg { width: 26px; height: 26px; color: var(--primary); }
.cat-list { display: flex; flex-direction: column; gap: .3rem; }
.cat-list li { font-size: .875rem; color: var(--text-muted); display: flex; align-items: center; gap: .4rem; }
.cat-list li::before { content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--border); flex-shrink: 0; }

/* ==================== TRAINER CARDS ==================== */
.trainer-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  box-shadow: var(--shadow-sm); transition: box-shadow var(--transition), transform var(--transition);
  text-align: center;
}
.trainer-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.trainer-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 800; color: #fff;
  margin: 0 auto 1.25rem;
}
.trainer-name { font-size: 1.2rem; font-weight: 700; margin-bottom: .25rem; }
.trainer-role { font-size: .875rem; color: var(--text-muted); margin-bottom: 1rem; }
.trainer-tags { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: center; margin-bottom: 1rem; }
.trainer-tag {
  font-size: .75rem; font-weight: 600;
  background: rgba(37,99,235,.08); color: var(--primary);
  padding: .2rem .65rem; border-radius: 2rem;
}
.trainer-bio { font-size: .875rem; color: var(--text-muted); line-height: 1.7; text-align: left; }

/* ==================== GAME CARDS ==================== */
.game-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  box-shadow: var(--shadow-sm); transition: box-shadow var(--transition), transform var(--transition);
}
.game-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.game-card-header { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1rem; }
.game-card-icon {
  width: 48px; height: 48px; background: rgba(37,99,235,.08);
  border-radius: .875rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.game-card-icon svg { width: 24px; height: 24px; color: var(--primary); }
.game-card-header h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .35rem; }
.game-badge {
  display: inline-block; font-size: .75rem; font-weight: 600;
  background: rgba(37,99,235,.08); color: var(--primary);
  padding: .2rem .65rem; border-radius: 2rem;
}
.game-card > p { font-size: .9rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1.25rem; }
.game-details { display: flex; gap: 1rem; flex-wrap: wrap; }
.game-details span { display: flex; align-items: center; gap: .35rem; font-size: .8rem; color: var(--text-muted); }
.game-details svg { width: 14px; height: 14px; color: var(--primary); }

/* ==================== SKILLCRAFTERS & VCC IMAGES ==================== */
.skillcrafters-img-wrap, .vcc-img-wrap {
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  background: #fff; border-radius: 1.25rem;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.skillcrafters-img-wrap img { max-width: 100%; max-height: 280px; object-fit: contain; }
.vcc-img-wrap img           { max-width: 100%; max-height: 300px; object-fit: contain; }

/* ==================== TABS (Szkolenia) ==================== */
.tabs-container { margin-bottom: 2.5rem; }
.tabs-list {
  display: flex; gap: .5rem; flex-wrap: wrap;
  background: var(--bg-card); padding: .5rem;
  border-radius: 1rem; border: 1px solid var(--border);
}
.tab-btn {
  display: flex; align-items: center; gap: .5rem;
  font-size: .875rem; font-weight: 600; color: var(--text-muted);
  padding: .65rem 1.1rem; border-radius: .75rem;
  transition: var(--transition);
}
.tab-btn svg { width: 16px; height: 16px; }
.tab-btn:hover  { color: var(--primary); background: rgba(37,99,235,.06); }
.tab-btn.active { color: #fff; background: var(--primary); }
.tab-content { display: none; animation: fadeIn .25s ease; }
.tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* training tiles */
.training-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 1.25rem; }
.training-tile {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm); transition: var(--transition);
  text-align: center;
}
.training-tile:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: rgba(37,99,235,.3); }
.training-tile-icon {
  width: 48px; height: 48px; margin: 0 auto 1rem;
  background: rgba(37,99,235,.08); border-radius: 1rem;
  display: flex; align-items: center; justify-content: center;
}
.training-tile-icon svg { width: 24px; height: 24px; color: var(--primary); }
.training-tile h3 { font-size: .95rem; font-weight: 700; line-height: 1.35; }

/* ==================== CONTACT ==================== */
.contact-icon-wrap {
  width: 64px; height: 64px; border-radius: 1rem;
  background: rgba(37,99,235,.08);
  display: flex; align-items: center; justify-content: center;
}
.contact-icon-wrap svg { width: 30px; height: 30px; color: var(--primary); }
.social-link-big {
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  padding: 1.25rem 2rem; background: rgba(37,99,235,.05);
  border-radius: 1rem; border: 1px solid var(--border);
  transition: var(--transition); font-weight: 600; color: var(--text-muted); font-size: .9rem;
}
.social-link-big:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: translateY(-3px); }
.social-link-big svg { width: 28px; height: 28px; }

/* ==================== FOOTER ==================== */
footer {
  background: linear-gradient(135deg,#0F172A,#1E3A8A);
  color: rgba(255,255,255,.85); padding: 4rem 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer-col { display: flex; flex-direction: column; gap: .6rem; }
.footer-logo { height: 40px; width: auto; margin-bottom: .5rem; filter: brightness(0) invert(1); }
.footer-col h4 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: .25rem; }
.footer-col p  { font-size: .875rem; }
.footer-col a  { font-size: .875rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--accent); }

.social-links { display: flex; gap: .75rem; flex-wrap: wrap; }
.social-link {
  width: 40px; height: 40px; border-radius: .75rem;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.social-link:hover { background: var(--primary); transform: translateY(-3px); }
.social-link svg { width: 18px; height: 18px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.5rem 0; display: flex; gap: 1rem;
  justify-content: space-between; align-items: center;
  flex-wrap: wrap; font-size: .8rem; color: rgba(255,255,255,.5);
}

/* ==================== COOKIE BANNER ==================== */
#cookie-banner {
  position: fixed; bottom: 1.5rem; left: 50%;
  transform: translateX(-50%);
  background: #fff; border: 1px solid var(--border);
  border-radius: 1.25rem; box-shadow: 0 8px 40px rgba(0,0,0,.15);
  padding: 1.25rem 1.75rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
  max-width: 800px; width: calc(100% - 3rem);
  z-index: 999; font-size: .9rem; color: var(--text-muted);
  animation: slideUp .4s ease;
}
#cookie-banner.hidden { display: none; }
#cookie-banner a { color: var(--primary); font-weight: 600; }
#cookie-banner a:hover { text-decoration: underline; }
.cookie-btns { display: flex; gap: .75rem; flex-shrink: 0; }
.cookie-accept, .cookie-reject {
  padding: .5rem 1.2rem; border-radius: 2rem;
  font-size: .85rem; font-weight: 700; cursor: pointer;
  transition: var(--transition);
}
.cookie-accept { background: var(--primary); color: #fff; }
.cookie-accept:hover { background: var(--primary-dark); }
.cookie-reject {
  background: transparent; color: var(--text-muted);
  border: 1px solid var(--border);
}
.cookie-reject:hover { border-color: var(--primary); color: var(--primary); }

@keyframes slideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(24px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ==================== HOVER SCALE ==================== */
.hover-scale { transition: transform var(--transition), box-shadow var(--transition); }
.hover-scale:hover { transform: scale(1.03) translateY(-3px); }

/* ==================== REVEAL ANIMATIONS ==================== */
.reveal, .reveal-left, .reveal-right {
  opacity: 0; transition: opacity .7s ease, transform .7s ease;
}
.reveal       { transform: translateY(30px); }
.reveal-left  { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal.visible, .reveal-left.visible, .reveal-right.visible {
  opacity: 1; transform: none;
}
/* stagger */
.stagger-1 { transition-delay: .1s; }
.stagger-2 { transition-delay: .2s; }
.stagger-3 { transition-delay: .3s; }
.stagger-4 { transition-delay: .4s; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .grid-2      { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }

  .nav-links { display: none; }
  .hamburger { display: flex; }

  section { padding: 3.5rem 0; }

  .grid-3         { grid-template-columns: 1fr; }
  .grid-2-col     { grid-template-columns: 1fr; }
  .hero-title     { font-size: clamp(1.8rem,8vw,2.8rem); }
  .page-hero      { height: 280px; }
  .page-hero-title{ font-size: clamp(1.6rem,7vw,2.5rem); }

  .tabs-list { gap: .35rem; }
  .tab-btn   { font-size: .8rem; padding: .5rem .85rem; }
  .tab-btn span,
  .tab-btn svg { /* fine on mobile */ }

  .training-grid { grid-template-columns: repeat(2,1fr); }

  .footer-grid   { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  #cookie-banner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-btns { flex-direction: column; align-items: center; }
  .training-grid { grid-template-columns: 1fr; }
}
