/* ============================================================
   ETOUCH SOLUTIONS — blog.css
   Page-specific layer for blog.html only.
   Loaded AFTER css/style.css. Reuses shared components — the
   centred eyebrow + rule, gradient text, dark CTA panel, buttons,
   scroll reveals and design tokens. Nothing shared is redefined.

   B1 Tokens · B2 Breadcrumb · B3 Hero · B4 Hero stat bar
   B5 Filter + search · B6 Post cards · B7 Sidebar widgets
   B8 Load more · B9 CTA · B10 Responsive
============================================================ */

/* ------------------------------------------------------------
   B1 · PAGE TOKENS
------------------------------------------------------------ */
:root {
  --bl-mist: #FAFAF8;
}

/* ------------------------------------------------------------
   B2 · BREADCRUMB
------------------------------------------------------------ */
.bl-crumb { padding: .9rem 0 .2rem; }
.bl-crumb .breadcrumb { margin-bottom: 0; font-size: .74rem; font-weight: 500; }
.bl-crumb .breadcrumb-item a { color: var(--gray); }
.bl-crumb .breadcrumb-item a:hover { color: var(--green); }
.bl-crumb .breadcrumb-item.active { color: var(--text); font-weight: 600; }

/* ------------------------------------------------------------
   B3 · HERO
------------------------------------------------------------ */
.bl-hero {
  position: relative;
  background: linear-gradient(160deg, #FFFFFF 0%, var(--bl-mist) 45%, #EFF6F1 100%);
  padding: 20px 0 42px;
  overflow: hidden;
}

/* Label with the small trailing dash from the reference */
.bl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--green-deep-2);
  margin-bottom: .7rem;
}
.bl-eyebrow::after {
  content: "";
  width: 26px; height: 2px;
  background: var(--green-deep-2);
  border-radius: 1px;
}

.bl-title {
  font-size: clamp(1.9rem, 4.2vw, 2.8rem);
  line-height: 1.16;
  font-weight: 800;
  color: #0E1B14;
  margin-bottom: .9rem;
}
.bl-title .t-grad { display: inline-block; position: relative; }
/* Yellow bar under "Inspiration." — page-scoped override of the
   shared .t-grad, which is display:block in style.css §22.2 */
.bl-title .t-grad::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 4px;
  border-radius: 2px;
  background: var(--yellow);
}

.bl-lead { font-size: .84rem; color: var(--gray); line-height: 1.9; max-width: 400px; margin-bottom: 1.5rem; }

