/*
Theme Name: B.art Dashboard
Theme URI: https://bart.art.br/
Author: Bartô Minhoto
Description: Tema editorial responsivo para a B.art, inspirado no painel de estratégia e publicidade.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: bartart-dashboard
*/

:root {
  color-scheme: light;
  --ink: #101010;
  --muted: #818181;
  --line: #e9e8e7;
  --canvas: #f1f0ef;
  --paper: #fff;
  --soft: #f7f6f5;
  --black: #090909;
  --blue: #416d9e;
  --radius: 22px;
  font-family: "Poppins", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--canvas); color: var(--ink); }
body, button, input { font-family: "Poppins", ui-sans-serif, system-ui, sans-serif; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #929292; outline-offset: 3px; }
img { display: block; max-width: 100%; }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}
.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-160%);
  border-radius: 999px;
  background: var(--black);
  color: #fff;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: relative;
  z-index: 40;
  min-height: 132px;
  padding: 20px clamp(18px, 2vw, 32px);
  border-bottom: 1px solid #e9e8e7;
  background: var(--canvas);
}
.header-bar {
  position: relative;
  display: flex;
  width: min(1960px, 100%);
  min-height: 90px;
  align-items: center;
  justify-content: space-between;
  gap: clamp(10px, 1.25vw, 26px);
  margin: 0 auto;
  padding-right: 82px;
}
.header-tagline,
.header-location { margin: 0; color: #818181; font-size: clamp(11px, .82vw, 15px); }
.header-tagline { flex: 0 1 auto; white-space: nowrap; }
.header-navigation { flex: 1 1 auto; min-width: 0; }
.header-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.header-menu a { color: #555; font-size: 14px; text-decoration: none; white-space: nowrap; }
.header-menu a:hover,
.header-menu .current-menu-item > a,
.header-menu .current_page_item > a { color: #111; }
.header-location { flex: 0 0 auto; white-space: nowrap; }
.header-socials { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.header-socials a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--black);
  color: #fff;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}
.header-socials a:hover { background: #333; }
.header-brand-mark {
  display: grid;
  place-items: center;
  border: 1px solid #e8e7e6;
  border-radius: 50%;
  background: #fff;
}
.footer-brand-mark { display: grid; width: 80px; height: 80px; place-items: center; }
.header-brand-mark {
  position: absolute;
  right: 0;
  bottom: -34px;
  width: 64px;
  height: 64px;
}
.header-brand-mark .custom-logo-link,
.header-brand-mark .brand-home,
.footer-brand-mark .custom-logo-link,
.footer-brand-mark .brand-home { display: grid; place-items: center; }
.header-brand-mark .custom-logo,
.header-brand-mark img { width: 48px; height: 48px; object-fit: contain; }
.footer-brand-mark .custom-logo,
.footer-brand-mark img { width: 72px; height: 80px; object-fit: contain; }
.mobile-menu-toggle { display: none; }
.mobile-navigation[hidden] { display: none; }
.site-frame {
  width: min(1500px, 100%);
  min-height: calc(100vh - 272px);
  min-height: calc(100dvh - 272px);
  margin: 0 auto;
  padding: 40px clamp(22px, 4vw, 56px) 30px;
}
.main-content { min-width: 0; }
.archive-heading { margin: 0 0 30px; }
.eyebrow {
  margin: 0 0 8px;
  color: #939393;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.archive-title,
.entry-title,
.site-name {
  margin: 0;
  color: #3d3d3d;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(36px, 5vw, 66px);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: .98;
}
.archive-description { max-width: 700px; margin-top: 16px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.archive-description > :first-child { margin-top: 0; }
.archive-description > :last-child { margin-bottom: 0; }
.archive-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 11px;
}
.search-form { display: flex; width: min(300px, 100%); gap: 8px; }
.search-form label { flex: 1 1 auto; min-width: 0; }
.search-field {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
}
.search-submit,
.button-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--black);
  color: #fff;
  cursor: pointer;
  font-size: 11px;
  text-decoration: none;
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(var(--archive-columns, 3), minmax(0, 1fr));
  align-items: start;
  gap: 18px;
}
.post-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #efeeed;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 12px 36px rgba(0, 0, 0, .035);
  transition: transform .2s ease, box-shadow .2s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 18px 42px rgba(0, 0, 0, .08); }
.post-card-image {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #e7e5e3;
}
.post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .post-card-image img { transform: scale(1.025); }
.post-card-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background: linear-gradient(145deg, #f8f7f6, #e6e4e2);
  color: #5c5a58;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 42px;
}
.post-card-body { display: grid; gap: 10px; padding: 18px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; color: #888; font-size: 10px; }
.post-meta a { color: var(--blue); text-decoration: none; }
.post-card-title { margin: 0; font-size: clamp(16px, 1.4vw, 21px); font-weight: 500; letter-spacing: -.035em; line-height: 1.35; }
.post-card-title a { text-decoration: none; }
.post-card-title a:hover { color: var(--blue); }
.post-excerpt { margin: 0; color: #6f6f6f; font-size: 12px; line-height: 1.75; }
.read-more { width: fit-content; margin-top: 2px; color: var(--blue); font-size: 11px; font-weight: 500; text-decoration: none; }
.pagination { display: flex; justify-content: center; gap: 7px; margin-top: 34px; }
.pagination .page-numbers { display: grid; min-width: 38px; height: 38px; place-items: center; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 11px; text-decoration: none; }
.pagination .current { border-color: var(--black); background: var(--black); color: #fff; }
.empty-state { padding: 28px; border: 1px dashed #d4d2d0; border-radius: var(--radius); color: var(--muted); font-size: 13px; text-align: center; }

.entry-card {
  overflow: hidden;
  border: 1px solid #efeeed;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .045);
}
.entry-header { padding: clamp(22px, 4vw, 48px) clamp(20px, 5vw, 64px) 22px; }
.entry-title { max-width: 1000px; font-size: clamp(38px, 6vw, 76px); }
.entry-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 18px; color: #858585; font-size: 11px; }
.entry-featured {
  width: min(720px, calc(100% - 40px));
  aspect-ratio: 4 / 5;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 18px;
  background: var(--soft);
}
.entry-featured img { width: 100%; height: 100%; object-fit: cover; }
.entry-content {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 60px);
  color: #444;
  font-size: 15px;
  line-height: 1.9;
}
.entry-content > :first-child { margin-top: 0; }
.entry-content > :last-child { margin-bottom: 0; }
.entry-content h2, .entry-content h3, .entry-content h4 {
  margin: 1.7em 0 .55em;
  color: #303030;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.8em;
  font-weight: 600;
  line-height: 1.1;
}
.entry-content a { color: var(--blue); }
.entry-content img { height: auto; margin: 28px auto; border-radius: 16px; }
.entry-content blockquote { margin: 28px 0; padding: 5px 0 5px 20px; border-left: 3px solid #111; color: #555; font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.5em; }
.entry-content .wp-block-image { margin: 28px 0; }
.entry-content .wp-block-image img { margin: 0 auto; }
.entry-content .wp-block-gallery { margin: 28px 0; }
.entry-footer { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 clamp(20px, 5vw, 64px) 28px; }
.entry-footer a { padding: 7px 11px; border-radius: 999px; background: #f1f0ef; color: #555; font-size: 10px; text-decoration: none; }
.post-navigation { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.post-navigation a { padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: #fff; font-size: 12px; text-decoration: none; }
.post-navigation span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 9px; text-transform: uppercase; }
.page-content { padding: clamp(22px, 4vw, 48px); }
.page-content .entry-content { width: 100%; padding: 0; }

.site-footer {
  display: grid;
  min-height: 140px;
  place-items: center;
  padding: 24px;
  background: #fff;
}
.footer-brand-mark {
  width: 64px;
  height: 64px;
}
@media (max-width: 1100px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-location { display: none; }
  .header-tagline { max-width: 230px; white-space: normal; }
  .header-menu { gap: 6px 10px; }
  .header-menu a { font-size: 12px; }
  .header-socials a { min-height: 36px; padding-inline: 10px; font-size: 11px; }
}
@media (max-width: 900px) and (min-width: 761px) {
  .header-bar { flex-wrap: wrap; justify-content: flex-start; gap: 8px 14px; }
  .header-tagline { flex: 1 0 100%; }
  .header-navigation { flex: 1 1 260px; }
  .header-menu { justify-content: flex-start; }
  .header-socials { flex: 0 1 auto; }
}
@media (max-width: 760px) {
  .site-header {
    min-height: 0;
    padding: 12px 14px 16px;
  }
  .header-bar {
    display: grid;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px 10px;
    padding: 0;
  }
  .header-tagline {
    max-width: none;
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    font-size: 11px;
    line-height: 1.5;
  }
  .header-navigation { display: none; }
  .header-location {
    display: block;
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 10px;
  }
  .header-socials {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-content: flex-start;
  }
  .header-socials a { min-height: 32px; padding-inline: 10px; font-size: 10px; }
  .header-brand-mark {
    position: static;
    width: 50px;
    height: 50px;
    grid-column: 2;
    grid-row: 1;
  }
  .header-brand-mark .custom-logo,
  .header-brand-mark img { width: 38px; height: 38px; }
  .mobile-menu-toggle {
    display: grid;
    width: 42px;
    height: 42px;
    grid-column: 3;
    grid-row: 1;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
  }
  .mobile-menu-toggle svg { width: 20px; height: 20px; }
  .mobile-navigation {
    position: absolute;
    top: calc(100% + 8px);
    z-index: 45;
    right: 0;
    left: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .12);
  }
  .mobile-navigation[hidden] { display: none; }
  .mobile-menu { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
  .mobile-menu a { display: block; padding: 11px 12px; border-radius: 11px; color: #555; font-size: 12px; text-decoration: none; }
  .mobile-menu a:hover,
  .mobile-menu .current-menu-item > a,
  .mobile-menu .current_page_item > a { background: #f3f2f1; color: #111; }
  .site-frame { min-height: calc(100vh - 220px); padding: 28px 16px 24px; }
  .archive-heading { margin-bottom: 23px; }
  .archive-title { font-size: clamp(38px, 11vw, 58px); }
  .archive-toolbar { align-items: flex-start; flex-direction: column; }
  .search-form { width: 100%; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .post-card-body { gap: 8px; padding: 13px; }
  .post-card-title { font-size: 15px; }
  .post-excerpt { font-size: 11px; }
  .site-footer { min-height: 120px; }
  .footer-brand-mark { width: 72px; height: 72px; }
  .footer-brand-mark .custom-logo,
  .footer-brand-mark img { width: 64px; height: 72px; }
}
@media (max-width: 520px) {
  .post-grid { grid-template-columns: 1fr; }
  .post-card-body { padding: 16px; }
  .post-card-title { font-size: 18px; }
  .entry-header { padding-inline: 18px; }
  .entry-title { font-size: clamp(36px, 12vw, 52px); }
  .entry-featured { width: calc(100% - 36px); border-radius: 14px; }
  .entry-content { padding: 28px 18px; font-size: 14px; }
  .entry-footer { padding-inline: 18px; }
  .post-navigation { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
