/* ===== Karibu Care Home — Blog Styles ===== */

:root {
  --forest:      #2d4a3a;
  --forest-dark: #1e352a;
  --forest-deep: #14241c;
  --cream:       #faf5eb;
  --cream-warm:  #f3e9d4;
  --cream-deep:  #ebdfc4;
  --gold:        #b8924a;
  --gold-light:  #d4b573;
  --gold-deep:   #906f34;
  --sage:        #5c7b67;
  --sage-soft:   #8ba392;
  --text:        #2a2a2a;
  --text-muted:  #6b6b6b;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Lato', system-ui, sans-serif;
  --radius: 8px;
  --max-article: 740px;
  --max-wide:    1100px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--cream);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); }
a:hover { color: var(--gold-deep); }

/* ── Nav ── */
.blog-nav {
  background: var(--forest-deep);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.blog-nav-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.blog-nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.blog-nav-logo img {
  height: 40px;
  width: auto;
  display: block;
}
.blog-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}
.blog-nav-links a {
  color: rgba(255,255,255,.72);
  text-decoration: none;
  font-size: .88rem;
  transition: color .2s;
}
.blog-nav-links a:hover { color: #fff; }
.blog-nav-cta {
  background: var(--gold) !important;
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 4px;
  font-weight: 700 !important;
  transition: background .2s !important;
}
.blog-nav-cta:hover { background: var(--gold-deep) !important; }

/* ── Blog listing hero ── */
.blog-hero {
  background: var(--forest);
  padding: 72px 24px 60px;
  text-align: center;
  color: var(--cream);
}
.blog-hero-eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 14px;
}
.blog-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 16px;
}
.blog-hero h1 em { color: var(--gold-light); font-style: italic; }
.blog-hero p {
  max-width: 560px;
  margin: 0 auto;
  color: rgba(255,255,255,.78);
  font-size: 1.05rem;
}

/* ── Post card grid ── */
.blog-grid-section {
  padding: 72px 24px 80px;
  max-width: var(--max-wide);
  margin: 0 auto;
}
.blog-grid-section h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--forest-dark);
  margin-bottom: 36px;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 36px;
}
.post-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0,0,0,.07);
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
  color: inherit;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,.13);
}
.post-card-img {
  aspect-ratio: 16/9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
}
.post-card-img i { font-size: 3rem; color: rgba(255,255,255,.72); }
.post-card-img figcaption {
  font-size: .78rem;
  color: rgba(255,255,255,.65);
  text-align: center;
  padding: 0 20px;
  font-style: italic;
}
.theme-forest { background: linear-gradient(135deg, var(--forest-dark) 0%, var(--sage) 100%); }
.theme-gold   { background: linear-gradient(135deg, var(--gold-deep) 0%, #c9a96e 100%); }
.theme-sage   { background: linear-gradient(135deg, var(--sage) 0%, var(--sage-soft) 100%); }
.theme-cream  { background: linear-gradient(135deg, var(--cream-warm) 0%, var(--cream-deep) 100%); }

.post-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.post-category {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 10px;
  display: block;
}
.post-card-body h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.3;
  margin-bottom: 10px;
  color: var(--forest-dark);
}
.post-excerpt {
  font-size: .92rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 18px;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: .8rem;
  color: var(--text-muted);
  padding-top: 14px;
  border-top: 1px solid var(--cream-deep);
  flex-wrap: wrap;
}
.post-meta i { color: var(--sage); margin-right: 4px; }
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--forest);
  font-weight: 700;
  font-size: .88rem;
  text-decoration: none;
  margin-top: 14px;
  transition: gap .2s, color .2s;
}
.read-more:hover { color: var(--gold-deep); gap: 10px; }

/* ── Article header ── */
.article-header {
  background: var(--forest);
  padding: 64px 24px 52px;
  color: var(--cream);
}
.article-header-inner { max-width: var(--max-article); margin: 0 auto; }
.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.article-breadcrumb a { color: rgba(255,255,255,.55); text-decoration: none; transition: color .2s; }
.article-breadcrumb a:hover { color: var(--gold-light); }
.article-category {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 14px;
}
.article-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 20px;
}
.article-header h1 em { color: var(--gold-light); font-style: italic; }
.article-lede {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255,255,255,.82);
  margin-bottom: 24px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: .82rem;
  color: rgba(255,255,255,.55);
}
.article-meta i { color: var(--gold-light); margin-right: 5px; }

