/* Odvjetnički ured Ivan Borna Ninčević – demo */
:root {
  --primary: #493447;
  --primary-deep: #2F202D;
  --dark: #29272C;
  --dark-2: #3A363D;
  --bg: #F5F3F5;
  --secondary: #A998A7;
  --white: #FFFFFF;
  --tint: #EAE4E9;
  --tint-2: #EFEAEE;
  --muted: #6A626B;
  --line: rgba(var(--dark-rgb), .12);
  --line-light: rgba(255, 255, 255, .16);

  /* RGB kanali za prozirne varijante (teme ih prepisuju) */
  --primary-rgb: 73, 52, 71;
  --dark-rgb: 41, 39, 44;
  --deep-rgb: 47, 32, 45;
  --secondary-rgb: 169, 152, 167;
  --bg-rgb: 245, 243, 245;

  --font-display: "EB Garamond", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;

  --container: 1240px;
  --gutter: 24px;
  --edge: 20px;             /* razmak hero / punih blokova od ruba ekrana */
  --radius-lg: 28px;
  --radius: 18px;
  --radius-sm: 12px;
  --section: 112px;
  --shadow: 0 18px 50px -24px rgba(var(--dark-rgb), .28);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--dark);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.1; }
h1, h2 { font-family: var(--font-display); letter-spacing: -.015em; }
h1, h2, h3, .logo-name, .step, .faq-phone, .about-facts strong { font-variant-numeric: lining-nums; }
h2 { font-size: clamp(2.2rem, 3.6vw, 3.25rem); }
h3 { font-size: 1.125rem; line-height: 1.3; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }

.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico { width: 38px; height: 38px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Dekorativna linijska grafika */
.lineart { position: absolute; pointer-events: none; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.lineart text { stroke-width: 1; }

/* Eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.eyebrow-light { color: var(--secondary); }
.hero .eyebrow::before { display: none; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--secondary); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border-radius: 999px;
  font: 600 .95rem/1 var(--font-body); border: 1px solid transparent; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.btn-circle { padding: 5px 5px 5px 24px; gap: 14px; }
.btn .circle {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  transition: transform .3s;
}
.btn:hover .circle { transform: rotate(45deg); }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary .circle { background: var(--white); color: var(--primary); }
.btn-primary:hover { background: var(--dark); }
.btn-light { background: var(--white); color: var(--primary); }
.btn-light .circle { background: var(--primary); color: var(--white); }
.btn-light:hover { background: var(--tint); }
.btn-ghost-light { border-color: rgba(255,255,255,.35); color: var(--white); }
.btn-ghost-light:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Logo */
.logo { display: inline-flex; flex-direction: column; line-height: 1; color: var(--dark); }
.logo-kicker { font: 700 .66rem/1 var(--font-body); letter-spacing: .26em; text-transform: uppercase; color: var(--primary); margin-bottom: 6px; }
.logo-name { font: 600 1.6rem/1 var(--font-display); letter-spacing: -.005em; }
.logo-light { color: var(--white); }
.logo-light .logo-kicker { color: var(--secondary); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(var(--bg-rgb), .92); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.site-header.is-scrolled { border-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 32px; height: 84px; padding-inline: calc(var(--edge) + 56px); }
.main-nav { display: flex; align-items: center; align-self: stretch; gap: 34px; margin-left: auto; }
.main-nav > a, .nav-link { font-size: .95rem; font-weight: 500; color: var(--dark); position: relative; padding: 6px 0; }
.main-nav > a::after, .nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--primary); transform: scaleX(0); transition: transform .25s; transform-origin: left; }
.main-nav > a:hover::after, .main-nav > a.is-active::after, .has-mega.is-open .nav-link::after { transform: scaleX(1); }
.main-nav > a.is-active { color: var(--primary); }
.nav-cta-mobile { display: none !important; }
/* Mega menu – Područja rada */
.nav-item { display: flex; align-items: center; align-self: stretch; gap: 2px; }
.mega-toggle {
  display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--dark); cursor: pointer; transition: transform .3s, background .2s;
}
.mega-toggle .i { width: 16px; height: 16px; }
.has-mega.is-open .mega-toggle { transform: rotate(180deg); color: var(--primary); }
.has-mega.is-open .nav-link { color: var(--primary); }
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white); border-top: 1px solid var(--line);
  box-shadow: 0 40px 80px -30px rgba(var(--dark-rgb), .35);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s ease, transform .3s cubic-bezier(.2,.7,.2,1), visibility 0s linear .3s;
}
.has-mega.is-open .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mega-inner {
  display: grid; grid-template-columns: 300px 1fr 280px; gap: 40px;
  max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding: 36px var(--gutter) 40px;
}
.mega-feature {
  position: relative; display: flex; align-items: flex-end; min-height: 340px; border-radius: var(--radius);
  overflow: hidden; color: var(--white); isolation: isolate;
}
.mega-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s; }
.mega-feature::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(var(--deep-rgb), .1), rgba(var(--deep-rgb), .94) 75%); }
.mega-feature:hover img { transform: scale(1.05); }
.mega-feature-body { display: flex; flex-direction: column; padding: 26px; }
.mega-kicker { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--secondary); }
.mega-feature strong { font: 600 2rem/1.05 var(--font-display); margin: 8px 0 10px; }
.mega-feature-text { font-size: .9rem; color: rgba(255,255,255,.8); margin-bottom: 18px; }
.mega-feature .link .i { transition: transform .25s; }
.mega-feature:hover .link .i { transform: translateX(4px); }

