/*
Theme Name: Blog do Cartão
Template: generatepress
Version: 1.1.0
Description: Tema filho do Blog do Cartão (GeneratePress) com layout editorial e espaços de anúncio.
Text Domain: blogdocartao
*/

:root {
	--ink: #0f172a;
	--text: #1f2937;
	--muted: #64748b;
	--navy: #0a2540;
	--brand: #0c7a5b;
	--brand-2: #12b886;
	--brand-50: #e9f7f1;
	--gold: #f5b83d;
	--line: #e6eaf0;
	--soft: #f6f8fb;
	--radius: 12px;
	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Base ----------------------------------------------------------------- */
body {
	background: #fff;
	color: var(--text);
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { color: var(--ink); font-family: var(--font); font-weight: 800; letter-spacing: -0.02em; line-height: 1.22; }
.bc-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.site.grid-container, .grid-container { max-width: 1180px; }
.one-container .container, .one-container .site-content { background: #fff; }
.one-container .site-content { padding: 32px 24px 56px; }

/* Faixa superior --------------------------------------------------------- */
.bc-topbar { background: var(--navy); color: #c9d6e3; font-size: 13px; line-height: 1.4; }
.bc-topbar .bc-wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.bc-topbar a { color: #fff; text-decoration: none; }
.bc-topbar a:hover { text-decoration: underline; color: #fff; }

/* Cabeçalho ------------------------------------------------------------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.inside-header { padding: 16px 24px; }
.bc-brand__link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.bc-brand__name { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; color: var(--navy); }
.bc-brand__name span { color: var(--brand); }
.main-navigation, .main-navigation ul ul { background: transparent; }
.main-navigation .main-nav ul li a { color: var(--ink); font-size: 15px; font-weight: 600; padding-left: 13px; padding-right: 13px; line-height: 56px; }
.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li.current-post-ancestor > a { color: var(--brand); background: transparent; }
.main-navigation .menu-bar-items, .main-navigation .menu-toggle { color: var(--ink); }
.navigation-search input[type="search"] { background: #fff; color: var(--ink); border-bottom: 2px solid var(--brand); }

/* Home ----------------------------------------------------------------- */
.bc-hero { grid-column: 1 / -1; background: linear-gradient(135deg, #f3faf7 0%, #eef4fb 100%); border: 1px solid var(--line); border-radius: 18px; padding: 44px 44px 36px; margin-bottom: 36px; }
.bc-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.bc-hero__title { font-size: 40px; max-width: 760px; margin-bottom: 12px; }
.bc-hero__sub { font-size: 18px; color: #475569; max-width: 640px; margin-bottom: 22px; }
.bc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bc-chip { background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; padding: 7px 14px; border-radius: 999px; transition: border-color .15s, color .15s; }
.bc-chip:hover { border-color: var(--brand); color: var(--brand); }
.bc-section-title { grid-column: 1 / -1; font-size: 22px; margin: 0 0 4px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }

.bc-archive-head { grid-column: 1 / -1; padding: 8px 0 24px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.bc-archive-head h1 { font-size: 36px; margin-bottom: 6px; }
.bc-archive-desc p { color: var(--muted); margin: 0; }

/* Grade de cartões ------------------------------------------------------ */
.blog .site-main, .archive .site-main, .search .site-main { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.blog .site-main > *, .archive .site-main > *, .search .site-main > * { margin: 0 !important; }
.blog .site-main > .paging-navigation, .archive .site-main > .paging-navigation,
.blog .site-main > .bc-ad, .archive .site-main > .bc-ad { grid-column: 1 / -1; }
.blog .inside-article, .archive .inside-article, .search .inside-article { padding: 0 !important; background: transparent; display: flex; flex-direction: column; height: 100%; }
.bc-thumb { display: block; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; background: var(--soft); }
.bc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.bc-thumb:hover img { transform: scale(1.03); }
.bc-thumb__ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; height: 100%; background: linear-gradient(135deg, #0a2540 0%, #0f3b63 60%, #0c7a5b 140%); color: #e2ecf5; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.bc-thumb__ph .bc-logo-mark { width: 56px; height: 39px; }
.bc-pill { display: inline-block; align-self: flex-start; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); text-decoration: none; margin-bottom: 8px; }
.bc-pill:hover { color: var(--navy); }
.blog .entry-title, .archive .entry-title, .search .entry-title { font-size: 20px; line-height: 1.3; margin-bottom: 8px; }
.blog .entry-title a, .archive .entry-title a, .search .entry-title a { color: var(--ink); text-decoration: none; }
.blog .entry-title a:hover, .archive .entry-title a:hover { color: var(--brand); }
.blog .entry-summary, .archive .entry-summary { font-size: 15px; color: #475569; line-height: 1.6; margin-top: 6px; }
.blog .entry-summary p, .archive .entry-summary p { margin-bottom: 0; }
.blog footer.entry-meta, .archive footer.entry-meta { display: none; }
.bc-card-meta { font-size: 13px; color: var(--muted); }
.paging-navigation { padding: 16px 0 0; text-align: center; }
.paging-navigation .page-numbers { display: inline-block; min-width: 38px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; margin: 0 3px; color: var(--ink); text-decoration: none; }
.paging-navigation .page-numbers.current { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Artigo -------------------------------------------------------------- */
.single .inside-article { padding: 0 !important; }
.single .content-area { padding-right: 8px; }
.bc-crumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.bc-crumbs a { color: var(--muted); text-decoration: none; }
.bc-crumbs a:hover { color: var(--brand); }
.bc-crumbs span { margin: 0 6px; }
.single .entry-title { font-size: 40px; line-height: 1.15; margin-bottom: 12px; }
.bc-dek { font-size: 20px; line-height: 1.55; color: #475569; margin: 0 0 20px; }
.single .entry-header .entry-meta { display: none; }
.bc-byline { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.bc-avatar { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 15px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; letter-spacing: .02em; }
.bc-avatar--lg { width: 64px; height: 64px; font-size: 22px; }
.bc-byline__text { display: flex; flex-direction: column; line-height: 1.35; }
.bc-byline__name { font-size: 15px; font-weight: 700; color: var(--ink); }
.bc-byline__name a { color: var(--ink); text-decoration: none; }
.bc-byline__meta { font-size: 13px; color: var(--muted); }
.bc-badge { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--brand); background: var(--brand-50); border-radius: 999px; padding: 5px 11px; white-space: nowrap; }

.single .entry-content { font-size: 18.5px; line-height: 1.75; color: #1f2937; }
.single .entry-content > p:first-child { font-size: 19.5px; }
.entry-content h2 { font-size: 27px; margin: 1.9em 0 .6em; }
.entry-content h3 { font-size: 21px; margin: 1.5em 0 .5em; }
.entry-content ul, .entry-content ol { margin: 0 0 1.4em 1.3em; }
.entry-content li { margin-bottom: .45em; padding-left: 2px; }
.entry-content ul li::marker { color: var(--brand); }
.entry-content ol li::marker { color: var(--brand); font-weight: 800; }

#ez-toc-container { width: 100% !important; background: var(--soft) !important; border: 1px solid var(--line) !important; border-radius: var(--radius) !important; padding: 18px 22px !important; box-shadow: none !important; margin: 8px 0 28px !important; }
#ez-toc-container .ez-toc-title { font-size: 15px !important; font-weight: 800 !important; color: var(--ink) !important; text-transform: uppercase; letter-spacing: .06em; }
#ez-toc-container ul li { margin: 4px 0; }
#ez-toc-container a { color: var(--ink) !important; font-size: 16px; text-decoration: none; }
#ez-toc-container a:hover { color: var(--brand) !important; text-decoration: underline; }

.bc-note { background: #fffaf0; border: 1px solid #f6e3b4; border-radius: var(--radius); padding: 16px 18px; font-size: 14.5px; line-height: 1.6; color: #5b4a1d; margin: 32px 0 24px; }
.bc-note strong { color: #3f3313; }
.bc-author { display: flex; gap: 18px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 0 0 32px; background: #fff; }
.bc-author__label { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0; }
.bc-author__name { font-size: 18px; font-weight: 800; color: var(--ink); margin: 2px 0 6px; }
.bc-author__bio { font-size: 15px; color: #475569; margin: 0 0 8px; line-height: 1.6; }
.bc-author__link { font-size: 14px; font-weight: 700; text-decoration: none; }

.crp_related { margin: 8px 0 32px; }
.crp_related h3 { font-size: 20px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); margin-bottom: 12px; }
.crp_related ul { list-style: none; margin: 0 !important; padding: 0; }
.crp_related ul li { border-bottom: 1px solid var(--line); margin: 0 !important; padding: 10px 0; }
.crp_related ul li a { color: var(--ink); font-weight: 700; text-decoration: none; font-size: 16px; }
.crp_related ul li a:hover { color: var(--brand); }

/* Páginas institucionais ------------------------------------------------ */
.page .inside-article { max-width: 760px; margin: 0 auto; padding: 0 !important; }
.page .entry-title { font-size: 38px; margin-bottom: 20px; }
.page .entry-content { font-size: 17.5px; }

/* Barra lateral ------------------------------------------------------ */
.sidebar .inside-right-sidebar { padding-top: 0; }
.sidebar .widget { background: #fff; border: 0; padding: 0; margin-bottom: 28px; font-size: 15px; }
.sidebar .widget h3, .sidebar .widget .wp-block-heading { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); padding-bottom: 8px; border-bottom: 2px solid var(--ink); margin-bottom: 8px; }
.sidebar .wp-block-latest-posts, .sidebar .wp-block-categories { margin: 0; padding: 0; list-style: none; }
.sidebar .wp-block-latest-posts li, .sidebar .wp-block-categories li { padding: 10px 0; border-bottom: 1px solid var(--line); line-height: 1.4; margin: 0; }
.sidebar a { color: var(--ink); text-decoration: none; font-weight: 600; }
.sidebar a:hover { color: var(--brand); }
.wp-block-search__inside-wrapper { border: 1px solid var(--line) !important; border-radius: 10px; padding: 4px !important; }
.wp-block-search__input { border: 0 !important; padding: 8px 10px; font-size: 15px; }
.wp-block-search__button { background: var(--navy); color: #fff; border: 0; border-radius: 8px; font-weight: 700; font-size: 14px; padding: 8px 14px; }
.bc-sticky { position: sticky; top: 24px; }

/* Anúncios --------------------------------------------------------- */
.bc-ad { margin: 28px auto; text-align: center; clear: both; }
.bc-ad__label { display: block; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: #94a3b8; margin-bottom: 6px; }
.bc-ad--topo, .bc-ad--meio-1, .bc-ad--meio-2, .bc-ad--meio-3, .bc-ad--fim { min-height: 280px; }
.bc-ad--lateral { min-height: 250px; margin-top: 0; }
.bc-ad--lateral-fixo { min-height: 600px; }
.bc-ad--home { min-height: 120px; }
.bc-ad--preview .bc-ad__ph { display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: inherit; height: 100%; border: 2px dashed #cbd5e1; border-radius: 10px; background: repeating-linear-gradient(45deg, #f8fafc, #f8fafc 10px, #f1f5f9 10px, #f1f5f9 20px); color: #64748b; font-size: 14px; line-height: 1.5; padding: 16px; }
.bc-ad--topo .bc-ad__ph, .bc-ad--meio-1 .bc-ad__ph, .bc-ad--meio-2 .bc-ad__ph, .bc-ad--meio-3 .bc-ad__ph, .bc-ad--fim .bc-ad__ph { min-height: 250px; }
.bc-ad--lateral .bc-ad__ph { min-height: 250px; }
.bc-ad--lateral-fixo .bc-ad__ph { min-height: 600px; }
.bc-ad--home .bc-ad__ph { min-height: 100px; }

/* Rodapé ------------------------------------------------------------- */
.site-footer { background: var(--navy); }
.bc-footer { background: var(--navy); color: #b8c7d6; font-size: 15px; }
.bc-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-top: 48px; padding-bottom: 36px; }
.bc-footer__about p { margin-top: 14px; max-width: 420px; line-height: 1.65; }
.bc-brand__link--light .bc-brand__name { color: #fff; }
.bc-brand__link--light .bc-brand__name span { color: var(--brand-2); }
.bc-footer__title { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 12px; }
.bc-footer ul { list-style: none; margin: 0; padding: 0; }
.bc-footer li { margin-bottom: 8px; }
.bc-footer a { color: #b8c7d6; text-decoration: none; }
.bc-footer a:hover { color: #fff; }
.bc-footer__legal { border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; color: #8aa0b6; padding: 18px 0 26px; }
.bc-footer__legal p { margin: 4px 0; }
.site-info, .footer-bar { display: none; }

/* Responsivo --------------------------------------------------------- */
@media (max-width: 1024px) {
	.blog .site-main, .archive .site-main, .search .site-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
	body { font-size: 16.5px; }
	.bc-topbar .bc-topbar__right { display: none; }
	.bc-topbar .bc-wrap { justify-content: center; text-align: center; font-size: 12px; }
	.inside-header { padding: 12px 18px; }
	.bc-brand__name { font-size: 19px; }
	.bc-brand .bc-logo-mark { width: 34px; height: 24px; }
	.one-container .site-content { padding: 20px 18px 40px; }
	.bc-hero { padding: 28px 22px 24px; border-radius: 14px; margin-bottom: 26px; }
	.bc-hero__title { font-size: 28px; }
	.bc-hero__sub { font-size: 16px; }
	.blog .site-main, .archive .site-main, .search .site-main { grid-template-columns: 1fr; gap: 26px; }
	.single .entry-title { font-size: 29px; }
	.bc-dek { font-size: 17.5px; }
	.single .entry-content { font-size: 17.5px; }
	.single .entry-content > p:first-child { font-size: 18px; }
	.entry-content h2 { font-size: 23px; }
	.bc-badge { display: none; }
	.bc-author { flex-direction: column; }
	.bc-footer__grid { grid-template-columns: 1fr; gap: 26px; padding-top: 36px; }
	.page .entry-title { font-size: 30px; }
	.bc-ad--topo, .bc-ad--meio-1, .bc-ad--meio-2, .bc-ad--meio-3, .bc-ad--fim { min-height: 300px; }
}

/* Busca do menu ----------------------------------------------------- */
.main-navigation { position: relative; }
.navigation-search { position: absolute; left: -99999px; top: 0; right: auto; width: 100%; opacity: 0; visibility: hidden; z-index: 30; pointer-events: none; }
.navigation-search.nav-search-active { left: 0; right: 0; opacity: 1; visibility: visible; pointer-events: auto; }
.navigation-search input[type="search"] { width: 100%; height: 56px; padding: 0 16px; font-size: 16px; border: 1px solid var(--line); border-radius: 10px; }

/* Página do autor --------------------------------------------------- */
.bc-profile { grid-column: 1 / -1; display: flex; gap: 28px; align-items: flex-start; border: 1px solid var(--line); border-radius: 18px; padding: 36px; margin-bottom: 36px; background: linear-gradient(135deg, #f3faf7 0%, #eef4fb 100%); }
.bc-profile .bc-avatar { width: 96px; height: 96px; font-size: 34px; }
.bc-profile__name { font-size: 34px; margin: 2px 0 4px; }
.bc-profile__role { font-size: 15px; font-weight: 700; color: var(--brand); margin: 0 0 14px; }
.bc-profile__bio p { font-size: 17px; color: #334155; margin: 0 0 12px; max-width: 720px; }
.bc-profile__topics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.bc-profile__stats { font-size: 14px; color: var(--muted); margin-top: 12px; }
@media (max-width: 768px) { .bc-profile { flex-direction: column; padding: 24px 20px; gap: 16px; } .bc-profile .bc-avatar { width: 72px; height: 72px; font-size: 26px; } .bc-profile__name { font-size: 27px; } }

/* Fotos de autor e LinkedIn ------------------------------------------ */
.bc-avatar--img { background: #e6eaf0; overflow: hidden; padding: 0; }
.bc-avatar--img img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.bc-author__in { display: inline-block; margin-left: 14px; font-size: 14px; font-weight: 700; color: #0a66c2; text-decoration: none; }
.bc-btn-linkedin { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; background: #0a66c2; color: #fff !important; font-size: 14px; font-weight: 700; text-decoration: none; padding: 9px 16px; border-radius: 8px; }
.bc-btn-linkedin:hover { background: #004182; }

.bc-cover { margin: 0 0 28px; }
.bc-cover img { width: 100%; height: auto; display: block; border-radius: 12px; }
.single .featured-image.page-header-image-single { display: none; }
