/* ======================================================
   BLOG — Eletroway Eletropostos
   Mesma identidade da index.asp: lima #D9DC3E + grafite, Roboto.
   Usado por blog.asp e blog_detalhes.asp.
   ====================================================== */
:root {
  --lime:      #D9DC3E;
  --lime-dk:   #b7ba28;
  --lime-ink:  #6f7112;
  --dark:      #1e1e1e;
  --dark2:     #141414;
  --dark-soft: #2a2a2a;
  --white:     #FFFFFF;
  --off:       #F7F7F2;
  --gray:      #7a7a76;
  --line:      #2f2f2f;
  --border:    #ececE6;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { font-family: 'Roboto', sans-serif; background: var(--off); color: var(--dark); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.container-nar { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }

#scrollProgress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--lime); z-index: 9999; transition: width .1s linear; }

/* ── HEADER (igual à index) ── */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(30,30,30,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: .8rem 1.5rem; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.35); }
.header-logo-wrap { display: flex; align-items: center; gap: .6rem; text-decoration: none; flex-shrink: 0; }
.header-logo { height: 40px; width: auto; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: .1rem; list-style: none; }
.site-nav a {
  position: relative; font-weight: 500; font-size: .92rem; letter-spacing: .3px;
  color: #d8d8d4; text-decoration: none; padding: .6rem 1.1rem;
  border-radius: 50px; transition: color .2s, background .2s; white-space: nowrap;
}
.site-nav a:not(.nav-cta):hover, .site-nav a.active { color: var(--lime); background: rgba(217,220,62,.08); }
.site-nav .nav-cta {
  background: var(--lime); color: var(--dark) !important; font-weight: 700;
  padding: .6rem 1.4rem; border-radius: 50px; display: flex; align-items: center; gap: .5rem;
}
.site-nav .nav-cta:hover { background: var(--lime-dk); }
.nav-toggle { display: none; background: none; border: 2px solid var(--lime); color: var(--lime); font-size: 1.3rem; cursor: pointer; padding: .2rem .5rem; border-radius: 6px; }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--dark); border-bottom: 1px solid var(--line); padding: 1rem 1.5rem; gap: .2rem; }
  .site-nav.open { display: flex; }
  .site-nav a { font-size: 1rem; }
}

