/* ==========================================================================
   Goran Čelar — Online Business Strategist
   Design tokens: dark navy/charcoal, blue/cyan/purple/red accents
   Type: Space Grotesk (display) + Inter (body)
   ========================================================================== */

:root {
  /* Backgrounds */
  --bg-base: #080b13;
  --bg-panel: #0d121e;
  --bg-panel-alt: #10141f;
  --bg-card: #121826;
  --bg-card-hover: #161d2e;

  /* Accents */
  --blue: #4a7dff;
  --cyan: #22d3ee;
  --purple: #8b6bf2;
  --red: #ef5a6f;

  /* Text */
  --text-primary: #eef1f7;
  --text-secondary: #a2acc2;
  --text-muted: #6b7690;

  /* Borders / glow */
  --border-subtle: rgba(148, 163, 196, 0.12);
  --border-strong: rgba(148, 163, 196, 0.22);
  --glow-blue: rgba(74, 125, 255, 0.35);
  --glow-cyan: rgba(34, 211, 238, 0.25);
  --glow-purple: rgba(139, 107, 242, 0.3);
  --glow-red: rgba(239, 90, 111, 0.22);

  /* Type scale — desktop */
  --h1: clamp(2.5rem, 4.2vw, 4rem);
  --h2: clamp(2rem, 3.2vw, 3rem);
  --h3: clamp(1.35rem, 1.8vw, 1.75rem);
  --body: 1.125rem;
  --small: 0.9375rem;

  /* Layout */
  --content-max: 1180px;
  --paragraph-max: 720px;
  --section-pad: 104px;
  --section-pad-mobile: 56px;
  --radius: 16px;
  --radius-sm: 10px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  font-size: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-wrap: balance;
}

h1 { font-size: var(--h1); line-height: 1.08; font-weight: 700; }
h2 { font-size: var(--h2); line-height: 1.12; }
h3 { font-size: var(--h3); line-height: 1.25; }

p { color: var(--text-secondary); }

a { color: inherit; text-decoration: none; }

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

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-pad) 0;
}

@media (max-width: 768px) {
  .section { padding: var(--section-pad-mobile) 0; }
}

.section-intro {
  max-width: var(--paragraph-max);
  margin-bottom: 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
}

.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.lede {
  font-size: 1.1875rem;
  color: var(--text-secondary);
  max-width: var(--paragraph-max);
}

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06) inset, 0 8px 24px -8px var(--glow-blue);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08) inset, 0 14px 32px -8px var(--glow-blue);
}

