/**
 * CyberGovernanceCenter — Custom Stylesheet
 * Governance Blue #0E1A2B | Structural Slate #2F3B4C | Audit White #F4F6F8
 * Steel Blue #3B5D7A | Muted Red #A94442 | Controlled Green #2F6B4F
 */

/* ─────────────────────────────────────────────
   0. Reset & Base
   ───────────────────────────────────────────── */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body {
	overflow-x: hidden;
}

img {
	max-width: 100%;
	height: auto;
}

/* ─────────────────────────────────────────────
   1. Typography — Atkinson Hyperlegible
   ───────────────────────────────────────────── */

.has-micro-font-size {
	font-size: 14px !important;
	letter-spacing: 0.01em;
}

.cgc-eyebrow,
.eyebrow {
	font-size: 24px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--audit-white);
	margin-bottom: 0.5rem;
	display: block;
}

.cgc-lead,
.lead {
	font-size: clamp(1.125rem, 1.5vw, 1.25rem);
	line-height: 1.7;
	color: var(--wp--preset--color--structural-slate);
}

/* ─────────────────────────────────────────────
   2. Header & Navigation
   ───────────────────────────────────────────── */

.cgc-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.cgc-header .wp-block-navigation {
	gap: 0.25rem;
}

.cgc-header .wp-block-navigation-item a {
	padding: 0.5rem 0.75rem;
	border-radius: 4px;
	transition: background-color 0.2s ease, color 0.2s ease;
	font-size: 14px;
}

.cgc-header .wp-block-navigation-item a:hover {
	background-color: rgba(255, 255, 255, 0.08);
}

/* Login link — visually restrained */
.cgc-nav-login a {
	opacity: 0.7;
	font-size: 13px !important;
	font-weight: 400 !important;
	border-left: 1px solid rgba(255, 255, 255, 0.15);
	padding-left: 1rem !important;
	margin-left: 0.5rem;
}

.cgc-nav-login a:hover {
	opacity: 1;
}

/* Top utility bar */
.cgc-utility-bar {
	font-size: 13px;
	letter-spacing: 0.02em;
}

/* ─────────────────────────────────────────────
   3. Buttons
   ───────────────────────────────────────────── */

.wp-block-button__link,
.wp-element-button {
	transition: all 0.25s ease;
	border: 2px solid transparent;
	cursor: pointer;
}

.wp-block-button__link:hover,
.wp-element-button:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(14, 26, 43, 0.15);
}

/* Secondary button style */
.is-style-cgc-secondary .wp-block-button__link {
	background-color: transparent !important;
	color: var(--wp--preset--color--audit-white) !important;
	border: 2px solid rgba(244, 246, 248, 0.4);
}

.is-style-cgc-secondary .wp-block-button__link:hover {
	border-color: var(--wp--preset--color--audit-white);
	background-color: rgba(244, 246, 248, 0.08) !important;
}

/* Ghost button (for dark-on-light) */
.is-style-cgc-ghost .wp-block-button__link {
	background-color: transparent !important;
	color: var(--wp--preset--color--steel-blue) !important;
	border: 2px solid var(--wp--preset--color--steel-blue);
}

.is-style-cgc-ghost .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--steel-blue) !important;
	color: var(--wp--preset--color--white) !important;
}

/* CTA primary — prominent */
.cgc-cta-primary .wp-block-button__link {
	background-color: var(--wp--preset--color--steel-blue) !important;
	font-size: 15px;
	padding: 1rem 2.25rem;
}

/* CTA muted red accent for urgency */
.cgc-cta-urgent .wp-block-button__link {
	background-color: var(--wp--preset--color--muted-red) !important;
}

.cgc-cta-urgent .wp-block-button__link:hover {
	background-color: #8B3836 !important;
}

/* ─────────────────────────────────────────────
   4. Cards
   ───────────────────────────────────────────── */

