/* ============================================
   Ostale usluge — jezici, oblasti i gradovi
   templates/part/other-services.twig
   ============================================ */

.other-services .os-head {
  max-width: 760px;
}

.other-services .os-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.125rem;
  padding: 0.4375rem 1rem;
  border-radius: 100px;
  background-color: var(--pink-faint);
  color: var(--orange-dark);
  font-family: var(--h-font), system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.2;
}

.other-services .os-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(255, 115, 25, 0.18);
}

.other-services .os-lead {
  color: var(--grey-clay);
  font-size: 1.12rem;
}

/* ============================================
   Accordion shell
   ============================================ */

.other-services .os-acc {
  border: 1px solid var(--grey-solomon);
  border-radius: 18px;
  background-color: var(--white);
  overflow: hidden;
  scroll-margin-top: 6rem;
}

.other-services .os-acc + .os-acc {
  margin-top: 0.75rem;
}

.other-services .os-acc-heading {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.other-services .os-acc-toggle {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  width: 100%;
  padding: 1.125rem 1.375rem;
  border: none;
  background-color: var(--white);
  text-align: left;
  transition: background-color 0.2s ease;
}

.other-services .os-acc-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background-color: var(--pink-faint);
  color: var(--orange-dark);
  font-size: 0.95rem;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.other-services .os-acc-title {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--blvck);
  font-family: var(--h-font), system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.3;
}

.other-services .os-acc-count {
  flex: none;
  color: var(--grey-clay);
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
}

.other-services .os-acc-chev {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: var(--grey-faint);
  color: var(--grey-clay);
  font-size: 0.72rem;
  transition:
    transform 0.25s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

.other-services .os-acc.is-open .os-acc-chev {
  transform: rotate(180deg);
  background-color: var(--orange-dark);
  color: var(--white);
}

.other-services .os-acc.is-open .os-acc-icon {
  background-color: var(--orange-dark);
  color: var(--white);
}

@media (hover: hover) {
  .other-services .os-acc-toggle:hover {
    background-color: var(--grey-faint);
  }
}

.other-services .os-acc-toggle:focus-visible {
  outline: 2px solid var(--orange-dark);
  outline-offset: -2px;
}

/* Until JS loads every group stays open, so the links are readable without it. */
.other-services .os-acc-body {
  padding: 0.25rem 1.375rem 1.5rem;
  border-top: 1px solid var(--grey-solomon);
}

.other-services .os-list.is-ready .os-acc:not(.is-open) .os-acc-body {
  display: none;
}

.other-services .os-acc-lead {
  margin: 1rem 0 0;
  color: var(--grey-clay);
  font-size: 0.94rem;
  line-height: 1.65;
}

/* ============================================
   Filter
   ============================================ */

.other-services .os-filter {
  position: relative;
  margin-top: 1.125rem;
  max-width: 380px;
}

.other-services .os-filter i {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  color: var(--grey-clay);
  font-size: 0.86rem;
  pointer-events: none;
}

.other-services .os-filter-input {
  width: 100%;
  padding: 0.6875rem 1rem 0.6875rem 2.5rem;
  border: 1px solid var(--grey-light);
  border-radius: 100px;
  background-color: var(--white);
  color: var(--blvck);
  font-family: inherit;
  font-size: 0.94rem;
}

.other-services .os-filter-input:focus {
  border-color: var(--orange-blight);
  outline: none;
  box-shadow: 0 0 0 3px var(--pink-faint);
}

/* ============================================
   Link grids
   ============================================ */

.other-services .os-sublist {
  margin-top: 1.25rem;
}

.other-services .os-sublist-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.625rem;
  color: var(--grey-olive);
  font-family: var(--h-font), system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.other-services .os-sublist-label span {
  padding: 0.125rem 0.5rem;
  border-radius: 100px;
  background-color: var(--grey-faint);
  color: var(--grey-clay);
  font-size: 0.76rem;
  letter-spacing: 0;
}

.other-services .os-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.125rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.other-services .os-links a {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  /* Pulled back by its own padding so the label text still lines up with the
     sublist heading above it, while the hover pill can breathe. */
  margin-left: -0.625rem;
  padding: 0.4375rem 0.625rem;
  border-radius: 10px;
  color: var(--grey-olive);
  font-size: 0.92rem;
  line-height: 1.4;
  transition:
    background-color 0.18s ease,
    color 0.18s ease;
}

/* Square box + cover so a 4:3 or 3:2 flag is centre-cropped into the circle
   rather than squashed. */
.other-services .os-flag {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--grey-solomon);
}

/* Same 22px slot as the flags, but the court-interpreter pictograms are square
   128×128 artwork — `contain` and no circular clip keeps their corners intact. */
.other-services .os-ico {
  flex: none;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

@media (hover: hover) {
  .other-services .os-links a:hover {
    background-color: var(--grey-faint);
    color: var(--orange-dark);
  }
}

.other-services .os-links a:focus-visible {
  outline: 2px solid var(--orange-dark);
  outline-offset: 2px;
}

.other-services .os-empty {
  margin: 1.25rem 0 0;
  color: var(--grey-clay);
  font-size: 0.94rem;
}

/* ============================================
   CTA
   ============================================ */

.other-services .os-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.875rem 1.25rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--grey-solomon);
}

.other-services .os-cta-text {
  flex: 1 1 260px;
  margin: 0;
  color: var(--grey-clay);
  font-size: 0.94rem;
  line-height: 1.6;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 575.98px) {
  .other-services .os-acc-toggle {
    flex-wrap: wrap;
    padding: 1rem 1.125rem;
  }

  .other-services .os-acc-title {
    flex: 1 1 auto;
    font-size: 1rem;
  }

  .other-services .os-acc-count {
    order: 3;
    width: 100%;
    padding-left: 3.25rem;
  }

  .other-services .os-acc-body {
    padding: 0.25rem 1.125rem 1.25rem;
  }

  .other-services .os-links {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .other-services .os-acc-toggle,
  .other-services .os-acc-icon,
  .other-services .os-acc-chev,
  .other-services .os-links a {
    transition: none;
  }
}
