/*
Theme Name: NexusAI
Theme URI: https://nexusai.agency/
Author: NexusAI
Author URI: https://nexusai.agency/
Description: A premium, AI-first digital agency theme. Dark, modern, conversion-focused with neon blue/purple gradients, glassmorphism, and custom PHP page templates (no page builders). Lightweight, SEO-friendly, and developer-friendly.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nexusai
Tags: dark, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* =========================================
   1. Design Tokens (HSL based)
========================================= */
:root {
  --background: 228 15% 5%;
  --foreground: 210 40% 96%;
  --card: 228 20% 8%;
  --primary: 217 91% 60%;
  --primary-foreground: 228 15% 5%;
  --secondary: 270 70% 60%;
  --muted: 228 15% 14%;
  --muted-foreground: 215 20% 55%;
  --border: 228 15% 16%;
  --neon-blue: 217 91% 60%;
  --neon-purple: 270 70% 60%;
  --glass-bg: 228 20% 10%;
  --glass-border: 228 15% 20%;
  --radius: 0.75rem;
  --container: 1280px;
}

/* =========================================
   2. Reset / Base
========================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: hsl(var(--primary)); }
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .75rem;
  color: hsl(var(--foreground));
}
p { margin: 0 0 1rem; color: hsl(var(--muted-foreground)); }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select {
  font-family: inherit;
  width: 100%;
  padding: .75rem 1rem;
  border-radius: var(--radius);
  background: hsl(var(--muted) / .5);
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / .15);
}
::selection { background: hsl(var(--primary) / .3); color: hsl(var(--foreground)); }

/* =========================================
   3. Layout helpers
========================================= */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.section-padding { padding: 5rem 1rem; }
@media (min-width: 768px) { .section-padding { padding: 7rem 1rem; } }
.text-center { text-align: center; }
.grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .sm-grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .md-grid-2 { grid-template-columns: repeat(2, 1fr); } .md-grid-3 { grid-template-columns: repeat(3, 1fr); } .md-grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .lg-grid-2 { grid-template-columns: repeat(2, 1fr); } .lg-grid-3 { grid-template-columns: repeat(3, 1fr); } .lg-grid-5 { grid-template-columns: repeat(5, 1fr); } }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: .5rem; } .gap-3 { gap: .75rem; } .gap-4 { gap: 1rem; } .gap-6 { gap: 1.5rem; } .gap-8 { gap: 2rem; }
.mb-2 { margin-bottom: .5rem; } .mb-4 { margin-bottom: 1rem; } .mb-6 { margin-bottom: 1.5rem; } .mb-8 { margin-bottom: 2rem; } .mb-12 { margin-bottom: 3rem; }
.mt-4 { margin-top: 1rem; } .mt-8 { margin-top: 2rem; }

