/* =====================================================
   SOLIDARIEDADE ZÉ MARIA — STYLESHEET
   Brutalist Political Campaign / 2026
   ===================================================== */

/* ---------- VARIABLES ---------- */
:root {
  --bg: #f4f1ea;
  --ink: #0a0a0a;
  --red: #d40000;
  --red-dark: #9c0000;
  --muted: #6b6b6b;
  --rule: #0a0a0a;
  --paper: #ffffff;

  --font-display: 'Archivo Black', 'Helvetica Neue', Arial, sans-serif;
  --font-sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Newsreader', Georgia, serif;

  --max: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4, p { margin: 0; }

::selection { background: var(--red); color: var(--bg); }

/* ---------- UTILITIES ---------- */
.badge {
  display: inline-block;
  padding: 5px 11px 4px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
}
.badge--urgent {
  background: var(--red);
  color: var(--bg);
}

/* ---------- TOPBAR ---------- */
.topbar {
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.topbar__brand {
  font-weight: 700;
  text-decoration: none;
}
.topbar__brand:hover { color: var(--red); }
.topbar__meta { color: var(--muted); }
.topbar__status::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  margin-right: 8px;
  vertical-align: middle;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* ---------- HERO ---------- */
.hero {
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.hero__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 80px) var(--gutter) clamp(48px, 7vw, 88px);
}
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(28px, 4vw, 40px);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  flex-wrap: wrap;
}
.hero__case { color: var(--ink); font-weight: 500; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(48px, 11vw, 156px);
  line-height: 0.88;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.hero__title-accent {
  color: var(--red);
  display: inline-block;
  position: relative;
}
.hero__title-accent::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.05em;
  height: 0.0em;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  animation: underline 1.2s cubic-bezier(0.7, 0, 0.3, 1) 0.6s forwards;
}
@keyframes underline {
  to { transform: scaleX(1); }
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.hero__lede {
  max-width: 56ch;
  font-family: var(--font-serif);
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.45;
  font-weight: 400;
}
.hero__counter {
  text-align: right;
  border-left: 1px solid var(--rule);
  padding-left: clamp(20px, 3vw, 40px);
}
.counter__number {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.counter__label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 6px;
  color: var(--muted);
}

/* Hero 2 */

.hero--v2 .hero__title{
    font-size: clamp(32px, 10vw,86px);
}

.hero--v2 .hero__poster-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero--v2 .hero__poster-img img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.hero--v2 .hero__title-eyebrow {
  display: block;
  font-size: 0.5em;
  font-weight: 200;
  opacity: 0.3;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .hero--v2 .hero__poster-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- CTA ---------- */
.hero__cta {
  display: flex;
  border: 2px solid var(--ink);
  max-width: 720px;
}
.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(18px, 2.5vw, 24px) clamp(20px, 3vw, 32px);
  font-family: var(--font-sans);
  font-size: clamp(15px, 1.5vw, 19px);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  background: transparent;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.cta:active { transform: translateY(1px); }

.cta--primary {
  flex: 1 1 auto;
  background: var(--ink);
  color: var(--bg);
}
.cta--primary:hover {
  background: var(--red);
}
.cta--secondary {
  background: var(--bg);
  color: var(--ink);
  border-left: 2px solid var(--ink);
}
.cta--secondary:hover {
  background: var(--ink);
  color: var(--bg);
}
.cta__arrow {
  font-size: 1.4em;
  transition: transform 0.2s cubic-bezier(0.7, 0, 0.3, 1);
}
.cta:hover .cta__arrow {
  transform: translateX(6px);
}

.cta--large {
  padding: 28px 40px;
  font-size: clamp(18px, 2vw, 24px);
}

/* ---------- SECTION COMMON ---------- */
.section {
  border-bottom: 1px solid var(--rule);
}
.section__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) var(--gutter);
}
.section__head {
  margin-bottom: clamp(32px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.section__index {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}
.section__subtitle {
  font-family: var(--font-serif);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  max-width: 60ch;
  margin-top: 12px;
  color: var(--ink);
}

/* ---------- O CASO ---------- */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
}
.case-card {
  padding: clamp(24px, 3vw, 40px) clamp(20px, 2.5vw, 32px);
  border-right: 1px solid var(--rule);
  background: var(--bg);
  transition: background 0.2s ease;
}
.case-card:hover { background: var(--paper); }
.case-card--last { border-right: none; }
.case-card__num {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 900;
  line-height: 1;
  color: var(--red);
  margin-bottom: 20px;
}
.case-card__title {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 12px;
  line-height: 1.1;
}
.case-card__body {
  font-family: var(--font-serif);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.55;
}
.case-card__body strong {
  font-weight: 500;
  background: var(--red);
  color: var(--bg);
  padding: 1px 6px;
}

.pullquote {
  margin: clamp(48px, 6vw, 80px) 0 0;
  padding: clamp(32px, 4vw, 48px) 0 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: stretch;
}

.pullquote__text {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 24px);
  border-left: 4px solid var(--red);
  padding-left: clamp(20px, 2.5vw, 32px);
}

