/*
Theme Name: Onxeera
Theme URI: https://onxeera.com
Author: Onxeera Technologies
Author URI: https://onxeera.com
Description: Onxeera AI search visibility (GEO) platform theme: audits, AI Visibility Fixer, Answer Engine, Prompt Research, Citation Builder, Brand Knowledge Graph and Reputation Monitor.
Version: 1.28.2
Requires at least: 5.9
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: onxeera
Tags: saas, seo, ai, business, modern
*/

/* =============================================
   RESET & BASE
============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --brand: #0048C0;
  --brand-dark: #0B3A94;
  --brand-light: #1E5FD1;
  --brand-bg: #F4F7FD;
  --brand-border: #E8EFFB;
  --text-primary: #05102c;
  --text-secondary: #1C2740;
  --text-muted: #4B5468;
  --bg-primary: #ffffff;
  --bg-secondary: #F8FAFC;
  --bg-tertiary: #F0F2F6;
  --border: #E2E5EC;
  --border-dark: #CBD1DC;
  --green: #0F9D58;
  --amber: #D97706;
  --red: #DC2626;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-sm: 0 1px 3px rgba(5,16,44,.04);
  --shadow-md: 0 4px 16px rgba(5,16,44,.08);
  --shadow-lg: 0 8px 24px rgba(5,16,44,.08);
  /* Accent — used sparingly (~5% of a screen), never part of the blue family */
  --accent-amber: #D97706;
}
html { scroll-behavior: smooth; }
body {
  /* Inter promoted from fallback to primary face — see inc/assets.php for the enqueued font file */
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: clip; /* not "hidden": hidden on html/body breaks the sticky header */
  font-variant-numeric: tabular-nums;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* =============================================
   TYPOGRAPHY
============================================= */
h1 { font-size: clamp(28px, 5vw, 44px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
h2 { font-size: clamp(22px, 3vw, 32px); font-weight: 700; line-height: 1.25; }
h3 { font-size: 16px; font-weight: 700; }
h4 { font-size: 15px; font-weight: 700; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* Apply wherever a figure sits in a column (score tables, KPI numbers, bars)
   so digits align — small detail, reads as considerably more "enterprise-grade" */
.tabular-nums, .kpi-num, .plan-price, .bar-pct, .engine-pct, .ct-engine-count { font-variant-numeric: tabular-nums; }


/* =============================================
   LAYOUT
============================================= */
.container { max-width: 1440px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 480px) { .container { padding: 0 16px; } }
@media (max-width: 360px) { .container { padding: 0 14px; } }


.section-sm { padding: 48px 0; }









/* =============================================
   BUTTONS
============================================= */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 10px;
  font-size: 14px; font-weight: 700; cursor: pointer;
  border: none; transition: all .15s ease;
  white-space: nowrap;
}
/* Primary — exactly one solid-fill button per screen section (hero, header, pricing card, panel) */
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(0,72,192,.25); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }

/* Secondary — outlined, never a second solid fill next to a Primary */
.btn-secondary { background: #fff; color: var(--text-primary); border: 1.5px solid var(--border-dark); }
.btn-secondary:hover { border-color: var(--text-muted); }

/* Tertiary — text-only, underline on hover */
.btn-ghost { background: transparent; color: var(--text-secondary); border: none; font-weight: 700; }
.btn-ghost:hover { color: var(--text-primary); background: var(--bg-secondary); }
.btn-tertiary { background: transparent; color: var(--brand); border: none; font-weight: 700; padding: 0; }
.btn-tertiary:hover { text-decoration: underline; }
.btn-lg { padding: 13px 28px; font-size: 15px; }
.btn:disabled, .btn.is-disabled { opacity: .45; cursor: not-allowed; transform: none !important; }




/* =============================================
   ANNOUNCEMENT BAR
============================================= */
.onx-announce {
  width: 100%;
  background: var(--text-primary); /* Ink 900 — deliberately not brand blue, so it reads as "brand," not "promo banner", and doesn't compete with the header CTA */
  color: #fff; font-size: 13px; font-weight: 600;
  position: relative; z-index: 101;
}
.onx-announce a {
  color: #4C8DFF; /* lightened blue tint — base Primary 600 loses contrast on Ink 900 */
  font-weight: 700; text-decoration: none;
}
.onx-announce a:hover { text-decoration: underline; }
.onx-announce-close:hover { color: rgba(255,255,255,.7); }
@media (max-width: 480px) {
  .onx-announce { font-size: 12.5px; }
}

/* =============================================
   NAVBAR
============================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid rgba(226,229,236,.8);
  /* backdrop-filter removed — handled in header.php for progressive enhancement */
}













/* =============================================
   HERO
============================================= */






.hero-trust {
  display: flex; align-items: center; justify-content: center;
  gap: 24px; flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-secondary);
}


/* =============================================
   STATS BAR
============================================= */
.stats-bar {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 36px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.stat-item { text-align: center; padding: 16px; }



/* =============================================
   FEATURE CARDS
============================================= */






/* =============================================
   TESTIMONIALS
============================================= */
.testi-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.testi-stars { color: #D97706; font-size: 15px; margin-bottom: 12px; }

.testi-author { display: flex; align-items: center; gap: 12px; }

.testi-name { font-size: 13px; font-weight: 600; }
.testi-role { font-size: 12px; color: var(--text-muted); }

/* =============================================
   PRICING
============================================= */

.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 0; width: 100%; }
.pricing-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
}

.popular-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff;
  font-size: 11px; font-weight: 700; padding: 4px 14px;
  border-radius: 20px; white-space: nowrap;
}
.plan-name { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.plan-price { font-size: 36px; font-weight: 700; margin-bottom: 6px; }
.plan-price span { font-size: 14px; font-weight: 400; color: var(--text-secondary); }
.plan-desc { font-size: 13px; color: var(--text-secondary); margin-bottom: 20px; }
.plan-divider { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
.plan-features { margin-bottom: 24px; }
.plan-feature {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; color: var(--text-secondary);
  padding: 5px 0;
}
.plan-feature .check { color: var(--green); flex-shrink: 0; margin-top: 2px; }
.plan-feature .cross { color: var(--text-muted); flex-shrink: 0; margin-top: 2px; }
.plan-btn { width: 100%; text-align: center; justify-content: center; }

/* =============================================
   FAQ
============================================= */







/* =============================================
   CTA SECTION
============================================= */



.cta-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; max-width: 460px; margin: 0 auto; }



/* =============================================
   FOOTER
============================================= */













/* =============================================
   TOOL PAGES
============================================= */
.tool-page-header {
  background: linear-gradient(135deg, var(--brand-bg) 0%, #fff 100%);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}
.tool-page-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 16px;
}



















.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.bar-label { font-size: 13px; color: var(--text-secondary); width: 80px; flex-shrink: 0; }
.bar-track { flex: 1; height: 7px; background: var(--bg-tertiary); border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 4px; }
.bar-pct { font-size: 12px; color: var(--text-secondary); min-width: 32px; text-align: right; font-weight: 600; }
.rec-list { list-style: none; }
.rec-list li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
  font-size: 14px; color: var(--text-secondary);
}
.rec-list li:last-child { border-bottom: none; }
.rec-list .check { color: var(--brand); flex-shrink: 0; margin-top: 2px; }
.tag {
  display: inline-block; font-size: 11px; font-weight: 600;
  padding: 3px 9px; border-radius: 20px;
}


.tag-green { background: #D1FAE5; color: #065F46; }


/* =============================================
   DASHBOARD
============================================= */



















/* =============================================
   BLOG
============================================= */





.blog-cat {
  font-size: 11px; font-weight: 700; padding: 3px 10px;
  border-radius: 20px; background: var(--brand-bg);
  color: var(--brand-dark); display: inline-block; margin-bottom: 10px;
}



/* =============================================
   UTILITIES
============================================= */
.hidden { display: none !important; }










/* =============================================
   PRICING GRID — RESPONSIVE FIX
============================================= */
@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 600px) {
  .pricing-grid { grid-template-columns: 1fr !important; }
}

/* =============================================
   BLOG FILTER — ALL POSTS FIX
============================================= */



/* ================================================================
   PERFORMANCE OPTIMIZATIONS v2.0
   Core Web Vitals: CLS, INP, LCP improvements
   ================================================================ */

/* ── Contain layout for performance ── */
.site-header {
    contain: layout style;
}

/* ── Reduce paint complexity ── */
.pricing-card {
    will-change: auto; /* reset any accidental will-change */
    contain: layout style paint;
}

/* ── Optimize animations — only animate GPU-composited properties ── */
/* Use transform/opacity instead of margin/padding/width/height */
.btn:hover, .vc-kpi:hover, .ct-kpi:hover, .cg-kpi:hover {
    /* transform is GPU-accelerated — does NOT trigger layout/paint */
    transform: translateY(-4px);
    /* box-shadow triggers repaint but not layout — acceptable */
}

/* ── Skeleton loading for dynamic content ── */

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0 }
    100% { background-position: -200% 0 }
}