.mega-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 14px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.mega-title { font: 600 1.6rem/1.1 var(--font-display); color: var(--dark); }
.mega-all { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600; color: var(--primary); }
.mega-all .i { width: 16px; height: 16px; transition: transform .25s; }
.mega-all:hover .i { transform: translateX(3px); }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; }
.mega-link { display: flex; align-items: center; gap: 14px; padding: 12px; margin-inline: -12px; border-radius: var(--radius-sm); transition: background .2s; }
.mega-ico {
  display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 14px;
  background: var(--tint); color: var(--primary); transition: background .25s, color .25s;
}
.mega-ico .ico { width: 28px; height: 28px; }
.mega-text { display: flex; flex-direction: column; min-width: 0; }
.mega-text strong { font-size: .96rem; font-weight: 600; color: var(--dark); line-height: 1.3; }
.mega-text small { font-size: .82rem; color: var(--muted); line-height: 1.4; }
.mega-link:hover { background: var(--bg); }
.mega-link:hover .mega-ico { background: var(--primary); color: var(--white); }

.mega-aside { display: flex; flex-direction: column; align-items: flex-start; padding: 28px; border-radius: var(--radius); background: var(--bg); }
.mega-aside-title { font: 600 1.5rem/1.15 var(--font-display); color: var(--dark); margin-bottom: 12px; }
.mega-aside p:not(.mega-aside-title) { font-size: .9rem; color: var(--muted); margin-bottom: 24px; }
.mega-phone { display: inline-flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 22px; font: 600 1.3rem/1 var(--font-display); font-variant-numeric: lining-nums; color: var(--primary); }

/* zatamnjenje stranice dok je mega menu otvoren */
.mega-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(var(--dark-rgb), .28); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s linear .3s; }
.mega-backdrop.is-visible { opacity: 1; visibility: visible; transition-delay: 0s; }

.nav-toggle { display: none; }

