/* ── AVIP Solutions — Classic CSS ─────────────────── */

:root {
  --ink:        #0F2547;
  --blue:       #1C3A66;
  --blue-2:     #2A5390;
  --cream:      #F4EDE0;
  --gold:       #F0C014;
  --gold-2:     #D4A50A;

  --bg:         #FBF7EF;
  --surface:    #ffffff;
  --line:       rgba(12, 64, 118, 0.10);
  --line-2:     rgba(12, 64, 118, 0.18);
  --muted:      rgba(12, 37, 64, 0.62);
  --muted-2:    rgba(12, 37, 64, 0.42);

  --night:      #0A1B2E;

  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --fs-display: clamp(44px, 7.2vw, 112px);
  --fs-h1:      clamp(34px, 4.6vw, 64px);
  --fs-h3:      clamp(18px, 1.4vw, 22px);
  --fs-body:    clamp(15px, 1.05vw, 17px);
  --fs-mono:    clamp(11px, 0.78vw, 12.5px);

  --pad-section: clamp(36px, 4vw, 60px);
  --container: 1280px;

  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 24px;

  --ease: cubic-bezier(.25,.46,.45,.94);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--blue); color: var(--cream); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Layout ──────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}
section { padding: var(--pad-section) 0; position: relative; }

/* ── Nav ─────────────────────────────────────────── */
.nav {
  position: fixed; top: 14px; left: 0; right: 0;
  z-index: 50;
  transition: top .3s var(--ease);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px 13px 22px;
  background: rgba(251, 247, 239, .72);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border: .5px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 6px 24px rgba(12, 37, 64, .06);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; letter-spacing: -0.02em; font-size: 16px;
  color: var(--blue);
}
/* Logo image (SVG file) */
.nav-logo-img {
  height: 38px;
  width: auto;
  display: block;
}

.nav-links { display: flex; gap: 4px; }
.nav-link {
  padding: 9px 15px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
  color: var(--ink); opacity: .72;
  transition: all .2s var(--ease);
  cursor: pointer;
}
.nav-link:hover { opacity: 1; background: rgba(12, 64, 118, .06); }
.nav-link.active { opacity: 1; background: rgba(12, 64, 118, .08); }
.nav-cta { height: 44px; }

/* ── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 18px;
  border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 13.5px;
  border: none; cursor: pointer;
  transition: all .3s var(--ease);
  letter-spacing: -0.005em;
}
.btn-primary {
  background: var(--blue);
  color: var(--cream);
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 6px 18px rgba(12,64,118,.25);
}
.btn-primary:hover {
  background: var(--blue-2);
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 10px 24px rgba(12,64,118,.32);
}
.btn-primary .arrow { transition: transform .3s var(--ease); }
.btn-primary:hover .arrow { transform: translateX(3px); }

.btn-ghost {
  background: transparent; color: var(--ink);
  border: .5px solid var(--line-2);
}
.btn-ghost:hover { background: rgba(12, 64, 118, .06); border-color: var(--blue); }

.btn-light {
  background: var(--cream); color: var(--blue);
  box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 6px 18px rgba(0,0,0,.25);
}
.btn-light:hover { background: #fff; transform: translateY(-1px); }
.btn-light .arrow { transition: transform .3s var(--ease); }
.btn-light:hover .arrow { transform: translateX(3px); }

.btn-outline-light {
  background: transparent; color: var(--cream);
  border: .5px solid rgba(244, 237, 224, .25);
}
.btn-outline-light:hover { background: rgba(244, 237, 224, .08); border-color: var(--cream); }

/* ── Hamburger button ────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px; height: 36px;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .2s var(--ease);
}
.nav-hamburger:hover { background: rgba(12, 64, 118, .08); }
.nav-hamburger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .25s var(--ease);
  transform-origin: center;
}
/* X state */
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile menu ─────────────────────────────────── */
.mobile-menu {
  position: fixed;
  top: 80px; left: 14px; right: 14px;
  z-index: 48;
  background: rgba(251, 247, 239, .97);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border: .5px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  /* Hidden by default */
  opacity: 0;
  transform: translateY(-12px) scale(0.98);
  pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease);
  box-shadow: 0 16px 48px rgba(12, 37, 64, .14);
}
.mobile-menu.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.mobile-menu-link {
  display: block;
  padding: 13px 16px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: background .15s var(--ease), color .15s;
}
.mobile-menu-link:hover,
.mobile-menu-link.active { background: rgba(12, 64, 118, .07); color: var(--blue); }

