/*
Theme Name: BizMarketing
Theme URI: https://bizmarketing.ro
Author: Netring
Description: Temă proprie, ușoară, pentru bizmarketing.ro: ghiduri practice de marketing pentru afaceri mici.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
License: GNU General Public License v2 or later
Text Domain: bizmarketing
*/

:root {
	--ink: #13212B;
	--muted: #4A5A66;
	--teal: #0E5C4C;
	--teal-dark: #0A4338;
	--teal-soft: #F2F6F4;
	--amber: #F2B441;
	--amber-soft: #FFF8EA;
	--line: #DCE3E0;
	--bg: #FFFFFF;
	--radius: 12px;
	--wrap: 1200px;
	--font: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.screen-reader-text, .skip-link:not(:focus) { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 36px; height: 36px; border-radius: 9px; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.brand-name { font-weight: 800; font-size: 21px; letter-spacing: -0.02em; }
.brand-name span { color: var(--teal); }
.primary-nav { flex: 1 1 420px; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.nav-list a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 0; display: inline-block; }
.nav-list a:hover, .nav-list a[aria-current], .nav-list .current-menu-item > a { color: var(--teal); }
.header-search input { font: inherit; font-size: 15px; border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; width: 190px; min-height: 42px; }
.nav-toggle { display: none; }

/* Buttons, labels */
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); color: #fff; }
.btn-ghost { border: 1.5px solid var(--teal); color: var(--teal); }
.eyebrow, .kicker { font-size: 12.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--teal); }
.pill { align-self: flex-start; background: #FCEFD3; color: #6B4A06; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; color: var(--muted); font-weight: 600; }

/* Hero */
.hero { background: var(--teal-soft); }
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.hero-text { display: flex; flex-direction: column; gap: 20px; }
.hero-title { margin: 0; font-size: clamp(34px, 4.4vw, 50px); line-height: 1.08; font-weight: 800; letter-spacing: -0.03em; }
.hero-lede { margin: 0; font-size: 18px; color: var(--muted); max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.lead-card { display: flex; flex-direction: column; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 2px rgba(19,33,43,.06), 0 12px 32px rgba(19,33,43,.08); color: var(--ink); text-decoration: none; }
.lead-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.lead-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.lead-title { font-size: 25px; line-height: 1.25; font-weight: 800; letter-spacing: -0.02em; }
.lead-card:hover .lead-title { color: var(--teal); }
.lead-excerpt { font-size: 15px; color: var(--muted); }

/* Sections */
.section { padding-top: 48px; padding-bottom: 48px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; }
.section-title { margin: 0 0 22px; font-size: 23px; font-weight: 800; letter-spacing: -0.01em; }
.band { background: var(--teal-soft); }
.topics { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.topic { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 6px; color: var(--ink); text-decoration: none; background: #fff; }
.topic .icon { color: var(--teal); margin-bottom: 4px; }
.topic span { font-size: 13.5px; color: var(--muted); }
.topic:hover { border-color: var(--teal); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 32px 28px; }
.card-link { display: flex; flex-direction: column; gap: 10px; color: var(--ink); text-decoration: none; }
.card-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }
.card-img--empty { background: var(--teal-soft); }
.card-title { margin: 0; font-size: 19px; line-height: 1.3; font-weight: 800; }
.card-link:hover .card-title { color: var(--teal); }
.card-excerpt { margin: 0; font-size: 15px; color: var(--muted); }
.ranked { margin: 0; padding: 0; list-style: none; counter-reset: r; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); column-gap: 40px; }
.ranked li { counter-increment: r; display: flex; gap: 18px; padding: 16px 0; border-top: 1px solid var(--line); }
.ranked li::before { content: counter(r); font-size: 26px; font-weight: 800; color: var(--teal); min-width: 30px; line-height: 1.2; }
.ranked a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 17px; line-height: 1.4; }
.ranked a:hover { color: var(--teal); }

/* Archive */
.archive-head { padding-top: 48px; display: flex; flex-direction: column; gap: 10px; }
.page-title { margin: 0; font-size: clamp(30px, 4vw, 42px); line-height: 1.12; font-weight: 800; letter-spacing: -0.03em; }
.archive-desc { color: var(--muted); max-width: 760px; }
.pagination { margin-top: 40px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 700; }
.page-numbers.current { background: var(--teal); color: #fff; border-color: var(--teal); }

/* Article */
.article-head { padding-top: 36px; display: flex; flex-direction: column; gap: 16px; }
.breadcrumb { font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.article-title { margin: 0; font-size: clamp(32px, 4.4vw, 46px); line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; max-width: 900px; }
.article-lede { margin: 0; font-size: 19px; color: var(--muted); max-width: 780px; }
.article-hero { padding-top: 28px; }
.article-img { width: 100%; aspect-ratio: 15 / 8; object-fit: cover; border-radius: 14px; }
.article-layout { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-top: 40px; padding-bottom: 64px; }
.toc { flex: 1 1 240px; max-width: 290px; position: sticky; top: 20px; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; font-size: 14.5px; }
.toc summary { font-size: 12.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--teal); cursor: pointer; }
.toc ol { margin: 12px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--teal); }
.article-body { flex: 999 1 560px; min-width: 0; max-width: 740px; }

/* Entry content */
.entry { font-size: 18px; line-height: 1.75; }
.entry > * { margin-top: 0; margin-bottom: 1.1em; }
.entry h2 { font-size: 28px; line-height: 1.25; font-weight: 800; letter-spacing: -0.02em; margin-top: 1.8em; scroll-margin-top: 20px; }
.entry h3 { font-size: 21px; line-height: 1.3; font-weight: 800; margin-top: 1.5em; }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry li { margin-bottom: 0.4em; }
.entry figure { margin: 1.6em 0; }
.entry figure img { border-radius: var(--radius); }
.entry table { width: 100%; border-collapse: collapse; font-size: 16px; margin: 1.4em 0; display: block; overflow-x: auto; }
.entry th, .entry td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.entry thead th { background: var(--teal-soft); font-weight: 700; }
.entry .sfat { background: var(--amber-soft); border: 1.5px solid var(--amber); border-radius: var(--radius); padding: 18px 22px; }
.entry .sfat p { margin: 0; }
.entry blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--teal); color: var(--muted); }
.faq { border-bottom: 1px solid var(--line); }
.faq-item { border-top: 1px solid var(--line); padding: 14px 0; }
.faq-item summary { font-weight: 700; cursor: pointer; list-style-position: outside; }
.faq-item p { margin: 10px 0 0; color: #33434E; }
.page-article .entry { max-width: 740px; }

/* Search form */
.search-form { display: flex; gap: 8px; margin: 16px 0; }
.search-form .search-field { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; flex: 1; min-height: 44px; }
.search-form .search-submit { font: inherit; font-weight: 700; background: var(--teal); color: #fff; border: 0; border-radius: 8px; padding: 0 18px; min-height: 44px; }

/* Footer */
.site-footer { background: var(--ink); color: #C4CED4; font-size: 14px; margin-top: 0; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-top: 40px; padding-bottom: 24px; }
.footer-about { display: flex; flex-direction: column; gap: 8px; max-width: 360px; }
.footer-brand { font-weight: 800; font-size: 18px; color: #fff; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.footer-links a { color: #C4CED4; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-copy { padding-bottom: 32px; color: #8D9AA3; }

/* Mobile */
@media (max-width: 760px) {
	body { font-size: 16px; }
	.nav-toggle { display: block; margin-left: auto; }
	.nav-toggle summary { list-style: none; width: 44px; height: 44px; display: flex; flex-direction: column; justify-content: center; gap: 5px; cursor: pointer; }
	.nav-toggle summary::-webkit-details-marker { display: none; }
	.nav-toggle summary span { display: block; height: 2px; background: var(--ink); width: 24px; margin: 0 auto; }
	.primary-nav, .header-search { display: none; flex-basis: 100%; }
	.nav-toggle[open] ~ .primary-nav, .nav-toggle[open] ~ .header-search { display: block; }
	.nav-list { flex-direction: column; gap: 0; }
	.nav-list a { padding: 10px 0; }
	.header-search input { width: 100%; }
	.hero-grid { padding-top: 36px; padding-bottom: 40px; gap: 32px; }
	.toc { position: static; max-width: none; }
	.entry { font-size: 17px; }
	.entry h2 { font-size: 24px; }
}
