/* ============================================
   ALVEX STUDIO — Blog Index & Post Styles
   ============================================ */

/* --- Blog Index Hero --- */
.blog-hero {
  padding: 160px 48px 80px;
  background: var(--dark);
}
.blog-hero h1 {
  font-size: clamp(48px, 8vw, 88px);
  letter-spacing: -.05em;
  line-height: .92;
  margin-bottom: 20px;
}
.blog-hero .sub {
  font-size: 16px;
  font-weight: 300;
  color: rgba(240,237,230,.5);
  max-width: 500px;
  line-height: 1.7;
}

/* --- Category Filters --- */
.blog-filters {
  padding: 32px 48px;
  background: var(--navy);
  border-bottom: 1px solid rgba(240,237,230,.06);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.blog-filter-btn {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(240,237,230,.4);
  padding: 12px 20px;
  min-height: 44px;
  border: 1px solid rgba(240,237,230,.08);
  border-radius: 2px;
  cursor: pointer;
  transition: all .2s;
  background: none;
}
.blog-filter-btn:hover,
.blog-filter-btn.active {
  color: var(--warm-white);
  border-color: var(--blue);
  background: rgba(42,94,232,.1);
}

/* --- Blog Card Grid --- */
.blog-index-body {
  padding: 80px 48px 120px;
  background: var(--navy);
}
.blog-index-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.blog-card {
  background: var(--mid);
  padding: 32px 28px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: background .25s;
}
.blog-card:hover { background: var(--dark); }
.blog-card-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 1px;
  margin-bottom: 16px;
  align-self: flex-start;
}
.blog-card h3 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.2;
  color: var(--warm-white);
  margin-bottom: 10px;
}
.blog-card .blog-card-summary {
  font-size: 13px;
  font-weight: 300;
  color: rgba(240,237,230,.4);
  line-height: 1.65;
  margin-bottom: 20px;
  flex: 1;
}
.blog-card-meta {
  font-size: 11px;
  color: rgba(240,237,230,.25);
  margin-bottom: 16px;
  display: flex;
  gap: 12px;
}
.blog-card-read {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: gap .2s;
}
.blog-card:hover .blog-card-read { gap: 12px; }

