/* ===== Blog page ===== */
/* Section rhythm: hero (dark) -> Featured (light) -> All Posts (dark) -> footer,
   matching the site's established black/light/black alternation. */

/* ----- Hero (dark, Grok-style two-column top-story) -----
   Load-triggered entrance reusing style.css's existing heroTextEntrance /
   heroSubtextEntrance keyframes, same mechanism as every other page hero
   on the site (not the scroll-triggered reveal-up system) -- date/heading/
   description/button staggered on the left, thumbnail fading in on the
   right alongside them. */

.blog-hero {
  background: var(--dark-bg);
}

.blog-hero #nav {
  padding: var(--space-2) var(--space-5);
}

/* PHONE PADDING. The rule above out-specifies the main nav's own phone steps in
   style-aqua.css (#nav alone), so without these this page kept 64px side padding at
   every width and scrolled sideways on phones: 43px at 320, 3px at 360 on /nl/. */
@media (max-width: 640px) {
  .blog-hero #nav {
    padding-left: var(--space-3);
    padding-right: var(--space-3);
  }
}

@media (max-width: 380px) {
  .blog-hero #nav {
    padding-left: var(--space-2);
    padding-right: var(--space-2);
  }
}

.blog-hero-inner {
  max-width: 1180px;
  margin: 48px auto 0;
  padding: 0 var(--space-3) var(--space-6);
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 56px;
  align-items: center;
}

.blog-hero-date {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: var(--space-2);
  opacity: 0;
  animation: heroTextEntrance 0.6s ease-out forwards;
}

.blog-hero-heading {
  font-family: 'Inter', sans-serif;
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: var(--text-on-dark);
  margin-bottom: var(--space-3);
  opacity: 0;
  animation: heroTextEntrance 0.6s ease-out forwards;
  animation-delay: 0.1s;
}

.blog-hero-desc {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
  max-width: 440px;
  margin-bottom: var(--space-4);
  opacity: 0;
  animation: heroSubtextEntrance 0.6s ease-out forwards;
  animation-delay: 0.25s;
}

.blog-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-button-asym);
  background: var(--cream-lightest, #f2ede4);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  opacity: 0;
  animation: heroTextEntrance 0.6s ease-out forwards;
  animation-delay: 0.4s;
}

.blog-hero-cta svg {
  flex-shrink: 0;
}

.blog-hero-visual {
  border-radius: var(--radius-card);
  overflow: hidden;
  height: 420px;
  opacity: 0;
  animation: heroTextEntrance 0.6s ease-out forwards;
  animation-delay: 0.15s;
}

.blog-thumb-hero {
  background:
    radial-gradient(at 15% 20%, #ffcaa3 0%, transparent 55%),
    radial-gradient(at 85% 15%, #ff9d6e 0%, transparent 55%),
    radial-gradient(at 50% 90%, #ffe4c9 0%, transparent 55%),
    #fdfcfb;
}

@media (max-width: 900px) {
  .blog-hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .blog-hero-visual {
    height: 280px;
    order: -1;
  }
}

/* ----- Featured (dark -- whole page is black, no light section) ----- */

.blog-featured-section {
  background: var(--dark-bg);
  padding: var(--space-6) var(--space-3);
}

.blog-featured-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.blog-featured-intro {
  max-width: 1180px;
  margin: 0 auto var(--space-4);
}

.blog-featured-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.blog-featured-item {
  display: block;
  text-decoration: none;
}

.blog-featured-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: opacity 0.3s var(--ease);
}

.blog-featured-item:hover .blog-featured-thumb {
  opacity: 0.85;
}

/* The post's featured image, filling its tinted box (hero visual or featured
   thumb). The box's tint stays underneath as the no-image fallback. */
.blog-thumb-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-featured-caption {
  margin-top: 14px;
}

.blog-featured-date {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 4px;
}

.blog-featured-title {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}

/* Pastel-mesh thumbnail backgrounds -- same radial-gradient-blob technique and
   exact color values as index.html's "One Platform, Every Client" feature
   cards (.feature-card-mesh-1..4 in style.css), reused rather than inventing
   new pastel pairings. */

.blog-thumb-green {
  background:
    radial-gradient(at 15% 20%, #d4f0dc 0%, transparent 55%),
    radial-gradient(at 85% 15%, #b8e8c8 0%, transparent 55%),
    radial-gradient(at 50% 90%, #e8f7ec 0%, transparent 55%),
    #fdfcfb;
}

.blog-thumb-peach {
  background:
    radial-gradient(at 15% 20%, #ffd9c4 0%, transparent 55%),
    radial-gradient(at 85% 15%, #ffb8a3 0%, transparent 55%),
    radial-gradient(at 50% 90%, #ffeedc 0%, transparent 55%),
    #fdfcfb;
}

.blog-thumb-lavender {
  background:
    radial-gradient(at 15% 20%, #d4d9ff 0%, transparent 55%),
    radial-gradient(at 85% 15%, #b8c4ff 0%, transparent 55%),
    radial-gradient(at 50% 90%, #e8eaff 0%, transparent 55%),
    #fdfcfb;
}

.blog-thumb-rose {
  background:
    radial-gradient(at 15% 20%, #ffd9e8 0%, transparent 55%),
    radial-gradient(at 85% 15%, #ffb8d4 0%, transparent 55%),
    radial-gradient(at 50% 90%, #ffeef5 0%, transparent 55%),
    #fdfcfb;
}

/* ----- All Posts (dark) ----- */

.blog-posts-section {
  background: var(--dark-bg);
  padding: var(--space-6) var(--space-3) var(--space-5);
}

.blog-posts-label {
  display: block;
  max-width: 900px;
  margin: 0 auto var(--space-3);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.blog-posts-list {
  max-width: 900px;
  margin: 0 auto;
}

.blog-post-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 22px 0;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.blog-post-row-text {
  flex: 1;
  min-width: 0;
}

.blog-post-row-title {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
  transition: color 0.3s var(--ease);
}

.blog-post-row:hover .blog-post-row-title {
  color: var(--accent-amber);
}

.blog-post-row-desc {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
}

.blog-post-row-date {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .blog-featured-grid {
    grid-template-columns: 1fr;
  }

  .blog-post-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}
