/* CyberGuard theme — main styles. No external fonts; system stacks keep it fast. */

:root {
	--ink: #0b1a24;
	--ink-2: #1d2e3a;
	--text: #1f2a33;
	--muted: #56636e;
	--line: #dde2e4;
	--paper: #ffffff;
	--paper-2: #f4f6f3;
	--accent: #0f7b5c;
	--accent-ink: #0a5c45;
	--accent-soft: #e3f3ec;
	--signal: #3ddc97;
	--warn: #e8b04a;
	--on-dark: #e8eef0;
	--on-dark-muted: #a7b6bd;
	--radius: 10px;
	--radius-lg: 16px;
	--shadow: 0 1px 2px rgb(11 26 36 / 6%), 0 8px 24px rgb(11 26 36 / 6%);
	--font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;
	--wrap: 1160px;
	--gutter: clamp(16px, 4vw, 32px);
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root {
		--text: #dfe7ea;
		--muted: #9eadb4;
		--line: #26363f;
		--paper: #0e1b23;
		--paper-2: #13232d;
		--accent: #3ddc97;
		--accent-ink: #7ce8b9;
		--accent-soft: #143528;
		--shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 25%);
		color-scheme: dark;
	}
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--text);
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.65;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { color: inherit; line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
code, kbd, pre { font-family: var(--mono); font-size: .92em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }

.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;
}
.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px;
	background: var(--ink); color: #fff; border-radius: var(--radius); text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: calc(760px + 2 * var(--gutter)); }
.wrap-medium { max-width: calc(980px + 2 * var(--gutter)); }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; gap: .5em;
	padding: .8em 1.3em; border-radius: 999px; border: 1.5px solid var(--accent);
	background: var(--accent); color: #fff; font-weight: 600; font-size: 1rem; line-height: 1.1;
	text-decoration: none; cursor: pointer; transition: background .15s, color .15s, transform .15s;
}
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn .icon { width: 18px; height: 18px; }
.btn-small { padding: .55em 1em; font-size: .92rem; }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { background: rgb(255 255 255 / 8%); color: inherit; border-color: currentColor; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--signal); border-color: var(--signal); color: var(--ink); }
@media (prefers-color-scheme: dark) {
	.btn { color: var(--ink); }
	.btn:hover { color: var(--ink); }
	.btn-ghost, .btn-ghost:hover { color: inherit; }
}

/* Header */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: var(--ink); color: var(--on-dark);
	border-bottom: 1px solid rgb(255 255 255 / 6%);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.brand-link { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 700; letter-spacing: -0.01em; }
