/*
Theme Name: Nexforta Kadence
Theme URI: http://localhost:8881/
Description: Child theme of Kadence for Nexforta Systems Inc.
Author: Nexforta Systems Inc.
Template: kadence
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v3.0 (or later)
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: nexforta-kadence
*/

/* Custom styles go below. Prefer Kadence Customizer / global palette settings first.
   Design rules live in DESIGN.md at the site root. */

:root {
	--nf-navy-dark: #053255;
	--nf-shield-blue: #116A96;
	--nf-detect: #22C55E;
	--nf-radius-sm: 6px;
	--nf-radius-md: 10px;
	--nf-radius-lg: 14px;
	--nf-band-pad: 96px;
	--nf-glow: radial-gradient( ellipse 70% 80% at 75% 35%, rgba( 17, 106, 150, 0.45 ), rgba( 5, 50, 85, 0.25 ) 45%, transparent 75% );
}

/* === code === */
/* Code and specs (ports, codecs, commands): JetBrains Mono if installed, else system monospace. */
code,
kbd,
pre,
samp {
	font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

/* === header === */
.nf-announce {
	margin: 0;
	font-size: 14px;
	color: var( --global-palette3 );
	text-align: center;
}

.nf-announce a {
	color: var( --global-palette3 );
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-color: rgba( 232, 238, 248, 0.5 );
}

.nf-announce a:hover {
	text-decoration-color: currentColor;
}

#secondary-navigation .menu > li > a {
	padding: 0.55em 1.2em;
	border: 1px solid var( --global-palette3 );
	border-radius: var( --nf-radius-sm );
	color: var( --global-palette3 );
	transition: background-color 150ms ease, color 150ms ease;
}

#secondary-navigation .menu > li > a:hover,
#secondary-navigation .menu > li.current-menu-item > a {
	background: var( --global-palette3 );
	color: var( --global-palette8 );
}

.header-button-wrap .header-button,
.mobile-header-button-wrap .button {
	padding: 0.65em 1.4em;
	font-size: 15px;
	border-radius: var( --nf-radius-sm );
	font-weight: 600;
}

#secondary-navigation .menu > li > a {
	font-size: 15px;
}

/* === typography === */
.nf-eyebrow {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var( --global-palette5 );
}

.nf-display {
	margin-top: 0.4em;
	font-size: clamp( 2.6rem, 5.2vw, 4rem );
	line-height: 1.05;
	letter-spacing: -0.02em;
}

.nf-display strong,
.nf-headline strong {
	font-weight: inherit;
	color: var( --global-palette1 );
}

.nf-headline {
	margin: 0;
	font-size: clamp( 2rem, 3.6vw, 2.75rem );
	line-height: 1.1;
	letter-spacing: -0.015em;
}

.nf-sub {
	margin-top: 0.5em;
	font-size: 1.2rem;
	color: var( --global-palette4 );
}

.nf-lead {
	font-size: 1.2rem;
	line-height: 1.55;
}

.nf-note {
	font-size: 0.85rem;
	color: var( --global-palette5 );
}

.nf-title {
	margin: 0;
	font-size: 1.25rem;
	line-height: 1.3;
}

/* === bands === */
.entry-content .nf-band {
	margin-top: 0;
	margin-bottom: 0;
	padding: var( --nf-band-pad ) max( var( --global-content-edge-padding ), 2.5rem );
	border-bottom: 1px solid var( --global-palette6 );
}

.entry-content .nf-band--hero {
	padding-top: 72px;
	padding-bottom: 72px;
	background: var( --nf-glow ), var( --global-palette8 );
}

.entry-content .nf-band--glow {
	background: radial-gradient( ellipse 80% 120% at 50% 100%, rgba( 0, 67, 115, 0.55 ), transparent 70% ), var( --global-palette8 );
}

.entry-content .nf-band--tight {
	padding-top: 40px;
	padding-bottom: 40px;
}

.entry-content .nf-band--flush {
	padding: 0;
}

.entry-content .nf-band--last {
	border-bottom: 0;
}
/* === components === */
.wp-block-button .wp-element-button {
	padding: 14px 28px;
	border-radius: var( --nf-radius-sm );
	font-weight: 600;
	transition: background-color 150ms ease, color 150ms ease;
}

.wp-block-button.is-style-nf-text-arrow .wp-element-button {
	padding: 14px 4px;
	background: transparent;
	color: var( --global-palette1 );
	font-weight: 500;
}