/* Tag colours (shared) */
.tag-seo { background: rgba(42,94,232,.15); color: #7BA3F5; }
.tag-aeo { background: rgba(29,158,117,.15); color: #5DCAA5; }
.tag-geo { background: rgba(200,151,58,.15); color: #E8B860; }
.tag-local { background: rgba(200,151,58,.15); color: #E8B860; }

/* ============================================
   BLOG POST STYLES
   ============================================ */

/* --- Breadcrumb --- */
.post-breadcrumb {
  padding: 100px 48px 0;
  background: var(--dark);
  font-size: 12px;
  font-weight: 300;
  color: rgba(240,237,230,.3);
  max-width: 900px;
  margin: 0 auto;
}
.post-breadcrumb a {
  color: rgba(240,237,230,.4);
  text-decoration: none;
  transition: color .2s;
}
.post-breadcrumb a:hover { color: var(--warm-white); }
.post-breadcrumb span { margin: 0 8px; }

/* --- Post Header --- */
.post-header {
  padding: 32px 48px 48px;
  background: var(--dark);
  max-width: 900px;
  margin: 0 auto;
}
.post-header .post-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 1px;
  margin-bottom: 20px;
}
.post-header h1 {
  font-size: clamp(36px, 6vw, 64px);
  letter-spacing: -.04em;
  line-height: .95;
  margin-bottom: 20px;
}
.post-meta {
  font-size: 13px;
  font-weight: 300;
  color: rgba(240,237,230,.35);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Post Hero Image --- */
.post-hero {
  max-width: 720px;
  margin: 48px auto;
  padding: 0;
}
.post-hero picture,
.post-hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 2px;
}
@media (max-width: 768px) {
  .post-hero { max-width: calc(100% - 48px); margin: 32px auto; }
}
@media (max-width: 480px) {
  .post-hero { max-width: calc(100% - 40px); margin: 24px auto; }
}

/* --- Answer Block (callout) --- */
.answer-block {
  padding: 40px 48px;
  background: var(--mid);
  border-left: 3px solid var(--blue);
  max-width: 900px;
  margin: 0 auto;
}
.answer-block-inner {
  max-width: 100%;
}
.answer-block p {
  font-size: 17px;
  font-weight: 400;
  color: rgba(240,237,230,.8);
  line-height: 1.8;
}
.answer-block strong {
  color: var(--amber);
}

/* --- Post Body --- */
.post-body {
  padding: 60px 48px 80px;
  background: var(--navy);
}
.post-content {
  max-width: 900px;
  margin: 0 auto;
}
.post-content h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  margin: 48px 0 20px;
  line-height: 1.05;
}
.post-content p {
  font-size: 16px;
  font-weight: 300;
  color: rgba(240,237,230,.6);
  line-height: 1.85;
  margin-bottom: 20px;
}
.post-content ul,
.post-content ol {
  padding-left: 24px;
  margin-bottom: 20px;
}
.post-content li {
  font-size: 15px;
  font-weight: 300;
  color: rgba(240,237,230,.55);
  line-height: 1.8;
  margin-bottom: 8px;
  list-style: disc;
}
.post-content a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.post-content strong {
  color: var(--warm-white);
  font-weight: 500;
}
.post-content blockquote {
  border-left: 2px solid var(--blue);
  padding: 16px 24px;
  margin: 28px 0;
  background: rgba(42,94,232,.05);
}
.post-content blockquote p {
  font-style: italic;
  color: rgba(240,237,230,.7);
  margin: 0;
}

/* --- Post FAQ --- */
.post-faq {
  padding: 60px 48px;
  background: var(--mid);
}
.post-faq-inner {
  max-width: 900px;
  margin: 0 auto;
}
.post-faq h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 32px;
}
.post-faq-item {
  border-top: 1px solid rgba(240,237,230,.06);
  padding: 20px 0;
}
.post-faq-item:last-child {
  border-bottom: 1px solid rgba(240,237,230,.06);
}
.post-faq-item h3 {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  color: var(--warm-white);
  margin-bottom: 8px;
}
.post-faq-item p {
  font-size: 14px;
  font-weight: 300;
  color: rgba(240,237,230,.5);
  line-height: 1.75;
}

/* --- Post CTA --- */
.post-cta {
  padding: 80px 48px;
  background: var(--dark);
  max-width: 100%;
  margin: 48px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}
.post-cta::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42,94,232,.12) 0%, transparent 70%);
  left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
}
.post-cta-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
}
.post-cta-label::before,
.post-cta-label::after {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--amber);
}
.post-cta h3 {
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  color: var(--warm-white);
  letter-spacing: -.04em;
  line-height: .95;
  margin-bottom: 16px;
  position: relative;
}
.post-cta h3 .stroke {
  -webkit-text-stroke: 1px rgba(240,237,230,.35);
  color: transparent;
}
.post-cta p {
  font-size: 15px;
  font-weight: 300;
  color: rgba(240,237,230,.45);
  margin: 0 auto 32px;
  line-height: 1.7;
  max-width: 360px;
  position: relative;
}

/* --- Related Posts --- */
.related-posts {
  padding: 80px 48px;
  background: var(--navy);
}
.related-posts h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 40px;
}
.related-grid {
  max-width: 1200px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .blog-hero { padding: 140px 24px 60px; }
  .blog-filters { padding: 24px; }
  .blog-index-body { padding: 48px 24px 80px; }
  .post-breadcrumb { padding: 100px 24px 0; }
  .post-header { padding: 24px 24px 40px; }
  .answer-block { padding: 32px 24px; }
  .post-body { padding: 40px 24px 60px; }
  .post-faq { padding: 40px 24px; }
  .related-posts { padding: 48px 24px; }
}

@media (max-width: 768px) {
  .blog-hero { padding: 120px 20px 48px; }
  .blog-filters { padding: 20px; }
  .blog-index-body { padding: 40px 20px 60px; }
  .blog-index-grid { grid-template-columns: 1fr; }
  .post-breadcrumb { padding: 90px 20px 0; }
  .post-header { padding: 20px 20px 32px; }
  .answer-block { padding: 24px 20px; }
  .post-body { padding: 32px 20px 48px; }
  .post-faq { padding: 32px 20px; }
  .related-posts { padding: 40px 20px; }
  .related-grid { grid-template-columns: 1fr; }
}
