/*
Theme Name: NodeGravity
Theme URI: https://olive-mosquito-194022.hostingersite.com/
Author: NodeGravity IT Solution
Description: Fast, SEO-friendly block theme for NodeGravity IT Solution. Pair with the "NodeGravity Blocks" plugin for the full design system (mega menu, voice search, reveal animations, animated icons).
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 7.4
Version: 1.0.0
License: GPLv2 or later
Text Domain: nodegravity
*/

/* Layout shells used by templates */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid #f5b81c; outline-offset: 2px; }
.skip-link:focus { z-index: 1000; }
.wp-site-blocks { display: flex; flex-direction: column; min-height: 100vh; }
.wp-site-blocks > main { flex: 1; }
.wp-site-blocks > * + * { margin-block-start: 0; }

.ng-shell { max-width: 1448px; margin-inline: auto !important; padding: 34px 24px 50px; box-sizing: border-box; }
.ng-shell > .wp-block-columns { gap: 32px; margin: 0; }
.ng-shell .ng-section { padding-block: 0; }
.ng-shell .ng-section > .ng-container { padding-inline: 0; max-width: none; }
.ng-sticky-side { position: sticky; top: 92px; }

/* Archive / search header */
.ng-archive-head { background: linear-gradient(100deg, #edf2ff 0%, #f6f8ff 45%, #fff 100%); padding: 40px 24px 34px; }
.ng-archive-head > * { max-width: 1400px; margin-inline: auto !important; }
.ng-archive-head .wp-block-query-title { font-family: var(--wp--preset--font-family--serif); font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; margin: 0; }
.ng-archive-head .wp-block-term-description { color: #4a5470; margin-top: 8px; }

/* Single post content typography */
.ng-entry { color: #3d4766; }
.ng-entry > * { margin-block: 0 1.1em; }
.ng-entry h2, .ng-entry h3, .ng-entry h4 { font-family: var(--wp--preset--font-family--serif); font-weight: 700; letter-spacing: -.01em; margin: 1.5em 0 .5em; color: #0e2a5c; }
.ng-entry h2 { font-size: clamp(20px, 2vw, 24px); }
.ng-entry h3 { font-size: 19px; }
.ng-entry a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ng-entry ul, .ng-entry ol { padding-left: 1.3em; }
.ng-entry li { margin-bottom: .35em; }
.ng-entry img { border-radius: 12px; }
.ng-entry .wp-block-quote, .ng-entry .is-style-ng-quote { position: relative; background: #f5f8ff; border: 1px solid #e5eaf5; border-left: 0; border-radius: 12px; padding: 18px 22px 18px 70px; font-size: 16.5px; color: #1f2a4d; }
.ng-entry .wp-block-quote::before { content: "\201C"; position: absolute; left: 18px; top: 2px; font: 700 64px/1 Georgia, serif; background: linear-gradient(90deg, #0e2a5c, #e09a0b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ng-entry .wp-block-quote p { margin: 0; }
.ng-entry .is-style-ng-box { background: #f5f8ff; border: 1px solid #e5eaf5; border-radius: 12px; padding: 18px 22px; }
.ng-entry .is-style-ng-box h3, .ng-entry .is-style-ng-box h4 { margin-top: 0; font-family: var(--wp--preset--font-family--heading); font-size: 17px; }
.ng-entry .is-style-ng-box ul { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; margin: 0; }
.ng-entry .is-style-ng-box li { position: relative; padding-left: 26px; margin: 0; }
.ng-entry .is-style-ng-box li::before { content: ""; position: absolute; left: 0; top: 4px; width: 17px; height: 17px; border-radius: 50%; background: #0e2a5c url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.ng-feature-img img { border-radius: 14px; width: 100%; aspect-ratio: 16 / 7.4; object-fit: cover; }
.wp-block-post-featured-image.ng-feature-img { margin: 22px 0; }

/* Comments */
.wp-block-comments { margin-top: 28px; }
.wp-block-comments .wp-block-heading { font-family: var(--wp--preset--font-family--serif); font-size: 22px; }
.wp-block-comment-template { list-style: none; padding: 0; }
.wp-block-comment-template li { border-bottom: 1px solid #eef1f8; padding: 14px 0; }
.wp-block-comment-author-name { font-weight: 700; color: #0e2a5c; }
.comment-form textarea, .comment-form input:not([type=submit]):not([type=checkbox]) { width: 100%; border: 1px solid #dfe5f3; border-radius: 10px; padding: 12px; font: inherit; box-sizing: border-box; }
.comment-form .submit, .wp-block-post-comments-form input[type=submit] { background: linear-gradient(90deg, #0e2a5c, #e09a0b); color: #fff; border: 0; border-radius: 8px; padding: 12px 24px; font-weight: 600; cursor: pointer; }

/* Plain text pages */
.ng-textpage { max-width: 820px; margin: 0 auto; padding: 40px 24px 60px; }
.ng-textpage .wp-block-post-title { font-family: var(--wp--preset--font-family--serif); font-size: clamp(28px, 3.4vw, 40px); margin: 0 0 20px; }

@media (max-width: 900px) {
	.ng-shell > .wp-block-columns { flex-wrap: wrap !important; }
	.ng-shell > .wp-block-columns > .wp-block-column { flex-basis: 100% !important; }
	.ng-sticky-side { position: static; }
	.ng-entry .is-style-ng-box ul { grid-template-columns: 1fr; }
}
@media (max-width: 640px) { .ng-shell { padding: 22px 16px 40px; } }

/* Accent variants (chosen via page template) */
.page-template-page-green { --ng-blue: #16a34a; --ng-grad: linear-gradient(90deg, #15803d 0%, #16a34a 60%, #22c55e 100%); --ng-grad-d: linear-gradient(110deg, #0f7a3c 0%, #16a34a 55%, #1f8d4f 100%); }
.page-template-page-green .ng-hero { background: linear-gradient(100deg, #ecfdf3 0%, #f6fbf8 42%, #fff 100%); }
