/* ============================================================
   DEFYN - BLOG STYLES
   Builds on style.css design tokens (--teal, --green, --cream…).
============================================================ */

/* --- Dark hero band (sits under the fixed nav) ------------- */
.blog-hero {
  position: relative;
  background: var(--teal);
  color: var(--cream);
  padding: 11rem 0 4rem;
  overflow: hidden;
}
.blog-hero::after {
  /* soft glow, echoing the homepage hero orbs */
  content: '';
  position: absolute;
  top: -30%; right: -10%;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(203,252,196,0.16), transparent 70%);
  pointer-events: none;
}
.blog-hero .container { position: relative; z-index: 1; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--cream-40);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--cream-70); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb span { color: var(--cream-40); }

.blog-hero__title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 16ch;
}
.blog-hero__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--green);
}
.blog-hero__sub {
  margin-top: 1.25rem;
  max-width: 60ch;
  color: var(--cream-70);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* --- Listing grid ----------------------------------------- */
.blog-list { background: var(--cream); padding: 5rem 0 7rem; }

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 2rem;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid rgba(16,38,42,0.08);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
              border-color 0.35s;
}
.post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -24px rgba(16,38,42,0.25);
  border-color: rgba(16,38,42,0.14);
}
.post-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: var(--teal);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
}
.post-card__cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--green);
  padding: 0.35rem 0.7rem;
  border-radius: 100px;
}
.post-card__body { padding: 1.5rem 1.5rem 1.75rem; display: flex; flex-direction: column; flex: 1; }
.post-card__title {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--teal);
}
.post-card__excerpt {
  margin-top: 0.75rem;
  color: rgba(16,38,42,0.7);
  font-size: 0.92rem;
  line-height: 1.6;
  flex: 1;
}
.post-card__meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: rgba(16,38,42,0.55);
}
.post-card__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.post-card a.post-card__link { color: inherit; display: contents; }

/* --- Article / prose -------------------------------------- */
.post { background: var(--cream); padding-bottom: 5rem; }

.post-hero { background: var(--teal); color: var(--cream); padding: 10.5rem 0 3.5rem; }
.post-hero--image { background-size: cover; background-position: center; background-repeat: no-repeat; }
.post-hero__cat {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--green);
  padding: 0.35rem 0.8rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}
.post-hero__title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 22ch;
}
.post-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--cream-70);
}
.post-hero__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--cream-40); }

.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 3.5rem 2rem 0;
  color: #1c2f33;
  font-size: 1.08rem;
  line-height: 1.8;
}
.prose > * + * { margin-top: 1.4rem; }
.prose h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--teal);
  margin-top: 3rem;
  padding-top: 0.5rem;
}
.prose h3 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--teal);
  margin-top: 2.2rem;
}
.prose p { color: #25383c; }
.prose a {
  color: #0f6b4f;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--green-dark);
  text-underline-offset: 3px;
}
.prose a:hover { text-decoration-color: #0f6b4f; }
.prose strong { color: var(--teal); font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-top: 0.6rem; }
.prose ul li::marker { color: var(--green-dark); }
.prose ol li::marker { color: var(--teal); font-weight: 700; }
.prose blockquote {
  border-left: 3px solid var(--green);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin-left: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.5;
  color: var(--teal);
}
.prose img { width: 100%; border-radius: 16px; margin: 2rem 0; }
.prose hr { border: none; border-top: 1px solid rgba(16,38,42,0.12); margin: 3rem 0; }
.prose code {
  background: rgba(16,38,42,0.06);
  padding: 0.15em 0.4em;
  border-radius: 6px;
  font-size: 0.9em;
}
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid rgba(16,38,42,0.1); }
.prose th { background: rgba(16,38,42,0.04); font-weight: 700; color: var(--teal); }

/* --- FAQ (GEO + rich results) ----------------------------- */
.faq {
  max-width: 720px;
  margin: 3.5rem auto 0;
  padding: 0 2rem;
}
.faq > h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--teal);
  margin-bottom: 1.5rem;
}
.faq__item {
  border-bottom: 1px solid rgba(16,38,42,0.12);
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 2.5rem 1.1rem 0;
  position: relative;
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--teal);
  transition: color 0.2s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+';
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--green-dark);
  transition: transform 0.25s var(--ease-out);
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item summary:hover { color: #0f6b4f; }
.faq__answer {
  padding: 0 0 1.2rem;
  color: #25383c;
  line-height: 1.75;
}
.faq__answer p { margin: 0; }

.post-author {
  max-width: 720px;
  margin: 3rem auto 0;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.post-author__avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--green); color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; flex-shrink: 0;
}
.post-author__name { font-weight: 700; color: var(--teal); }
.post-author__role { font-size: 0.85rem; color: rgba(16,38,42,0.6); }

/* --- Related + CTA ---------------------------------------- */
.related { background: var(--cream); padding: 4rem 0; border-top: 1px solid rgba(16,38,42,0.08); }
.related h2 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; color: var(--teal); margin-bottom: 2rem; }

.blog-cta { background: var(--teal); color: var(--cream); padding: 4.5rem 0; text-align: center; }
.blog-cta h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; }
.blog-cta h2 em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--green); }
.blog-cta p { max-width: 52ch; margin: 1rem auto 2rem; color: var(--cream-70); line-height: 1.7; }

/* --- Responsive ------------------------------------------- */
@media (max-width: 768px) {
  .blog-hero { padding: 9rem 0 3rem; }
  .post-hero { padding: 8.5rem 0 2.5rem; }
  .prose { padding-top: 2.5rem; font-size: 1.02rem; }
  .post-grid { grid-template-columns: 1fr; }
}
