/* ===== CSS VARIJABLE — zelena/amber paleta (biznis/pravna tema) ===== */
:root {
  --green:        #1a7a4a;
  --green-dark:   #125c37;
  --green-light:  #e6f5ee;
  --teal:         #1a6b6b;
  --teal-dark:    #115050;
  --teal-light:   #e4f2f2;
  --amber:        #b45309;
  --amber-dark:   #92400e;
  --amber-light:  #fef3c7;
  --indigo:       #3730a3;
  --indigo-light: #eef2ff;
  --red:          #b91c1c;
  --red-light:    #fee2e2;
  --bg:           #f0f4f1;
  --text:         #0d1f14;
  --text-muted:   #3d5447;
  --text-light:   #7a9485;
  --border:       #cdd9d2;
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.07);
  --shadow-md:    0 4px 18px rgba(0,0,0,0.10);
  --radius:       12px;
  --radius-lg:    18px;
  --font-d: 'Baloo 2', sans-serif;
  --font-b: 'Nunito', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ===== NAV ===== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  gap: 1rem;
}
.nav-logo { font-family: var(--font-d); font-weight: 700; font-size: 1.05rem; color: var(--green); }
.nav-links { display: flex; gap: 1.1rem; list-style: none; }
.nav-links a { font-size: .83rem; font-weight: 600; color: var(--text-muted); transition: color .2s; }
.nav-links a:hover { color: var(--green); }

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background .2s;
}
.hamburger:hover { background: var(--bg); }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== MOBILE MENU ===== */
.mobile-menu {
  display: none;
  position: absolute;
  top: 56px;
  left: 0;
  right: 0;
  background: white;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  z-index: 99;
}
.mobile-menu.open { display: block; }
.mobile-menu ul   { list-style: none; padding: .4rem 0; }
.mobile-menu li a {
  display: block;
  padding: .85rem 1.5rem;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: .92rem;
  color: var(--text);
  border-bottom: 1px solid var(--bg);
  transition: background .15s, color .15s;
}
.mobile-menu li:last-child a { border-bottom: none; }
.mobile-menu li a:hover { background: var(--bg); color: var(--green); }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #071a10 0%, #0d2e1a 45%, #071a10 100%);
  color: white;
  padding: 3.5rem 1.5rem 2.75rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 55%, rgba(26,122,74,.20) 0%, transparent 50%),
    radial-gradient(circle at 85% 20%, rgba(26,107,107,.14) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 100%, rgba(18,92,55,.25) 0%, transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--green) 0px,
    var(--green) 40px,
    transparent 40px,
    transparent 60px
  );
  opacity: .5;
}
.hero-inner { max-width: 1100px; margin: 0 auto; position: relative; }

.breadcrumb {
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,.65); transition: color .2s; }
.breadcrumb a:hover { color: white; }
.breadcrumb-sep { opacity: .35; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(26,122,74,.22);
  border: 1px solid rgba(26,122,74,.45);
  color: #6fcf97;
  font-size: .8rem;
  font-weight: 700;
  padding: .3rem .85rem;
  border-radius: 20px;
  margin-bottom: 1rem;
  font-family: var(--font-d);
}
.hero h1 {
  font-family: var(--font-d);
  font-size: clamp(1.85rem, 4.5vw, 2.9rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: .85rem;
}
.hero h1 span { color: #6fcf97; }
.hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,.72);
  max-width: 640px;
  margin-bottom: 2.25rem;
  line-height: 1.65;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .85rem;
  max-width: 580px;
}
.stat-box {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  padding: .85rem .75rem;
  text-align: center;
}
.stat-num {
  font-family: var(--font-d);
  font-size: 1.65rem;
  font-weight: 800;
  color: #6fcf97;
  display: block;
  line-height: 1;
}
.stat-label {
  font-size: .7rem;
  color: rgba(255,255,255,.6);
  margin-top: .25rem;
  font-weight: 600;
}

/* ===== HERO IMAGE ===== */
.hero-image-wrap {
  width: 100%;
  max-height: 338px; /* 1280×720 / ~3.78 = native YT thumbnail ratio */
  overflow: hidden;
  background: #0d2218;
  position: relative;
}
/* Aspect-ratio placeholder — maintains 16:9 YT thumbnail slot */
.hero-image-wrap::before {
  content: '';
  display: block;
  padding-top: 26.5625%; /* 338/1280 × 100 — shows full width at natural 1280px */
}
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
/* Placeholder shown when image missing */
.hero-image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  background: linear-gradient(135deg, #0d2218 0%, #1a3d28 100%);
  color: rgba(255,255,255,.35);
  font-family: var(--font-d);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-align: center;
  border-bottom: 3px dashed rgba(255,255,255,.12);
}
.hero-image-placeholder svg {
  width: 48px; height: 48px;
  opacity: .3;
}

