/* ===== BLOG PAGE ===== */
.blog-page { background: var(--bg-white); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 1. Hero — same gradient as home; wider text, shorter height */
.blog-hero {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  padding: var(--space-lg) 0;
}
.blog-hero-bg {
  position: absolute;
  inset: 0;
  background: url('/assets/images/hero.jpg') no-repeat center;
  background-size: cover;
}
.blog-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 31, 46, 0.88) 0%,
    rgba(26, 31, 46, 0.60) 50%,
    rgba(26, 31, 46, 0.40) 100%
  );
}
.blog-hero .container {
  position: relative;
  z-index: 1;
}
.blog-hero-content {
  max-width: 920px;
}
.blog-hero-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cta);
  margin-bottom: var(--space-xs);
}
.blog-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-light);
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
  max-width: 720px;
}
.blog-hero-intro {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.65;
}
.blog-hero-intro a {
  color: var(--cta);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.blog-hero-intro a:hover { color: #fff; }
.blog-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
  margin-top: var(--space-md);
}
.blog-hero .btn--cta {
  background: var(--cta);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
}
.blog-hero .btn--cta:hover {
  background: var(--cta-hover);
}
.btn--blog-hero-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.8);
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.btn--blog-hero-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  color: #fff;
}

/* 2. Intro section */
.blog-intro { background: var(--bg-white); }
.blog-intro-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.blog-intro-header .section-intro a {
  color: var(--cta);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.blog-intro-header .section-intro a:hover { color: var(--stone); }

/* 3. Blog grid */
.blog-list { padding-top: var(--space-2xl); padding-bottom: var(--space-2xl); }
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-top: var(--space-lg);
}
@media (min-width: 768px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
}

.blog-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(26, 31, 46, 0.08);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  box-shadow: 0 8px 32px rgba(26, 31, 46, 0.12);
  transform: translateY(-4px);
}
.blog-card-image {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, var(--stone-light) 0%, var(--stone) 100%);
  overflow: hidden;
}
.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.blog-card-placeholder {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.6);
}
.blog-card-body {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card-meta {
  font-size: 0.8rem;
  color: var(--stone);
  margin-bottom: var(--space-xs);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.blog-card-meta time { font-weight: 500; }
.blog-card-tag {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(26, 31, 46, 0.06);
  border-radius: 4px;
  font-weight: 500;
  color: var(--stone);
}
.blog-card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: var(--space-sm);
}
.blog-card-title a {
  color: inherit;
  text-decoration: none;
}
.blog-card-title a:hover { color: var(--cta); }
.blog-card-excerpt {
  font-size: 0.95rem;
  color: var(--stone);
  line-height: 1.6;
  margin-bottom: var(--space-md);
  flex: 1;
}
.blog-card-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--cta);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
}
.blog-card-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* 4. Explore services CTA */
.blog-services-cta { background: var(--bg-white); }
.blog-services-cta-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.blog-services-cta-inner .section-intro a {
  color: var(--cta);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.blog-services-cta-inner .section-intro a:hover { color: var(--stone); }
.blog-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  margin-top: var(--space-lg);
}
.blog-cta-actions .btn { min-width: 160px; }

/* ===== SINGLE BLOG POST LAYOUT ===== */
.blog-post-page { background: var(--bg-white); }
.blog-post-cta-top {
  background: var(--bg-grey);
  padding: var(--space-md) 0;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.blog-post-cta-top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  align-items: center;
}
.blog-post-cta-top .btn { min-width: 160px; }
.blog-post-cta-top .btn--outline { flex-shrink: 0; }
.blog-post-cta-top .btn--cta { min-width: 200px; }
.blog-post-main {
  padding: var(--space-xl) 0 var(--space-2xl);
}
.blog-article {
  max-width: 800px;
  margin: 0 auto;
}
.blog-article .blog-post-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}
.blog-article .blog-intro-p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--stone);
  margin-bottom: var(--space-lg);
}
.blog-toc {
  background: var(--bg-grey);
  border-radius: var(--radius);
  padding: var(--space-lg);
  margin: var(--space-xl) 0;
}
.blog-toc-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-sm);
}
.blog-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.blog-toc li { margin-bottom: var(--space-xs); }
.blog-toc a {
  color: var(--cta);
  text-decoration: none;
  font-size: 0.95rem;
}
.blog-toc a:hover { text-decoration: underline; text-underline-offset: 3px; }
.blog-content {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-dark);
}
.blog-content h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid rgba(26, 31, 46, 0.08);
}
.blog-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xs);
}
.blog-content p { margin-bottom: var(--space-md); }
.blog-content ul, .blog-content ol {
  margin-bottom: var(--space-md);
  padding-left: 1.5em;
}
.blog-content li { margin-bottom: var(--space-xs); }
.blog-content a {
  color: var(--cta);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.blog-content a:hover { color: var(--cta-hover); }
.blog-content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-lg) 0;
  font-size: 0.95rem;
}
.blog-content th,
.blog-content td {
  border: 1px solid rgba(26, 31, 46, 0.12);
  padding: var(--space-sm) var(--space-md);
  text-align: left;
}
.blog-content th {
  background: var(--bg-grey);
  font-weight: 600;
  color: var(--text);
}
.blog-featured-image {
  margin: var(--space-lg) 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--stone-light);
}
.blog-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.blog-image-placeholder {
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, var(--stone-light) 0%, var(--stone) 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: var(--space-lg) 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  font-weight: 500;
}
.blog-cta-mid {
  margin: var(--space-xl) 0;
  text-align: center;
}
.blog-cta-mid .btn { min-width: 200px; }

.blog-cta-bottom {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(26, 31, 46, 0.08);
  text-align: center;
}
.blog-cta-bottom .btn { min-width: 200px; }

.blog-service-area-footer {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  font-size: 0.95rem;
  color: var(--text-muted, #666);
  text-align: center;
}
