/* ==========================================================================
   Nibble IT Services — glavni stil
   Paleta i fontovi odobreni 15. 11. 2026.
   ========================================================================== */

:root {
  /* Boje */
  --bg: #0B0F17;          /* primarna podloga */
  --bg-2: #131A26;        /* sekundarna podloga */
  --border: #232D3F;      /* obrubi */
  --text: #F8FAFC;        /* glavni tekst */
  --text-2: #94A3B8;      /* sekundarni tekst */
  --accent: #FD8E34;      /* narančasti akcent */
  --accent-hover: #E0761F;
  --on-accent: #0B0F17;   /* tekst na narančastoj (kontrast 8,3 : 1) */
  --accent-soft: rgba(253, 142, 52, .12);

  /* Fontovi */
  --font-head: "Plus Jakarta Sans", system-ui, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  /* Mjere */
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 10px;
  --radius-sm: 6px;
  --header-h: 72px;
  --section-y: clamp(72px, 10vw, 128px);

  color-scheme: dark;
}

/* ---------- Osnova ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Tipografske pomoćne klase ---------- */
.eyebrow {
  font-family: var(--font-mono); font-size: .78rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
.lead { font-size: clamp(1.075rem, 1.6vw, 1.2rem); color: var(--text-2); max-width: 60ch; }
.muted { color: var(--text-2); }
.section-head { display: grid; gap: 14px; max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 700; }

/* ---------- Gumbi ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: var(--radius-sm);
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--text-2); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn-primary[disabled]:hover { background: var(--accent); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .btn, .btn .arrow { transition: none; } }

/* ---------- Zaglavlje ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 15, 23, .82);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { width: auto; height: 46px; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; list-style: none; gap: 26px; }
.nav-list a {
  text-decoration: none; color: var(--text-2); font-size: .96rem; font-weight: 500;
  padding: 6px 0; position: relative; transition: color .2s;
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav-list a:hover, .nav-list a[aria-current="true"] { color: var(--text); }
.nav-list a:hover::after, .nav-list a[aria-current="true"]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.lang-switch { display: flex; align-items: center; gap: 2px; font-family: var(--font-mono); font-size: .8rem; }
.lang-switch a, .lang-switch span {
  padding: 6px 8px; border-radius: 4px; text-decoration: none; color: var(--text-2); letter-spacing: .06em;
}
.lang-switch a:hover { color: var(--text); }
.lang-switch [aria-current="page"] { color: var(--text); background: var(--bg-2); }
.header-cta { min-height: 42px; padding: 9px 18px; font-size: .94rem; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: transparent; border: 1px solid var(--border); color: var(--text); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle .bars { position: relative; width: 18px; height: 12px; }
.nav-toggle .bars span {
  position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .25s, opacity .2s, top .25s;
}
.nav-toggle .bars span:nth-child(1) { top: 0; }
.nav-toggle .bars span:nth-child(2) { top: 5px; }
.nav-toggle .bars span:nth-child(3) { top: 10px; }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 8px var(--gutter) 24px;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility 0s .2s;
  }
  .main-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { display: block; padding: 14px 0; font-size: 1.1rem; border-bottom: 1px solid var(--border); }
  .nav-list a::after { display: none; }
  .main-nav .mobile-cta { display: inline-flex; margin-top: 20px; }
}
@media (min-width: 1021px) { .main-nav .mobile-cta { display: none; } }
@media (max-width: 480px) { .brand img { height: 38px; } }

/* ---------- Naslovnica (hero) ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(56px, 9vw, 120px) clamp(64px, 9vw, 112px); }
.hero::before {
  /* tanka tehnička mreža u pozadini */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(35, 45, 63, .55) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(35, 45, 63, .55) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 70% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 65% at 70% 40%, #000 20%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; width: 620px; height: 620px; right: -160px; top: -180px; pointer-events: none;
  background: radial-gradient(circle, rgba(253, 142, 52, .16), transparent 62%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero-copy { display: grid; gap: 24px; justify-items: start; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; }
.hero h1 .dot { color: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-top: 12px; }
.hero-tags li {
  font-family: var(--font-mono); font-size: .76rem; color: var(--text-2);
  border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px;
}

.hero-panel {
  position: relative; background: linear-gradient(180deg, var(--bg-2), rgba(19, 26, 38, .6));
  border: 1px solid var(--border); border-radius: 16px; padding: clamp(24px, 3vw, 36px);
  display: grid; gap: 28px; box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .8);
}
.hero-panel .panel-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hero-panel .panel-icon { width: 64px; height: auto; }
.panel-label { font-family: var(--font-mono); font-size: .72rem; color: var(--text-2); letter-spacing: .12em; text-transform: uppercase; }
.panel-list { list-style: none; display: grid; gap: 0; }
.panel-list li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--border); }
.panel-list li:last-child { border-bottom: 1px solid var(--border); }
.panel-list .idx { font-family: var(--font-mono); font-size: .8rem; color: var(--accent); }
.panel-list strong { font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; display: block; }
.panel-list span.sub { font-size: .9rem; color: var(--text-2); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero::after { width: 420px; height: 420px; right: -200px; top: -120px; }
}

