/*
Theme Name:  Astra Child — Securion
Theme URI:   https://securion.com.br/blog
Description: Tema filho do Astra customizado para o Blog Securion Segurança Eletrônica. Design system v1.0.
Author:      Securion Segurança Eletrônica
Template:    astra
Version:     1.0.0
Text Domain: astra-child-securion
*/

/* ── Importar Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&family=Space+Mono&display=swap');

/* ── Tokens globais ── */
:root {
  --azul-securion:   #04395B;
  --verde-securion:  #2AB766;
  --azul-profundo:   #0A2137;
  --cinza-securion:  #545454;
  --cinza-claro:     #F4F7FA;
  --branco:          #FFFFFF;
  --cor-texto:       #1A1A2E;
  --cor-borda:       rgba(4, 57, 91, 0.10);
  --shadow-card:     0 2px 12px rgba(4, 57, 91, 0.07);
  --shadow-hover:    0 6px 24px rgba(4, 57, 91, 0.12);
  --shadow-header:   0 2px 16px rgba(10, 33, 55, 0.20);
  --radius-card:     14px;
  --dur-normal:      200ms;
  --dur-fast:        120ms;
  --easing:          cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Fundo geral ── */
body { background-color: #F4F7FA !important; }

/* ── Header: underline no item ativo ── */
.main-header-menu .menu-item.current-menu-item > a,
.main-header-menu .menu-item.current-menu-ancestor > a {
  color: #FFFFFF !important;
  position: relative;
}
.main-header-menu .menu-item.current-menu-item > a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: #2AB766;
  border-radius: 2px;
}

/* ── Cards de post ── */
.ast-article-post,
.ast-blog-single-element {
  background: #FFFFFF;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(4, 57, 91, 0.08);
  overflow: hidden;
  transition: transform var(--dur-normal) var(--easing),
              box-shadow var(--dur-normal) var(--easing);
}
.ast-article-post:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

/* ── Thumbnail do card ── */
.ast-article-post .wp-post-image {
  border-radius: 14px 14px 0 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* ── Categoria pill ── */
.post-category-link a,
.cat-links a,
.entry-meta .cat-links a {
  background: rgba(42, 183, 102, 0.12) !important;
  color: #2AB766 !important;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 999px;
  display: inline-block;
  text-decoration: none;
}

/* ── Títulos dos cards ── */
.ast-article-post h2.entry-title a {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #0A2137;
  line-height: 1.3;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ast-article-post h2.entry-title a:hover { color: #2AB766; }

/* ── Excerpt ── */
.ast-article-post .ast-excerpt p {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #545454;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Data e meta ── */
.ast-article-post .entry-meta,
.ast-article-post .ast-meta-info {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: #7A7A8A;
}

/* ── Link "Leia mais" ── */
.ast-article-post .more-link {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: #04395B;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--dur-normal) var(--easing), color var(--dur-normal) var(--easing);
}
.ast-article-post .more-link:hover {
  color: #2AB766;
  gap: 8px;
}

/* ── Post individual — conteúdo ── */
.single .entry-content {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: #1A1A2E;
  line-height: 1.75;
}
.single .entry-content p:first-of-type {
  font-size: 18px;
  line-height: 1.7;
  color: #1A1A2E;
}
.single .entry-content h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 28px;
  color: #0A2137;
  margin-top: 40px;
  margin-bottom: 16px;
}
.single .entry-content h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 22px;
  color: #04395B;
  margin-top: 32px;
  margin-bottom: 12px;
}
.single .entry-content a {
  color: #04395B;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.single .entry-content a:hover { color: #2AB766; }

/* ── Callout box / blockquote ── */
.single .entry-content blockquote,
.callout-box {
  background: rgba(42, 183, 102, 0.08);
  border-left: 3px solid #2AB766;
  border-radius: 0 10px 10px 0;
  padding: 20px 24px;
  margin: 32px 0;
  font-style: normal;
}
.single .entry-content blockquote p {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #04395B;
  margin: 0;
}

/* ── Lista com bullet verde ── */
.single .entry-content ul li::marker { color: #2AB766; }
.single .entry-content ul li { padding-left: 4px; margin-bottom: 8px; }

/* ── Tags do post ── */
.post-tags a,
.tags-links a {
  background: rgba(4, 57, 91, 0.08);
  color: #04395B;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  margin: 4px 4px 4px 0;
  transition: background var(--dur-fast) var(--easing);
}
.post-tags a:hover,
.tags-links a:hover { background: rgba(4, 57, 91, 0.15); color: #04395B; }

/* ── CTA Pós-Post ── */
.cta-pos-post {
  background: #04395B;
  border-radius: 16px;
  border-left: 4px solid #2AB766;
  padding: 32px 40px;
  margin: 48px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta-pos-post h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #FFFFFF;
  margin: 0 0 8px;
}
.cta-pos-post p {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}
.cta-pos-post a.btn-cta {
  background: #2AB766;
  color: #FFFFFF;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--dur-normal) var(--easing), transform var(--dur-fast) var(--easing);
}
.cta-pos-post a.btn-cta:hover {
  background: #1F9A54;
  transform: translateY(-1px);
}
@media (max-width: 767px) {
  .cta-pos-post { flex-direction: column; padding: 24px 20px; }
  .cta-pos-post a.btn-cta { width: 100%; text-align: center; }
}

/* ── Sidebar widgets ── */
.widget {
  background: #FFFFFF;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 24px;
  margin-bottom: 24px;
}
.widget-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #0A2137;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 2px solid #2AB766;
  padding-bottom: 12px;
  margin-bottom: 16px;
}

/* ── Paginação ── */
.pagination .page-numbers {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #04395B;
  padding: 8px 14px;
  border: 1px solid rgba(4, 57, 91, 0.20);
  border-radius: 8px;
  text-decoration: none;
  transition: all var(--dur-fast) var(--easing);
}
.pagination .page-numbers.current {
  background: #04395B;
  color: #FFFFFF;
  border-color: #04395B;
}
.pagination .page-numbers:hover:not(.current) {
  background: rgba(4, 57, 91, 0.08);
}

/* ── Breadcrumb ── */
.astra-breadcrumbs,
.breadcrumbs {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: #545454;
  padding: 12px 0;
}
.astra-breadcrumbs a { color: #04395B; text-decoration: none; }
.astra-breadcrumbs a:hover { color: #2AB766; }

/* ── Hero strip do blog ── */
.blog-hero-strip {
  background: #04395B;
  padding: 48px 24px;
}
.blog-hero-strip h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 40px;
  color: #FFFFFF;
  margin-bottom: 12px;
}
.blog-hero-strip p {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.80);
}

/* ── Responsividade ── */
@media (max-width: 1023px) {
  .ast-article-post h2.entry-title a { font-size: 16px; }
  .blog-hero-strip h1 { font-size: 28px; }
}
@media (max-width: 767px) {
  .cta-diagnose { flex-direction: column; }
  .ast-article-post { margin-bottom: 16px; }
}

/* ── Foco acessível ── */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid #2AB766;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Reduzir movimento ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