/* Hero */
.hero { padding: 4px var(--edge) 0; }
.hero-box {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  min-height: clamp(620px, calc(100vh - 110px), 820px);
  display: flex; align-items: center;
  background:
    radial-gradient(90% 90% at 0% 0%, rgba(var(--secondary-rgb), .22), transparent 60%),
    var(--primary);
}
.hero-content { position: relative; z-index: 2; width: 57%; padding: 72px 0 64px clamp(48px, 5vw, 96px); color: var(--white); }
.hero-bg-art { position: absolute; left: -70px; bottom: -40px; width: 560px; color: var(--white); opacity: .06; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.hero-bg-art text { stroke-width: 1; }
.hero h1 { font-size: clamp(2.6rem, 4.6vw, 4.9rem); line-height: 1.04; margin-bottom: 22px; }
.hero-lead { font-size: clamp(1.05rem, 1.2vw, 1.2rem); color: rgba(255,255,255,.78); max-width: 640px; margin-bottom: 34px; }
.hero-contact {
  display: flex; flex-wrap: wrap; gap: 14px 32px; margin-top: 52px; padding-top: 24px;
  border-top: 1px solid var(--line-light); font-size: .92rem; color: rgba(255,255,255,.8); max-width: 680px;
}
.hero-contact a, .hero-contact span { display: inline-flex; align-items: center; gap: 10px; }
.hero-contact a:hover { color: var(--white); }
.hero-contact .i { color: var(--secondary); }

.hero-media {
  position: absolute; top: 0; right: 0; bottom: 0; width: 33%;
  background: linear-gradient(180deg, var(--tint-2), var(--tint));
}
.hero-lineart { position: absolute; right: 8%; top: 8%; width: 62%; color: var(--primary); opacity: .13; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.hero-portrait {
  position: absolute; bottom: 0; right: 0; z-index: 1;
  height: min(94%, 51vw); width: auto; max-width: none;
}
.hero-badge {
  position: absolute; left: -40px; bottom: 32px; z-index: 3;
  display: flex; align-items: center; gap: 14px;
  padding: 10px 20px 10px 10px; border-radius: var(--radius);
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px); box-shadow: var(--shadow);
}
.badge-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: var(--white); }
.badge-icon .i { width: 22px; height: 22px; }
.hero-badge strong { display: block; font-size: .9rem; color: var(--dark); white-space: nowrap; }
.hero-badge span { font-size: .8rem; color: var(--muted); }

/* Trust */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 14px; background: var(--white); border-radius: var(--radius); }
.trust li { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 26px 24px; font-weight: 600; font-size: .95rem; line-height: 1.35; }
.trust li + li { border-left: 1px solid var(--line); }
.trust .i { width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: var(--tint); color: var(--primary); }

/* Section heads */
.section-head { margin-bottom: 56px; }
.section-head.split { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; }
.section-head.center { text-align: center; }
.section-intro { max-width: 440px; color: var(--muted); }

/* Areas */
.areas { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 16px; }
.area {
  position: relative; display: flex; flex-direction: column; min-height: 250px;
  padding: 30px; border-radius: var(--radius); background: var(--white);
  border: 1px solid var(--line); transition: background .4s ease, color .4s ease, transform .4s cubic-bezier(.2,.7,.2,1), border-color .4s ease, box-shadow .4s ease;
}
.area-icon {
  display: grid; place-items: center; width: 72px; height: 72px; border-radius: 18px;
  background: var(--tint); color: var(--primary); margin-bottom: auto; transition: background .4s ease, color .4s ease;
}
.area h3 { font: 600 1.7rem/1.1 var(--font-display); margin: 36px 0 10px; }
.area p { color: var(--muted); font-size: .95rem; max-width: 300px; transition: color .3s; }
.area-arrow {
  position: absolute; top: 26px; right: 26px; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--line); color: var(--primary); transition: background .4s ease, border-color .4s ease, transform .4s ease;
}
.area:hover { background: var(--primary); color: var(--white); border-color: var(--primary); transform: translateY(-4px); box-shadow: 0 24px 40px -24px rgba(var(--primary-rgb), .55); }
.area:hover p { color: rgba(255,255,255,.75); }
.area:hover .area-icon { background: rgba(255,255,255,.12); color: var(--white); }
.area:hover .area-arrow { background: var(--white); border-color: var(--white); transform: rotate(45deg); }

