/*
Theme Name: Netra Code
Theme URI: https://netracode.com
Author: Netra Code
Author URI: https://netracode.com
Description: Production theme for Netra Code — custom software, AI automation, and digital growth.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
Text Domain: netra-code
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-logo, custom-menu, featured-images, full-width-template, theme-options
*/

/* Foundational reset — primary styles live in assets/css/theme.css */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
	line-height: 1.6;
	color: #0f172a;
	background: #ffffff;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
}

.screen-reader-text,
.skip-link {
	position: absolute;
	left: -9999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.skip-link:focus {
	position: fixed;
	left: 1rem;
	top: 1rem;
	z-index: 100000;
	width: auto;
	height: auto;
	padding: 0.75rem 1rem;
	background: #0b1220;
	color: #fff;
	overflow: visible;
	clip: auto;
	text-decoration: none;
	border-radius: 0.375rem;
}

:root {
	--nc-dark: #0b1220;
	--nc-blue: #2f6bff;
	--nc-text: #0f172a;
	--nc-muted: rgba(255, 255, 255, 0.65);
	--nc-border: rgba(255, 255, 255, 0.12);
}

.nc-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: rgba(11, 18, 32, 0.92);
	backdrop-filter: blur(16px);
	border-bottom: 1px solid var(--nc-border);
	color: #fff;
}

.nc-header__inner,
.nc-footer__inner,
.nc-container,
.nc-mega__inner {
	width: min(1120px, calc(100% - 2rem));
	margin-inline: auto;
}

.nc-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 4.5rem;
}

.nc-logo {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	text-decoration: none;
	font-weight: 700;
	letter-spacing: 0.22em;
	font-size: 0.95rem;
}

.nc-logo__code {
	color: var(--nc-blue);
}

.nc-logo__divider {
	width: 1px;
	height: 1rem;
	background: var(--nc-blue);
}

.nc-nav {
	display: none;
}

.nc-nav__list {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nc-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	padding: 0.5rem 0.75rem;
	border-radius: 0.5rem;
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
	font-size: 0.875rem;
	background: transparent;
	border: 0;
	cursor: pointer;
	font: inherit;
}

.nc-nav__link:hover,
.nc-nav__link:focus-visible {
	color: #fff;
	background: rgba(255, 255, 255, 0.1);
}

.nc-header__ctas {
	display: none;
	align-items: center;
	gap: 0.75rem;
}

.nc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.55rem 1rem;
	border-radius: 0.5rem;
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 600;
	border: 1px solid transparent;
}

.nc-btn--primary {
	background: var(--nc-blue);
	color: #fff;
}

.nc-btn--ghost {
	color: rgba(255, 255, 255, 0.85);
	border-color: rgba(255, 255, 255, 0.2);
}

.nc-menu-toggle {
	display: inline-flex;
	flex-direction: column;
	gap: 4px;
	background: transparent;
	border: 0;
	padding: 0.5rem;
	cursor: pointer;
}

.nc-menu-toggle__bar {
	display: block;
	width: 1.25rem;
	height: 2px;
	background: #fff;
}

.nc-mega {
	border-top: 1px solid var(--nc-border);
	background: #0a101c;
	padding: 1.5rem 0 2rem;
}

.nc-mega__inner {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 1.25rem;
}

.nc-mega__title {
	color: #fff;
	font-weight: 600;
	text-decoration: none;
}

.nc-mega__list {
	list-style: none;
	margin: 0.75rem 0 0;
	padding: 0;
}

.nc-mega__list a {
	color: var(--nc-muted);
	text-decoration: none;
	font-size: 0.85rem;
}

.nc-drawer {
	position: fixed;
	inset: 0;
	z-index: 50;
	background: rgba(0, 0, 0, 0.55);
}

.nc-drawer__panel {
	margin-left: auto;
	width: min(22rem, 100%);
	height: 100%;
	background: var(--nc-dark);
	color: #fff;
	padding: 1.25rem;
	overflow: auto;
}

.nc-drawer__list {
	list-style: none;
	padding: 0;
	margin: 1rem 0;
}

.nc-drawer__list a {
	display: block;
	padding: 0.75rem 0;
	color: #fff;
	text-decoration: none;
	border-bottom: 1px solid var(--nc-border);
}

.nc-footer {
	background: var(--nc-dark);
	color: #fff;
	padding: 3.5rem 0 2rem;
	margin-top: 4rem;
}

.nc-footer__grid {
	display: grid;
	gap: 2rem;
}

.nc-footer__heading {
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin: 0 0 1rem;
}

.nc-footer__list,
.nc-footer__contact,
.nc-footer__social,
.nc-footer__legal {
	list-style: none;
	margin: 0;
	padding: 0;
}

.nc-footer__list a,
.nc-footer__contact a,
.nc-footer__social a,
.nc-footer__legal a {
	color: var(--nc-muted);
	text-decoration: none;
	font-size: 0.9rem;
}

.nc-footer__list li + li,
.nc-footer__contact li + li {
	margin-top: 0.65rem;
}

.nc-footer__tagline {
	color: var(--nc-muted);
	max-width: 18rem;
	font-size: 0.9rem;
}

.nc-footer__bottom {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--nc-border);
}

.nc-footer__copy {
	margin: 0;
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.5);
}

.nc-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.nc-section {
	padding: 3rem 0;
}

.nc-section__title {
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	margin: 0 0 0.75rem;
}

.nc-section__intro {
	color: #475569;
	max-width: 40rem;
}

.nc-post-list {
	display: grid;
	gap: 1.5rem;
	margin-top: 2rem;
}

.nc-post-card {
	border-bottom: 1px solid #e2e8f0;
	padding-bottom: 1.5rem;
}

.nc-post-card__title {
	margin: 0.35rem 0;
	font-size: 1.35rem;
}

.nc-post-card__title a {
	text-decoration: none;
	color: var(--nc-text);
}

.nc-404__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 1.5rem 0;
}

.nc-404__links {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	list-style: none;
	padding: 0;
}

@media (min-width: 1024px) {
	.nc-nav,
	.nc-header__ctas {
		display: flex;
	}

	.nc-menu-toggle {
		display: none;
	}

	.nc-footer__grid {
		grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
	}

	.nc-footer__bottom {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}
