/* Boje preuzete iz loga i letka "Programi i usluge" */
:root {
  --blue-dark: #1b5a93;   /* naslovi, tekst */
  --blue: #5b9bd5;        /* stopala, krug */
  --blue-light: #d5ebfa;  /* kartice */
  --blue-mid: #a9d3f2;    /* krugovi ikona */
  --yellow: #f7c94b;      /* sunce */
  --yellow-light: #fcebb5;
  --yellow-mid: #fbdc85;
  --green: #8fae95;       /* listovi */
  --cream: #fbf8ef;       /* pozadina letka */
  --text: #24476b;
  --radius: 28px;
  --shadow: 0 10px 30px rgba(27, 90, 147, 0.10);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
}

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

a { color: var(--blue-dark); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 20;
  padding: 10px 18px; border-radius: 999px;
  background: var(--blue-dark); color: #fff; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }

.script {
  font-family: "Caveat", cursive;
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1;
}

/* Gumbi */
.btn {
  display: inline-block;
  padding: 0.8em 1.6em;
  border-radius: 999px;
  background: var(--blue-dark);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--blue-dark);
  transition: transform .15s, background .15s, color .15s;
}
.btn:hover { transform: translateY(-2px); background: #164b7b; }
.btn-ghost { background: transparent; color: var(--blue-dark); }
.btn-ghost:hover { background: var(--blue-light); }
.btn-small { padding: 0.45em 1.2em; }

/* Zaglavlje */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(251, 248, 239, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(27, 90, 147, 0.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  font-family: "Caveat", cursive; font-weight: 700; font-size: 1.9rem; color: var(--blue-dark);
}
.brand img { border-radius: 50%; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { text-decoration: none; font-weight: 700; }
.nav a:not(.btn):hover { color: var(--blue); }
.nav .btn { color: #fff; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; margin: 5px 0; border-radius: 3px; background: var(--blue-dark); }

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 56px 0 72px; }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; z-index: -1;
}
.hero::before { width: 520px; height: 520px; left: -260px; top: 40px; background: var(--blue-mid); opacity: .55; }
.hero::after  { width: 380px; height: 380px; right: -140px; bottom: -200px; background: var(--yellow-mid); opacity: .6; }

.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; font-weight: 800; color: var(--blue); margin: 0 0 8px; }
.hero h1 { font-size: clamp(3.5rem, 9vw, 6.5rem); margin: 0 0 12px; }
.lead { font-size: 1.3rem; font-weight: 700; color: var(--blue-dark); max-width: 30ch; margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-logo img {
  width: 100%; max-width: 460px; margin-inline: auto;
  border-radius: 50%;
  box-shadow: var(--shadow);
  background: #fff;
}
.footsteps { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); width: 420px; color: var(--blue); opacity: .5; }

/* Sekcije */
.section { padding: 80px 0; }
.section-tint { background: #fff; }
.section-title { font-family: "Caveat", cursive; font-weight: 700; font-size: clamp(2.6rem, 6vw, 3.4rem); color: var(--blue-dark); margin: 0 0 8px; line-height: 1.1; }
.section-sub { margin: 0 0 40px; font-weight: 700; color: var(--blue); }

/* O nama */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.about p { max-width: 60ch; }
.values { list-style: none; padding: 28px 32px; margin: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.values li { display: flex; align-items: center; gap: 14px; padding: 12px 0; font-weight: 700; color: var(--blue-dark); }
.values li + li { border-top: 1px dashed var(--blue-mid); }
.dot { flex: none; width: 16px; height: 16px; border-radius: 50%; }
.dot-blue { background: var(--blue); }
.dot-yellow { background: var(--yellow); }
.dot-green { background: var(--green); }

/* Kartice programa */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { border-radius: var(--radius); padding: 28px; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-blue { background: var(--blue-light); }
.card-yellow { background: var(--yellow-light); }
.card h3 { margin: 16px 0 8px; font-size: 1.2rem; line-height: 1.3; color: var(--blue-dark); }
.card p { margin: 0; }
.icon { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; }
.card-blue .icon { background: var(--blue-mid); }
.card-yellow .icon { background: var(--yellow-mid); }
.icon svg { width: 42px; height: 42px; fill: none; stroke: var(--blue-dark); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Galerija */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.gallery figure { margin: 0; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { padding: 20px 24px 24px; }
.gallery figcaption strong { display: block; font-size: 1.15rem; color: var(--blue-dark); }

/* Kontakt */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 32px; }
.contact-list li { padding: 12px 0; border-bottom: 1px dashed var(--blue-mid); }
.ci-label { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; color: var(--blue); }
.contact-list a { font-weight: 700; text-decoration: none; }
.map { grid-column: 1 / -1; min-height: 380px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

/* Kontakt obrazac */
.contact-form { background: var(--blue-light); border-radius: var(--radius); padding: clamp(24px, 4vw, 36px); }
.contact-form h3 { margin: 0 0 20px; font-size: 1.4rem; color: var(--blue-dark); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-row label { font-weight: 800; font-size: .9rem; color: var(--blue-dark); }
.optional { font-weight: 600; color: var(--blue); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  font: inherit; font-size: 1rem; color: var(--text);
  background: #fff;
  border: 2px solid transparent; border-radius: 14px;
  padding: .7em .9em;
}
.form-row textarea { resize: vertical; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus,
.consent input:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(91, 155, 213, .25); }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 20px; font-size: .92rem; cursor: pointer; }
.consent input { flex: none; width: 18px; height: 18px; margin-top: 3px; accent-color: var(--blue-dark); }
.contact-form .btn { cursor: pointer; font: inherit; font-weight: 700; }
.contact-form .btn:disabled { opacity: .6; cursor: wait; transform: none; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin: 14px 0 0; font-weight: 700; }
.form-status:empty { display: none; }
.form-status[data-state="success"] { color: #2f7a45; }
.form-status[data-state="error"] { color: #b4462f; }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* Podnožje */
.site-footer { background: var(--blue-dark); color: #dbeaf7; padding: 48px 0 32px; text-align: center; }
.footer-inner p { margin: 0 0 12px; }
.footer-name { color: #fff; font-size: 2.4rem; }
.site-footer .small { font-size: .85rem; opacity: .75; margin-top: 20px; }

/* Responzivno */
@media (max-width: 900px) {
  .hero-inner, .about, .contact { grid-template-columns: 1fr; }
  .hero-logo { order: -1; }
  .hero-logo img { max-width: 300px; }
  .hero-text { text-align: center; }
  .lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 16px 20px;
    background: var(--cream);
    border-bottom: 1px solid rgba(27, 90, 147, 0.1);
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px 0; width: 100%; text-align: center; }
  .nav .btn { margin-top: 8px; }
  .cards, .gallery, .form-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .footsteps { width: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
}
