/* ============================================================
   Globalne postavke
   ============================================================ */
:root {
  --primary: #0d4b3c;
  --bg: #ffffff;
  --text: #222222;
  --header-height: 64px;
  --header-blur: 6px;
  font-size: 16px; /* 1rem = 16 px */
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover, a:focus {
  text-decoration: underline;
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
}

/* ============================================================
   Header – bela traka, zeleni linkovi
   ============================================================ */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 2.5rem;
  border-bottom: 1px solid #e4e4e4;
  backdrop-filter: blur(var(--header-blur));
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 2.5rem;
}

.logo img {
  width: 60px;
  height: 60px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

header nav {
  display: flex;
  gap: 1.25rem;
  margin-right: 0.25rem;
}

header nav a {
  color: var(--primary);
  font-weight: 600;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  width: 24px;
  height: 3px;
  background: var(--primary);
  transition: transform 0.3s;
}

/* Mobile nav */
@media (max-width: 768px) {
  header nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    flex-direction: column;
    background: var(--bg);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s;
    border-bottom: 1px solid #e4e4e4;
    padding-block: 0.5rem;
    padding-inline: 1rem;
  }
  header nav.open {
    max-height: 240px;
  }
  header nav a {
    padding: 0.5rem 1rem;
  }
  .hamburger {
    display: flex;
  }
}

/* ============================================================
   Main wrapper
   ============================================================ */
main {
  padding: calc(var(--header-height) + 1.5rem) 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* ============================================================
   Social link ikonice
   ============================================================ */
.social-links {
  text-align: center;
  margin: 16px 0;
}

.social-links img {
  width: 32px;
  height: 32px;
  transition: filter 0.5s;
  margin-right: 12px;
}

.social-links a:last-child img {
  margin-right: 0;
}

.social-links a:hover img,
.social-links a:focus img {
  filter: brightness(0.75);
}

.social-links a {
  text-decoration: none;
}

/* ============================================================
   Content-block (naslovna)
   ============================================================ */
h2 {
  color: #08432a;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-title {
  text-align: center;
}

.content-block {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-block: 2rem;
}

.content-block.reverse {
  flex-direction: row-reverse;
}

.content-block img {
  flex: 0 0 300px;
  width: 300px;
  max-width: 55%;
  border-radius: 8px;
  object-fit: cover;
}

.content-block > div {
  flex: 1 1 250px;
  min-width: 200px;
}

@media (max-width: 768px) {
  .content-block,
  .content-block.reverse {
    flex-direction: column;
    text-align: center;
  }
  .content-block img {
    width: 90%;
    max-width: 90%;
    margin-bottom: 1rem;
  }
}

/* ============================================================
   Content-block1 (nastave-u-ponudi)
   ============================================================ */
.content-block1 {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-block: 2rem;
}

.content-block1.reverse {
  flex-direction: row-reverse;
}

.content-block1 img {
  flex: 0 0 180px;
  width: 180px;
  max-width: 45%;
  border-radius: 8px;
  object-fit: cover;
}

.content-block1 > div {
  flex: 1 1 250px;
  min-width: 200px;
}

@media (max-width: 768px) {
  .content-block1,
  .content-block1.reverse {
    flex-direction: column;
    text-align: center;
  }
  .content-block1 img {
    width: 50%;
    max-width: 50%;
    margin-bottom: 1rem;
  }
}

/* ============================================================
   Footer – zelena pozadina, beli tekst, poravnanje
   ============================================================ */
footer {
  background: var(--primary);
  color: #fff;
  margin-top: 3rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem 2rem;
}

footer h3 {
  margin-top: 0;
}

footer address a {
  color: #fff;
  text-decoration: none;
}

.map-wrap {
  margin-top: 1rem;
  max-width: 600px;
}

.map-wrap iframe {
  width: 100%;
  height: 300px;
  border: 0;
}

