/*
Theme Name: Nile Network Solutions
Theme URI: https://nilenetworksolutions.com/
Author: Samoual Shingrai
Author URI: https://nilenetworksolutions.com/
Description: Block theme for Nile Network Solutions — technical training, skilled staffing, and recruitment for the Datacenter, Fiber Optics, Networking, and Low Voltage industries. Fully editable from the WordPress Site Editor. Built by Sam.
Version: 1.3.1
Tested up to: 6.6
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: NileNetworkSolutions
Tags: block-theme, full-site-editing, business, training, education, blue, two-columns, three-columns, custom-colors, custom-logo, custom-menu, featured-images, block-patterns, rtl-language-support, translation-ready
*/

/*
 * Nile Network Solutions — WordPress block theme.
 * Built by Sam (Samoual Shingrai) for the NNS team.
 */

/*
 * The block editor handles most styling via theme.json.
 * This file holds only small classic-CSS overrides we still need.
 */

/* Smooth body baseline */
body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Make pattern columns wrap nicely on small screens */
@media (max-width: 781px) {
	.wp-block-columns.alignwide,
	.wp-block-columns.alignfull {
		gap: 1rem;
	}
}

/* Industries grid + Service cards — use native WP grid layout, no overrides needed */

/* Circle icon for service cards and industries */
.nns-icon-circle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--wp--preset--color--accent, #2C6DDE);
	color: #fff;
	font-size: 28px;
	line-height: 1;
	margin: 0 auto;
}
.nns-icon-circle--lg { width: 80px; height: 80px; font-size: 34px; }
.nns-icon-circle--sm { width: 44px; height: 44px; font-size: 20px; }

/* Checkmark list */
.nns-checklist p {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 8px;
}
.nns-checklist p::before {
	content: "";
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	background: var(--wp--preset--color--accent, #2C6DDE);
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='white' d='M6.5 11.5 3 8l1-1 2.5 2.5L12 4l1 1z'/></svg>") center / 12px 12px no-repeat;
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='white' d='M6.5 11.5 3 8l1-1 2.5 2.5L12 4l1 1z'/></svg>") center / 12px 12px no-repeat;
	border-radius: 50%;
	margin-top: 4px;
}

/* Contact form basics — works with or without form plugins */
.nns-contact-form-wrap {
	max-width: 640px;
	margin: 0 auto;
}
.nns-contact-form .nns-field {
	display: flex;
	flex-direction: column;
	margin-bottom: 16px;
}
.nns-contact-form label {
	font-weight: 600;
	margin-bottom: 6px;
	color: var(--wp--preset--color--primary, #082A63);
}
.nns-contact-form input[type="text"],
.nns-contact-form input[type="email"],
.nns-contact-form input[type="tel"],
.nns-contact-form input[type="url"],
.nns-contact-form select,
.nns-contact-form textarea {
	padding: 12px 14px;
	border: 1px solid #cdd6e4;
	border-radius: 6px;
	font: inherit;
	background: #fff;
	width: 100%;
}
.nns-contact-form input:focus,
.nns-contact-form select:focus,
.nns-contact-form textarea:focus {
	outline: 2px solid var(--wp--preset--color--accent, #2C6DDE);
	outline-offset: 1px;
	border-color: var(--wp--preset--color--accent, #2C6DDE);
}
.nns-contact-form .nns-button {
	display: inline-block;
	background: var(--wp--preset--color--accent, #2C6DDE);
	color: #fff;
	padding: 14px 32px;
	border: 0;
	border-radius: 6px;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s ease;
}
.nns-contact-form .nns-button:hover,
.nns-contact-form .nns-button:focus {
	background: var(--wp--preset--color--primary, #082A63);
}
.nns-contact-form__success {
	background: #e9f6ee;
	border-left: 4px solid #2e8b57;
	padding: 14px 18px;
	border-radius: 4px;
	margin-bottom: 18px;
}
.nns-contact-form__errors {
	background: #fdecec;
	border-left: 4px solid #c0392b;
	padding: 14px 18px;
	border-radius: 4px;
	margin-bottom: 18px;
}
.nns-contact-form__errors ul {
	margin: 0;
	padding-left: 18px;
}

/* Honeypot hidden from sighted users + screen readers */
.nns-field--honeypot {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

/* Print: hide nav and footer CTA */
@media print {
	header.wp-block-template-part,
	footer.wp-block-template-part,
	.wp-block-buttons {
		display: none !important;
	}
}
