/* insights.css - Insights and Article page styles
 * Owns: insights layout, article cards, sidebar, article body, article close-CTA
 * Does NOT own: nav, footer, buttons, tokens (in styles.css)
 */

/* ── Page header ─────────────────────────────────────────── */
.insights-page-header {
  background: var(--bg-deep);
  padding: 72px 0 56px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}

.insights-header-left {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

.insights-page-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 18px;
  letter-spacing: -0.6px;
}

.insights-page-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 520px;
  line-height: 1.8;
}

/* ── Content section ─────────────────────────────────────── */
.insights-content {
  padding: 64px 0 100px;
}

.insights-content-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 60px;
  align-items: start;
}

/* ── 3-column article card grid ─────────────────────────── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.article-card {
  background: var(--bg);
  border: 1.5px solid rgba(0,0,0,0.09);
  border-radius: 14px;
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.article-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.article-card:hover {
  border-color: rgba(139,111,71,0.25);
  box-shadow: 0 8px 32px rgba(139,111,71,0.1);
  transform: translateY(-3px);
}

.article-card:hover::before {
  transform: scaleX(1);
}

.article-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.article-tag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 3px 9px;
  border-radius: 4px;
}

.article-date {
  font-size: 0.82rem;
  color: var(--fg-muted);
}

.article-card-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.35;
  color: var(--fg);
  margin-bottom: 14px;
  letter-spacing: -0.2px;
  flex: 1;
}

.article-card-excerpt {
  color: var(--fg-muted);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
}

.article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(0,0,0,0.07);
  padding-top: 16px;
  margin-top: auto;
}

.article-card-byline {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.article-author {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fg);
}

.article-divider {
  color: var(--fg-muted);
  font-size: 0.8rem;
}

.article-card-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: color 0.15s, transform 0.15s;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

/* Stretch the link's hit area to cover the whole card, so clicking
   anywhere on the card (not just the "Read more" text) opens the article. */
.article-card-link::after {
  content: '';
  position: absolute;
  inset: 0;
}

.article-card-link:hover {
  color: var(--accent-light);
  transform: translateX(3px);
}

/* ── Insights sidebar ────────────────────────────────────── */
.insights-sidebar {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-card {
  background: var(--bg-deep);
  border-radius: 12px;
  padding: 36px 28px;
  transition: all 0.22s ease;
}

.sidebar-card:hover {
  transform: translateY(-2px);
  background: #f6f0e8;
}

.sidebar-card-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.sidebar-card h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--fg);
  margin-bottom: 10px;
  line-height: 1.25;
  letter-spacing: -0.2px;
}

.sidebar-card-desc {
  font-size: 0.88rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.inline-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.inline-link:hover {
  color: var(--accent-light);
}

/* Notify form */
.notify-form .form-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.notify-form input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  font-family: var(--body);
  font-size: 0.9rem;
  border: 1.5px solid rgba(0,0,0,0.15);
  border-radius: 6px;
  background: var(--bg);
  color: var(--fg);
  outline: none;
  transition: border-color 0.15s;
}

.notify-form input[type="email"]:focus {
  border-color: var(--accent);
}

.notify-form input[type="email"]::placeholder {
  color: #a0a0a0;
}

.notify-form .btn-sm {
  white-space: nowrap;
}

/* Notify thank-you */
.notify-thanks {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 4px 0;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.thanks-check {
  width: 26px;
  height: 26px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.thanks-msg {
  font-size: 0.9rem;
  color: var(--fg);
  line-height: 1.6;
}

/* Topics list */
.topics-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.topics-list li {
  font-size: 0.88rem;
  color: var(--fg-muted);
  padding-left: 16px;
  position: relative;
}

.topics-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-light);
  opacity: 0.65;
}

/* ── Article page ────────────────────────────────────────── */
.article-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 100px;
}

.article-breadcrumb {
  margin-bottom: 48px;
}

.breadcrumb-back {
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.12s;
  letter-spacing: 0.1px;
}

.breadcrumb-back:hover { color: var(--accent); }

.article-body .art-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 4px 10px;
  border-radius: 4px;
  margin-right: 12px;
}

.article-body .art-date {
  font-size: 0.85rem;
  color: var(--fg-muted);
}

.article-body .art-meta {
  margin-bottom: 24px;
}

.article-body .byline-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.article-body h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 28px;
  letter-spacing: -0.6px;
}

.article-body .art-intro {
  font-size: 1.15rem;
  color: var(--fg-muted);
  line-height: 1.85;
  margin-bottom: 48px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  padding-bottom: 40px;
}