.area-featured {
  grid-row: span 2; position: relative; display: flex; align-items: flex-end;
  min-height: 560px; border-radius: var(--radius); overflow: hidden; color: var(--white); isolation: isolate;
}
.area-featured img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s; }
.area-featured::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(var(--dark-rgb), .15) 0%, rgba(var(--deep-rgb), .7) 45%, rgba(var(--deep-rgb), .96) 100%);
}
.area-featured:hover img { transform: scale(1.05); }
.af-body { padding: 36px; }
.af-icon { display: grid; place-items: center; width: 78px; height: 78px; border-radius: 50%; background: var(--white); color: var(--primary); margin-bottom: 26px; }
.af-icon .ico { width: 42px; height: 42px; }
.tag { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); }
.tag-light { color: var(--secondary); }
.area-featured h3 { font: 600 2.6rem/1.05 var(--font-display); margin: 10px 0 14px; }
.area-featured p { color: rgba(255,255,255,.8); margin-bottom: 20px; max-width: 420px; }
.af-list { display: grid; gap: 8px; margin-bottom: 26px; }
.af-list li { display: flex; gap: 10px; align-items: center; font-size: .92rem; font-weight: 500; }
.af-list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--secondary); flex: none; }
.link { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.link .i { transition: transform .25s; }
.area-featured:hover .link .i { transform: translateX(4px); }

.area-more {
  grid-column: span 2; display: flex; align-items: center; justify-content: space-between; gap: 28px;
  padding: 30px 34px; border-radius: var(--radius); background: var(--primary); color: var(--white);
}
.area-more h3 { font: 600 1.7rem/1.1 var(--font-display); margin-bottom: 8px; }
.area-more p { color: rgba(255,255,255,.75); font-size: .95rem; max-width: 420px; }
.area-more .btn { flex: none; }

/* Problems – bez pozadine, linijska grafika */
.problems { overflow: hidden; }
.problems .lineart { color: var(--primary); opacity: .09; stroke-width: 1.4; }
.la-scales { width: 560px; left: -40px; top: 50%; transform: translateY(-50%); }
.la-gavel { width: 520px; right: -60px; top: 50%; transform: translateY(-46%); }
.la-para { width: 260px; left: 44%; top: 50%; transform: translateY(-50%); opacity: .05 !important; }
.problems-grid { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: center; }
.problems h2 { margin-bottom: 20px; }
.problems-head p:not(.eyebrow) { color: var(--muted); margin-bottom: 34px; max-width: 440px; }
.problem-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.problem-list li {
  position: relative; display: flex; gap: 14px; align-items: flex-start;
  padding: 22px 4px 22px 0; font-weight: 600; line-height: 1.45;
}
/* samo suptilna donja crta; na hover se podcrta primarnom bojom */
.problem-list li::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(var(--primary), var(--primary)) left / 0 100% no-repeat, var(--line);
  transition: background-size .4s ease;
}
.problem-list li:hover::after { background-size: 100% 100%, auto; }
.problem-list li::before {
  content: ""; flex: none; width: 24px; height: 24px; margin-top: 0; border-radius: 50%;
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* About */
.about-section { background: var(--white); }
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 88px; align-items: center; }
.about-media { position: relative; }
.about-frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 4.6;
  background: linear-gradient(160deg, var(--secondary), var(--primary));
}
.about-frame img { position: absolute; right: 0; bottom: 0; height: 96%; width: auto; max-width: none; }
.about-quote {
  position: absolute; right: -40px; bottom: 40px; max-width: 290px;
  padding: 22px 24px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow);
}
.quote-mark { font: 700 3rem/0.6 var(--font-display); color: var(--secondary); display: block; height: 20px; }
.about-quote p { font: 500 1.2rem/1.3 var(--font-display); color: var(--dark); }
.about-text h2 { margin-bottom: 26px; }
.about-text > p:not(.eyebrow) { color: var(--muted); margin-bottom: 16px; font-size: 1.04rem; }
.about-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 32px 0 38px; border-block: 1px solid var(--line); }
.about-facts li { padding: 22px 0; }
.about-facts li + li { padding-left: 22px; border-left: 1px solid var(--line); }
.about-facts strong { display: block; font: 600 1.6rem/1.1 var(--font-display); color: var(--primary); }
.about-facts span { font-size: .86rem; color: var(--muted); }

