/* eŠkola – landing page
   Boje usklađene s mobilnom aplikacijom eŠkola (tirkizna #40bfc8 → #167f88, tamnosiva #3d434c). */

:root {
  --brand: #40bfc8;       /* tirkizna iz mobilne aplikacije */
  --brand-600: #1f9aa3;
  --brand-700: #167f88;   /* za tekst – kontrast 4.7:1 na bijeloj */
  --brand-50: #e8f7f8;
  --brand-100: #cdeef0;
  --amber: #f4a83a;
  --amber-600: #e58f17;
  --amber-50: #fff4e3;
  --ink: #2f353d;
  --ink-2: #3d434c;
  --muted: #5f6873;
  --line: #e3e9ee;
  --bg: #ffffff;
  --bg-soft: #f5f9fb;
  --footer: #0f3438;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px -12px rgba(14, 60, 66, .18);
  --shadow-lg: 0 30px 60px -25px rgba(14, 60, 66, .35);
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-700); text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink-2); line-height: 1.25; margin: 0; font-weight: 600; }
p { margin: 0 0 1rem; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 860px; }

.ico { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink-2); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

/* ---------- Dugmad ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.6rem; border-radius: 999px;
  font-weight: 600; font-size: .9rem; letter-spacing: .04em; text-transform: uppercase;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.btn .ico { font-size: 1.15em; transition: transform .2s ease; }
.btn:hover .ico { transform: translateX(3px); }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-600)); color: #fff; text-shadow: 0 1px 1px rgba(10, 70, 76, .25); box-shadow: 0 10px 20px -10px rgba(31, 154, 163, .75); }
.btn-primary:hover { box-shadow: 0 14px 26px -10px rgba(31, 154, 163, .85); }
.btn-ghost { background: #fff; color: var(--brand-700); border-color: var(--brand-100); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-light { background: #fff; color: var(--ink-2); box-shadow: 0 10px 20px -12px rgba(0, 0, 0, .35); }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .75); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px -14px rgba(14, 60, 66, .35); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand img { width: 169px; height: auto; }

.main-nav { display: flex; align-items: center; gap: .3rem; }
.main-nav a:not(.btn) {
  display: inline-flex; align-items: center; gap: .55rem;
  color: var(--ink-2); font-weight: 500; font-size: .95rem; white-space: nowrap;
  padding: .6rem 1.05rem; border-radius: 999px;
  transition: background-color .2s ease, color .2s ease;
}
.main-nav a:not(.btn) .ico { font-size: 1.2rem; stroke-width: 1.7; }
.main-nav a:not(.btn):hover { background: #e9eff2; }
.main-nav a.active { background: #e9eff2; color: var(--brand-700); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink-2); border-radius: 2px; margin: 5px 0; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 112px);
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(64, 191, 200, .28), transparent 60%),
    radial-gradient(700px 420px at 0% 100%, rgba(244, 168, 58, .14), transparent 60%),
    linear-gradient(180deg, #f3fafc 0%, #fff 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(22, 127, 136, .12) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  mask-image: linear-gradient(90deg, transparent 40%, #000 75%);
  -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000 75%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 4vw, 56px); align-items: center; }
.hero-logo { width: 84px; margin-bottom: 1.2rem; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-700); margin-bottom: .8rem; }
.hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 700; letter-spacing: -.01em; margin-bottom: 1.2rem; }
.hero h1 .hl { background: linear-gradient(120deg, var(--brand-600), var(--brand-700)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 560px; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* Ekrani iz aplikacije */
.hero-visual { position: relative; padding-bottom: 56px; }
.mock-window {
  position: relative; margin-right: 96px;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden;
  border: 1px solid var(--line);
  animation: float 7s ease-in-out infinite;
}
.mock-window img { width: 100%; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d7dee4; }
.mock-bar i:first-child { background: #f7a6a0; }
.mock-bar i:nth-child(2) { background: #f6d38c; }
.mock-bar i:nth-child(3) { background: #9fdcaf; }
.mock-bar span { margin-left: 10px; font-size: .72rem; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 1px 12px; }

.mock-phone {
  position: absolute; right: 0; bottom: 0; width: 210px;
  filter: drop-shadow(0 26px 28px rgba(14, 60, 66, .3));
  animation: float 7s ease-in-out infinite; animation-delay: -3.5s;
}

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .mock-window, .mock-phone { animation: none; } }

/* ---------- Sekcije ---------- */
.section { padding: clamp(64px, 8vw, 104px) 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); }
.section-title { font-size: clamp(1.6rem, 2.8vw, 2.25rem); font-weight: 700; margin-bottom: .6rem; }
.section-sub { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* Vizija / Misija / Ciljevi */
.pillars { padding-top: 0; margin-top: clamp(-56px, -5vw, -32px); position: relative; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 30px 30px; text-align: center; box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pillar h2 { font-size: 1.35rem; color: var(--brand-700); margin: 16px 0 12px; }
.pillar:nth-child(2) h2 { color: var(--amber-600); }
.pillar p { color: var(--muted); margin: 0; font-size: .96rem; }
.pillar-icon {
  width: 64px; height: 64px; border-radius: 50%; display: inline-grid; place-items: center;
  background: var(--brand-50); color: var(--brand-700); font-size: 1.75rem;
  box-shadow: 0 0 0 8px rgba(64, 191, 200, .1);
}
.pillar-icon.amber { background: var(--amber-50); color: var(--amber-600); box-shadow: 0 0 0 8px rgba(244, 168, 58, .1); }

.ticks { list-style: none; margin: 0; padding: 0; text-align: left; display: inline-block; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: .45rem; color: var(--muted); font-size: .96rem; line-height: 1.5; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23167f88' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* CTA traka */
.cta-band {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--amber) 0%, #f7b955 55%, var(--amber-600) 100%);
  color: #fff; padding: clamp(48px, 6vw, 72px) 0;
}
.cta-band::after {
  content: ""; position: absolute; right: -80px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
  border: 60px solid rgba(255, 255, 255, .12); pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .85rem; font-weight: 500; margin-bottom: .6rem; opacity: .95; }
.cta-title { font-size: clamp(1.25rem, 2.2vw, 1.65rem); font-weight: 600; line-height: 1.4; max-width: 760px; margin: 0; color: #fff; }

/* Zašto */
.why { text-align: center; }
.why p { color: var(--muted); font-size: 1.05rem; text-align: justify; text-align-last: center; hyphens: auto; }
.why p strong { color: var(--ink-2); }
.why .section-title { margin-bottom: 1.6rem; }
.tag { color: var(--brand-700); font-weight: 500; }
.tag.amber { color: var(--amber-600); }

/* Vrijednosti */
.values-band {
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-600) 45%, var(--brand-700) 100%);
  color: #fff; padding: clamp(56px, 7vw, 88px) 0; position: relative; overflow: hidden;
}
.values-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .16) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
}
.values-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.value .ico { font-size: 3.2rem; stroke-width: 1.3; margin-bottom: 14px; }
.value h3 { color: #fff; font-size: 1.12rem; margin-bottom: .5rem; }
.value p { margin: 0; font-size: .93rem; opacity: .92; line-height: 1.6; }

/* Funkcionalnosti */
.features { background: var(--bg-soft); }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-100); }
.f-icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem;
  background: linear-gradient(135deg, var(--brand-50), var(--brand-100)); color: var(--brand-700); margin-bottom: 16px;
}
.feature:nth-child(4n+2) .f-icon, .feature:nth-child(4n+4) .f-icon { background: linear-gradient(135deg, var(--amber-50), #ffe8c4); color: var(--amber-600); }
.feature h3 { font-size: 1.04rem; margin-bottom: .45rem; }
.feature p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.6; }

/* Za koga */
.audience-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.aud { grid-column: span 2; }
.aud:nth-child(4) { grid-column: 2 / span 2; }
.aud:nth-child(5) { grid-column: 4 / span 2; }
.aud {
  position: relative; border-radius: var(--radius); padding: 28px 22px 22px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.aud::before { content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 4px; border-radius: 0 0 4px 4px; background: var(--brand); }
.aud:nth-child(even)::before { background: var(--amber); }
.aud-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; background: var(--brand-50); color: var(--brand-700); margin-bottom: 14px; }
.aud-icon.amber { background: var(--amber-50); color: var(--amber-600); }
.aud h3 { font-size: 1.1rem; margin-bottom: .8rem; }
.aud .ticks li { font-size: .88rem; }

/* Povezanost */
.connect { padding-top: 0; }
.word-cloud {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: .1rem .9rem; line-height: 1.05; margin: 0 auto 2.5rem; max-width: 760px;
  font-weight: 600; color: var(--brand-700); text-transform: lowercase; user-select: none;
}
.word-cloud span { transition: transform .2s ease; }
.word-cloud span:hover { transform: scale(1.06); }
.word-cloud .w1 { font-size: 1rem; opacity: .75; }
.word-cloud .w2 { font-size: 1.45rem; }
.word-cloud .w3 { font-size: 2rem; }
.word-cloud .w5 { font-size: clamp(2.8rem, 8vw, 4.6rem); color: var(--ink-2); font-weight: 700; letter-spacing: -.02em; order: 0; flex-basis: 100%; text-align: center; }
.word-cloud .a { color: var(--amber-600); }
.word-cloud .d { color: var(--ink-2); }
.connect p { color: var(--muted); font-size: 1.05rem; text-align: justify; hyphens: auto; }
.connect p strong { color: var(--ink-2); }
.brand-word { color: var(--brand-700); font-weight: 600; }

/* Kontakt */
.contact { background: linear-gradient(120deg, var(--brand-700) 0%, #11666e 60%, #0c4f55 100%); }
.contact::after { border-color: rgba(64, 191, 200, .18); }
.contact-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.contact .cta-title { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 700; margin-bottom: .8rem; }
.cta-text { opacity: .92; font-size: 1.05rem; max-width: 560px; margin-bottom: 1.8rem; }
.contact .btn-light { color: var(--brand-700); }
.contact-card {
  font-style: normal; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius); padding: 26px 26px 14px; backdrop-filter: blur(6px);
}
.contact-card a { display: flex; gap: 14px; align-items: flex-start; color: #fff; font-size: 1rem; line-height: 1.5; margin-bottom: 16px; }
.contact-card a:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact-card .ico { font-size: 1.3rem; margin-top: 2px; color: var(--brand); }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: rgba(255, 255, 255, .78); padding: 56px 0 0; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr; gap: 40px; padding-bottom: 40px; }
.footer-brand img { width: 169px; filter: brightness(0) invert(1); margin-bottom: 14px; }
.footer-brand p { margin: 0; max-width: 260px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer nav a, .site-footer div > a { display: flex; gap: 10px; align-items: flex-start; color: rgba(255, 255, 255, .78); margin-bottom: 9px; width: fit-content; }
.site-footer a:hover { color: #fff; }
.site-footer .ico { font-size: 1.1rem; margin-top: 4px; color: var(--brand); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 18px 0 22px; text-align: center; font-size: .85rem; color: rgba(255, 255, 255, .6); }
.footer-bottom a { color: rgba(255, 255, 255, .85); }

/* ---------- Animacije pri skrolanju ---------- */
/* Sadržaj je vidljiv i bez JS-a i prije skrolanja; animira se samo blago podizanje. */
.js .reveal { transform: translateY(18px); transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.visible { transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { transform: none; transition: none; } }

/* ---------- Responzivnost ---------- */
@media (max-width: 1100px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .feature:nth-child(n) .f-icon { background: linear-gradient(135deg, var(--brand-50), var(--brand-100)); color: var(--brand-700); }
  .feature:nth-child(odd) .f-icon { background: linear-gradient(135deg, var(--brand-50), var(--brand-100)); }
  .feature:nth-child(3n+2) .f-icon { background: linear-gradient(135deg, var(--amber-50), #ffe8c4); color: var(--amber-600); }
}

@media (max-width: 960px) {
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(14, 60, 66, .35);
    padding: 8px 16px 20px; transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav a:not(.btn) { padding: 12px 16px; border-radius: 12px; }
  .nav-toggle { display: block; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-logo { margin-inline: auto; }
  .lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { max-width: 560px; width: 100%; margin: 8px auto 0; }

  .cards-3 { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .pillars { margin-top: 0; padding-top: 8px; }
  .cta-inner { flex-direction: column; text-align: center; }
  .values-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 28px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature:nth-child(n) .f-icon { background: linear-gradient(135deg, var(--brand-50), var(--brand-100)); color: var(--brand-700); }
  .feature:nth-child(4n+2) .f-icon, .feature:nth-child(4n+3) .f-icon { background: linear-gradient(135deg, var(--amber-50), #ffe8c4); color: var(--amber-600); }
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
  .aud, .aud:nth-child(4), .aud:nth-child(5) { grid-column: auto; }
  .aud:nth-child(5) { grid-column: 1 / -1; }
  .contact-inner { grid-template-columns: 1fr; gap: 32px; }
  .contact-inner .hero-actions { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  body { font-size: 15px; }
  .hero-visual { padding-bottom: 40px; }
  .mock-window { margin-right: 40px; border-radius: 10px; }
  .mock-bar { padding: 7px 10px; }
  .mock-phone { width: 132px; }
  .why p, .connect p { text-align: left; text-align-last: auto; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature:nth-child(n) .f-icon { background: linear-gradient(135deg, var(--brand-50), var(--brand-100)); color: var(--brand-700); }
  .feature:nth-child(even) .f-icon { background: linear-gradient(135deg, var(--amber-50), #ffe8c4); color: var(--amber-600); }
  .audience-grid { grid-template-columns: 1fr; }
  .aud:nth-child(5) { grid-column: auto; }
  .values-grid { grid-template-columns: 1fr; }
  .word-cloud .w3 { font-size: 1.5rem; }
  .word-cloud .w2 { font-size: 1.15rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-card { padding: 22px 20px 8px; }
}
