/* OKVIR - odvjetnički ured za startupe / startup law office
   Big grotesque type, marker-yellow highlights, full-colour photography
   with a light unifying grade. */

/* ==========================================================================
   RESET + BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  overflow-x: hidden; overflow-x: clip;
}
body {
  font-family: var(--font-body);
  font-size: var(--fs-400);
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--color-bg);
  overflow-x: hidden; overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--color-ink); outline-offset: 3px; }
.dark :focus-visible { outline-color: var(--color-hl); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

.skip-link { position: absolute; left: -999px; top: 0; z-index: 200; background: var(--color-ink); color: #fff; padding: .6em 1.2em; }
.skip-link:focus { left: 0; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.dark { background: var(--color-black); color: var(--color-paper); }

mark {
  background: var(--color-hl); color: var(--color-ink);
  padding: 0 .14em; border-radius: 4px;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}

/* ==========================================================================
   TYPE
   ========================================================================== */
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.02; letter-spacing: -.015em; }
.section-title { font-size: var(--fs-800); max-width: 16ch; text-wrap: balance; }
.section-lead { margin-top: var(--s4); max-width: 52ch; color: var(--color-muted); font-size: var(--fs-500); }
.dark .section-lead { color: var(--color-muted-d); }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .9em 1.7em; border-radius: var(--radius-pill);
  font-weight: 600; font-size: var(--fs-300); letter-spacing: .005em;
  border: 1.5px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s, transform .15s;
}
.btn:active { transform: scale(.98); }
.btn--hl { background: var(--color-hl); color: var(--color-ink); }
.btn--hl:hover { background: var(--color-hl-deep); }
.btn--ghost { border-color: var(--color-ink); color: var(--color-ink); }
.btn--ghost:hover { background: var(--color-ink); color: var(--color-bg); }
.dark .btn--ghost { border-color: var(--color-paper); color: var(--color-paper); }
.dark .btn--ghost:hover { background: var(--color-paper); color: var(--color-ink); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--color-bg) 90%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-line);
}
.header__bar { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: var(--s4); }
.logo { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; letter-spacing: -.02em; line-height: 1; display: flex; align-items: baseline; }
.logo::after { content: ""; width: .34em; height: .34em; background: var(--color-hl); margin-left: .13em; border-radius: 1.5px; }

.nav { display: none; }
.nav__link { padding: .5em .75em; font-size: var(--fs-300); font-weight: 500; color: var(--color-ink); border-radius: var(--radius-pill); }
.nav__link:hover { background: #e9e8e0; }
.header__right { display: flex; align-items: center; gap: var(--s3); }
.header__cta { display: none; }

.lang { display: flex; border: 1px solid var(--color-line); border-radius: var(--radius-pill); overflow: hidden; }
.lang__btn { padding: .4em .75em; font-size: .78rem; font-weight: 700; color: var(--color-muted); }
.lang__btn[aria-pressed="true"] { background: var(--color-ink); color: var(--color-bg); }

.nav-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--color-line); border-radius: 50%; }
.nav-toggle__lines { position: relative; width: 16px; height: 2px; background: var(--color-ink); border-radius: 2px; }
.nav-toggle__lines::before, .nav-toggle__lines::after { content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: var(--color-ink); border-radius: 2px; }
.nav-toggle__lines::before { top: -5px; } .nav-toggle__lines::after { top: 5px; }

.drawer { border-bottom: 1px solid var(--color-line); background: var(--color-bg); }
.drawer[hidden] { display: none; }
.drawer__list { padding-block: var(--s3) var(--s5); display: grid; }
.drawer__link { display: block; padding: .65em .2em; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; border-bottom: 1px solid var(--color-line); }
.drawer__cta { margin-top: var(--s4); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { padding-block: clamp(3.5rem, 8vw, 7rem) clamp(2.5rem, 5vw, 4rem); }
.hero__title { font-size: var(--fs-hero); max-width: 13ch; }
.hero__lede { margin-top: var(--s5); font-size: var(--fs-500); color: var(--color-muted); max-width: 52ch; }
.hero__ctas { margin-top: var(--s6); display: flex; flex-wrap: wrap; gap: var(--s3); }
.hero__trust { margin-top: var(--s6); display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); font-size: var(--fs-200); color: var(--color-muted); }
.hero__trust span { display: inline-flex; align-items: center; gap: .5em; }
.hero__trust i { width: 8px; height: 8px; background: var(--color-hl); border-radius: 2px; flex: none; }

