/* =====================================================================
   ScorpTech — 2027 design layer (visual pass 1, 2026-10-17)
   ---------------------------------------------------------------------
   Loads LAST (after styles.css → ui-core.css → ui-home.css →
   scorp-theme.css → header inline <style>) and harmonizes the three
   legacy layers into one direction:
     · refined near-black base, one accent (signal cyan)
     · one self-hosted variable typeface (Inter) + system mono for labels
     · consistent headings, buttons, cards, inputs, spacing
     · prefers-reduced-motion support
   Visual only. No layout/structure changes. !important is used ONLY
   where a legacy rule already uses !important (it cannot be beaten
   otherwise); everything else wins by cascade order.
   Rollback: remove the <link> to this file in includes/header.php.
   ===================================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../../fonts/inter-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- 1. Tokens ---------- */
:root {
  --st-bg: #05070a;
  --st-bg-raised: #0a0d12;
  --st-surface: rgba(13, 17, 23, 0.78);
  --st-surface-solid: #0d1117;
  --st-surface-hover: rgba(18, 23, 31, 0.9);
  --st-border: rgba(255, 255, 255, 0.075);
  --st-border-hi: rgba(255, 255, 255, 0.14);
  --st-text: #e9eef4;
  --st-text-2: #b4bfcc;   /* ~10:1 on --st-bg */
  --st-muted: #8f9aa8;    /* ~6.5:1 on --st-bg (AA for small text) */
  --st-accent: #5ad6e8;   /* the ONE accent (existing brand cyan) */
  --st-accent-hi: #86e6f2;
  --st-accent-ink: #03191e;
  --st-accent-soft: rgba(90, 214, 232, 0.1);
  --st-accent-line: rgba(90, 214, 232, 0.32);
  --st-radius: 14px;
  --st-radius-sm: 10px;
  --st-font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --st-mono: ui-monospace, "SFMono-Regular", "SF Mono", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --st-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --st-space-section: clamp(4rem, 9vw, 7rem);

  /* Re-point every legacy token at the new system so old rules agree */
  --font-primary: var(--st-font);
  --font-secondary: var(--st-font);
  --primary-color: var(--st-accent);
  --secondary-color: var(--st-accent);
  --accent-color: var(--st-accent);
  --accent: var(--st-accent);
  --text-primary: var(--st-text);
  --text-secondary: var(--st-text-2);
  --background-light: var(--st-bg);
  --background-gray: var(--st-bg-raised);
  --background-dark: var(--st-bg);
  --bg-color: var(--st-bg);
  --theme-color: var(--st-bg);
  --gradient-primary: linear-gradient(var(--st-accent), var(--st-accent));
  --gradient-accent: linear-gradient(var(--st-accent), var(--st-accent));
  --scorp-void: var(--st-bg);
  --scorp-panel: var(--st-surface);
  --scorp-panel-solid: var(--st-surface-solid);
  --scorp-line: var(--st-border);
  --scorp-line-strong: var(--st-accent-line);
  --scorp-cyan: var(--st-accent);
  --scorp-violet: var(--st-accent);
  --scorp-muted: var(--st-muted);
  --scorp-ink: var(--st-accent-ink);
  color-scheme: dark;
}