.is-style-cgc-card {
	background: var(--wp--preset--color--white);
	border-radius: 6px;
	padding: 2rem !important;
	box-shadow: 0 2px 8px rgba(14, 26, 43, 0.08), 0 1px 3px rgba(14, 26, 43, 0.05);
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.is-style-cgc-card:hover {
	box-shadow: 0 8px 24px rgba(14, 26, 43, 0.12), 0 2px 8px rgba(14, 26, 43, 0.06);
	transform: translateY(-2px);
}

.is-style-cgc-card-bordered {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--light-steel);
	border-radius: 6px;
	padding: 2rem !important;
	transition: border-color 0.3s ease;
}

.is-style-cgc-card-bordered:hover {
	border-color: var(--wp--preset--color--steel-blue);
}

/* Icon cards layout */
.is-style-cgc-icon-cards > .wp-block-column {
	background: var(--wp--preset--color--white);
	border-radius: 6px;
	padding: 2rem;
	box-shadow: 0 2px 8px rgba(14, 26, 43, 0.08);
	text-align: center;
	transition: all 0.3s ease;
	border-top: 3px solid transparent;
}

.is-style-cgc-icon-cards > .wp-block-column:hover {
	border-top-color: var(--wp--preset--color--steel-blue);
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(14, 26, 43, 0.12);
}

/* ─────────────────────────────────────────────
   5. Hero Section
   ───────────────────────────────────────────── */

.cgc-hero {
	position: relative;
	overflow: hidden;
}

.cgc-hero::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background:
		radial-gradient(ellipse at 20% 50%, rgba(59, 93, 122, 0.15) 0%, transparent 60%),
		radial-gradient(ellipse at 80% 20%, rgba(47, 59, 76, 0.1) 0%, transparent 50%);
	pointer-events: none;
	z-index: 0;
}

.cgc-hero > * {
	position: relative;
	z-index: 1;
}

.cgc-hero-grid-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image:
		linear-gradient(rgba(244, 246, 248, 0.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(244, 246, 248, 0.03) 1px, transparent 1px);
	background-size: 60px 60px;
	pointer-events: none;
	z-index: 0;
}

/* ─────────────────────────────────────────────
   6. Section Patterns
   ───────────────────────────────────────────── */

.cgc-section {
	padding-top: clamp(4rem, 8vw, 7rem);
	padding-bottom: clamp(4rem, 8vw, 7rem);
}

.cgc-section-header {
	text-align: center;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 3rem;
}

/* Alternating background */
.cgc-section-alt {
	background-color: var(--wp--preset--color--audit-white);
}

.cgc-section-dark {
	background-color: var(--wp--preset--color--governance-blue);
	color: var(--wp--preset--color--audit-white);
}

.cgc-section-dark h2,
.cgc-section-dark h3,
.cgc-section-dark h4 {
	color: var(--wp--preset--color--audit-white);
}

.cgc-section-dark p {
	color: rgba(244, 246, 248, 0.8);
}

/* ─────────────────────────────────────────────
   7. Steps / Process
   ───────────────────────────────────────────── */

.cgc-steps {
	counter-reset: step-counter;
}

.cgc-step {
	counter-increment: step-counter;
	position: relative;
	padding-left: 4.5rem;
	margin-bottom: 2.5rem;
}

.cgc-step::before {
	content: counter(step-counter, decimal-leading-zero);
	position: absolute;
	left: 0;
	top: 0;
	font-size: 2rem;
	font-weight: 700;
	color: var(--wp--preset--color--steel-blue);
	opacity: 0.3;
	line-height: 1;
}

.cgc-step-line {
	position: absolute;
	left: 1.25rem;
	top: 2.5rem;
	bottom: -1rem;
	width: 1px;
	background: var(--wp--preset--color--light-steel);
}

/* Horizontal steps for wider layouts */
.cgc-steps-horizontal {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 2rem;
	counter-reset: step-counter;
}

.cgc-steps-horizontal .cgc-step-h {
	counter-increment: step-counter;
	text-align: center;
	position: relative;
	padding: 1.5rem;
}

.cgc-steps-horizontal .cgc-step-h::before {
	content: counter(step-counter);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--wp--preset--color--steel-blue);
	color: var(--wp--preset--color--white);
	font-size: 1.125rem;
	font-weight: 700;
	margin: 0 auto 1rem;
}

