/*
Theme Name: Techurb Notícias
Theme URI: https://noticias.techurb.com.br/
Author: Techurb
Author URI: https://techurb.com.br/
Description: Tema editorial leve e responsivo para o portal Techurb Notícias.
Version: 1.0.1
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
Text Domain: techurb-noticias
*/

:root {
  --techurb-blue: #1787f7;
  --techurb-blue-dark: #0869d0;
  --techurb-navy: #0b1728;
  --techurb-ink: #142033;
  --techurb-muted: #5c687a;
  --techurb-line: #dfe5ec;
  --techurb-surface: #f4f7fb;
  --techurb-white: #fff;
  --techurb-radius: 18px;
  --techurb-shadow: 0 14px 40px rgba(11, 23, 40, .09);
  --techurb-container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--techurb-ink);
  background: var(--techurb-white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--techurb-blue-dark); text-decoration-thickness: .08em; text-underline-offset: .15em; }
a:hover { color: var(--techurb-blue); }
button, input { font: inherit; }
.container { width: min(calc(100% - 40px), var(--techurb-container)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; top: 12px; left: 12px; z-index: 99999; width: auto; height: auto; padding: 12px 18px; margin: 0; clip: auto; background: #fff; color: #111; border-radius: 8px; }

.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--techurb-line); backdrop-filter: blur(14px); }
.admin-bar .site-header { top: 32px; }
.header-inner { min-height: 78px; display: flex; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; text-decoration: none; }
.brand img { width: 180px; height: auto; }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; align-items: center; gap: 24px; margin: 0; padding: 0; list-style: none; }
.primary-nav a { color: var(--techurb-ink); font-size: 14px; font-weight: 700; text-decoration: none; }
.primary-nav a:hover { color: var(--techurb-blue); }
.header-cta, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 20px; border: 0; border-radius: 12px; color: #fff; background: var(--techurb-blue); font-size: 14px; font-weight: 800; text-decoration: none; box-shadow: 0 8px 22px rgba(23,135,247,.25); transition: transform .2s ease, background .2s ease; }
.header-cta:hover, .button:hover { color: #fff; background: var(--techurb-blue-dark); transform: translateY(-1px); }
.button--ghost { color: var(--techurb-blue); background: #eaf4ff; box-shadow: none; }
.button--ghost:hover { color: #fff; }
.nav-toggle { display: none; width: 44px; height: 44px; margin-left: auto; padding: 10px; border: 1px solid var(--techurb-line); border-radius: 11px; background: #fff; }
.nav-toggle span { display: block; height: 2px; margin: 5px 0; background: var(--techurb-navy); }

.hero { padding: 56px 0 44px; background: radial-gradient(circle at 85% 10%, rgba(23,135,247,.28), transparent 28%), linear-gradient(135deg, #07111f, #102641); color: #fff; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr); gap: 34px; align-items: stretch; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 28px 0; }
.eyebrow { margin: 0 0 14px; color: #78baff; font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.hero h1 { max-width: 820px; margin: 0 0 18px; color: #fff; font-size: clamp(38px, 5vw, 66px); line-height: 1.05; letter-spacing: -.04em; }
.hero h1 a { color: inherit; text-decoration: none; }
.hero-excerpt { max-width: 760px; margin: 0 0 24px; color: #d2deec; font-size: 19px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; color: var(--techurb-muted); font-size: 13px; font-weight: 650; }
.hero .post-meta { color: #acc1d9; }
.category-pill { display: inline-flex; align-items: center; min-height: 28px; padding: 5px 10px; border-radius: 999px; color: var(--techurb-blue-dark); background: #eaf4ff; font-size: 11px; font-weight: 900; letter-spacing: .05em; text-decoration: none; text-transform: uppercase; }
.hero .category-pill { color: #fff; background: rgba(23,135,247,.25); }
.hero-media, .post-card__media, .article-cover { position: relative; overflow: hidden; background: linear-gradient(140deg, #0c2747, #1787f7); }
.hero-media { min-height: 380px; border: 1px solid rgba(255,255,255,.14); border-radius: 24px; box-shadow: 0 26px 70px rgba(0,0,0,.28); }
.hero-media img, .post-card__media img, .article-cover img { width: 100%; height: 100%; object-fit: cover; }
.brand-placeholder { display: flex; flex-direction: column; justify-content: flex-end; min-height: inherit; padding: 28px; background: radial-gradient(circle at 75% 20%, rgba(255,255,255,.3), transparent 18%), repeating-linear-gradient(135deg, transparent 0 32px, rgba(255,255,255,.04) 32px 34px); color: #fff; }
.brand-placeholder::before { content: "TU"; position: absolute; top: 26px; right: 28px; width: 72px; height: 72px; display: grid; place-items: center; border: 2px solid rgba(255,255,255,.7); border-radius: 20px; font-size: 25px; font-weight: 950; letter-spacing: -.08em; }
.brand-placeholder strong { max-width: 360px; font-size: 21px; line-height: 1.25; }

.section { padding: 64px 0; }
.section--muted { background: var(--techurb-surface); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section-head h2 { margin: 0; font-size: clamp(28px, 3vw, 40px); line-height: 1.15; letter-spacing: -.025em; }
.section-head p { max-width: 600px; margin: 8px 0 0; color: var(--techurb-muted); }
.section-link { flex: 0 0 auto; font-weight: 800; text-decoration: none; }
.posts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.posts-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.post-card { min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--techurb-line); border-radius: var(--techurb-radius); box-shadow: 0 8px 28px rgba(11,23,40,.05); transition: transform .2s ease, box-shadow .2s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--techurb-shadow); }
.post-card__media { display: block; height: 210px; color: #fff; text-decoration: none; }
.post-card__media .brand-placeholder { min-height: 210px; padding: 20px; }
.post-card__media .brand-placeholder::before { top: 18px; right: 18px; width: 48px; height: 48px; border-radius: 14px; font-size: 18px; }
.post-card__body { padding: 22px; }
.post-card h3 { margin: 12px 0 10px; font-size: 21px; line-height: 1.28; letter-spacing: -.015em; }
.post-card h3 a { color: var(--techurb-ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--techurb-blue-dark); }
.post-card p { margin: 0 0 16px; color: var(--techurb-muted); font-size: 15px; line-height: 1.55; }

.topic-strip { padding: 30px 0; border-bottom: 1px solid var(--techurb-line); background: #fff; }
.topic-list { display: flex; gap: 12px; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: thin; }
.topic-list a { flex: 0 0 auto; padding: 9px 14px; border: 1px solid var(--techurb-line); border-radius: 999px; color: var(--techurb-ink); font-size: 13px; font-weight: 800; text-decoration: none; }
.topic-list a:hover { color: var(--techurb-blue-dark); border-color: #9dccfb; background: #f2f8ff; }

.commercial-cta { position: relative; overflow: hidden; padding: 56px; border-radius: 26px; background: radial-gradient(circle at 90% 20%, rgba(23,135,247,.5), transparent 30%), var(--techurb-navy); color: #fff; }
.commercial-cta h2 { max-width: 720px; margin: 0 0 14px; color: #fff; font-size: clamp(30px, 4vw, 48px); line-height: 1.1; }
.commercial-cta p { max-width: 700px; margin: 0 0 24px; color: #c8d7e8; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.page-header { padding: 54px 0 38px; background: var(--techurb-surface); border-bottom: 1px solid var(--techurb-line); }
.page-header h1 { margin: 8px 0 0; font-size: clamp(36px, 5vw, 58px); line-height: 1.05; letter-spacing: -.04em; }
.archive-description { max-width: 760px; color: var(--techurb-muted); }
.pagination { margin-top: 38px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination a, .pagination span { min-width: 42px; padding: 8px 12px; border: 1px solid var(--techurb-line); border-radius: 9px; text-align: center; text-decoration: none; }
.pagination .current { color: #fff; border-color: var(--techurb-blue); background: var(--techurb-blue); }

.article-header { padding: 58px 0 34px; background: linear-gradient(180deg, #f5f9fd, #fff); }
.article-header__inner { max-width: 940px; }
.breadcrumbs { margin-bottom: 18px; color: var(--techurb-muted); font-size: 13px; }
.breadcrumbs a { text-decoration: none; }
.article-header h1 { max-width: 940px; margin: 14px 0 20px; font-size: clamp(40px, 6vw, 70px); line-height: 1.03; letter-spacing: -.045em; overflow-wrap: anywhere; }
.article-deck { max-width: 820px; margin: 0 0 22px; color: var(--techurb-muted); font-size: 20px; }
.article-cover { width: min(calc(100% - 40px), 1060px); height: min(55vw, 560px); min-height: 320px; margin: 0 auto 44px; border-radius: 24px; box-shadow: var(--techurb-shadow); }
.article-cover .brand-placeholder { min-height: 100%; padding: 44px; }
.article-cover .brand-placeholder strong { max-width: 620px; font-size: clamp(24px, 3vw, 40px); }
.article-layout { display: grid; grid-template-columns: minmax(0, 780px) 260px; justify-content: center; gap: 58px; align-items: start; }
.article-content { min-width: 0; 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 { color: var(--techurb-ink); font-family: Inter, ui-sans-serif, system-ui, sans-serif; line-height: 1.2; letter-spacing: -.025em; scroll-margin-top: 110px; }
.article-content h2 { margin: 48px 0 18px; font-size: 34px; }
.article-content h3 { margin: 34px 0 14px; font-size: 25px; }
.article-content p, .article-content ul, .article-content ol { margin: 0 0 24px; }
.article-content ul, .article-content ol { padding-left: 1.35em; }
.article-content blockquote { margin: 34px 0; padding: 22px 28px; border-left: 4px solid var(--techurb-blue); background: var(--techurb-surface); font-size: 21px; }
.article-content a { font-weight: 650; }
.article-content img { border-radius: 15px; }
.article-aside { position: sticky; top: 110px; }
.aside-card { padding: 22px; border: 1px solid var(--techurb-line); border-radius: 16px; background: var(--techurb-surface); }
.aside-card h2 { margin: 0 0 10px; font-size: 20px; }
.aside-card p { margin: 0 0 16px; color: var(--techurb-muted); font-size: 14px; }
.share-links { display: flex; gap: 8px; margin-top: 20px; }
.share-links a { display: grid; place-items: center; min-width: 42px; min-height: 42px; padding: 8px; border: 1px solid var(--techurb-line); border-radius: 10px; color: var(--techurb-ink); font-size: 12px; font-weight: 800; text-decoration: none; }
.inline-cta { margin: 46px 0; padding: 30px; border-radius: 18px; background: linear-gradient(135deg, #eaf4ff, #f8fbff); border: 1px solid #cce5ff; font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.inline-cta h2 { margin-top: 0; font-size: 28px; }
.post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 44px; }
.post-navigation a { display: block; padding: 18px; border: 1px solid var(--techurb-line); border-radius: 14px; color: var(--techurb-ink); font-family: Inter, sans-serif; font-size: 14px; font-weight: 800; text-decoration: none; }

.site-footer { margin-top: 70px; color: #c8d2df; background: #081322; }
.footer-main { display: grid; grid-template-columns: 1.25fr .8fr .8fr 1fr; gap: 42px; padding: 62px 0 44px; }
.footer-brand img { width: 180px; filter: brightness(0) invert(1); }
.footer-brand p { max-width: 320px; color: #9eb0c4; font-size: 14px; }
.site-footer h2 { margin: 0 0 16px; color: #fff; font-size: 15px; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin: 0 0 9px; }
.site-footer a { color: #c8d2df; font-size: 14px; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.1); color: #8496aa; font-size: 12px; }

.empty-state { padding: 50px; border: 1px dashed #b8c4d1; border-radius: 18px; background: var(--techurb-surface); text-align: center; }
.search-form { display: flex; max-width: 620px; }
.search-form label { flex: 1; }
.search-field { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--techurb-line); border-radius: 10px 0 0 10px; }
.search-submit { min-height: 48px; padding: 10px 18px; border: 0; border-radius: 0 10px 10px 0; color: #fff; background: var(--techurb-blue); font-weight: 800; }

@media (max-width: 1050px) {
  .header-cta { display: none; }
  .hero-grid { grid-template-columns: 1fr 380px; }
  .posts-grid--four { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: minmax(0, 760px); }
  .article-aside { position: static; }
  .footer-main { grid-template-columns: 1.3fr 1fr 1fr; }
  .footer-contact { grid-column: span 3; }
}

@media (max-width: 820px) {
  .admin-bar .site-header { top: 46px; }
  .container { width: min(calc(100% - 30px), var(--techurb-container)); }
  .header-inner { min-height: 68px; }
  .brand img { width: 145px; }
  .nav-toggle { display: block; }
  .primary-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; padding: 12px 15px 20px; border-bottom: 1px solid var(--techurb-line); background: #fff; box-shadow: 0 18px 30px rgba(11,23,40,.12); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: block; }
  .primary-nav li { border-bottom: 1px solid #edf1f5; }
  .primary-nav a { display: block; padding: 13px 4px; }
  .hero { padding: 38px 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 0; }
  .hero-media { min-height: 300px; }
  .section { padding: 48px 0; }
  .posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .commercial-cta { padding: 38px 28px; }
  .article-header { padding: 42px 0 28px; }
  .article-header h1 { font-size: clamp(36px, 10vw, 54px); }
  .article-cover { width: min(calc(100% - 30px), 1060px); height: 54vw; min-height: 260px; border-radius: 18px; }
  .article-layout { width: min(calc(100% - 30px), 780px); }
  .article-content { font-size: 18px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-contact { grid-column: auto; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero h1 { font-size: 38px; overflow-wrap: anywhere; }
  .hero-excerpt { font-size: 17px; }
  .hero-media { min-height: 260px; }
  .section-head { display: block; }
  .section-link { display: inline-block; margin-top: 12px; }
  .posts-grid, .posts-grid--four { grid-template-columns: 1fr; }
  .post-card__media { height: 220px; }
  .article-header h1 { font-size: 37px; line-height: 1.08; }
  .article-deck { font-size: 18px; }
  .article-cover { height: 62vw; min-height: 230px; }
  .article-cover .brand-placeholder { padding: 24px; }
  .article-content h2 { font-size: 29px; }
  .article-content h3 { font-size: 23px; }
  .post-navigation { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { display: block; }
  .footer-bottom span { display: block; margin-top: 7px; }
}

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