/* =========================================================
   Employment Law assist LLP — site modules (videos & testimonials)
   Rendered by Luma's worker from videos/templates/* and
   testimonials/templates/*. Uses the same brand tokens as main.css.
   ========================================================= */

/* ------- Module sections ------- */

.luma-module .section-head { margin-bottom: 2.4rem; }
.luma-module__more { text-align: center; margin: 2.4rem 0 0; }

/* Collapse cleanly when the worker renders no cards. */
.luma-cards:empty { display: none; }
.luma-module:has(.luma-cards:empty) { display: none; }

/* ------- Card grids ------- */

.luma-cards {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
}

.luma-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s, border-color 0.25s;
}
.luma-card:hover { box-shadow: var(--shadow); border-color: var(--secondary); }

.luma-card__body { padding: 1.5rem 1.6rem 1.8rem; display: flex; flex-direction: column; flex: 1; }

.luma-card__tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--secondary);
  margin: 0 0 0.6rem;
}
.luma-card__tag:empty { display: none; }

.luma-card__title { font-size: 1.22rem; margin-bottom: 0.5rem; }
.luma-card__desc { color: var(--muted); font-size: 0.95rem; flex: 1; margin-bottom: 0.8rem; }
.luma-card__desc:empty { display: none; }

.luma-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}
.luma-card__meta span:empty { display: none; }

/* ------- Video embeds (fixed platform snippets — style only) ------- */

.luma-video {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--primary-deep);
}
.luma-card .luma-video,
.luma-card .luma-video img,
.luma-card .luma-video video,
.luma-card .luma-video iframe { border-radius: 0; }

.luma-video img,
.luma-video video,
.luma-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
}

.luma-video--youtube { cursor: pointer; }
.luma-video--youtube:hover .luma-video__play,
.luma-video--youtube:focus-visible .luma-video__play { background: var(--accent); }

.luma-video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(46, 36, 64, 0.85);
  border: 2px solid var(--accent);
  transition: background-color 0.2s;
}
.luma-video__play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-38%, -50%);
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #fff;
}
.luma-video--youtube:hover .luma-video__play::after,
.luma-video--youtube:focus-visible .luma-video__play::after {
  border-left-color: var(--primary-deep);
}

.luma-video__cta {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--primary-deep);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  box-shadow: var(--shadow);
  white-space: nowrap;
}
.luma-video__cta:hover { background: #d8a066; color: var(--primary-deep); }

/* Person intro video (between luma:person-video markers on team.html) */
.person-card .luma-video { margin: 0 0 1rem; border-radius: 10px; }

/* ------- Testimonials ------- */

.luma-card--testimonial { padding: 1.8rem 1.7rem; }
.luma-card--testimonial .luma-card__media { margin: -0.2rem 0 1.1rem; }
.luma-card--testimonial .luma-card__media:empty { display: none; }

.luma-testimonial__pull {
  font-family: var(--serif);
  font-size: 1.22rem;
  font-style: italic;
  line-height: 1.4;
  color: var(--primary);
  margin: 0 0 0.8rem;
}
.luma-testimonial__pull:empty { display: none; }

.luma-rating-row { margin: 0 0 0.8rem; line-height: 1; }
.luma-rating-row:empty { display: none; }
.luma-rating {
  color: #96610F; /* 5.2:1 on white — AA for the star glyphs */
  font-size: 1.05rem;
  letter-spacing: 0.12em;
}

.luma-testimonial__quote {
  margin: 0 0 0.9rem;
  padding: 0 0 0 1.1rem;
  border-left: 3px solid var(--accent);
  color: var(--text);
}
.luma-testimonial__quote p { margin: 0; font-size: 0.99rem; }

.luma-testimonial__summary {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 0.9rem;
}
.luma-testimonial__summary:empty { display: none; }

.luma-testimonial__foot {
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 0.9rem;
  font-size: 0.87rem;
  color: var(--muted);
}
.luma-testimonial__foot span:empty { display: none; }
.luma-testimonial__author { font-weight: 700; color: var(--primary); }

.luma-verified {
  display: inline-block;
  background: var(--accent-soft);
  color: #6B4A17; /* AA on the soft gold tint */
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
}

/* ------- Disclaimer note ------- */

.luma-disclaimer {
  max-width: 44rem;
  margin: 2.6rem auto 0;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}
.luma-disclaimer:empty { display: none; }

/* ------- Share page form ------- */

.luma-share-layout { max-width: 44rem; margin: 0 auto; }

.luma-rating-input {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0.9rem 1rem 1rem;
  margin: 0 0 1.2rem;
}
.luma-rating-input legend {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--primary);
  padding: 0 0.3rem;
}
.luma-rating-input .luma-rating-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  margin-top: 0.3rem;
}
.luma-rating-input label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  margin: 0;
}
.luma-rating-input input[type="radio"] {
  width: auto;
  accent-color: var(--primary);
}

.luma-consent {
  display: flex !important;
  gap: 0.6rem;
  align-items: flex-start;
  font-weight: 400 !important;
  font-size: 0.92rem;
  color: var(--text) !important;
  margin: 0 0 1.2rem;
}
.luma-consent input[type="checkbox"] {
  width: auto;
  margin-top: 0.25rem;
  accent-color: var(--primary);
  flex: none;
}

.luma-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.luma-declined {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

/* Hide the Google review button when the firm has no review link. */
.luma-google-btn[href=""] { display: none; }
