/* =========================================================
   REGIONALNA LIGA - CLEAN BASE CSS
   Global + page-scoped structure
   ========================================================= */

/* =========================================================
   1. DESIGN TOKENS
   ========================================================= */

:root {
  --rl-bg: #eef2f6;
  --rl-surface: #ffffff;
  --rl-surface-soft: rgba(255, 255, 255, 0.94);
  --rl-text: #0f172a;
  --rl-text-soft: #475569;
  --rl-text-muted: #64748b;
  --rl-dark: #1e2a44;
  --rl-dark-2: #0f172a;
  --rl-accent: #06b6d4;
  --rl-accent-hover: #0891b2;
  --rl-border: #dbe3ea;
  --rl-border-soft: rgba(255, 255, 255, 0.12);
  --rl-shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.08);
  --rl-shadow-md: 0 16px 36px rgba(15, 23, 42, 0.14);
  --rl-radius-sm: 14px;
  --rl-radius-md: 20px;
  --rl-radius-lg: 24px;
  --rl-max: 1200px;
}

/* =========================================================
   2. BASE RESET / TYPOGRAPHY
   ========================================================= */

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  background: var(--rl-bg);
  color: var(--rl-text);
  font-family: "Barlow", sans-serif;
  font-weight: 300;
  line-height: 1.7;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

a:hover {
  text-decoration: none;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: var(--rl-text);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
}

h2 {
  font-size: clamp(1.9rem, 3vw, 2.7rem);
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.9rem);
}

ul,
ol {
  margin: 0;
  padding: 0;
}

figure {
  margin: 0;
}

/* =========================================================
   3. GENERIC HELPERS
   ========================================================= */

.rl-container {
  width: min(var(--rl-max), calc(100% - 2rem));
  margin: 0 auto;
}

.rl-section {
  padding: 5rem 0;
}

.rl-card {
  background: var(--rl-surface);
  border: 1px solid var(--rl-border);
  border-radius: var(--rl-radius-md);
  box-shadow: var(--rl-shadow-sm);
}

.rl-section-title {
  max-width: 900px;
  margin: 0 auto 2.5rem;
}

.rl-section-title--center {
  text-align: center;
}

.rl-section-title--left {
  text-align: left;
}

.rl-section-title h1::after,
.rl-section-title h2::after {
  content: "";
  display: block;
  width: 84px;
  height: 4px;
  margin-top: 14px;
  background: var(--rl-accent);
  border-radius: 999px;
}

.rl-section-title--center h1::after,
.rl-section-title--center h2::after {
  margin-left: auto;
  margin-right: auto;
}

.rl-section-title p {
  max-width: 900px;
  color: var(--rl-text-soft);
  font-size: 1.04rem;
  line-height: 1.9;
  margin-top: 1rem;
}

/* =========================================================
   4. CUSTOM HEADER / NAVIGATION
   Add this HTML block on every page.
   Use .is-active on current page link.
   ========================================================= */

.rl-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(30, 42, 68, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.rl-header__inner {
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.rl-header__brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.rl-header__brand img {
  width: auto;
  max-height: 56px;
}

.rl-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  flex: 1 1 auto;
}

.rl-nav__link,
.rl-mobile-menu__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  color: #ffffff;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
}

.rl-nav__link:hover,
.rl-nav__link.is-active,
.rl-mobile-menu__link:hover,
.rl-mobile-menu__link.is-active {
  background: rgba(6, 182, 212, 0.18);
  color: #ffffff;
}

.rl-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  flex: 0 0 auto;
}

.rl-nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
  border-radius: 999px;
}

.rl-mobile-menu {
  display: none;
}