/* Timeline – tamnija nijansa + linijska grafika znanja */
.timeline-section { background: var(--primary-deep); color: var(--white); overflow: hidden; }
.timeline-section .lineart { color: var(--secondary); opacity: .16; }
.la-book { width: 300px; left: 4%; top: 48px; }
.la-cap { width: 260px; right: 3%; top: 30px; }
.la-books { width: 220px; right: 22%; bottom: -30px; opacity: .1 !important; }
.timeline-section .container { position: relative; }
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: rgba(255,255,255,.22); }
.timeline li { position: relative; padding: 44px 24px 0 0; }
.timeline li::before {
  content: ""; position: absolute; top: 0; left: 0; width: 15px; height: 15px; border-radius: 50%;
  background: var(--primary-deep); border: 2px solid var(--secondary);
}
.timeline li.is-now::before { background: var(--white); border-color: var(--white); box-shadow: 0 0 0 6px rgba(255,255,255,.15); }
.tl-year { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--secondary); margin-bottom: 12px; }
.timeline h3 { font: 600 1.5rem/1.15 var(--font-display); margin-bottom: 10px; }
.timeline p { font-size: .92rem; color: rgba(255,255,255,.7); }

/* Why – bijela sekcija, kip izviruje s dna */
.why { background: var(--white); padding-bottom: 0; overflow: hidden; }
.why-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: end; }
.why-statue { align-self: end; position: relative; height: 100%; min-height: 560px; }
.why-statue img { position: absolute; bottom: 0; right: 0; height: 640px; width: auto; max-width: none; }
.why-content { padding-bottom: var(--section); }
.why-content h2 { margin-bottom: 16px; }
.why-content .section-intro { margin-bottom: 40px; max-width: 520px; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.why-card { padding: 28px; border-radius: var(--radius); background: var(--bg); }
.why-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--primary); color: var(--white); margin-bottom: 28px; }
.why-icon .i { width: 22px; height: 22px; }
.why-card h3 { font: 600 1.45rem/1.15 var(--font-display); margin-bottom: 10px; }
.why-card p { color: var(--muted); font-size: .95rem; }

/* Process – kao referenca: tamni gornji dio, kartica preko fotografije */
.process-top { background: var(--dark); color: var(--white); padding-top: var(--section); }
.process-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.process-head { padding-bottom: 72px; }
.process-head h2 { margin-bottom: 18px; }
.process-head p:not(.eyebrow) { color: rgba(255,255,255,.7); max-width: 440px; margin-bottom: 32px; }
.process-card {
  position: relative; z-index: 2; margin-bottom: -300px;
  padding: 44px 44px 36px; border-radius: var(--radius); background: var(--dark-2);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.5);
}
.process-card li { display: grid; grid-template-columns: 56px 1fr; gap: 14px; position: relative; padding-bottom: 28px; }
.process-card li:last-child { padding-bottom: 0; }
.process-card li:not(:last-child)::after {
  content: ""; position: absolute; left: 12px; top: 40px; bottom: 10px; width: 1px; background: rgba(255,255,255,.22);
}
.step { font: 500 1.5rem/1.2 var(--font-display); color: var(--secondary); }
.process-card h3 { font: 600 1.6rem/1.15 var(--font-display); margin-bottom: 8px; }
.process-card p { color: rgba(255,255,255,.68); font-size: .95rem; }
.process-photo {
  height: 520px;
  background: linear-gradient(180deg, rgba(var(--dark-rgb), .35), rgba(var(--dark-rgb), .05)), url("assets/img/ugovor.webp") center 40% / cover;
}