.hero__band { position: relative; }
.hero__band img {
  width: 100%; height: clamp(260px, 44vw, 560px); object-fit: cover;
  filter: saturate(.94) contrast(1.03);
}

/* Sectors ticker */
.ticker { border-block: 1px solid var(--color-line); overflow: hidden; background: var(--color-bg); }
.ticker__track { display: flex; width: max-content; animation: tick 30s linear infinite; }
.ticker__seq {
  display: flex; align-items: center; gap: var(--s6); padding: .95rem var(--s6) .8rem 0;
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-500);
  letter-spacing: .06em; white-space: nowrap;
}
.ticker__seq i { width: 9px; height: 9px; background: var(--color-hl); border-radius: 2px; flex: none; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

/* ==========================================================================
   STAGES
   ========================================================================== */
.stages__tabs { margin-top: var(--s7); display: flex; flex-wrap: wrap; gap: var(--s2); }
.stab {
  border: 1.5px solid var(--color-line); border-radius: var(--radius-pill);
  padding: .7em 1.3em; font-weight: 600; font-size: var(--fs-300);
  background: var(--color-card);
  transition: border-color .2s, background-color .2s, color .2s;
}
.stab:hover { border-color: var(--color-ink); }
.stab[aria-pressed="true"] { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-bg); }
.stab[aria-pressed="true"]::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--color-hl); border-radius: 2px; margin-right: .55em; }

.stages__panel {
  margin-top: var(--s5); border: 1px solid var(--color-line); border-radius: var(--radius-md);
  background: var(--color-card); padding: clamp(1.5rem, 4vw, 2.75rem);
  display: grid; gap: var(--s6);
}
.stages__panel > * { min-width: 0; }
.snow__title { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-700); line-height: 1.05; }
.snow__text { margin-top: var(--s3); color: var(--color-muted); max-width: 44ch; }
.snow__cta { margin-top: var(--s5); }
.sfees { display: grid; align-content: start; }
.sfees__head { font-size: var(--fs-200); font-weight: 700; letter-spacing: .04em; padding-bottom: var(--s3); border-bottom: 2px dotted var(--color-line); }
.sfee { display: grid; grid-template-columns: 1fr auto; gap: var(--s4); align-items: baseline; padding-block: var(--s4); border-bottom: 2px dotted var(--color-line); }
.sfee__name { font-weight: 600; }
.sfee__note { display: block; font-size: var(--fs-200); color: var(--color-muted); font-weight: 400; margin-top: .2rem; }
.sfee__price { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-500); white-space: nowrap; background: var(--color-hl); padding: .05em .3em; border-radius: 4px; }

/* ==========================================================================
   SERVICES INDEX
   ========================================================================== */
.svc { margin-top: var(--s7); border-top: 1.5px solid var(--color-ink); }
.svc__item { border-bottom: 1.5px solid var(--color-ink); }
.svc__head {
  width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: var(--s5); padding: var(--s5) var(--s1); text-align: left;
}
.svc__num {
  font-family: var(--font-display); font-weight: 300; font-size: var(--fs-700);
  color: var(--color-muted); line-height: 1; min-width: 2.4ch;
  transition: color .2s;
}
.svc__title { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-700); line-height: 1.02; transition: color .2s; }
.svc__arrow { font-size: var(--fs-600); transition: transform .3s; }
.svc__head:hover .svc__title { color: #000; text-decoration: underline; text-decoration-color: var(--color-hl); text-decoration-thickness: 4px; text-underline-offset: 6px; }
.svc__item.is-open .svc__num { color: var(--color-ink); }
.svc__item.is-open .svc__arrow { transform: rotate(45deg); }
.svc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s ease; }
.svc__body > div { overflow: hidden; }
.svc__item.is-open .svc__body { grid-template-rows: 1fr; }
.svc__inner { padding: 0 var(--s1) var(--s6); display: grid; gap: var(--s5); max-width: 60rem; }
.svc__desc { color: var(--color-muted); max-width: 52ch; }
.svc__list { display: grid; gap: var(--s2); align-content: start; }
.svc__list li { padding-left: 1.3em; position: relative; font-size: var(--fs-300); }
.svc__list li::before { content: ""; position: absolute; left: 0; top: .48em; width: 8px; height: 8px; background: var(--color-hl); border-radius: 2px; }
.svc__price { font-size: var(--fs-300); color: var(--color-muted); }
.svc__price strong { color: var(--color-ink); }

/* ==========================================================================
   IMAGE BANDS
   ========================================================================== */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; line-height: 0; }