/* ---------- 2. Base ---------- */
html, body { background: var(--st-bg); }
body {
  font-family: var(--st-font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--st-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}
p { color: var(--st-text-2); }
a { color: var(--st-accent); }
a:hover { color: var(--st-accent-hi); }
::selection { background: rgba(90, 214, 232, 0.3); color: #fff; }
input, select, textarea, button { font-family: inherit; }
textarea { font-family: var(--st-font) !important; } /* legacy rule is !important */

/* Static backdrop for every page (the WebGL scene now runs on Home only).
   Quiet grid + a single soft accent glow = "engineering / security" feel. */
#scorp-canvas-wrap { background: var(--st-bg); }
body:not(.st-home) #scorp-canvas-wrap {
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(90, 214, 232, 0.075), transparent 62%),
    radial-gradient(800px 480px at -10% 30%, rgba(90, 214, 232, 0.035), transparent 60%),
    var(--st-bg);
}
body:not(.st-home) #scorp-canvas-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 75%);
  pointer-events: none;
}
body:not(.st-home) #scorp-canvas { display: none; }
body:not(.st-home) .canvas-vignette { opacity: 0.55; }

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4, h5, h6,
.hero-title, .section-title, .page-header h1, .promo-title,
.why-item strong, .footer-widget-title, .cta-final h2 {
  font-family: var(--st-font);
  color: var(--st-text);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.12;
  text-wrap: balance;
}
h1, .page-header h1 { font-size: clamp(2.25rem, 4.6vw, 3.6rem); letter-spacing: -0.035em; }
h2, .section-title { font-size: clamp(1.75rem, 3.2vw, 2.6rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); letter-spacing: -0.015em; line-height: 1.3; }
h4 { font-size: 1.1rem; letter-spacing: -0.01em; line-height: 1.35; }
.hero-title {
  font-size: clamp(2.4rem, 4.8vw, 3.9rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.04;
}
@media (max-width: 640px) {
  /* legacy rule uses !important */
  .hero-title { font-size: clamp(2rem, 9vw, 2.6rem) !important; line-height: 1.08 !important; }
}
.text-gradient {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: currentColor;
  color: var(--st-accent);
}
.section-title::after,
.section-header::after,
.section::after,
.footer-widget-title::after { display: none; } /* legacy gradient "accent bars" — visual noise */
.section-description, .page-header p, .hero-subtitle, .cta-final-copy {
  color: var(--st-text-2);
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.7;
}
/* Kill the "title turns cyan on hover" legacy effect — reads as a bug */
.section-header:hover .section-title { color: var(--st-text); }
.section-header:hover .section-subtitle { color: var(--st-accent); }

/* Eyebrows / kickers: mono, small caps — the dev/security signature */
.section-subtitle, .kicker, .label, .promo-kicker, .tech-strip-label,
.ab-creds .ab-sec-head .label, .banner-badge {
  font-family: var(--st-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--st-accent);
}
.section-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
  background: none;
  padding: 0;
  border: 0;
}
.section-subtitle::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.8;
}
.text-center .section-subtitle::after,
.section-header.text-center .section-subtitle::after {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.8;
}

/* Text shadows were only needed over the bright 3D core */
.page-header h1, .page-header p, .section-header .section-title,
.section-header .section-description { text-shadow: none; }
body.st-home .hero-title { text-shadow: 0 2px 24px rgba(5, 7, 10, 0.85); }

/* ---------- 4. Layout rhythm ---------- */
.section { padding-top: var(--st-space-section); padding-bottom: var(--st-space-section); }
.section-header { margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }

/* ---------- 5. Header / nav ---------- */
.site-header {
  background: rgba(5, 7, 10, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--st-border);
  box-shadow: none;
}
.site-header.scrolled { background: rgba(5, 7, 10, 0.9); box-shadow: none; }
.logo img {
  height: 50px;
  width: auto;
  /* legacy filter lifted the navy wordmark; keep it, drop the neon glow */
  filter: brightness(1.85) saturate(1.1);
}
@media (max-width: 576px) { .logo img { height: 42px; max-width: none; } }
@media (min-width: 992px) {
  .main-nav .menu a {
    font-family: var(--st-font);
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: -0.005em;
    color: var(--st-text-2);
    padding: 0.45rem 0.7rem;
    border-radius: 8px;
  }
  .main-nav .menu a:hover,
  .main-nav .menu a:focus-visible { color: var(--st-text); background-color: rgba(255, 255, 255, 0.05); }
  .main-nav .menu li.active a { color: var(--st-text); }
  .main-nav .menu a::after { background: var(--st-accent); height: 1px; }
}
@media (max-width: 991px) {
  /* mobile drawer (rules in header inline <style> are !important) */
  .main-nav { background: var(--st-bg) !important; background-image: none !important; }
  .main-nav .menu a, .menu a { font-family: var(--st-font); font-weight: 600; letter-spacing: -0.02em; }
  .menu li { border-bottom-color: var(--st-border) !important; }
  .menu-toggle {
    background: rgba(13, 17, 23, 0.85) !important;
    border: 1px solid var(--st-border-hi) !important;
    box-shadow: none !important;
    border-radius: 10px;
  }
  .hamburger-inner, .hamburger-inner::before, .hamburger-inner::after { background: var(--st-text) !important; height: 2px; }
  .menu-toggle.active .hamburger-inner { background: transparent !important; }
  /* Drawer arrows: styles.css made a::after absolute/0-width, so the arrow fell under each label */
  .main-nav .menu a::after, .menu a::after {
    position: static;
    width: auto;
    height: auto;
    background: none;
    color: var(--st-muted);
    transition: transform 0.18s var(--st-ease), color 0.18s var(--st-ease);
  }
  .menu li.active a::after, .menu a:hover::after { color: var(--st-accent); width: auto; }
  /* Close icon: both bars cross at the centre (was rendering as a "<") */
  .menu-toggle.active .hamburger-inner::before,
  .menu-toggle.active .hamburger-inner::after {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%) rotate(45deg);
  }
  .menu-toggle.active .hamburger-inner::after { transform: translateY(-50%) rotate(-45deg); }
  .mobile-nav-cta a { border-radius: var(--st-radius-sm); }
  .mobile-nav-cta .cta-quote { background: var(--st-accent); color: var(--st-accent-ink) !important; }
  .mobile-nav-cta .cta-contact { background: transparent; border: 1px solid var(--st-border-hi); }
}