/* Mobile breakpoint — collapse nav */
@media (max-width: 768px) {
  .nav-links   { display: none; }
  .nav-cta     { display: none; }
  .nav-hamburger { display: flex; }
}

/* ── Hero ────────────────────────────────────────── */
.hero {
  background: var(--night);
  color: var(--cream);
  padding-top: calc(var(--pad-section) + 64px);
  padding-bottom: var(--pad-section);
  position: relative;
  overflow: hidden;
  border-bottom-left-radius: clamp(24px, 3vw, 48px);
  border-bottom-right-radius: clamp(24px, 3vw, 48px);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(232, 213, 160, .12) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(26, 95, 168, .25) 0%, transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(244, 237, 224, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 237, 224, .04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 80%);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 8px;
  background: rgba(244, 237, 224, .06);
  border: .5px solid rgba(244, 237, 224, .14);
  border-radius: 999px;
  font-size: 12.5px; font-weight: 500;
  color: rgba(244, 237, 224, .82);
  margin-bottom: 28px;
}
.hero-eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, .18);
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .35); }
  50%       { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
}

.hero-display {
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
  max-width: 14ch;
  text-wrap: balance;
}
.hero-display em {
  font-style: normal;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.55;
  color: rgba(244, 237, 224, .68);
  max-width: 52ch;
  margin: 0 0 36px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-bottom {
  margin-top: clamp(64px, 8vw, 112px);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: end;
}
@media (max-width: 880px) { .hero-bottom { grid-template-columns: 1fr; } }

.hero-marquee-label {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(244, 237, 224, .42);
  margin-bottom: 18px;
}
.hero-tech {
  display: flex; flex-wrap: wrap;
  gap: 10px 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(244, 237, 224, .82);
}
.hero-tech .sep { opacity: .4; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.hero-stat {
  padding: 18px 18px 16px;
  border: .5px solid rgba(244, 237, 224, .12);
  border-radius: var(--radius-sm);
  background: rgba(244, 237, 224, .03);
  transition: all .3s var(--ease);
}
.hero-stat:hover { background: rgba(244, 237, 224, .06); border-color: rgba(232, 213, 160, .35); }
.hero-stat-val {
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 700; letter-spacing: -0.025em;
  line-height: 1;
  color: var(--cream);
  font-variant-numeric: tabular-nums;
}
.hero-stat-val em {
  font-style: normal;
  color: var(--gold);
  font-size: 0.7em;
  vertical-align: super;
  margin-left: 2px;
}
.hero-stat-lbl {
  font-size: 12.5px;
  color: rgba(244, 237, 224, .55);
  margin-top: 6px;
}

/* ── Section header ──────────────────────────────── */
.sect-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  margin-bottom: clamp(40px, 4vw, 64px);
}
.sect-head-left { flex: 1 1 360px; max-width: 720px; }
.sect-eyebrow {
  font-family: var(--font-mono); font-size: var(--fs-mono);
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--blue); margin-bottom: 14px;
  display: inline-flex; align-items: center; gap: 8px;
}
.sect-eyebrow::before { content: ""; width: 14px; height: 1px; background: currentColor; }
.sect-title {
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}
.sect-sub {
  margin-top: 16px;
  font-size: clamp(15px, 1.1vw, 17.5px);
  color: var(--muted); max-width: 56ch; line-height: 1.55;
}

