/* ============================================================
   HIEROS AGRO — Articles & Insights
   Estilos para single.php, archive.php, page-insights.php
   ============================================================ */

/* ----------------------------------------------------------
   1) ARTICLE HERO (cabeçalho do artigo individual)
   ---------------------------------------------------------- */
.article-hero {
    background: #0a1a2f;
    color: #fff;
    padding: 90px 0 60px;
    position: relative;
    overflow: hidden;
}

.article-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top right, rgba(212, 160, 40, 0.12), transparent 60%);
    pointer-events: none;
}

.article-hero__inner {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.article-hero__eyebrow {
    display: inline-block;
    color: #D4A028;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 18px;
    text-decoration: none;
    border-bottom: 1px solid rgba(212, 160, 40, 0.4);
    padding-bottom: 4px;
}

.article-hero__eyebrow:hover {
    color: #f0b942;
    border-bottom-color: #f0b942;
}

.article-hero__title {
    font-size: clamp(28px, 4.5vw, 46px);
    line-height: 1.18;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 28px;
    color: #fff;
}

.article-hero__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 14px;
    letter-spacing: 0.02em;
}

.article-hero__sep {
    color: rgba(255, 255, 255, 0.3);
}

/* ----------------------------------------------------------
   2) ARTICLE COVER (imagem destacada)
   ---------------------------------------------------------- */
.article-cover {
    margin: -40px 0 0;
    position: relative;
    z-index: 2;
}

.article-cover__img,
.article-cover img {
    display: block;
    width: 100%;
    max-width: 1000px;
    height: auto;
    margin: 0 auto;
    border-radius: 6px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}

.article-cover__caption {
    text-align: center;
    font-size: 13px;
    color: #6b7280;
    margin-top: 14px;
    font-style: italic;
}

/* ----------------------------------------------------------
   3) ARTICLE BODY (corpo do artigo — tipografia editorial)
   ---------------------------------------------------------- */
.article-body {
    padding: 70px 0 40px;
    background: #fff;
}

.article-body__content {
    max-width: 720px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.75;
    color: #1f2937;
}

.article-body__content > p:first-of-type {
    font-size: 21px;
    line-height: 1.6;
    color: #0a1a2f;
    font-weight: 500;
    margin-bottom: 32px;
}

.article-body__content p {
    margin: 0 0 24px;
}

.article-body__content h2 {
    font-size: 28px;
    font-weight: 700;
    color: #0a1a2f;
    margin: 56px 0 20px;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.article-body__content h3 {
    font-size: 22px;
    font-weight: 700;
    color: #0a1a2f;
    margin: 40px 0 16px;
    line-height: 1.3;
}

.article-body__content h4 {
    font-size: 17px;
    font-weight: 700;
    color: #D4A028;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 36px 0 12px;
}

.article-body__content a {
    color: #0F5132;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.article-body__content a:hover {
    color: #D4A028;
}

.article-body__content strong {
    color: #0a1a2f;
    font-weight: 700;
}

.article-body__content ul,
.article-body__content ol {
    margin: 0 0 28px;
    padding-left: 24px;
}

.article-body__content li {
    margin-bottom: 10px;
}

.article-body__content blockquote {
    border-left: 4px solid #D4A028;
    background: #faf6ed;
    margin: 40px 0;
    padding: 28px 32px;
    font-size: 22px;
    line-height: 1.45;
    color: #0a1a2f;
    font-weight: 500;
    font-style: normal;
}

.article-body__content blockquote p {
    margin: 0;
}

.article-body__content blockquote cite {
    display: block;
    font-size: 13px;
    color: #6b7280;
    margin-top: 14px;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.article-body__content img {
    max-width: 100%;
    height: auto;
    margin: 36px 0;
    border-radius: 4px;
}

.article-body__content figure {
    margin: 36px 0;
}

.article-body__content figcaption {
    font-size: 13px;
    color: #6b7280;
    text-align: center;
    margin-top: 10px;
    font-style: italic;
}

.article-body__content hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 48px 0;
}

/* ----------------------------------------------------------
   4) ARTICLE FOOTER (tags + share)
   ---------------------------------------------------------- */
.article-footer {
    max-width: 720px;
    margin: 50px auto 0;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}

.article-tags__label {
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-right: 6px;
}

.article-tag {
    display: inline-block;
    padding: 5px 12px;
    background: #f3f4f6;
    color: #1f2937;
    font-size: 13px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.18s ease;
}

.article-tag:hover {
    background: #0F5132;
    color: #fff;
}

.article-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
}

.article-share__label {
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.article-share a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #1f2937;
    font-size: 13px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.18s ease;
}

.article-share a:hover {
    background: #0F5132;
    border-color: #0F5132;
    color: #fff;
}

/* ----------------------------------------------------------
   5) ARTICLE CTA (chamada final do artigo)
   ---------------------------------------------------------- */
.article-cta {
    background: #0F5132;
    color: #fff;
    padding: 60px 0;
    margin-top: 60px;
}