@media screen and (max-width: 975px) {
  .rl-header__inner {
    width: min(1280px, calc(100% - 1.5rem));
    padding: 0.9rem 0;
  }

  .rl-header__brand img {
    max-height: 46px;
  }

  .rl-nav {
    display: none;
  }

  .rl-nav-toggle {
    display: inline-block;
  }

  .rl-mobile-menu {
    display: none;
    padding: 0 0.75rem 1rem;
    background: rgba(30, 42, 68, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  body.rl-menu-open .rl-mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }

  .rl-mobile-menu__link {
    display: block;
    border-radius: var(--rl-radius-sm);
  }
}

/* =========================================================
   5. CUSTOM FOOTER
   Optional if you later want to replace old footer too.
   ========================================================= */

.rl-footer {
  background: var(--rl-dark);
  color: #e5e7eb;
  padding: 3rem 0;
}

.rl-footer__grid {
  width: min(var(--rl-max), calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.rl-footer__card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--rl-radius-md);
  padding: 2rem;
  text-align: center;
}

.rl-footer__icon {
  width: 28px;
  height: 28px;
  margin: 0 auto 1rem;
  color: var(--rl-accent);
}

.rl-footer__title {
  color: #ffffff;
  margin-bottom: 1rem;
}

.rl-footer__text,
.rl-footer__text a {
  color: #e5e7eb;
}

@media screen and (max-width: 900px) {
  .rl-footer__grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   6. HOMEPAGE
   body class: page-home
   ========================================================= */

.page-home .rl-home-hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-home .rl-home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.70) 0%,
    rgba(15, 23, 42, 0.45) 35%,
    rgba(15, 23, 42, 0.82) 100%
  );
}

.page-home .rl-home-hero__inner {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4rem 0;
}

.page-home .rl-home-hero__content {
  max-width: 760px;
  padding: 2rem 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--rl-radius-lg);
  background: rgba(15, 23, 42, 0.62);
  box-shadow: var(--rl-shadow-md);
  color: #ffffff;
}

.page-home .rl-home-hero__content h1,
.page-home .rl-home-hero__content h2,
.page-home .rl-home-hero__content h3 {
  color: #ffffff;
}

.page-home .rl-home-hero__content p {
  color: #e5e7eb;
}

.page-home .rl-home-cards {
  padding: 5rem 0;
}

.page-home .rl-home-cards__grid {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.page-home .rl-home-card {
  min-height: 280px;
  padding: 2rem;
  background: var(--rl-surface);
  border: 1px solid var(--rl-border);
  border-radius: var(--rl-radius-md);
  box-shadow: var(--rl-shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.page-home .rl-home-card h3 {
  margin-bottom: 1rem;
}

.page-home .rl-home-card p {
  color: var(--rl-text-soft);
}

.page-home .rl-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  background: var(--rl-accent);
  color: #ffffff;
  font-family: "Barlow", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.page-home .rl-button:hover {
  background: var(--rl-accent-hover);
  color: #ffffff;
}

@media screen and (max-width: 975px) {
  .page-home .rl-home-cards__grid {
    grid-template-columns: 1fr;
  }

  .page-home .rl-home-hero__content {
    padding: 1.5rem;
  }
}

/* =========================================================
   7. O NAMA
   body class: page-about
   ========================================================= */

.page-about .rl-about-intro {
  padding: 5rem 0 2rem;
}

.page-about .rl-about-intro__wrap {
  width: min(900px, calc(100% - 2rem));
  margin: 0 auto;
}

.page-about .rl-about-intro__title {
  text-align: left;
  margin-bottom: 2rem;
}

.page-about .rl-about-intro__title h1::after {
  content: "";
  display: block;
  width: 84px;
  height: 4px;
  margin-top: 14px;
  background: var(--rl-accent);
  border-radius: 999px;
}

.page-about .rl-about-intro__content {
  color: var(--rl-text-soft);
  font-size: 1.06rem;
  line-height: 1.9;
  column-count: 2;
  column-gap: 2rem;
}

.page-about .rl-about-intro__content p {
  break-inside: avoid;
}

.page-about .rl-about-cards {
  padding: 3rem 0 4rem;
}

.page-about .rl-about-cards__grid {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.page-about .rl-about-card {
  background: var(--rl-surface);
  border: 1px solid var(--rl-border);
  border-radius: var(--rl-radius-md);
  box-shadow: var(--rl-shadow-sm);
  overflow: hidden;
}

.page-about .rl-about-card__image img {
  width: 100%;
}

.page-about .rl-about-card__body {
  padding: 2rem;
}

.page-about .rl-about-card__body h3 {
  margin-bottom: 1rem;
}

.page-about .rl-about-card__body p {
  color: var(--rl-text-soft);
  line-height: 1.85;
}

.page-about .rl-about-stats {
  position: relative;
  padding: 4.5rem 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-about .rl-about-stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.76), rgba(15, 23, 42, 0.72));
}

.page-about .rl-about-stats__inner {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
}

.page-about .rl-about-stats__grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  justify-content: center;
  align-items: stretch;
}

.page-about .rl-about-stat {
  flex: 1 1 25%;
  max-width: 260px;
  min-width: 220px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--rl-radius-md);
  box-shadow: var(--rl-shadow-md);
  overflow: hidden;
}