.brand-link:hover { color: #fff; }
.brand-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--signal); color: var(--ink); }
.brand-mark .icon { width: 20px; height: 20px; }
.brand-name { font-size: 1.08rem; }
.custom-logo { max-height: 44px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav .menu { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.site-nav .menu a { color: var(--on-dark-muted); text-decoration: none; font-weight: 500; font-size: .98rem; }
.site-nav .menu a:hover, .site-nav .current-menu-item > a, .site-nav .current_page_item > a { color: #fff; }
.site-nav .menu li { position: relative; }
.site-nav .sub-menu {
	display: none; position: absolute; top: 100%; left: -14px; min-width: 220px; list-style: none;
	margin: 0; padding: 10px 0; background: var(--ink-2); border-radius: var(--radius); box-shadow: var(--shadow);
}
.site-nav .sub-menu a { display: block; padding: 6px 16px; }
.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu { display: block; }
.header-cta { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.header-cta:hover { background: #fff; border-color: #fff; color: var(--ink); }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; color: inherit; cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
	display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-open .nav-toggle-bars { background: transparent; }
.nav-open .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
	.nav-toggle { display: block; }
	.site-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 16px;
		padding: 16px var(--gutter) 24px; background: var(--ink); border-bottom: 1px solid rgb(255 255 255 / 8%);
	}
	.nav-open .site-nav { display: flex; }
	.site-nav .menu { flex-direction: column; gap: 4px; }
	.site-nav .menu a { display: block; padding: 10px 0; font-size: 1.05rem; }
	.site-nav .sub-menu { display: block; position: static; box-shadow: none; background: none; padding: 0 0 0 14px; }
	.header-cta { align-self: flex-start; }
}

/* Hero */
.hero {
	background:
		radial-gradient(900px 400px at 85% 0%, rgb(61 220 151 / 14%), transparent 60%),
		linear-gradient(180deg, var(--ink) 0%, #0f2330 100%);
	color: var(--on-dark);
	padding: clamp(56px, 9vw, 112px) 0 clamp(56px, 8vw, 96px);
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { color: #fff; max-width: 17ch; }
.eyebrow {
	font-family: var(--mono); font-size: .82rem; letter-spacing: .04em; text-transform: uppercase;
	color: var(--signal); margin-bottom: 1.1em;
}
.lead { font-size: clamp(1.08rem, 1.6vw, 1.22rem); line-height: 1.6; max-width: 62ch; }
.hero .lead { color: var(--on-dark-muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .btn-ghost { color: var(--on-dark); }
.hero .btn { color: var(--ink); background: var(--signal); border-color: var(--signal); }
.hero .btn:hover { background: #fff; border-color: #fff; }
.hero .btn-ghost { background: transparent; color: var(--on-dark); border-color: rgb(255 255 255 / 35%); }
.hero .btn-ghost:hover { border-color: #fff; color: #fff; background: transparent; }

.term {
	background: #07121a; border: 1px solid rgb(255 255 255 / 9%); border-radius: var(--radius-lg);
	box-shadow: 0 30px 60px rgb(0 0 0 / 35%); overflow: hidden;
}
.term-bar { display: flex; gap: 7px; padding: 12px 14px; border-bottom: 1px solid rgb(255 255 255 / 6%); }
.term-bar span { width: 10px; height: 10px; border-radius: 50%; background: #2a3b45; }
.term pre { margin: 0; padding: 20px 22px 24px; color: #c9d6dc; font-size: .88rem; line-height: 1.85; overflow-x: auto; }
.term .c { color: var(--signal); }
.term .k { color: #8fb4c6; }
.term .ok { color: var(--signal); }
.term .warn { color: var(--warn); }
.cursor { display: inline-block; width: 8px; height: 1.1em; vertical-align: -2px; background: var(--signal); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } * { scroll-behavior: auto !important; } }
@media (max-width: 880px) {
	.hero-inner { grid-template-columns: 1fr; }
	.hero-panel { order: 2; }
}

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-tight { padding-top: 40px; padding-bottom: 64px; }
.section-alt { background: var(--paper-2); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; max-width: none; flex-wrap: wrap; }
.section-title { margin-bottom: 28px; }
.section-more { margin-top: 28px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .15s; }
.link-arrow:hover .icon { transform: translateX(3px); }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
	background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
	padding: 26px 24px;
}
.card .icon { width: 30px; height: 30px; color: var(--accent); margin-bottom: 16px; }
.card h3 { font-size: 1.12rem; }
.card p { color: var(--muted); font-size: .98rem; margin: 0; }
@media (max-width: 1020px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.lead-sm { color: var(--muted); font-size: 1.1rem; }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.points li { padding: 0 0 18px 22px; border-bottom: 1px solid var(--line); position: relative; }
.points li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.points li:last-child { border-bottom: 0; }
.points strong { color: var(--text); }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.fit-col { border-radius: var(--radius-lg); padding: 26px 28px; border: 1px solid var(--line); }
.fit-yes { background: var(--accent-soft); border-color: transparent; }
.fit-col h3 { display: flex; align-items: center; gap: 10px; }
.fit-col h3 .icon { width: 22px; height: 22px; }
.fit-yes h3 .icon { color: var(--accent); }
.fit-no h3 .icon { color: var(--muted); }
.fit-col ul { margin: 0; padding-left: 1.1em; }
.fit-col li { margin-bottom: .45em; }
@media (max-width: 720px) { .fit { grid-template-columns: 1fr; } }

/* Post cards */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card {
	display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line);
	border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .2s, transform .2s;
}
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.post-card-media img { width: 100%; aspect-ratio: 40 / 21; object-fit: cover; }
.post-card-body { padding: 22px 22px 20px; display: flex; flex-direction: column; flex: 1; }
.post-card-cat { font-family: var(--mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); margin-bottom: .6em; }
.post-card-title { font-size: 1.12rem; line-height: 1.35; }
.post-card-title a { color: var(--text); text-decoration: none; }
.post-card-title a:hover { color: var(--accent); }
.post-card-title a::after { content: ""; position: absolute; inset: 0; }
.post-card { position: relative; }
.post-card-excerpt { color: var(--muted); font-size: .96rem; flex: 1; }
.post-card-meta { color: var(--muted); font-size: .84rem; margin: 0; }
@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .post-grid { grid-template-columns: 1fr; } }

/* Page heads */
.page-head { padding: 40px 0 36px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 24ch; }
.page-head .lead { color: var(--muted); margin-bottom: 0; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: .92rem; margin: 0; }
.entry-meta span + span::before { content: "·"; margin-right: 18px; color: var(--line); }
.head-search { margin-top: 24px; max-width: 520px; }
.page-404 { padding: 72px 0 96px; }

.breadcrumbs { margin-bottom: 18px; font-size: .88rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; color: var(--muted); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--line); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--text); }

/* Search */
.search-form { display: flex; gap: 8px; }
.search-form input {
	flex: 1; min-width: 0; padding: .7em 1em; font: inherit; font-size: 1rem; color: var(--text);
	background: var(--paper); border: 1.5px solid var(--line); border-radius: 999px;
}
.search-form input:focus { border-color: var(--accent); outline: none; }

/* Article content */
.entry-hero { margin: 36px auto 0; }
.entry-hero img { width: 100%; border-radius: var(--radius-lg); }
.entry-content { padding-top: 40px; padding-bottom: 32px; }
.entry-content > * { margin-top: 0; margin-bottom: 1.25em; }
.entry-content h2 { margin-top: 1.9em; font-size: clamp(1.4rem, 2.3vw, 1.75rem); }
.entry-content h3 { margin-top: 1.6em; font-size: 1.25rem; }
.entry-content h4 { margin-top: 1.4em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .4em; }
.entry-content li::marker { color: var(--accent); }
.entry-content img { border-radius: var(--radius); }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figcaption, .wp-element-caption { color: var(--muted); font-size: .88rem; margin-top: .6em; text-align: center; }
.entry-content blockquote {
	margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent); color: var(--text); font-size: 1.08rem;
}
.entry-content pre {
	background: #07121a; color: #d4e0e5; padding: 18px 20px; border-radius: var(--radius); overflow-x: auto; line-height: 1.6; font-size: .9rem;
}
.entry-content :not(pre) > code { background: var(--paper-2); border: 1px solid var(--line); padding: .1em .35em; border-radius: 5px; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry-content th { background: var(--paper-2); font-weight: 600; }
.entry-content .alignwide { max-width: 980px; margin-left: calc(50% - min(490px, 50vw - var(--gutter))); margin-right: calc(50% - min(490px, 50vw - var(--gutter))); }
.entry-content .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.entry-content .alignleft { float: left; margin: .3em 1.5em 1em 0; max-width: 50%; }
.entry-content .alignright { float: right; margin: .3em 0 1em 1.5em; max-width: 50%; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }
.entry-content::after { content: ""; display: table; clear: both; }
.entry-content-full { padding: 0; }
.entry-content-full > * { margin-bottom: 0; }

.entry-foot { padding-bottom: 48px; }
.entry-tags a {
	display: inline-block; margin: 0 6px 6px 0; padding: 4px 12px; border-radius: 999px;
	background: var(--paper-2); border: 1px solid var(--line); color: var(--muted); font-size: .85rem; text-decoration: none;
}
.after-post { margin-top: 28px; padding: 24px; border-radius: var(--radius-lg); background: var(--accent-soft); }
.page-links { margin-top: 24px; }

/* Pagination */
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pagination .page-numbers {
	min-width: 42px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
	text-align: center; text-decoration: none; color: var(--text);
}
.pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.empty { text-align: center; padding: 40px 0; color: var(--muted); }

/* Comments */
.comments { border-top: 1px solid var(--line); padding-top: 32px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment-form input:not([type="submit"]):not([type="checkbox"]), .comment-form textarea {
	width: 100%; padding: .7em .9em; font: inherit; color: var(--text); background: var(--paper);
	border: 1.5px solid var(--line); border-radius: var(--radius);
}
.comment-form input[type="submit"] {
	padding: .75em 1.3em; border-radius: 999px; border: 0; background: var(--accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer;
}

/* CTA band */
.cta-band { background: var(--ink); color: var(--on-dark); padding: clamp(48px, 7vw, 80px) 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--on-dark-muted); max-width: 58ch; margin: 0; }
.cta-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.cta-phone { display: inline-flex; align-items: center; gap: 8px; color: var(--on-dark); text-decoration: none; font-weight: 600; }
.cta-phone:hover { color: var(--signal); }
.cta-phone .icon { width: 18px; height: 18px; }

/* Footer */
.site-footer { background: #07121a; color: var(--on-dark-muted); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.footer-about .brand-link { color: var(--on-dark); margin-bottom: 14px; }
.footer-about p { max-width: 42ch; }
.footer-title { font-size: .8rem; font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--on-dark); margin-bottom: 14px; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-contact li { display: flex; align-items: center; gap: 10px; }
.footer-contact .icon { width: 17px; height: 17px; color: var(--signal); flex: none; }
.footer-bottom {
	display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
	padding-top: 20px; padding-bottom: 28px; border-top: 1px solid rgb(255 255 255 / 7%); font-size: .86rem;
}
.footer-bottom p { margin: 0; }
.legal-menu { display: flex; gap: 18px; flex-wrap: wrap; }
.legal-menu li { margin: 0; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* WordPress core classes */
.sticky .post-card-title::before { content: "Pinned · "; color: var(--accent); }
.bypostauthor { }
.gallery-caption { }
.wp-block-button__link { border-radius: 999px; }
.has-text-align-center { text-align: center; }

/* Photos (1.0.1) */
.split-photo { margin: 28px 0 0; }
.split-photo img, .entry-hero img { width: 100%; height: auto; border-radius: var(--radius-lg); object-fit: cover; }
.entry-hero-small { max-width: 645px; margin: 0 auto 32px; }
.entry-page .entry-hero { margin-top: 32px; }
.entry-page .entry-hero img { aspect-ratio: 16 / 9; }