/* FAQ */
.faq-section { overflow: hidden; }
.faq-section .container { position: relative; }
.la-court { width: 620px; left: -120px; bottom: -30px; color: var(--primary); opacity: .14; }
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
.faq-head { position: sticky; top: 120px; }
.faq-head h2 { margin-bottom: 18px; }
.faq-head p:not(.eyebrow) { color: var(--muted); margin-bottom: 26px; }
.faq-phone { display: inline-flex; align-items: center; gap: 12px; font: 600 1.5rem/1 var(--font-display); color: var(--primary); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; font-weight: 600; font-size: 1.06rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--primary); font-weight: 400; font-size: 1.3rem; transition: transform .25s, background .25s;
}
.faq-list details[open] summary::after { transform: rotate(45deg); background: var(--primary); color: var(--white); border-color: var(--primary); }
.faq-list details p { padding: 0 56px 26px 0; color: var(--muted); overflow: hidden; }
.faq-list summary { transition: color .2s; }
.faq-list summary:hover { color: var(--primary); }

/* Contact */
.contact-section { background: var(--white); }
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; }
.contact-info h2 { margin-bottom: 28px; }
address { font-style: normal; color: var(--muted); margin-bottom: 24px; line-height: 1.7; }
address strong { display: block; color: var(--dark); }
.contact-lines { display: grid; gap: 10px; margin-bottom: 28px; }
.contact-lines li { display: flex; flex-direction: column; }
.contact-lines span { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--secondary); }
.contact-lines a { font-weight: 600; font-size: 1.05rem; word-break: break-word; }
.contact-lines a:hover { color: var(--primary); }
.map { position: relative; height: 260px; border-radius: var(--radius); overflow: hidden; background: var(--tint); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4); }
.map-load {
  width: 100%; height: 100%; border: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--font-body); color: var(--primary);
  background:
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(var(--primary-rgb), .07) 38px 39px),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(var(--primary-rgb), .07) 38px 39px),
    var(--tint);
}
.map-load .i { width: 34px; height: 34px; }
.map-load strong { font-size: 1rem; }
.map-load small { color: var(--muted); font-size: .78rem; max-width: 260px; text-align: center; }

.contact-form { padding: 48px; border-radius: var(--radius-lg); background: var(--bg); }
.contact-form h3 { font: 600 2rem/1.1 var(--font-display); margin-bottom: 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 20px; }
.form-grid label { display: flex; flex-direction: column; gap: 8px; font-size: .85rem; font-weight: 600; }
.form-grid .full { grid-column: 1 / -1; }
input, textarea {
  width: 100%; font: 400 1rem/1.4 var(--font-body); color: var(--dark);
  padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .12); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--muted); margin-bottom: 26px; }
.consent input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--primary); padding: 0; }
.consent a { color: var(--primary); text-decoration: underline; }
.form-note { margin-top: 14px; font-size: .9rem; color: var(--primary); font-weight: 600; }

/* Footer spojen s CTA */
.site-footer { background: var(--dark); color: rgba(255,255,255,.72); }
.footer-cta {
  padding: 120px 0 110px; color: var(--white);
  background:
    linear-gradient(180deg, rgba(var(--dark-rgb), .55) 0%, rgba(var(--dark-rgb), .7) 55%, var(--dark) 100%),
    linear-gradient(90deg, rgba(var(--dark-rgb), .85) 0%, rgba(var(--dark-rgb), .2) 70%),
    url("assets/img/vaga.webp") center 35% / cover;
}
.footer-cta h2 { font-size: clamp(2.4rem, 4.4vw, 3.8rem); max-width: 640px; margin-bottom: 16px; }
.footer-cta p { color: rgba(255,255,255,.75); max-width: 480px; margin-bottom: 32px; font-size: 1.05rem; }
.footer-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-bottom: 64px; }
.footer-phone { display: inline-flex; align-items: center; gap: 12px; font: 600 1.6rem/1 var(--font-display); font-variant-numeric: lining-nums; }
.footer-phone .i { color: var(--secondary); }
.site-footer .chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 8px;
  background: rgba(255,255,255,.1); backdrop-filter: blur(6px); font-size: .85rem; color: rgba(255,255,255,.88);
}
.chips .i { width: 15px; height: 15px; }
.footer-grid {
  display: grid; grid-template-columns: .9fr 1.8fr .75fr 1.25fr; gap: 40px;
  padding: 72px 0 64px; border-top: 1px solid var(--line-light);
}
.footer-brand p { margin-top: 18px; max-width: 280px; font-size: .95rem; }
.footer-areas ul { grid-template-columns: 1fr 1fr; column-gap: 32px; }
.site-footer .footer-grid ul { font-size: .92rem; }
@media (min-width: 1101px) { .footer-grid li { white-space: nowrap; } }
.site-footer li { line-height: 1.45; }
.fc-line { display: inline-flex; align-items: flex-start; gap: 12px; }
.fc-line .i { margin-top: 2px; }
.site-footer h4 { font: 600 1.25rem/1 var(--font-display); color: var(--white); margin-bottom: 22px; padding-top: 4px; }
.site-footer ul { display: grid; gap: 12px; }
.site-footer a:hover { color: var(--white); }
.footer-contact .i { color: var(--secondary); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-block: 24px; border-top: 1px solid var(--line-light); font-size: .85rem; }