/* ===== LAYOUT ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

.section-header { margin: 3rem 0 1.5rem; }
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--green);
  margin-bottom: .5rem;
}
.section-tag.green  { color: var(--green); }
.section-tag.teal   { color: var(--teal); }
.section-tag.amber  { color: var(--amber); }
.section-tag.indigo { color: var(--indigo); }
.section-header h2 {
  font-family: var(--font-d);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: .45rem;
}
.section-header p { color: var(--text-muted); font-size: .94rem; max-width: 680px; }

.section-divider {
  border: none;
  border-top: 2px dashed var(--border);
  margin: 1rem 0 0;
}

/* ===== INFO BOX ===== */
.info-box {
  background: var(--green-light);
  border: 1.5px solid rgba(26,122,74,.2);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.4rem;
  margin-bottom: 2rem;
  display: flex;
  gap: .85rem;
  align-items: flex-start;
}
.info-box.amber {
  background: var(--amber-light);
  border-color: rgba(180,83,9,.2);
}
.info-box.indigo {
  background: var(--indigo-light);
  border-color: rgba(55,48,163,.2);
}
.info-box-icon { font-size: 1.25rem; flex-shrink: 0; margin-top: 2px; }
.info-box-text { font-size: .86rem; color: #0d3020; line-height: 1.6; }
.info-box.amber .info-box-text { color: #451a03; }
.info-box.indigo .info-box-text { color: #1e1b4b; }
.info-box-text strong { font-weight: 700; }

/* ===== DECISION CARDS (tip izbora) ===== */
.decision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.1rem;
  margin-bottom: 2.5rem;
}
.decision-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  padding: 1.4rem 1.2rem;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .15s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.decision-card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.decision-card.dc-sp   { border-top: 4px solid var(--green); }
.decision-card.dc-doo  { border-top: 4px solid var(--teal); }
.decision-card.dc-int  { border-top: 4px solid var(--amber); }
.decision-card.dc-ost  { border-top: 4px solid #9ca3af; }
.decision-icon {
  font-size: 2rem;
  margin-bottom: .6rem;
  display: block;
}
.decision-card h3 {
  font-family: var(--font-d);
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: .3rem;
  color: var(--text);
}
.decision-card p {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: .8rem;
}
.decision-link {
  font-size: .8rem;
  font-weight: 700;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}
.dc-doo .decision-link  { color: var(--teal); }
.dc-int .decision-link  { color: var(--amber); }
.dc-ost .decision-link  { color: #6b7280; }

/* ===== PROCEDURE STEPS ===== */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  margin-bottom: 1.5rem;
}
.step-item {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.1rem 1.2rem 1.1rem 1rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-family: var(--font-d);
  font-weight: 800;
  font-size: .88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.step-num.teal  { background: var(--teal); }
.step-num.amber { background: var(--amber); }
.step-body h4 {
  font-family: var(--font-d);
  font-size: .93rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .2rem;
}
.step-body p {
  font-size: .83rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.step-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .72rem;
  font-weight: 700;
  padding: .15rem .55rem;
  border-radius: 6px;
  margin-top: .35rem;
  margin-right: .3rem;
}
.sb-cost   { background: var(--amber-light); color: var(--amber-dark); }
.sb-time   { background: var(--teal-light); color: var(--teal-dark); }
.sb-doc    { background: var(--green-light); color: var(--green-dark); }
.sb-free   { background: #dcfce7; color: #166534; }
.sb-warn   { background: var(--red-light); color: var(--red); }

/* ===== COST TABLE ===== */
.cost-table-wrap {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
  overflow-x: auto;
}
.cost-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
  font-family: var(--font-b);
}
.cost-table th {
  background: #f0f5f2;
  font-family: var(--font-d);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  padding: .65rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.cost-table td {
  padding: .65rem 1rem;
  border-bottom: 1px solid var(--bg);
  vertical-align: middle;
  color: var(--text);
  line-height: 1.5;
}
.cost-table tr:last-child td { border-bottom: none; }
.cost-table tr:hover td { background: var(--bg); }
.cost-table tr.ct-total td { background: var(--green-light); font-weight: 700; border-top: 2px solid var(--border); }
.cost-table .ct-item  { font-weight: 600; }
.cost-table .ct-note  { color: var(--text-muted); font-size: .78rem; }
.cost-table .ct-price { font-weight: 700; color: var(--green); white-space: nowrap; text-align: right; }
.cost-table .ct-optional { color: var(--text-light); font-style: italic; font-size: .8rem; }

/* ===== TIPS GRID ===== */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.15rem;
  margin-bottom: 3rem;
}
.tip-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: .9rem;
  align-items: flex-start;
}
.tip-icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.ti-1 { background: var(--green-light); }
.ti-2 { background: var(--teal-light); }
.ti-3 { background: var(--amber-light); }
.ti-4 { background: #e8f4f0; }
.ti-5 { background: var(--indigo-light); }
.ti-6 { background: #fdf4ff; }
.tip-content h3 { font-family: var(--font-d); font-size: .93rem; font-weight: 700; margin-bottom: .25rem; }
.tip-content p  { font-size: .82rem; color: var(--text-muted); line-height: 1.55; }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 3rem; }
.faq-item {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1rem 1.2rem;
  font-family: var(--font-d);
  font-size: .92rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background .15s;
}
.faq-q:hover      { background: var(--bg); }
.faq-q.open       { color: var(--green); }
.faq-arrow {
  flex-shrink: 0;
  font-size: 1.05rem;
  color: var(--text-muted);
  transition: transform .3s;
}
.faq-q.open .faq-arrow { transform: rotate(45deg); color: var(--green); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a-inner {
  padding: 0 1.2rem 1rem;
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ===== SHARE ===== */
.share-box {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.6rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  margin-bottom: 3rem;
}
.share-box h3 { font-family: var(--font-d); font-size: 1rem; font-weight: 700; margin-bottom: .35rem; }
.share-box p  { font-size: .84rem; color: var(--text-muted); margin-bottom: 1rem; }
.share-btns   { display: flex; gap: .55rem; justify-content: center; flex-wrap: wrap; }
.share-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem 1rem; border-radius: 9px;
  font-size: .81rem; font-weight: 700;
  cursor: pointer; border: 2px solid transparent;
  transition: all .2s; font-family: var(--font-b);
}
.s-fb    { background: #1877f2; color: white; }
.s-fb:hover    { background: #0d65d8; }
.s-viber { background: #665cac; color: white; }
.s-viber:hover { background: #5046a0; }
.s-wa    { background: #25d366; color: white; }
.s-wa:hover    { background: #1db954; }
.s-copy  { background: white; color: var(--text); border-color: var(--border); }
.s-copy:hover  { border-color: var(--green); color: var(--green); }

/* ===== UPDATE NOTE ===== */
.update-note {
  display: block;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: .85rem 1.2rem;
  margin-bottom: 3rem;
  font-size: .81rem;
  color: var(--text-muted);
  line-height: 1.65;
  box-shadow: var(--shadow-sm);
}
.update-note a { color: var(--green); font-weight: 700; }
.update-note a:hover { text-decoration: underline; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,.55);
  padding: 2rem 1.5rem;
  text-align: center;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: .85rem;
}
.footer-links a { color: rgba(255,255,255,.7); font-size: .83rem; font-weight: 600; transition: color .2s; }
.footer-links a:hover { color: #6fcf97; }
.footer-copy { font-size: .76rem; }

/* ===== ANCHOR SCROLL MARGIN ===== */
#preduzetnik, #doo, #stranac, #troskovi, #poslije, #faq {
  scroll-margin-top: 70px;
}

/* ===== EXTERNAL LINK ===== */
.ext-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  color: var(--green);
  font-weight: 700;
  font-size: .83rem;
  transition: color .2s;
}
.ext-link:hover { color: var(--green-dark); text-decoration: underline; }

/* ===== CHECKLIST ===== */
.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  margin: .75rem 0 1rem;
}
.checklist li {
  display: flex;
  gap: .6rem;
  font-size: .86rem;
  color: var(--text-muted);
  line-height: 1.5;
  align-items: flex-start;
}
.checklist li::before {
  content: '✓';
  color: var(--green);
  font-weight: 800;
  font-size: .85rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.checklist.warn li::before { content: '⚠'; color: var(--amber); }

/* ===== NO RESULTS ===== */
.no-results {
  display: none;
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-style: italic;
  font-size: .9rem;
}
.no-results.show { display: block; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-stats        { grid-template-columns: repeat(2, 1fr); }
  .nav-links         { display: none; }
  .hamburger         { display: flex; }
  .decision-grid     { grid-template-columns: 1fr 1fr; }
  .tips-grid         { grid-template-columns: 1fr; }
  .section-header    { margin: 2rem 0 1.25rem; }
  .section-header h2 { font-size: 1.45rem; }
  .cost-table th,
  .cost-table td     { padding: .5rem .65rem; font-size: .78rem; }
  .share-btn         { min-height: 44px; padding: .55rem 1rem; }
}

@media (max-width: 480px) {
  .hero              { padding: 2.25rem 1rem 2rem; }
  .container         { padding: 0 1rem; }
  .hero h1           { font-size: 1.65rem; }
  .hero-sub          { font-size: .92rem; }
  .stat-num          { font-size: 1.4rem; }
  .stat-label        { font-size: .65rem; }
  .section-header h2 { font-size: 1.3rem; }
  .decision-grid     { grid-template-columns: 1fr; }
}
