/* ============ Tokens ============ */
:root {
  --color-bg: #f5f4ee;
  --color-surface: #ffffff;
  --color-surface-2: #efece2;
  --color-ink: #17211b;
  --color-ink-muted: #5b6660;
  --color-border: #e0ddd0;

  --color-primary: #123328;
  --color-primary-dark: #0b241b;
  --color-primary-light: #1f5540;
  --color-accent: #e7b93c;
  --color-accent-dark: #c89a24;
  --color-accent-ink: #4a3a0c;

  --color-win: #2f8f5b;
  --color-draw: #9a9280;
  --color-loss: #c1462f;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px -2px rgba(10, 25, 18, 0.12);
  --shadow: 0 16px 40px -18px rgba(10, 25, 18, 0.35);

  --font-head: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --container: 1180px;
}

/* ============ Reset ============ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--color-primary);
}
p { margin: 0 0 1em; }
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.section-alt { background: var(--color-surface-2); }
.section-dark {
  background: var(--color-primary);
  color: #eef2ee;
}
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  margin-bottom: 10px;
}
.section-dark .eyebrow { color: var(--color-accent); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.section-head h2 { margin-bottom: 4px; }
.section-head p { margin: 0; color: var(--color-ink-muted); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  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:hover { transform: translateY(-2px); }
.btn-accent {
  background: var(--color-accent);
  color: var(--color-accent-ink);
  box-shadow: var(--shadow-sm);
}
.btn-accent:hover { background: #f2c65a; }
.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-outline.on-light { border-color: var(--color-primary); color: var(--color-primary); }
.btn-outline.on-light:hover { background: var(--color-primary); color: #fff; }
.btn-sm { padding: 9px 18px; font-size: 13px; }

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-primary);
  border-bottom: 3px solid var(--color-accent);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.brand img { width: 46px; height: 46px; }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-text strong {
  font-family: var(--font-head);
  font-size: 19px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.brand-text span {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.main-nav ul {
  display: flex;
  gap: 4px;
}
.main-nav a {
  display: block;
  padding: 10px 15px;
  color: #dfe8e2;
  font-family: var(--font-head);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}
.main-nav a:hover,
.main-nav a.active {
  background: rgba(231, 185, 60, 0.16);
  color: var(--color-accent);
}
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  margin: 6px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,25,18,0.35) 0%, rgba(9,20,15,0.55) 45%, rgba(8,17,13,0.92) 100%);
  z-index: -1;
}
.hero-inner { padding: 70px 0 48px; width: 100%; }
.hero .eyebrow { color: var(--color-accent); }
.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  max-width: 16ch;
  margin-bottom: 14px;
}
.hero-lead {
  max-width: 52ch;
  color: #e7ece7;
  font-size: 1.08rem;
}
.hero-actions { display: flex; gap: 14px; margin-top: 22px; flex-wrap: wrap; }

.hero-next-match {
  margin-top: 36px;
  background: rgba(18,51,40,0.72);
  border: 1px solid rgba(231,185,60,0.4);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-lg);
  padding: 20px 26px;
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  max-width: 700px;
}
.hero-next-match .nm-label {
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.nm-teams {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-head);
  font-size: 1.2rem;
  text-transform: uppercase;
}
.nm-vs { color: var(--color-accent); font-size: 0.9rem; }
.nm-meta { color: #cfd9d2; font-size: 0.9rem; }

/* ============ Cards ============ */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media { aspect-ratio: 16/10; overflow: hidden; background: var(--color-surface-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-date {
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
}
.card-title { font-size: 1.15rem; margin: 0; }
.card-title a:hover { color: var(--color-primary-light); }
.card-excerpt { color: var(--color-ink-muted); font-size: 0.95rem; flex: 1; }
.card-more {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  align-self: flex-start;
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 2px;
}

/* ============ Match widgets ============ */
.match-row {
  display: grid;
  grid-template-columns: 70px 1fr auto 1fr 100px;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.match-row + .match-row { margin-top: 12px; }
.match-kolo {
  font-family: var(--font-head);
  font-size: 12px;
  color: var(--color-ink-muted);
  text-align: center;
}
.match-team { font-weight: 600; }
.match-team.right { text-align: right; }
.match-score {
  font-family: var(--font-head);
  font-size: 1.3rem;
  text-align: center;
  min-width: 64px;
  color: var(--color-primary);
}
.match-meta { font-size: 0.82rem; color: var(--color-ink-muted); text-align: right; }
.match-row.is-us { border: 1.5px solid var(--color-accent); }
.result-badge {
  display: inline-flex;
  width: 26px; height: 26px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  font-family: var(--font-head);
  font-size: 12px;
  color: #fff;
}
.result-w { background: var(--color-win); }
.result-d { background: var(--color-draw); }
.result-l { background: var(--color-loss); }

/* ============ Table ============ */
.table-wrap { overflow-x: auto; background: var(--color-surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
table.league {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 640px;
}
table.league th, table.league td {
  padding: 11px 12px;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}
table.league th {
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
  background: var(--color-surface-2);
}
table.league td.team-name { text-align: left; font-weight: 600; }
table.league td.pts { font-family: var(--font-head); font-weight: 700; color: var(--color-primary); }
table.league tr.is-us { background: rgba(231,185,60,0.14); }
table.league tr.is-us td.team-name { color: var(--color-primary); }
.pos-badge {
  display: inline-flex;
  width: 22px; height: 22px;
  align-items: center; justify-content: center;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  background: var(--color-surface-2);
  color: var(--color-ink-muted);
}
tr:nth-child(-n+1) .pos-badge { background: var(--color-accent); color: var(--color-accent-ink); }

/* ============ Stats strip ============ */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat-item { text-align: center; }
.stat-num {
  font-family: var(--font-head);
  font-size: 2.4rem;
  color: var(--color-accent);
}
.stat-label {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: #cfd9d2;
  text-transform: uppercase;
}

/* ============ Squad ============ */
.squad-group { margin-bottom: 40px; }
.squad-group h3 {
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 10px;
  margin-bottom: 18px;
}
.squad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.player-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 16px;
}
.player-num {
  font-family: var(--font-head);
  font-size: 1.7rem;
  color: var(--color-accent-dark);
  width: 40px;
  flex-shrink: 0;
  text-align: center;
}
.player-info strong { display: block; font-size: 1rem; }
.player-info span { font-size: 0.85rem; color: var(--color-ink-muted); }
.player-card.is-captain { border: 1.5px solid var(--color-accent); }
.captain-mark { color: var(--color-accent-dark); font-weight: 700; margin-left: 4px; }

.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.spotlight-card { text-align: center; }
.spotlight-photo {
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.spotlight-photo img { width: 100%; height: 100%; object-fit: cover; }
.spotlight-card strong { display: block; font-family: var(--font-head); font-size: 1.1rem; text-transform: uppercase; }
.spotlight-card span { font-size: 0.88rem; color: var(--color-ink-muted); }

/* ============ Timeline (klub) ============ */
.timeline { position: relative; padding-left: 28px; border-left: 3px solid var(--color-accent); }
.timeline-item { position: relative; padding-bottom: 30px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -35px;
  top: 4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 3px solid var(--color-primary);
}
.timeline-year { font-family: var(--font-head); color: var(--color-accent-dark); font-size: 1.1rem; }

/* ============ Contact ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.contact-info-list { display: grid; gap: 18px; margin-top: 20px; }
.contact-info-item strong { display: block; font-family: var(--font-head); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-accent-dark); margin-bottom: 2px; }
.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 100%;
  min-height: 340px;
}
.map-frame iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }

/* ============ Sponsors ============ */
.sponsor-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: center;
}
.sponsor-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--color-surface);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
}
.sponsor-badge svg { width: 22px; height: 22px; }

/* ============ Footer ============ */
.site-footer {
  background: var(--color-primary-dark);
  color: #c3ccc6;
  padding: 56px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.footer-brand img { width: 40px; height: 40px; }
.footer-brand strong { font-family: var(--font-head); color: #fff; text-transform: uppercase; font-size: 1.05rem; }
.site-footer h4 {
  color: var(--color-accent);
  font-size: 13px;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.site-footer ul li { margin-bottom: 9px; font-size: 0.92rem; }
.site-footer a:hover { color: var(--color-accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 22px;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 10px;
  color: #90998f;
}

/* ============ Misc pages ============ */
.page-hero {
  background: var(--color-primary);
  color: #fff;
  padding: 54px 0 40px;
  border-bottom: 3px solid var(--color-accent);
}
.page-hero h1 { color: #fff; margin: 0; }
.breadcrumb { font-size: 0.85rem; color: var(--color-accent); margin-bottom: 10px; letter-spacing: 0.04em; text-transform: uppercase; }

.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; }
.prose p { color: var(--color-ink); }

.article-media { border-radius: var(--radius); overflow: hidden; margin-bottom: 30px; box-shadow: var(--shadow-sm); }
.article-meta { display: flex; gap: 16px; color: var(--color-ink-muted); font-size: 0.9rem; margin-bottom: 22px; flex-wrap: wrap; }

.news-list-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.filter-tabs { display: flex; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
.filter-tabs button {
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.filter-tabs button.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.cta-banner {
  background: linear-gradient(120deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 46px 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: #fff; margin-bottom: 6px; }
.cta-banner p { color: #d6ddd8; margin: 0; }

.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  padding: 80px 20px;
}
.error-page .big { font-family: var(--font-head); font-size: 6rem; color: var(--color-primary); line-height: 1; }

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .news-list-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

@media (max-width: 760px) {
  .main-nav {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--color-primary);
    border-top: 1px solid rgba(255,255,255,0.12);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav.open { max-height: 420px; }
  .main-nav ul { flex-direction: column; padding: 10px 14px 18px; gap: 2px; }
  .main-nav a { padding: 12px 10px; }
  .nav-toggle { display: block; }

  .grid-3, .grid-2, .news-list-grid { grid-template-columns: 1fr; }
  .match-row { grid-template-columns: 50px 1fr auto; row-gap: 6px; }
  .match-team.right { text-align: left; grid-column: 2; }
  .match-meta { grid-column: 1 / -1; text-align: left; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; align-items: flex-start; text-align: left; }
  .hero-next-match { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* =========================================================
   EXERCISE WATERMARK
   ========================================================= */
body::before {
    content: "EXERCISE";
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);

    font-size: 20vw;              /* Big text, scales with screen */
    font-weight: bold;
    color: rgba(255, 0, 0, 0.08); /* Light red, non-intrusive */

    pointer-events: none;         /* Click-through */
    z-index: 9999;                   /* Behind content */
    white-space: nowrap;
}
