/*
Theme Name: Incite
Theme URI: https://incitetm.com
Author: Incite Technology Management, LLC
Description: Lightweight block theme for Incite Technology Management.
Version: 1.0.4
Requires at least: 6.5
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: incite
*/

/* ---------- Global ---------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:where(a, button, input, textarea, select, summary):focus-visible {
	outline: 3px solid var(--wp--preset--color--steel);
	outline-offset: 2px;
	border-radius: 2px;
}
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.skip-link:focus { background: #fff; color: var(--wp--preset--color--ink); padding: .75rem 1rem; z-index: 1000; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--wp--preset--color--rule); background: #fff; position: sticky; top: 0; z-index: 50; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; position: relative; } }
.site-brand { line-height: 1.1; }
.site-brand .wp-block-site-title { margin: 0; }
.site-brand .wp-block-site-title a { text-decoration: none; color: var(--wp--preset--color--ink); }
.site-brand-sub { margin: 2px 0 0 !important; font-size: .78rem; color: var(--wp--preset--color--muted); letter-spacing: .01em; }
.site-header .wp-block-navigation a { text-decoration: none; }
.site-header .wp-block-navigation a:hover { color: var(--wp--preset--color--blue); }
.header-call .wp-block-button__link { white-space: nowrap; }
@media (max-width: 480px) { .site-header .wp-block-buttons.header-call { display: none; } }
/* Collapse the menu to the hamburger up to 960px (core only does this below 600px) */
@media (min-width: 600px) and (max-width: 959px) {
	.site-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.site-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}

/* ---------- Logo (vector trace of the Perulian wordmark) ---------- */
.site-logo { display: block; flex-shrink: 0; width: clamp(200px, 22vw, 300px); color: #002060; line-height: 0; }
.site-logo svg { display: block; width: 100%; height: auto; }
.site-logo:hover { color: var(--wp--preset--color--blue); }
.site-logo--footer { width: 260px; color: #fff; margin-bottom: 1.25rem; }
.site-logo--footer:hover { color: #fff; opacity: .85; }

/* ---------- Hero (the one bold element) ---------- */
.hero {
	position: relative;
	overflow: hidden;
	background-color: var(--wp--preset--color--ink);
	background-image:
		linear-gradient(rgba(143,169,201,.09) 1px, transparent 1px),
		linear-gradient(90deg, rgba(143,169,201,.09) 1px, transparent 1px),
		linear-gradient(rgba(143,169,201,.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(143,169,201,.05) 1px, transparent 1px);
	background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
	background-position: -1px -1px;
}
.hero::after {
	content: "";
	position: absolute; inset: 0;
	background: radial-gradient(ellipse 70% 90% at 15% 40%, rgba(14,34,64,.0) 0%, rgba(14,34,64,.55) 70%, rgba(14,34,64,.85) 100%);
	pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { max-width: 15ch; }
.hero .hero-lead { max-width: 52ch; color: #C9D6E7; }
.hero-facts { list-style: none; padding: 0; margin: 0; border-left: 1px solid rgba(143,169,201,.35); }
.hero-facts li { padding: .9rem 0 .9rem 1.5rem; border-bottom: 1px solid rgba(143,169,201,.18); color: #C9D6E7; font-size: .95rem; }
.hero-facts li:last-child { border-bottom: 0; }
.hero-facts strong { display: block; color: #fff; font-size: 1.15rem; font-weight: 650; }

/* ---------- Services list ---------- */
.service-list { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 0 4rem !important; }
@media (max-width: 781px) { .service-list { grid-template-columns: 1fr !important; } }
.service-item { border-top: 1px solid var(--wp--preset--color--rule); padding: 1.5rem 0 1.75rem; }
.service-item h3 { margin: 0 0 .5rem; }
.service-item p { margin: 0; color: var(--wp--preset--color--muted); max-width: 52ch; }

/* ---------- Monitoring band ---------- */
.ops-band { border-top: 1px solid var(--wp--preset--color--rule); border-bottom: 1px solid var(--wp--preset--color--rule); }
.ops-points { list-style: none; padding: 0; margin: 0; }
.ops-points li { padding: .55rem 0 .55rem 1.6rem; position: relative; }
.ops-points li::before {
	content: ""; position: absolute; left: 0; top: 1.05rem;
	width: .55rem; height: .55rem; border-radius: 50%;
	background: #2FA36B; box-shadow: 0 0 0 4px rgba(47,163,107,.15);
}

/* ---------- Facts row ---------- */
.fact-row { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0; }
.fact-row li { padding: 1rem 0; border-top: 1px solid var(--wp--preset--color--rule); }
.fact-row strong { display: block; font-size: 1.25rem; color: var(--wp--preset--color--ink); }
.fact-row span { color: var(--wp--preset--color--muted); font-size: .95rem; }

/* ---------- CTA band ---------- */
.cta-band .wp-block-button__link { font-size: 1.15rem; }

/* ---------- Contact ---------- */
.contact-details { list-style: none; padding: 0; margin: 0; }
.contact-details li { padding: 1rem 0; border-top: 1px solid var(--wp--preset--color--rule); }
.contact-details li span { display: block; font-size: .85rem; color: var(--wp--preset--color--muted); margin-bottom: .15rem; }
.contact-details a { text-decoration: none; }
.contact-details a:hover { text-decoration: underline; }

/* Ninja Forms tidy-up */
.nf-form-cont .nf-form-fields-required { font-size: .85rem; color: var(--wp--preset--color--muted); margin-bottom: 1rem; }
.nf-form-cont .nf-field-label label { font-weight: 600; color: var(--wp--preset--color--ink); }
.nf-form-cont input[type=text], .nf-form-cont input[type=email], .nf-form-cont input[type=tel], .nf-form-cont input[type=number], .nf-form-cont textarea {
	border: 1px solid #B8C6D8 !important; border-radius: 4px !important; background: #fff !important;
	padding: .7rem .8rem !important; font: inherit !important; color: var(--wp--preset--color--body) !important;
}
.nf-form-cont textarea { min-height: 160px; }
.nf-form-cont input[type=button], .nf-form-cont input[type=submit] {
	background: var(--wp--preset--color--blue) !important; color: #fff !important; border: 0 !important;
	border-radius: 4px !important; padding: .8rem 1.6rem !important; font: inherit !important; font-weight: 600 !important; cursor: pointer;
}
.nf-form-cont input[type=button]:hover, .nf-form-cont input[type=submit]:hover { background: var(--wp--preset--color--ink) !important; }

/* ---------- Footer ---------- */
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer p { margin: .25rem 0; }
.footer-heading { color: var(--wp--preset--color--steel) !important; font-size: .85rem !important; font-weight: 600 !important; margin-bottom: .5rem !important; }
.footer-base { border-top: 1px solid rgba(143,169,201,.25); }

@media (max-width: 781px) {
	.hero-facts { border-left: 0; border-top: 1px solid rgba(143,169,201,.35); }
	.hero-facts li { padding-left: 0; }
}