.btn-secondary {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.btn-secondary:hover {
  border-color: var(--cyan);
  background: rgba(34, 211, 238, 0.06);
}

/* ---------------- Navigation ---------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 11, 19, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--content-max);
  margin: 0 auto;
}

.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

.nav-logo span {
  color: var(--cyan);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a:not(.btn) {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
  position: relative;
}

.nav-links a:not(.btn):hover {
  color: var(--text-primary);
}

.nav-cta { display: none; }
@media (min-width: 900px) { .nav-cta { display: inline-flex; } }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 200;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 899px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 0 0 0 30%;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 28px;
    background: var(--bg-panel);
    padding: 32px;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.4s var(--ease), visibility 0s linear 0.4s;
    border-left: 1px solid var(--border-subtle);
  }
  .nav-links.open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.4s var(--ease), visibility 0s;
  }
  .nav-links a:not(.btn) { font-size: 1.25rem; }
  .nav-links .btn { width: 100%; justify-content: center; }
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: min(86vh, 820px);
  padding: 64px 0 96px;
}

.hero > .container {
  width: 100%;
}

/* Slika kao pozadinski sloj sekcije — full bleed do gornje/desne ivice */
.hero-photo {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 48%;
  z-index: 0;
  pointer-events: none;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  mask-image:
    linear-gradient(to left, black 62%, transparent 99%),
    linear-gradient(to top, transparent 0%, black 22%);
  mask-composite: intersect;
  -webkit-mask-image:
    linear-gradient(to left, black 62%, transparent 99%),
    linear-gradient(to top, transparent 0%, black 22%);
  -webkit-mask-composite: source-in;
}

/* Blagi blue glow dole-levo za ravnotežu kompozicije */
.hero::before {
  content: '';
  position: absolute;
  bottom: -25%;
  left: -12%;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, var(--glow-blue), transparent 68%);
  filter: blur(36px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 580px;
}

.hero-headline {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: var(--h1);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.hero-headline .accent {
  background: linear-gradient(120deg, var(--cyan), var(--blue) 60%, var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 1.1875rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 20px;
}

.hero-support {
  color: var(--text-muted);
  font-size: 0.9375rem;
  max-width: 540px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}

.mini-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}

.mini-line span { position: relative; padding-left: 16px; }
.mini-line span::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
}
.mini-line span:first-child { padding-left: 0; }
.mini-line span:first-child::before { display: none; }

/* Mobile: slika full-width iznad teksta, fade na dnu prema tekstu */
@media (max-width: 900px) {
  .hero {
    display: block;
    min-height: 0;
    padding: 0 0 64px;
  }

  .hero-photo {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    margin-bottom: 8px;
  }

  .hero-photo img {
    object-position: center top;
    mask-image: linear-gradient(to bottom, black 62%, transparent 99%);
    mask-composite: unset;
    -webkit-mask-image: linear-gradient(to bottom, black 62%, transparent 99%);
    -webkit-mask-composite: unset;
  }

  .hero-content {
    max-width: 100%;
  }
}



/* ---------------- Cards (shared) ---------------- */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}

.card:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(74,125,255,0.15), rgba(139,107,242,0.15));
  border: 1px solid var(--border-subtle);
}

.card-icon svg { width: 20px; height: 20px; stroke: var(--cyan); }

.card h3 { margin-bottom: 10px; font-size: 1.1875rem; }
.card p { font-size: 0.9375rem; }

.grid {
  display: grid;
  gap: 20px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------------- Problem section ---------------- */

.problem-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
}

.problem-card .mark {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--red);
  background: rgba(239, 90, 111, 0.08);
  border: 1px solid rgba(239, 90, 111, 0.25);
}

.problem-card p { color: var(--text-primary); font-weight: 500; }

.closing-line {
  margin-top: 40px;
  padding: 28px 32px;
  border-left: 2px solid var(--cyan);
  background: var(--bg-panel);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  max-width: var(--paragraph-max);
}

.closing-line p { color: var(--text-primary); font-size: 1.0625rem; }

/* ---------------- System flow band ---------------- */

.flow-band {
  padding: 40px 0 56px;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background:
    radial-gradient(ellipse 60% 100% at 50% 50%, rgba(74,125,255,0.05), transparent),
    var(--bg-base);
  overflow: hidden;
}

.flow-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.flow-node svg {
  width: 44px;
  height: 44px;
  padding: 11px;
  box-sizing: border-box;
  border-radius: 12px;
  stroke: var(--cyan);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  box-shadow: 0 0 20px -6px var(--glow-cyan);
}

.flow-node span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.flow-line {
  flex: 1;
  height: 1px;
  background: var(--border-strong);
  position: relative;
  min-width: 24px;
  overflow: hidden;
}

.flow-line i {
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  animation: flow-pulse 3.2s linear infinite;
}

.flow-track .flow-line:nth-of-type(4) i { animation-delay: 0.8s; }
.flow-track .flow-line:nth-of-type(6) i { animation-delay: 1.6s; }
.flow-track .flow-line:nth-of-type(8) i { animation-delay: 2.4s; }

@keyframes flow-pulse {
  0% { left: -40%; }
  100% { left: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .flow-line i { animation: none; opacity: 0; }
}

@media (max-width: 720px) {
  .flow-track { flex-wrap: wrap; justify-content: center; gap: 20px 28px; }
  .flow-line { display: none; }
}

/* ---------------- Section visual layers ---------------- */

/* Problem: tačkasta infrastructure mreža koja radijalno bledi */
.section-problem {
  position: relative;
}

.section-problem::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(148,163,196,0.14) 1px, transparent 0);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, black 30%, transparent 80%);
  pointer-events: none;
}