.page-about .rl-about-stat__inner {
  min-height: 180px;
  padding: 1.5rem 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
  text-align: center;
}

.page-about .rl-about-stat__label {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--rl-text-muted);
}

.page-about .rl-about-stat__value {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2.8rem, 4vw, 4rem);
  line-height: 1;
  font-weight: 700;
  color: var(--rl-accent);
}

@media screen and (max-width: 975px) {
  .page-about .rl-about-intro__content {
    column-count: 1;
  }

  .page-about .rl-about-cards__grid {
    grid-template-columns: 1fr;
  }

  .page-about .rl-about-stats__grid {
    flex-wrap: wrap;
  }

  .page-about .rl-about-stat {
    flex: 1 1 calc(50% - 20px);
    max-width: calc(50% - 20px);
  }
}

@media screen and (max-width: 575px) {
  .page-about .rl-about-stat {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* =========================================================
   8. REZULTATI
   body class: page-results
   ========================================================= */

.page-results .rl-results-section {
  padding: 5rem 0;
}

.page-results .rl-results-wrap {
  width: min(900px, calc(100% - 2rem));
  margin: 0 auto;
}

.page-results .rl-results-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.page-results .rl-results-item {
  display: block;
  padding: 1.25rem 1.4rem;
  background: var(--rl-surface);
  border: 1px solid var(--rl-border);
  border-radius: var(--rl-radius-md);
  box-shadow: var(--rl-shadow-sm);
  color: var(--rl-text);
}

.page-results .rl-results-item:hover {
  border-color: rgba(6, 182, 212, 0.45);
  transform: translateY(-2px);
}

.page-results .rl-results-item__title {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.4rem;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.page-results .rl-results-item__meta {
  color: var(--rl-text-muted);
  font-size: 0.95rem;
}

.page-results .rl-results-note {
  margin-bottom: 1.5rem;
  padding: 1rem 1.1rem;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.18);
  border-radius: var(--rl-radius-sm);
  color: var(--rl-text-soft);
}

/* =========================================================
   9. SLIKE
   body class: page-gallery
   ========================================================= */

.page-gallery .rl-gallery-section {
  padding: 5rem 0;
}

.page-gallery .rl-gallery-grid {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.page-gallery .rl-gallery-item {
  overflow: hidden;
  border-radius: var(--rl-radius-sm);
  box-shadow: var(--rl-shadow-sm);
  background: var(--rl-surface);
}

.page-gallery .rl-gallery-item img {
  width: 100%;
  transition: transform 0.35s ease;
}

.page-gallery .rl-gallery-item:hover img {
  transform: scale(1.03);
}

@media screen and (max-width: 975px) {
  .page-gallery .rl-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 575px) {
  .page-gallery .rl-gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   10. KONTAKT
   body class: page-contact
   ========================================================= */

.page-contact .rl-contact-section {
  padding: 5rem 0;
}

.page-contact .rl-contact-wrap {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

.page-contact .rl-contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.page-contact .rl-contact-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--rl-border);
  border-radius: var(--rl-radius-lg);
  box-shadow: var(--rl-shadow-md);
  padding: 2rem;
}

.page-contact .rl-contact-card h2,
.page-contact .rl-contact-card h3 {
  margin-bottom: 1rem;
}

.page-contact .rl-contact-card p,
.page-contact .rl-contact-card a {
  color: var(--rl-text-soft);
}

.page-contact .rl-contact-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media screen and (max-width: 975px) {
  .page-contact .rl-contact-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   11. SAFETY OVERRIDES FOR NEW CUSTOM BLOCKS
   These help when old builder styles leak in.
   ========================================================= */

.rl-header *,
.rl-footer *,
.rl-home-hero *,
.rl-home-cards *,
.rl-about-intro *,
.rl-about-cards *,
.rl-about-stats *,
.rl-results-section *,
.rl-gallery-section *,
.rl-contact-section * {
  box-sizing: border-box;
}

.rl-header a,
.rl-footer a,
.rl-home-cards a,
.rl-results-section a,
.rl-contact-section a {
  text-decoration: none;
}

.rl-about-stat__value,
.rl-about-stat__value p,
.rl-about-stat__value span,
.rl-about-stat__value strong {
  display: block;
  margin: 0;
  padding: 0;
  color: var(--rl-accent);
  font-family: "Barlow Condensed", sans-serif;
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
}

/* =========================================================
   12. RESPONSIVE GLOBAL SPACING
   ========================================================= */

@media screen and (max-width: 575px) {
  .rl-section {
    padding: 4rem 0;
  }

  .rl-section-title {
    margin-bottom: 2rem;
  }
}

.upcoming-section {
  margin-top: -30px;
  padding: 0 0 70px;
  position: relative;
  z-index: 2;
}

.upcoming-card {
  max-width: 980px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 22px;
  padding: 34px 38px;
  box-shadow: 0 18px 50px rgba(13, 27, 62, 0.08);
}

.upcoming-eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1bb6e8;
}

.upcoming-card h2 {
  margin: 0 0 12px;
  font-size: 42px;
  line-height: 1.05;
  color: #12284c;
}

.upcoming-text {
  max-width: 760px;
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: #5d6b82;
}

.upcoming-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.upcoming-link {
  font-size: 15px;
  font-weight: 600;
  color: #12284c;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.upcoming-link:hover {
  opacity: 0.75;
}

.upcoming-card::before {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  border-radius: 999px;
  background: #1bb6e8;
  margin-bottom: 18px;
}

@media (max-width: 768px) {
  .upcoming-section {
    margin-top: -10px;
    padding-bottom: 50px;
  }

  .upcoming-card {
    padding: 24px 20px;
    border-radius: 18px;
  }

  .upcoming-card h2 {
    font-size: 28px;
  }

  .upcoming-text {
    font-size: 15px;
  }

  .upcoming-actions {
    align-items: flex-start;
    gap: 12px;
  }
}

.contact-section {
  padding: 60px 0 80px;
}

.contact-card {
  max-width: 1000px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 22px;
  padding: 36px 40px;
  box-shadow: 0 18px 50px rgba(13, 27, 62, 0.08);
}

.contact-header h2 {
  margin: 0 0 10px;
  font-size: 28px;
  color: #12284c;
}

.contact-header p {
  margin: 0 0 30px;
  max-width: auto;
  font-size: 15px;
  line-height: 1.6;
  color: #5d6b82;
}

.contact-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.contact-name {
  font-size: 20px;
  font-weight: 700;
  color: #12284c;
  margin: 0;
}

.contact-role {
  margin: 4px 0 0;
  font-size: 14px;
  color: #7a879c;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-item {
  font-size: 15px;
  font-weight: 500;
  color: #12284c;
  text-decoration: none;
  transition: all 0.2s ease;
}

.contact-item:hover {
  color: #1bb6e8;
}

@media (max-width: 768px) {
  .contact-card {
    padding: 24px 20px;
  }

  .contact-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .contact-name {
    font-size: 18px;
  }
}

.contact-header::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: #1bb6e8;
  border-radius: 999px;
  margin-top: 16px;
}

.site-footer {
  background: #18294d;
  padding: 40px 0 28px;
  color: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.footer-card {
  background: none;
  border: none;
  padding: 0;
}

.footer-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.footer-card p {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.5;
}

.footer-card p:last-child {
  margin-bottom: 0;
}

.footer-card a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-card a:hover {
  color: #1bb6e8;
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.62);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .site-footer {
    padding: 30px 0 16px;
  }
}