/* ============================================================
   CAPITAL BUILD — Insights
   Clean editorial hub
   ============================================================ */

/* ---- Hero ---- */
.insights-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(360px, 50vh, 480px);
  padding:
    calc(var(--header-height, 80px) + var(--topbar-height, 42px) + 2.5rem)
    0
    3.5rem;
  background: var(--color-navy-dark, #060F1F);
  overflow: hidden;
}

.insights-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.insights-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.35;
  display: block;
}

.insights-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(6, 15, 31, 0.5) 0%,
    rgba(6, 15, 31, 0.85) 60%,
    #060F1F 100%
  );
  pointer-events: none;
}

.insights-hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.insights-hero__content {
  max-width: 38rem;
}

.insights-hero .breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.85rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 245, 240, 0.4);
}

.insights-hero .breadcrumbs a {
  color: rgba(247, 245, 240, 0.62);
  text-decoration: none;
  transition: color 0.2s ease;
}

.insights-hero .breadcrumbs a:hover {
  color: var(--color-gold, #C9A84C);
}

.insights-hero .breadcrumbs__sep {
  opacity: 0.45;
}

.insights-hero .breadcrumbs__current {
  color: var(--color-gold, #C9A84C);
}

.insights-hero__eyebrow {
  display: block;
  margin: 0 0 0.75rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold, #C9A84C);
}

.insights-hero__title {
  margin: 0 0 0.85rem;
  font-family: var(--font-heading, "DM Serif Display", serif);
  font-size: clamp(2.1rem, 4.5vw, 3.35rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-offwhite, #F7F5F0);
}

.insights-hero__text {
  margin: 0;
  max-width: 30rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: rgba(247, 245, 240, 0.68);
}

/* ---- Filters (scroll with page — NOT sticky) ---- */
.insights-filters {
  position: relative;
  top: auto;
  z-index: 1;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(11, 29, 58, 0.08);
  background: var(--color-offwhite, #F7F5F0);
}

.insights-filters__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

.insights-chip {
  padding: 0.45rem 1.1rem;
  border: 1px solid rgba(11, 29, 58, 0.12);
  border-radius: 999px;
  background: transparent;
  font-family: var(--font-body, Inter, sans-serif);
  font-size: 0.78125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-navy, #0B1D3A);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.insights-chip:hover {
  border-color: rgba(201, 168, 76, 0.55);
  color: #8a6d28;
}

.insights-chip.is-active {
  background: var(--color-navy, #0B1D3A);
  border-color: var(--color-navy, #0B1D3A);
  color: #F7F5F0;
}

.insights-chip:focus-visible {
  outline: 2px solid var(--color-gold, #C9A84C);
  outline-offset: 2px;
}

/* ---- Section & Grid ---- */
.insights-section {
  padding: 3.5rem 0 5.5rem;
  background: var(--color-offwhite, #F7F5F0);
}

.insights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .insights-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }
}

@media (min-width: 1150px) {
  .insights-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .insight-card--featured {
    grid-column: span 2;
  }

  .insight-card--featured .insight-card__media {
    aspect-ratio: 21 / 10;
  }

  .insight-card--featured .insight-card__title {
    font-size: clamp(1.4rem, 2vw, 1.75rem);
  }
}

/* ---- Cards ---- */
.insight-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: #FFFFFF;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(11, 29, 58, 0.08);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 20px -10px rgba(11, 29, 58, 0.05);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.insight-card:hover {
  border-color: rgba(201, 168, 76, 0.45);
  box-shadow: 0 16px 36px -15px rgba(11, 29, 58, 0.12);
  transform: translateY(-4px);
}

.insight-card.is-hidden {
  display: none !important;
}

.insight-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: #060F1F;
}

.insight-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0.92;
}

.insight-card:hover .insight-card__media img {
  transform: scale(1.04);
  opacity: 1;
}

.insight-card__tag {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  padding: 0.3rem 0.65rem;
  background: rgba(6, 15, 31, 0.85);
  backdrop-filter: blur(4px);
  color: #F7F5F0;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-left: 2px solid var(--color-gold, #C9A84C);
  border-radius: 0 4px 4px 0;
  z-index: 2;
}

.insight-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem;
  background-color: #FFFFFF;
}

.insight-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.65rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a7a2e;
}

.insight-card__meta time {
  position: relative;
  padding-left: 0.75rem;
  color: #8a95a5;
  font-weight: 500;
}

.insight-card__meta time::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(11, 29, 58, 0.25);
  transform: translateY(-50%);
}

.insight-card__title {
  margin: 0 0 0.65rem;
  font-family: var(--font-heading, "DM Serif Display", serif);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-navy, #0B1D3A);
  transition: color 0.2s ease;
}

.insight-card:hover .insight-card__title {
  color: #8a6d28;
}

.insight-card__excerpt {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #5c6b7e;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.insight-card__cta {
  display: none !important;
}

/* Empty */
.insights-empty {
  display: none;
  text-align: center;
  padding: 4rem 1rem;
  color: #5c6b7e;
  font-size: 0.95rem;
}

.insights-empty.is-visible {
  display: block;
}

.insights-empty[hidden] {
  display: none !important;
}

/* ---- Bottom CTA ---- */
.insights-cta {
  position: relative;
  padding: 4.5rem 0;
  background: var(--color-navy-dark, #060F1F);
  text-align: center;
}

.insights-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.35), transparent);
}

.insights-cta__box {
  max-width: 30rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.insights-cta__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-heading, "DM Serif Display", serif);
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
  font-weight: 400;
  line-height: 1.2;
  color: #F7F5F0;
}

.insights-cta__text {
  margin: 0 auto 1.75rem;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(247, 245, 240, 0.65);
}

.insights-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

@media (prefers-reduced-motion: reduce) {
  .insight-card,
  .insight-card__media img,
  .insights-chip {
    transition: none !important;
  }
  .insight-card:hover {
    transform: none;
  }
  .insight-card:hover .insight-card__media img {
    transform: none;
  }
}