/*
Theme Name: AGENOR. Astra Child
Theme URI: https://agenor-estrategia-marketing.euagnr.chatgpt.site/
Description: Site completo e tema-filho do Astra para AGENOR. Estratégia & Marketing.
Author: Agenor Ribeiro
Template: astra
Version: 2.3.0
Text Domain: agenor-astra
*/

:root {
  --agenor-black: #0a0a0a;
  --agenor-dark: #171717;
  --agenor-white: #ffffff;
  --agenor-yellow: #ffd400;
  --agenor-gray: #a8a8a8;
  --agenor-line: rgba(10, 10, 10, 0.2);
}

body.agenor-astra {
  /* Mantém Astra e Elementor alinhados à identidade AGENOR. */
  --ast-global-color-0: #ffd400;
  --ast-global-color-1: #e6bf00;
  --ast-global-color-2: #0a0a0a;
  --ast-global-color-3: #171717;
  --ast-global-color-4: #ffffff;
  --ast-global-color-5: #f2f2f2;
  --ast-global-color-6: #d1d1d1;
  --ast-global-color-7: #a8a8a8;
  --ast-global-color-8: #4d4d4d;
  --e-global-color-primary: #0a0a0a;
  --e-global-color-secondary: #ffffff;
  --e-global-color-text: #171717;
  --e-global-color-accent: #ffd400;
  color: var(--agenor-black);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

/* O kit antigo do Elementor definia os títulos em vermelho. */
body.agenor-astra main h1,
body.agenor-astra main h2,
body.agenor-astra main h3,
body.agenor-astra main h4,
body.agenor-astra main h5,
body.agenor-astra main h6 {
  color: inherit;
}

/* Evita que os estilos globais do Astra substituam os botões da marca. */
body.agenor-astra #conteudo a.button.button-yellow {
  border-color: var(--agenor-yellow);
  background: var(--agenor-yellow);
  color: var(--agenor-black);
}

body.agenor-astra #conteudo a.button.button-yellow:hover {
  border-color: var(--agenor-white);
  background: var(--agenor-white);
  color: var(--agenor-black);
}

body.agenor-astra #conteudo a.button.button-outline {
  border-color: rgba(255, 255, 255, 0.5);
  background: transparent;
  color: var(--agenor-white);
}

body.agenor-astra #conteudo a.button.button-outline:hover {
  border-color: var(--agenor-white);
  background: var(--agenor-white);
  color: var(--agenor-black);
}

body.agenor-astra #conteudo a.button.button-black,
body.agenor-astra #conteudo button.button.button-black {
  border-color: var(--agenor-black);
  background: var(--agenor-black);
  color: var(--agenor-white);
}

body.agenor-astra #conteudo a.button.button-black:hover,
body.agenor-astra #conteudo button.button.button-black:hover {
  border-color: var(--agenor-yellow);
  background: var(--agenor-yellow);
  color: var(--agenor-black);
}

body.agenor-astra #ast-scroll-top,
body.agenor-astra .ast-scroll-top-icon {
  background: var(--agenor-yellow);
  color: var(--agenor-black);
}

body.admin-bar .site-header {
  top: 32px;
}

.agenor-blog-page,
.agenor-single-page {
  padding-top: var(--header-height);
  background: var(--agenor-white);
}

.agenor-astra.blog .site-content > .ast-container,
.agenor-astra.single-post .site-content > .ast-container {
  display: block;
  width: 100%;
  max-width: none;
  padding: 0;
}

.agenor-astra a {
  color: inherit;
}

.agenor-blog-shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.agenor-blog-hero,
.agenor-single-hero {
  padding: 96px 0;
  background: var(--agenor-black);
  color: var(--agenor-white);
}

.agenor-blog-kicker,
.agenor-post-meta,
.agenor-breadcrumbs {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.agenor-blog-kicker {
  margin: 0 0 24px;
  color: var(--agenor-yellow);
}

.agenor-blog-hero h1,
.agenor-single-hero h1 {
  max-width: 1050px;
  margin: 0;
  font-family: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(3.5rem, 7vw, 7rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.065em;
  text-transform: uppercase;
}

.agenor-blog-hero h1 span,
.agenor-single-hero h1 span {
  color: var(--agenor-yellow);
}

.agenor-blog-intro,
.agenor-single-deck {
  max-width: 780px;
  margin: 34px 0 0;
  color: #d0d0d0;
  font-size: 1.2rem;
}

.agenor-blog-archive {
  padding: 90px 0 120px;
  background: var(--agenor-white);
}

.agenor-post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 2px solid var(--agenor-black);
  border-left: 1px solid var(--agenor-line);
}

.agenor-post-card {
  display: flex;
  min-height: 440px;
  flex-direction: column;
  padding: 34px;
  border-right: 1px solid var(--agenor-line);
  border-bottom: 1px solid var(--agenor-line);
  background: var(--agenor-white);
  transition: background 180ms ease;
}

.agenor-post-card:hover {
  background: var(--agenor-yellow);
}

.agenor-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  color: #666;
}

