/*
 * /services/films — featured film, category tabs, video grid and the video player dialog.
 * Site typography (Advent Pro), white background, purple selection with a yellow accent.
 */
.fl-section {
  margin: 0 0 64px;
}

.fl-eyebrow {
  margin: 0 0 14px;
  color: #6b6578;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.fl-eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 3px;
  margin-inline-end: 10px;
  vertical-align: middle;
  border-radius: 3px;
  background: #fac400;
}

/* Shared play badge */
.fl-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #542785;
  font-size: 16px;
  box-shadow: 0 10px 24px -10px rgba(30, 35, 51, 0.55);
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.fl-play i {
  margin-left: 3px;
}

.fl-play--lg {
  width: 84px;
  height: 84px;
  font-size: 26px;
}

/* ---------------------------------------------------------------- Featured film */
.fl-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  width: 100%;
  overflow: hidden;
  padding: 0;
  border: 1px solid #e9e3f2;
  border-radius: 18px;
  background: #fff;
  color: #1e2333;
  font: inherit;
  text-align: start;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.25s ease;
}

.fl-feature:hover {
  border-color: #b9a6d6;
  box-shadow: 0 18px 36px -26px rgba(61, 28, 97, 0.45);
}

.fl-feature:focus-visible {
  outline: 2px solid #542785;
  outline-offset: 3px;
}

.fl-feature__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1e2333;
}

.fl-feature__media img,
.fl-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.fl-feature:hover .fl-feature__media img,
.fl-card:hover .fl-card__media img {
  transform: scale(1.04);
}

.fl-feature:hover .fl-play,
.fl-feature:focus-visible .fl-play,
.fl-card:hover .fl-play,
.fl-card:focus-visible .fl-play {
  background: #542785;
  color: #fff;
  transform: translate(-50%, -50%) scale(1.08);
}

.fl-feature__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 32px;
}

.fl-feature__client {
  color: #542785;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.fl-feature__title {
  margin: 6px 0 12px;
  color: #1e2333;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
}

.fl-feature__cat {
  color: #6b6578;
  font-size: 15px;
  font-weight: 700;
}

.fl-feature__cta {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding-bottom: 3px;
  border-bottom: 3px solid #fac400;
  color: #542785;
  font-size: 16px;
  font-weight: 700;
}

.fl-feature__cta i {
  font-size: 12px;
}

/* ---------------------------------------------------------------- Our films */
.fl-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 32px;
  margin-bottom: 18px;
}

.fl-heading {
  margin: 0;
  color: #1e2333;
  font-size: 26px;
  font-weight: 700;
}

.fl-intro {
  max-width: 520px;
  margin: 0;
  color: #3b3647;
  font-size: 16px;
  line-height: 1.6;
}

.fl-intro a {
  color: #542785;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: #fac400;
  text-underline-offset: 3px;
}

.fl-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid #ebe6f2;
}

.fl-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #e3dcee;
  border-radius: 999px;
  background: #fff;
  color: #3b3647;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.fl-tab:hover {
  border-color: #b9a6d6;
  color: #542785;
}

.fl-tab:focus-visible {
  outline: 2px solid #542785;
  outline-offset: 3px;
}

.fl-tab[aria-selected="true"] {
  border-color: #542785;
  background: #542785;
  color: #fff;
  box-shadow: inset 0 -3px 0 #fac400;
}

.fl-tab__count {
  min-width: 24px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #f1ebf8;
  color: #542785;
  font-size: 12px;
  text-align: center;
}

.fl-tab[aria-selected="true"] .fl-tab__count {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.fl-blurb {
  margin: 0 0 18px;
  color: #6b6578;
  font-size: 16px;
  font-weight: 600;
}

.fl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fl-card {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: #1e2333;
  font: inherit;
  text-align: start;
  cursor: pointer;
}

.fl-card:focus-visible {
  outline: 2px solid #542785;
  outline-offset: 4px;
  border-radius: 12px;
}

.fl-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-bottom: 12px;
  border-radius: 12px;
  background: #1e2333;
}

.fl-card__client {
  display: block;
  color: #542785;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.fl-card__title {
  display: block;
  margin-top: 2px;
  color: #1e2333;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
}

.fl-more {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.fl-more__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid #542785;
  border-radius: 999px;
  background: #fff;
  color: #542785;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.fl-more__btn:hover {
  background: #542785;
  color: #fff;
}

.fl-more__btn:focus-visible {
  outline: 2px solid #542785;
  outline-offset: 3px;
}

.fl-more__count {
  font-size: 13px;
  opacity: 0.75;
}

/* ---------------------------------------------------------------- Player dialog */
.fl-player {
  width: min(1100px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.fl-player::backdrop {
  background: rgba(20, 16, 32, 0.88);
}

.fl-player__inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fl-player__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.fl-player__title {
  margin: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.fl-player__close {
  display: grid;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.fl-player__close:hover,
.fl-player__close:focus-visible {
  background: #fac400;
  border-color: #fac400;
  color: #1e2333;
  outline: none;
}

.fl-player__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: calc(100vh - 140px);
  overflow: hidden;
  border-radius: 12px;
  background: #000;
}

.fl-player__frame iframe,
.fl-player__frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.fl-player__yt {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.fl-player__yt:hover {
  color: #fac400;
  text-decoration: none;
}

.fl-player__yt i {
  font-size: 11px;
  transform: rotate(-45deg);
}

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 1200px) {
  .fl-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 992px) {
  .fl-feature {
    grid-template-columns: 1fr;
  }

  .fl-feature__body {
    padding: 22px 24px;
  }

  .fl-feature__title {
    font-size: 27px;
  }
}

@media (max-width: 576px) {
  .fl-section {
    margin-bottom: 48px;
  }

  .fl-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .fl-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fl-tab {
    justify-content: space-between;
    min-height: 44px;
    padding: 0 12px;
    font-size: 13px;
    letter-spacing: 0.2px;
    text-align: start;
  }

  .fl-heading {
    font-size: 23px;
  }

  .fl-play--lg {
    width: 64px;
    height: 64px;
    font-size: 20px;
  }

  .fl-player__title {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fl-feature,
  .fl-feature__media img,
  .fl-card__media img,
  .fl-play,
  .fl-tab,
  .fl-more__btn,
  .fl-player__close {
    transition: none;
  }

  .fl-feature:hover .fl-feature__media img,
  .fl-card:hover .fl-card__media img {
    transform: none;
  }
}
