/* ==========================================================================
   Editorial layer — teste.kartom.net
   Carregado depois de main.css / wordpress.css. Substitui a estética de
   landing page de vendas por uma leitura de blog: papel, tinta e tipografia.
   ========================================================================== */

:root {
  --red: #8e2b2b;
  --red-dark: #6d1f1f;
  --red-soft: #f4eae8;
  --yellow: #c9a227;
  --yellow-soft: #f7f1e1;
  --ink: #1d1c1a;
  --ink-soft: #3a3835;
  --muted: #6e6a63;
  --cream: #fbfaf7;
  --cream-deep: #f3f0e9;
  --paper: #ffffff;
  --line: #e4dfd5;
  --line-strong: #ccc4b5;
  --green: #1f7a4a;
  --green-dark: #16603a;
  --shadow-sm: 0 0 0 rgba(0, 0, 0, 0);
  --shadow-md: 0 0 0 rgba(0, 0, 0, 0);
  --shadow-lg: 0 0 0 rgba(0, 0, 0, 0);
  --radius-sm: 2px;
  --radius: 3px;
  --radius-lg: 4px;
}

body { background: var(--cream); }
h1, h2, h3, h4 { text-wrap: balance; }
.container { max-width: 1120px; }

/* Header
   ========================================================================== */