.agenor-post-card h2 {
  margin: auto 0 22px;
  font-family: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(2rem, 3.6vw, 3.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.agenor-post-card h2 a,
.agenor-post-card h2 a:hover {
  color: var(--agenor-black);
  text-decoration: none;
}

.agenor-post-excerpt {
  margin: 0 0 28px;
  color: #555;
}

.agenor-read-more {
  align-self: flex-start;
  padding-bottom: 3px;
  border-bottom: 3px solid var(--agenor-yellow);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
}

.agenor-post-card:hover .agenor-read-more {
  border-color: var(--agenor-black);
}

.agenor-pagination {
  margin-top: 48px;
}

.agenor-pagination .page-numbers {
  display: inline-grid;
  min-width: 44px;
  min-height: 44px;
  margin-right: 6px;
  place-items: center;
  border: 1px solid var(--agenor-black);
  text-decoration: none;
}

.agenor-pagination .current,
.agenor-pagination a:hover {
  background: var(--agenor-yellow);
}

.agenor-breadcrumbs {
  margin: 0 0 52px;
  color: var(--agenor-gray);
}

.agenor-breadcrumbs a {
  color: var(--agenor-white);
}

.agenor-single-hero .agenor-post-meta {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--agenor-gray);
}

.agenor-single-layout {
  display: grid;
  grid-template-columns: minmax(0, 780px) 260px;
  gap: 7vw;
  justify-content: center;
  padding-top: 86px;
  padding-bottom: 110px;
}

.agenor-single-content {
  min-width: 0;
  font-size: 1.08rem;
  line-height: 1.82;
}

.agenor-single-content figure {
  margin: 0 0 44px;
}

.agenor-single-content figure img {
  width: 100%;
  height: auto;
}

.agenor-single-content > p:first-child {
  font-size: 1.25rem;
}

.agenor-single-content h2 {
  margin: 68px 0 20px;
  font-family: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(2.2rem, 4.3vw, 4.2rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.agenor-single-content h3 {
  margin: 42px 0 15px;
  font-size: 1.45rem;
  line-height: 1.3;
}

.agenor-single-content a {
  text-decoration-color: var(--agenor-yellow);
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
}

.agenor-single-content blockquote {
  margin: 42px 0;
  padding: 26px 30px;
  border-left: 8px solid var(--agenor-yellow);
  background: #f2f2f2;
  font-size: 1.18rem;
}

.agenor-single-content table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.agenor-single-content th,
.agenor-single-content td {
  min-width: 180px;
  padding: 14px;
  border: 1px solid var(--agenor-line);
  text-align: left;
}

.agenor-single-content th {
  background: var(--agenor-black);
  color: var(--agenor-white);
}

.agenor-single-aside {
  position: sticky;
  top: 34px;
  align-self: start;
  padding-top: 20px;
  border-top: 5px solid var(--agenor-yellow);
}

.agenor-single-aside h2 {
  margin: 0 0 14px;
  font-size: 1.15rem;
}

.agenor-single-aside p {
  color: #555;
  font-size: 0.9rem;
}

.agenor-single-aside a {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 16px;
  background: var(--agenor-black);
  color: var(--agenor-white);
  font-size: 0.75rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.agenor-single-aside a:hover {
  background: var(--agenor-yellow);
  color: var(--agenor-black);
}

@media (max-width: 800px) {
  .agenor-blog-shell {
    width: calc(100% - 32px);
  }

  .agenor-blog-hero,
  .agenor-single-hero {
    padding: 72px 0;
  }

  .agenor-blog-hero h1,
  .agenor-single-hero h1 {
    font-size: clamp(2.65rem, 12vw, 4.2rem);
    overflow-wrap: break-word;
  }

  .agenor-blog-archive {
    padding: 64px 0 80px;
  }

  .agenor-post-grid,
  .agenor-single-layout {
    grid-template-columns: 1fr;
  }

  .agenor-post-card {
    min-height: 390px;
    padding: 26px;
  }

  .agenor-single-layout {
    gap: 60px;
    padding-top: 60px;
    padding-bottom: 80px;
  }

  .agenor-single-aside {
    position: static;
  }
}

@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}
