/*
Theme Name: Comprehensive Security Services
Description: Minimal standalone WordPress foundation for Comprehensive Security's CrocoBuilder layouts. Presentation belongs to CrocoBuilder (design system, Theme Builder templates, page documents).
Version: 1.0.0
Author: Juno Bytes
Text Domain: comprehensive
Requires at least: 6.6
Requires PHP: 8.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--cs-font-body, 'DM Sans'), system-ui, sans-serif; font-size: var(--cs-size-text-md, 16px); line-height: 1.625; color: var(--cs-text-body, #5b616e); background: #fff; -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--cs-font-heading, 'Public Sans'), system-ui, sans-serif; color: var(--cs-text-dark, #040e10); }
p { margin: 0; }
a { color: inherit; }
.cb-el-post-content p + p { margin-top: 1em; }

/* Skip link (theme fallback; CrocoBuilder Theme Builder prints its own) */
.cs-skip-link { position: absolute; top: 0; left: 0; z-index: 100000; padding: 1rem; background: #fff; color: #111; transform: translateY(-150%); }
.cs-skip-link:focus { transform: translateY(0); }

/* Fallback layout when no builder template applies */
.cs-fallback { width: min(100% - 2rem, 80rem); margin-inline: auto; padding-block: 2rem; }

/* In-page anchors land below the sticky main bar */
.cb-el[id] { scroll-margin-top: 100px; }

/*
 * Site header (CrocoBuilder Theme Builder "Header" location).
 * Figma: the header overlays the hero (absolute). On scroll the 32px info bar scrolls away
 * and only the main menu bar stays pinned to the top.
 *  - position: sticky with a negative top equal to the info-bar height
 *  - negative bottom margin equal to the header height so the hero slides underneath it
 */
:root { --cs-info-height: 32px; --cs-main-height: 80px; }
@media (max-width: 1024px) { :root { --cs-main-height: 72px; } }
@media (max-width: 767px)  { :root { --cs-info-height: 32px; --cs-main-height: 64px; } }
#crocoblocks-theme-builder-header {
	position: sticky;
	top: calc(var(--wp-admin--admin-bar--height, 0px) - var(--cs-info-height));
	z-index: 1000;
	margin-bottom: calc(-1 * (var(--cs-info-height) + var(--cs-main-height)));
}
/* WP admin bar is not fixed below 600px, so don't offset for it there. */
@media (max-width: 600px) { #crocoblocks-theme-builder-header { top: calc(-1 * var(--cs-info-height)); } }

/* cs-blur-fix: main bar frosted glass (Figma: bg blur 20) */
.cb-cs_hdr_main{-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);}
