/* ============================================================
   CFS — Faculty of Criminal Justice & Security Studies
   Design language: "Institutional Record"
   ink navy + bone paper + a single signal-amber accent.
   Display: serif w/ authority. Body: humanist grotesque.
   ============================================================ */

:root {
  /* palette */
  --ink:      #0e1726;   /* deep navy-black — primary */
  --ink-2:    #1b2a44;   /* raised navy */
  --paper:    #f6f4ee;   /* bone */
  --paper-2:  #eceadf;   /* shaded bone */
  --line:     #c9c4b4;   /* hairline on paper */
  --amber:    #c8862a;   /* signal accent */
  --amber-lt: #e0a945;
  --slate:    #5d6573;   /* muted text */
  --white:    #ffffff;
  --danger:   #a4341f;
  --ok:       #2f6b43;

  /* type */
  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, "Courier New", monospace;

  /* scale */
  --maxw: 1180px;
  --gap:  clamp(1rem, 2.5vw, 2rem);
  --radius: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration-color: var(--amber); text-underline-offset: 3px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gap); }

/* ---------- Typografija ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
p  { margin: 0 0 1rem; }

.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 1rem;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--amber); }

/* ---------- Topbar / nav ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--paper); }
.brand .mark {
  width: 38px; height: 38px; flex: none;
  border: 1.5px solid var(--amber);
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: 1.1rem; color: var(--amber);
}
.brand b { font-family: var(--serif); font-size: 1.15rem; letter-spacing: .02em; }
.brand span { display: block; font-size: .62rem; font-family: var(--mono); letter-spacing: .18em; color: var(--slate); text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  color: var(--paper); text-decoration: none; font-size: .82rem; letter-spacing: .04em;
  text-transform: uppercase; font-weight: 500; padding: .4rem 0; position: relative;
}
.nav a::after { content:""; position:absolute; left:0; bottom:0; height:2px; width:0; background:var(--amber); transition:width .25s ease; }
.nav a:hover::after, .nav a.is-active::after { width: 100%; }

.nav-cta {
  background: var(--amber); color: var(--ink) !important;
  padding: .6rem 1.1rem !important; font-weight: 700;
  text-transform: uppercase; font-size: .76rem; letter-spacing: .06em;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--amber-lt); }

.lang-pill {
  border: 1px solid rgba(255,255,255,.25); padding: .35rem .65rem !important;
  font-family: var(--mono); font-size: .72rem !important;
}

.burger { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.burger span { display: block; width: 24px; height: 2px; background: var(--paper); margin: 5px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5.5rem);
}
/* signature: faint dossier grid + case-number ticks */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 40%, transparent 100%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero-case {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .2em;
  color: var(--amber); text-transform: uppercase; margin-bottom: 1.4rem;
}
.hero h1 { max-width: 16ch; margin-bottom: 1.2rem; }
.hero h1 em { font-style: italic; color: var(--amber-lt); }
.hero-sub { font-family: var(--serif); font-size: clamp(1.1rem, 2.2vw, 1.5rem); color: #cdd3dd; max-width: 46ch; font-style: italic; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 2.5rem; margin-top: 2.8rem;
  padding-top: 1.8rem; border-top: 1px solid rgba(255,255,255,.12);
}
.hero-meta .k { font-family: var(--mono); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--slate); margin-bottom: .35rem; }
.hero-meta .v { font-family: var(--serif); font-size: 1.35rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--sans); font-weight: 700; font-size: .82rem;
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  padding: .85rem 1.5rem; border: 1.5px solid transparent; cursor: pointer;
  border-radius: var(--radius); transition: .2s;
}
.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { background: var(--amber-lt); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--paper); border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber-lt); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--ink-2); }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-head { max-width: 60ch; margin-bottom: 2.5rem; }
.section--paper2 { background: var(--paper-2); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink .eyebrow { color: var(--amber-lt); }

/* content prose */
.prose { max-width: 68ch; }
.prose p { color: #2a3242; }
.prose ul { padding-left: 0; list-style: none; }
.prose li { position: relative; padding-left: 1.6rem; margin-bottom: .7rem; }
.prose li::before { content: "▸"; position: absolute; left: 0; color: var(--amber); }

/* article cards grid (sekcije) */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line);
  padding: 1.8rem; border-radius: var(--radius);
  position: relative; transition: .2s;
}
.card::before {
  content: attr(data-index);
  position: absolute; top: 1.4rem; right: 1.4rem;
  font-family: var(--mono); font-size: .7rem; color: var(--line); letter-spacing: .1em;
}
.card:hover { border-color: var(--amber); transform: translateY(-3px); box-shadow: 0 12px 30px rgba(14,23,38,.08); }
.card h3 { margin-bottom: .6rem; }
.card p { color: var(--slate); font-size: .95rem; margin: 0; }