.section-problem > .container { position: relative; }

/* Kome pomažem: ljubičasti ambijentalni glow gore desno */
.section-audience {
  position: relative;
  overflow: hidden;
}

.section-audience::before {
  content: '';
  position: absolute;
  top: -180px;
  right: -140px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, var(--glow-purple), transparent 65%);
  filter: blur(40px);
  opacity: 0.45;
  pointer-events: none;
}

.section-audience > .container { position: relative; }

/* Za koga ovo nije: crveni glow — warning ton, elegantno */
.not-for {
  position: relative;
  overflow: hidden;
}

.not-for::before {
  content: '';
  position: absolute;
  bottom: -160px;
  left: -120px;
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, var(--glow-red), transparent 65%);
  filter: blur(44px);
  opacity: 0.5;
  pointer-events: none;
}

.not-for > * { position: relative; }

/* Watermark motiv u servisnim karticama */
#usluge .card {
  position: relative;
  overflow: hidden;
}

.card-watermark {
  position: absolute;
  right: -22px;
  bottom: -22px;
  width: 128px;
  height: 128px;
  stroke: var(--cyan);
  opacity: 0.055;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

#usluge .card:hover .card-watermark {
  opacity: 0.1;
  transform: rotate(-4deg) scale(1.04);
}

/* ---------------- Contact channels ---------------- */

.contact-channels {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 24px;
}

.channel-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  background: var(--bg-card);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.channel-btn svg { width: 20px; height: 20px; }

.channel-btn:hover { transform: translateY(-2px); }