/* ─────────────────────────────────────────────
   8. Tabs Component
   ───────────────────────────────────────────── */

.cgc-tabs {
	margin-top: 2rem;
}

.cgc-tabs__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	border-bottom: 2px solid var(--wp--preset--color--light-steel);
	margin-bottom: 2rem;
}

.cgc-tabs__nav button {
	background: none;
	border: none;
	padding: 0.75rem 1.5rem;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	color: var(--wp--preset--color--structural-slate);
	cursor: pointer;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	transition: color 0.2s ease, border-color 0.2s ease;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.cgc-tabs__nav button:hover {
	color: var(--wp--preset--color--governance-blue);
}

.cgc-tabs__nav button.is-active {
	color: var(--wp--preset--color--steel-blue);
	border-bottom-color: var(--wp--preset--color--steel-blue);
}

.cgc-tabs__panel {
	display: none;
	animation: cgc-fade-in 0.3s ease;
}

.cgc-tabs__panel.is-active {
	display: block;
}

/* ─────────────────────────────────────────────
   9. Filter Bar (Training Catalog)
   ───────────────────────────────────────────── */

.cgc-filter-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	padding: 1.5rem 2rem;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--light-steel);
	border-radius: 6px;
	margin-bottom: 2rem;
}

.cgc-filter-bar select {
	font-family: inherit;
	font-size: 14px;
	padding: 0.5rem 2rem 0.5rem 0.75rem;
	border: 1px solid var(--wp--preset--color--light-steel);
	border-radius: 4px;
	background-color: var(--wp--preset--color--audit-white);
	color: var(--wp--preset--color--governance-blue);
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232F3B4C' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.75rem center;
	cursor: pointer;
	min-width: 160px;
}

.cgc-filter-bar select:focus {
	outline: 2px solid var(--wp--preset--color--steel-blue);
	outline-offset: 1px;
}

/* ─────────────────────────────────────────────
   10. Course Cards
   ───────────────────────────────────────────── */

.cgc-course-card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--light-steel);
	border-radius: 6px;
	padding: 1.75rem;
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.cgc-course-card:hover {
	border-color: var(--wp--preset--color--steel-blue);
	box-shadow: 0 4px 16px rgba(14, 26, 43, 0.1);
	transform: translateY(-2px);
}

.cgc-course-card__meta {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.cgc-course-card__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 0.25rem 0.625rem;
	border-radius: 3px;
	background: var(--wp--preset--color--audit-white);
	color: var(--wp--preset--color--structural-slate);
}

.cgc-course-card__badge--cert {
	background: rgba(47, 107, 79, 0.1);
	color: var(--wp--preset--color--controlled-green);
}

.cgc-course-card__title {
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--wp--preset--color--governance-blue);
	line-height: 1.3;
	margin: 0;
}

.cgc-course-card__audience {
	font-size: 14px;
	color: var(--wp--preset--color--structural-slate);
}

/* ─────────────────────────────────────────────
   11. Pricing Table
   ───────────────────────────────────────────── */

.cgc-pricing-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1.5rem;
}

.cgc-pricing-card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--light-steel);
	border-radius: 6px;
	padding: 2.5rem 2rem;
	text-align: center;
	transition: all 0.3s ease;
	position: relative;
}

.cgc-pricing-card:hover {
	border-color: var(--wp--preset--color--steel-blue);
	box-shadow: 0 8px 24px rgba(14, 26, 43, 0.1);
}

.cgc-pricing-card--featured {
	border-color: var(--wp--preset--color--steel-blue);
	border-width: 2px;
}

.cgc-pricing-card--featured::before {
	content: 'Recommended';
	position: absolute;
	top: -12px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--wp--preset--color--steel-blue);
	color: var(--wp--preset--color--white);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	padding: 0.25rem 1rem;
	border-radius: 3px;
}

.cgc-pricing-card__name {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--wp--preset--color--steel-blue);
	margin-bottom: 1rem;
}

.cgc-pricing-card__price {
	font-size: 2.5rem;
	font-weight: 700;
	color: var(--wp--preset--color--governance-blue);
	line-height: 1;
	margin-bottom: 0.25rem;
}

