/* VM Family Law - shared styles for [block ...] components. Namespaced .vmfl-* */

:root{
  --vmfl-blue: #081D96;
  --vmfl-blue-light: #4C63D9;
}

/* --- Family Law Services grid --- */

.vmfl-services{ width: 100%; margin: 24px 0; }

.vmfl-services__heading{ font-size: 24px; margin: 0 0 16px; }

.vmfl-services__grid{
  display: grid;
  width: 100%;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 900px){
  .vmfl-services__grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px){
  .vmfl-services__grid{ grid-template-columns: 1fr; }
}

.vmfl-service-card{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  text-decoration: none;
  border: 1.5px solid var(--vmfl-blue);
  border-radius: 10px;
  padding: 16px 10px;
  color: inherit;
  background: transparent;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.vmfl-service-card svg{
  width: 32px;
  height: 32px;
  color: var(--vmfl-blue);
  transition: color .18s ease;
}

.vmfl-service-card:hover,
.vmfl-service-card:focus-visible,
.vmfl-service-card:active{
  border-color: var(--vmfl-blue-light);
  background: rgba(76, 99, 217, .07);
}

.vmfl-service-card:hover svg,
.vmfl-service-card:focus-visible svg,
.vmfl-service-card:active svg{
  color: var(--vmfl-blue-light);
}

.vmfl-service-card span{
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.25;
}

/* --- Expert Solicitors carousel --- */

.vmfl-solicitors{ width: 100%; margin: 24px 0; text-align: center; }

.vmfl-solicitors__heading{ font-size: 26px; margin: 0 0 12px; }

.vmfl-solicitors__subheading{
  max-width: 640px;
  margin: 0 auto 32px;
  color: #55585f;
  line-height: 1.5;
}

.vmfl-carousel{ position: relative; }

.vmfl-carousel__viewport{ overflow: hidden; width: 100%; }

.vmfl-carousel__track{
  display: flex;
  transition: transform .35s ease;
}

.vmfl-solicitor{
  display: flex;
  align-items: flex-start;
  gap: 20px;
  text-align: left;
  padding: 0 12px;
  box-sizing: border-box;
}

.vmfl-solicitor__photo{
  flex: 0 0 auto;
  width: 42%;
  max-width: 220px;
  border-radius: 10px;
  overflow: hidden;
  background: #eceef7;
}

.vmfl-solicitor__photo img{
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.vmfl-solicitor__photo-fallback{
  width: 100%;
  aspect-ratio: 1 / 1;
  background: rgba(8, 29, 150, .08);
}

.vmfl-solicitor__body{ flex: 1 1 auto; min-width: 0; }

.vmfl-solicitor__name{ font-size: 21px; margin: 0 0 10px; }

.vmfl-solicitor__credentials{
  margin: 0 0 14px;
  padding-left: 18px;
  color: #55585f;
  font-size: 14.5px;
  line-height: 1.5;
}

.vmfl-solicitor__job-title{
  margin: 0 0 14px;
  color: #55585f;
  font-size: 14.5px;
}

.vmfl-solicitor__link{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--vmfl-blue);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid var(--vmfl-blue);
  padding-bottom: 2px;
  transition: color .18s ease, border-color .18s ease;
}

.vmfl-solicitor__link svg{ width: 16px; height: 16px; transition: transform .18s ease; }

.vmfl-solicitor__link:hover,
.vmfl-solicitor__link:focus-visible{
  color: var(--vmfl-blue-light);
  border-color: var(--vmfl-blue-light);
}

.vmfl-solicitor__link:hover svg{ transform: translateX(3px); }

.vmfl-carousel__nav{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

.vmfl-carousel__arrow{
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--vmfl-blue);
  background: #fff;
  color: var(--vmfl-blue);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: border-color .18s ease, color .18s ease, background-color .18s ease;
}

.vmfl-carousel__arrow svg{ width: 18px; height: 18px; }

.vmfl-carousel__arrow:hover:not(:disabled),
.vmfl-carousel__arrow:focus-visible:not(:disabled){
  border-color: var(--vmfl-blue-light);
  color: var(--vmfl-blue-light);
  background: rgba(76, 99, 217, .07);
}

.vmfl-carousel__arrow:disabled{ opacity: .3; cursor: default; }

.vmfl-carousel__dots{ display: flex; align-items: center; gap: 8px; }

.vmfl-carousel__dot{
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: #ccd2ee;
  cursor: pointer;
}

.vmfl-carousel__dot.is-active{ background: var(--vmfl-blue); }

.vmfl-carousel--single .vmfl-carousel__nav{ display: none; }

@media (max-width: 600px){
  .vmfl-solicitor{ flex-direction: column; }
  .vmfl-solicitor__photo{ width: 100%; max-width: none; }
}