/* =========================================
   4. Typography Utilities
========================================= */
.gradient-text {
  background: linear-gradient(90deg, hsl(var(--neon-blue)), hsl(var(--neon-purple)));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.muted { color: hsl(var(--muted-foreground)); }
.eyebrow {
  display: inline-block;
  padding: .375rem 1rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 500;
  background: hsl(var(--primary) / .1);
  color: hsl(var(--primary));
  border: 1px solid hsl(var(--primary) / .2);
  margin-bottom: 1rem;
}
.h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
.h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
.h3 { font-size: 1.25rem; }
.lead { font-size: 1.125rem; max-width: 42rem; }

/* =========================================
   5. Buttons
========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  transition: all .25s ease;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
}
.btn-lg { padding: 1rem 1.75rem; font-size: 1rem; }
.btn-sm { padding: .5rem 1rem; font-size: .85rem; }
.btn-hero {
  background: linear-gradient(135deg, hsl(var(--neon-blue)), hsl(var(--neon-purple)));
  color: #fff;
  box-shadow: 0 8px 30px hsl(var(--primary) / .35);
}
.btn-hero:hover { transform: translateY(-2px); box-shadow: 0 12px 40px hsl(var(--primary) / .55); color: #fff; }
.btn-outline {
  background: transparent;
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--primary) / .4);
}
.btn-outline:hover { background: hsl(var(--primary) / .1); border-color: hsl(var(--primary)); color: hsl(var(--foreground)); }

/* =========================================
   6. Glass Cards
========================================= */
.glass-card {
  background: hsl(var(--glass-bg) / .5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid hsl(var(--glass-border));
  border-radius: var(--radius);
  padding: 1.5rem;
}
.glass-card-hover { transition: all .3s ease; }
.glass-card-hover:hover {
  border-color: hsl(var(--primary) / .4);
  box-shadow: 0 0 30px hsl(var(--primary) / .15);
  transform: translateY(-2px);
}

/* =========================================
   7. Hero glow background
========================================= */
.hero-glow {
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, hsl(var(--neon-blue) / .15), transparent),
    radial-gradient(ellipse 60% 40% at 80% 50%, hsl(var(--neon-purple) / .1), transparent);
  position: relative;
  overflow: hidden;
}

/* =========================================
   8. Navbar
========================================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: hsl(var(--background) / .8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid hsl(var(--border) / .5);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 4rem; }
.brand { display: flex; align-items: center; gap: .5rem; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.125rem; }
.brand-mark {
  width: 2rem; height: 2rem; border-radius: .5rem;
  background: linear-gradient(135deg, hsl(var(--neon-blue)), hsl(var(--neon-purple)));
  display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; font-size: .85rem;
}
.primary-menu { display: none; gap: .25rem; align-items: center; }
.primary-menu a {
  padding: .5rem .75rem; border-radius: .5rem; font-size: .9rem; font-weight: 500;
  color: hsl(var(--muted-foreground));
}
.primary-menu a:hover, .primary-menu .current-menu-item > a, .primary-menu .current_page_item > a { color: hsl(var(--primary)); }
.nav-cta { display: none; }
.menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: .5rem; }
.menu-toggle svg { width: 24px; height: 24px; stroke: currentColor; }
@media (min-width: 900px) {
  .primary-menu, .nav-cta { display: flex; }
  .menu-toggle { display: none; }
}
.mobile-menu {
  display: none;
  border-top: 1px solid hsl(var(--border));
  background: hsl(var(--background) / .95);
  backdrop-filter: blur(20px);
}
.mobile-menu.is-open { display: block; }
.mobile-menu .container { padding-top: 1rem; padding-bottom: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.mobile-menu a { padding: .6rem .75rem; border-radius: .5rem; color: hsl(var(--muted-foreground)); font-weight: 500; font-size: .95rem; }
.mobile-menu .current-menu-item > a { background: hsl(var(--primary) / .1); color: hsl(var(--primary)); }
.site-content { padding-top: 4rem; min-height: 60vh; }

/* =========================================
   9. Footer
========================================= */
.site-footer { border-top: 1px solid hsl(var(--border)); background: hsl(var(--card)); padding: 4rem 1rem 2rem; margin-top: 4rem; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-grid h4 { font-size: 1rem; margin-bottom: 1rem; }
.footer-grid a, .footer-grid li { display: flex; align-items: center; gap: .5rem; color: hsl(var(--muted-foreground)); font-size: .875rem; padding: .15rem 0; }
.footer-grid a:hover { color: hsl(var(--primary)); }
.footer-bottom { border-top: 1px solid hsl(var(--border)); margin-top: 3rem; padding-top: 2rem; text-align: center; font-size: .85rem; color: hsl(var(--muted-foreground)); }
.footer-icon { width: 16px; height: 16px; color: hsl(var(--primary)); flex-shrink: 0; }

/* =========================================
   10. Sections / Components
========================================= */
.hero { min-height: 90vh; display: flex; align-items: center; }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1fr 1fr; } }
.hero-image-wrap { position: relative; }
.hero-image-wrap::before {
  content: ''; position: absolute; inset: -1rem;
  background: linear-gradient(90deg, hsl(var(--neon-blue) / .2), hsl(var(--neon-purple) / .2));
  border-radius: 1.5rem; filter: blur(60px); z-index: 0;
}
.hero-image-wrap img { position: relative; border-radius: 1rem; border: 1px solid hsl(var(--border) / .5); box-shadow: 0 25px 50px -12px rgba(0,0,0,.5); z-index: 1; }
.section-heading { text-align: center; max-width: 42rem; margin: 0 auto 3rem; }

.service-card { padding: 1.5rem; }
.service-icon {
  width: 3rem; height: 3rem; border-radius: .5rem;
  background: hsl(var(--muted));
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1rem;
  color: hsl(var(--muted-foreground));
}
.service-icon.is-primary { background: hsl(var(--primary) / .2); color: hsl(var(--primary)); }
.service-card.is-primary { border-color: hsl(var(--primary) / .3); background: hsl(var(--primary) / .05); }
.service-card h3 { font-size: 1.125rem; margin-bottom: .5rem; }
.service-card p { font-size: .9rem; margin: 0; }

.ai-icon {
  width: 3rem; height: 3rem; border-radius: .5rem;
  background: linear-gradient(135deg, hsl(var(--neon-blue) / .2), hsl(var(--neon-purple) / .2));
  display: inline-flex; align-items: center; justify-content: center; color: hsl(var(--primary)); margin-bottom: 1rem;
}

.stat-card { padding: 1.5rem; text-align: center; }
.stat-num { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.875rem; }
.stat-label { font-size: .875rem; color: hsl(var(--muted-foreground)); margin-top: .25rem; }

