/* ==========================================================================
   Kalfen Theme v2 — linguagem visual nova (editorial/revista de tecnologia),
   sem reaproveitar paleta, tipografia ou "boxes" do tema Bootstrap padrão
   nem da v1. Carregado depois de css/styles.css.
   ========================================================================== */

:root{
  --kf-ink: #12100e;        /* quase-preto quente, usado em nav/banner/rodapé */
  --kf-ink-soft: #2a2622;
  --kf-paper: #faf7f2;      /* fundo creme do corpo */
  --kf-paper-2: #f1ebe0;    /* creme um tom mais escuro para separadores sutis */
  --kf-accent: #e24313;     /* laranja-queimado — cor de destaque principal */
  --kf-accent-2: #1c7c54;   /* verde profundo — uso esporádico */
  --kf-line: #e3dccb;
  --kf-muted: #756a5c;
  --kf-cream-text: #f4ede1;
}

/* ---------- base ---------- */
body{
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--kf-paper);
  color: var(--kf-ink);
}
h1, h2, h3, .fw-bolder{
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
  color: var(--kf-ink);
}
a{ color: var(--kf-accent); }
a:hover{ color: var(--kf-ink); }

.kf-kicker{
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--kf-accent);
  margin-bottom: .5rem;
}

/* ---------- navbar ---------- */
.navbar.cor-do-menu{
  background: var(--kf-ink) !important;
  background-image: none !important;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.navbar.cor-do-menu .navbar-brand img{ height: 32px; width: auto; }
.navbar.cor-do-menu .nav-link{
  font-family: "Inter", sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--kf-cream-text) !important;
  opacity: .75;
  padding: .4rem .9rem !important;
  position: relative;
}
.navbar.cor-do-menu .nav-link:hover{ opacity: 1; }
.navbar.cor-do-menu .nav-link::after{
  content: "";
  position: absolute;
  left: .9rem;
  right: .9rem;
  bottom: 0;
  height: 2px;
  background: var(--kf-accent);
  transform: scaleX(0);
  transition: transform .18s ease;
}
.navbar.cor-do-menu .nav-link:hover::after{ transform: scaleX(1); }