.pullquote__lede {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 40px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0;
}

.pullquote__intro {
  font-family: var(--font-sans);
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.55;
  font-weight: 400;
  color: var(--ink);
  margin: 0;
}

.pullquote__quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(19px, 2.2vw, 28px);
  line-height: 1.35;
  font-weight: 400;
  color: var(--ink);
  margin: 0;
}

.pullquote__reaffirm {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

.pullquote__cite {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  margin-top: 4px;
}

.pullquote__figure {
  margin: 0;
}

.pullquote__image {
  width: 100%;
  height: 100%;
  min-height: 320px;
  background: var(--ink);
  border: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.pullquote__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1) contrast(1.05);
}

.pullquote__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 16px,
      rgba(212, 0, 0, 0.18) 16px,
      rgba(212, 0, 0, 0.18) 32px
    );
}
.pullquote__placeholder-mark {
  font-family: var(--font-display);
  font-size: clamp(80px, 12vw, 144px);
  font-weight: 900;
  color: var(--red);
  letter-spacing: -0.05em;
  line-height: 1;
}
.pullquote__placeholder-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bg);
  opacity: 0.6;
  font-weight: 700;
}

/* ---------- SOLIDARIEDADE ---------- */
.solidarity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  background: var(--bg);
  border: 1px solid var(--ink);
}
.solidarity-card {
  padding: clamp(24px, 2.5vw, 32px);
  background: var(--bg);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 220px;
  transition: background 0.2s ease, color 0.2s ease;
}
.solidarity-card:hover {
  background: var(--ink);
  color: var(--bg);
}
.solidarity-card:hover .solidarity-card__date {
  color: var(--red);
}
.solidarity-card__date {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  transition: color 0.2s ease;
}
.solidarity-card__org {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.solidarity-card__quote {
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.5;
  font-style: italic;
  margin-top: auto;
}
.solidarity-card__arrow {
  font-size: 20px;
  margin-top: 8px;
}
/* ---------- ATUALIZAÇÕES ---------- */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
  min-height: 200px;
}
.posts-loading,
.posts-error {
  grid-column: 1 / -1;
  padding: 48px 24px;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.post-card {
  padding: 0;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  transition: background 0.2s ease;
  overflow: hidden;
}
.post-card:hover { background: var(--paper); }

.post-card__media {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink);
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1) contrast(1.05);
  transition: filter 0.4s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.post-card:hover .post-card__media img {
  filter: grayscale(0) contrast(1);
  transform: scale(1.03);
}

/* Placeholder para posts sem feature_image */
.post-card__media--placeholder {
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 12px,
      rgba(212, 0, 0, 0.15) 12px,
      rgba(212, 0, 0, 0.15) 24px
    );
}
.post-card__placeholder-mark {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 900;
  color: var(--red);
  letter-spacing: -0.04em;
  line-height: 1;
}

