/*
 * Secure IT: small additions that theme.json can't express.
 * Colors, fonts and spacing come from theme.json presets. Keep this file short.
 */

/* Visible keyboard focus everywhere */
:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 2px solid var(--wp--preset--color--brand-dark);
	outline-offset: 2px;
}

/* Header, main and footer sit flush; sections handle their own spacing */
.wp-site-blocks > * {
	margin-block-start: 0;
}

/* Header */
.sit-header .sit-logo img {
	display: block;
	height: auto;
}
/* Desktop drop-down only; the phone menu keeps WordPress's plain list */
.sit-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container {
	border: 1px solid var(--wp--preset--color--line) !important;
	border-radius: 6px;
	min-width: 17rem !important;
	padding: 0.375rem 0;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.sit-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 0.5rem 1rem;
}
/* "Contact" appears only in the phone menu (desktop has the header button) */
.sit-header .wp-block-navigation__responsive-container:not(.is-menu-open) .sit-menu-mobile-only {
	display: none;
}

/* Links inside dark sections use the light blue (6.5:1 on #333) */
.has-ink-background-color a:where(:not(.wp-element-button)) {
	color: var(--wp--preset--color--brand-light);
}

/* Small uppercase label above headings */
.sit-eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 600;
}

/* Cards */
.sit-card {
	border: 1px solid var(--wp--preset--color--line);
	border-top: 3px solid var(--wp--preset--color--brand);
	border-radius: 6px;
}
.sit-card h3 a {
	color: inherit;
	text-decoration: none;
}
.sit-card h3 a:hover {
	color: var(--wp--preset--color--brand-dark);
	text-decoration: underline;
}

/* Numbered project steps */
.sit-steps {
	list-style: none;
	padding-left: 0;
	counter-reset: sit-step;
}
.sit-steps li {
	counter-increment: sit-step;
	position: relative;
	padding-left: 2.75rem;
	margin-bottom: 1rem;
}
.sit-steps li:last-child {
	margin-bottom: 0;
}
.sit-steps li::before {
	content: counter(sit-step);
	position: absolute;
	left: 0;
	top: 0.05em;
	width: 1.875rem;
	height: 1.875rem;
	border-radius: 50%;
	background: var(--wp--preset--color--brand-tint);
	color: var(--wp--preset--color--brand-dark);
	font-weight: 700;
	font-size: 0.9375rem;
	line-height: 1.875rem;
	text-align: center;
}
.sit-steps strong {
	display: block;
}

/* FAQ (details blocks) */
.sit-faq {
	border-bottom: 1px solid var(--wp--preset--color--line);
	padding: var(--wp--preset--spacing--30) 0;
}
.sit-faq summary {
	font-weight: 600;
	cursor: pointer;
}
.sit-faq summary:hover {
	color: var(--wp--preset--color--brand-dark);
}
.sit-faq > :not(summary) {
	margin-top: 0.75rem;
}

/* Footer (dark) */
.sit-footer a {
	color: var(--wp--preset--color--base);
	text-decoration: none;
}
.sit-footer a:hover {
	text-decoration: underline;
}
.sit-footer-links {
	list-style: none;
	padding-left: 0;
}
.sit-footer-links li {
	margin-bottom: 0.5rem;
}
.sit-footer h2 {
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

/* Phones: hide the header button (the menu and page buttons cover it) */
@media (max-width: 599px) {
	.sit-header .sit-header-cta {
		display: none;
	}
}

/* Blog post list */
.sit-post-list {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--40);
}
.sit-post-list .wp-block-post-title a {
	text-decoration: none;
}
.sit-post-list .wp-block-post-title a:hover {
	text-decoration: underline;
}