/* ── Services 2×2 grid ───────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 720px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* Cards slide up — opacity stays 1 so cards ALWAYS render even if animation is skipped */
@keyframes cardIn {
  from { transform: translateY(20px); }
  to   { transform: none; }
}
.svc-card:nth-child(1) { animation: cardIn .55s var(--ease) .04s both; }
.svc-card:nth-child(2) { animation: cardIn .55s var(--ease) .10s both; }
.svc-card:nth-child(3) { animation: cardIn .55s var(--ease) .16s both; }
.svc-card:nth-child(4) { animation: cardIn .55s var(--ease) .22s both; }
.svc-card:nth-child(5) { animation: cardIn .55s var(--ease) .28s both; }
.svc-card:nth-child(6) { animation: cardIn .55s var(--ease) .34s both; }
@media (prefers-reduced-motion: reduce) {
  .svc-card { animation: none; }
}

.svc-card {
  background: var(--night);
  border: .5px solid rgba(244, 237, 224, .08);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: border-color .4s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease);
}

/* Gold spotlight that fades in from top on hover */
.svc-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse 90% 50% at 50% 0%, rgba(240, 192, 20, .13) 0%, transparent 70%);
  opacity: 0;
  transition: opacity .5s var(--ease);
  pointer-events: none;
}

/* Gold shimmer sweep across the card */
.svc-card::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 55%; height: 100%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(240, 192, 20, .07) 50%,
    transparent 80%
  );
  transition: left .65s var(--ease);
  pointer-events: none;
}

.svc-card:hover {
  border-color: rgba(240, 192, 20, .40);
  transform: translateY(-6px);
  box-shadow: 0 28px 56px rgba(0, 0, 0, .30), 0 0 0 .5px rgba(240, 192, 20, .20);
}
.svc-card:hover::before { opacity: 1; }
.svc-card:hover::after  { left: 140%; }

.svc-card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(78, 159, 229, .10);
  border: .5px solid rgba(78, 159, 229, .22);
  display: grid; place-items: center;
  margin-bottom: 20px;
  color: #4E9FE5;
  flex-shrink: 0;
  transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.svc-card:hover .svc-card-icon {
  background: rgba(78, 159, 229, .18);
  border-color: rgba(78, 159, 229, .45);
  box-shadow: 0 0 16px rgba(78, 159, 229, .20);
}

.svc-card-title {
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--cream);
  margin: 0;
  transition: color .3s var(--ease);
}
.svc-card:hover .svc-card-title { color: #fff; }

.svc-card-body {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(244, 237, 224, .55);
  margin: 0;
  transition: color .3s var(--ease);
}
.svc-card:hover .svc-card-body { color: rgba(244, 237, 224, .72); }

.svc-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.svc-card-list li {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(244, 237, 224, .62);
  padding-left: 18px;
  position: relative;
  transition: color .3s var(--ease), transform .3s var(--ease);
}
.svc-card:hover .svc-card-list li { color: rgba(244, 237, 224, .80); transform: translateX(3px); }
.svc-card:hover .svc-card-list li:nth-child(2) { transition-delay: .04s; }
.svc-card:hover .svc-card-list li:nth-child(3) { transition-delay: .08s; }

.svc-card-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 16px;
  line-height: 1.3;
  transition: transform .3s var(--ease), text-shadow .3s var(--ease);
}
.svc-card:hover .svc-card-list li::before {
  transform: scale(1.4);
  text-shadow: 0 0 8px rgba(240, 192, 20, .6);
}

/* ── Dashboard ───────────────────────────────────── */
.dash {
  background: var(--night);
  border: .5px solid rgba(244, 237, 224, .07);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .18);
}

.dash-list { padding: 6px 0; }