.channel-messenger svg { color: #4a7dff; }
.channel-messenger:hover { border-color: rgba(74,125,255,0.5); box-shadow: 0 8px 24px -10px var(--glow-blue); }

.channel-whatsapp svg { color: #35d07a; }
.channel-whatsapp:hover { border-color: rgba(53,208,122,0.5); box-shadow: 0 8px 24px -10px rgba(53,208,122,0.35); }

.channel-viber svg { color: #8b6bf2; }
.channel-viber:hover { border-color: rgba(139,107,242,0.5); box-shadow: 0 8px 24px -10px var(--glow-purple); }

.cta-email {
  display: inline-block;
  font-size: 0.9375rem;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

.cta-email:hover { color: var(--cyan); }

.cta-triplet {
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cta-triplet span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text-muted);
}

.cta-triplet span:last-child {
  color: var(--text-primary);
}

/* ---------------- Process / saradnja ---------------- */

.process-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.process-visual {
  position: relative;
}

/* ---------------- Call window (HTML komponenta) ---------------- */

.call-window {
  background: #14181f;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.03) inset,
    0 24px 60px -24px rgba(0,0,0,0.8),
    0 0 48px -12px var(--glow-blue);
}

.call-titlebar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  background: #1a1f28;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

.call-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

.call-body {
  display: grid;
  grid-template-columns: 1fr 34%;
  gap: 10px;
  padding: 12px;
}

.call-share {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.call-share img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.share-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #35d07a;
  background: rgba(10, 14, 12, 0.72);
  border: 1px solid rgba(53, 208, 122, 0.35);
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.call-participants {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.call-tile {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  flex: 1;
}

.call-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tile-name {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-size: 0.6875rem;
  font-weight: 500;
  color: #fff;
  background: rgba(0,0,0,0.55);
  padding: 3px 9px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}

.call-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #1a1f28;
  border-top: 1px solid var(--border-subtle);
}

.controls-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.call-controls svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

.call-controls svg.ctrl-active {
  color: #35d07a;
}

.end-call {
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: #e5484d;
  padding: 6px 14px;
  border-radius: 999px;
}

@media (max-width: 480px) {
  .call-title { display: none; }
  .controls-left { gap: 12px; }
}

.visual-caption {
  margin-top: 14px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 1024px) {
  .process-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .process-visual { order: -1; max-width: 640px; }
}

.process-list {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: 760px;
}

/* Povezna vertikalna linija kroz sve korake */
.process-list::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 24px;
  bottom: 24px;
  width: 1px;
  background: linear-gradient(180deg, rgba(34,211,238,0.4), var(--border-strong) 40%, rgba(139,107,242,0.3));
}

.process-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 24px;
  padding: 20px 0;
  position: relative;
}

.process-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  position: relative;
  z-index: 1;
}

.process-num::before {
  content: attr(data-num);
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.process-step > div { padding-top: 4px; }
.process-step h3 { margin-bottom: 6px; font-size: 1.0625rem; }
.process-step p { font-size: 0.9375rem; }

/* ---------------- Not-for section ---------------- */

.not-for {
  border: 1px solid rgba(239, 90, 111, 0.25);
  background: linear-gradient(180deg, rgba(239, 90, 111, 0.06), transparent);
  border-radius: var(--radius);
  padding: 48px;
}

@media (max-width: 640px) {
  .not-for { padding: 32px 24px; }
}

.not-for h2 { margin-bottom: 20px; }
.not-for p { max-width: var(--paragraph-max); font-size: 1.0625rem; }
.not-for .closing-line { border-left-color: var(--red); background: rgba(8,11,19,0.4); }

/* ---------------- Blog cards ---------------- */

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.blog-card .category-tag {
  display: inline-block;
  width: fit-content;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.2);
  padding: 5px 12px;
  border-radius: 999px;
}

.blog-card h3 { font-size: 1.1875rem; }
.blog-card .excerpt { font-size: 0.9375rem; flex-grow: 1; }
.blog-card .meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.blog-card .read-more {
  color: var(--cyan);
  font-weight: 600;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.section-footer-link {
  margin-top: 40px;
  text-align: center;
}

/* ---------------- CTA section ---------------- */

.cta-section {
  position: relative;
  border-radius: 28px;
  padding: 72px 48px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(74,125,255,0.12), transparent 60%), var(--bg-panel);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

@media (max-width: 640px) {
  .cta-section { padding: 48px 24px; }
}

.cta-avatar {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 24px;
  display: block;
  border: 2px solid transparent;
  background:
    linear-gradient(var(--bg-panel), var(--bg-panel)) padding-box,
    linear-gradient(135deg, var(--cyan), var(--blue), var(--purple)) border-box;
  box-shadow: 0 0 32px -8px var(--glow-blue);
}

.cta-section h2 { max-width: 640px; margin: 0 auto 18px; }
.cta-section p { max-width: 560px; margin: 0 auto 8px; font-size: 1.0625rem; }
.cta-section .supporting { font-size: 0.9375rem; color: var(--text-muted); margin-bottom: 32px; }
.cta-section .closing-line { margin: 40px auto 0; text-align: left; }

/* ---------------- Footer ---------------- */

.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 72px 0 32px;
  background: var(--bg-panel);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 48px;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

.footer-brand .nav-logo { display: block; margin-bottom: 10px; }
.footer-brand p { font-size: 0.9375rem; max-width: 280px; }

.footer-col h4 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.9375rem; color: var(--text-secondary); transition: color 0.2s; }
.footer-col a:hover { color: var(--cyan); }

.footer-cta p { font-size: 0.9375rem; margin-bottom: 16px; }

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ---------------- Blog listing page ---------------- */

.page-header {
  padding: 64px 0 40px;
  text-align: center;
}

.page-header h1 { margin-bottom: 14px; }
.page-header p { max-width: 560px; margin: 0 auto; font-size: 1.0625rem; }

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-pill {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  background: transparent;
  cursor: pointer;
  transition: all 0.25s;
}

.filter-pill:hover { border-color: var(--border-strong); color: var(--text-primary); }
.filter-pill.active {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  border-color: transparent;
  color: #fff;
}

.featured-post {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 40px;
  margin-bottom: 56px;
}

@media (max-width: 800px) {
  .featured-post { grid-template-columns: 1fr; padding: 28px; }
}

.featured-visual {
  aspect-ratio: 16/10;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-visual svg { width: 100%; height: 100%; }

.featured-post .category-tag { margin-bottom: 14px; }
.featured-post h2 { margin-bottom: 12px; font-size: 1.75rem; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-grid .card { padding: 24px; }
.card-visual {
  aspect-ratio: 16/10;
  border-radius: 10px;
  margin-bottom: 18px;
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Kategorijski vizuali — pozadinske nijanse po temi */
.card-visual svg { width: 100%; height: 100%; }

.cv-poslovanje { background: linear-gradient(145deg, rgba(74,125,255,0.10), rgba(8,11,19,0.4)); }
.cv-zarada { background: linear-gradient(145deg, rgba(34,211,238,0.10), rgba(8,11,19,0.4)); }
.cv-pravni { background: linear-gradient(145deg, rgba(139,107,242,0.12), rgba(8,11,19,0.4)); }
.cv-llc { background: linear-gradient(145deg, rgba(139,107,242,0.10), rgba(74,125,255,0.08)); }
.cv-payment { background: linear-gradient(145deg, rgba(34,211,238,0.10), rgba(74,125,255,0.10)); }
.cv-digitalni { background: linear-gradient(145deg, rgba(74,125,255,0.10), rgba(139,107,242,0.10)); }
.cv-freelance { background: linear-gradient(145deg, rgba(34,211,238,0.08), rgba(139,107,242,0.08)); }

/* ---------------- Article page ---------------- */

.article-header {
  padding: 56px 0 32px;
  max-width: var(--paragraph-max);
  margin: 0 auto;
}

.article-header .category-tag { margin-bottom: 18px; }
.article-header h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 18px; }
.article-meta { display: flex; gap: 16px; color: var(--text-muted); font-size: 0.875rem; }

.article-visual {
  max-width: var(--content-max);
  margin: 0 auto 48px;
  aspect-ratio: 21/9;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(74,125,255,0.14), rgba(139,107,242,0.14), rgba(239,90,111,0.08));
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.article-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(148,163,196,0.06) 1px, transparent 1px),
    linear-gradient(rgba(148,163,196,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}

.article-body {
  max-width: var(--paragraph-max);
  margin: 0 auto;
}

.article-body h2 {
  font-size: 1.625rem;
  margin: 44px 0 16px;
}

.article-body h3 {
  font-size: 1.25rem;
  margin: 32px 0 12px;
}

.article-body p {
  margin-bottom: 20px;
  font-size: 1.0625rem;
  color: var(--text-secondary);
}

.article-body ul, .article-body ol {
  margin: 0 0 20px 20px;
  color: var(--text-secondary);
}

.article-body li { margin-bottom: 8px; }

.article-body strong { color: var(--text-primary); }

.toc {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 24px 28px;
  margin-bottom: 40px;
}

.toc h4 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.toc ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.toc a { font-size: 0.9375rem; color: var(--text-secondary); transition: color 0.2s; }
.toc a:hover { color: var(--cyan); }

.disclaimer-box {
  margin: 32px 0;
  padding: 20px 24px;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-left: 2px solid var(--purple);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.article-cta {
  max-width: var(--paragraph-max);
  margin: 56px auto 0;
  padding: 40px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  text-align: left;
}

.article-cta h3 { margin-bottom: 10px; }
.article-cta p { margin-bottom: 20px; font-size: 0.9375rem; }

.related-posts {
  max-width: var(--content-max);
  margin: 72px auto 0;
  padding: 0 24px;
}

.related-posts h3 { margin-bottom: 24px; }

/* ---------------- Utility ---------------- */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  padding: 40px 0;
}

@media (max-width: 768px) {
  .footer-grid { text-align: left; }
}