/* ---------- banner em destaque (substitui o hero de texto) ---------- */
.kf-banner{
  background: var(--kf-ink);
  color: var(--kf-cream-text);
  padding: 3.5rem 0;
}
.kf-banner .row{ align-items: center; }
.kf-banner h1{
  color: #fff !important;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  line-height: 1.12;
  margin-bottom: 1rem;
}
.kf-banner p{
  color: rgba(244,237,225,.75);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 46ch;
}
.kf-banner .kf-cta{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--kf-accent) !important;
}
.kf-banner .kf-cta:hover{ color: #fff !important; }
.kf-banner .kf-figure{
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
}
.kf-banner .kf-figure img{
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

/* ---------- seção "últimas publicações" ---------- */
.kf-section-label{
  display: flex;
  align-items: center;
  gap: .9rem;
  margin: 3rem 0 1.75rem;
}
.kf-section-label span{
  font-family: "Inter", sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--kf-ink);
  white-space: nowrap;
}
.kf-section-label::after{
  content: "";
  flex: 1;
  height: 1px;
  background: var(--kf-line);
}

/* posts sem "caixa" — estilo editorial, com linha divisória */
.kf-post{
  border: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border-bottom: 1px solid var(--kf-line) !important;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem !important;
}
.kf-post .card-img-top{
  border-radius: 6px;
  height: 170px;
  object-fit: cover;
  margin-bottom: 1rem;
}
.kf-post .card-body{ padding: 0 !important; }
.kf-post .card-title{
  font-size: 1.15rem;
  line-height: 1.3;
  margin-bottom: .5rem;
}
.kf-post .card-text{
  color: var(--kf-muted);
  font-family: "Inter", sans-serif;
  font-size: .92rem;
  line-height: 1.55;
}
.kf-post a:hover .card-title{ color: var(--kf-accent); }
.kf-post .small.text-muted{
  font-family: "Inter", sans-serif;
  color: #a39a8c !important;
  font-weight: 600;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: .6rem;
}

/* ---------- paginação ---------- */
.pagination .page-link{
  border: none;
  background: transparent;
  color: var(--kf-muted);
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: .85rem;
}
.pagination .page-item.active .page-link{ color: var(--kf-accent); }
.pagination .page-link:hover{ color: var(--kf-ink); background: transparent; }
.kf-post + nav hr, nav[aria-label="Pagination"] hr{ border-color: var(--kf-line); opacity: 1; }

/* ---------- publicações por categoria (3 colunas) ---------- */
.kf-cats{ padding: 1rem 0 3rem; }
.kf-cat-head{
  display: flex;
  align-items: baseline;
  gap: .5rem;
  margin-bottom: 1.1rem;
}
.kf-cat-mark{
  font-family: "Inter", sans-serif;
  font-weight: 800;
  color: var(--kf-accent);
  font-size: 1.1rem;
}
.kf-cat-head h2{
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0;
}
.kf-cat-figure{ display: block; margin-bottom: 1.1rem; }
.kf-cat-figure img{
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
.kf-cat-featured-title{
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--kf-ink);
  text-decoration: none;
  margin-bottom: .5rem;
}
.kf-cat-featured-title:hover{ color: var(--kf-accent); }
.kf-cat-excerpt{
  font-family: "Inter", sans-serif;
  font-size: .92rem;
  color: var(--kf-muted);
  line-height: 1.55;
  margin-bottom: .5rem;
}
.kf-cat-featured-date{ margin-bottom: 1.25rem; }
.kf-cat-item-date{
  display: block;
  font-family: "Inter", sans-serif;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: #a39a8c;
}
.kf-cat-list{
  list-style: none;
  margin: 0;
  padding: 0;
}
.kf-cat-item{
  padding: .85rem 0;
  border-top: 1px solid var(--kf-line);
}
.kf-cat-item-title{
  display: block;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: .93rem;
  line-height: 1.4;
  color: var(--kf-ink);
  text-decoration: none;
  margin-bottom: .3rem;
}
.kf-cat-item-title:hover{ color: var(--kf-accent); }

.kf-ver-mais{
  display: block;
  width: 100%;
  margin-top: 1.1rem;
  padding: .6rem 0;
  background: transparent;
  border: 1px solid var(--kf-ink);
  border-radius: 4px;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--kf-ink);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.kf-ver-mais:hover{ background: var(--kf-ink); color: #fff; }

/* ---------- ajustes de responsivo ---------- */
@media (max-width: 991.98px){
  .kf-banner{ padding: 2.25rem 0; }
  .kf-banner .kf-figure img{ height: 200px; }
  .kf-banner h1{ font-size: 1.6rem; }
  .kf-cats{ padding: .5rem 0 1.5rem; }
  .kf-cat-col{ margin-bottom: 2.25rem; }
  .kf-cat-col:last-child{ margin-bottom: 0; }
  .kf-cat-figure img{ height: 200px; }
  .kf-trust-card{ flex-direction: column; align-items: flex-start; text-align: left; }
}

/* ---------- tira de confiança (autor + loja) ---------- */
.kf-trust-strip{ padding-bottom: 3.5rem; }
.kf-trust-card{
  display: flex;
  gap: 1rem;
  align-items: center;
  border-top: 2px solid var(--kf-ink);
  padding-top: 1.25rem;
}
.kf-trust-card img{ flex-shrink: 0; }
.kf-author-card img{
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
}
.kf-author-card h3{
  font-family: "Inter", sans-serif;
  font-size: .95rem;
  font-weight: 700 !important;
  margin-bottom: .2rem;
}
.kf-trust-card p{ font-size: .88rem; color: var(--kf-muted); margin-bottom: 0; }
.kf-store-inline img{ height: 30px; width: auto; }
.kf-store-inline p{ margin-bottom: .6rem; }
.kf-store-inline a.btn{
  background: var(--kf-ink);
  border-color: var(--kf-ink);
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 4px;
  padding: .4rem .9rem;
}
.kf-store-inline a.btn:hover{ background: var(--kf-accent); border-color: var(--kf-accent); color: #fff; }

/* ---------- sidebar ---------- */
.col-lg-4 .card{
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  border-top: 2px solid var(--kf-ink) !important;
}
.col-lg-4 .card-header{
  background: transparent !important;
  border: none !important;
  font-family: "Inter", sans-serif;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--kf-ink);
  padding: .9rem 0 .5rem;
}
.col-lg-4 .card-body{ padding: 0 0 1.75rem; }
.col-lg-4 .card-body p{ margin-bottom: .75rem; font-size: .92rem; }
.col-lg-4 .card-body a{ color: var(--kf-ink-soft); font-weight: 600; }
.col-lg-4 .card-body a:hover{ color: var(--kf-accent); }

.kf-author-card .card-body{
  display: flex;
  gap: .9rem;
  align-items: flex-start;
}
.kf-author-card img{
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--kf-paper-2);
}
.kf-author-card h3{
  font-size: .92rem;
  margin-bottom: .2rem;
  font-family: "Inter", sans-serif;
  font-weight: 700 !important;
}
.kf-author-card p{
  font-size: .85rem;
  color: var(--kf-muted);
  line-height: 1.5;
}

.kf-store-card{
  background: var(--kf-paper-2) !important;
  border-top: none !important;
  border-radius: 8px !important;
  padding: 1.25rem;
}
.kf-store-card img{ height: 26px; width: auto; margin-bottom: .75rem; }
.kf-store-card p{ font-size: .88rem; color: var(--kf-ink-soft); margin-bottom: .9rem; }
.kf-store-card a.btn{
  background: var(--kf-ink);
  border-color: var(--kf-ink);
  font-family: "Inter", sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 4px;
}
.kf-store-card a.btn:hover{ background: var(--kf-accent); border-color: var(--kf-accent); }

/* ---------- rodapé ---------- */
footer.cor-do-menu{
  background: var(--kf-ink) !important;
  background-image: none !important;
  padding: 2.5rem 0 !important;
}
footer.cor-do-menu p{ color: rgba(244,237,225,.6) !important; font-size: .85rem; }