.article-body h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.55rem;
  color: var(--fg);
  margin: 44px 0 18px;
  letter-spacing: -0.4px;
}

.article-body p {
  color: var(--fg-muted);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 20px;
}

.article-body strong {
  color: var(--fg);
  font-weight: 600;
}

.article-body ul {
  margin: 0 0 20px 20px;
  color: var(--fg-muted);
}

.article-body li {
  line-height: 1.8;
  margin-bottom: 8px;
}

/* Article inline email capture CTA */
.article-email-cta {
  margin-top: 72px;
  padding: 60px 48px;
  background: var(--accent);
  border-radius: 16px;
  color: #fff;
}

.article-email-cta-inner {
  max-width: 520px;
}

.article-email-cta-label {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 14px;
  color: #fff;
}

.article-email-cta-inner h2 {
  font-family: var(--display);
  font-weight: 900;
  font-size: 2rem;
  line-height: 1.1;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  color: #fff;
}

.article-email-cta-desc {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 28px;
  opacity: 0.85;
  color: #fff !important;
}

.article-email-form-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.article-email-form-row input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  font-family: var(--body);
  font-size: 0.95rem;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  outline: none;
  transition: border-color 0.15s;
}

.article-email-form-row input[type="email"]::placeholder {
  color: rgba(255,255,255,0.5);
}

.article-email-form-row input[type="email"]:focus {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.18);
}

.article-email-form-row .btn-primary {
  background: #fff;
  color: var(--accent);
  border-color: #fff;
  white-space: nowrap;
}

.article-email-form-row .btn-primary:hover {
  background: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.9);
}

.article-email-form-row .btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.article-email-error {
  font-size: 0.85rem;
  margin-top: 10px;
  color: #ffd4d4;
  display: none;
}

.article-email-thanks {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 4px 0;
  animation: fadeIn 0.3s ease;
}

.article-email-thanks .thanks-check {
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
  color: #fff;
}

.article-email-thanks .thanks-msg {
  font-size: 0.97rem;
  line-height: 1.6;
  color: #fff;
}

/* Lead magnet CTA */
.lead-magnet-cta {
  margin-top: 48px;
  padding: 48px 48px 52px;
  background: var(--bg-deep);
  border-radius: 16px;
  border: 1.5px solid rgba(45, 80, 22, 0.18);
}

.lm-cta-inner {
  max-width: 540px;
}

.lm-cta-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.lm-cta-inner h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.55rem;
  color: var(--fg);
  margin-bottom: 14px;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.lm-cta-inner > p {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.75;
  margin-bottom: 24px;
}

.lm-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lm-form input[type="email"] {
  padding: 12px 16px;
  font-family: var(--body);
  font-size: 0.95rem;
  border: 1.5px solid rgba(0,0,0,0.18);
  border-radius: 8px;
  background: var(--bg);
  color: var(--fg);
  outline: none;
  transition: border-color 0.15s;
}

.lm-form input[type="email"]:focus {
  border-color: var(--accent);
}

.lm-form input[type="email"]::placeholder {
  color: #a0a0a0;
}

.lm-form .btn-sm {
  align-self: flex-start;
}

.lm-error {
  font-size: 0.85rem;
  color: #c0392b;
}

.lm-thanks {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: fadeIn 0.3s ease;
}

.lm-thanks .thanks-check {
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.lm-thanks .thanks-msg {
  font-size: 0.95rem;
  color: var(--fg);
  line-height: 1.6;
}

/* Article close-CTA */
.article-close-cta {
  margin-top: 72px;
  padding: 60px 48px;
  background: var(--accent);
  border-radius: 16px;
  color: #fff;
}

.close-cta-inner {
  max-width: 480px;
}

.close-cta-label {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 14px;
}

.close-cta-inner h2 {
  font-family: var(--display);
  font-weight: 900;
  font-size: 2.2rem;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.close-cta-desc {
  opacity: 0.85;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 28px;
  color: #fff !important;
}

.article-close-cta .btn-primary {
  background: #fff;
  color: var(--accent);
  border-color: #fff;
}

.article-close-cta .btn-primary:hover {
  background: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.9);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1000px) {
  .insights-content-inner {
    grid-template-columns: 1fr;
  }

  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .insights-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }

  .insights-sidebar {
    grid-template-columns: 1fr;
  }

  .article-card {
    padding: 24px 20px 20px;
  }

  .article-close-cta {
    padding: 40px 28px;
  }

  .article-email-cta {
    padding: 40px 28px;
  }

  .notify-form .form-row {
    flex-direction: column;
  }

  .notify-form .btn-sm {
    width: 100%;
  }

  .lm-form .btn-sm {
    width: 100%;
  }
}