/* Offer banner: quieter strip, same content */
.special-offer-banner {
  background: var(--st-bg-raised);
  border-bottom: 1px solid var(--st-border);
}
.banner-badge {
  background: var(--st-accent-soft);
  color: var(--st-accent);
  border: 1px solid var(--st-accent-line);
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
}
.banner-text { color: var(--st-text-2); }
.banner-text strong { color: var(--st-text); }

/* ---------- 6. Buttons (one system) ---------- */
.btn {
  font-family: var(--st-font);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  min-height: 44px;
  padding: 0.7rem 1.25rem;
  border-radius: var(--st-radius-sm);
  transition: background-color 0.18s var(--st-ease), border-color 0.18s var(--st-ease), color 0.18s var(--st-ease), transform 0.18s var(--st-ease), box-shadow 0.18s var(--st-ease);
}
.btn:active { transform: translateY(1px); }
/* Primary: solid accent (legacy gradients are !important, hence the flag) */
.btn-primary, .btn-accent, .pricing-cta, .promo-cta, .btn-primary.btn-sm,
.banner-btn, .cs-live, .btn-profile, .cookie-buttons .btn-primary,
.footer-subscribe button, .quote-form button[type="submit"],
.cta.scorp-cta .btn-primary, .nexus-chat-inputrow button,
.pricing-badge, .maintenance-badge,
body .ct-form .btn-primary /* contact.php inline rule is !important + 2 classes */ {
  background: var(--st-accent) !important;
  color: var(--st-accent-ink) !important;
  border: 1px solid transparent !important;
  border-radius: var(--st-radius-sm) !important;
  font-weight: 600;
  box-shadow: none;
  filter: none;
}
.btn-primary:hover, .btn-accent:hover, .pricing-cta:hover, .promo-cta:hover,
.banner-btn:hover, .footer-subscribe button:hover, .quote-form button[type="submit"]:hover,
.cookie-buttons .btn-primary:hover, .cta.scorp-cta .btn-primary:hover {
  background: var(--st-accent-hi) !important;
  color: var(--st-accent-ink) !important;
  filter: none;
  box-shadow: 0 0 0 4px rgba(90, 214, 232, 0.12), 0 10px 30px -10px rgba(90, 214, 232, 0.45);
}
/* Secondary / outline: quiet glass with a hairline */
.btn-secondary, .btn-primary-outline, .btn-outline-light, .btn-outline,
.cta.scorp-cta .btn-secondary, .cookie-buttons .btn-outline {
  background: rgba(13, 17, 23, 0.7) !important;
  color: var(--st-text) !important;
  border: 1px solid var(--st-border-hi) !important;
  border-radius: var(--st-radius-sm) !important;
}
.btn-secondary:hover, .btn-primary-outline:hover, .btn-outline-light:hover, .btn-outline:hover,
.cta.scorp-cta .btn-secondary:hover, .cookie-buttons .btn-outline:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: var(--st-accent-line) !important;
  color: #fff !important;
}
.header-actions .btn { min-height: 40px; padding: 0.55rem 1rem; font-size: 0.9rem; }
.footer-quote-btn { border-radius: var(--st-radius-sm) !important; }
.learn-more, .service-link {
  color: var(--st-accent);
  font-weight: 600;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.learn-more i, .service-link i { transition: transform 0.18s var(--st-ease); }
.learn-more:hover i, .service-link:hover i { transform: translateX(3px); }

/* ---------- 7. Cards (one recipe) ---------- */
.service-card, .case-study-card, .team-card, .testimonial-card,
.blog-card, .sidebar-widget, .featured-post, .pricing-card,
.maintenance-card, .tool-card, .security-service-card,
.contact-form-wrapper, .contact-method, .contact-cta-card,
.stat-item, .step, .feature, .tech-item, .why-item, .ab-cred,
.project-card, .card, .quote-form-container, .ct-form-card,
.service-hero, .service-detail-section, .case-study-detail,
.blog-section .blog-card, .blog-section .sidebar-widget, .featured-posts .featured-post {
  background: var(--st-surface) !important;   /* legacy panels use !important */
  border: 1px solid var(--st-border);
  border-radius: var(--st-radius) !important; /* legacy 22px is !important */
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 20px 40px -24px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.2s var(--st-ease), background-color 0.2s var(--st-ease), transform 0.2s var(--st-ease);
}
.service-card:hover, .case-study-card:hover, .team-card:hover, .blog-card:hover,
.pricing-card:hover, .tool-card:hover, .featured-post:hover, .maintenance-card:hover,
.project-card:hover, .security-service-card:hover {
  border-color: var(--st-accent-line);
  background: var(--st-surface-hover) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 24px 48px -24px rgba(0, 0, 0, 0.8);
  transform: translateY(-2px);
}
.why-item { border-top: 1px solid var(--st-border); }
.why-item strong { font-size: 1.15rem; }
.promo-panel {
  background:
    radial-gradient(600px 220px at 85% 0%, rgba(90, 214, 232, 0.08), transparent 60%),
    var(--st-surface-solid);
  border: 1px solid var(--st-border-hi);
  border-radius: var(--st-radius);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
.promo-panel::before { background: linear-gradient(90deg, transparent, var(--st-accent), transparent); opacity: 0.7; }
.promo-title { color: var(--st-text) !important; }
.promo-price {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: var(--st-text) !important;
  font-family: var(--st-font);
  letter-spacing: -0.04em;
}
.service-card h3, .why-item strong { color: var(--st-text); }

/* Icon wells: square-ish, hairline, mono-accent (legacy rules are !important) */
.service-icon, .security-service-card .service-icon {
  width: 44px !important;
  height: 44px !important;
  border-radius: 10px !important;
  background: var(--st-accent-soft) !important;
  border: 1px solid var(--st-accent-line) !important;
  color: var(--st-accent);
  font-size: 1.05rem;
  margin-bottom: 1.1rem;
}
.service-icon i, .security-service-card .service-icon i { font-size: 1.05rem !important; color: var(--st-accent) !important; }
.service-card:hover .service-icon i { color: var(--st-accent-hi) !important; }
.ab-cred i { border-radius: 10px; background: var(--st-accent-soft); border-color: var(--st-accent-line); }

/* Tags / chips */
.tech-tag, .tech-badge, .blog-card-tags a, .tags-widget a, .cs-cat, .wire-chip {
  font-family: var(--st-mono);
  font-size: 0.72rem !important;
  letter-spacing: 0.04em;
  border-radius: 6px !important;
}
.tech-strip-list li { font-family: var(--st-mono); font-size: 0.8rem; color: var(--st-muted); }

/* ---------- 8. Page headers (sub-pages) ---------- */
.page-header, .ab-header, .cs-header, .ct-header, .wire-header {
  border-bottom: 1px solid var(--st-border);
  background: transparent;
}
/* The dark scrim existed to cover the 3D core; sub-pages no longer have it */
body:not(.st-home) .page-header::before, body:not(.st-home) .ab-header::before,
body:not(.st-home) .cs-header::before, body:not(.st-home) .ct-header::before,
body:not(.st-home) .wire-header::before { background: none; }
.page-header p, .ab-header p, .cs-header p, .ct-header p, .wire-header p, .service-hero p {
  color: var(--st-text-2) !important; /* legacy is !important */
}

/* Home hero subtitle: keep its legibility panel, make it calmer */
.hero-subtitle {
  background: rgba(5, 7, 10, 0.72);
  border: 1px solid var(--st-border);
  border-radius: var(--st-radius);
  color: var(--st-text-2) !important; /* legacy is !important */
}

/* ---------- 9. Forms ---------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
input[type="date"], input[type="url"], input[type="password"], input[type="search"],
select, textarea {
  background: var(--st-bg-raised) !important;   /* legacy is !important */
  color: var(--st-text) !important;
  border: 1px solid var(--st-border-hi) !important;
  border-radius: var(--st-radius-sm);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--st-accent) !important;
  box-shadow: 0 0 0 3px rgba(90, 214, 232, 0.16) !important;
}
::placeholder { color: var(--st-muted) !important; }
label, .form-group label, .quote-form label { color: var(--st-text-2) !important; }
.service-checkbox { background: var(--st-bg-raised) !important; border: 1px solid var(--st-border-hi) !important; border-radius: var(--st-radius-sm) !important; }
.service-checkbox.selected { background: var(--st-accent-soft) !important; border-color: var(--st-accent-line) !important; }

