/* ===================== RK Trilj — stylesheet ===================== */

/* ---------- Design tokens ---------- */
:root {
  --blue: #2197d4;
  --blue-light: #4fb3e8;
  --navy: #075098;
  --navy-deep: #053761;
  --navy-950: #071423;
  --red: #ee2c32;

  --white: #ffffff;
  --gray-50: #f7f9fb;
  --gray-100: #eef1f5;
  --gray-200: #e2e6ec;
  --gray-300: #cbd3dc;
  --gray-400: #9aa5b1;
  --gray-600: #5b6572;
  --gray-900: #141c26;

  --bg: var(--white);
  --bg-alt: var(--gray-50);
  --surface: var(--white);
  --surface-raised: var(--white);
  --text: var(--gray-900);
  --text-muted: var(--gray-600);
  --border: var(--gray-200);
  --primary: var(--blue);
  --primary-dark: var(--navy);
  --on-primary: #ffffff;
  --accent: var(--red);

  --shadow-sm: 0 1px 3px rgba(7, 20, 35, 0.08);
  --shadow-md: 0 8px 24px rgba(7, 20, 35, 0.1);
  --shadow-lg: 0 20px 48px rgba(7, 20, 35, 0.16);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --header-h: 76px;
  --gutter: 1.25rem;
  --section-space: clamp(3.5rem, 6vw, 6.5rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font-head: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: var(--navy-950);
  --bg-alt: #0b1e32;
  --surface: #0d2338;
  --surface-raised: #11293f;
  --text: #f1f5f9;
  --text-muted: #a9b6c4;
  --border: #1e3650;
  --primary: #4fb3e8;
  --primary-dark: #2197d4;
  --on-primary: #071423;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}

p {
  margin: 0 0 1em;
}

button {
  font: inherit;
  cursor: pointer;
}

svg {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--section-space) 0;
}

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

.section-head {
  max-width: 640px;
  margin: 0 0 2.75rem;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head--wide {
  max-width: 100%;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
}

.lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-align: justify;
}

.section-head.center .lead {
  text-align-last: center;
}

.text-muted {
  color: var(--text-muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 2px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease), border-color 0.25s var(--ease),
    color 0.25s var(--ease);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--primary-dark);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--primary);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-light {
  background: #fff;
  color: var(--navy-deep);
}

.btn-light:hover {
  background: var(--gray-100);
}

.btn-ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-ghost-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--primary);
  position: relative;
}

.link-arrow svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s var(--ease);
}

.link-arrow:hover svg {
  transform: translateX(4px);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

/* Blur lives on a pseudo-element, not .site-header itself: backdrop-filter on
   an ancestor turns it into the containing block for position:fixed children
   (the mobile nav drawer), which breaks it. See .main-nav below. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.brand-logo {
  width: 44px;
  height: 44px;
}

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

.brand-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

.brand-sub {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  position: relative;
  font-weight: 600;
  font-size: 0.96rem;
  padding: 0.35rem 0;
  color: var(--text);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -4px;
  height: 2px;
  background: var(--accent);
  transition: right 0.25s var(--ease);
}

.nav-link:hover::after,
.nav-link.active::after {
  right: 0;
}

.nav-link.active {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.theme-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.theme-toggle svg {
  width: 19px;
  height: 19px;
}

.theme-toggle .icon-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: block;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero (homepage) ---------- */
.hero {
  position: relative;
  color: #fff;
  padding: calc(var(--header-h) + 3.5rem) 0 8rem;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(
      100deg,
      rgba(5, 13, 24, 0.65) 0%,
      rgba(5, 13, 24, 0.55) 30%,
      rgba(5, 13, 24, 0.25) 58%,
      rgba(5, 13, 24, 0.35) 100%
    ),
    linear-gradient(180deg, rgba(5, 13, 24, 0.05) 0%, rgba(5, 13, 24, 0.4) 100%),
    url("/img/hero/pocetna-momcad-dvorana.jpg");
  background-size: cover;
  background-position: center 88%;
}

.hero-inner {
  max-width: 680px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  margin-bottom: 0.4em;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.2rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.2rem;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  color: #fff;
  padding: calc(var(--header-h) + 3rem) 0 5.5rem;
  background: linear-gradient(120deg, var(--navy-deep), var(--navy) 65%, var(--blue) 140%);
  clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.breadcrumb a:hover {
  color: #fff;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  max-width: 720px;
}

.page-hero .lead {
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
}

/* ---------- Stats bar ---------- */
.stats {
  background: var(--bg);
  padding: 3.25rem 0;
}

.stats-grid {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  text-align: center;
}

.stat-number {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--primary-dark);
}

[data-theme="dark"] .stat-number {
  color: var(--primary);
}

.stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* ---------- Cards grid ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2.1rem 1.9rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}

