/* ═══════════════════════════════════════════════════════
   INSIGHTS PAGE — Specific Styles
   ═══════════════════════════════════════════════════════ */

/* ── Screen-reader-only page heading (visual design has no H1) ── */
.ins-sr-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Filter Pills ─────────────────────────────────── */
.insights-filters {
  padding-top: clamp(110px, 10.66vw, 123px);
  padding-bottom: clamp(1.5rem, 2.46vw, 1.845rem);
}

.insights-filters__tabs {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.insights-filters__pill {
  font-family: 'Montserrat', var(--font-sans);
  /* 10 Sept review: filter pills "a lot smaller" (were 1.15rem 2.25rem). */
  font-size: 0.86rem;   /* was 0.82rem; 16 Sept responsive pass: 12px floor */
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.3;
  padding: 0.6rem 1.2rem;
  border-radius: 100px;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0);
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.3s ease;
}

.insights-filters__pill:hover {
  border-color: var(--color-dark);
  color: var(--color-dark);
}

.insights-filters__pill--active,
.insights-filters__pill--active:hover {
  background: var(--color-dark);
  border-color: var(--color-copper);
  color: #fff;
}

/* ── Articles Grid ────────────────────────────────── */
.insights-grid-section {
  padding-top: clamp(1.5rem, 2.46vw, 1.64rem);
}

/* On Webflow the cards come from a CMS Collection List, which inserts .w-dyn-list and
   .w-dyn-items between the grid and the cards, so the grid has to be declared on the items
   wrapper too. The hand-coded page has the cards as direct children. */
.insights-grid,
.insights-grid .w-dyn-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 77px clamp(1.5rem, 2.46vw, 1.64rem);   /* mockup row gap measured at 77px */
}

.insights-grid > .w-dyn-list {
  grid-column: 1 / -1;
}

.insight-card {
  display: block;
  transition: opacity 0.4s ease;
}

.insight-card.hidden {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  visibility: hidden;
}

.insight-card__img {
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 377 / 394;        /* measured off the mockup */
  margin-bottom: 0.5rem;
}

.insight-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.insight-card:hover .insight-card__img img {
  transform: scale(1.05);
}
.insight-card__kicker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.86rem;            /* was 0.7175rem; 16 Sept responsive pass: 12px floor */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text);
  margin-bottom: 0.4rem;
}

.insight-card__bar {
  display: inline-block;
  width: 3px;
  height: 14px;
  border-radius: 1px;
}

.insight-card__bar--article {
  background: #4A4FE0;
}

.insight-card__bar--news {
  background: #4CAF6E;
}

.insight-card__bar--guide {
  background: #E08A3C;
}

/* CMS-driven cards on Webflow have no .insight-card__bar element, so draw
   the colour title tag from CSS (10 Sept review: "Add the colour title
   tag"). Article is the default; the two rules below follow the Type the
   page script copies onto data-category. Hand-coded cards with a real bar
   are skipped. */
.insight-card__kicker:not(:has(.insight-card__bar))::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 14px;
  border-radius: 1px;
  flex-shrink: 0;
  background: #4A4FE0;
}

.insight-card[data-category="news"] .insight-card__kicker:not(:has(.insight-card__bar))::before {
  background: #4CAF6E;
}

.insight-card[data-category="guide"] .insight-card__kicker:not(:has(.insight-card__bar))::before {
  background: #E08A3C;
}

.insight-card__title {
  font-family: var(--font-serif);
  font-size: 1.0742rem;              /* 21px — mockup wraps this title to 2 lines, not 3 */
  font-weight: 700;
  line-height: 1.25;              /* was 1.38; 10 Sept review: less line spacing */
  color: var(--color-text);
  transition: color 0.3s ease;
}

.insight-card:hover .insight-card__title {
  color: var(--color-copper);
}

/* ── CTA (shared pattern, page-scoped copy) ───────── */
.wp-cta {
  background: var(--color-dark);
  color: #fff;
}

.wp-cta__inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.wp-cta__heading {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 2.7306vw, 3.28rem);
  font-weight: 600;
  line-height: 1.08;
  margin-bottom: 1.5rem;
}

.wp-cta__text {
  font-size: 1.0496rem;
  line-height: 1.5;
  color: var(--color-text-muted-on-dark);
  margin-bottom: 2.5rem;
}

.wp-cta .btn {
  background: var(--color-copper);
  color: #fff;
  border-color: var(--color-copper);
}

.wp-cta .btn:hover {
  background: #fff;
  color: var(--color-dark);
  border-color: #fff;
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 1024px) {
  .insights-grid,
  .insights-grid .w-dyn-items {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .insights-filters__tabs {
    gap: 0.625rem;
  }

  .insights-filters__pill {
    padding: 0.625rem 1.125rem;
    font-size: 0.86rem;   /* was 0.615rem; 16 Sept responsive pass: 12px floor */
  }

  .insights-grid,
  .insights-grid .w-dyn-items {
    grid-template-columns: 1fr;
  }
}

/* Insights index runs to the wider grid the mockup uses: cards from x83
   to x1836 on the 1920 canvas with a 90px gutter. */
.insights-grid-section > .container,
.insights-filters > .container {
  max-width: none;
  padding: 0 clamp(20px, 3.5014vw, 67.24px);
}

.insights-grid,
.insights-grid .w-dyn-items { gap: clamp(2rem, 3.854vw, 73.8px) clamp(1.5rem, 3.854vw, 73.8px); }

/* 25 Sept: the filter pills were 35px tall on a phone, under the 44px
   minimum for a comfortable touch target. */
@media (max-width: 768px) {
  .insights-filters__pill {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}