/* speaker card */
.speaker { text-align: left; }
.speaker .photo { width: 100%; aspect-ratio: 3/4; object-fit: cover; background: var(--paper-2); margin-bottom: 1rem; filter: grayscale(1); transition: .3s; }
.speaker:hover .photo { filter: grayscale(0); }
.speaker .name { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }
.speaker .aff { font-size: .85rem; color: var(--slate); }

/* sponsors */
.sponsor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.sponsor-grid a { background: var(--white); display: grid; place-items: center; padding: 2rem; min-height: 120px; }
.sponsor-grid img { max-height: 64px; width: auto; filter: grayscale(1); opacity: .75; transition: .25s; }
.sponsor-grid a:hover img { filter: none; opacity: 1; }

/* gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 4px; }
.gallery-grid img { aspect-ratio: 4/3; object-fit: cover; cursor: pointer; transition: .3s; }
.gallery-grid img:hover { opacity: .85; }

/* documents */
.doc-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--white); border: 1px solid var(--line); padding: 1.1rem 1.4rem; margin-bottom: .8rem;
  border-radius: var(--radius);
}
.doc-row .ico { font-family: var(--mono); color: var(--amber); font-weight: 700; }
.doc-row .name { flex: 1; font-weight: 600; }

/* ---------- Forms ---------- */
.form { max-width: 640px; }
.field { margin-bottom: 1.3rem; }
.field label { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: .45rem; color: var(--ink); }
.field .req { color: var(--danger); }
.field input, .field textarea, .field select {
  width: 100%; padding: .8rem .9rem; font: inherit; font-size: .95rem;
  border: 1px solid var(--line); background: var(--white); border-radius: var(--radius);
  color: var(--ink); transition: .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(200,134,42,.15);
}
.field textarea { min-height: 180px; resize: vertical; }
.field .hint { font-size: .78rem; color: var(--slate); margin-top: .35rem; }
.wordcount { font-family: var(--mono); font-size: .78rem; }

/* flash / alerts */
.alert { padding: .9rem 1.2rem; border-radius: var(--radius); margin-bottom: 1.2rem; font-size: .92rem; border-left: 3px solid; }
.alert-success { background: #eaf3ec; color: var(--ok); border-color: var(--ok); }
.alert-error   { background: #f6ebe8; color: var(--danger); border-color: var(--danger); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #aab2c0; padding: 3.5rem 0 2rem; font-size: .9rem; }
.footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer h4 { color: var(--paper); font-family: var(--mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; }
.footer a { color: #aab2c0; text-decoration: none; }
.footer a:hover { color: var(--amber-lt); }
.footer .links { list-style: none; padding: 0; margin: 0; }
.footer .links li { margin-bottom: .5rem; }
.footer .bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .8rem; color: var(--slate); }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer .cols { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--ink); padding: 1rem var(--gap) 2rem; gap: .2rem;
    transform: translateY(-120%); transition: transform .3s ease; border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: .9rem 0; border-bottom: 1px solid rgba(255,255,255,.07); }
  .nav a::after { display: none; }
  .nav-cta { text-align: center; margin-top: .6rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
