/* NanoSecond — layout and component styles that theme.json cannot express. */

/* ---------------------------------------------------------------- header */

.ns-header {
	position: sticky;
	top: 0;
	z-index: 20;
}

.ns-brand {
	gap: 0.7rem;
}

.ns-header-right {
	gap: 1.5rem;
}

.ns-header-phone {
	margin: 0;
	font-weight: 700;
	font-size: 0.9375rem;
	white-space: nowrap;
}

.ns-header-phone a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.ns-header-phone a:hover {
	color: var(--wp--preset--color--accent);
}

.wp-block-navigation .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--accent);
}

/* ------------------------------------------------------------------ hero */

.ns-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
}

.ns-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(
		105deg,
		rgba(20, 24, 29, 0.94) 0%,
		rgba(20, 24, 29, 0.86) 45%,
		rgba(20, 24, 29, 0.55) 100%
	);
}

.ns-hero .ns-hero-kicker {
	margin: 0 0 0.75rem;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #7fb2f0;
}

.ns-hero h1 {
	margin: 0 0 1rem;
	max-width: 16ch;
}

.ns-hero .ns-hero-lede {
	max-width: 46ch;
	font-size: var(--wp--preset--font-size--large);
	color: #cdd6df;
}

.ns-phone-cta {
	display: inline-flex;
	align-items: baseline;
	gap: 0.6rem;
	margin: 0;
	font-size: clamp(1.75rem, 5vw, 2.5rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.1;
}

.ns-phone-cta a {
	color: inherit;
	text-decoration: none;
	border-bottom: 3px solid var(--wp--preset--color--accent);
}

.ns-phone-cta a:hover {
	border-bottom-color: #7fb2f0;
}

/* ------------------------------------------------------------- page head */

.ns-page-head h1 {
	margin: 0;
}

/* ----------------------------------------------------------------- cards */

.ns-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1.25rem;
}

.ns-card {
	padding: 1.5rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 10px;
	background: var(--wp--preset--color--surface);
}

.ns-card h3 {
	margin: 0 0 0.5rem;
	font-size: 1.0625rem;
}

.ns-card p {
	margin: 0;
	color: var(--wp--preset--color--muted);
	font-size: 0.9375rem;
}

/* ------------------------------------------------------------ list grids */

.ns-service-list ul,
.ns-client-list ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 0.6rem 1.5rem;
}

.ns-service-list li,
.ns-client-list li {
	padding: 0.55rem 0 0.55rem 1.35rem;
	border-bottom: 1px solid var(--wp--preset--color--border);
	position: relative;
}

.ns-service-list li::before,
.ns-client-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 1.15rem;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--wp--preset--color--accent);
}

/* --------------------------------------------------------------- pricing */

.ns-price table,
.ns-price .wp-block-table table {
	width: 100%;
	border-collapse: collapse;
}

.ns-price td {
	padding: 0.85rem 0;
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.ns-price td:last-child {
	text-align: right;
	font-weight: 700;
	white-space: nowrap;
}

/* ------------------------------------------------------------------ misc */

.ns-lede {
	font-size: var(--wp--preset--font-size--large);
	color: var(--wp--preset--color--graphite);
}

.ns-panel {
	padding: clamp(1.5rem, 4vw, 2.5rem);
	border-radius: 12px;
}

figure.ns-figure img {
	border-radius: 10px;
	width: 100%;
	height: auto;
}

figure.ns-figure figcaption {
	color: var(--wp--preset--color--muted);
	font-size: 0.875rem;
}

/* ---------------------------------------------------------------- footer */

.ns-footer a {
	color: #9ec6f5;
}

.ns-footer a:hover {
	color: #ffffff;
}

.ns-footer .ns-footer-title {
	color: #ffffff;
	margin: 0 0 0.5rem;
}

.ns-footer .ns-footer-h {
	color: #8b98a6;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	margin: 0 0 0.75rem;
}

.ns-footer-tagline {
	color: #aab5c0;
	max-width: 34ch;
}

.ns-footer-phone {
	font-size: 1.375rem;
	font-weight: 700;
	margin-top: 1rem;
}

.ns-footer-phone a {
	color: #ffffff;
	text-decoration: none;
}

.ns-footer-rule {
	border-color: #2c343d;
	opacity: 1;
}

.ns-footer-legal {
	color: #7d8a97;
	margin: 0;
}

/* ------------------------------------------------------- Contact Form 7 */

.wpcf7 {
	max-width: 640px;
}

.wpcf7 .ns-field {
	margin-bottom: 1.1rem;
}

.wpcf7 .ns-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 0 1.1rem;
}

.wpcf7 label {
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	margin-bottom: 0.35rem;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="date"],
.wpcf7 textarea {
	width: 100%;
	padding: 0.7rem 0.85rem;
	font: inherit;
	font-size: 1rem;
	color: var(--wp--preset--color--ink);
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 6px;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 1px;
	border-color: var(--wp--preset--color--accent);
}

.wpcf7 textarea {
	min-height: 150px;
	resize: vertical;
}

.wpcf7 .ns-consent .wpcf7-list-item {
	margin: 0;
}

.wpcf7 .ns-note {
	padding: 0.9rem 1rem;
	margin-bottom: 1.1rem;
	border-left: 3px solid var(--wp--preset--color--accent);
	background: var(--wp--preset--color--mist);
	font-size: 0.9375rem;
	color: var(--wp--preset--color--graphite);
}

.wpcf7 input[type="submit"] {
	font: inherit;
	font-weight: 600;
	color: #ffffff;
	background: var(--wp--preset--color--accent);
	border: 0;
	border-radius: 6px;
	padding: 0.85rem 1.8rem;
	cursor: pointer;
}

.wpcf7 input[type="submit"]:hover {
	background: var(--wp--preset--color--accent-dark);
}

/* --------------------------------------------------------------- mobile */

@media (max-width: 600px) {
	.ns-header-phone {
		display: none;
	}

	.ns-hero h1 {
		max-width: none;
	}
}
