/* PAiCore Showcase. Everything is scoped under .pcs and driven by variables. */
.pcs {
  --pcs-accent: #d6787d;
  --pcs-brick: #7d2f33;
  --pcs-fg: #f5eaea;
  --pcs-card: rgba(20, 10, 12, .55);
  --pcs-line: rgba(255, 255, 255, .12);
  --pcs-radius: 20px;
  --pcs-muted: #9b8b8a;
  --pcs-max: 1460px;
  --pcs-gutter: 48px;
  --pcs-name-size: 20px;
  --pcs-role-size: 11.5px;
  --pcs-bio-size: 14px;
  --pcs-link-size: 13px;
  font-family: 'Poppins', system-ui, sans-serif;
  color: var(--pcs-fg);
  box-sizing: border-box;
  width: 100%;
}
/* Fallback width. ":where" has zero weight, so the theme's own .container wins when it defines a width. */
:where(.pcs-wrap) { width: min(var(--pcs-max, 1460px), 100% - var(--pcs-gutter, 48px)); margin-inline: auto; box-sizing: border-box; }
.pcs *, .pcs *::before, .pcs *::after { box-sizing: inherit; }

/* ---------- Team ---------- */
/* Selectors start with ".pcs" twice-qualified so Elementor's global image reset cannot override them. */
.pcs-grid { display: grid; grid-template-columns: repeat(var(--pcs-cols, 4), minmax(0, 1fr)); gap: 28px; margin: 0 0 40px; }
.pcs .pcs-card {
  background: var(--pcs-card); border: 1px solid var(--pcs-line); border-radius: 28px;
  padding: 32px 26px 28px; text-align: center; display: flex; flex-direction: column; align-items: center;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.pcs .pcs-card:hover { transform: translateY(-4px); border-color: var(--pcs-accent); box-shadow: 0 12px 30px rgba(0, 0, 0, .35); }
.pcs .pcs-photo { position: relative; width: 116px; height: 116px; margin: 0 0 18px; flex: none; }
.pcs .pcs-card--sm .pcs-photo { width: 96px; height: 96px; }
.pcs .pcs-photo img.pcs-headshot,
.pcs .pcs-photo .pcs-initials {
  display: block; width: 100%; height: 100%; max-width: none; aspect-ratio: 1 / 1;
  border-radius: 50%; object-fit: cover; border: 3px solid var(--pcs-brick); box-shadow: none; background: #fff;
}
.pcs .pcs-photo .pcs-initials { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--pcs-brick), #3a1519); color: var(--pcs-fg); font-size: 32px; font-weight: 600; letter-spacing: 1px; }
.pcs .pcs-card--sm .pcs-initials { font-size: 26px; }
.pcs .pcs-photo img.pcs-flag {
  position: absolute; right: -6px; bottom: 2px; width: 30px; height: 21px; max-width: none;
  border-radius: 6px; border: 2px solid #1b0d0f; object-fit: cover; background: #1b0d0f; box-shadow: none;
}
.pcs .pcs-name { margin: 0 0 6px; font-size: var(--pcs-name-size); font-weight: 600; color: var(--pcs-fg); line-height: 1.25; }
.pcs .pcs-card--sm .pcs-name { font-size: calc(var(--pcs-name-size) - 2px); }
.pcs .pcs-role { margin: 0 0 14px; font-size: var(--pcs-role-size); color: var(--pcs-accent); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.pcs .pcs-bio { margin: 0 0 18px; font-size: var(--pcs-bio-size); line-height: 1.75; color: var(--pcs-muted); }
.pcs .pcs-link { margin-top: auto; font-size: var(--pcs-link-size); color: var(--pcs-accent); text-decoration: none; border-bottom: 1px solid transparent; }
.pcs .pcs-link:hover, .pcs .pcs-link:focus-visible { border-bottom-color: var(--pcs-accent); }

.pcs .pcs-tabs {
  /* Equal-width buttons: every column is as wide as the widest label, and the row is centred. */
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 16px;
  width: max-content; max-width: 100%; margin: 0 auto 24px;
}
.pcs .pcs-tab {
  appearance: none; -webkit-appearance: none; cursor: pointer; font: inherit; color: var(--pcs-fg); background: var(--pcs-card);
  border: 1px solid var(--pcs-line); border-radius: 14px; padding: 22px 36px; margin: 0; text-transform: none; letter-spacing: normal;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; box-shadow: none;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.pcs .pcs-tab span { font-weight: 600; font-size: 18px; line-height: 1.25; white-space: nowrap; }
.pcs .pcs-tab small { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--pcs-muted); }
.pcs .pcs-tab:hover, .pcs .pcs-tab:focus-visible { border-color: var(--pcs-accent); background: var(--pcs-card); color: var(--pcs-fg); outline: none; transform: translateY(-2px); }
.pcs .pcs-tab[aria-expanded="true"] { background: var(--pcs-brick); border-color: var(--pcs-accent); color: var(--pcs-fg); }
.pcs .pcs-tab[aria-expanded="true"] small { color: rgba(245, 234, 234, .8); }

.pcs-panel { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .4s ease, visibility 0s linear .4s; }
.pcs-panel.is-open { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .4s ease, visibility 0s; }
.pcs-panel-inner { overflow: hidden; min-height: 0; }
.pcs-members {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch;
  gap: 18px; padding: 18px 0 8px;
}
.pcs-members > .pcs-card { flex: 0 1 calc((100% - 90px) / 6); }

/* ---------- Clients ---------- */
.pcs-logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--pcs-cols, 6), minmax(0, 1fr)); gap: 16px; }
.pcs-logo { margin: 0; }
.pcs-logo-link, .pcs-logo > .pcs-logo-img, .pcs-logo > .pcs-logo-text {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  height: 100%; min-height: 96px; padding: 16px; border-radius: 14px; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.pcs-logos--light .pcs-logo-link, .pcs-logos--light .pcs-logo > .pcs-logo-img, .pcs-logos--light .pcs-logo > .pcs-logo-text { background: #fff; color: #2b1114; }
.pcs-logos--dark .pcs-logo-link, .pcs-logos--dark .pcs-logo > .pcs-logo-img, .pcs-logos--dark .pcs-logo > .pcs-logo-text { background: var(--pcs-card); border: 1px solid var(--pcs-line); color: var(--pcs-fg); }
.pcs-logo-link:hover, .pcs-logo-link:focus-visible { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, .3); outline: none; }
.pcs img.pcs-logo-img { max-width: 100%; max-height: 64px; width: auto; height: auto; object-fit: contain; border-radius: 0; }
.pcs-logo-text { font-weight: 600; text-align: center; }
.pcs-logo-name { font-size: 12px; text-align: center; }

/* ---------- Testimonials ---------- */
.pcs-tgrid { display: grid; grid-template-columns: repeat(var(--pcs-cols, 3), minmax(0, 1fr)); gap: 22px; }
.pcs-testimonial {
  margin: 0; background: var(--pcs-card); border: 1px solid var(--pcs-line); border-radius: var(--pcs-radius);
  padding: 26px 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
}
.pcs-quote { margin: 0; padding: 0; border: 0; position: relative; }
.pcs-quote::before { content: "\201C"; display: block; font-size: 54px; line-height: .6; color: var(--pcs-accent); margin-bottom: 8px; }
.pcs-quote p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--pcs-fg); }
.pcs-by { display: flex; align-items: center; gap: 12px; }
.pcs img.pcs-by-img { width: 48px; height: 48px; max-width: none; border-radius: 50%; object-fit: cover; border: 2px solid var(--pcs-brick); flex: none; box-shadow: none; }
.pcs-by-text { display: flex; flex-direction: column; font-size: 13px; line-height: 1.4; }
.pcs-by-name { font-weight: 600; }
.pcs-by-role { opacity: .75; }
.pcs-by-company { color: var(--pcs-accent); font-weight: 500; }