/* ── HERO DO BLOG ── */
.blog-hero { position: relative; background: var(--dark); overflow: hidden; padding: 64px 0 56px; color: var(--white); }
.blog-hero .grid-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(217,220,62,.10) 1px, transparent 1px);
  background-size: 30px 30px;
}
.blog-hero .ring-deco { position: absolute; border-radius: 50%; border: 10px solid var(--lime); opacity: .12; pointer-events: none; width: 360px; height: 360px; top: -140px; right: -100px; }
.blog-hero .container-nar { position: relative; z-index: 2; }
.blog-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; color: var(--lime);
  font-weight: 700; font-size: .8rem; letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: .9rem;
}
.blog-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); }
.blog-hero h1 { font-weight: 900; font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.05; margin-bottom: .8rem; }
.blog-hero h1 span { color: var(--lime); }
.blog-hero p { font-weight: 300; color: #c7c7c2; max-width: 560px; line-height: 1.65; }

/* Busca */
.blog-search { margin-top: 1.6rem; display: flex; gap: .6rem; max-width: 520px; }
.blog-search input {
  flex: 1; min-width: 0; border: 1.5px solid #45453f; background: #232323; color: #fff;
  border-radius: 50px; padding: .8rem 1.2rem; font-family: inherit; font-size: .95rem; outline: none;
}
.blog-search input:focus { border-color: var(--lime); }
.blog-search button {
  border: none; background: var(--lime); color: var(--dark); font-weight: 700; border-radius: 50px;
  padding: .8rem 1.3rem; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; font-family: inherit;
}

/* Breadcrumb */
.breadcrumb-custom { font-size: .82rem; color: #9a9a94; margin-bottom: 1.4rem; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.breadcrumb-custom a { color: #6b6b66; text-decoration: none; transition: color .2s; }
.breadcrumb-custom a:hover { color: var(--lime-ink); }
.breadcrumb-custom .sep { color: #c9c9c2; }
.breadcrumb-custom .current { color: var(--dark); font-weight: 600; }

.blog-wrap { padding: 44px 0 80px; min-height: 50vh; }

/* Filtro ativo */
.blog-filter-bar { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.blog-filter-chip {
  display: inline-flex; align-items: center; gap: .45rem; background: var(--dark); color: var(--lime);
  font-weight: 700; font-size: .82rem; padding: .45rem .9rem; border-radius: 50px;
}
.blog-filter-chip a { color: #fff; text-decoration: none; opacity: .75; }
.blog-filter-chip a:hover { opacity: 1; }
.blog-count { color: var(--gray); font-size: .88rem; }
.blog-count strong { color: var(--dark); }

/* Cards */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
@media (max-width: 960px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(0,0,0,.08); border-color: var(--lime); }
.blog-card .thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--dark); display: block; }
.blog-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.blog-card:hover .thumb img { transform: scale(1.05); }
.blog-card .date-pill {
  position: absolute; top: 14px; left: 14px; background: var(--lime); color: var(--dark);
  font-weight: 700; font-size: .72rem; padding: .3rem .75rem; border-radius: 50px; display: inline-flex; align-items: center; gap: .35rem;
}
.blog-card .body { padding: 1.3rem 1.3rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.blog-card .tags-mini { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .7rem; }
.blog-card .tags-mini a {
  font-size: .7rem; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; color: var(--lime-ink);
  text-decoration: none; background: #f4f5d6; padding: .2rem .55rem; border-radius: 50px;
}
.blog-card h2, .blog-card h3 { font-weight: 700; font-size: 1.08rem; line-height: 1.35; margin-bottom: .55rem; }
.blog-card h2 a, .blog-card h3 a { text-decoration: none; color: var(--dark); transition: color .2s; }
.blog-card h2 a:hover, .blog-card h3 a:hover { color: var(--lime-ink); }
.blog-card p.resumo { font-size: .88rem; color: #5d5d58; line-height: 1.6; margin-bottom: 1rem; flex: 1; }
.blog-card .meta {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  border-top: 1px solid #f0f0ea; padding-top: .8rem; font-size: .8rem; color: var(--gray);
}
.blog-card .meta i { color: var(--lime-dk); }
.blog-card .read-more { color: var(--dark); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: .3rem; transition: gap .2s; }
.blog-card .read-more:hover { gap: .55rem; }

/* Paginação */
.blog-pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 3rem; flex-wrap: wrap; }
.blog-pagination a, .blog-pagination span.gap {
  display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--white); color: #555; text-decoration: none; font-weight: 700; border: 2px solid #e6e6df; font-size: .9rem; transition: all .2s;
}
.blog-pagination span.gap { border: none; background: transparent; color: #aaa; }
.blog-pagination a:hover, .blog-pagination a.active { background: var(--dark); color: var(--lime); border-color: var(--dark); }
.blog-pagination a.disabled { opacity: .3; pointer-events: none; }

/* Vazio */
.blog-empty { text-align: center; padding: 70px 20px; background: var(--white); border: 1px dashed #d9d9d0; border-radius: 18px; }
.blog-empty i { font-size: 3rem; color: var(--lime-dk); display: block; margin-bottom: .8rem; }
.blog-empty h3 { font-weight: 900; margin-bottom: .4rem; }
.blog-empty p { color: var(--gray); }
.blog-empty a { color: var(--dark); font-weight: 700; }

/* ── DETALHE ── */
.back-button {
  display: inline-flex; align-items: center; gap: 8px; padding: .5rem 1.1rem; background: var(--white); color: #555;
  text-decoration: none; border-radius: 50px; font-weight: 600; font-size: .88rem; border: 2px solid #e6e6df;
  transition: all .2s; margin-bottom: 1.4rem;
}
.back-button:hover { color: var(--dark); border-color: var(--lime); transform: translateX(-3px); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2rem; align-items: start; }
@media (max-width: 991px) { .detail-grid { grid-template-columns: 1fr; } }

.post-article { background: var(--white); border-radius: 20px; overflow: hidden; border: 1px solid var(--border); }
.post-article .post-img { background: var(--dark); }
.post-article .post-img img { width: 100%; height: auto; max-height: 520px; object-fit: cover; }
.post-body { padding: 2.2rem 2.4rem 2.4rem; }
@media (max-width: 620px) { .post-body { padding: 1.5rem 1.3rem; } }
.post-body h1 { font-weight: 900; font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.12; margin-bottom: 1rem; }
.post-meta {
  display: flex; align-items: center; gap: 1.3rem; flex-wrap: wrap; padding: .9rem 0 1.2rem; margin-bottom: 1.6rem;
  border-bottom: 2px solid #f0f0e2; color: var(--gray); font-size: .88rem;
}
.post-meta span { display: inline-flex; align-items: center; gap: .4rem; }
.post-meta i { color: var(--lime-dk); }
.post-content { font-size: 1.03rem; line-height: 1.85; color: #3d3d39; overflow-wrap: anywhere; }
.post-content p { margin-bottom: 1.1rem; }
.post-content h2, .post-content h3 { font-weight: 900; color: var(--dark); margin: 1.6rem 0 .7rem; line-height: 1.2; }
.post-content ul, .post-content ol { margin: 0 0 1.1rem 1.4rem; }
.post-content li { margin-bottom: .35rem; }
.post-content a { color: var(--lime-ink); font-weight: 600; }
.post-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 1rem 0; }
.post-content blockquote { border-left: 4px solid var(--lime); background: var(--off); padding: .9rem 1.2rem; border-radius: 0 10px 10px 0; margin: 1.2rem 0; }

.post-tags { background: var(--off); border-left: 4px solid var(--lime); border-radius: 12px; padding: 1.1rem 1.3rem; margin-top: 2rem; display: flex; gap: .8rem; align-items: flex-start; }
.post-tags > i { color: var(--lime-dk); font-size: 1.1rem; margin-top: .25rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; }
.tag-list a {
  display: inline-block; padding: .35rem .9rem; background: var(--white); color: #4a4a46; text-decoration: none;
  border-radius: 50px; font-size: .82rem; border: 1.5px solid #e2e2d6; transition: all .2s;
}
.tag-list a:hover { background: var(--dark); color: var(--lime); border-color: var(--dark); transform: translateY(-2px); }
.tag-list a small { color: var(--gray); margin-left: .2rem; }
.tag-list a:hover small { color: #c7c7c2; }

.share-section { background: var(--off); padding: 1rem 1.3rem; border-radius: 12px; margin-top: 1.2rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.share-section h4 { font-size: .9rem; font-weight: 700; color: #4a4a46; display: flex; align-items: center; gap: .4rem; }
.share-buttons { display: flex; gap: .6rem; }
.share-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%;
  color: #fff; text-decoration: none; transition: transform .2s; font-size: 1.05rem; border: none; cursor: pointer;
}
.share-btn:hover { transform: translateY(-3px) scale(1.08); color: #fff; }
.share-btn.facebook { background: #3b5998; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.linkedin { background: #0a66c2; }
.share-btn.copy-link { background: var(--dark); color: var(--lime); }
.share-note { font-size: .78rem; color: var(--gray); }

/* Sidebar */
.sidebar { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 1.3rem; }
@media (max-width: 991px) { .sidebar { position: static; } }
.sidebar-widget { background: var(--white); border-radius: 18px; padding: 1.4rem; border: 1px solid var(--border); }
.widget-title { font-weight: 900; font-size: 1rem; margin-bottom: 1rem; padding-bottom: .7rem; border-bottom: 1px solid #f0f0ea; position: relative; display: flex; align-items: center; gap: .5rem; }
.widget-title i { color: var(--lime-dk); }
.widget-title::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 48px; height: 3px; background: var(--lime); border-radius: 2px; }
.recent-post-item { display: flex; gap: .8rem; padding: .55rem; border-radius: 12px; text-decoration: none; transition: background .2s, transform .2s; }
.recent-post-item + .recent-post-item { margin-top: .3rem; }
.recent-post-item:hover { background: var(--off); transform: translateX(4px); }
.recent-post-item img { width: 70px; height: 70px; object-fit: cover; border-radius: 10px; flex-shrink: 0; background: var(--dark); }
.recent-post-item h4 { font-size: .87rem; font-weight: 700; color: var(--dark); line-height: 1.35; margin-bottom: .3rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.recent-post-item time { font-size: .76rem; color: var(--gray); display: flex; align-items: center; gap: .3rem; }
.sidebar-cta { background: var(--dark); color: #fff; border: none; position: relative; overflow: hidden; }
.sidebar-cta::after { content: ''; position: absolute; right: -50px; top: -50px; width: 150px; height: 150px; border-radius: 50%; border: 10px solid var(--lime); opacity: .15; }
.sidebar-cta h3 { font-weight: 900; font-size: 1.15rem; margin-bottom: .5rem; }
.sidebar-cta p { color: #b8b8b2; font-size: .87rem; line-height: 1.55; margin-bottom: 1rem; }
.sidebar-cta a { display: inline-flex; align-items: center; gap: .45rem; background: var(--lime); color: var(--dark); font-weight: 700; text-decoration: none; padding: .65rem 1.2rem; border-radius: 50px; font-size: .88rem; }

/* ── FOOTER (igual à index) ── */
.site-footer { background: var(--dark); color: #c7c7c2; padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .9fr 1fr; gap: 2.2rem; padding-bottom: 2.4rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { height: 38px; margin-bottom: 1rem; }
.site-footer p.desc { font-size: .87rem; color: #9a9a94; line-height: 1.6; max-width: 320px; }
.site-footer h5 { font-weight: 700; font-size: .85rem; letter-spacing: 1px; text-transform: uppercase; color: var(--lime); margin-bottom: 1rem; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: .65rem; font-size: .87rem; }
.site-footer ul li a { text-decoration: none; color: #c7c7c2; transition: color .2s; }
.site-footer ul li a:hover { color: var(--lime); }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; }
.footer-contact li i { color: var(--lime); margin-top: .2rem; }
.footer-bottom { border-top: 1px solid var(--line); padding: 1.4rem 0; text-align: center; font-size: .78rem; color: #77776f; }

.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 800; width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.6rem;
  box-shadow: 0 10px 28px rgba(0,0,0,.3); text-decoration: none; transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); color: #fff; }

.fade-in { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .fade-in { opacity: 1; transform: none; transition: none; } }