.proj {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1.2fr);
  gap: 24px;
  align-items: center;
  padding: 20px 28px;
  border-top: .5px solid rgba(244, 237, 224, .07);
  transition: background .2s var(--ease);
}
.proj:hover { background: rgba(244, 237, 224, .04); }
.proj:first-child { border-top: 0; }

@media (max-width: 720px) {
  .proj { grid-template-columns: 1fr auto; gap: 6px 16px; }
  .proj-meta { text-align: right; }
  .proj-right { grid-column: 1 / -1; }
}

.proj-info { min-width: 0; }
.proj-name { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--cream); }
.proj-sub  { font-size: 12.5px; color: rgba(244, 237, 224, .45); margin-top: 3px; }

.proj-meta {
  font-family: var(--font-mono); font-size: 11px;
  color: rgba(244, 237, 224, .35); text-transform: uppercase; letter-spacing: 0.08em;
  white-space: nowrap;
}

/* Right column: label row + full-width bar */
.proj-right { display: flex; flex-direction: column; gap: 8px; }

.proj-right-top {
  display: flex; justify-content: space-between; align-items: baseline;
}
.proj-pct {
  font-family: var(--font-mono); font-size: 11px;
  color: rgba(244, 237, 224, .38);
}
.proj-eta-val {
  font-size: 13px; font-weight: 600; color: var(--cream);
  font-variant-numeric: tabular-nums;
}
.proj-eta-val small { font-size: 10.5px; font-weight: 400; color: rgba(244, 237, 224, .40); margin-right: 4px; }

/* Progress bar — gold, matching the logo */
.proj-bar {
  height: 3px; border-radius: 999px;
  background: rgba(244, 237, 224, .10);
}
.proj-bar-fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-2) 0%, var(--gold) 100%);
  transition: width 1.2s var(--ease);
}

/* ── Reference / Portfolio grid ─────────────────── */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 960px) { .ref-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ref-grid { grid-template-columns: 1fr; } }

.ref-card {
  background: var(--surface);
  border: .5px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit; /* reset <a> defaults */
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.ref-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 48px rgba(12, 37, 64, .13);
  border-color: rgba(232, 213, 160, .65);
}
/* Dizajn cards are <button> elements (open a lightbox, not a link) — reset button defaults */
button.ref-card {
  font: inherit;
  text-align: left;
  padding: 0;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}

/* Arrow hint appears on hover over the image */
.ref-img::before {
  content: "↗";
  position: absolute; top: 12px; right: 14px;
  z-index: 2;
  font-size: 18px; line-height: 1;
  color: rgba(255,255,255,.0);
  background: rgba(255,255,255,.12);
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  transition: color .25s var(--ease), background .25s var(--ease), opacity .25s var(--ease);
  backdrop-filter: blur(4px);
}
/* Dizajn cards show an expand icon instead of the external-link arrow */
button.ref-card .ref-img::before { content: "⤢"; }
.ref-card:hover .ref-img::before {
  color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.18);
}

/* Image placeholder — replace with <img> when real screenshots are ready */
.ref-img {
  height: 210px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.ref-img::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 28px 28px;
}
/* When a real <img> is placed inside .ref-img */
.ref-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ref-body {
  padding: 20px 22px 24px;
  display: flex; flex-direction: column;
  gap: 8px; flex: 1;
}
.ref-tag {
  font-family: var(--font-mono); font-size: 10.5px;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--blue);
}
.ref-title {
  font-size: 18px; font-weight: 700;
  letter-spacing: -0.015em; line-height: 1.2;
  margin: 0; color: var(--ink);
}
.ref-desc {
  font-size: 13.5px; color: var(--muted);
  line-height: 1.55; margin: 0;
}