.article-cta__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.article-cta__eyebrow {
    display: block;
    color: #D4A028;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.article-cta__title {
    font-size: clamp(24px, 3vw, 32px);
    margin: 0;
    line-height: 1.2;
    font-weight: 700;
}

.article-cta__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ----------------------------------------------------------
   6) RELATED ARTICLES
   ---------------------------------------------------------- */
.article-related {
    padding: 70px 0;
    background: #f9fafb;
}

/* ----------------------------------------------------------
   7) ARTICLE GRID + CARDS (usado em archive, insights, related)
   ---------------------------------------------------------- */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin: 36px 0;
}

.article-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.25s ease;
    border: 1px solid #e5e7eb;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(10, 26, 47, 0.10);
    border-color: #D4A028;
}

.article-card__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.article-card__image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f3f4f6;
}

.article-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.article-card:hover .article-card__image img {
    transform: scale(1.04);
}

.article-card__image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0F5132 0%, #0a1a2f 100%);
    color: #D4A028;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 13px;
}

.article-card__body {
    padding: 22px 24px 26px;
}

.article-card__cat {
    display: inline-block;
    color: #D4A028;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.article-card__title {
    font-size: 19px;
    font-weight: 700;
    color: #0a1a2f;
    margin: 0 0 12px;
    line-height: 1.3;
    letter-spacing: -0.005em;
}

.article-card__excerpt {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.55;
    margin: 0 0 14px;
}

.article-card__date {
    color: #9ca3af;
    font-size: 12px;
    letter-spacing: 0.02em;
}

/* ----------------------------------------------------------
   8) ARCHIVE & INSIGHTS HERO
   ---------------------------------------------------------- */
.archive-hero,
.insights-hero {
    background: #0a1a2f;
    color: #fff;
    padding: 90px 0 70px;
    position: relative;
    overflow: hidden;
}

.archive-hero::before,
.insights-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% -20%, rgba(212, 160, 40, 0.18), transparent 55%);
    pointer-events: none;
}

.archive-hero__inner,
.insights-hero__inner {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.archive-hero__eyebrow,
.insights-hero__eyebrow {
    display: inline-block;
    color: #D4A028;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.archive-hero__title,
.insights-hero__title {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: #fff;
    margin: 0 0 18px;
}

.archive-hero__lead,
.insights-hero__lead {
    color: rgba(255, 255, 255, 0.78);
    font-size: 17px;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 660px;
}

/* ----------------------------------------------------------
   9) INSIGHTS FILTER (chips de categoria)
   ---------------------------------------------------------- */
.insights-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.insights-filter__chip {
    display: inline-block;
    padding: 8px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    color: #1f2937;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    background: #fff;
    transition: all 0.18s ease;
    letter-spacing: 0.01em;
}

.insights-filter__chip:hover {
    border-color: #0F5132;
    color: #0F5132;
}

.insights-filter__chip.is-active {
    background: #0F5132;
    color: #fff;
    border-color: #0F5132;
}

/* ----------------------------------------------------------
   10) PAGINATION + EMPTY STATES
   ---------------------------------------------------------- */
.pagination,
.archive-list .nav-links,
.insights-list .nav-links,
.page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 50px 0 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span,
.page-numbers li a,
.page-numbers li span,
a.page-numbers,
span.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    color: #1f2937;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.18s ease;
}

.pagination a:hover,
a.page-numbers:hover {
    background: #0F5132;
    border-color: #0F5132;
    color: #fff;
}

.pagination .current,
span.page-numbers.current {
    background: #0F5132;
    border-color: #0F5132;
    color: #fff;
}

.archive-empty {
    text-align: center;
    padding: 80px 20px;
    color: #6b7280;
    font-size: 17px;
}

.archive-empty a {
    margin-top: 18px;
    display: inline-block;
}

/* ----------------------------------------------------------
   11) RESPONSIVE
   ---------------------------------------------------------- */
@media (max-width: 1024px) {
    .article-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }
}

@media (max-width: 768px) {
    .article-hero {
        padding: 60px 0 40px;
    }
    .article-body {
        padding: 50px 0 30px;
    }
    .article-body__content {
        font-size: 17px;
    }
    .article-body__content > p:first-of-type {
        font-size: 19px;
    }
    .article-body__content h2 {
        font-size: 24px;
        margin: 40px 0 16px;
    }
    .article-body__content h3 {
        font-size: 19px;
    }
    .article-body__content blockquote {
        font-size: 19px;
        padding: 22px 24px;
    }
    .article-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .article-cta__inner {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .article-cta__actions {
        justify-content: center;
    }
    .archive-hero,
    .insights-hero {
        padding: 60px 0 50px;
    }
}

@media (max-width: 480px) {
    .article-hero__meta {
        font-size: 12px;
        gap: 8px;
    }
    .article-share {
        gap: 8px;
    }
    .article-share a {
        font-size: 12px;
        padding: 6px 10px;
    }
}