.post-card__body {
  padding: clamp(20px, 2.2vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.post-card__date {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.post-card__title {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
.post-card__excerpt {
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card__more {
  margin-top: auto;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--red);
}
.post-card:hover .post-card__more::after {
  content: " →";
}

@media (prefers-reduced-motion: reduce) {
  .post-card__media img {
    transition: filter 0.2s ease;
  }
  .post-card:hover .post-card__media img {
    transform: none;
  }
}

.posts-footer {
  margin-top: 40px;
  text-align: center;
}
.posts-footer__link {
  display: inline-block;
  padding: 16px 28px;
  border: 2px solid var(--ink);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  text-decoration: none;
  background: var(--bg);
  transition: background 0.15s ease, color 0.15s ease;
}
.posts-footer__link:hover {
  background: var(--ink);
  color: var(--bg);
}

/* ---------- CTA FINAL ---------- */
.finalcta {
  background: var(--ink);
  color: var(--bg);
}
.finalcta__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 128px) var(--gutter);
  text-align: center;
}
.finalcta__title {
  font-family: var(--font-display);
  font-size: clamp(48px, 10vw, 144px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.finalcta__title br + * {
  color: var(--red);
}
.finalcta__lede {
  font-family: var(--font-serif);
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.5;
  max-width: 50ch;
  margin: 0 auto 48px;
  color: var(--bg);
  opacity: 0.85;
}
.finalcta__actions {
  display: flex;
  justify-content: center;
  margin-bottom: 56px;
}
.finalcta .cta--primary {
  background: var(--red);
  color: var(--bg);
  border: 2px solid var(--red);
}
.finalcta .cta--primary:hover {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--bg);
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
}
.share-row__label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-right: 8px;
}
.share-btn {
  padding: 10px 18px;
  border: 1px solid var(--bg);
  background: transparent;
  color: var(--bg);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.share-btn:hover {
  background: var(--bg);
  color: var(--ink);
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--bg);
  color: var(--ink);
}
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px var(--gutter) 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}
.footer__logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.footer__small {
  font-size: 13px;
  line-height: 1.5;
  max-width: 32ch;
  color: var(--muted);
}
.footer__label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 14px;
}
.footer__links li { margin-bottom: 8px; }
.footer__links a {
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.footer__links a:hover {
  color: var(--red);
  border-bottom-color: var(--red);
}
.footer__bottom {
  border-top: 1px solid var(--rule);
  padding: 20px var(--gutter);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: var(--max);
  margin: 0 auto;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__credit a {
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  font-weight: 700;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.footer__credit a:hover {
  color: var(--red);
  border-bottom-color: var(--red);
}

/* ---------- INSTAGRAM ---------- */
.instagram-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
}

.instagram-embed {
  border: 2px solid var(--ink);
  background: var(--bg);
  padding: 8px;
  position: relative;
  min-height: 480px;
}

.instagram-embed::before {
  content: "INSTAGRAM";
  position: absolute;
  top: -10px;
  left: 16px;
  background: var(--ink);
  color: var(--bg);
  padding: 3px 10px;
  font-size: 10px;
  letter-spacing: 0.2em;
  font-weight: 700;
  z-index: 2;
}

.instagram-embed .instagram-media {
  margin: 0 !important;
  min-width: 100% !important;
  max-width: 100% !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* ---------- TOAST ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--ink);
  color: var(--bg);
  padding: 14px 24px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  z-index: 100;
  transition: transform 0.3s cubic-bezier(0.7, 0, 0.3, 1);
}
.toast.is-visible {
  transform: translateX(-50%) translateY(0);
}

/* ---------- ANIMATIONS ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero__title {
    animation: rise 1s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
  }
  .hero__lede, .hero__counter {
    animation: rise 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s backwards;
  }
  .hero__cta {
    animation: rise 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s backwards;
  }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__counter {
    border-left: none;
    border-top: 1px solid var(--rule);
    padding-left: 0;
    padding-top: 24px;
    text-align: left;
  }
  .case-grid { grid-template-columns: 1fr; }
  .case-card {
    border-right: none;
    border-bottom: 1px solid var(--rule);
  }
  .case-card--last { border-bottom: none; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .hero__cta { flex-direction: column; }
  .cta--secondary {
    border-left: none;
    border-top: 2px solid var(--ink);
  }
  .pullquote {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .pullquote__image {
    min-height: 280px;
  }
}

@media (max-width: 480px) {
  .topbar__meta { display: none; }
  .pullquote p { font-size: 22px; }
  .pullquote__quote { font-size: 20px; }
  .pullquote__lede { font-size: 26px; }
}

.kuffyah-pattern{
    background: url('/assets/img/kuffyah.png');
    background-size:contain;
    opacity: 0.15;
    height:48px;
    width:100%;
}