/* Focus ring: visible, consistent */
a:focus-visible, button:focus-visible, .btn:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--st-accent);
  outline-offset: 2px;
}

/* ---------- 10. Footer, banners, floating UI ---------- */
footer.site-footer {
  background: linear-gradient(180deg, rgba(5, 7, 10, 0.4), var(--st-bg) 30%);
  border-top: 1px solid var(--st-border);
}
.footer-logo { margin-bottom: 1rem; line-height: 0; } /* legacy -20px pulled text under the logo */
.footer-logo picture { display: inline-block; }
.footer-logo img { height: 64px; width: auto; }
.footer-widget-title {
  font-family: var(--st-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--st-muted);
}
.footer-links a, .footer-contact-info, .footer-contact-info a, .footer-bottom-links a,
.site-footer p, .copyright p { color: var(--st-text-2) !important; } /* legacy is !important */
.footer-links a:hover, .footer-contact-info a:hover, .footer-bottom-links a:hover { color: var(--st-text) !important; }
.footer-contact-info i { color: var(--st-accent); }
.footer-bottom { border-top: 1px solid var(--st-border); }
.copyright p, .footer-bottom-links a { font-size: 0.85rem; }
.footer-subscribe input { background: var(--st-bg-raised); border-color: var(--st-border-hi); border-radius: var(--st-radius-sm); }
.trust-strip { background: transparent; border-top: 1px solid var(--st-border); color: var(--st-text-2); }
.trust-flex { font-family: var(--st-mono); font-size: 0.78rem; letter-spacing: 0.08em; }
.cookie-consent, .newsletter-modal-content {
  background: rgba(10, 13, 18, 0.96);
  border: 1px solid var(--st-border-hi);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.back-to-top { border-radius: 10px; background: rgba(13, 17, 23, 0.85); border: 1px solid var(--st-border-hi); }
#nexus-chat-fab {
  background: var(--st-surface-solid);
  border: 1px solid var(--st-accent-line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
#nexus-chat-panel { border-color: var(--st-border-hi); border-radius: var(--st-radius); }
.nexus-chat-head { background: var(--st-bg-raised); }
.nexus-msg-me { background: #12434c; }

/* Native cursor everywhere (custom cursor removed) */
.cursor { display: none !important; }
html, body, a, button { cursor: auto; }
a, button, [role="button"], .btn, label[for], summary { cursor: pointer; }

/* ---------- 11. Motion: respect the user's OS setting ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  /* AOS: show content immediately, no fly-ins */
  [data-aos], [data-aos].aos-animate {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .service-card:hover, .case-study-card:hover, .team-card:hover, .blog-card:hover,
  .pricing-card:hover, .project-card:hover, .btn:active { transform: none; }
  #scorp-canvas { transition: none !important; }
  .nexus-fab-dot, .nexus-typing span { animation: none !important; }
}

/* ---------- 12. Page-level harmonization (inline page styles predate the dark theme) ---------- */
/* 404 (404.php ships light-theme colors in its own <style>) */
body .error-content h1 {
  color: var(--st-accent);
  font-size: clamp(4.5rem, 12vw, 7rem);
  font-weight: 750;
  letter-spacing: -0.06em;
  text-shadow: none;
}
body .error-content h2 { color: var(--st-text); font-size: clamp(1.5rem, 3vw, 2.25rem); }
body .error-content p { color: var(--st-text-2); }
body .error-suggestions h3 {
  color: var(--st-muted);
  font-family: var(--st-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
body .error-suggestions a { color: var(--st-accent); }
body .error-suggestions a:hover { color: var(--st-text); }

/* Store checkout card (store/pay.php): was a white card with light theme text on it */
body .checkout-card {
  background: var(--st-surface-solid);
  border: 1px solid var(--st-border);
  border-radius: var(--st-radius);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
  color: var(--st-text);
}
body .checkout-card .summary h5, body .order-summary h5 { color: var(--st-text); }
body .order-summary h5 {
  font-family: var(--st-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--st-muted);
}
body .summary-list li { border-bottom-color: var(--st-border); color: var(--st-text-2); }
body .summary-list li:last-child { color: var(--st-text); }
body .shipping-note {
  background: var(--st-accent-soft);
  border-left-color: var(--st-accent);
  color: var(--st-text);
}
body .trust-note, body .badges-strip { color: var(--st-text-2); }
body .trust-note a { color: var(--st-accent); }
body .badges-strip i { color: var(--st-accent); }
body .checkout-card #paypal-wrapper { background: #fff; border-radius: var(--st-radius-sm); padding: 1rem; } /* PayPal buttons are designed for a light surface */
body .checkout-card #paypal-wrapper .trust-note { color: #475569; }
body .checkout-card #paypal-wrapper .trust-note a { color: #0e7490; }

/* =====================================================================
   Pass 2 (2026-10-17, ~9:30 PM CDT): links, sub-pages, shop, widgets
   ===================================================================== */

/* -- Home "Learn more" fix --
   styles.css gives .service-card a full-size absolutely positioned ::before (z-index 0,
   opacity 0) that sat ON TOP of the card's non-positioned children, so every click on
   "Learn more" hit the invisible overlay instead of the link. */
.service-card::before, .service-card::after { pointer-events: none; }
.service-card > * { position: relative; z-index: 1; }

/* -- Scroll-to-top: inline SVG arrow (was a Font Awesome glyph that rendered as an empty box) -- */
.back-to-top {
  width: 44px; height: 44px; right: 29px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--st-accent) !important;
  background: rgba(13, 17, 23, 0.9);
  border: 1px solid var(--st-accent-line);
  border-radius: var(--st-radius-sm);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transition: opacity 0.2s var(--st-ease), visibility 0.2s, background-color 0.18s var(--st-ease), color 0.18s var(--st-ease), transform 0.18s var(--st-ease);
}
.back-to-top .btt-icon { display: block; width: 18px; height: 18px; }
.back-to-top:hover, .back-to-top:focus-visible {
  background: var(--st-accent); color: var(--st-accent-ink) !important; border-color: transparent;
  transform: translateY(-2px); box-shadow: 0 0 0 4px rgba(90, 214, 232, 0.12), 0 10px 30px -10px rgba(90, 214, 232, 0.45);
}
.back-to-top:focus-visible { outline: 2px solid var(--st-accent); outline-offset: 3px; }

/* -- Nexus chat: stop the zoom-on-open --
   The widget focuses its input as soon as it opens; the input was 0.9rem (14.4px), and
   iOS Safari / mobile Chrome auto-zoom the whole page onto any focused field under 16px. */
#nexus-chat-input, .nexus-chat-inputrow input {
  font-size: 16px !important;
  background: var(--st-bg-raised); color: var(--st-text);
  border: 1px solid var(--st-border-hi); border-radius: var(--st-radius-sm);
}
#nexus-chat-input:focus { outline: none; border-color: var(--st-accent-line); box-shadow: 0 0 0 3px rgba(90, 214, 232, 0.15); }
@media (max-width: 560px) {
  #nexus-chat { right: 12px; bottom: 12px; }
  #nexus-chat-panel {
    right: 0; bottom: 70px;
    width: calc(100vw - 24px);
    height: min(480px, calc(100dvh - 110px));
    max-height: calc(100dvh - 110px);
  }
  .back-to-top { right: 19px; bottom: 84px !important; }
}

/* -- services.php pricing: "Starting at" tiers -- */
.pricing-card .price { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: center; gap: 0.15rem; }
.pricing-card .price-from {
  flex-basis: 100%; text-align: center; margin-bottom: 0.25rem;
  font-family: var(--st-mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--st-muted);
}
.pricing-card .price-cap {
  display: inline-block; margin-top: 0.4rem; padding: 0.3rem 0.7rem; border-radius: 8px;
  font-family: var(--st-mono); font-size: 0.78rem; letter-spacing: 0.02em;
  color: var(--st-text); background: var(--st-accent-soft); border: 1px solid var(--st-accent-line);
}

/* -- Service sub-pages (service.php, tech-troubleshooting.php) + Shop (store/index.php) -- */
.svc-page { padding: 7rem 0 var(--st-space-section); }
.svc-page .container { max-width: 1120px; }
.svc-back {
  display: inline-flex; align-items: center; gap: 0.45rem; margin-bottom: 1.25rem;
  font-family: var(--st-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--st-muted); text-decoration: none;
}
.svc-back:hover { color: var(--st-accent); }
.svc-hero {
  position: relative; overflow: hidden;
  padding: clamp(1.75rem, 4vw, 3rem);
  background: radial-gradient(700px 260px at 90% 0%, rgba(90, 214, 232, 0.09), transparent 60%), var(--st-surface-solid);
  border: 1px solid var(--st-border-hi); border-radius: var(--st-radius);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
  margin-bottom: 1.5rem;
}
.svc-hero::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--st-accent), transparent); opacity: 0.6;
}
.svc-hero-icon {
  width: 48px; height: 48px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--st-accent-soft); border: 1px solid var(--st-accent-line); color: var(--st-accent);
  font-size: 1.15rem; margin-bottom: 1.1rem;
}
.svc-kicker {
  font-family: var(--st-mono); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--st-accent); margin: 0 0 0.6rem;
}
.svc-hero h1 {
  color: var(--st-text); font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.06;
  letter-spacing: -0.035em; margin: 0 0 1rem; text-wrap: balance;
}
.svc-lede { color: var(--st-text-2); font-size: clamp(1.02rem, 1.6vw, 1.15rem); line-height: 1.7; max-width: 46rem; margin: 0 0 1.6rem; }
.svc-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.svc-actions .btn { margin: 0 !important; }
.svc-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1.5rem; margin-bottom: 1.5rem; }
.svc-panel {
  background: var(--st-surface); border: 1px solid var(--st-border); border-radius: var(--st-radius);
  padding: clamp(1.25rem, 3vw, 2rem);
}
.svc-panel h2, .svc-cta h2, .shop-head h2 { color: var(--st-text); font-size: clamp(1.25rem, 2.4vw, 1.6rem); letter-spacing: -0.025em; margin: 0 0 1rem; }
.svc-muted { color: var(--st-muted); font-size: 0.92rem; line-height: 1.6; margin: 0 0 1rem; }
.svc-list { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: 0.7rem; }
.svc-list li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--st-text); font-size: 1rem; line-height: 1.5; }
.svc-list li svg { flex: 0 0 auto; margin-top: 0.2rem; color: var(--st-accent); }
.svc-list-compact li { font-size: 0.9rem; }
.svc-img { display: block; width: 100%; max-width: 520px; border-radius: var(--st-radius-sm); border: 1px solid var(--st-border); margin-top: 0.5rem; }
.svc-tiers { list-style: none; margin: 0 0 1.1rem; padding: 0; display: grid; gap: 0.6rem; }
.svc-tiers li {
  display: grid; grid-template-columns: 1fr auto; gap: 0.15rem 0.75rem; align-items: baseline;
  padding: 0.85rem 0.95rem; border: 1px solid var(--st-border); border-radius: var(--st-radius-sm); background: var(--st-bg-raised);
}
.svc-tier-name { color: var(--st-text); font-weight: 600; font-size: 0.95rem; }
.svc-tier-rate { color: var(--st-text-2); font-size: 0.88rem; text-align: right; }
.svc-tier-rate strong { color: var(--st-accent); font-weight: 700; }
.svc-tier-cap { grid-column: 1 / -1; font-family: var(--st-mono); font-size: 0.74rem; letter-spacing: 0.02em; color: var(--st-muted); }
.svc-link { color: var(--st-accent); font-weight: 600; font-size: 0.92rem; text-decoration: none; display: inline-flex; gap: 0.35rem; align-items: center; }
.svc-link:hover { color: var(--st-accent-hi); }
.svc-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.svc-step { padding: 1.35rem 1.25rem; border: 1px solid var(--st-border); border-radius: var(--st-radius); background: var(--st-surface); }
.svc-step-n { font-family: var(--st-mono); font-size: 0.78rem; color: var(--st-accent); letter-spacing: 0.1em; }
.svc-step h3 { color: var(--st-text); font-size: 1.05rem; margin: 0.5rem 0 0.4rem; letter-spacing: -0.01em; }
.svc-step p { color: var(--st-text-2); font-size: 0.92rem; line-height: 1.6; margin: 0; }
.svc-cta {
  text-align: center; padding: clamp(1.75rem, 4vw, 2.75rem) 1.25rem;
  border: 1px solid var(--st-border-hi); border-radius: var(--st-radius);
  background: radial-gradient(600px 200px at 50% 0%, rgba(90, 214, 232, 0.08), transparent 70%), var(--st-surface-solid);
}
.svc-cta .svc-actions { justify-content: center; }
.svc-cta .svc-muted { max-width: 36rem; margin: 0 auto 1.25rem; }
.svc-notfound { text-align: left; }