.duo img { width: 100%; height: clamp(220px, 32vw, 440px); object-fit: cover; filter: saturate(.94) contrast(1.03); }
.nightband { margin-top: var(--s9); border-radius: var(--radius-md); overflow: hidden; line-height: 0; }
.nightband img { width: 100%; height: clamp(200px, 28vw, 380px); object-fit: cover; filter: saturate(.9) contrast(1.03); }

/* ==========================================================================
   NUMBERS + DEALS (dark)
   ========================================================================== */
.numbers__grid { margin-top: var(--s7); display: grid; gap: var(--s6); }
.num__val {
  font-family: var(--font-display); font-weight: 800; font-size: var(--fs-giant);
  line-height: .95; color: var(--color-hl); letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.num__label { margin-top: var(--s2); color: var(--color-muted-d); font-size: var(--fs-300); max-width: 20ch; }

.deals { margin-top: var(--s9); border-top: 1px solid var(--color-line-d); }
.deals__title { padding-top: var(--s5); font-size: var(--fs-200); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-muted-d); }
.deal { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s4); align-items: baseline; padding-block: var(--s5); border-bottom: 2px dotted var(--color-line-d); }
.deal__year { font-family: var(--font-display); font-weight: 300; font-size: var(--fs-500); color: var(--color-muted-d); }
.deal__text { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-600); line-height: 1.15; }
.deal__val { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-600); color: var(--color-hl); white-space: nowrap; }

/* ==========================================================================
   TEAM
   ========================================================================== */
.team__grid { margin-top: var(--s7); display: grid; gap: var(--s6) var(--s5); }
.person__photo { border-radius: var(--radius-md); overflow: hidden; background: var(--color-line); }
.person__photo img {
  width: 100%; aspect-ratio: 4 / 4.7; object-fit: cover;
  filter: saturate(.92) contrast(1.02);
  transition: transform .45s;
}
.person:hover .person__photo img { transform: scale(1.03); }
/* landscape sources show full height: zoom crops a name tag at the bottom edge */
.person__photo--zoom img { transform: scale(1.18); transform-origin: 57% 12%; }
.person:hover .person__photo--zoom img { transform: scale(1.21); }
.person__name { margin-top: var(--s4); font-family: var(--font-display); font-weight: 800; font-size: var(--fs-600); }
.person__role { color: var(--color-muted); font-size: var(--fs-300); margin-top: .15rem; }
.person__mail { display: inline-block; margin-top: var(--s3); font-size: var(--fs-300); font-weight: 600; border-bottom: 2px dotted var(--color-ink); padding-bottom: 2px; }
.person__mail:hover { border-bottom-style: solid; border-color: var(--color-hl); }

/* ==========================================================================
   PROCESS + MINI FAQ
   ========================================================================== */
.how__grid { margin-top: var(--s7); display: grid; gap: var(--s6); }
.how__step { border-top: 1.5px solid var(--color-ink); padding-top: var(--s4); }
.how__num { font-family: var(--font-display); font-weight: 300; font-size: var(--fs-700); line-height: 1; }
.how__title { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-600); margin-top: var(--s3); }
.how__text { margin-top: var(--s2); color: var(--color-muted); font-size: var(--fs-300); }
.how__promise { margin-top: var(--s7); padding: var(--s5) var(--s6); background: var(--color-card); border: 1px solid var(--color-line); border-radius: var(--radius-md); font-weight: 600; display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.how__promise i { width: 10px; height: 10px; background: var(--color-hl); border-radius: 2px; flex: none; }

.pfaq { margin-top: var(--s8); border-top: 1.5px solid var(--color-ink); }
.pfaq__item { border-bottom: 1.5px solid var(--color-ink); }
.pfaq__item summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: var(--s4);
  align-items: center; padding: var(--s5) var(--s1);
  font-family: var(--font-display); font-weight: 800; font-size: var(--fs-600); line-height: 1.1;
}
.pfaq__item summary::-webkit-details-marker { display: none; }
.pfaq__item summary::after { content: "+"; font-family: var(--font-display); font-weight: 300; font-size: 1.6em; line-height: .8; transition: transform .3s; }
.pfaq__item[open] summary::after { transform: rotate(45deg); }
.pfaq__body { padding: 0 var(--s1) var(--s5); color: var(--color-muted); max-width: 58ch; }

/* ==========================================================================
   CONTACT (dark)
   ========================================================================== */