.bl-visual { position: relative; }
.bl-shot {
  position: relative;
  z-index: 1;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.bl-shot img { width: 100%; display: block; }

/* Floating dark quote card over the workspace image */
.bl-quote {
  position: absolute;
  right: 2%;
  top: 22%;
  z-index: 3;
  width: 220px;
  padding: 1.2rem 1.2rem 1.3rem;
  border-radius: var(--r-md);
  background: linear-gradient(150deg, rgba(11, 58, 36, .95), rgba(4, 30, 18, .96));
  border: 1px solid rgba(255, 255, 255, .08);
  color: var(--white);
  box-shadow: 0 24px 44px rgba(0, 0, 0, .32);
}
.bl-quote-mark { font-size: 1.6rem; color: var(--yellow); line-height: 1; display: block; margin-bottom: .3rem; }
.bl-quote-text { font-size: .88rem; font-weight: 700; line-height: 1.5; color: var(--white); margin-bottom: 1rem; }

/* ------------------------------------------------------------
   B4 · HERO STAT BAR
   A single white pill containing four divided cells, as in the
   reference (not four separate cards).
------------------------------------------------------------ */
.bl-statbar {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  padding: .9rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.bl-statcell {
  flex: 1 1 0;
  min-width: 116px;
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .2rem .8rem;
  position: relative;
}
.bl-statcell + .bl-statcell::before {
  content: "";
  position: absolute; left: 0; top: 12%; bottom: 12%;
  width: 1px;
  background: var(--line);
}
.bl-stat-ico {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid; place-items: center;
  font-size: .9rem;
  flex: 0 0 auto;
  background: var(--green-light);
  color: var(--green-deep-2);
  transition: transform .3s var(--ease);
}
.bl-statcell:nth-child(2n) .bl-stat-ico { background: rgba(244, 180, 0, .16); color: #C98F00; }
.bl-statcell:hover .bl-stat-ico { transform: translateY(-3px); }
.bl-stat-val { font-size: 1.05rem; font-weight: 800; color: #0E1B14; line-height: 1.15; }
.bl-stat-cap { font-size: .62rem; color: var(--gray); line-height: 1.35; }

/* ------------------------------------------------------------
   B5 · FILTER PILLS + SEARCH
------------------------------------------------------------ */
.bl-toolbar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 1.8rem; }

.bl-filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.bl-pill {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: .72rem;
  font-weight: 600;
  padding: .5rem 1.1rem;
  border-radius: 50rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), background-color .3s var(--ease),
              border-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.bl-pill:hover { transform: translateY(-2px); border-color: rgba(10, 174, 96, .3); box-shadow: var(--shadow-md); }
.bl-pill.is-active {
  background: var(--green-deep-2);
  border-color: var(--green-deep-2);
  color: var(--white);
  box-shadow: 0 10px 22px rgba(0, 122, 67, .28);
}

.bl-search { position: relative; min-width: 220px; flex: 0 1 260px; }
.bl-search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 50rem;
  background: var(--white);
  font-size: .74rem;
  padding: .58rem 2.4rem .58rem 1.1rem;
  box-shadow: var(--shadow-sm);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.bl-search input:focus {
  outline: none;
  border-color: rgba(10, 174, 96, .45);
  box-shadow: 0 0 0 4px rgba(10, 174, 96, .12);
}
.bl-search .bi {
  position: absolute;
  right: 1rem; top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
  font-size: .85rem;
  pointer-events: none;
}

/* Empty-state message when a filter/search returns nothing */
.bl-empty {
  display: none;
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--gray);
  font-size: .8rem;
}
.bl-empty.is-shown { display: block; }
.bl-empty i { font-size: 1.6rem; color: var(--green); display: block; margin-bottom: .5rem; }

/* ------------------------------------------------------------
   B6 · POST CARDS
------------------------------------------------------------ */
.bl-card-wrap.is-hidden { display: none; }

.bl-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.bl-card:hover {
  transform: translateY(-8px);
  border-color: rgba(10, 174, 96, .28);
  box-shadow: 0 24px 44px rgba(10, 174, 96, .18);
}

.bl-media { position: relative; overflow: hidden; aspect-ratio: 420 / 260; }
.bl-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.bl-card:hover .bl-media img { transform: scale(1.07); }

.bl-badge {
  position: absolute;
  left: .8rem; bottom: .8rem;
  z-index: 2;
  background: var(--green-deep-2);
  color: var(--white);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .7rem;
  border-radius: 6px;
}
.bl-badge.is-gold { background: var(--yellow); color: #4A3600; }

.bl-body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; flex: 1; }
.bl-post-title { font-size: .92rem; font-weight: 700; line-height: 1.45; margin-bottom: .5rem; color: #0E1B14; }
.bl-post-text  { font-size: .72rem; color: var(--gray); line-height: 1.8; margin-bottom: 1rem; }

.bl-meta {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-top: auto;
  padding-top: .8rem;
  border-top: 1px solid var(--line);
}
.bl-meta-item { display: inline-flex; align-items: center; gap: .3rem; font-size: .64rem; color: var(--gray); }
.bl-meta-item i { color: var(--green-deep-2); font-size: .75rem; }

.bl-go {
  margin-left: auto;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green-deep-2);
  display: grid; place-items: center;
  font-size: .8rem;
  text-decoration: none;
  flex: 0 0 auto;
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.bl-card:hover .bl-go { background: var(--green); color: var(--white); transform: translateX(3px); }

/* ------------------------------------------------------------
   B7 · SIDEBAR WIDGETS
------------------------------------------------------------ */
.bl-widget {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  padding: 1.2rem 1.2rem 1.3rem;
  margin-bottom: 1.5rem;
}
.bl-widget-title { font-size: .95rem; font-weight: 700; margin-bottom: .3rem; color: #0E1B14; }
.bl-widget-rule {
  display: block;
  width: 42px; height: 3px;
  border-radius: 2px;
  background: var(--yellow);
  margin-bottom: 1.1rem;
}

/* Popular post row */
.bl-pop {
  display: flex;
  gap: .75rem;
  padding: .7rem 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  transition: transform .3s var(--ease);
}
.bl-pop:first-of-type { border-top: 0; padding-top: 0; }
.bl-pop:hover { transform: translateX(3px); }
.bl-pop img {
  width: 62px; height: 52px;
  border-radius: 8px;
  object-fit: cover;
  flex: 0 0 auto;
}
.bl-pop-title {
  font-size: .74rem;
  font-weight: 600;
  line-height: 1.45;
  color: #0E1B14;
  margin-bottom: .2rem;
  transition: color .3s var(--ease);
}
.bl-pop:hover .bl-pop-title { color: var(--green-deep-2); }
.bl-pop-date { font-size: .62rem; color: var(--gray); }

/* Categories list */
.bl-cat-list { list-style: none; margin: 0; padding: 0; }
.bl-cat-list li { border-top: 1px solid var(--line); }
.bl-cat-list li:first-child { border-top: 0; }
.bl-cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding: .55rem 0;
  font-size: .76rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  background: none;
  border: 0;
  width: 100%;
  cursor: pointer;
  text-align: left;
  transition: color .3s var(--ease), padding-left .3s var(--ease);
}
.bl-cat-link:hover { color: var(--green-deep-2); padding-left: .3rem; }
.bl-cat-count {
  font-size: .64rem;
  font-weight: 700;
  color: var(--green-deep-2);
  background: var(--green-light);
  border-radius: 6px;
  padding: .12rem .45rem;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.bl-cat-link:hover .bl-cat-count { background: var(--green); color: var(--white); }

/* Newsletter widget (dark) */
.bl-news {
  background: linear-gradient(150deg, #0F4028 0%, #062B18 60%, #0A3520 100%);
  border: 0;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.bl-news::after {
  content: "";
  position: absolute; right: -50px; bottom: -60px;
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 174, 96, .3), transparent 70%);
}
.bl-news > * { position: relative; z-index: 1; }
.bl-news .bl-widget-title { color: var(--white); }
.bl-news-text { font-size: .7rem; color: rgba(255, 255, 255, .68); line-height: 1.75; margin-bottom: 1rem; }
.bl-news-art { position: absolute; right: .6rem; bottom: .6rem; width: 74px; opacity: .9; z-index: 1; }

.bl-news-form { position: relative; }
.bl-news-form input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50rem;
  background: rgba(255, 255, 255, .95);
  font-size: .72rem;
  padding: .55rem 2.6rem .55rem 1rem;
}
.bl-news-form input:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(244, 180, 0, .25);
}
.bl-news-btn {
  position: absolute;
  right: .3rem; top: 50%;
  transform: translateY(-50%);
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 0;
  background: var(--green-deep-2);
  color: var(--white);
  display: grid; place-items: center;
  font-size: .75rem;
  cursor: pointer;
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.bl-news-btn:hover { background: var(--green); transform: translateY(-50%) scale(1.08); }
.bl-news-note { font-size: .62rem; margin: .5rem 0 0; min-height: 1em; color: var(--yellow); }

/* ------------------------------------------------------------
   B8 · LOAD MORE
------------------------------------------------------------ */
.bl-more-wrap { text-align: center; margin-top: 1.4rem; }
.bl-more-btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: var(--white);
  color: var(--green-deep-2);
  font-size: .78rem;
  font-weight: 700;
  border: 1px solid rgba(10, 174, 96, .35);
  padding: .6rem 1.4rem;
  border-radius: 50rem;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
              background-color .3s var(--ease), color .3s var(--ease);
}
.bl-more-btn:hover { background: var(--green-deep-2); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.bl-more-btn.is-loading i { animation: bl-spin .8s linear infinite; }
.bl-more-btn.is-done { display: none; }

@keyframes bl-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .bl-more-btn.is-loading i { animation: none; }
}

/* ------------------------------------------------------------
   B9 · CTA
   Uses the shared .cta-dark panel; only the doodle needs sizing.
------------------------------------------------------------ */
.bl-cta-art { width: 100%; max-width: 140px; display: block; margin: 0 auto; }

/* ------------------------------------------------------------
   B10 · RESPONSIVE
------------------------------------------------------------ */
@media (max-width: 1199.98px) {
  .bl-quote { width: 190px; padding: 1rem; top: 16%; }
  .bl-quote-text { font-size: .8rem; }
}

@media (max-width: 991.98px) {
  .bl-hero { text-align: center; }
  .bl-lead { margin-left: auto; margin-right: auto; }
  .bl-visual { margin-top: 2rem; }
  .bl-quote { position: static; width: 100%; margin-top: 1rem; text-align: left; }
  .bl-statbar { justify-content: center; }
  .bl-toolbar { justify-content: center; }
  .bl-filters { justify-content: center; }
  .bl-search { flex: 1 1 100%; }
}

@media (max-width: 767.98px) {
  .bl-title { font-size: 1.8rem; }
  .bl-hero .btn { width: 100%; justify-content: center; }
  .bl-statcell { flex: 1 1 46%; }
  .bl-statcell + .bl-statcell::before { display: none; }
  .bl-pill { font-size: .68rem; padding: .42rem .9rem; }
}

@media (max-width: 575.98px) {
  .bl-statcell { flex: 1 1 100%; }
  .bl-widget { padding: 1rem 1rem 1.1rem; }
}