.testimonial-card { padding: 1.5rem; display: flex; flex-direction: column; }
.stars { color: #f5b400; display: flex; gap: 2px; margin-bottom: .75rem; }
.testimonial-card .who { border-top: 1px solid hsl(var(--border)); padding-top: 1rem; margin-top: 1rem; display: flex; justify-content: space-between; align-items: center; }
.testimonial-card .who strong { display: block; font-size: .875rem; color: hsl(var(--foreground)); }
.testimonial-card .who span { font-size: .75rem; color: hsl(var(--muted-foreground)); }
.tag { font-size: .65rem; padding: .25rem .5rem; border-radius: 999px; background: hsl(var(--primary) / .1); color: hsl(var(--primary)); font-weight: 500; }

.trusted { padding: 3rem 1rem; border-top: 1px solid hsl(var(--border) / .5); border-bottom: 1px solid hsl(var(--border) / .5); }
.trusted-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2rem; }
.trusted-row span { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.25rem; color: hsl(var(--muted-foreground) / .5); }

.faq-item { padding: 1.25rem 1.5rem; margin-bottom: .75rem; cursor: pointer; }
.faq-item summary { font-weight: 500; color: hsl(var(--foreground)); list-style: none; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.5rem; color: hsl(var(--primary)); transition: transform .2s; }
.faq-item[open] summary::after { content: '–'; }
.faq-item p { margin-top: .75rem; margin-bottom: 0; font-size: .9rem; }

.timeline { position: relative; max-width: 720px; margin: 0 auto; padding-left: 2rem; }
.timeline::before { content:''; position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, hsl(var(--neon-blue)), hsl(var(--neon-purple))); }
.timeline-item { position: relative; margin-bottom: 2rem; }
.timeline-item::before { content:''; position: absolute; left: -1.85rem; top: .75rem; width: 12px; height: 12px; border-radius: 50%; background: hsl(var(--primary)); border: 2px solid hsl(var(--background)); }
.timeline-item .year { font-size: .75rem; color: hsl(var(--primary)); font-weight: 500; }
.timeline-item h4 { font-size: 1rem; margin: .25rem 0; }
.timeline-item p { font-size: .875rem; margin: 0; }

.contact-grid { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 3fr 2fr; } }
.contact-form { padding: 2rem; }
.form-row { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-bottom: 1rem; }
@media (min-width: 640px) { .form-row.cols-2 { grid-template-columns: 1fr 1fr; } }
.form-row label { display: block; font-size: .85rem; color: hsl(var(--muted-foreground)); margin-bottom: .35rem; }
.contact-info-card { padding: 1.25rem; display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.contact-info-card .icon-box { width: 3rem; height: 3rem; border-radius: .5rem; background: hsl(var(--primary) / .1); color: hsl(var(--primary)); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }

.cta-section { text-align: center; }
.cta-section h2 { font-size: clamp(1.875rem, 4vw, 3rem); margin-bottom: 1rem; }
.cta-section p { max-width: 36rem; margin: 0 auto 2rem; font-size: 1.0625rem; }

.feature-row { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .feature-row { grid-template-columns: 1fr 1fr; } .feature-row.reverse > div:first-child { order: 2; } }
.benefit-list { padding: 2rem; }
.benefit-list h4 { margin-bottom: 1rem; font-size: 1rem; }
.benefit-list .b { display: flex; align-items: center; gap: .75rem; padding: .5rem 0; font-size: .9rem; color: hsl(var(--muted-foreground)); }
.benefit-list .check { color: hsl(var(--primary)); flex-shrink: 0; }

.bg-card { background: hsl(var(--card) / .5); }

/* =========================================
   11. WordPress core / utility
========================================= */
.alignleft { float: left; margin: .5rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .5rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: .85rem; color: hsl(var(--muted-foreground)); text-align: center; }
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); -webkit-clip-path: inset(50%); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
.sticky, .bypostauthor { display: block; }

/* Posts / single page */
.entry { padding: 3rem 0; }
.entry-content h1, .entry-content h2, .entry-content h3 { margin-top: 2rem; }
.entry-content p, .entry-content ul, .entry-content ol { color: hsl(var(--foreground) / .85); line-height: 1.75; margin-bottom: 1.25rem; }
.entry-content ul, .entry-content ol { padding-left: 1.5rem; list-style: disc; }
.entry-content blockquote { border-left: 3px solid hsl(var(--primary)); padding-left: 1.25rem; margin: 1.5rem 0; font-style: italic; color: hsl(var(--muted-foreground)); }
.entry-meta { font-size: .85rem; color: hsl(var(--muted-foreground)); margin-bottom: 1rem; }
.post-card { padding: 1.5rem; }
.post-card h2 { font-size: 1.25rem; margin-bottom: .5rem; }

/* Pagination */
.pagination { display: flex; gap: .5rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.pagination a, .pagination span { padding: .5rem .9rem; border-radius: .5rem; background: hsl(var(--muted)); color: hsl(var(--foreground)); font-size: .875rem; }
.pagination .current { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