/* ── INP optimization: instant visual feedback ── */
.btn {
    touch-action: manipulation; /* Disable 300ms tap delay on mobile */
    cursor: pointer;
}

/* ── Prevent font flash (FOIT) ── */
.site-header {
    font-display: swap;
}

/* ── Content visibility for below-fold sections ── */
.onx-footer {
    content-visibility: auto;
    contain-intrinsic-size: 0 400px; /* Estimated size */
}

/* ── Navigation overlay ── */
.onx-dropdown, .onx-user-dropdown {
    /* GPU composite to prevent janky dropdown */
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* ================================================================
   RESPONSIVE AUDIT FIXES — Production Ready
   All breakpoints: 320 / 375 / 425 / 768 / 1024 / 1280 / 1440
   ================================================================ */

/* ── 320px (small phones) ── */
@media (max-width: 360px) {
    
    
    
    
    .onx-nav { padding: 0 16px; }
    
    .vc-form-row { grid-template-columns: 1fr; }
    .cg-form-grid { grid-template-columns: 1fr; }
    .ct-kpi-grid { grid-template-columns: 1fr; }
    .op-topbar { flex-direction: column; }
    
    
}

/* ── 375px ── */
@media (max-width: 400px) {
    
    .kpi-grid { grid-template-columns: 1fr 1fr; }
    
    
    
}

/* ── 425px ── */
@media (max-width: 440px) {
    .bx-featured { grid-template-columns: 1fr; }
    .bx-featured-img { min-height: 180px; }
    
    .s-grid-2, .s-grid-3 { grid-template-columns: 1fr; }
}

/* ── 768px (tablet) ── */
@media (max-width: 800px) {
    
    
    
    
    
    .vc-layout, .ct-layout, .cg-layout, .op-workspace { grid-template-columns: 1fr; }
    .d-sidebar { position: fixed; left: -100%; top: 0; height: 100vh; z-index: 30; }
    
    .vc-kpi-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── 1024px (laptop) ── */
@media (max-width: 1060px) {
    .vc-kpi-grid, .ct-kpi-grid, .cg-kpi-grid { grid-template-columns: repeat(3, 1fr); }
    
    
    
    
    
}

/* ── 1280px ── */
@media (max-width: 1300px) {
    
    .onx-nav { padding: 0 32px; }
}

/* ── Hover states — only on hover-capable devices ── */
@media (hover: hover) and (pointer: fine) {
    .bx-card:hover { transform: translateY(-4px); }
    .ct-kpi:hover, .vc-kpi:hover, .cg-kpi:hover { transform: translateY(-2px); }
    .onx-footer-link:hover { color: #fff; }
    .onx-social:hover { background: var(--hp-brand, #0048C0); color: #fff; }
}

/* ── Remove hover transforms on touch devices ── */
@media (hover: none) {
    .bx-card:hover, .ct-kpi:hover, .vc-kpi:hover, .cg-kpi:hover, .op-card:hover { transform: none; box-shadow: var(--hp-sh, var(--sh, 0 1px 3px rgba(0,0,0,.06),0 4px 16px rgba(0,0,0,.04))); }
}

/* ── Print styles ── */
@media print {
    .site-header, .onx-footer, .d-sidebar, .d-header, .quick-actions,
    .hero-visual, .testi-overflow, .onx-mobile-menu { display: none !important; }
}

/* ── High contrast mode ── */
@media (forced-colors: active) {
    .cg-btn-p, .vc-btn-p, .ct-btn-primary,
    .btn, .s-btn, .plan-btn {
        border: 2px solid ButtonText;
    }
}

/* ── Focus visible — accessibility ── */
:focus-visible {
    outline: 2px solid #0048C0;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Remove focus for mouse users */
:focus:not(:focus-visible) {
    outline: none;
}

/* ── Overflow prevention ──
   "clip" stops sideways scrolling like "hidden" did, but does not turn html/body
   into a scroll container, so the sticky header keeps working. */
body, html {
    overflow-x: clip;
    max-width: 100%;
}
*, *::before, *::after {
    box-sizing: border-box;
}


/* ===================================================
   PERFORMANCE ADDITIONS v1 — appended, not replaced
   =================================================== */

/* ── GPU-composite only animations (LCP/INP) ── */
.onx-logo img {will-change:auto}
.hero-visual {will-change:transform}
.testi-track {will-change:transform;transform:translateZ(0)}
.onx-dropdown, .onx-user-dropdown {transform:translateZ(0);backface-visibility:hidden}

/* ── Reduced motion (accessibility + perf) ── */
@media(prefers-reduced-motion:reduce){
    
    .hero-visual {animation:none}
    .testi-track {animation:none}
}



/* ── Extra small breakpoint 320px ── */
@media(max-width:360px){
    .hero-h1 {font-size:26px}
    .btn {padding:10px 16px;font-size:13px}
    .onx-nav {padding:0 14px}
    .hp-w, .hp-w-xs {padding:0 16px}
    .plan-grid, .feat-grid {grid-template-columns:1fr}
}