/* ---------- About split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.split-reverse {
  grid-template-columns: 1fr 1fr;
}

.split-reverse .split-media {
  order: 2;
}

.split h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
}

.split p {
  text-align: justify;
}

/* ---------- Image placeholder ---------- */
.img-placeholder {
  position: relative;
  display: flex;
  align-items: flex-end;
  background: repeating-linear-gradient(
    135deg,
    var(--bg-alt),
    var(--bg-alt) 14px,
    var(--border) 14px,
    var(--border) 28px
  );
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  color: var(--text-muted);
  width: 100%;
}

.img-placeholder .ph-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  opacity: 0.45;
}

.img-placeholder .ph-label {
  position: relative;
  margin: 0.85rem;
  padding: 0.3rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  z-index: 1;
}

.ph-21-9 {
  aspect-ratio: 21 / 9;
}

.ph-16-9 {
  aspect-ratio: 16 / 9;
}

.ph-4-3 {
  aspect-ratio: 4 / 3;
}

.ph-1-1 {
  aspect-ratio: 1 / 1;
}

.ph-3-4 {
  aspect-ratio: 3 / 4;
}

.logo-showcase {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.logo-showcase img {
  width: 100%;
  max-width: 260px;
  height: auto;
}

/* ---------- Partners marquee ---------- */
.partners-marquee {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 64px,
    #000 calc(100% - 64px),
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 64px,
    #000 calc(100% - 64px),
    transparent 100%
  );
}

.partners-row {
  overflow: hidden;
}

.partners-track {
  display: flex;
  width: max-content;
  gap: 1.25rem;
  padding: 0.25rem 0;
  animation: partners-scroll-left 46s linear infinite;
}

.partners-track--b {
  animation-name: partners-scroll-right;
  animation-duration: 38s;
}

.partners-marquee:hover .partners-track {
  animation-play-state: paused;
}

@keyframes partners-scroll-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes partners-scroll-right {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .partners-track {
    animation: none;
  }
}

.partner-tile {
  flex: none;
  width: 190px;
  height: 190px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 3px solid color-mix(in srgb, var(--primary) 55%, transparent);
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.08));
}

.partner-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.partner-tile .logo-dark {
  display: none;
}

:root[data-theme="dark"] .partner-tile .logo-light {
  display: none;
}

:root[data-theme="dark"] .partner-tile .logo-dark {
  display: block;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background: linear-gradient(120deg, var(--navy-deep), var(--navy) 70%, var(--blue) 150%);
  color: #fff;
  padding: 4.5rem 0;
  text-align: center;
  overflow: hidden;
}

.cta-band--photo {
  background-image: url("/img/hero/skola-cta-lopta.jpg?v=7");
  background-size: cover;
  background-position: center;
  padding: 7.5rem 0;
}

.cta-band--photo h2,
.cta-band--photo p {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.65);
}

.cta-band h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  margin-bottom: 0.6rem;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 520px;
  margin-inline: auto;
}

.cta-band .btn-row {
  margin-top: 1.8rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- Timeline (Povijest) ---------- */
.timeline {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding-left: 2.2rem;
  border-left: 2px solid var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 2.6rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -2.38rem;
  top: 0.2rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary-dark);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--primary-dark);
}

.timeline-year {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--primary-dark);
  margin-bottom: 0.3rem;
}

[data-theme="dark"] .timeline-year {
  color: var(--primary);
}

.timeline-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.3rem;
}

.timeline-item p {
  color: var(--text-muted);
  margin: 0;
}

