/* ═══════════════════════════════════════════════════════════
   INSIGHTS — index grid + article layout + newsletter signup
   ═══════════════════════════════════════════════════════════ */

/* ─── HERO (shared by index + articles) ─── */
.insights-hero,
.article-hero {
  position: relative;
  padding: 9rem 1.25rem 3rem;
  background:
    linear-gradient(180deg, rgba(11,43,74,0.94) 0%, rgba(11,43,74,0.88) 55%, var(--brand-navy) 100%),
    url('../img/hero/hero-main.webp') center/cover no-repeat;
  text-align: center;
}
.insights-hero .eyebrow,
.article-hero .eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-gold);
  padding: 0.35rem 0.95rem;
  border-radius: 100px;
  background: rgba(231,180,44,0.1);
  border: 1px solid rgba(231,180,44,0.3);
  margin-bottom: 1.5rem;
}
.insights-hero h1,
.article-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.insights-hero h1 .accent,
.article-hero h1 .accent {
  color: var(--brand-green);
}
.insights-hero p,
.article-hero p {
  color: var(--text-muted);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto;
}

/* Article hero meta */
.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.article-meta .author {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.article-meta .author i {
  color: var(--brand-green);
}
.article-meta .divider {
  opacity: 0.4;
}
.article-meta .category {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: rgba(46,175,42,0.12);
  border: 1px solid rgba(46,175,42,0.28);
  border-radius: 100px;
  color: var(--brand-green);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ─── INSIGHTS INDEX GRID ─── */
.insights-list {
  padding: 4rem 1.25rem;
  background: var(--brand-navy);
}
.insights-list-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.insights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.insight-card {
  display: block;
  background: var(--card-bg);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.insight-card:hover {
  transform: translateY(-4px);
  border-color: rgba(46,175,42,0.35);
}

.insight-card-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.insight-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(11,43,74,0.85) 100%);
}

.insight-card-body {
  padding: 1.5rem 1.5rem 1.75rem;
}
.insight-card-category {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-gold);
  margin-bottom: 0.75rem;
}
.insight-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
  color: var(--text-light);
}
.insight-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.insight-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-green);
  font-family: var(--font-heading);
}
.insight-card:hover .insight-card-cta {
  gap: 0.75rem;
}
.insight-card-cta i {
  transition: transform 0.2s ease;
}
.insight-card:hover .insight-card-cta i {
  transform: translateX(3px);
}

/* ─── ARTICLE BODY ─── */
.article-body {
  padding: 4rem 1.25rem;
  background: var(--brand-navy);
}
.article-body-inner {
  max-width: 760px;
  margin: 0 auto;
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.8;
}

.article-body-inner > p:first-of-type {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.article-body-inner p {
  margin-bottom: 1.5rem;
  color: rgba(232, 237, 245, 0.9);
}

.article-body-inner h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  color: var(--text-light);
}

.article-body-inner h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--brand-green);
}

.article-body-inner ul,
.article-body-inner ol {
  margin: 1.25rem 0 1.5rem 1.5rem;
}
.article-body-inner li {
  margin-bottom: 0.75rem;
  color: rgba(232, 237, 245, 0.9);
  line-height: 1.7;
}
.article-body-inner ul li::marker {
  color: var(--brand-green);
}
.article-body-inner ol li::marker {
  color: var(--brand-gold);
  font-weight: 700;
}

.article-body-inner strong {
  color: var(--text-light);
  font-weight: 700;
}

.article-body-inner blockquote {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  border-left: 3px solid var(--brand-gold);
  background: rgba(231,180,44,0.06);
  border-radius: 0 12px 12px 0;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-light);
  font-style: italic;
}

