/* ============================================================
   OLIVA ALLEGRA — naslovnica
   Brendirano prema "Prijedlog logotipa" (vizualni standardi):
   • Boje:  #2e4f2e (maslinasto zelena)  ·  #aade32 (limeta/akcent)
            #d4ccbf (pijesak/bež)
   • Pismo: Taviraj (naslovni serif)  ·  Raleway (tekst / UI)
   ============================================================ */

:root {
  /* --- Brend boje --- */
  --green:        #2e4f2e;   /* primarna maslinasto zelena (brend) */
  --green-deep:   #223c22;   /* tamnija nijansa (hover / dubina) */
  --lime:         #aade32;   /* akcent — "Allegra" / vedrina (brend) */
  --sand:         rgb(212, 204, 191);  /* tercijarna boja — pijesak / bež (brend) */
  --sand-soft:    #e6e1d6;   /* svjetliji tint pijeska za velike plohe */
  --green-tint:   #eef2e7;   /* vrlo svijetla zelena ploha */
  --cream:        #f7f4ec;   /* topla pozadina stranice */
  --cream-2:      #fcfbf6;   /* svjetlija ploha */
  --ink:          #1d241b;   /* glavni tekst (zeleno-crna) */
  --ink-soft:     #585c4e;   /* prigušen tekst */
  --ink-on-sand:  #44483c;   /* prigušen tekst na pijesku (AA kontrast) */
  --line:         #d8d1c2;   /* tanke linije */
  --shadow:       0 18px 50px -28px rgba(34, 60, 34, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-size: 1rem;        /* baza 16px */
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }

.mono {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ===== SLIKE (lokalne) ===== */
.figure {
  position: relative;
  overflow: hidden;
  background: var(--sand);
}
.figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ===== OLIVE / ROSETTE MOTIV ===== */
.olive-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--green);
  margin: 0 auto;
}
.olive-divider .line {
  width: 56px;
  height: 1px;
  background: currentColor;
  opacity: 0.35;
}
.olive-divider svg { width: 30px; height: 16px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 26px;
}
.eyebrow::before {
  content: '';
  width: 34px;
  height: 2px;
  background: var(--lime);
}

/* ===== TOPBAR ===== */
.topbar {
  background: var(--green-deep);
  color: rgba(247, 244, 236, 0.72);
  font-size: 12px;
  padding: 10px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: 0.08em;
}
.topbar .mono { color: rgba(247, 244, 236, 0.78); font-size: 10px; letter-spacing: 0.14em; }
.topbar a { transition: color 0.2s; margin-left: 24px; }
.topbar a:hover { color: var(--lime); }