/* ---------- Sekcije ---------- */
.section { padding-block: var(--section-y); border-top: 1px solid var(--border); }
.section-alt { background: var(--bg-2); }

/* Usluge: tri glavne */
.services-main { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.service-card {
  position: relative; display: grid; gap: 16px; align-content: start;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px); transition: border-color .25s, transform .25s;
}
.service-card:hover { border-color: rgba(253, 142, 52, .45); transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .service-card, .service-card:hover { transition: none; transform: none; } }
.service-icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm); display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 { font-size: 1.3rem; font-weight: 700; }
.service-card p { color: var(--text-2); }
.check-list { list-style: none; display: grid; gap: 8px; margin-top: 4px; }
.check-list li { position: relative; padding-left: 22px; font-size: .95rem; }
.check-list li::before {
  content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px;
  border-radius: 2px; background: var(--accent);
}

.services-extra-head { margin-top: clamp(48px, 6vw, 72px); margin-bottom: 20px; display: flex; align-items: center; gap: 16px; }
.services-extra-head::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.services-extra-head h3 { font-size: 1rem; font-family: var(--font-mono); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
.services-extra { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; }
.services-extra li {
  display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start;
  padding: 22px; border: 1px solid var(--border); border-radius: var(--radius);
}
.services-extra .service-icon { width: 40px; height: 40px; }
.services-extra .service-icon svg { width: 20px; height: 20px; }
.services-extra h4 { font-size: 1.05rem; font-weight: 600; margin-bottom: 4px; }
.services-extra p { font-size: .93rem; color: var(--text-2); }

@media (max-width: 960px) {
  .services-main, .services-extra { grid-template-columns: 1fr; }
}
@media (min-width: 640px) and (max-width: 960px) {
  .services-extra { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* O meni */
.about-grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.about-media { position: sticky; top: calc(var(--header-h) + 32px); }
.about-photo {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; max-width: 100%;
  object-fit: cover; object-position: 50% 20%;
  border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg);
}

.about-copy { display: grid; gap: clamp(28px, 3.5vw, 40px); max-width: 680px; }
.about-head { display: grid; gap: 14px; }
.about-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 700; }
.about-person { display: grid; gap: 4px; padding-left: 18px; border-left: 2px solid var(--accent); }
.about-name { font-family: var(--font-head); font-size: clamp(1.25rem, 2vw, 1.45rem); font-weight: 700; letter-spacing: -0.01em; }
.about-role { color: var(--text-2); font-size: 1rem; }
.about-text { display: grid; gap: 18px; }
.about-text p { color: var(--text-2); font-size: 1.0625rem; line-height: 1.75; max-width: 64ch; }
.about-text p:first-child { color: var(--text); }
.about-areas-wrap { display: grid; gap: 16px; }
.about-areas-title { font-family: var(--font-mono); font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.about-areas { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--border); }
.about-areas li { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 8px 28px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.about-areas h4 { font-size: 1.02rem; font-weight: 700; line-height: 1.35; }
.about-areas p { color: var(--text-2); font-size: .97rem; line-height: 1.65; }
.about-cta { display: grid; gap: 18px; justify-items: start; padding: clamp(20px, 3vw, 28px); background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); }
.about-cta p { color: var(--text); font-size: 1.05rem; line-height: 1.65; max-width: 60ch; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-media { position: static; }
  .about-photo { max-width: 280px; }
}
@media (max-width: 640px) {
  .about-areas li { grid-template-columns: 1fr; }
}

/* Portfolio */
.portfolio-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter-btn {
  font: 500 .88rem var(--font-body); color: var(--text-2); background: transparent;
  border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; cursor: pointer; min-height: 40px;
  transition: color .2s, border-color .2s, background-color .2s;
}
.filter-btn:hover { color: var(--text); border-color: var(--text-2); }
.filter-btn[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.portfolio-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; list-style: none; }
.project-card {
  display: grid; grid-template-rows: auto 1fr; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.project-card[hidden] { display: none; }
.project-thumb {
  position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-bottom: 1px solid var(--border);
  display: grid; place-items: center; overflow: hidden;
  background:
    linear-gradient(to right, rgba(35, 45, 63, .5) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(to bottom, rgba(35, 45, 63, .5) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--bg-2);
}
.thumb-web { width: 62%; max-width: 320px; aspect-ratio: 16 / 10; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); display: grid; grid-template-rows: 14px 1fr; overflow: hidden; }
.thumb-web::before { content: ""; border-bottom: 1px solid var(--border); background: radial-gradient(circle at 8px 7px, var(--border) 2.5px, transparent 3px), radial-gradient(circle at 17px 7px, var(--border) 2.5px, transparent 3px); }
.thumb-web i { display: block; margin: 12% 10% 0; height: 10%; width: 50%; background: var(--border); border-radius: 3px; box-shadow: 0 18px 0 -2px var(--border), 0 34px 0 -4px rgba(253, 142, 52, .6); }
.thumb-print { height: 70%; aspect-ratio: 210 / 297; border: 1px solid var(--border); background: var(--bg); position: relative; box-shadow: 10px 10px 0 -1px var(--bg-2), 10px 10px 0 0 var(--border); }
.thumb-print::before { content: ""; position: absolute; inset: 10%; border: 1px dashed rgba(148, 163, 184, .35); }
.thumb-print::after { content: ""; position: absolute; left: 18%; right: 18%; top: 20%; height: 22%; background: rgba(253, 142, 52, .55); }
.project-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  font: 500 .68rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 9px; border-radius: 4px; border: 1px solid var(--border);
}
.badge-concept { color: var(--text); background: var(--bg-2); }
.badge-concept::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.badge-status { color: var(--text-2); background: transparent; }
.thumb-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .3s, transform .6s; }
.project-card:hover .thumb-photo { opacity: 1; transform: scale(1.03); }
.thumb-photo + .thumb-spec { background: rgba(11, 15, 23, .75); padding: 3px 7px; border-radius: 4px; color: var(--text); }
.thumb-spec { position: absolute; right: 14px; bottom: 12px; font-family: var(--font-mono); font-size: .7rem; color: var(--text-2); }
.project-body { display: grid; gap: 10px; padding: 22px 24px 24px; grid-template-rows: auto auto auto 1fr auto; }
.project-cat { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
.project-body h3 { font-size: 1.2rem; font-weight: 700; }
.project-body p { color: var(--text-2); font-size: .95rem; }
.project-link { justify-self: start; align-self: end; margin-top: 8px; font-size: .9rem; min-height: 40px; padding: 8px 16px; }
@media (max-width: 760px) { .portfolio-grid { grid-template-columns: 1fr; } }

/* Portfolio: dodatne sličice i poziv na kontakt */
.section-sub { font-family: var(--font-head); font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 600; color: var(--accent); letter-spacing: -0.01em; margin-top: -4px; }
.section-head .lead + .lead { margin-top: -4px; }
.thumb-book { aspect-ratio: 170 / 240; }
.thumb-book::after { left: 16%; right: 16%; top: 16%; height: 4px; box-shadow: 0 10px 0 rgba(148, 163, 184, .35), 0 18px 0 rgba(148, 163, 184, .35), 0 26px 0 rgba(148, 163, 184, .35), 0 34px 0 rgba(148, 163, 184, .35), 0 42px 0 rgba(148, 163, 184, .35); }
.thumb-slides { width: 62%; max-width: 320px; aspect-ratio: 16 / 9; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); position: relative; box-shadow: 10px -10px 0 -1px var(--bg-2), 10px -10px 0 0 var(--border); }
.thumb-slides::before { content: ""; position: absolute; left: 9%; top: 14%; width: 46%; height: 11%; border-radius: 3px; background: rgba(253, 142, 52, .6); }
.thumb-slides i { position: absolute; left: 9%; top: 38%; width: 60%; height: 7%; border-radius: 3px; background: var(--border); box-shadow: 0 16px 0 var(--border), 0 32px 0 var(--border); }
.portfolio-cta {
  margin-top: clamp(36px, 5vw, 56px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px;
  padding: clamp(24px, 3.5vw, 40px); border: 1px solid var(--border); border-radius: 16px;
  background: linear-gradient(120deg, var(--bg-2), rgba(19, 26, 38, .4));
}
.portfolio-cta > div { display: grid; gap: 8px; max-width: 60ch; min-width: 0; }
.portfolio-cta h3 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); font-weight: 700; }
.portfolio-cta p { color: var(--text-2); }