/* ---------- Honours grid ---------- */
.honours-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.honour-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.honour-card .honour-years {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.honour-card h4 {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

/* ---------- School (Škola rukometa) ---------- */
.school-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(4, auto);
  gap: 2rem;
}

.school-card {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 4;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.school-card-head {
  padding: 1.75rem 2rem;
  color: #fff;
  background: linear-gradient(120deg, var(--navy-deep), var(--navy));
}

.school-card-head.alt {
  background: linear-gradient(120deg, var(--navy), var(--blue));
}

.school-card-head .eyebrow {
  color: rgba(255, 255, 255, 0.75);
}

.school-card-head .eyebrow::before {
  background: #fff;
}

.school-card-head h3 {
  font-size: 1.7rem;
  margin: 0;
  color: #fff;
}

.school-card-body {
  display: contents;
}

.school-meta {
  display: flex;
  gap: 0.85rem;
  margin: 0 2rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--border);
}

.school-meta:first-of-type {
  padding-top: 1.9rem;
}

.school-meta:last-of-type {
  padding-bottom: 2.1rem;
  border-bottom: none;
}

.school-meta svg {
  width: 20px;
  height: 20px;
  color: var(--primary-dark);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

[data-theme="dark"] .school-meta svg {
  color: var(--primary);
}

.school-meta-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.school-meta-value {
  font-weight: 600;
}

.school-meta-value .contact {
  display: block;
  margin-bottom: 0.5rem;
}

.school-meta-value .contact:last-child {
  margin-bottom: 0;
}

.school-meta-value .contact-phone {
  display: block;
  font-weight: 400;
  color: var(--text-muted);
}

/* ---------- Benefits list ---------- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.benefit {
  text-align: left;
  padding: 1.75rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.benefit h4 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.benefit p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- Sponsors empty state ---------- */
.empty-state {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 3.5rem;
}

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .sponsor-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.sponsor-slot {
  display: grid;
  place-items: center;
  height: 110px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  color: var(--text-muted);
}

.sponsor-slot svg {
  width: 32px;
  height: 32px;
  opacity: 0.4;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.contact-crest {
  display: grid;
  place-items: center;
}

.contact-crest img {
  width: 100%;
  max-width: 300px;
  height: auto;
}

.contact-social {
  margin-top: 1.5rem;
}

.contact-social .social-icon {
  border-color: var(--border);
  color: var(--text);
}

.contact-social .social-icon:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.contact-info-item h4 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.contact-info-item p {
  margin: 0;
  color: var(--text-muted);
}

.contact-info-item a:hover {
  color: var(--primary);
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
}

.form-card h3 {
  font-size: 1.5rem;
}

.form-row {
  margin-bottom: 1.25rem;
}

.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  font: inherit;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent);
}

.form-row textarea {
  min-height: 130px;
  resize: vertical;
}

.form-note {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s var(--ease);
}

.form-note.visible {
  opacity: 1;
  max-height: 100px;
  padding-top: 0.5rem;
}

.form-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.9rem;
}

/* ---------- Season explorer (Poredak po sezonama) ---------- */
.team-tabs {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.3rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 2.25rem;
}

.team-tab {
  padding: 0.65rem 1.5rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.team-tab.active {
  background: var(--primary-dark);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.season-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-dot.gold {
  background: #d4af37;
}

.legend-dot.silver {
  background: #a7adb4;
}

.legend-dot.bronze {
  background: #b9712f;
}

.era-group {
  margin-bottom: 1.75rem;
}

.era-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-dark);
  margin-bottom: 0.9rem;
}

[data-theme="dark"] .era-title {
  color: var(--primary);
}

.season-chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.55rem;
}

.season-chip {
  position: relative;
  padding: 0.55rem 1.05rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  font-weight: 600;
  font-size: 0.88rem;
  text-align: center;
  color: var(--text);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease),
    background 0.2s var(--ease);
}

.season-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.season-chip.active {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
}

.season-chip.medal-gold::after,
.season-chip.medal-silver::after,
.season-chip.medal-bronze::after {
  content: "";
  position: absolute;
  top: -4px;
  right: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--surface);
}

.season-chip.medal-gold::after {
  background: #d4af37;
}

.season-chip.medal-silver::after {
  background: #a7adb4;
}

.season-chip.medal-bronze::after {
  background: #b9712f;
}

.season-detail {
  margin-top: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.season-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.season-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.season-detail-title {
  font-size: 1.9rem;
  margin: 0;
}

.season-medal-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.1em 0.5em;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.9rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
}