/* ===== NAV ===== */
.nav {
  background: rgba(247, 244, 236, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid transparent;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: border-color 0.25s, box-shadow 0.25s, padding 0.25s;
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -22px rgba(34, 60, 34, 0.5);
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo { display: flex; align-items: center; gap: 16px; }
.logo-img { display: block; height: 56px; width: auto; flex: none; }
.menu {
  display: flex;
  gap: 30px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.menu a {
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.menu a:hover { border-bottom-color: var(--lime); }
.menu a.active { color: var(--green); border-bottom-color: var(--lime); }
/* Suptilna oznaka: stavka vodi na sekciju s podstranicama (Škola, Programi) */
.menu .menu-has-section > a::after {
  content: ""; display: inline-block;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--lime); margin-left: 7px; vertical-align: middle;
}
.nav-cta {
  background: var(--green);
  color: var(--cream);
  padding: 12px 22px;
  font-size: 13px;
  letter-spacing: 0.12em;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}
.nav-cta:hover { background: var(--lime); color: var(--green-deep); }
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--green);
  line-height: 1;
}

/* ===== HERO ===== */
.hero {
  padding: 84px 40px 104px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1340px;
  margin: 0 auto;
  position: relative;
}
.hero-text { position: relative; z-index: 2; min-width: 0; }
.hero h1 {
  font-family: 'Taviraj', Georgia, serif;
  font-size: 66px;
  font-weight: 300;
  line-height: 1.08;
  margin-bottom: 26px;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.hero h1 em { font-style: italic; color: var(--green); font-weight: 400; }
/* lime podcrta koja se prelama kroz više redaka */
.hero h1 .accent {
  background-image: linear-gradient(rgba(170, 222, 50, 0.45), rgba(170, 222, 50, 0.45));
  background-repeat: no-repeat;
  background-size: 100% 0.22em;
  background-position: 0 0.92em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hero .lead {
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 480px;
  margin-bottom: 38px;
  font-weight: 400;
}
.hero-ctas {
  display: flex;
  gap: 22px;
  align-items: center;
  margin-bottom: 54px;
  flex-wrap: wrap;
}
.btn-lime {
  padding: 16px 30px;
  font-size: 13px;
  letter-spacing: 0.14em;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  border: none;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s, gap 0.2s, transform 0.2s;
}
.btn-lime { background: var(--lime); color: var(--green-deep); }
.btn-lime:hover { background: var(--green); color: var(--cream); gap: 16px; }
.btn-secondary {
  color: var(--ink);
  padding: 14px 0;
  font-size: 13px;
  letter-spacing: 0.14em;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--ink);
  transition: gap 0.2s, color 0.2s, border-color 0.2s;
}
.btn-secondary:hover { gap: 14px; color: var(--green); border-bottom-color: var(--green); }
.hero-photo { position: relative; }

/* ===== STATS (zasebna traka brojki) ===== */
.stats { background: var(--green-deep); color: var(--cream); padding: 60px 40px; position: relative; overflow: hidden; }
/* diskretni brendirani element u pozadini */
.stats::before {
  content: '';
  position: absolute;
  top: 50%; right: -70px;
  transform: translateY(-50%);
  width: 360px; height: 360px;
  background: url('../img/element.svg') no-repeat center / contain;
  opacity: 0.13;
  pointer-events: none;
}
.stats-inner {
  position: relative; z-index: 1;
  max-width: 1340px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; text-align: center;
}
.stat .num {
  display: block; font-family: 'Taviraj', Georgia, serif;
  font-size: 50px; color: var(--lime); line-height: 1; margin-bottom: 10px;
}
.stat .lbl {
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(247, 244, 236, 0.82);
}
.hero-photo .figure {
  aspect-ratio: 4 / 5;
  width: 100%;
  border-radius: 2px;
  box-shadow: var(--shadow);
}
/* Hero slideshow — crossfade + spori "Ken Burns" zoom */
.hero-slides { position: relative; }
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.2s ease;
  will-change: opacity, transform;
}
.hero-slide.is-active {
  opacity: 1;
  animation: heroKenburns 6.5s ease-out forwards;
}
.hero-slide:nth-child(1).is-active { transform-origin: 50% 40%; }
.hero-slide:nth-child(2).is-active { transform-origin: 20% 50%; }
.hero-slide:nth-child(3).is-active { transform-origin: 80% 70%; }
@keyframes heroKenburns {
  from { transform: scale(1.001); }
  to   { transform: scale(1.11); }
}
.hero-badge {
  position: absolute;
  bottom: -26px;
  left: -26px;
  background: var(--cream-2);
  padding: 22px 28px;
  z-index: 5;
  border-left: 3px solid var(--lime);
  box-shadow: var(--shadow);
  width: 50%;
}
.hero-badge .mono { color: var(--green); margin-bottom: 8px; }
.hero-badge .text {
  font-family: 'Taviraj', Georgia, serif;
  font-style: italic;
  font-size: 22px;
  color: var(--ink);
  line-height: 1.25;
  font-weight: 400;
  transition: opacity 0.4s ease;
}
.hero-badge .text.is-fading { opacity: 0; }

/* ===== STATEMENT BAND ===== */
.statement {
  background: var(--green-deep);
  color: var(--cream);
  padding: 84px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.statement-inner { max-width: 920px; margin: 0 auto; position: relative; z-index: 2; }
.statement .olive-divider { color: var(--lime); margin-bottom: 30px; }
.statement h2 {
  font-family: 'Taviraj', Georgia, serif;
  font-size: 50px;
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.005em;
  font-style: italic;
}
.statement h2 strong { font-style: normal; color: var(--lime); font-weight: 500; }

/* ===== SECTION HEAD ===== */
.section-head { text-align: center; margin-bottom: 70px; max-width: 640px; margin-left: auto; margin-right: auto; }
.section-head .eyebrow { justify-content: center; margin-bottom: 20px; }
.section-head .eyebrow::after {
  content: '';
  width: 34px;
  height: 2px;
  background: var(--lime);
}
.section-head h2 {
  font-family: 'Taviraj', Georgia, serif;
  font-size: 58px;
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.section-head h2 em { font-style: italic; color: var(--green); font-weight: 400; }
.section-head p {
  font-size: 18px;
  color: var(--ink-soft);
  line-height: 1.8;
  font-weight: 400;
}

/* ===== PROGRAMI ===== */
.programs-section { padding: 116px 40px; max-width: 1340px; margin: 0 auto; }
.programs-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
}
.program-card { display: block; cursor: pointer; }
.program-card .figure {
  aspect-ratio: 3 / 4;
  margin-bottom: 16px;
  border-radius: 2px;
  background: var(--green-deep);
}
/* slika je skrivena i otkriva se animacijom tek na hover */
.program-card .figure img {
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.55s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.program-card:hover .figure img,
.program-card:focus-visible .figure img { opacity: 1; transform: scale(1); }
/* .num + .name u okviru */
.program-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.program-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(34,60,34,0.28), rgba(34,60,34,0.5));
  opacity: 0;
  transition: opacity 0.55s ease;
}
.program-card:hover .program-overlay::after,
.program-card:focus-visible .program-overlay::after { opacity: 1; }
.program-overlay .num {
  position: absolute;
  top: 18px;
  left: 20px;
  z-index: 1;
  font-family: 'Taviraj', Georgia, serif;
  font-style: italic;
  font-size: 16px;
  color: var(--lime);
}
.program-overlay .name {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  font-family: 'Taviraj', Georgia, serif;
  font-size: 22px;
  font-weight: 300;
  line-height: 1.18;
  color: var(--cream);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35);
}
.program-card .duration {
  font-size: 13px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}