.pcs-carousel-wrap { position: relative; }
.pcs-carousel { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px; }
.pcs-carousel::-webkit-scrollbar { display: none; }
.pcs-carousel .pcs-testimonial { flex: 0 0 calc((100% - (var(--pcs-cols, 3) - 1) * 22px) / var(--pcs-cols, 3)); scroll-snap-align: start; }
.pcs-car-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--pcs-line); background: var(--pcs-brick); color: #fff; font-size: 24px; line-height: 1; cursor: pointer;
}
.pcs-car-btn:hover, .pcs-car-btn:focus-visible { background: var(--pcs-accent); outline: none; }
.pcs-car-prev { left: -12px; }
.pcs-car-next { right: -12px; }

/* ---------- Hidden lists (opened from a button elsewhere on the page) ---------- */
.pcs-reveal { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .45s ease, visibility 0s linear .45s; }
.pcs-reveal.is-open { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .45s ease, visibility 0s; }
.pcs-reveal-inner { overflow: hidden; min-height: 0; }
.pcs .pcs-reveal-head { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; padding: 36px 0 22px; }
.pcs .pcs-reveal-title { margin: 0; font-size: 22px; font-weight: 600; color: var(--pcs-fg); }
.pcs .pcs-reveal-actions { display: flex; align-items: center; gap: 22px; }
.pcs .pcs-reveal-more { font-size: 14px; color: var(--pcs-accent); text-decoration: none; border-bottom: 1px solid transparent; }
.pcs .pcs-reveal-more:hover, .pcs .pcs-reveal-more:focus-visible { border-bottom-color: var(--pcs-accent); }
.pcs .pcs-reveal-close {
  appearance: none; -webkit-appearance: none; cursor: pointer; font: inherit; font-size: 13px; color: var(--pcs-muted);
  background: transparent; border: 1px solid var(--pcs-line); border-radius: 10px; padding: 8px 16px; text-transform: none; letter-spacing: normal;
}
.pcs .pcs-reveal-close:hover, .pcs .pcs-reveal-close:focus-visible { color: var(--pcs-fg); border-color: var(--pcs-accent); background: transparent; outline: none; }
.pcs-reveal .pcs-clients { padding-bottom: 8px; }
/* Optional: highlight the theme card whose list is open (cards carry data-pcs-card). */
[data-pcs-card].is-active { border-color: #d6787d !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .pcs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pcs-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pcs-tgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pcs-members > .pcs-card { flex-basis: calc((100% - 54px) / 4); }
  .pcs-carousel .pcs-testimonial { flex-basis: calc((100% - 22px) / 2); }
}
@media (max-width: 960px) {
  .pcs .pcs-tabs { grid-auto-flow: row; grid-auto-columns: auto; width: 100%; }
  .pcs .pcs-tab span { white-space: normal; }
}
@media (max-width: 640px) {
  .pcs-grid, .pcs-tgrid { grid-template-columns: 1fr; }
  .pcs-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pcs-members > .pcs-card { flex-basis: calc((100% - 18px) / 2); }
  .pcs-carousel .pcs-testimonial { flex-basis: 100%; }
  .pcs-car-prev { left: 0; }
  .pcs-car-next { right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pcs *, .pcs-panel { transition: none !important; }
}
