/* ========================================
   Uključi sve! – Pristupačan dizajn
   ======================================== */

:root {
  --blue-dark: #0A3D91;
  --blue: #1A56C4;
  --blue-light: #E8F0FE;
  --yellow: #F5C518;
  --yellow-dark: #D4A017;
  --text: #1A1A1A;
  --text-light: #444;
  --bg: #FFFFFF;
  --bg-alt: #F7F9FC;
  --border: #D0D7E2;
  --focus: #F5C518;
  --shadow: 0 4px 12px rgba(10, 61, 145, 0.12);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-width: 960px;
  --radius: 12px;
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

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

a {
  color: var(--blue-dark);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

a:hover, a:focus-visible { color: var(--blue); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--blue-dark);
  color: white;
  padding: 12px 20px;
  border-radius: var(--radius);
  z-index: 1000;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus { top: 16px; }

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--blue-dark);
  font-weight: 700;
  font-size: 1.2rem;
}

.logo-link:hover { color: var(--blue); }

.logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

/* Navigation */
.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: block;
  padding: 0.55rem 0.85rem;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  border-radius: 8px;
  color: var(--text);
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.active {
  background: var(--blue-light);
  color: var(--blue-dark);
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--blue-dark);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  position: relative;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 22px;
  height: 3px;
  background: var(--blue-dark);
  border-radius: 2px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: var(--transition);
}

.hamburger { top: 50%; transform: translate(-50%, -50%); }
.hamburger::before { content: ""; top: -7px; }
.hamburger::after { content: ""; top: 7px; }

.nav-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.nav-toggle[aria-expanded="true"] .hamburger::before {
  top: 0;
  transform: translateX(-50%) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .hamburger::after {
  top: 0;
  transform: translateX(-50%) rotate(-45deg);
}

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--blue-dark) 0%, #0D4BB5 100%);
  color: white;
  padding: 4rem 0 5rem;
  text-align: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hero-logo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  padding: 8px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-slogan {
  margin: 0;
  font-size: 1.25rem;
  color: var(--yellow);
  font-weight: 600;
}

.hero-lead {
  margin: 0.5rem 0 1.5rem;
  font-size: 1.15rem;
  max-width: 36rem;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: all var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--yellow);
  color: var(--blue-dark);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--yellow-dark);
  color: var(--blue-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.15);
  border-color: white;
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--blue-dark);
  border: 2px solid var(--blue-dark);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--blue-light);
}

/* Page header */
.page-header {
  background: linear-gradient(160deg, var(--blue-dark) 0%, #0D4BB5 100%);
  color: white;
  padding: 3rem 0 2.5rem;
  text-align: center;
}

.page-header h1 {
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
}

.page-header p {
  margin: 0.75rem 0 0;
  opacity: 0.9;
  max-width: 36rem;
  margin-inline: auto;
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

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

.section h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  color: var(--blue-dark);
  position: relative;
}

.section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--yellow);
  margin-top: 0.5rem;
  border-radius: 2px;
}

.section h3 {
  margin: 2rem 0 1rem;
  font-size: 1.3rem;
  color: var(--blue-dark);
}

.section-intro {
  font-size: 1.25rem;
  color: var(--blue-dark);
  margin-bottom: 1.5rem;
}

.highlight {
  background: var(--blue-light);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  border-left: 5px solid var(--yellow);
  margin-top: 2rem;
}

/* Goals / Cards */
.goals-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: grid;
  gap: 1.25rem;
}

.goals-list li {
  background: white;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.goals-list strong {
  color: var(--blue-dark);
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.1rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  color: var(--blue-dark);
}

.card p { margin: 0; color: var(--text-light); }

.center { text-align: center; margin-top: 1.5rem; }

/* Links list */
.links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.links-list li {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
}

.links-list a {
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
}

.links-list a:hover { text-decoration: underline; }

.links-list .desc {
  margin: 0.4rem 0 0;
  color: var(--text-light);
  font-size: 1rem;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.gallery-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--blue-light);
}

.gallery-item figcaption {
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  color: var(--text-light);
}

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

.contact-info p { margin: 0 0 1.25rem; }
.contact-info a { font-weight: 500; }

.contact-note {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.small { font-size: 0.95rem; color: var(--text-light); }

/* Footer */
.site-footer {
  background: var(--blue-dark);
  color: white;
  padding: 2.5rem 0 1.5rem;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.footer-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px;
}

.site-footer a { color: var(--yellow); }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: center;
  margin: 1rem 0;
  font-size: 0.95rem;
}

.footer-nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
}

.footer-nav a:hover { color: var(--yellow); }

.copyright {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.85;
}

/* Responsive */
@media (max-width: 900px) {
  .main-nav ul { gap: 0; }
  .main-nav a { padding: 0.5rem 0.65rem; font-size: 0.92rem; }
}

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

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .main-nav.open { max-height: 420px; }

  .main-nav ul {
    flex-direction: column;
    padding: 0.5rem 1rem 1rem;
  }

  .main-nav a { padding: 0.85rem 1rem; }

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

  .hero { padding: 3rem 0 4rem; }
  .hero-logo { width: 130px; height: 130px; }
}

@media (max-width: 480px) {
  body { font-size: 1.05rem; }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn { width: 100%; text-align: center; }
}

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

/* ========== Vesti / News ========== */
.news-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

.news-date {
  display: block;
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 0.4rem;
}

.news-title {
  margin: 0 0 1rem;
  font-size: 1.4rem;
  color: var(--blue-dark);
  line-height: 1.3;
}

.news-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 0 0 1.25rem;
  display: block;
  object-fit: cover;
  max-height: 420px;
}

.news-content p {
  margin: 0 0 1rem;
}

.news-content p:last-child {
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .news-item {
    padding: 1.25rem 1rem;
  }
  .news-title {
    font-size: 1.25rem;
  }
  .news-image {
    max-height: 280px;
  }
}
