:root {
  --brand-orange: #ef7b00;
  --brand-maroon: #732506;
  --ink-900: #111827;
  --ink-700: #374151;
  --ink-600: #4b5563;
  --ink-400: #9ca3af;
  --border: #e5e7eb;
  --surface: #ffffff;
  --surface-muted: #f5f6f8;
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.06);
  --shadow-md: 0 8px 24px rgba(17, 24, 39, 0.10);
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  color: var(--ink-700);
  background: var(--surface-muted);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Barlow Condensed', 'Inter', Arial, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ink-900);
  margin: 0 0 12px;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.6rem; }

p { line-height: 1.6; }

a { color: var(--brand-orange); text-decoration: none; }
a:hover { color: var(--brand-maroon); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

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

.brand img { display: block; height: 44px; width: auto; border-radius: 6px; }

.site-title {
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1.25rem;
  color: var(--ink-900);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 0 8px;
  background: var(--ink-900);
  border-radius: 2px;
}

nav.mainnav > ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
}

nav.mainnav > ul > li { position: relative; }

nav.mainnav > ul > li > a {
  display: flex;
  align-items: center;
  height: 72px;
  padding: 0 14px;
  color: var(--ink-700);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  border-bottom: 3px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}

nav.mainnav > ul > li > a:hover,
nav.mainnav > ul > li.has-children:hover > a {
  color: var(--brand-orange);
  border-bottom-color: var(--brand-orange);
}

nav.mainnav .submenu {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% - 1px);
  z-index: 20;
  list-style: none;
  margin: 0;
  padding: 8px;
  min-width: 240px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

nav.mainnav li.has-children:hover .submenu { display: block; }

nav.mainnav .submenu li a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--ink-700);
  text-decoration: none;
  font-size: 0.92rem;
  white-space: nowrap;
}

nav.mainnav .submenu li a:hover {
  background: var(--surface-muted);
  color: var(--brand-orange);
}

/* ---------- Layout ---------- */

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 24px 60px;
}

/* ---------- News slider ---------- */

.news-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  background: var(--ink-900);
}

.news-slider-empty {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-400);
  text-align: center;
  padding: 48px 20px;
  border-radius: var(--radius);
  font-weight: 600;
}

.news-slider .slides {
  position: relative;
  height: 440px;
}

.news-slider .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  pointer-events: none;
}

.news-slider .slide.active {
  opacity: 1;
  pointer-events: auto;
}

.news-slider .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-slider .slide-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 32px;
  background: linear-gradient(to top, rgba(17,24,39,0.85), rgba(17,24,39,0));
  color: #fff;
}

.news-slider .slide-caption h2 {
  color: #fff;
  margin: 0 0 8px;
  font-size: 1.8rem;
}

.news-slider .slide-caption p {
  margin: 0;
  max-width: 640px;
  font-size: 1rem;
  color: #f3f4f6;
}

.slider-dots {
  position: absolute;
  bottom: 18px;
  right: 28px;
  z-index: 5;
  display: flex;
  gap: 8px;
}

.slider-dots .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.7);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background .15s ease, border-color .15s ease;
}

.slider-dots .dot.active { background: var(--brand-orange); border-color: var(--brand-orange); }

.slider-prev, .slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: rgba(17,24,39,0.45);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  transition: background .15s ease;
}

.slider-prev { left: 16px; }
.slider-next { right: 16px; }
.slider-prev:hover, .slider-next:hover { background: var(--brand-orange); }

/* ---------- Content cards ---------- */

.content-page {
  margin-top: 8px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.content-page h3 {
  font-size: 1.05rem;
  text-transform: none;
  letter-spacing: normal;
  margin-top: 24px;
}

.content-page p { margin: 6px 0 14px; }

.review-notice {
  background: #fff7ed;
  border: 1px solid var(--brand-orange);
  color: var(--ink-700);
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 24px;
  font-size: 0.92rem;
}

.club-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.club-list li {
  background: var(--surface-muted);
  border-radius: 10px;
  padding: 10px 14px;
}

.club-list a { color: var(--ink-700); font-weight: 600; }
.club-list a:hover { color: var(--brand-orange); }

.stale-notice {
  background: #fef2f2;
  border: 1px solid #dc2626;
  color: var(--ink-700);
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 24px;
  font-size: 0.92rem;
}

.liga-page .btn-external {
  display: inline-block;
  margin-top: 12px;
  padding: 12px 22px;
  background: var(--brand-orange);
  color: #fff;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  transition: background .15s ease;
}

.liga-page .btn-external:hover {
  background: var(--brand-maroon);
  color: #fff;
}

.intro {
  margin-top: 32px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

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

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 24px;
  text-align: center;
  color: var(--ink-400);
  font-size: 0.85rem;
}

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

@media (max-width: 860px) {
  .nav-toggle { display: flex; }

  nav.mainnav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }

  nav.mainnav.open { display: block; }

  nav.mainnav > ul {
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
  }

  nav.mainnav > ul > li > a {
    height: auto;
    padding: 12px;
    border-bottom: none;
    border-radius: 8px;
  }

  nav.mainnav > ul > li.has-children:hover > a { border-bottom: none; }

  nav.mainnav .submenu {
    display: block;
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 20px;
    margin-top: 0;
  }

  .news-slider .slides { height: 280px; }
  .news-slider .slide-caption { padding: 18px 20px; }
  .news-slider .slide-caption h2 { font-size: 1.3rem; }
}