.site-header { background: #fff; backdrop-filter: none; }
.header__inner { min-height: 72px; }
.nav__list { gap: 20px; }
.nav__link { font-size: 13px; letter-spacing: .01em; }
.nav__link::after { height: 1px; background: var(--ink); }
.icon-btn {
  width: 38px; height: 38px; border: 0; border-radius: 2px;
  background: transparent; color: var(--ink);
}
.icon-btn:hover { background: var(--cream-deep); border-color: transparent; color: var(--ink); }

/* Buttons
   ========================================================================== */
.btn {
  border-radius: 2px; min-height: 44px; padding: 11px 18px;
  font-size: 14px; box-shadow: none;
}
.btn:hover { transform: none; }
.btn--primary { background: var(--ink); color: #fff; box-shadow: none; }
.btn--primary:hover { background: #000; color: #fff; box-shadow: none; }
.btn--whatsapp { background: var(--ink); color: #fff; }
.btn--whatsapp:hover { background: #000; color: #fff; }
.btn--ghost { border-color: var(--line-strong); }
.btn--quiet { border-color: var(--line-strong); font-weight: 600; }

.wp-block-button__link,
.wp-block-button__link.wp-element-button {
  background: var(--ink); color: #fff; border-radius: 2px;
  font-weight: 600; padding: 12px 20px;
}
.wp-block-button__link:hover,
.wp-block-button__link.wp-element-button:hover { background: #000; color: #fff; }

.btn--whatsapp::before,
.wp-block-button__link[href*="wa.me"]::before {
  content: ""; width: 18px; height: 18px; flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: url("../img/whatsapp.svg") center / contain no-repeat;
  mask: url("../img/whatsapp.svg") center / contain no-repeat;
}

/* Search
   ========================================================================== */
form.search {
  background: #fff; border: 1px solid var(--line-strong); border-radius: 2px;
  box-shadow: none; padding: 4px 4px 4px 14px; margin: 26px 0 0; max-width: 480px;
}
.search__input { font-size: 14px; padding: 8px 0; min-height: 44px; }
.search__btn { min-height: 44px; padding: 8px 14px; background: var(--ink); color: #fff; }

/* Masthead
   ========================================================================== */
.masthead { background: #fff; border-bottom: 1px solid var(--line); padding: 60px 0 52px; }
.masthead__kicker {
  font-size: 11px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 14px;
}
.masthead__title {
  font-family: var(--font-display); font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.06; letter-spacing: -.03em; font-weight: 600; color: var(--ink);
  max-width: 780px;
}
.masthead__lead {
  margin-top: 16px; font-size: 17px; line-height: 1.65;
  color: var(--muted); max-width: 600px;
}

/* Home layout
   ========================================================================== */
.home-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px;
  gap: 64px; padding: 56px 24px 84px;
}
.feed__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  border-bottom: 1px solid var(--ink); padding-bottom: 12px; margin-bottom: 8px;
}
.feed__title { font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.feed__link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink);
}
.feed__link svg { width: 14px; height: 14px; }
.feed__link:hover { color: var(--red); }

.post-list { display: grid; }
.post-item {
  display: grid; grid-template-columns: 210px minmax(0, 1fr);
  gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line);
}
.post-item:last-child { border-bottom: 0; padding-bottom: 0; }
.post-item__thumb {
  display: block; aspect-ratio: 4 / 3; overflow: hidden;
  background: var(--cream-deep); border: 1px solid var(--line); border-radius: 2px;
}
.post-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-item__body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.post-item__cat {
  font-size: 10.5px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--red);
}
.post-item__sticky,
.post-card__sticky {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 7px; background: var(--yellow-soft); color: var(--ink);
  font-size: 10.5px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase;
}
.post-item__sticky svg,
.post-card__sticky svg { width: 12px; height: 12px; }
.post-item__title {
  font-family: var(--font-display); font-size: 26px; line-height: 1.15;
  letter-spacing: -.02em; font-weight: 600;
}
.post-item__title a { color: var(--ink); }
.post-item__title a:hover { color: var(--red); }
.post-item__excerpt { font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.post-item__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: 4px; font-size: 11px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);
}

/* Sidebar
   ========================================================================== */
.home-side { display: flex; flex-direction: column; }
.side-block { padding: 0 0 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.side-block:last-child { border-bottom: 0; margin-bottom: 0; }
.side-block__title {
  font-size: 11px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink); margin-bottom: 12px;
}
.side-block p { font-size: 14px; line-height: 1.65; color: var(--muted); }
.side-block__link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px; font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--red);
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.side-block__link svg { width: 14px; height: 14px; }
.side-list { list-style: none; display: grid; gap: 9px; }
.side-list a { font-size: 14px; color: var(--ink); }
.side-list a:hover { color: var(--red); }

/* Neutralize the old colorful components on archive/search/single
   ========================================================================== */
.post-card { border-radius: 2px; box-shadow: none; }
.post-card:hover { transform: none; box-shadow: none; }
.post-card:hover .post-card__media img { transform: none; }
.post-card__cat,
.post-card__cat--yellow,
.post-card__cat--green,
.post-card__cat--blue {
  background: transparent !important; color: var(--red) !important;
  padding: 0 !important; border-radius: 0 !important;
}
.category-card { border-radius: 2px; }
.category-card:hover { transform: none; box-shadow: none; }
.category-card:nth-child(n) .category-card__icon { background: var(--cream-deep); color: var(--ink); }
.newsletter { background: var(--ink); border-radius: 2px; box-shadow: none; }
.newsletter__form { border-radius: 2px; }
.newsletter p { color: #d8d2c8; }
.article__hero-img { border-radius: 2px; box-shadow: none; }
.author-box__avatar { border-color: var(--line-strong); }
.empty-state { border-radius: 2px; box-shadow: none; }

/* Author page
   ========================================================================== */
.author-profile {
  display: flex; align-items: center; gap: 28px;
  margin: 8px 0 36px; padding: 24px;
  background: var(--paper); border: 1px solid var(--line);
}
.author-profile__photo {
  width: 148px; height: 148px; flex: 0 0 auto;
  border-radius: 50%; object-fit: cover;
  border: 3px solid var(--line-strong); background: var(--cream-deep);
}
.author-profile__name {
  margin: 0; font-family: var(--font-display); font-size: 30px;
  line-height: 1.1; letter-spacing: -.02em; font-weight: 600;
}
.author-profile__role {
  margin: 6px 0 0; font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--red);
}
.author-profile__links {
  display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px;
}
.author-profile__links a {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700;
}
.author-profile__links svg { width: 15px; height: 15px; }

@media (max-width: 600px) {
  .author-profile {
    flex-direction: column; align-items: flex-start;
    gap: 18px; padding: 20px;
  }
  .author-profile__photo { width: 112px; height: 112px; }
  .author-profile__name { font-size: 26px; }
}

/* Footer
   ========================================================================== */
.site-footer { background: #171615; margin-top: 0; }
.footer__grid--no-topics { grid-template-columns: 1.3fr .8fr 1fr; }
.footer__brandmark { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; }
.footer__brandmark img { height: 30px; width: auto; }
.footer__brandmark span {
  font-family: var(--font-display); font-size: 20px; font-weight: 600;
  letter-spacing: -.03em; color: #fff;
}
.footer__brandmark .footer__tld { color: #9a938a; font-weight: 500; }
.footer__list a:hover,
.footer__contact a:hover,
.footer__legal a:hover { color: #fff; }
.footer__social a:hover { background: #fff; border-color: #fff; color: var(--ink); }

/* Reading pages
   ========================================================================== */
.archive-header { padding-top: 48px; }
.archive-title, .breadcrumbs, .archive-description { overflow-wrap: anywhere; }
.archive-title { font-size: clamp(30px, 4vw, 44px); letter-spacing: -.03em; }
.article__title { letter-spacing: -.03em; }
.article__content { font-size: 17.5px; }
.article__content h2 { margin-top: 2em; }
.article__content h3 { margin-top: 1.6em; }

.article__cat {
  background: transparent; color: var(--red);
  padding: 0; border-radius: 0; font-size: 11px;
  font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}

@media (min-width: 921px) {
  .article__header {
    max-width: calc(100% - 384px);
    margin-left: 0;
    margin-right: auto;
  }
}

.wp-block-group.callout,
.wp-block-group.author-box {
  display: block;
  border-radius: 2px;
}
.wp-block-group.callout > * + *,
.wp-block-group.author-box > * + * { margin-top: 14px; }

.callout--tip { background: var(--cream-deep); border-color: var(--line); }
.callout--tip .callout__icon { background: var(--cream); color: var(--ink); }

.error-404__code { color: var(--ink); }

/* The sales floating button does not belong on a blog
   ========================================================================== */
.whatsapp-float { display: none !important; }

/* Acessibilidade — foco, skip link e contraste
   ========================================================================== */
#conteudo { scroll-margin-top: 90px; }
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.site-footer :focus-visible { outline-color: #ffc107; }

input:focus-visible,
textarea:focus-visible,
select:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.search__input:focus-visible { outline: none; }

form.search:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px var(--ink);
}

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 1000;
  padding: 12px 18px; background: var(--ink); color: #fff;
  font-size: 14px; font-weight: 700; border-radius: 2px;
  transform: translateY(-200%); transition: transform .15s ease;
}
.skip-link:focus { transform: translateY(0); color: #fff; }

.search__input::placeholder { color: var(--muted); opacity: 1; }

.sidebar-card--whatsapp { background: var(--green-dark); color: #fff; }
.sidebar-card--whatsapp .sidebar-card__title,
.sidebar-card--whatsapp p { color: #fff; }

.icon-btn { min-width: 44px; min-height: 44px; }
.share__btn { min-width: 44px; min-height: 44px; }
.footer__social a { width: 44px; height: 44px; }
.contact-cta :focus-visible,
.contact-card--whatsapp :focus-visible { outline-color: #ffc107; outline-offset: 3px; }

/* Contact page
   ========================================================================== */
.contact-page { padding-bottom: 64px; }
.contact-hero { max-width: 760px; padding: 48px 0 40px; }
.contact-hero__title {
  font-family: var(--font-display); font-size: clamp(36px, 4.4vw, 52px);
  line-height: 1.06; letter-spacing: -.03em; margin-top: 10px;
}
.contact-hero__lead { margin-top: 14px; font-size: 17px; line-height: 1.65; color: var(--muted); }
.contact-intro { max-width: 760px; margin: -8px 0 28px; font-size: 15px; line-height: 1.65; color: var(--muted); }
.contact-intro p { margin: 0; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 2px;
}
.contact-card__title {
  font-size: 11px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink);
}
.contact-card p { font-size: 14px; line-height: 1.65; color: var(--muted); }
.contact-card--whatsapp { background: var(--green-dark); border-color: var(--green-dark); }
.contact-card--whatsapp .contact-card__title,
.contact-card--whatsapp p,
.contact-card--whatsapp .contact-phone { color: #fff; }
.contact-phone {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-family: var(--font-display); font-size: 24px; font-weight: 600;
  letter-spacing: -.02em; color: var(--ink);
}
.contact-address-link { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.contact-address-link:hover, .contact-address-link:focus-visible { color: var(--red); text-decoration-color: currentColor; }
.contact-cnpj { margin-top: 2px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.contact-phone svg { width: 20px; height: 20px; }
.contact-card--whatsapp .btn { background: #fff; color: var(--ink); margin-top: 6px; }
.contact-card--whatsapp .btn:hover { background: var(--cream); color: var(--ink); }
.contact-text-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--red);
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.contact-text-link svg { width: 14px; height: 14px; }
.contact-social { display: grid; gap: 12px; }
.contact-social a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; color: var(--ink); }
.contact-social a:hover { color: var(--red); }

.contact-about {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(220px, .7fr);
  gap: 56px; padding: 48px 0; border-top: 1px solid var(--line); margin-top: 40px;
}
.contact-about h2 {
  font-family: var(--font-display); font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.1; letter-spacing: -.02em; margin-top: 10px;
}
.contact-about p { margin-top: 14px; font-size: 15px; line-height: 1.7; color: var(--muted); }
.contact-about__text > .contact-text-link { margin-top: 18px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.contact-stats {
  list-style: none; display: grid; gap: 18px; align-content: start;
  border-left: 1px solid var(--line); padding-left: 28px;
}
.contact-stats strong {
  display: block; font-family: var(--font-display); font-size: 32px;
  font-weight: 600; line-height: 1;
}
.contact-stats span {
  display: block; margin-top: 4px; font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}

.contact-faq {
  padding: 40px 0 8px; border-top: 1px solid var(--line); margin-top: 8px;
}
.contact-faq h2 {
  font-family: var(--font-display); font-size: clamp(26px, 3vw, 34px);
  line-height: 1.1; letter-spacing: -.02em;
}
.contact-faq__list { display: grid; gap: 10px; margin-top: 20px; }
.contact-faq__item {
  background: #fff; border: 1px solid var(--line); border-radius: 2px;
  padding: 0 18px;
}
.contact-faq__item summary {
  cursor: pointer; padding: 14px 0; min-height: 44px;
  font-size: 15px; font-weight: 600; color: var(--ink);
}
.contact-faq__item summary::marker { color: var(--red); }
.contact-faq__item p {
  margin: 0 0 16px; font-size: 14.5px; line-height: 1.65; color: var(--muted);
}

.contact-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 30px 34px; background: var(--ink); color: #fff;
  border-radius: 2px; margin-top: 8px;
}
.contact-cta h2 {
  font-family: var(--font-display); font-size: 28px;
  line-height: 1.15; letter-spacing: -.02em; color: #fff;
}
.contact-cta p { margin-top: 8px; font-size: 14px; line-height: 1.6; color: #c9c4bb; }
.contact-cta .btn { background: #fff; color: var(--ink); flex: 0 0 auto; }
.contact-cta .btn:hover { background: var(--cream); color: var(--ink); }

@media (max-width: 760px) {
  .contact-grid,
  .contact-about { grid-template-columns: 1fr; }
  .contact-about { gap: 32px; }
  .contact-stats {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px; border-left: 0; padding-left: 0;
  }
  .contact-cta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  .contact-hero { padding: 36px 0 30px; }
  .contact-card { padding: 20px; }
  .contact-stats { grid-template-columns: 1fr; gap: 12px; }
}

/* Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .footer__grid--no-topics { grid-template-columns: 1.2fr .8fr 1fr; }
  .footer__grid--no-topics > :last-child { grid-column: auto; }
}

@media (max-width: 980px) {
  .home-layout { grid-template-columns: 1fr; gap: 40px; }
  .home-side { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
  .home-side .side-block:last-child:nth-child(3) { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .masthead { padding: 42px 0 38px; }
  .home-layout { padding: 40px 18px 56px; }
  .post-item { grid-template-columns: 150px minmax(0, 1fr); gap: 16px; }
  .post-item__title { font-size: 21px; }
  .home-side { grid-template-columns: 1fr; }
  .search__input { font-size: 16px; }
}

@media (min-width: 1081px) {
  .mobile-nav { display: none !important; }
}

@media (max-width: 720px) {
  .footer__grid--no-topics { grid-template-columns: 1fr 1fr; }
  .footer__grid--no-topics > :first-child { grid-column: 1 / -1; }
  .footer__grid--no-topics > :last-child { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .post-item { grid-template-columns: 1fr; }
  .post-item__thumb { aspect-ratio: 16 / 9; }
}

@media (max-width: 480px) {
  .footer__grid--no-topics { grid-template-columns: 1fr; }
  .footer__grid--no-topics > :first-child,
  .footer__grid--no-topics > :last-child { grid-column: auto; }
}

.masthead__topics { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 24px; }
.masthead__trust { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 18px; font-size: 12.5px; color: var(--muted); }
.masthead__trust a,
.masthead__trust span { display: inline-flex; align-items: center; gap: 6px; }
.masthead__trust a { min-height: 44px; color: var(--ink-soft); }
.masthead__trust a:hover { color: var(--red); }
.masthead__trust .icon { color: var(--red); flex: 0 0 auto; }
.masthead__topics-label { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.topic-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.topic-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; font-size: 13px; color: var(--ink); }
a.topic-chip:hover { border-color: var(--red); color: var(--red); }
.topic-chip--soon { color: var(--muted); background: var(--cream); border-style: dashed; cursor: default; }
.topic-chip--soon span { font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
@media (min-width: 900px) {
  .container--page { max-width: 860px; }
}
.page-content .article__header { max-width: 100%; }
.empty-state > .btn { margin-top: 16px; }
.cat-soon { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); }
.cat-soon > span { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; border: 1px solid var(--line-strong); border-radius: 999px; padding: 2px 6px; }
.site-footer .cat-soon,
.site-footer .cat-soon > span { color: #b9b1a7; }
.site-footer .cat-soon { display: inline; font-size: 13px; white-space: nowrap; }
.site-footer .cat-soon > span { border: 0; padding: 0; font-size: 10px; letter-spacing: .02em; }

@media (max-width: 400px) {
  .empty-state { padding: 24px 16px; }
  .empty-state form.search {
    display: grid; grid-template-columns: 20px minmax(0, 1fr);
    gap: 8px; padding: 8px 10px;
  }
  .empty-state form.search .search__btn { grid-column: 2; width: 100%; }
}

@media print {
  html, body { background: #fff !important; }
  .skip-link { display: none !important; }

  .contact-card--whatsapp,
  .contact-cta {
    background: #fff !important;
    color: var(--ink) !important;
    border: 1px solid var(--ink) !important;
  }

  .contact-card--whatsapp .contact-card__title,
  .contact-card--whatsapp p,
  .contact-card--whatsapp .contact-phone,
  .contact-cta h2,
  .contact-cta p,
  .contact-cta .btn { color: var(--ink) !important; }

  .contact-card--whatsapp .btn,
  .contact-cta .btn {
    background: #fff !important;
    border: 1px solid var(--ink) !important;
  }
}
