/*
Theme Name:  Nyasatech
Theme URI:   https://nyasatech.com
Author:      Nyasatech
Author URI:  https://nyasatech.com
Description: A high-performance, lightweight WordPress theme built for speed and full Elementor Pro compatibility. Nyasatech ships with minimal core styles so Elementor remains in full control of your design — no theme interference, no bloat, just a clean, fast foundation.
Version:     1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.5
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nyasatech
Tags:        block-patterns, custom-colors, custom-logo, custom-menu, editor-style, elementor, full-width-template, one-column, rtl-language-support, threaded-comments, translation-ready, wide-blocks
*/

/* ============================================================
   NYASATECH — Core Reset & Base
   All visual styling lives in nyasa.css
   ============================================================ */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	padding: 0;
	min-height: 100vh;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	word-break: break-word;
	overflow-x: hidden;
}

/* Blank canvas for Elementor — no inherited margins */
h1, h2, h3, h4, h5, h6,
p, ul, ol, dl, figure, blockquote {
	margin: 0;
	padding: 0;
}

ul, ol {
	list-style: none;
}

a {
	text-decoration: none;
	color: inherit;
}

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

table {
	border-collapse: collapse;
	border-spacing: 0;
}

input, button, textarea, select {
	font: inherit;
}

/* WordPress core alignment classes */
.alignnone  { margin: 0.5em 1em 0.5em 0; }
.aligncenter { display: block; margin: 0.5em auto; }
.alignright  { float: right; margin: 0.5em 0 0.5em 1em; }
.alignleft   { float: left;  margin: 0.5em 1em 0.5em 0; }
.alignwide   { max-width: 100%; }
.alignfull   { width: 100vw; margin-left: calc(50% - 50vw); }

/* Screen reader text */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* Skip link */
.skip-link {
	position: absolute;
	top: -100%;
	left: 0;
	z-index: 99999;
	padding: 0.75em 1.5em;
	background: #000;
	color: #fff;
	font-size: 0.875rem;
	font-weight: 700;
	transition: top 0.2s;
}
.skip-link:focus {
	top: 0;
}

/* WordPress admin bar spacing */
.admin-bar #wpadminbar { position: fixed; }

/* Elementor full-width support */
.elementor-page .site-content,
.elementor-page .entry-content {
	padding: 0;
	margin: 0;
}

.elementor-page .site-header,
.elementor-page .site-footer {
	position: relative;
	z-index: 100;
}

/* Sticky header utility */
.nyasatech-sticky-header {
	position: sticky;
	top: 0;
	z-index: 999;
	width: 100%;
}

/* Preloader */
#nyasatech-preloader {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	transition: opacity 0.4s ease, visibility 0.4s ease;
}
#nyasatech-preloader.loaded {
	opacity: 0;
	visibility: hidden;
}

/* Smooth Elementor section transitions */
.elementor-section,
.elementor-container {
	transition: none; /* Let Elementor handle its own animations */
}

/* Comments */
.comment-content a { word-wrap: break-word; }
.bypostauthor > .comment-body > .comment-meta > .comment-author .avatar {
	border: 2px solid currentColor;
}

/* Gallery */
.gallery { display: flex; flex-wrap: wrap; gap: 4px; }
.gallery-item { flex: 1 1 calc(33.333% - 4px); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* WP Caption */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.8em; text-align: center; }

/* Sticky posts */
.sticky { /* handled by nyasa.css */ }