/* ── Process ─────────────────────────────────────── */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: .5px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 880px) { .process { grid-template-columns: 1fr; } }
.step {
  padding: 32px 28px;
  background: var(--surface);
  display: flex; flex-direction: column;
  transition: background .25s var(--ease);
}
.step:hover { background: var(--cream); }
.step-num {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--blue); letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.step-title { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; margin: 0 0 6px; }
.step-body  { font-size: 14px; color: var(--muted); line-height: 1.55; }
.step-dur   { margin-top: auto; padding-top: 18px; font-family: var(--font-mono); font-size: 11px; color: var(--gold-2); letter-spacing: 0.06em; }

/* ── Testimonial ─────────────────────────────────── */
.quote {
  background: var(--night);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 5vw, 80px);
  position: relative; overflow: hidden;
}
.quote::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 80% at 100% 50%, rgba(232, 213, 160, .14), transparent 60%);
  pointer-events: none;
}
.quote-mark {
  position: absolute; top: 28px; right: 40px;
  font-size: 120px; font-weight: 700; line-height: .8;
  color: rgba(232, 213, 160, .14);
  font-family: serif;
}
.quote-text {
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.3; letter-spacing: -0.02em;
  font-weight: 500;
  max-width: 28ch;
  margin: 0 0 32px;
  text-wrap: balance;
}
.quote-attr { display: flex; align-items: center; gap: 14px; }
.quote-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  display: grid; place-items: center;
  font-weight: 700; color: var(--night);
  font-family: var(--font-mono); font-size: 14px;
}
.quote-name { font-weight: 600; }
.quote-role { font-size: 12.5px; color: rgba(244, 237, 224, .55); margin-top: 2px; }

/* ── CTA ─────────────────────────────────────────── */
.cta-band {
  border: .5px solid var(--line);
  background:
    radial-gradient(ellipse 60% 80% at 0% 100%, rgba(232, 213, 160, .35), transparent 60%),
    radial-gradient(ellipse 50% 70% at 100% 0%, rgba(12, 64, 118, .08), transparent 60%),
    var(--cream);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 4vw, 60px);
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; } }

.cta-left { display: flex; flex-direction: column; gap: 20px; }
.cta-title {
  font-size: var(--fs-h1);
  font-weight: 700; line-height: 1.05;
  letter-spacing: -0.03em; margin: 0;
  text-wrap: balance;
}
.cta-meta {
  font-size: 13.5px; color: var(--muted); line-height: 1.7; margin: 0;
}
.cta-meta a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.cta-meta a:hover { color: var(--blue-2); }
.cta-meta span { opacity: .65; }