/* Animacije – suptilne i kratke */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes portraitIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.anim { animation: fadeUp .7s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--d, 0s); }
.anim-portrait { animation: portraitIn 1s cubic-bezier(.2,.7,.2,1) .2s both; }
.hero-media { animation: fadeIn .9s ease .05s both; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Reveal slika: otkrivanje odozdo + lagani zoom-out */
.reveal-img { clip-path: inset(100% 0 0 0); transition: clip-path 1s cubic-bezier(.7,0,.2,1); }
.reveal-img.is-visible { clip-path: inset(0 0 0 0); }
.reveal-img > img { transform: scale(1.08); transition: transform 1.4s cubic-bezier(.2,.7,.2,1); }
.reveal-img.is-visible > img { transform: none; }

/* Responsive */
@media (max-width: 1200px) {
  .hero-content { width: 56%; padding-left: 48px; }
  .header-inner { padding-inline: calc(var(--edge) + 48px); }
  .main-nav { gap: 24px; }
  .mega-inner { grid-template-columns: 260px 1fr 240px; gap: 28px; }
}

@media (max-width: 1100px) {
  :root { --section: 88px; }
  .areas { grid-template-columns: 1fr 1fr; }
  .area-featured { grid-column: span 2; grid-row: auto; min-height: 460px; }
  .why-layout { grid-template-columns: .7fr 1.3fr; gap: 32px; }
  .why-statue img { height: 520px; }
  .about { gap: 56px; }
  .about-quote { right: -16px; }
  .timeline { grid-template-columns: repeat(3, 1fr); row-gap: 48px; }
  .timeline::before { display: none; }
}

@media (max-width: 960px) {
  :root { --edge: 12px; }
  .header-inner { padding-inline: 24px; }
  .header-cta { display: none; }
  .nav-toggle {
    display: grid; place-content: center; gap: 6px; margin-left: auto;
    width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); cursor: pointer;
  }
  .nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--dark); transition: transform .25s; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 24px 24px; background: var(--bg); border-bottom: 1px solid var(--line); display: none;
    max-height: calc(100vh - 84px); overflow-y: auto;
  }
  .main-nav.is-open { display: flex; }
  .main-nav > a, .nav-link { padding: 14px 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .main-nav > a::after, .nav-link::after { display: none; }
  .nav-item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav-item .nav-link { flex: 1; border-bottom: 0; }
  .mega-toggle { width: 40px; height: 40px; background: var(--white); }
  .mega { position: static; flex-basis: 100%; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; }
  .has-mega.is-open .mega { display: block; }
  .mega-inner { display: block; padding: 0 0 14px; }
  .mega-feature, .mega-aside, .mega-head { display: none; }
  .mega-grid { grid-template-columns: 1fr; gap: 2px; }
  .mega-link { padding: 8px 10px; margin: 0; }
  .mega-ico { width: 40px; height: 40px; border-radius: 12px; }
  .mega-ico .ico { width: 22px; height: 22px; }
  .mega-text small { display: none; }
  .mega-backdrop { display: none; }
  .nav-cta-mobile { display: inline-flex !important; align-self: flex-start; margin-top: 18px; padding: 5px 5px 5px 24px !important; border-bottom: 0 !important; color: var(--white) !important; }

  .hero-box { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero-media { position: relative; width: 100%; height: 440px; order: -1; overflow: hidden; }
  .hero-portrait { height: 96%; right: 0; }
  .hero-badge { left: 14px; right: auto; bottom: 14px; }
  .hero-content { width: 100%; padding: 40px 32px 36px; }
  .hero-bg-art { width: 380px; left: -60px; bottom: -30px; }
  .trust { grid-template-columns: 1fr 1fr; }
  .trust li { justify-content: flex-start; }
  .trust li:nth-child(3) { border-left: 0; }
  .trust li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .section-head.split { flex-direction: column; align-items: flex-start; gap: 20px; }
  .problems-grid, .about, .faq, .contact { grid-template-columns: 1fr; gap: 48px; }
  .about-media { max-width: 520px; }
  .why-layout { grid-template-columns: 1fr; }
  .why-statue { order: 2; min-height: 380px; }
  .why-statue img { height: 420px; right: 50%; transform: translateX(62%); }
  .why-content { padding-bottom: 0; }
  .process-grid { grid-template-columns: 1fr; gap: 8px; }
  .process-head { padding-bottom: 40px; }
  .process-card { margin-bottom: -180px; }
  .process-photo { height: 340px; }
  .faq-head { position: static; }
  .la-court { width: 420px; left: -80px; top: 20px; bottom: auto; opacity: .1; }
  .area-more { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 44px; }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; --section: 72px; --radius-lg: 22px; --edge: 8px; }
  .header-inner { height: 72px; padding-inline: 16px; }
  .logo-name { font-size: 1.35rem; }
  .logo-kicker { font-size: .58rem; }
  .hero-media { height: 380px; }
  .hero-content { padding: 36px 22px 30px; }
  .hero-badge { right: 14px; }
  .hero .btn-row .btn { flex: 1 1 100%; justify-content: space-between; }
  .hero .btn-row .btn-ghost-light { justify-content: center; }
  .trust { grid-template-columns: 1fr; }
  .trust li { padding: 18px 20px; }
  .trust li + li { border-left: 0; border-top: 1px solid var(--line); }
  .areas, .problem-list, .why-grid { grid-template-columns: 1fr; }
  .area-featured, .area-more { grid-column: auto; }
  .area-featured { min-height: 520px; }
  .af-body { padding: 26px; }
  .area { min-height: 0; padding: 26px; }
  .area h3 { margin-top: 26px; }
  .la-scales { width: 340px; left: -80px; top: 120px; transform: none; }
  .la-gavel { width: 300px; right: -90px; top: auto; bottom: 40px; transform: none; }
  .la-para { display: none; }
  .about-quote { position: relative; right: auto; bottom: auto; margin: -48px 16px 0; }
  .about-facts { grid-template-columns: 1fr; }
  .about-facts li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .timeline { grid-template-columns: 1fr; row-gap: 0; padding-left: 8px; }
  .timeline li { padding: 0 0 36px 36px; border-left: 1px solid rgba(255,255,255,.22); }
  .timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
  .timeline li::before { left: -8px; }
  .la-book { width: 200px; }
  .la-cap { width: 160px; }
  .process-card { padding: 30px 22px; margin-bottom: -140px; }
  .process-card li { grid-template-columns: 44px 1fr; }
  .process-photo { height: 260px; }
  .contact-form { padding: 28px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .faq-list details p { padding-right: 0; }
  .footer-cta { padding: 80px 0 72px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-areas ul { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-img, .reveal-img > img { opacity: 1; transform: none; transition: none; clip-path: none; }
  .anim, .anim-portrait, .hero-media { animation: none; }
}
