/* ============================================
   STUDIO TAČKICA — Design System
   Koncept: tačka kao osnovni gradivni element.
   Iz jedne tačke nastaje linija, iz linije plan,
   iz plana prostor.
============================================ */

:root {
  /* Boje */
  --ink:        #16171F;   /* duboka noć — glavni tekst i tamne sekcije */
  --ink-soft:   #262838;   /* mekši indigo */
  --paper:      #F3EFE7;   /* topla kreč-bela — glavna pozadina */
  --paper-dim:  #E7E2D6;   /* prigušeni papir */
  --line:       #C9C2B2;   /* hairline linije nacrta */
  --slate:      #5B5E70;   /* plavo-siva, sekundarni tekst */
  --dot:        #E4552A;   /* signalna narandžasta — TAČKA */
  --dot-soft:   #F0A88E;

  /* Tipografija */
  --serif: "Fraunces", "Times New Roman", serif;
  --sans:  "Space Grotesk", "Helvetica Neue", system-ui, sans-serif;
  --mono:  "Space Mono", "Courier New", monospace;

  /* Mera */
  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 0px;

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

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

::selection { background: var(--dot); color: var(--paper); }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--dot);
  border-radius: 50%;
  flex: none;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================
   NAV
============================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  mix-blend-mode: difference;
  color: #fff;
  transition: padding .4s var(--ease);
}
.nav.solid {
  mix-blend-mode: normal;
  background: rgba(243,239,231,.86);
  backdrop-filter: blur(14px);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding: 12px var(--gutter);
}
.brand { display: flex; align-items: baseline; gap: 3px; font-family: var(--serif); font-weight: 600; font-size: 22px; letter-spacing: -0.01em; }
.brand .d { width: 8px; height: 8px; background: var(--dot); border-radius: 50%; display: inline-block; transform: translateY(-1px); }
.nav.solid .brand .d { background: var(--dot); }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-size: 14px; letter-spacing: 0.02em; position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -5px; width: 0; height: 1px;
  background: currentColor; transition: width .35s var(--ease);
}
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  border: 1px solid currentColor; padding: 9px 18px; font-size: 13px;
  letter-spacing: 0.04em; transition: background .3s, color .3s;
}
.nav.solid .nav-cta:hover { background: var(--ink); color: var(--paper); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 24px; height: 2px; background: currentColor; transition: .3s; }

/* ============================================
   HERO — koordinatna mreža + naslov
============================================ */
.hero {
  position: relative; min-height: 100svh;
  background: var(--ink); color: var(--paper);
  display: flex; align-items: flex-end;
  overflow: hidden;
  padding-bottom: clamp(40px, 8vh, 96px);
}
.hero-grid { position: absolute; inset: 0; z-index: 0; }
.hero-content { position: relative; z-index: 2; width: 100%; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(48px, 9.5vw, 148px);
  line-height: 0.94;
  letter-spacing: -0.03em;
  max-width: 14ch;
}
.hero h1 em { font-style: italic; font-weight: 400; }
.hero h1 .mark { color: var(--dot); font-style: normal; }
.hero-sub {
  display: flex; flex-wrap: wrap; gap: 28px 56px;
  align-items: flex-end; justify-content: space-between;
  margin-top: clamp(32px, 5vw, 56px);
  padding-top: 28px;
  border-top: 1px solid rgba(243,239,231,.18);
}
.hero-sub p { max-width: 44ch; color: #C7C4BC; font-size: clamp(15px,1.5vw,18px); }
.hero-meta { font-family: var(--mono); font-size: 12px; letter-spacing: 0.15em; color: #8C8FA0; text-transform: uppercase; text-align: right; line-height: 2; }
.scroll-cue {
  position: absolute; left: var(--gutter); top: 42%; z-index: 3;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.3em;
  writing-mode: vertical-rl; text-transform: uppercase; color: #6E7182;
}

/* ============================================
   INTRO / manifest
============================================ */
.manifest { padding: clamp(90px,14vh,180px) 0; }
.manifest-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(40px,7vw,120px); align-items: start; }
.manifest h2 {
  font-family: var(--serif); font-weight: 340;
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.22; letter-spacing: -0.015em;
}
.manifest h2 .dot { color: var(--dot); }
.manifest-side { font-size: 15.5px; color: var(--slate); }
.manifest-side p + p { margin-top: 18px; }
.stat-row { display: flex; gap: 48px; margin-top: 48px; flex-wrap: wrap; }
.stat b { font-family: var(--serif); font-size: clamp(38px,5vw,62px); font-weight: 400; display: block; line-height: 1; }
.stat span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate); margin-top: 8px; display: block; }