.cgc-pricing-card__period {
	font-size: 14px;
	color: var(--wp--preset--color--structural-slate);
	margin-bottom: 1.5rem;
}

.cgc-pricing-card__features {
	list-style: none;
	padding: 0;
	margin: 0 0 2rem;
	text-align: left;
}

.cgc-pricing-card__features li {
	padding: 0.5rem 0;
	padding-left: 1.5rem;
	position: relative;
	font-size: 15px;
	color: var(--wp--preset--color--structural-slate);
	border-bottom: 1px solid var(--wp--preset--color--audit-white);
}

.cgc-pricing-card__features li::before {
	content: '✓';
	position: absolute;
	left: 0;
	color: var(--wp--preset--color--controlled-green);
	font-weight: 700;
}

/* ─────────────────────────────────────────────
   12. Evidence / FedRAMP Sections
   ───────────────────────────────────────────── */

.cgc-evidence-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.5rem;
}

.cgc-evidence-item {
	padding: 1.5rem;
	border-left: 3px solid var(--wp--preset--color--steel-blue);
	background: var(--wp--preset--color--white);
}

.cgc-evidence-item h4 {
	margin-top: 0;
	margin-bottom: 0.5rem;
}

.cgc-disclaimer {
	background: rgba(169, 68, 66, 0.06);
	border-left: 3px solid var(--wp--preset--color--muted-red);
	padding: 1.5rem;
	border-radius: 0 4px 4px 0;
	font-size: 15px;
}

.cgc-disclaimer strong {
	color: var(--wp--preset--color--muted-red);
}

/* ─────────────────────────────────────────────
   13. Persistent CTA Bar
   ───────────────────────────────────────────── */

.cgc-persistent-cta {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 9999;
	background: var(--wp--preset--color--governance-blue);
	transform: translateY(100%);
	transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 -4px 20px rgba(14, 26, 43, 0.2);
}

.cgc-persistent-cta.is-visible {
	transform: translateY(0);
}

.cgc-persistent-cta__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0.875rem 2rem;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.cgc-persistent-cta__text {
	color: rgba(244, 246, 248, 0.8);
	font-size: 15px;
	font-weight: 600;
}

.cgc-persistent-cta__button {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.6rem 1.5rem;
	background: var(--wp--preset--color--steel-blue);
	color: var(--wp--preset--color--white);
	text-decoration: none;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	border-radius: 4px;
	transition: background-color 0.2s ease;
}

.cgc-persistent-cta__button:hover {
	background: #4A6F8E;
	color: var(--wp--preset--color--white);
}

/* ─────────────────────────────────────────────
   14. FAQ Accordion
   ───────────────────────────────────────────── */

.cgc-faq details {
	border: 1px solid var(--wp--preset--color--light-steel);
	border-radius: 4px;
	margin-bottom: 0.5rem;
	transition: border-color 0.2s ease;
}

.cgc-faq details[open] {
	border-color: var(--wp--preset--color--steel-blue);
}

.cgc-faq summary {
	padding: 1rem 1.5rem;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 16px;
	color: var(--wp--preset--color--governance-blue);
	transition: background-color 0.2s ease;
}

.cgc-faq summary:hover {
	background-color: var(--wp--preset--color--audit-white);
}

.cgc-faq summary::-webkit-details-marker {
	display: none;
}

.cgc-faq summary::after {
	content: '+';
	font-size: 1.25rem;
	font-weight: 400;
	color: var(--wp--preset--color--steel-blue);
	transition: transform 0.2s ease;
}

.cgc-faq details[open] summary::after {
	content: '−';
}

.cgc-faq details > div {
	padding: 0 1.5rem 1.25rem;
	font-size: 15px;
	line-height: 1.7;
	color: var(--wp--preset--color--structural-slate);
}

/* ─────────────────────────────────────────────
   15. Lead Capture / Gated Content
   ───────────────────────────────────────────── */