.wp-block-button.is-style-nf-text-arrow .wp-element-button::after {
	content: "\2192";
	margin-left: 0.5em;
	transition: margin-left 150ms ease;
}

.wp-block-button.is-style-nf-text-arrow .wp-element-button:hover {
	background: transparent;
	color: var( --global-palette2 );
}

.wp-block-button.is-style-nf-text-arrow .wp-element-button:hover::after {
	margin-left: 0.8em;
}

.wp-block-column > .wp-block-group.is-style-nf-card:only-child {
	height: 100%;
}

.wp-block-group.is-style-nf-card + .wp-block-group.is-style-nf-card {
	margin-top: 20px;
}

.wp-block-group.is-style-nf-card {
	padding: 28px;
	background: var( --global-palette7 );
	border: 1px solid var( --global-palette6 );
	border-radius: var( --nf-radius-md );
}

.wp-block-group.is-style-nf-card > * + * {
	margin-top: 10px;
}

.wp-block-group.is-style-nf-card p {
	margin-bottom: 0;
}

.wp-block-group.is-style-nf-screen {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 320px;
	padding: 32px;
	text-align: center;
	background: linear-gradient( 160deg, rgba( 17, 106, 150, 0.18 ), rgba( 18, 22, 28, 0.9 ) );
	border: 1px dashed var( --global-palette6 );
	border-radius: var( --nf-radius-lg );
	box-shadow: 0 0 80px rgba( 47, 128, 237, 0.18 );
}

.is-style-nf-card .wp-block-group.is-style-nf-screen {
	min-height: 170px;
	margin-top: 20px;
	padding: 20px;
	box-shadow: none;
}

.wp-block-group.is-style-nf-screen p {
	margin: 0;
	color: var( --global-palette5 );
}

.wp-block-group.is-style-nf-screen p:first-child {
	font-weight: 600;
	color: var( --global-palette4 );
}

.wp-block-image.is-style-nf-frame img {
	width: 100%;
	border: 1px solid var( --global-palette6 );
	border-radius: var( --nf-radius-lg );
	filter: saturate( 0.9 ) contrast( 1.05 );
}

.nf-shot {
	margin: 0;
}

.nf-shot img {
	width: 100%;
	filter: drop-shadow( 0 0 48px rgba( 47, 128, 237, 0.22 ) );
}

.is-style-nf-card > .wp-block-group__inner-container:has( > .nf-card-shot ) {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.is-style-nf-card .nf-card-shot {
	width: 100%;
	margin-top: auto;
	padding-top: 20px;
}

.nf-card-shot img {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	object-position: top center;
	filter: none;
}

.wp-block-image.is-style-nf-frame figcaption,
.nf-caption {
	margin-top: 8px;
	font-size: 0.8rem;
	color: var( --global-palette5 );
}

.kt-svg-icons {
	margin-bottom: 0;
}

/* === page sections === */
.nf-hero-actions {
	margin-top: 32px;
}

.nf-rule-note::before {
	content: "";
	display: inline-block;
	width: 24px;
	height: 2px;
	margin-right: 14px;
	vertical-align: middle;
	background: var( --global-palette1 );
}

.nf-card-kicker {
	color: var( --global-palette3 );
	font-weight: 500;
}

.nf-collage {
	gap: 12px;
	margin-bottom: 0;
}

.nf-collage .wp-block-image {
	margin-bottom: 12px;
}

.nf-collage .wp-block-column:first-child .wp-block-image,
.nf-collage .wp-block-column:first-child .wp-block-image img {
	height: 100%;
	margin-bottom: 0;
	object-fit: cover;
}

.nf-feature-strip {
	row-gap: 16px;
}

.nf-feature-strip > * {
	padding: 4px 20px;
	border-left: 1px solid var( --global-palette6 );
}

.nf-feature-strip > *:first-child {
	padding-left: 0;
	border-left: 0;
}

.nf-feature-strip p {
	margin: 0;
	color: var( --global-palette3 );
}

.nf-numbered > .wp-block-column + .wp-block-column {
	padding-left: 32px;
	border-left: 1px solid var( --global-palette6 );
}

.nf-num {
	flex-shrink: 0;
	white-space: nowrap;
	margin: 0;
	font-size: 2.2rem;
	font-weight: 700;
	line-height: 1;
	color: var( --global-palette1 );
}

.nf-num--muted {
	color: var( --global-palette5 );
}

.nf-chips p {
	margin: 0;
	padding: 10px 18px;
	font-size: 0.9rem;
	color: var( --global-palette3 );
	border: 1px solid var( --global-palette6 );
	border-radius: var( --nf-radius-sm );
}

.nf-split-media .wp-block-image,
.nf-split-media .wp-block-image img {
	height: 100%;
	margin: 0;
	object-fit: cover;
}

.nf-split-text {
	padding: 64px 48px;
}

.nf-icon-row > .kt-svg-icons {
	flex-shrink: 0;
}

.nf-circle-icon .kt-svg-icon-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border: 1px solid var( --global-palette6 );
	border-radius: 50%;
	background: rgba( 47, 128, 237, 0.08 );
}

