/*
Theme Name: Nextient
Theme URI: https://nextient.io
Author: Nextient Technology
Author URI: https://nextient.io
Description: The Nextient Technology website as a WordPress theme: the interactive AI-brain homepage, About and Contact pages, a blog powered by WordPress posts, and a contact form that emails you and keeps a copy of every message in wp-admin.
Version: 1.1.1
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Text Domain: nextient
Tags: blog, custom-logo, custom-menu, featured-images, one-column
*/

/* ---------- Base (from the original design) ---------- */

body { margin: 0; background: #F4F1EC; }
a { color: #223382; }
a:hover { color: #F98513; }

/* ---------- Header & mobile menu ---------- */

.nx-mob { display: none; }
.nx-panel { display: none; }
@media (max-width: 800px) {
  .nx-desk { display: none !important; }
  .nx-mob { display: flex !important; }
  .nx-header.is-open .nx-panel { display: flex !important; }
}

.nx-menu-toggle { -webkit-appearance: none; appearance: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; }
.nx-menu-toggle > span { transition: transform 0.2s ease; }
.nx-header.is-open .nx-menu-toggle > span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nx-header.is-open .nx-menu-toggle > span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.nx-menu-toggle:focus-visible { outline: 2px solid #223382; outline-offset: 3px; }

/* Keep the sticky header below the WordPress admin bar when logged in. */
.admin-bar .nx-header { top: 32px !important; }
@media (max-width: 782px) { .admin-bar .nx-header { top: 46px !important; } }
@media (max-width: 600px) { .admin-bar .nx-header { top: 0 !important; } }

/* ---------- Hover / focus states (style-hover / style-focus in the design files) ---------- */

.nx-h-navy:hover { background: #223382 !important; color: #F4F1EC !important; }
.nx-h-glow:hover { transform: translateY(-2px) !important; box-shadow: 0 18px 40px -16px rgba(249, 133, 19, 0.8) !important; }
.nx-h-pop:hover { transform: translateY(-2px) scale(1.02) !important; }
.nx-h-cream:hover { background: #F4F1EC !important; color: #111144 !important; }
.nx-h-orange:hover { color: #F98513 !important; }
.nx-h-lift:hover { transform: translateY(-4px) !important; }
.nx-f-ring:focus { border-color: #F98513 !important; box-shadow: 0 0 0 4px rgba(249, 133, 19, 0.22) !important; }

@media (prefers-reduced-motion: reduce) {
  .nx-h-glow:hover, .nx-h-pop:hover, .nx-h-lift:hover { transform: none !important; }
}

/* ---------- Layout ---------- */

.nx-main { flex: 1 0 auto; display: flex; flex-direction: column; }

/* ---------- Accessibility ---------- */

.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; padding: 0; overflow: hidden;
  position: absolute !important; word-wrap: normal !important;
}
.nx-skip-link:focus {
  clip: auto; clip-path: none; height: auto; width: auto; margin: 0; overflow: visible;
  left: 16px; top: 16px; z-index: 100000; padding: 12px 18px; border-radius: 999px;
  background: #223382; color: #F4F1EC; font: 600 15px/1 'Hanken Grotesk', sans-serif; text-decoration: none;
}

/* ---------- Contact form ---------- */

.nx-form-fields { display: contents; }
.nx-form-fields[hidden], .nx-form-thanks[hidden], .nx-form-error[hidden] { display: none !important; }
.nx-form-thanks:focus { outline: none; }
.nx-form-error {
  margin: 0; padding: 14px 18px; border-radius: 12px; font-size: 15px; line-height: 1.5;
  background: rgba(249, 133, 19, 0.14); border: 1px solid rgba(249, 133, 19, 0.55); color: #111144;
}
.nx-form-error a { color: #111144; }
.nx-hp { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }
.nx-contact-form button[disabled] { opacity: 0.65; cursor: progress; }

/* ---------- Blog ---------- */

.nx-cover > img.wp-post-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

.nx-pagination .nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.nx-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
  min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px;
  border: 1px solid rgba(34, 51, 130, 0.3); color: #223382; text-decoration: none;
  font-family: 'JetBrains Mono', monospace; font-size: 13px;
}
.nx-pagination a.page-numbers:hover { background: #223382; color: #F4F1EC; }
.nx-pagination .page-numbers.current { background: #F98513; border-color: #F98513; color: #111144; }
.nx-pagination .page-numbers.dots { border-color: transparent; }

.nx-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.nx-tags a {
  padding: 6px 12px; border-radius: 999px; background: rgba(155, 172, 216, 0.35); color: #223382;
  font-family: 'JetBrains Mono', monospace; font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
}
.nx-tags a:hover { background: #223382; color: #F4F1EC; }

.privacy-policy-link { color: #34478F; text-decoration: none; }
.privacy-policy-link:hover { color: #F98513; }

/* ---------- Post & page content (anything written in the WordPress editor) ---------- */

.nx-prose { color: #34478F; font-size: 18px; line-height: 1.75; overflow-wrap: break-word; }
.nx-prose > * { margin-top: 0; margin-bottom: 1.25em; }
.nx-prose > :last-child { margin-bottom: 0; }
.nx-prose h2, .nx-prose h3, .nx-prose h4, .nx-prose h5, .nx-prose h6 {
  margin-top: 1.9em; margin-bottom: 0.6em; color: #223382; font-weight: 600;
  letter-spacing: -0.02em; line-height: 1.2; text-wrap: balance;
}
.nx-prose > h2:first-child, .nx-prose > h3:first-child { margin-top: 0; }
.nx-prose h2 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.025em; }
.nx-prose h3 { font-size: clamp(21px, 2vw, 25px); }
.nx-prose h4 { font-size: 19px; }
.nx-prose a { color: #223382; text-decoration: underline; text-decoration-color: #F98513; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.nx-prose a:hover { color: #F98513; }
.nx-prose strong { color: #223382; font-weight: 600; }
.nx-prose ul, .nx-prose ol { padding-left: 1.4em; }
.nx-prose li { margin: 0.35em 0; }
.nx-prose li::marker { color: #F98513; }
.nx-prose blockquote { margin-left: 0; margin-right: 0; padding: 4px 0 4px 22px; border-left: 3px solid #F98513; color: #223382; font-size: 1.15em; line-height: 1.55; }
.nx-prose blockquote p { margin: 0 0 0.6em; }
.nx-prose blockquote cite { font-family: 'JetBrains Mono', monospace; font-size: 12px; font-style: normal; letter-spacing: 0.08em; color: #34478F; }
.nx-prose code, .nx-prose kbd {
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.86em;
  padding: 0.12em 0.4em; border-radius: 6px; background: rgba(155, 172, 216, 0.28); color: #111144;
}
.nx-prose pre {
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 14.5px; line-height: 1.6;
  padding: 20px 22px; border-radius: 16px; background: #111144; color: #F4F1EC; overflow-x: auto;
}
.nx-prose pre code { padding: 0; background: none; color: inherit; font-size: inherit; }
.nx-prose img, .nx-prose video, .nx-prose iframe { max-width: 100%; }
.nx-prose img { height: auto; border-radius: 14px; }
.nx-prose figure { margin-left: 0; margin-right: 0; }
.nx-prose figcaption, .nx-prose .wp-caption-text {
  margin-top: 10px; font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.06em; color: #34478F; text-align: left;
}
.nx-prose hr { margin: 2.5em 0; border: 0; border-top: 1px solid rgba(34, 51, 130, 0.18); }
.nx-prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.nx-prose th, .nx-prose td { padding: 10px 12px; text-align: left; border-bottom: 1px solid rgba(34, 51, 130, 0.16); }
.nx-prose th { color: #223382; font-weight: 600; }
.nx-prose .wp-block-table thead { border-bottom: 1px solid rgba(34, 51, 130, 0.35); }
.nx-prose .wp-block-table th, .nx-prose .wp-block-table td { border: 0; border-bottom: 1px solid rgba(34, 51, 130, 0.16); }
.nx-prose .alignleft { float: left; margin: 0.3em 1.5em 1em 0; }
.nx-prose .alignright { float: right; margin: 0.3em 0 1em 1.5em; }
.nx-prose .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.nx-prose .wp-block-button__link { padding: 14px 24px; border-radius: 999px; background: #F98513; color: #111144; font-weight: 600; text-decoration: none; }
.nx-prose .wp-block-button__link:hover { background: #223382; color: #F4F1EC; }
.nx-prose .wp-block-embed iframe { width: 100%; }