/* ============================================
   USLUGE
============================================ */
.services { background: var(--ink); color: var(--paper); padding: clamp(90px,14vh,170px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; margin-bottom: 64px; }
.section-head h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(32px,5vw,66px); letter-spacing: -0.02em; line-height: 1; }
.services .section-head .eyebrow { color: #9A9DAE; }
.svc-list { border-top: 1px solid rgba(243,239,231,.16); }
.svc {
  display: grid; grid-template-columns: 60px 1fr 1.3fr auto;
  gap: 24px; align-items: baseline;
  padding: 34px 0; border-bottom: 1px solid rgba(243,239,231,.16);
  transition: padding-left .5s var(--ease);
}
.svc:hover { padding-left: 20px; }
.svc .no { font-family: var(--mono); font-size: 13px; color: var(--dot); }
.svc h3 { font-family: var(--serif); font-weight: 350; font-size: clamp(22px,2.6vw,32px); }
.svc p { color: #A9ACBB; font-size: 15px; }
.svc .arrow { font-size: 22px; color: #6E7182; transition: transform .4s var(--ease), color .3s; }
.svc:hover .arrow { transform: translate(6px,-6px); color: var(--dot); }

/* ============================================
   PORTFOLIO
============================================ */
.portfolio { padding: clamp(90px,14vh,170px) 0; }
.proj-grid { display: grid; grid-template-columns: repeat(12,1fr); gap: clamp(20px,3vw,40px); margin-top: 56px; }
.proj { position: relative; overflow: hidden; background: var(--paper-dim); grid-column: span 6; }
.proj.wide { grid-column: span 12; }
.proj.tall { grid-column: span 6; }
.proj-media { position: relative; overflow: hidden; aspect-ratio: 4/3; }
.proj.wide .proj-media { aspect-ratio: 16/7; }
.proj-media img, .proj-media svg { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.proj:hover .proj-media img, .proj:hover .proj-media svg { transform: scale(1.05); }
.proj-tag {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  background: var(--paper); color: var(--ink); padding: 6px 12px; text-transform: uppercase;
}
.proj-info { display: flex; justify-content: space-between; align-items: baseline; padding: 20px 4px 4px; }
.proj-info h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(20px,2.4vw,28px); letter-spacing: -0.01em; }
.proj-info .meta { font-family: var(--mono); font-size: 12px; color: var(--slate); letter-spacing: 0.08em; }
.proj-link { position: absolute; inset: 0; z-index: 3; }

/* ============================================
   PROCES
============================================ */
.process { background: var(--paper-dim); padding: clamp(90px,14vh,170px) 0; }
.proc-track { display: grid; grid-template-columns: repeat(4,1fr); gap: 2px; margin-top: 56px; border: 1px solid var(--line); background: var(--line); }
.proc-step { background: var(--paper); padding: 40px 28px; min-height: 260px; display: flex; flex-direction: column; transition: background .4s; }
.proc-step:hover { background: var(--ink); color: var(--paper); }
.proc-step:hover .proc-dot { background: var(--dot); }
.proc-step:hover p { color: #B9BCC9; }
.proc-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--ink); margin-bottom: auto; transition: background .4s; }
.proc-step:hover .proc-dot { background: var(--dot); }
.proc-num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--slate); margin-bottom: 14px; }
.proc-step:hover .proc-num { color: var(--dot-soft); }
.proc-step h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin-bottom: 12px; }
.proc-step p { font-size: 14.5px; color: var(--slate); transition: color .4s; }

/* ============================================
   BLOG (preview na home)
============================================ */
.blog-sec { padding: clamp(90px,14vh,170px) 0; }
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(24px,3vw,44px); margin-top: 56px; }
.post-card { display: flex; flex-direction: column; height: 100%; border-top: 1px solid var(--ink); padding-top: 22px; transition: opacity .3s; }
.post-card:hover { opacity: .62; }
.post-card .p-meta { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate); display: flex; justify-content: space-between; margin-bottom: 20px; }
.post-card h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(21px,2.3vw,27px); line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 14px; }
.post-card p { font-size: 15px; color: var(--slate); margin-bottom: 22px; }
.post-card .rd { margin-top: auto; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; display: inline-flex; align-items: center; gap: 8px; }
.post-card .rd::after { content: "→"; transition: transform .3s var(--ease); }
.post-card:hover .rd::after { transform: translateX(5px); }