.nf-perm-table {
	margin: 0;
}

.nf-perm-table table {
	border-collapse: collapse;
	width: 100%;
	font-size: 0.95rem;
}

.nf-perm-table th,
.nf-perm-table td {
	padding: 14px 18px;
	border: 1px solid var( --global-palette6 );
	text-align: center;
}

.nf-perm-table th {
	color: var( --global-palette3 );
	font-weight: 600;
	background: var( --global-palette8 );
}

.nf-perm-table td:first-child,
.nf-perm-table th:first-child {
	text-align: left;
	color: var( --global-palette3 );
}

.nf-perm-table tbody tr:first-child {
	background: rgba( 0, 67, 115, 0.45 );
}

.nf-perm-table strong {
	color: var( --nf-detect );
	font-size: 1.15em;
}

.nf-perm-table td {
	color: var( --global-palette5 );
}

.wp-block-button.nf-arrow-down .wp-element-button::after {
	content: "\2193";
}

.wp-block-button.nf-arrow-down .wp-element-button:hover::after {
	margin-left: 0.5em;
}

.nf-mini-cards {
	margin-top: 28px;
	gap: 14px;
}

.nf-mini-cards .wp-block-group.is-style-nf-card {
	padding: 20px;
}

.nf-mini-cards .nf-title {
	font-size: 1.05rem;
}

.nf-pair {
	gap: 12px;
}

.nf-live-feed img {
	box-shadow: 0 0 80px rgba( 47, 128, 237, 0.18 );
}

.nf-compare-list > * {
	margin: 0;
	padding: 10px 0;
	border-bottom: 1px solid var( --global-palette6 );
}

.nf-compare-list > *:last-child {
	border-bottom: 0;
}

.nf-detect-label {
	margin: 0;
	padding: 12px 16px;
	color: var( --global-palette3 );
	border: 1px solid var( --global-palette6 );
	border-left: 3px solid var( --nf-detect );
	border-radius: var( --nf-radius-sm );
	background: var( --global-palette8 );
}

/* === form === */
.nf-waitlist .wp-block-jetpack-contact-form {
	gap: 16px;
}

.nf-waitlist input[type="email"],
.nf-waitlist input[type="text"],
.nf-waitlist textarea,
.nf-waitlist select {
	min-height: 52px;
	padding: 12px 16px;
	color: var( --global-palette3 );
	background: var( --global-palette8 );
	border: 1px solid var( --global-palette6 );
	border-radius: var( --nf-radius-sm );
}

.nf-waitlist input:focus,
.nf-waitlist textarea:focus,
.nf-waitlist select:focus {
	border-color: var( --global-palette1 );
	outline: 2px solid rgba( 47, 128, 237, 0.35 );
	outline-offset: 0;
}

.nf-waitlist label {
	color: var( --global-palette4 );
	font-size: 0.9rem;
}

/* === footer === */
.nf-footer-brand {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 32px;
	font-size: 0.85rem;
	color: var( --global-palette5 );
}

.nf-footer-logo img {
	display: block;
	width: 150px;
	height: auto;
}

/* === responsive === */
@media ( max-width: 1024px ) {
	:root {
		--nf-band-pad: 64px;
	}

	.nf-split-text {
		padding: 48px 24px;
	}
}

@media ( max-width: 781px ) {
	.entry-content .nf-band {
		padding-left: 20px;
		padding-right: 20px;
	}

	.entry-content .nf-band--flush {
		padding: 0;
	}

	.nf-feature-strip > *,
	.nf-feature-strip > *:first-child {
		padding: 8px 0;
		border-left: 0;
	}

	.nf-numbered > .wp-block-column + .wp-block-column {
		padding-left: 0;
		padding-top: 24px;
		border-left: 0;
		border-top: 1px solid var( --global-palette6 );
	}

	.nf-perm-table {
		overflow-x: auto;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
		scroll-behavior: auto !important;
	}
}
