/*
Theme Name: Se Liga Chapada
Theme URI: https://www.seligachapada.com.br/
Author: Kleber Medrado
Author URI: https://www.seligachapada.com.br/
Description: Tema jornalístico moderno, leve e responsivo desenvolvido para o portal Se Liga Chapada.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: se-liga-chapada
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: news, blog, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
  --slc-green-950: #043b27;
  --slc-green-900: #075f3b;
  --slc-green-700: #0b7c4c;
  --slc-green-500: #19a15f;
  --slc-green-100: #e8f6ee;
  --slc-ink: #17211c;
  --slc-muted: #68736d;
  --slc-line: #e2e8e4;
  --slc-paper: #ffffff;
  --slc-canvas: #f6f8f6;
  --slc-gold: #e5ad32;
  --slc-radius: 14px;
  --slc-shadow: 0 12px 35px rgba(8, 45, 29, .08);
  --slc-container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--slc-canvas);
  color: var(--slc-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color .18s ease, opacity .18s ease; }
a:hover { color: var(--slc-green-700); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.container { width: min(calc(100% - 40px), var(--slc-container)); margin-inline: auto; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus { position: fixed !important; top: 12px; left: 12px; z-index: 99999; width: auto; height: auto; padding: 12px 16px; clip: auto; background: #fff; color: #000; }

/* Header */
.topbar { background: var(--slc-green-950); color: rgba(255,255,255,.84); font-size: 13px; }
.topbar__inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar__group, .social-links { display: flex; align-items: center; gap: 18px; }
.topbar a:hover { color: #fff; }
.topbar__advertise { color: #fff; font-weight: 750; }
.masthead { background: var(--slc-paper); }
.masthead__inner { min-height: 116px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.site-branding { flex: 0 1 390px; }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { width: auto; max-width: 330px; max-height: 84px; object-fit: contain; }
.site-title { margin: 0; color: var(--slc-green-900); font-size: clamp(26px, 4vw, 43px); font-weight: 900; letter-spacing: -.045em; line-height: 1; text-transform: uppercase; }
.site-description { margin: 8px 0 0; color: var(--slc-muted); font-size: 14px; }
.header-ad { flex: 1; max-width: 720px; min-height: 80px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ad-placeholder { width: 100%; min-height: 76px; display: grid; place-items: center; border: 1px dashed #cdd8d1; border-radius: 10px; color: #8a958e; background: #fafcfb; font-size: 11px; letter-spacing: .13em; text-transform: uppercase; }
.header-ad img { max-height: 90px; width: auto; }

.nav-wrap { position: relative; z-index: 100; background: var(--slc-green-900); color: #fff; box-shadow: 0 6px 24px rgba(4,59,39,.12); }
.nav-wrap.is-stuck { position: sticky; top: 0; }
.nav-inner { min-height: 54px; display: flex; align-items: center; }
.primary-nav { flex: 1; }
.primary-nav ul { display: flex; align-items: center; gap: 0; padding: 0; margin: 0; list-style: none; }
.primary-nav li { position: relative; }
.primary-nav a { display: flex; align-items: center; min-height: 54px; padding: 0 15px; color: #fff; font-size: 13px; font-weight: 780; letter-spacing: .015em; text-transform: uppercase; }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current-menu-ancestor > a { background: rgba(255,255,255,.12); color: #fff; }
.primary-nav .sub-menu { position: absolute; left: 0; top: 100%; display: none; min-width: 230px; background: #fff; box-shadow: var(--slc-shadow); }
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { display: block; }
.primary-nav .sub-menu a { min-height: 44px; color: var(--slc-ink); text-transform: none; }
.nav-actions { margin-left: auto; display: flex; align-items: center; }
.icon-button { width: 48px; height: 54px; display: grid; place-items: center; border: 0; background: transparent; color: #fff; }
.icon-button:hover { background: rgba(255,255,255,.1); }
.menu-toggle { display: none; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.search-panel { display: none; padding: 18px 0; background: var(--slc-green-950); }
.search-panel.is-open { display: block; }
.search-form { display: flex; gap: 10px; }
.search-field { width: 100%; min-height: 48px; padding: 0 16px; border: 1px solid var(--slc-line); border-radius: 9px; background: #fff; color: var(--slc-ink); outline: none; }
.search-field:focus { border-color: var(--slc-green-500); box-shadow: 0 0 0 3px rgba(25,161,95,.18); }
.search-submit, .button { min-height: 48px; padding: 0 20px; border: 0; border-radius: 9px; background: var(--slc-green-500); color: #fff; font-weight: 800; }
.search-submit:hover, .button:hover { background: var(--slc-green-700); color: #fff; }

/* Breaking news */
.breaking { margin: 22px auto; display: grid; grid-template-columns: auto 1fr; align-items: center; min-height: 46px; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 6px 20px rgba(15,47,33,.05); }
.breaking__label { align-self: stretch; display: flex; align-items: center; padding: 0 18px; background: var(--slc-green-500); color: #fff; font-size: 12px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.breaking__items { display: flex; align-items: center; gap: 28px; overflow: hidden; padding: 0 18px; white-space: nowrap; }
.breaking__items a { position: relative; font-size: 14px; font-weight: 650; }
.breaking__items a:not(:last-child)::after { content: ""; position: absolute; right: -16px; top: 50%; width: 4px; height: 4px; border-radius: 50%; background: var(--slc-gold); }

/* Shared cards */
.section { margin: 48px 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 22px; border-bottom: 1px solid var(--slc-line); }
.section-title { position: relative; margin: 0; padding: 0 0 12px; font-size: clamp(21px, 2.5vw, 28px); font-weight: 900; letter-spacing: -.025em; line-height: 1.15; text-transform: uppercase; }
.section-title::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 66px; height: 4px; border-radius: 4px 4px 0 0; background: var(--slc-green-500); }
.section-link { color: var(--slc-green-700); font-size: 13px; font-weight: 800; text-transform: uppercase; }
.post-card { overflow: hidden; border-radius: var(--slc-radius); background: #fff; box-shadow: 0 8px 25px rgba(7,62,40,.055); }
.post-card__image { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; background: #dfe9e3; }
.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.035); }
.post-card__body { padding: 18px; }
.post-card__title { margin: 0; font-size: 19px; font-weight: 850; letter-spacing: -.018em; line-height: 1.26; }
.post-card__title a:hover { color: var(--slc-green-700); }
.post-card__excerpt { margin: 10px 0 0; color: var(--slc-muted); font-size: 14px; line-height: 1.55; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 12px; color: var(--slc-muted); font-size: 12px; }
.post-meta__dot { width: 3px; height: 3px; border-radius: 50%; background: #a7b2ab; }
.category-badge { display: inline-flex; align-items: center; min-height: 25px; padding: 3px 9px; border-radius: 99px; background: var(--slc-green-500); color: #fff !important; font-size: 10px; font-weight: 850; line-height: 1; letter-spacing: .045em; text-transform: uppercase; }
.post-card__image .category-badge { position: absolute; left: 13px; top: 13px; z-index: 2; }
.image-placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(140deg, var(--slc-green-100), #d4e6dc); color: var(--slc-green-700); font-size: 14px; font-weight: 800; }

/* Hero */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(340px, 1fr); gap: 14px; }
.hero-main, .hero-small { position: relative; overflow: hidden; border-radius: var(--slc-radius); background: var(--slc-green-950); color: #fff; }
.hero-main { min-height: 510px; }
.hero-side { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.hero-small { min-height: 248px; }
.hero-image { position: absolute; inset: 0; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.hero-main:hover .hero-image img, .hero-small:hover .hero-image img { transform: scale(1.035); }
.hero-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3,25,16,.04) 22%, rgba(3,25,16,.92) 100%); }
.hero-content { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 30px; }
.hero-title { margin: 12px 0 0; max-width: 860px; font-size: clamp(27px, 3vw, 43px); font-weight: 900; letter-spacing: -.035em; line-height: 1.08; text-wrap: balance; }
.hero-small .hero-content { padding: 18px; }
.hero-small .hero-title { margin-top: 8px; font-size: 17px; line-height: 1.2; }
.hero-content .post-meta { color: rgba(255,255,255,.76); }

.cards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.two-column-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, .9fr); gap: 34px; align-items: start; }
.region-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }

/* Most read */
.sidebar-panel { padding: 22px; border-radius: var(--slc-radius); background: var(--slc-green-950); color: #fff; }
.sidebar-panel .section-title { font-size: 20px; }
.sidebar-panel .section-title::after { background: var(--slc-gold); }
.ranked-list { margin: 0; padding: 0; list-style: none; }
.ranked-item { display: grid; grid-template-columns: 38px 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.12); }
.ranked-number { color: var(--slc-gold); font-size: 28px; font-weight: 900; line-height: 1; }
.ranked-title { margin: 0; font-size: 14px; font-weight: 760; line-height: 1.35; }
.sidebar-panel a:hover { color: #d8f3e4; }

.split-sections { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 34px; }
.compact-list { display: grid; gap: 16px; }
.compact-card { display: grid; grid-template-columns: 145px 1fr; gap: 15px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--slc-line); }
.compact-card__image { overflow: hidden; aspect-ratio: 4 / 3; border-radius: 10px; background: #dfe9e3; }
.compact-card__image img { width: 100%; height: 100%; object-fit: cover; }
.compact-card__title { margin: 6px 0 0; font-size: 16px; line-height: 1.3; font-weight: 820; }

/* Ads and WhatsApp */
.content-ad { min-height: 110px; margin: 36px 0; display: grid; place-items: center; border: 1px dashed #cbd7cf; border-radius: 12px; background: #fff; color: #8a958e; font-size: 11px; letter-spacing: .13em; text-transform: uppercase; }
.whatsapp-strip { margin: 52px 0; padding: 28px 34px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-radius: var(--slc-radius); background: linear-gradient(115deg, var(--slc-green-950), var(--slc-green-700)); color: #fff; }
.whatsapp-strip h2 { margin: 0; font-size: clamp(22px,3vw,31px); letter-spacing: -.025em; line-height: 1.1; }
.whatsapp-strip p { margin: 7px 0 0; color: rgba(255,255,255,.78); }
.whatsapp-button { flex: none; display: inline-flex; align-items: center; min-height: 50px; padding: 0 22px; border-radius: 9px; background: #25d366; color: #062e1d !important; font-weight: 900; }
.whatsapp-button:hover { background: #4ae481; }

/* Archives */
.page-header { padding: 38px 0 26px; }
.page-title { margin: 0; font-size: clamp(30px,4vw,48px); font-weight: 900; letter-spacing: -.04em; line-height: 1.05; }
.archive-description { max-width: 760px; margin-top: 10px; color: var(--slc-muted); }
.archive-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; padding-bottom: 56px; }
.pagination { margin: 36px 0 58px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { min-width: 42px; min-height: 42px; display: grid; place-items: center; padding: 0 12px; border-radius: 8px; background: #fff; font-weight: 750; }
.pagination .current { background: var(--slc-green-700); color: #fff; }
.empty-state { margin: 40px 0 70px; padding: 50px; border-radius: var(--slc-radius); background: #fff; text-align: center; }

/* Single */
.single-layout { display: grid; grid-template-columns: minmax(0, 790px) minmax(260px, 1fr); gap: 44px; align-items: start; padding: 44px 0 60px; }
.article { min-width: 0; }
.article-header .category-badge { margin-bottom: 15px; }
.article-title { margin: 0; font-size: clamp(34px,5vw,56px); font-weight: 900; letter-spacing: -.045em; line-height: 1.04; text-wrap: balance; }
.article-subtitle { margin: 18px 0 0; color: var(--slc-muted); font-size: 19px; line-height: 1.5; }
.article-meta { margin: 22px 0; padding: 15px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; border-top: 1px solid var(--slc-line); border-bottom: 1px solid var(--slc-line); color: var(--slc-muted); font-size: 13px; }
.article-featured { margin: 25px 0 32px; overflow: hidden; border-radius: var(--slc-radius); }
.article-featured img { width: 100%; }
.article-content { font-family: Georgia, "Times New Roman", serif; font-size: 19px; line-height: 1.82; }
.article-content > *:first-child { margin-top: 0; }
.article-content h2, .article-content h3, .article-content h4 { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.2; letter-spacing: -.025em; }
.article-content a { color: var(--slc-green-700); text-decoration: underline; text-underline-offset: 3px; }
.article-content blockquote { margin: 30px 0; padding: 20px 26px; border-left: 5px solid var(--slc-green-500); background: var(--slc-green-100); font-size: 21px; }
.article-content figure { max-width: 100%; margin: 30px 0; }
.article-content iframe { max-width: 100%; }
.article-content img { border-radius: 8px; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0; }
.article-tags a { padding: 6px 10px; border: 1px solid var(--slc-line); border-radius: 6px; background: #fff; font-size: 12px; font-weight: 700; }
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 28px 0; }
.share-row strong { margin-right: 7px; }
.share-button { padding: 8px 13px; border-radius: 7px; background: #fff; border: 1px solid var(--slc-line); font-size: 13px; font-weight: 750; }
.share-button--whatsapp { border-color: #b9e7c9; color: #087a35; }
.author-box { margin: 35px 0; padding: 24px; display: grid; grid-template-columns: 72px 1fr; gap: 18px; border-radius: var(--slc-radius); background: #fff; }
.author-box img { border-radius: 50%; }
.author-box h3, .author-box p { margin: 0; }
.author-box p { margin-top: 5px; color: var(--slc-muted); font-size: 14px; }
.single-sidebar { position: sticky; top: 80px; display: grid; gap: 24px; }
.widget { padding: 22px; border-radius: var(--slc-radius); background: #fff; }
.widget-title { margin: 0 0 16px; padding-bottom: 10px; border-bottom: 3px solid var(--slc-green-500); font-size: 18px; font-weight: 900; text-transform: uppercase; }
.widget ul { margin: 0; padding-left: 18px; }

/* Comments */
.comments-area { margin-top: 40px; }
.comments-title { font-size: 24px; }
.comment-list { padding: 0; list-style: none; }
.comment-body { margin: 18px 0; padding: 20px; border-radius: 10px; background: #fff; }
.comment-meta { font-size: 13px; }
.comment-form-comment label { display: block; }
.comment-form textarea, .comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"] { width: 100%; padding: 12px; border: 1px solid var(--slc-line); border-radius: 8px; }
.form-submit .submit { padding: 12px 20px; border: 0; border-radius: 8px; background: var(--slc-green-700); color: #fff; font-weight: 800; }

/* Footer */
.site-footer { margin-top: 30px; background: #072b1d; color: rgba(255,255,255,.76); }
.footer-main { padding: 52px 0; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 38px; }
.footer-brand .site-title { color: #fff; font-size: 29px; }
.footer-brand p { max-width: 380px; font-size: 14px; }
.footer-title { margin: 0 0 16px; color: #fff; font-size: 15px; font-weight: 850; text-transform: uppercase; }
.footer-menu, .footer-contact { margin: 0; padding: 0; list-style: none; }
.footer-menu li, .footer-contact li { margin: 8px 0; font-size: 14px; }
.footer-main a:hover { color: #fff; }
.footer-bottom { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; }
.footer-bottom__inner { display: flex; justify-content: space-between; gap: 16px; }

/* WordPress helpers */
.alignleft { float: left; margin: 0 24px 18px 0; }
.alignright { float: right; margin: 0 0 18px 24px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { color: var(--slc-muted); font-size: 12px; }
.gallery { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }

@media (max-width: 1050px) {
  .primary-nav a { padding-inline: 10px; font-size: 12px; }
  .hero-grid { grid-template-columns: 1.35fr 1fr; }
  .hero-side { grid-template-columns: 1fr; }
  .hero-main { min-height: 508px; }
  .hero-small { min-height: 247px; }
  .footer-main { grid-template-columns: 1.4fr repeat(2,1fr); }
  .footer-main > :last-child { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .container { width: min(calc(100% - 28px), var(--slc-container)); }
  .topbar__group > :not(:first-child), .social-links { display: none; }
  .masthead__inner { min-height: 90px; }
  .header-ad { display: none; }
  .site-branding { flex-basis: auto; }
  .custom-logo { max-width: 260px; max-height: 68px; }
  .menu-toggle { display: grid; }
  .primary-nav { position: fixed; inset: 0 auto 0 0; z-index: 1000; width: min(86vw,360px); padding: 76px 16px 28px; overflow-y: auto; background: var(--slc-green-950); transform: translateX(-102%); transition: transform .25s ease; }
  .menu-open .primary-nav { transform: translateX(0); }
  .primary-nav ul { display: block; }
  .primary-nav a { min-height: 48px; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 13px; }
  .primary-nav .sub-menu { position: static; display: block; min-width: 0; padding-left: 14px; background: transparent; box-shadow: none; }
  .primary-nav .sub-menu a { color: #fff; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-main { min-height: 440px; }
  .hero-side { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hero-small { min-height: 235px; }
  .cards-grid, .archive-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .two-column-layout, .single-layout { grid-template-columns: 1fr; }
  .single-sidebar { position: static; }
  .split-sections { gap: 26px; }
  .footer-main { grid-template-columns: repeat(2,1fr); }
  .footer-main > :last-child { grid-column: auto; }
}

@media (max-width: 580px) {
  .topbar__inner { min-height: 34px; }
  .masthead__inner { min-height: 78px; }
  .custom-logo { max-width: 215px; max-height: 58px; }
  .site-title { font-size: 27px; }
  .site-description { font-size: 11px; }
  .breaking { grid-template-columns: 1fr; }
  .breaking__label { min-height: 34px; justify-content: center; }
  .breaking__items { min-height: 44px; }
  .hero-main { min-height: 385px; }
  .hero-content { padding: 22px; }
  .hero-title { font-size: 29px; }
  .hero-side { grid-template-columns: 1fr; }
  .hero-small { min-height: 230px; }
  .hero-small .hero-title { font-size: 20px; }
  .cards-grid, .archive-grid, .region-grid, .split-sections { grid-template-columns: 1fr; }
  .compact-card { grid-template-columns: 120px 1fr; }
  .section { margin-block: 38px; }
  .whatsapp-strip { padding: 25px; display: block; text-align: center; }
  .whatsapp-button { margin-top: 18px; }
  .single-layout { padding-top: 30px; }
  .article-title { font-size: 36px; }
  .article-content { font-size: 18px; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-bottom__inner { display: block; }
  .footer-bottom__inner span { display: block; margin: 4px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