.cgc-gate {
	background: var(--wp--preset--color--audit-white);
	border: 1px solid var(--wp--preset--color--light-steel);
	border-radius: 6px;
	padding: 2rem;
	text-align: center;
	max-width: 480px;
	margin: 2rem auto;
}

.cgc-gate__icon {
	font-size: 2rem;
	margin-bottom: 1rem;
	opacity: 0.5;
}

.cgc-gate input[type="text"],
.cgc-gate input[type="email"] {
	width: 100%;
	padding: 0.65rem 1rem;
	border: 1px solid var(--wp--preset--color--light-steel);
	border-radius: 4px;
	font-family: inherit;
	font-size: 15px;
	margin-bottom: 0.75rem;
	transition: border-color 0.2s ease;
}

.cgc-gate input:focus {
	outline: none;
	border-color: var(--wp--preset--color--steel-blue);
	box-shadow: 0 0 0 3px rgba(59, 93, 122, 0.1);
}

/* ─────────────────────────────────────────────
   16. Animations
   ───────────────────────────────────────────── */

@keyframes cgc-fade-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes cgc-slide-up {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.cgc-animate-in {
	animation: cgc-fade-in 0.5s ease both;
}

.cgc-stagger > * {
	animation: cgc-slide-up 0.5s ease both;
}

.cgc-stagger > *:nth-child(1) { animation-delay: 0s; }
.cgc-stagger > *:nth-child(2) { animation-delay: 0.1s; }
.cgc-stagger > *:nth-child(3) { animation-delay: 0.2s; }
.cgc-stagger > *:nth-child(4) { animation-delay: 0.3s; }

/* ─────────────────────────────────────────────
   17. Footer
   ───────────────────────────────────────────── */

.cgc-footer a {
	color: rgba(244, 246, 248, 0.7);
	text-decoration: none;
	transition: color 0.2s ease;
}

.cgc-footer a:hover {
	color: var(--wp--preset--color--audit-white);
}

.cgc-footer__legal {
	font-size: 13px;
	color: rgba(244, 246, 248, 0.5);
}

/* ─────────────────────────────────────────────
   18. Utility Classes
   ───────────────────────────────────────────── */

.cgc-text-center { text-align: center; }
.cgc-text-left { text-align: left; }

.cgc-mx-auto { margin-left: auto; margin-right: auto; }

.cgc-max-w-narrow { max-width: 640px; }
.cgc-max-w-medium { max-width: 840px; }
.cgc-max-w-wide { max-width: 1200px; }

.cgc-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.cgc-divider {
	width: 48px;
	height: 3px;
	background: var(--wp--preset--color--steel-blue);
	border: none;
	margin: 1rem 0;
}

.cgc-divider--center {
	margin-left: auto;
	margin-right: auto;
}

/* Badge for controlled green */
.cgc-badge-green {
	background: rgba(47, 107, 79, 0.1);
	color: var(--wp--preset--color--controlled-green);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 0.2rem 0.5rem;
	border-radius: 3px;
	display: inline-block;
}

/* ─────────────────────────────────────────────
   19. Responsive
   ───────────────────────────────────────────── */

@media (max-width: 782px) {
	.cgc-persistent-cta__inner {
		padding: 0.75rem 1rem;
		gap: 0.75rem;
	}

	.cgc-persistent-cta__text {
		font-size: 13px;
	}

	.cgc-tabs__nav {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		flex-wrap: nowrap;
	}

	.cgc-tabs__nav button {
		white-space: nowrap;
		font-size: 13px;
		padding: 0.625rem 1rem;
	}

	.cgc-steps-horizontal {
		grid-template-columns: 1fr 1fr;
	}

	.cgc-pricing-grid {
		grid-template-columns: 1fr;
	}

	.cgc-filter-bar {
		flex-direction: column;
	}

	.cgc-filter-bar select {
		min-width: 100%;
	}
}

@media (max-width: 480px) {
	.cgc-steps-horizontal {
		grid-template-columns: 1fr;
	}
}
/* ─────────────────────────────────────────────
   20. UX Tweaks
   ───────────────────────────────────────────── */

.wp-block-term-description p {
    margin-bottom: var(--wp--preset--spacing--50);
}