/* ── Article body ── */
.article-body {
  max-width: var(--max-article);
  margin: 0 auto;
  padding: 52px 24px 80px;
}
.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--forest-dark);
  margin: 2.4em 0 .65em;
  line-height: 1.25;
}
.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--forest);
  margin: 1.8em 0 .5em;
}
.article-body p { margin-bottom: 1.3em; }
.article-body ul, .article-body ol { margin: 0 0 1.4em 1.5em; }
.article-body li { margin-bottom: .55em; }
.article-body strong { color: var(--forest-dark); }
.article-body a { color: var(--gold-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--forest); }
.article-body h2:first-child { margin-top: 0; }

/* Image placeholder */
.article-img { margin: 2.2em 0; border-radius: var(--radius); overflow: hidden; }
.article-img-graphic {
  aspect-ratio: 16/9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.article-img-graphic i { font-size: 3.8rem; color: rgba(255,255,255,.62); }
.article-img-graphic.theme-cream i { color: rgba(45,74,58,.35); }
.article-img figcaption {
  background: var(--cream-warm);
  padding: 10px 16px;
  font-size: .82rem;
  color: var(--text-muted);
  font-style: italic;
  border-top: 1px solid var(--cream-deep);
}

/* Callout box */
.callout {
  background: var(--cream-warm);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  margin: 2em 0;
}
.callout .callout-label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 6px;
}
.callout p { margin: 0; font-size: .96rem; }

/* Article CTA */
.article-cta {
  background: var(--forest);
  color: var(--cream);
  border-radius: 12px;
  padding: 44px 36px;
  margin-top: 3.5em;
  text-align: center;
}
.article-cta h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--cream);
  margin-bottom: 12px;
  line-height: 1.25;
}
.article-cta h3 em { color: var(--gold-light); font-style: italic; }
.article-cta p { color: rgba(255,255,255,.78); margin-bottom: 26px; max-width: 480px; margin-left: auto; margin-right: auto; }
.btn-cta {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  padding: 13px 28px;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  margin: 4px 6px;
  transition: background .2s, transform .2s;
  font-family: var(--font-body);
}
.btn-cta:hover { background: var(--gold-deep); color: #fff; transform: translateY(-2px); }
.btn-cta-outline {
  display: inline-block;
  border: 2px solid rgba(255,255,255,.45);
  color: var(--cream);
  padding: 11px 26px;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  margin: 4px 6px;
  transition: border-color .2s, color .2s;
  font-family: var(--font-body);
}
.btn-cta-outline:hover { border-color: #fff; color: #fff; }

/* Blog footer */
.blog-footer {
  background: var(--forest-deep);
  color: rgba(255,255,255,.6);
  padding: 40px 24px;
  text-align: center;
  font-size: .875rem;
  margin-top: auto;
}
.blog-footer-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  list-style: none;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.blog-footer-links a { color: var(--gold-light); text-decoration: none; transition: color .2s; }
.blog-footer-links a:hover { color: #fff; }

/* WhatsApp float */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  border-radius: 50px;
  padding: 13px 20px 13px 16px;
  box-shadow: 0 4px 18px rgba(0,0,0,.22);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.wa-float i { font-size: 1.45rem; line-height: 1; }
.wa-float:hover { background: #1ebe5d; transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,.28); color: #fff; }
.wa-float:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* Responsive */
@media (max-width: 768px) {
  .blog-nav-links { display: none; }
  .blog-grid { grid-template-columns: 1fr; }
  .article-cta { padding: 32px 20px; }
  .article-cta h3 { font-size: 1.45rem; }
}
@media (max-width: 560px) {
  .wa-float { bottom: 18px; right: 18px; padding: 0; border-radius: 50%; width: 54px; height: 54px; justify-content: center; }
  .wa-float span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