.contact__grid { margin-top: var(--s7); display: grid; gap: var(--s7); align-items: start; }
.contact__grid > * { min-width: 0; }
.contact__links { display: grid; gap: var(--s3); font-size: var(--fs-500); }
.contact__links a { width: fit-content; border-bottom: 2px dotted var(--color-line-d); padding-bottom: 2px; font-weight: 600; }
.contact__links a:hover { border-color: var(--color-hl); border-bottom-style: solid; }
.contact__addr { margin-top: var(--s5); color: var(--color-muted-d); font-size: var(--fs-300); }
.contact__note { margin-top: var(--s5); display: flex; gap: var(--s3); align-items: flex-start; font-size: var(--fs-300); color: var(--color-muted-d); max-width: 40ch; }
.contact__note i { width: 9px; height: 9px; background: var(--color-hl); border-radius: 2px; flex: none; margin-top: .4em; }
.contact__media { margin-top: var(--s6); border-radius: var(--radius-md); overflow: hidden; max-width: 420px; }
.contact__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; filter: saturate(.94) contrast(1.03); }

.form { background: var(--color-card); color: var(--color-ink); border-radius: var(--radius-md); padding: clamp(1.5rem, 3.5vw, 2.5rem); }
.form__title { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-600); }
.form__grid { margin-top: var(--s5); display: grid; gap: var(--s4); }
.field label { display: block; font-size: var(--fs-200); font-weight: 600; margin-bottom: .4rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: var(--fs-300); color: var(--color-ink);
  background: var(--color-bg); border: 1.5px solid var(--color-line); border-radius: var(--radius-sm);
  padding: .8em .95em;
}
.field textarea { min-height: 7em; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--color-ink); }
.form__legal { font-size: var(--fs-200); color: var(--color-muted); }
.form__success { text-align: center; padding: var(--s8) var(--s4); }
.form__success[hidden] { display: none; }
.form__success h3 { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-600); }
.form__success p { margin-top: var(--s3); color: var(--color-muted); }
.form__success .sq { width: 16px; height: 16px; background: var(--color-hl); border-radius: 3px; display: inline-block; margin-bottom: var(--s3); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--color-black-2); color: var(--color-paper); }
.footer__word {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -.03em;
  font-size: clamp(5rem, 19vw, 15rem); line-height: .95; text-align: center;
  padding-block: var(--s9) var(--s7);
  display: flex; justify-content: center; align-items: baseline;
}
.footer__word::after { content: ""; width: .16em; height: .16em; background: var(--color-hl); margin-left: .05em; border-radius: .03em; }
.footer__grid { display: grid; gap: var(--s6); border-top: 1px solid var(--color-line-d); padding-block: var(--s6) var(--s7); }
.footer__blurb { color: var(--color-muted-d); font-size: var(--fs-300); max-width: 34ch; }
.footer__oib { margin-top: var(--s3); font-size: var(--fs-200); color: var(--color-muted-d); }
.footer__nav { display: grid; gap: var(--s2); font-size: var(--fs-300); }
.footer__nav a:hover { color: var(--color-hl); }
.footer__contact { display: grid; gap: var(--s2); font-size: var(--fs-300); color: var(--color-muted-d); }
.footer__contact a { color: var(--color-paper); }
.footer__contact a:hover { color: var(--color-hl); }
.footer__base { display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: space-between; padding-block: var(--s5); border-top: 1px solid var(--color-line-d); font-size: var(--fs-200); color: var(--color-muted-d); }
.footer__base a { color: var(--color-muted-d); }
.footer__base a:hover { color: var(--color-hl); }

/* ==========================================================================
   REVEAL
   ========================================================================== */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   BREAKPOINTS
   ========================================================================== */
@media (max-width: 479.98px) {
  .header__bar { gap: var(--s2); }
  .logo { font-size: 1.35rem; }
}

@media (min-width: 640px) {
  .numbers__grid { grid-template-columns: repeat(2, 1fr); }
  .team__grid { grid-template-columns: repeat(2, 1fr); }
  .how__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  .stages__panel { grid-template-columns: .9fr 1.1fr; }
  .svc__inner { grid-template-columns: 1.1fr .9fr; }
  .svc__price { grid-column: 1 / -1; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 1024px) {
  .numbers__grid { grid-template-columns: repeat(4, 1fr); }
  .team__grid { grid-template-columns: repeat(4, 1fr); }
  .contact__grid { grid-template-columns: .85fr 1.15fr; }
}

@media (min-width: 1140px) {
  .nav { display: flex; gap: var(--s1); }
  .header__cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .drawer { display: none !important; }
}