.article-body-inner a {
  color: var(--brand-green);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-body-inner a:hover {
  color: var(--brand-green-light);
}

/* Article end divider */
.article-end {
  max-width: 760px;
  margin: 3rem auto 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.article-end::before,
.article-end::after {
  content: '';
  height: 1px;
  background: rgba(255,255,255,0.15);
  flex: 1;
  max-width: 80px;
}

/* ─── NEWSLETTER SIGNUP ─── */
.newsletter {
  padding: 4rem 1.25rem;
  background: var(--brand-navy-deep);
}
.newsletter-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.newsletter h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.newsletter h2 .accent { color: var(--brand-green); }
.newsletter > .newsletter-inner > p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
}
.newsletter-form-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.newsletter-form input[type="email"] {
  flex: 1;
  padding: 1rem 1.15rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-light);
  background: rgba(255,255,255,0.035);
  border: 1.5px solid rgba(255,255,255,0.09);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.newsletter-form input[type="email"]::placeholder {
  color: rgba(184,196,217,0.42);
}
.newsletter-form input[type="email"]:hover {
  border-color: rgba(255,255,255,0.18);
}
.newsletter-form input[type="email"]:focus {
  border-color: var(--brand-green);
  background: rgba(46,175,42,0.045);
  box-shadow: 0 0 0 4px rgba(46,175,42,0.1);
}
.newsletter-form button {
  padding: 1rem 1.5rem;
  background: var(--brand-green);
  color: var(--text-light);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.newsletter-form button:hover {
  background: var(--brand-green-dark);
}
.newsletter-form button:active {
  transform: scale(0.98);
}
.newsletter-disclaimer {
  font-size: 0.78rem;
  color: rgba(184,196,217,0.65);
  margin-top: 1rem;
  line-height: 1.55;
}

/* ─── RELATED ARTICLES ─── */
.related-articles {
  padding: 4rem 1.25rem;
  background: var(--brand-navy);
}
.related-articles-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.related-articles h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  text-align: center;
  margin-bottom: 2.5rem;
}
.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

/* ─── RESPONSIVE ─── */
@media (min-width: 640px) {
  .insights-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .newsletter-form-row {
    flex-direction: row;
    align-items: stretch;
  }
}

@media (min-width: 900px) {
  .insights-hero,
  .article-hero { padding: 11rem 2rem 4rem; }
  .insights-list { padding: 6rem 2rem; }
  .article-body { padding: 5rem 2rem; }
  .newsletter { padding: 5rem 2rem; }
  .related-articles { padding: 5rem 2rem; }
}

/* ═══════════════════════════════════════════════════════════
   CATEGORY FILTER + CONTEXT BANNER
   ═══════════════════════════════════════════════════════════ */

.insights-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: 0 auto 3rem;
  max-width: 900px;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.filter-pill:hover {
  border-color: rgba(255,255,255,0.25);
  color: var(--text-light);
}
.filter-pill.is-active {
  background: rgba(46,175,42,0.15);
  border-color: var(--brand-green);
  color: var(--brand-green);
}
.filter-pill .count {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  background: rgba(255,255,255,0.08);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
}
.filter-pill.is-active .count {
  background: rgba(46,175,42,0.25);
  color: var(--brand-green);
}

/* Hidden cards when filter is applied */
.insight-card.is-hidden {
  display: none;
}

/* Context banner (arriving from a service page) */
.context-banner {
  max-width: 900px;
  margin: 0 auto 2.5rem;
  padding: 1rem 1.35rem;
  background: rgba(46,175,42,0.08);
  border: 1px solid rgba(46,175,42,0.28);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
}
.context-banner .context-text {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-light);
}
.context-banner .context-text i {
  color: var(--brand-green);
  font-size: 1.05rem;
}
.context-banner .context-action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.95rem;
  background: transparent;
  border: 1.5px solid rgba(46,175,42,0.4);
  border-radius: 100px;
  color: var(--brand-green);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.context-banner .context-action:hover {
  background: rgba(46,175,42,0.15);
  border-color: var(--brand-green);
}
.context-banner.is-hidden {
  display: none;
}

@media (min-width: 900px) {
  .insights-filter { margin-bottom: 3.5rem; }
}
