/* NariQ — extras that theme.json can't express. */

/* Thin technical grid behind hero / CTA sections */
.is-style-nariq-grid-bg {
	background-image:
		linear-gradient(#161616 1px, transparent 1px),
		linear-gradient(90deg, #161616 1px, transparent 1px);
	background-size: 56px 56px;
}

/* Card */
.is-style-nariq-card {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 10px;
	transition: border-color 0.15s ease;
}
.is-style-nariq-card:hover,
.is-style-nariq-card:focus-within {
	border-color: var(--wp--preset--color--line-strong);
}

/* Mono eyebrow label: "// 01 / Services" */
.is-style-nariq-eyebrow {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--xs);
	color: var(--wp--preset--color--accent);
	letter-spacing: 0;
}

/* Ghost button */
.wp-block-button.is-style-nariq-ghost .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--contrast);
	border: 1px solid var(--wp--preset--color--line-strong);
}
.wp-block-button.is-style-nariq-ghost .wp-block-button__link:hover {
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent);
}

/* Header */
.nariq-header {
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.nariq-header .wp-block-image img {
	height: 40px;
	width: auto;
}

/* Language switcher (Polylang) */
.nariq-lang {
	display: inline-flex;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 6px;
	overflow: hidden;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.8125rem;
}
.nariq-lang a {
	padding: 0.6rem 0.75rem;
	color: var(--wp--preset--color--muted);
	text-decoration: none;
}
.nariq-lang a[aria-current="true"] {
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
}
.nariq-lang a:hover {
	color: var(--wp--preset--color--accent);
}

/* Terminal panel in the hero */
.nariq-terminal {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.875rem;
	line-height: 1.9;
}
.nariq-terminal .nariq-terminal__bar {
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.nariq-terminal .nariq-terminal__bar span {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #2e2e2e;
	margin-right: 6px;
}

/* Process list: top rule per step */
.nariq-steps > .wp-block-group {
	border-top: 1px solid var(--wp--preset--color--line-strong);
}

/* Featured images in post cards */
.nariq-post-card .wp-block-post-featured-image {
	margin: 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.nariq-post-card .wp-block-post-featured-image img {
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

/* Inline code */
:where(p, li) code {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.9em;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 4px;
	padding: 0.1em 0.4em;
}

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

::selection {
	background: var(--wp--preset--color--accent);
	color: #000;
}

/* Contact form */
.nariq-form { display: grid; gap: 1.1rem; max-width: 640px; }
.nariq-form p { margin: 0; }
.nariq-field { display: grid; gap: 0.4rem; }
.nariq-field label { font-size: 0.875rem; color: var(--wp--preset--color--muted); }
.nariq-form input[type="text"],
.nariq-form input[type="email"],
.nariq-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 0.8rem 0.9rem;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
	border: 1px solid var(--wp--preset--color--line-strong);
	border-radius: 6px;
	font: inherit;
}
.nariq-form input:focus,
.nariq-form textarea:focus { border-color: var(--wp--preset--color--accent); outline: none; }
.nariq-consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.875rem; color: var(--wp--preset--color--muted); }
.nariq-consent input { margin-top: 0.3rem; accent-color: var(--wp--preset--color--accent); }
.nariq-form button { cursor: pointer; border: 0; }
.nariq-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nariq-form-notice { padding: 0.9rem 1rem; border-radius: 6px; border: 1px solid var(--wp--preset--color--line-strong); background: var(--wp--preset--color--surface); }
.nariq-form-notice.is-ok { border-color: var(--wp--preset--color--accent); }
.nariq-form-notice.is-err { border-color: #e5484d; }
