/* =============================================
   ALMOND GROWTH — blog.css
   Blog page & article modal styles
   ============================================= */

/* ---------- BLOG HERO ---------- */
.blog-hero {
  padding: 140px 0 80px;
  background: var(--navy);
  position: relative;
  overflow: hidden;
  color: var(--white);
}

.blog-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(93,184,46,0.10) 0%, transparent 55%),
    radial-gradient(ellipse at 10% 80%, rgba(200,160,32,0.07) 0%, transparent 50%);
  pointer-events: none;
}

.blog-hero__inner { position: relative; z-index: 1; text-align: center; }

.blog-hero__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin: 16px 0 20px;
}

.blog-hero__sub {
  font-size: 18px;
  color: rgba(255,255,255,0.65);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.blog-hero__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.tag-btn {
  padding: 8px 18px;
  border-radius: 40px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.65);
  transition: var(--transition);
}

.tag-btn:hover,
.tag-btn.active {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(61,138,40,0.35);
}

/* ---------- FEATURED CARD ---------- */
.blog-featured {
  padding: 60px 0 0;
  background: var(--navy-muted);
}

.featured-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  gap: 32px;
  align-items: flex-start;
  border-left: 5px solid var(--green-bright);
}

.featured-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-left-color: var(--gold);
}

.featured-card__badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(200,160,32,0.1);
  border: 1px solid rgba(200,160,32,0.3);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.featured-card__body { flex: 1; }

.featured-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.featured-card h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 16px;
}

.featured-card p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 24px;
  max-width: 720px;
}

.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--green);
  transition: var(--transition);
}

.featured-card:hover .read-more-btn {
  color: var(--green-bright);
  gap: 10px;
}

.featured-card__number {
  font-family: var(--font-display);
  font-size: 120px;
  font-weight: 900;
  color: rgba(13,27,46,0.04);
  line-height: 1;
  flex-shrink: 0;
  align-self: center;
  user-select: none;
}

/* ---------- ARTICLE TAGS ---------- */
.art-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
}

.art-tag--retention  { background: rgba(93,184,46,0.12); color: var(--green); border: 1px solid rgba(61,138,40,0.2); }
.art-tag--crm        { background: rgba(13,27,46,0.08);  color: var(--navy-mid); border: 1px solid rgba(13,27,46,0.15); }
.art-tag--whatsapp   { background: rgba(37,211,102,0.12); color: #1da851; border: 1px solid rgba(37,211,102,0.25); }
.art-tag--funnel     { background: rgba(200,160,32,0.12); color: var(--gold); border: 1px solid rgba(200,160,32,0.25); }
.art-tag--digital    { background: rgba(93,184,46,0.1); color: var(--green-mid); border: 1px solid rgba(61,138,40,0.2); }

.art-date {
  font-size: 13px;
  color: var(--text-light);
}

/* ---------- BLOG GRID ---------- */
.blog-grid-section {
  padding: 48px 0 80px;
  background: var(--navy-muted);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(61,138,40,0.3);
}

.blog-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--green-bright));
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  opacity: 0;
  transition: var(--transition);
}

.blog-card:hover::after { opacity: 1; }

.blog-card__icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.blog-card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 14px;
  flex: 1;
}

.blog-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
}

.read-more-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
  transition: var(--transition);
  align-self: flex-start;
}

.blog-card:hover .read-more-link {
  color: var(--green-bright);
  text-decoration: underline;
}

/* ---------- BLOG CTA STRIP ---------- */
.blog-cta-strip {
  background: linear-gradient(135deg, var(--navy) 0%, #0A2010 100%);
  padding: 64px 0;
}

.blog-cta-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.blog-cta-strip__inner h3 {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--white);
  margin-bottom: 8px;
}

.blog-cta-strip__inner p {
  font-size: 16px;
  color: rgba(255,255,255,0.65);
}

/* ---------- ARTICLE OVERLAY / MODAL ---------- */
.article-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(13,27,46,0.85);
  backdrop-filter: blur(6px);
  overflow-y: auto;
  padding: 32px 16px 60px;
  animation: overlayIn 0.3s ease;
}

.article-overlay.open {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

@keyframes overlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.article-modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 820px;
  width: 100%;
  padding: 52px 56px;
  position: relative;
  animation: modalSlide 0.35s cubic-bezier(0.34,1.56,0.64,1);
  margin-top: 20px;
}

@keyframes modalSlide {
  from { opacity: 0; transform: translateY(40px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.article-close {
  position: sticky;
  top: 0;
  float: right;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  background: var(--navy-pale);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
  margin-bottom: 32px;
  z-index: 2;
}

.article-close:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.article-content { clear: both; }

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.article-content h1 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 24px;
}

.article-intro {
  font-size: 18px !important;
  color: var(--text-muted) !important;
  border-left: 4px solid var(--green-bright);
  padding-left: 20px !important;
  margin-bottom: 36px !important;
  line-height: 1.75 !important;
  font-style: italic;
}

.article-content h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  margin: 40px 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--green-pale);
}

.article-content h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--navy-mid);
  margin: 28px 0 10px;
}

.article-content p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 18px;
}

.article-callout {
  background: var(--navy-pale);
  border-left: 4px solid var(--navy-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 28px 0;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

.article-callout--green {
  background: var(--green-pale);
  border-left-color: var(--green-bright);
}

.article-list {
  padding: 0;
  margin: 8px 0 20px;
}

.article-list li {
  font-size: 15px;
  color: var(--text-muted);
  padding: 8px 0 8px 24px;
  border-bottom: 1px solid var(--border);
  position: relative;
  line-height: 1.6;
}

.article-list li:last-child { border-bottom: none; }

.article-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--green-bright);
  font-weight: 700;
}

.article-cta {
  background: linear-gradient(135deg, var(--navy) 0%, #0A2010 100%);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-top: 48px;
  text-align: center;
  color: var(--white);
}

.article-cta h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--white) !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
  border: none !important;
}

.article-cta p {
  color: rgba(255,255,255,0.7) !important;
  margin-bottom: 24px !important;
}

/* ---------- FILTER HIDE ---------- */
.blog-card.hidden,
.featured-card.hidden {
  display: none;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .article-modal { padding: 32px 24px; }
  .featured-card { flex-direction: column; padding: 32px 28px; }
  .featured-card__number { display: none; }
  .blog-cta-strip__inner { flex-direction: column; text-align: center; }
  .blog-grid { grid-template-columns: 1fr; }
}