.season-medal-badge.medal-gold {
  background: #d4af37;
}

.season-medal-badge.medal-silver {
  background: #8b929b;
}

.season-medal-badge.medal-bronze {
  background: #b9712f;
}

.season-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.season-stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.season-stat-value {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
}

.season-stages {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.season-stages h4 {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.season-stage-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.season-stage-table th,
.season-stage-table td {
  text-align: center;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.season-stage-table th:first-child,
.season-stage-table td:first-child {
  text-align: left;
}

.season-stage-table th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.season-standings {
  margin-bottom: 1.5rem;
}

.season-standings h4 {
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
}

.standings-block + .standings-block {
  margin-top: 1.5rem;
}

.standings-caption {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.6rem;
}

.standings-caption-pos {
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.standings-stage-note {
  margin: 0.75rem 0 0;
  padding: 0.85rem 1.1rem;
  background: var(--bg-alt);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ---------- Bracket / doigravanje (match cards) ---------- */
.bracket-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.bracket-round-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-dark);
  margin: 0 0 0.75rem;
}

[data-theme="dark"] .bracket-round-title {
  color: var(--primary);
}

.bracket-matches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.bracket-match {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.9rem;
  flex: 1 1 280px;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.bracket-match-trilj {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.bracket-team {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.25;
}

.bracket-team-1 {
  text-align: right;
}

.bracket-team-2 {
  text-align: left;
}

.bracket-team-trilj {
  color: var(--text);
  font-weight: 800;
}

.bracket-score {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  color: var(--text-muted);
  white-space: nowrap;
}

.bracket-score-sep {
  opacity: 0.5;
}

@media (max-width: 560px) {
  .bracket-match {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 0.5rem;
  }

  .bracket-team-1,
  .bracket-team-2 {
    text-align: center;
  }

  .bracket-score {
    justify-content: center;
    margin: 0 auto;
  }
}

.standings-missing {
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  background: var(--bg-alt);
}

.standings-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  white-space: nowrap;
}

.standings-table th,
.standings-table td {
  text-align: center;
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid var(--border);
}

.standings-table th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--bg-alt);
}

.standings-table th,
.season-stage-table th {
  cursor: pointer;
  user-select: none;
  position: relative;
}

.standings-table th:hover,
.season-stage-table th:hover {
  color: var(--primary-dark);
}

.standings-table[data-no-sort] th {
  cursor: default;
}

.standings-table[data-no-sort] th:hover {
  color: var(--text-muted);
}

.standings-table th[data-no-sort-col] {
  cursor: default;
}

.standings-table th[data-no-sort-col]:hover {
  color: var(--text-muted);
}

[data-theme="dark"] .standings-table th[data-no-sort-col]:hover {
  color: var(--text-muted);
}

[data-theme="dark"] .standings-table th:hover,
[data-theme="dark"] .season-stage-table th:hover {
  color: var(--primary);
}

.standings-table th.sort-asc::after,
.standings-table th.sort-desc::after,
.season-stage-table th.sort-asc::after,
.season-stage-table th.sort-desc::after {
  content: "";
  display: inline-block;
  margin-left: 0.35em;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  vertical-align: middle;
}

.standings-table th.sort-asc::after,
.season-stage-table th.sort-asc::after {
  border-bottom: 5px solid var(--primary-dark);
}

.standings-table th.sort-desc::after,
.season-stage-table th.sort-desc::after {
  border-top: 5px solid var(--primary-dark);
}

[data-theme="dark"] .standings-table th.sort-asc::after,
[data-theme="dark"] .season-stage-table th.sort-asc::after {
  border-bottom-color: var(--primary);
}

[data-theme="dark"] .standings-table th.sort-desc::after,
[data-theme="dark"] .season-stage-table th.sort-desc::after {
  border-top-color: var(--primary);
}

[data-theme="dark"] .stats-mobile-select-wrap::after {
  border-top-color: var(--primary);
}

.standings-table tbody tr:last-child td {
  border-bottom: none;
}

.standings-table:not(.league-stat-table) td:nth-child(2),
.standings-table:not(.league-stat-table) th:nth-child(2) {
  white-space: normal;
  min-width: 10rem;
  text-align: left;
}

.standings-table:not(.league-stat-table) td:nth-child(2) {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.standings-row-trilj {
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  font-weight: 700;
}

.standings-table tr.medal-row-gold td:first-child {
  box-shadow: inset 3px 0 0 #d4af37;
}

.standings-table tr.medal-row-silver td:first-child {
  box-shadow: inset 3px 0 0 #a7adb4;
}

.standings-table tr.medal-row-bronze td:first-child {
  box-shadow: inset 3px 0 0 #b9712f;
}

.standings-note {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-bottom: 0.15em;
  border-radius: 50%;
  background: var(--primary);
  cursor: help;
}

/* ---------- Season sub-tabs (Tablica / Roster / Statistika lige / Statistika kluba) ---------- */
.season-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.9rem;
}

.season-subtab {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.season-subtab:hover {
  color: var(--text);
  border-color: var(--border);
}

.season-subtab.active {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
}

/* ---------- League stats (Statistika lige) ---------- */
.league-stat-block {
  margin-bottom: 1.75rem;
}

.league-stat-block:last-child {
  margin-bottom: 0;
}

.league-stat-block h5 {
  font-size: 0.92rem;
  margin: 0 0 0.75rem;
}

.league-stat-subtitle {
  font-weight: 400;
  color: var(--text-muted);
}

.league-stat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.league-stat-tab {
  flex: 1 1 auto;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  text-align: center;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.league-stat-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.league-stat-tab.active {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
}

.league-stat-panel {
  display: none;
}

.league-stat-panel.active {
  display: block;
}

@media (max-width: 680px) {
  .league-stat-tab {
    flex: 1 1 100%;
  }
}

.league-stat-hint {
  margin: 0.6rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
}

.roster-cards-coach-only {
  margin-top: 1rem;
}

.league-stat-table td:first-child {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: normal;
  min-width: 9rem;
  text-align: left;
}

.league-stat-table th:first-child {
  text-align: left;
}

/* Shrink short numeric columns to their content width so name columns can
   absorb the table's leftover width instead of every column stretching evenly. */
.standings-table:not(.league-stat-table) th:not(:nth-child(2)),
.standings-table:not(.league-stat-table) td:not(:nth-child(2)) {
  width: 1%;
  white-space: nowrap;
}

.league-stat-table-team th:not(:first-child),
.league-stat-table-team td:not(:first-child) {
  width: 1%;
  white-space: nowrap;
}

.league-stat-table-player th:not(:first-child):not(:nth-child(2)),
.league-stat-table-player td:not(:first-child):not(:nth-child(2)) {
  width: 1%;
  white-space: nowrap;
}

.roster-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

@media (max-width: 960px) {
  .roster-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 680px) {
  .roster-cards {
    grid-template-columns: 1fr;
  }
}

.roster-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
  align-self: start;
}

.roster-card-head {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0.9rem;
}

.roster-card-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.roster-card-player {
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.roster-card-player:last-child {
  border-bottom: none;
}

.roster-stats-table th:first-child,
.roster-stats-table td:first-child {
  text-align: left;
  min-width: 9rem;
}

.roster-stats-table th:not(:first-child),
.roster-stats-table td:not(:first-child) {
  width: 1%;
  white-space: nowrap;
}

/* ---------- Statistika (roster) mobile picker ---------- */
.stats-mobile-bar {
  display: none;
}

.stats-mobile-name-label {
  font-weight: 600;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.stats-mobile-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.stats-mobile-select-wrap {
  position: relative;
  display: inline-flex;
}

.stats-mobile-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.45rem 1.7rem 0.45rem 0.65rem;
}

.stats-mobile-select-wrap::after {
  content: "";
  position: absolute;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-65%);
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--primary-dark);
  pointer-events: none;
}

.stats-mobile-dir {
  width: 1.9rem;
  height: 1.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.7rem;
  line-height: 1;
  padding: 0;
}

.stats-mobile-dir.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white, #fff);
}

@media (orientation: portrait) {
  .stats-mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.55rem 0.8rem;
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    background: var(--bg-alt);
  }

  .stats-table-block .standings-table-wrap {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }

  .roster-stats-table thead {
    display: none;
  }

  .roster-stats-table td[data-key] {
    display: none;
  }

  .roster-stats-table[data-active-key="apps"] td[data-key="apps"],
  .roster-stats-table[data-active-key="goals"] td[data-key="goals"],
  .roster-stats-table[data-active-key="avg"] td[data-key="avg"],
  .roster-stats-table[data-active-key="susp"] td[data-key="susp"],
  .roster-stats-table[data-active-key="yellow"] td[data-key="yellow"],
  .roster-stats-table[data-active-key="red"] td[data-key="red"] {
    display: table-cell;
  }
}