/* Shop */
.shop-section { margin: 0 0 2.5rem; }
.shop-head { margin: 2.5rem 0 1.25rem; }
.shop-head h2 { margin-bottom: 0.35rem; }
.shop-head .svc-muted { margin: 0; }
.shop-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.shop-tier {
  position: relative; display: flex; flex-direction: column; gap: 0.4rem;
  padding: 1.5rem 1.35rem; background: var(--st-surface); border: 1px solid var(--st-border); border-radius: var(--st-radius);
}
.shop-tier.is-featured { border-color: var(--st-accent-line); background: radial-gradient(400px 160px at 50% 0%, rgba(90, 214, 232, 0.08), transparent 70%), var(--st-surface-solid); }
.shop-tier h3, .shop-card h3 { color: var(--st-text); font-size: 1.1rem; letter-spacing: -0.015em; margin: 0; }
.shop-badge {
  position: absolute; top: 1rem; right: 1rem; padding: 0.2rem 0.55rem; border-radius: 6px;
  font-family: var(--st-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--st-accent); background: var(--st-accent-soft); border: 1px solid var(--st-accent-line);
}
.shop-price { color: var(--st-text); font-size: 2.1rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1.1; margin: 0.35rem 0 0; }
.shop-from { display: block; font-family: var(--st-mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--st-muted); margin-bottom: 0.2rem; }
.shop-per { font-size: 0.95rem; font-weight: 500; color: var(--st-text-2); letter-spacing: 0; margin-left: 0.15rem; }
.shop-cap { font-family: var(--st-mono); font-size: 0.8rem; color: var(--st-accent); margin: 0; }
.shop-blurb { color: var(--st-text-2); font-size: 0.92rem; line-height: 1.6; margin: 0.35rem 0 1rem; }
.shop-tier .btn, .shop-tier .svc-list { margin-top: auto; }
.shop-tier .svc-list + .btn { margin-top: 0.5rem; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.shop-grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.shop-card {
  display: flex; flex-direction: column; padding: 1.4rem 1.3rem;
  background: var(--st-surface); border: 1px solid var(--st-border); border-radius: var(--st-radius);
  transition: border-color 0.2s var(--st-ease), transform 0.2s var(--st-ease);
}
.shop-card:hover { border-color: var(--st-accent-line); transform: translateY(-2px); }
.shop-card .svc-hero-icon { width: 42px; height: 42px; font-size: 1rem; margin-bottom: 0.9rem; }
.shop-card p { color: var(--st-text-2); font-size: 0.93rem; line-height: 1.6; margin: 0.45rem 0 0.75rem; }
.shop-card .shop-tier-hint { font-family: var(--st-mono); font-size: 0.74rem; color: var(--st-muted); letter-spacing: 0.02em; margin: 0 0 1rem; }
.shop-card-actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem; }

@media (max-width: 860px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc-steps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .svc-page { padding-top: 6rem; }
  .svc-actions .btn { flex: 1 1 100%; justify-content: center; }
  .svc-tiers li { grid-template-columns: 1fr; }
  .svc-tier-rate { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .shop-card:hover, .back-to-top:hover { transform: none; }
}