/* ── Contact form ─────────────────────────────────── */
.contact-form {
  display: flex; flex-direction: column; gap: 14px;
}
.cf-row { display: flex; flex-direction: column; gap: 5px; }
.cf-label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.01em;
  color: var(--ink); opacity: .65;
}
.cf-input {
  font-family: var(--font-sans); font-size: 14px; color: var(--ink);
  background: rgba(255, 255, 255, .80);
  border: .5px solid var(--line-2);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  width: 100%;
  outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.cf-input:focus {
  background: #fff;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(28, 58, 102, .10);
}
.cf-input::placeholder { color: var(--muted-2); }
.cf-textarea { resize: vertical; min-height: 96px; line-height: 1.55; }

/* reCAPTCHA container */
.g-recaptcha { transform-origin: left top; }
@media (max-width: 360px) {
  .g-recaptcha { transform: scale(.82); }
}

/* Status message */
.cf-status {
  font-size: 13px; line-height: 1.5; border-radius: 10px;
  min-height: 0; overflow: hidden;
  max-height: 0; padding: 0;
  transition: max-height .3s var(--ease), padding .3s var(--ease);
}
.cf-status.ok {
  color: #14532D; background: rgba(22,163,74,.09);
  border: .5px solid rgba(22,163,74,.22);
  max-height: 80px; padding: 10px 14px;
}
.cf-status.err {
  color: #7F1D1D; background: rgba(220,38,38,.07);
  border: .5px solid rgba(220,38,38,.18);
  max-height: 80px; padding: 10px 14px;
}

.cf-submit { align-self: flex-start; margin-top: 2px; }
.cf-submit:disabled { opacity: .55; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ── Footer ──────────────────────────────────────── */
.footer {
  padding: 64px 0 36px;
  margin-top: 32px;
  position: relative;
  background: var(--night);
  color: var(--cream);
  overflow: hidden;
}
/* radial gradient glows — mirrors hero::before */
.footer::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 100% 100%, rgba(232, 213, 160, .10) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 0%   0%,   rgba(26, 95, 168, .22)   0%, transparent 60%);
  pointer-events: none;
}
/* grid lines — mirrors .hero-grid */
.footer::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(244, 237, 224, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 237, 224, .04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 80%);
  pointer-events: none;
}
/* keep footer content above the pseudo-element layers */
.footer .container { position: relative; z-index: 1; }
.footer-logo { display: inline-flex; margin-bottom: 16px; }
.footer-logo .nav-logo-img { filter: brightness(0) invert(1) sepia(1) brightness(0.965) saturate(0.8); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

.footer-tagline {
  font-size: 14px;
  color: rgba(244, 237, 224, .55);
  max-width: 32ch;
  line-height: 1.55;
  margin: 0;
}
.footer h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: rgba(244, 237, 224, .38);
  margin: 0 0 14px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer li { font-size: 14px; color: rgba(244, 237, 224, .72); cursor: default; }
.footer li:hover { color: var(--gold); }

.footer-bottom {
  display: flex; justify-content: space-between;
  padding-top: 24px;
  border-top: .5px solid rgba(244, 237, 224, .10);
  font-size: 12.5px;
  color: rgba(244, 237, 224, .35);
  flex-wrap: wrap; gap: 12px;
}

/* ── Scroll reveal ───────────────────────────────── */
/* Default state: VISIBLE. JS adds .offscreen only to elements
   that start below the fold — so if JS is slow or fails,
   the page always renders correctly. */
.reveal {
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
.reveal.offscreen {
  opacity: 0;
  transform: translateY(24px);
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.offscreen {
    opacity: 1 !important; transform: none !important; transition: none;
  }
}

/* ── Density ─────────────────────────────────────── */
body[data-density="compact"] { --pad-section: clamp(48px, 5vw, 96px); }
body[data-density="comfy"]   { --pad-section: clamp(80px, 9vw, 160px); }

/* ── All Projects Overlay ────────────────────────── */
.projects-overlay {
  position: fixed; inset: 0;
  z-index: 100;
  background: rgba(10, 27, 46, .60);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: flex-start; justify-content: center;
  overflow-y: auto;
  padding: clamp(24px, 4vw, 56px) clamp(16px, 3vw, 40px);
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease);
}
.projects-overlay.open {
  opacity: 1; pointer-events: auto;
}
.projects-overlay-panel {
  background: var(--bg);
  border: .5px solid var(--line);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 1200px;
  padding: clamp(24px, 3vw, 48px);
  transform: translateY(20px);
  transition: transform .35s var(--ease);
}
.projects-overlay.open .projects-overlay-panel {
  transform: translateY(0);
}
.projects-overlay-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 28px;
}
.projects-overlay-header .sect-title { margin: 4px 0 0; }
.projects-overlay-close {
  flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 50%;
  border: .5px solid var(--line-2);
  background: var(--surface);
  cursor: pointer; display: grid; place-items: center;
  color: var(--ink);
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.projects-overlay-close:hover { background: var(--cream); border-color: var(--blue); }
.projects-filter {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 24px;
}
.filter-btn {
  height: 34px; padding: 0 16px;
  border-radius: 999px;
  border: .5px solid var(--line-2);
  background: transparent;
  font: inherit; font-size: 12.5px; font-weight: 500; letter-spacing: -0.005em;
  color: var(--ink); opacity: .72;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.filter-btn:hover { opacity: 1; background: rgba(12, 64, 118, .06); border-color: var(--blue); }
.filter-btn.active {
  background: var(--blue); color: var(--cream);
  border-color: var(--blue); opacity: 1;
}
.projects-overlay-grid .ref-card.hidden { display: none; }
@media (max-width: 600px) {
  .projects-overlay { padding: 0; align-items: flex-end; }
  .projects-overlay-panel {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-height: 92vh; overflow-y: auto;
  }
}

/* ── Cookie consent banner ──────────────────────────── */
.cookie-banner {
  position: fixed;
  left: 20px; right: 20px; bottom: 20px;
  z-index: 90;
  max-width: 920px;
  margin: 0 auto;
  background: var(--night);
  border: .5px solid rgba(244, 237, 224, .12);
  border-radius: var(--radius);
  box-shadow: 0 20px 48px rgba(10, 27, 46, .35);
  padding: 20px 24px;
  transform: translateY(calc(100% + 32px));
  opacity: 0;
  transition: transform .5s var(--ease), opacity .4s var(--ease);
  pointer-events: none;
}
.cookie-banner.show { transform: translateY(0); opacity: 1; pointer-events: auto; }

.cookie-banner-inner { display: flex; align-items: center; gap: 20px; }
.cookie-banner-text {
  margin: 0; flex: 1;
  font-size: 13px; line-height: 1.6;
  color: rgba(244, 237, 224, .78);
}
.cookie-link {
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(244, 237, 224, .4);
  transition: color .2s var(--ease), text-decoration-color .2s var(--ease);
}
.cookie-link:hover { color: var(--gold); text-decoration-color: var(--gold); }
.cookie-banner-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.cookie-accept { height: 38px; padding: 0 22px; }
.cookie-close {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  border: .5px solid rgba(244, 237, 224, .22);
  background: transparent; color: var(--cream);
  cursor: pointer; display: grid; place-items: center;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.cookie-close:hover { background: rgba(244, 237, 224, .10); border-color: var(--cream); }

@media (max-width: 640px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 16px; }
  .cookie-banner-inner { flex-direction: column; align-items: stretch; gap: 14px; }
  .cookie-banner-actions { justify-content: space-between; }
  .cookie-accept { flex: 1; justify-content: center; }
}

.privacy-policy-body {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}
.privacy-policy-body p { margin: 0 0 16px; }
.privacy-policy-body p:last-child { margin-bottom: 0; }
.privacy-policy-body h3 {
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 28px 0 12px;
}
.privacy-policy-body h3:first-child { margin-top: 0; }
.privacy-policy-body ul { margin: 0 0 16px; padding-left: 20px; }
.privacy-policy-body ul ul { margin: 6px 0 10px; }
.privacy-policy-body li { margin: 0 0 8px; }
.privacy-policy-body li:last-child { margin-bottom: 0; }
.privacy-policy-body .pp-updated {
  margin-top: 24px;
  font-size: 13px;
  color: var(--muted-2);
  font-family: var(--font-mono);
}

/* ── Design lightbox ─────────────────────────────── */
.lightbox-overlay {
  align-items: center;
  z-index: 110; /* above .projects-overlay (100) so it can nest inside "Svi projekti" */
  background: rgba(10, 27, 46, .82);
}
.lightbox-panel {
  position: relative;
  max-width: 1100px;
  width: 100%;
  transform: translateY(20px);
  transition: transform .35s var(--ease);
}
.lightbox-overlay.open .lightbox-panel { transform: translateY(0); }
.lightbox-panel img {
  display: block;
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--night);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .45);
}
.lightbox-close {
  position: absolute;
  top: -16px; right: -16px;
}
.lightbox-caption {
  margin-top: 16px;
  text-align: center;
  color: var(--cream);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
@media (max-width: 600px) {
  .lightbox-close { top: 10px; right: 10px; }
}