/* ---------- Results by round (Rezultati po kolima) ---------- */
.results-table td:first-child {
  display: table-cell;
  min-width: 0;
  white-space: nowrap;
  text-align: center;
}

.results-table th:nth-child(1),
.results-table td:nth-child(1),
.results-table th:nth-child(2),
.results-table td:nth-child(2),
.results-table th:nth-child(4),
.results-table td:nth-child(4),
.results-table th:nth-child(6),
.results-table td:nth-child(6) {
  width: 1%;
  white-space: nowrap;
  text-align: center;
}

.results-table th:nth-child(3),
.results-table td:nth-child(3),
.results-table th:nth-child(5),
.results-table td:nth-child(5) {
  text-align: left;
  white-space: normal;
  min-width: 8rem;
}

.result-trilj {
  font-weight: 700;
  color: var(--primary-dark);
}

[data-theme="dark"] .result-trilj {
  color: var(--primary);
}

.result-note,
.result-voided {
  font-size: 0.74rem;
  font-style: italic;
  color: var(--text-muted);
  cursor: help;
}

.result-pdf-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
}

.result-pdf-link:hover {
  color: var(--primary);
}

.club-logo {
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 3px;
}

.stat-player-name {
  font-weight: inherit;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-group .reveal:nth-child(1) {
  transition-delay: 0s;
}
.reveal-group .reveal:nth-child(2) {
  transition-delay: 0.1s;
}
.reveal-group .reveal:nth-child(3) {
  transition-delay: 0.2s;
}
.reveal-group .reveal:nth-child(4) {
  transition-delay: 0.3s;
}
.reveal-group .reveal:nth-child(5) {
  transition-delay: 0.4s;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.82);
  padding-top: 4rem;
}