/* IT edukacije */
.edu-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
.edu-topics { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--border); }
.edu-topics li { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--border); }
.edu-topics h3 { font-size: 1.08rem; font-weight: 600; }
.edu-topics p { font-size: .92rem; color: var(--text-2); margin-top: 2px; }
.edu-level { font-family: var(--font-mono); font-size: .72rem; color: var(--text-2); border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.edu-formats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; list-style: none; margin-top: 28px; }
.edu-formats li { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.edu-formats strong { display: block; font-family: var(--font-head); font-size: 1rem; margin-bottom: 4px; }
.edu-formats span { font-size: .9rem; color: var(--text-2); }
@media (max-width: 900px) { .edu-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .edu-formats { grid-template-columns: 1fr; }
  .edu-topics li { grid-template-columns: 1fr; gap: 8px; }
  .edu-level { justify-self: start; }
}

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
.contact-info { display: grid; gap: 20px; }
.contact-info h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 700; }
.contact-steps { list-style: none; display: grid; gap: 14px; counter-reset: step; margin-top: 8px; }
.contact-steps li { counter-increment: step; display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: baseline; color: var(--text-2); }
.contact-steps li::before { content: "0" counter(step); font-family: var(--font-mono); font-size: .8rem; color: var(--accent); }
.contact-card {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 16px;
  padding: clamp(22px, 3vw, 36px); display: grid; gap: 16px; justify-items: start;
}
.contact-card p:not(.panel-label) { color: var(--text-2); }
.contact-email {
  font-family: var(--font-head); font-weight: 700; font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--text); text-decoration: none; overflow-wrap: anywhere;
}
.contact-email:hover { color: var(--accent); }
.contact-card .btn { margin-top: 4px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Podnožje ---------- */
.site-footer { border-top: 1px solid var(--border); padding-block: 56px 32px; background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 40px; }
.footer-brand { display: grid; gap: 16px; align-content: start; }
.footer-brand img { height: 52px; width: auto; }
.footer-brand p { color: var(--text-2); font-size: .95rem; max-width: 40ch; }
.footer-email .mono { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; margin-right: 8px; }
.footer-email a { color: var(--text); text-decoration: none; }
.footer-email a:hover { color: var(--accent); }
.footer-col h2 { font-family: var(--font-mono); font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: grid; gap: 8px; }
.footer-col a { text-decoration: none; color: var(--text); font-size: .95rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .85rem; color: var(--text-2); }
.footer-bottom .mono { font-family: var(--font-mono); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Umjerene animacije pri pomicanju ---------- */
/* Sadržaj je vidljiv i bez JavaScripta; klasa .js se dodaje tek kad skripta radi. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .js .reveal-delay-1 { transition-delay: .08s; }
  .js .reveal-delay-2 { transition-delay: .16s; }
}

/* ---------- Jednostavne stranice (preusmjeravanje, 404, EN u pripremi) ---------- */
.page-simple { min-height: 100vh; display: grid; place-items: center; }
.simple { width: 100%; max-width: 560px; padding: 48px var(--gutter); display: grid; gap: 16px; }
.simple h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); }
.simple p { color: var(--text-2); }
.simple a:not(.btn) { color: var(--accent); }
.simple-logo { width: 220px; height: auto; margin-bottom: 16px; }
.simple-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Uvodna animacija naslovnice: ne ovisi o JavaScriptu, sadržaj je odmah dostupan */
@media (prefers-reduced-motion: no-preference) {
  @keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  .intro { animation: fade-up .7s ease both; }
  .intro-1 { animation-delay: .1s; }
  .intro-2 { animation-delay: .2s; }
}