/* ===== ABOUT ===== */
.about { background: var(--sand-soft); padding: 116px 40px; }
.about-inner {
  max-width: 1340px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-photo { aspect-ratio: 5 / 4; border-radius: 2px; box-shadow: var(--shadow); }
.about-text h2 {
  font-family: 'Taviraj', Georgia, serif;
  font-size: 52px;
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 26px;
}
.about-text h2 em { font-style: italic; color: var(--green); font-weight: 400; }
.about-text p {
  font-size: 18px;
  color: var(--ink-on-sand);
  line-height: 1.9;
  font-weight: 400;
  margin-bottom: 18px;
}
/* ===== GALLERY ===== */
.gallery-section { padding: 116px 40px; max-width: 1340px; margin: 0 auto; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 104px;
  gap: 10px;
}
/* Visina galerijskih pločica je namjerno vođena gridom (grid-auto-rows × span);
   min-height je obrambena vrijednost da se slike ne sruše na 0 ako se span ukloni. */
.gallery-grid .figure { border-radius: 2px; min-height: 104px; }
.gallery-grid .figure:hover img { transform: scale(1.05); }
.gallery-grid .figure:nth-child(1) { grid-column: span 6; grid-row: span 4; }
.gallery-grid .figure:nth-child(2) { grid-column: span 3; grid-row: span 2; }
.gallery-grid .figure:nth-child(3) { grid-column: span 3; grid-row: span 2; }
.gallery-grid .figure:nth-child(4) { grid-column: span 3; grid-row: span 2; }
.gallery-grid .figure:nth-child(5) { grid-column: span 3; grid-row: span 2; }
.gallery-cta { text-align: center; margin-top: 54px; }

/* ===== PREDUPIS CTA ===== */
.cta-band {
  background: var(--green);
  color: var(--cream);
  padding: 100px 40px;
  position: relative;
  overflow: hidden;
}
.cta-inner {
  max-width: 1340px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.cta-band .eyebrow { color: var(--lime); margin-bottom: 22px; }
.cta-band .eyebrow::before { background: var(--lime); }
.cta-band h2 {
  font-family: 'Taviraj', Georgia, serif;
  font-size: 68px;
  font-weight: 300;
  line-height: 1.08;
  margin-bottom: 22px;
  letter-spacing: -0.02em;
}
.cta-band h2 em { font-style: italic; color: var(--lime); font-weight: 400; }
.cta-band p { font-size: 18px; line-height: 1.85; opacity: 0.9; font-weight: 400; max-width: 500px; }
.cta-actions { display: flex; flex-direction: column; gap: 14px; }
.cta-actions .cta-link {
  background: var(--cream-2);
  color: var(--green-deep);
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.cta-actions .cta-link:hover { background: var(--lime); transform: translateX(4px); }
.cta-actions .cta-link .lbl {
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}
.cta-actions .cta-link .arrow {
  font-family: 'Taviraj', Georgia, serif;
  font-size: 26px;
  color: var(--green);
}

/* ===== NEWS ===== */
.news-section { padding: 116px 40px; max-width: 1340px; margin: 0 auto; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.news-card { display: block; cursor: pointer; }
.news-card .figure { aspect-ratio: 4 / 3; margin-bottom: 22px; border-radius: 2px; }
.news-card:hover .figure img { transform: scale(1.05); }
.news-meta {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.news-meta::before { content: ''; width: 22px; height: 2px; background: var(--lime); }
.news-card h3 {
  font-family: 'Taviraj', Georgia, serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.22;
  margin-bottom: 12px;
  color: var(--ink);
  transition: color 0.2s;
}
.news-card:hover h3 { color: var(--green); }
.news-card p { font-size: 16px; color: var(--ink-soft); line-height: 1.75; margin-bottom: 16px; font-weight: 400; }
.news-link {
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--green-deep);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--lime);
  transition: gap 0.2s, color 0.2s, border-color 0.2s;
}
.news-link span { display: inline-block; transition: transform 0.25s; }
.news-card:hover .news-link { gap: 9px; color: var(--green); }
.news-card:hover .news-link span { transform: translateX(5px); }

/* ===== FOOTER ===== */
.footer {
  background: var(--green-deep);
  color: rgba(247, 244, 236, 0.62);
  padding: 96px 40px 30px;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
}
.footer-inner { max-width: 1340px; margin: 0 auto; position: relative; z-index: 2; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 46px;
  padding-bottom: 54px;
  border-bottom: 1px solid rgba(247, 244, 236, 0.1);
}
.footer h3 {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  font-weight: 700;
  margin-bottom: 22px;
}
.footer ul { list-style: none; }
.footer li { font-size: 15px; margin-bottom: 12px; }
.footer a { transition: color 0.2s; }
.footer a:hover { color: var(--lime); }
.footer-brand .logo-img { height: 62px; }
.footer-brand p { font-size: 15.5px; line-height: 1.85; margin-top: 18px; font-weight: 400; max-width: 360px; }
.footer-bottom {
  padding-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(247, 244, 236, 0.78);
}
.footer-legal-links { display: inline-flex; gap: 20px; flex-wrap: wrap; }
.footer-credit { margin-left: auto; text-align: right; }
.footer-credit a { font-weight: 600; letter-spacing: 0.14em; }

/* WPML jezični prebacivač u podnožju — ne prikazujemo ga */
.wpml-ls-statics-footer,
.wpml-ls-statics-footer.wpml-ls { display: none !important; }

/* Društvene mreže u podnožju (pod Kontakt) */
.footer-social-li { margin-top: 14px; }
.footer-social-label {
  display: block;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(247, 244, 236, 0.6); margin-bottom: 8px;
}
.footer-social { display: inline-flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(247, 244, 236, 0.28); border-radius: 50%;
  color: var(--cream);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.footer-social a:hover { background: var(--lime); color: var(--green-deep); border-color: var(--lime); }
.footer-social svg { width: 18px; height: 18px; }

/* ===== TRAŽILICA — topbar toggle + modal ===== */
.topbar-right { display: inline-flex; align-items: center; }
.search-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  margin-left: 22px; padding: 0; width: 22px; height: 22px;
  background: none; border: 0; cursor: pointer; color: inherit;
  transition: color 0.2s, transform 0.2s;
}
.search-toggle svg { width: 17px; height: 17px; }
.search-toggle:hover { color: var(--lime); transform: scale(1.08); }

.search-modal {
  position: fixed; inset: 0; z-index: 1100;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 18vh 24px 24px;
  background: rgba(34, 60, 34, 0.96);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.search-modal.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.search-modal-inner {
  width: 100%; max-width: 680px; text-align: center;
  transform: translateY(-14px); transition: transform 0.32s ease;
}
.search-modal.is-open .search-modal-inner { transform: none; }
.search-modal-eyebrow {
  display: block; color: var(--lime);
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700;
  margin-bottom: 18px;
}
.search-modal-form { display: flex; align-items: center; gap: 12px; border-bottom: 2px solid rgba(247, 244, 236, 0.4); padding-bottom: 12px; }
.search-modal-form:focus-within { border-bottom-color: var(--lime); }
.search-modal-form input {
  flex: 1; background: none; border: 0; outline: none;
  color: var(--cream); font-family: 'Taviraj', Georgia, serif; font-size: clamp(22px, 4vw, 34px);
}
.search-modal-form input::placeholder { color: rgba(247, 244, 236, 0.45); }
.search-modal-form button {
  background: none; border: 0; cursor: pointer; color: var(--lime);
  font-size: 30px; line-height: 1; padding: 0 6px; transition: transform 0.2s;
}
.search-modal-form button:hover { transform: translateX(4px); }
.search-modal-hint { color: rgba(247, 244, 236, 0.6); font-size: 13px; letter-spacing: 0.04em; margin-top: 16px; }
.search-modal-close {
  position: absolute; top: 22px; right: 28px;
  background: none; border: 0; cursor: pointer; color: var(--cream);
  font-size: 40px; line-height: 1; transition: color 0.2s;
}
.search-modal-close:hover { color: var(--lime); }

/* Obrazac pretrage (searchform.php — 404, rezultati) */
.search-form { display: inline-flex; align-items: stretch; gap: 0; max-width: 460px; width: 100%; }
.search-form input[type="search"] {
  flex: 1; font-family: 'Raleway', sans-serif; font-size: 15px;
  padding: 13px 16px; border: 1px solid var(--line); border-right: 0; border-radius: 3px 0 0 3px;
  background: var(--cream-2); color: var(--ink); outline: none;
}
.search-form input[type="search"]:focus { border-color: var(--green); }
.search-form button {
  background: var(--green-deep); color: var(--cream); border: 0; cursor: pointer;
  padding: 0 22px; border-radius: 0 3px 3px 0;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700;
  transition: background 0.2s;
}
.search-form button:hover { background: var(--green); }

/* ===== REVEAL ANIMACIJE ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-delay="3"] { transition-delay: 0.24s; }
[data-reveal][data-delay="4"] { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .figure img { transition: none; }
  .hero-slide, .hero-badge .text { transition: none; }
  .hero-slide.is-active { animation: none; transform: none; }
}

/* ===== FOKUS / PRISTUPAČNOST ===== */
.skip-link {
  position: absolute;
  left: 12px;
  top: -64px;
  z-index: 200;
  background: var(--green);
  color: var(--cream);
  padding: 12px 20px;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

a:focus-visible,
button:focus-visible,
.program-card:focus-visible,
.news-card:focus-visible,
.cta-link:focus-visible {
  outline: 3px solid var(--green-deep);
  outline-offset: 2px;
  border-radius: 2px;
}
/* svjetli prsten za kontrole na tamnozelenim plohama */
.cta-band .cta-link:focus-visible,
.statement a:focus-visible,
.footer a:focus-visible,
.nav-cta:focus-visible {
  outline-color: var(--cream);
}

/* ===== ZAŠTO BAŠ MI ===== */
.why { padding: 116px 40px; }
.why-inner { max-width: 1340px; margin: 0 auto; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.why-card {
  padding: 34px 28px;
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: 3px;
  border-top: 3px solid var(--lime);
  transition: transform 0.3s, box-shadow 0.3s;
}
.why-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.why-ico {
  width: 46px; height: 46px;
  color: var(--green);
  margin-bottom: 16px;
}
.why-card h3 {
  font-family: 'Taviraj', Georgia, serif;
  font-size: 23px; font-weight: 500; color: var(--ink);
  line-height: 1.25; margin-bottom: 10px;
}
.why-card p { font-size: 15.5px; color: var(--ink-soft); line-height: 1.7; }
/* USP kartice unutar sekcije "O školi" */
.about-why { max-width: 1340px; margin: 60px auto 0; }

/* ===== PROGRAM CARD — dopune ===== */
.program-desc { font-size: 14px; color: var(--ink-soft); line-height: 1.6; margin-top: 10px; }
.program-more {
  display: inline-block; margin-top: 12px;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 700; color: var(--green);
}
.program-card:hover .program-more { color: var(--green-deep); }

/* ===== MENTORI ===== */
.mentors { padding: 116px 40px; }
.mentors-inner { max-width: 1340px; margin: 0 auto; }
.mentors-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.mentor-card .figure { aspect-ratio: 5 / 6; border-radius: 3px; margin-bottom: 20px; }
.mentor-card:hover .figure img { transform: scale(1.04); }
.mentor-card h3 {
  font-family: 'Taviraj', Georgia, serif;
  font-size: 26px; font-weight: 500; color: var(--ink); line-height: 1.2;
}
.mentor-role {
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--green); font-weight: 700; margin: 6px 0 12px;
}
.mentor-card p { font-size: 15.5px; color: var(--ink-soft); line-height: 1.7; }

/* ===== PRAKSA I PARTNERI ===== */
.partners { padding: 100px 40px; background: var(--green-tint); }
.partners-inner {
  max-width: 1340px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.partners-text h2 {
  font-family: 'Taviraj', Georgia, serif;
  font-size: 46px; font-weight: 300; line-height: 1.12; margin-bottom: 20px;
}
.partners-text h2 em { font-style: italic; color: var(--green); font-weight: 400; }
.partners-text p { font-size: 17px; color: var(--ink-soft); line-height: 1.8; }
.partners-stats { display: flex; gap: 48px; margin-top: 30px; }
.partners-stats .num {
  display: block; font-family: 'Taviraj', Georgia, serif;
  font-size: 42px; color: var(--green); line-height: 1;
}
.partners-stats .lbl {
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 600;
}
.partners-logos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.partner-chip {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 3 / 2;
  background: var(--cream-2);
  border: 1px dashed var(--line);
  border-radius: 3px;
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 600;
}

/* ===== UPISI — KORACI ===== */
.upisi-section { padding: 116px 40px; max-width: 1340px; margin: 0 auto; }
.steps {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
  margin-bottom: 48px;
}
.step { position: relative; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--green); color: var(--cream);
  font-family: 'Taviraj', Georgia, serif; font-size: 22px;
  margin-bottom: 18px;
}
.step h3 {
  font-family: 'Taviraj', Georgia, serif;
  font-size: 22px; font-weight: 500; color: var(--ink); margin-bottom: 8px;
}
.step p { font-size: 15px; color: var(--ink-soft); line-height: 1.65; }
.upisi-info { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.info-card {
  padding: 26px 24px; background: var(--cream-2);
  border: 1px solid var(--line); border-left: 3px solid var(--lime); border-radius: 3px;
}
.info-card h3 {
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--green); font-weight: 700; margin-bottom: 10px;
}
.info-card p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; }
.upisi-cta { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 48px; }

/* ===== PREKVALIFIKACIJE ZA ODRASLE ===== */
.adults { padding: 100px 40px; background: var(--green-tint); }
.adults-inner {
  max-width: 1340px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.adults-text h2 {
  font-family: 'Taviraj', Georgia, serif;
  font-size: 48px; font-weight: 300; line-height: 1.12; margin-bottom: 20px;
}
.adults-text h2 em { font-style: italic; color: var(--green); font-weight: 400; }
.adults-text p { font-size: 17px; color: var(--ink-soft); line-height: 1.8; margin-bottom: 28px; }
.adults-list { list-style: none; }
.adults-list li {
  display: flex; flex-direction: column; gap: 4px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.adults-list li:first-child { border-top: 1px solid var(--line); }
.adults-li-t { font-family: 'Taviraj', Georgia, serif; font-size: 21px; color: var(--ink); }
.adults-li-d { font-size: 14.5px; color: var(--ink-soft); }

/* ===== SVJEDOČANSTVA ===== */
.testimonials { padding: 116px 40px; max-width: 1340px; margin: 0 auto; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.testi-card {
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 34px 30px;
  display: flex; flex-direction: column; gap: 24px;
}
.testi-card blockquote {
  font-family: 'Taviraj', Georgia, serif; font-style: italic;
  font-size: 19px; line-height: 1.5; color: var(--ink); flex: 1;
}
.testi-card figcaption { display: flex; align-items: center; gap: 14px; }
.testi-card figcaption img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.testi-card figcaption span { display: flex; flex-direction: column; }
.testi-card figcaption strong { font-size: 15px; color: var(--ink); }
.testi-card figcaption small { font-size: 13px; color: var(--ink-soft); }

/* ===== POSTIGNUĆA ===== */
.achievements {
  background: var(--green-deep); color: var(--cream);
  padding: 80px 40px; position: relative; overflow: hidden;
}
.ach-inner { max-width: 1340px; margin: 0 auto; position: relative; z-index: 2; }
.ach-head { text-align: center; margin-bottom: 48px; }
.ach-head .eyebrow { color: var(--lime); justify-content: center; }
.ach-head .eyebrow::before { background: var(--lime); }
.ach-head h2 { font-family: 'Taviraj', Georgia, serif; font-size: 40px; font-weight: 300; }
.ach-head h2 em { font-style: italic; color: var(--lime); font-weight: 400; }
.ach-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; text-align: center; }
.ach-item .num {
  display: block; font-family: 'Taviraj', Georgia, serif;
  font-size: 46px; color: var(--lime); line-height: 1; margin-bottom: 10px;
}
.ach-item .lbl { font-size: 13px; letter-spacing: 0.06em; color: rgba(247, 244, 236, 0.82); }

/* ===== FAQ ===== */
.faq-section { padding: 116px 40px; max-width: 900px; margin: 0 auto; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 4px;
  font-family: 'Taviraj', Georgia, serif; font-size: 21px; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; flex: none;
  font-family: 'Raleway', sans-serif; font-size: 26px; font-weight: 300;
  color: var(--green); transition: transform 0.25s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 4px 24px; }
.faq-a p { font-size: 16px; color: var(--ink-soft); line-height: 1.75; max-width: 720px; }
.faq-a a { color: var(--green); border-bottom: 1px solid var(--green); }

/* ===== KONTAKT ===== */
.contact { padding: 116px 40px; max-width: 1340px; margin: 0 auto; }
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label {
  display: flex; flex-direction: column; gap: 8px;
  font-size: 13px; letter-spacing: 0.04em; font-weight: 600; color: var(--ink-soft);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: inherit; font-size: 16px; color: var(--ink);
  padding: 13px 14px; border: 1px solid var(--line); border-radius: 2px;
  background: var(--cream-2); width: 100%;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(46, 79, 46, 0.15);
}
.contact-form .btn-lime { align-self: flex-start; border: none; cursor: pointer; }
.form-note { font-size: 14px; color: var(--green); font-weight: 600; }
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-block h3 {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--green); font-weight: 700; margin-bottom: 8px;
}
.contact-block p { font-size: 16px; color: var(--ink-soft); line-height: 1.7; }
.contact-block a { color: var(--ink); border-bottom: 1px solid var(--line); }
.contact-block a:hover { color: var(--green); border-bottom-color: var(--lime); }
.contact-map {
  display: flex; align-items: center; gap: 12px;
  margin-top: 6px; padding: 18px 20px;
  background: var(--sand); border-radius: 3px;
  font-size: 14px; font-weight: 600; color: var(--green-deep);
  transition: background 0.2s;
}
.contact-map:hover { background: var(--lime); }
.contact-map svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--green); stroke-width: 1.6; stroke-linejoin: round; }

/* ===== RESPONSIVE (nove sekcije) ===== */
@media (max-width: 1000px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .ach-grid { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .upisi-info { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .why, .mentors, .upisi-section, .testimonials, .faq-section, .contact { padding: 80px 24px; }
  .partners, .adults, .achievements { padding: 72px 24px; }
  .mentors-grid { grid-template-columns: repeat(2, 1fr); }
  .partners-inner, .adults-inner { grid-template-columns: 1fr; gap: 40px; }
  .testi-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .partners-text h2, .adults-text h2 { font-size: 38px; }
}
@media (max-width: 640px) {
  .why-grid, .mentors-grid, .steps, .upisi-info, .ach-grid { grid-template-columns: 1fr; }
  .contact-form .form-row { grid-template-columns: 1fr; }
  .partners-logos { grid-template-columns: repeat(2, 1fr); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .programs-grid { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: 58px; }
  .cta-band h2 { font-size: 46px; }
  .section-head h2 { font-size: 42px; }
}
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; padding: 56px 24px 84px; gap: 56px; }
  .hero h1 { font-size: 48px; }
  .stats-inner { grid-template-columns: repeat(3, 1fr); gap: 32px 20px; }
  .about-inner { grid-template-columns: 1fr; gap: 48px; }
  .section-head h2 { font-size: 38px; }
  .programs-section, .gallery-section, .news-section { padding: 80px 24px; }
  .about { padding: 80px 24px; }
  .cta-inner { grid-template-columns: 1fr; gap: 40px; }
  .cta-band { padding: 72px 24px; }
  .cta-band h2 { font-size: 42px; }
  .news-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer { padding: 72px 24px 24px; }
  .statement { padding: 68px 24px; }
  .gallery-grid { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 84px; }
  .gallery-grid .figure:nth-child(1) { grid-column: span 6; grid-row: span 3; }
  .gallery-grid .figure:nth-child(n+2) { grid-column: span 3; grid-row: span 2; }
}
@media (max-width: 640px) {
  .hero { padding: 36px 20px 64px; }
  .hero h1 { font-size: 40px; }
  .hero-badge { left: 0; bottom: -18px; padding: 16px 20px; }
  .hero-badge .text { font-size: 17px; }
  .statement h2 { font-size: 28px; }
  .section-head h2 { font-size: 32px; }
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .about-text h2 { font-size: 32px; }
  .cta-band h2 { font-size: 32px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  /* Galerija: jedan stupac na telefonima */
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery-grid .figure { grid-column: 1 / -1 !important; grid-row: auto !important; }
}

/* ===== RESPONZIVNI POPRAVCI (audit) ===== */
.search-toggle--nav { display: none; }
/* Navigacija kolabira na tabletu (≤880px): hamburger, skriven topbar, tražilica u navu */
@media (max-width: 880px) {
  .topbar { display: none; }
  .nav { padding: 16px 20px; }
  .nav.is-scrolled { padding: 12px 20px; }
  .menu-toggle { display: block; }
  .nav-cta { display: none; }
  .menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream-2); flex-direction: column; padding: 24px;
    border-bottom: 1px solid var(--line); gap: 18px; box-shadow: var(--shadow);
  }
  .menu.open { display: flex; }
  .nav .search-toggle--nav {
    display: inline-flex; margin-left: auto; margin-right: 8px;
    width: 42px; height: 42px; color: var(--green);
  }
  .nav .search-toggle--nav svg { width: 20px; height: 20px; }
}
@media (max-width: 640px) {
  /* Footer podnožje — dosljedno centrirano */
  .footer-bottom { align-items: center; }
  .footer-legal-links { justify-content: center; }
  .footer-credit { margin-left: 0; text-align: center; }
  /* Društvene ikone — veće tap-mete (≥44px) */
  .footer-social { gap: 14px; }
  .footer-social a { width: 44px; height: 44px; }
}