[data-theme="dark"] .site-footer {
  background: #050d17;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-logo {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}

.footer-brand-name {
  font-family: var(--font-head);
  font-weight: 800;
  color: #fff;
  font-size: 1.1rem;
}

.site-footer h3 {
  color: #fff;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.1rem;
}

.footer-links ul,
.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: #fff;
}

.footer-contact p {
  margin-bottom: 0.65rem;
}

.social-icons {
  display: flex;
  gap: 0.6rem;
}

.social-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.social-icon svg {
  width: 17px;
  height: 17px;
}

.social-icon:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.footer-bottom {
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .school-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .honours-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .season-stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--bg);
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    overflow-y: auto;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 2rem var(--gutter) 3rem;
  }

  .main-nav .nav-link {
    display: block;
    width: 100%;
    padding: 0.9rem 0;
    font-size: 1.15rem;
    border-bottom: 1px solid var(--border);
  }

  .menu-toggle {
    display: flex;
  }

  .split,
  .split-reverse {
    grid-template-columns: 1fr;
  }

  .split-reverse .split-media {
    order: 0;
  }
}

@media (max-width: 680px) {
  :root {
    --header-h: 68px;
  }

  .hero {
    padding: calc(var(--header-h) + 2.25rem) 0 5.5rem;
    clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
  }

  .page-hero {
    padding: calc(var(--header-h) + 2rem) 0 3.75rem;
    clip-path: polygon(0 0, 100% 0, 100% 97%, 0 100%);
  }

  .hero-actions .btn,
  .cta-band .btn-row .btn {
    width: 100%;
    justify-content: center;
  }

  .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1rem;
  }

  .partner-tile {
    width: 130px;
    height: 130px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .honours-grid {
    grid-template-columns: 1fr;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    text-align: left;
  }

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

  .timeline {
    padding-left: 1.6rem;
  }

  .timeline-item::before {
    left: -1.78rem;
  }

  .team-tabs {
    width: 100%;
  }

  .team-tab {
    flex: 1;
    text-align: center;
  }

  .season-detail {
    padding: 1.5rem;
  }
}