/* ============================================
   CTA / kontakt
============================================ */
.cta {
  background: var(--ink); color: var(--paper);
  padding: clamp(100px,18vh,220px) 0; position: relative; overflow: hidden;
}
.cta-inner { position: relative; z-index: 2; text-align: center; }
.cta .eyebrow { color: #9A9DAE; justify-content: center; }
.cta h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(42px,8vw,120px); letter-spacing: -0.03em; line-height: 0.98; margin: 24px 0 40px; }
.cta h2 .mark { color: var(--dot); }
.btn-dot {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--dot); color: var(--paper);
  padding: 18px 34px; font-family: var(--sans); font-size: 16px; letter-spacing: 0.02em;
  transition: transform .4s var(--ease), background .3s;
}
.btn-dot:hover { transform: translateY(-3px); background: #C9451E; }
.btn-dot .dot { width: 9px; height: 9px; background: var(--paper); border-radius: 50%; }
.cta-grid-bg { position: absolute; inset: 0; z-index: 0; opacity: .5; }

/* ============================================
   FOOTER
============================================ */
.footer { background: var(--ink); color: var(--paper); padding: 60px 0 40px; border-top: 1px solid rgba(243,239,231,.14); }
.foot-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(243,239,231,.14); }
.foot-brand { font-family: var(--serif); font-size: 34px; font-weight: 500; display: flex; align-items: baseline; gap: 4px; }
.foot-brand .d { width: 10px; height: 10px; background: var(--dot); border-radius: 50%; display: inline-block; }
.foot-col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--slate); margin-bottom: 18px; }
.foot-col a, .foot-col p { display: block; font-size: 15px; color: #C7C4BC; margin-bottom: 10px; transition: color .3s; }
.foot-col a:hover { color: var(--dot); }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 28px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: #8C8FA0; }

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .manifest-grid { grid-template-columns: 1fr; gap: 40px; }
  .svc { grid-template-columns: 40px 1fr auto; }
  .svc p { display: none; }
  .proc-track { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .proj, .proj.tall { grid-column: span 12; }
}
@media (max-width: 560px) {
  .proc-track { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr; }
  .hero-sub { flex-direction: column; align-items: flex-start; }
  .hero-meta { text-align: left; }
}

/* ============================================
   ARTIKAL / BLOG POST STRANICA
============================================ */
.article-hero { padding: 140px 0 60px; background: var(--paper); border-bottom: 1px solid var(--line); }
.article-hero .eyebrow { margin-bottom: 28px; }
.article-hero h1 { font-family: var(--serif); font-weight: 340; font-size: clamp(34px,5.6vw,68px); line-height: 1.06; letter-spacing: -0.025em; max-width: 20ch; }
.article-meta { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 32px; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.08em; color: var(--slate); text-transform: uppercase; }
.article-body { max-width: 720px; margin: 0 auto; padding: 72px var(--gutter) 40px; }
.article-body > * { margin-bottom: 28px; }
.article-body p { font-size: 18.5px; line-height: 1.72; color: #2A2C38; }
.article-body h2 { font-family: var(--serif); font-weight: 420; font-size: clamp(26px,3.4vw,36px); letter-spacing: -0.015em; margin-top: 24px; line-height: 1.2; }
.article-body h3 { font-family: var(--serif); font-weight: 460; font-size: 23px; margin-top: 12px; }
.article-body blockquote {
  border-left: 3px solid var(--dot); padding-left: 26px; margin: 40px 0;
  font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.4; color: var(--ink);
}
.article-body ul.dots { padding-left: 4px; }
.article-body ul.dots li { position: relative; padding-left: 26px; margin-bottom: 12px; font-size: 18px; color: #2A2C38; }
.article-body ul.dots li::before { content: ""; position: absolute; left: 0; top: 11px; width: 8px; height: 8px; background: var(--dot); border-radius: 50%; }
.article-body figure { margin: 44px 0; }
.article-body figure img { width: 100%; }
.article-body figcaption { font-family: var(--mono); font-size: 12px; color: var(--slate); margin-top: 12px; letter-spacing: 0.04em; }
.article-body .lead { font-size: 22px; line-height: 1.55; color: var(--ink); font-family: var(--serif); font-weight: 350; }

/* blog index */
.blog-index-hero { padding: 150px 0 70px; }
.blog-index-hero h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(48px,10vw,120px); letter-spacing: -0.03em; line-height: 0.95; }
.blog-index-hero h1 .mark { color: var(--dot); }
.blog-index-hero p { max-width: 52ch; margin-top: 26px; color: var(--slate); font-size: 18px; }
.blog-full { padding: 40px 0 120px; }
.blog-full-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: clamp(30px,4vw,60px); }
.blog-full-grid .post-card:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; border-top: 2px solid var(--ink); }
@media (max-width: 800px){ .blog-full-grid { grid-template-columns: 1fr; } .blog-full-grid .post-card:first-child { grid-template-columns: 1fr; } }

/* kontakt strana */
.contact-hero { padding: 150px 0 40px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px,6vw,90px); padding-bottom: 120px; align-items: start; }
.contact-grid h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(40px,7vw,86px); letter-spacing: -0.03em; line-height: 0.98; }
.contact-grid h1 .mark { color: var(--dot); }
.form-field { margin-bottom: 26px; }
.form-field label { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate); margin-bottom: 8px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 14px 0; background: transparent; border: none; border-bottom: 1px solid var(--line);
  font-family: var(--sans); font-size: 17px; color: var(--ink); transition: border-color .3s;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-color: var(--dot); }
.contact-detail { margin-bottom: 34px; }
.contact-detail h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--slate); margin-bottom: 10px; }
.contact-detail p, .contact-detail a { font-family: var(--serif); font-size: 22px; }
.contact-detail a:hover { color: var(--dot); }
@media (max-width:800px){ .contact-grid { grid-template-columns: 1fr; } }
