/*
Theme Name: ArfaVision Nexus Pro
Theme URI: https://arfavision.com
Author: ArfaVision Systems
Author URI: https://arfavision.com
Description: Modern full-width business portal theme for ArfaVision (RMS + DMS) with Customizer controls, portal CTA, and clean blog support.
Version: 1.0.0
License: GPLv2 or later
Text Domain: arfavision-nexus-pro
Tags: one-column, custom-logo, custom-menu, featured-images, full-width-template, blog, rtl-language-support
*/

/* ============ Base ============ */
:root{
  --av-bg: #07181b;
  --av-bg2:#06131d;
  --av-surface: rgba(255,255,255,.06);
  --av-surface2: rgba(255,255,255,.09);
  --av-border: rgba(255,255,255,.12);
  --av-text: rgba(255,255,255,.92);
  --av-muted: rgba(255,255,255,.70);
  --av-muted2: rgba(255,255,255,.55);
  --av-primary: #0ea5a5;   /* customized via Customizer */
  --av-accent: #1e90ff;    /* customized via Customizer */
  --av-radius: 18px;
  --av-shadow: 0 18px 50px rgba(0,0,0,.35);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--av-text);
  background:
    radial-gradient(1200px 600px at 15% 10%, rgba(14,165,165,.25), transparent 60%),
    radial-gradient(1000px 500px at 85% 15%, rgba(30,144,255,.22), transparent 55%),
    linear-gradient(180deg, var(--av-bg), var(--av-bg2));
  min-height:100vh;
}

/* WP admin bar spacing */
body.admin-bar .av-topbar{top:32px}
@media (max-width:782px){ body.admin-bar .av-topbar{top:46px} }

a{color:inherit}
a:hover{opacity:.92}
img{max-width:100%;height:auto}

/* ============ Layout ============ */
.av-container{
  width:min(1200px, calc(100% - 36px));
  margin:0 auto;
}
.av-section{padding:76px 0}
.av-section.sm{padding:52px 0}

.av-grid{display:grid; gap:18px}
@media (min-width: 980px){
  .av-grid.cols-3{grid-template-columns:repeat(3,1fr)}
  .av-grid.cols-2{grid-template-columns:repeat(2,1fr)}
}

/* ============ Header / Nav ============ */
.av-topbar{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.18));
  border-bottom:1px solid rgba(255,255,255,.10);
}
.av-nav{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; padding:14px 0;
}
.av-brand{
  display:flex; align-items:center; gap:10px; text-decoration:none;
}
.av-logo{
  width:40px;height:40px; border-radius:12px;
  background: linear-gradient(135deg, var(--av-primary), var(--av-accent));
  display:grid; place-items:center;
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
  overflow:hidden;
}
.av-logo img{width:100%; height:100%; object-fit:cover}
.av-brand strong{font-size:18px; letter-spacing:.2px}
.av-brand span{display:block; font-size:12px; color:var(--av-muted2); margin-top:1px}

.av-menu{display:none; align-items:center; gap:18px}
.av-menu a{color:var(--av-muted); text-decoration:none; font-weight:650; font-size:14px}
.av-menu a:hover{color:var(--av-text)}
@media (min-width: 900px){ .av-menu{display:flex} }

.av-cta{
  display:flex; align-items:center; gap:10px;
}
.av-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:11px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  text-decoration:none;
  font-weight:800; font-size:14px;
  background: rgba(255,255,255,.06);
}
.av-btn.primary{
  background: linear-gradient(135deg, var(--av-primary), var(--av-accent));
  border-color: rgba(255,255,255,.12);
  color:#062021;
}
.av-btn.ghost:hover{background: rgba(255,255,255,.10)}
.av-btn.primary:hover{filter:brightness(1.03)}
.av-burger{display:inline-flex}
@media (min-width: 900px){ .av-burger{display:none} }

/* Mobile drawer */
.av-drawer{
  display:none;
  border-top:1px solid rgba(255,255,255,.10);
  padding:12px 0 18px;
}
.av-drawer a{
  display:block; padding:10px 0; text-decoration:none;
  color:var(--av-muted); font-weight:750;
}
.av-drawer a:hover{color:var(--av-text)}
.av-drawer.open{display:block}

/* ============ Hero ============ */
.av-hero{
  padding:78px 0 56px;
}
.av-hero-wrap{
  display:grid; gap:22px; align-items:center;
}
@media (min-width: 980px){
  .av-hero-wrap{grid-template-columns: 1.1fr .9fr; gap:26px}
}
.av-kicker{
  display:inline-flex; gap:10px; align-items:center;
  padding:7px 12px; border-radius:999px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  color:var(--av-muted);
  width:fit-content;
  font-weight:750; font-size:13px;
}
.av-title{
  font-size: clamp(34px, 4.6vw, 56px);
  line-height:1.03;
  margin: 10px 0 10px;
  letter-spacing: -0.6px;
}
.av-subtitle{
  color:var(--av-muted);
  font-size: 16px;
  line-height:1.7;
  max-width: 62ch;
}
.av-actions{display:flex; gap:12px; flex-wrap:wrap; margin-top:14px}
.av-badges{display:flex; gap:10px; flex-wrap:wrap; margin-top:14px}
.av-badge{
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  color:var(--av-muted);
  font-weight:750; font-size:12px;
}

/* Portal card */
.av-portal{
  border-radius: var(--av-radius);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--av-shadow);
  overflow:hidden;
}
.av-portal-top{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 16px 12px;
  border-bottom:1px solid rgba(255,255,255,.10);
}
.av-portal-top strong{font-size:14px; color:var(--av-muted)}
.av-portal-grid{
  display:grid; gap:14px;
  padding:16px;
}
@media(min-width: 520px){
  .av-portal-grid{grid-template-columns:1fr 1fr}
}
.av-card{
  border-radius:16px;
  background: rgba(0,0,0,.20);
  border:1px solid rgba(255,255,255,.10);
  padding:16px;
}
.av-card h3{margin:0 0 6px; font-size:16px}
.av-card p{margin:0 0 12px; color:var(--av-muted); font-size:13px; line-height:1.55}
.av-card .av-btn{width:100%}
.av-card .av-btn.primary{color:#062021}

/* ============ Feature cards ============ */
.av-feat{
  border-radius: var(--av-radius);
  background: rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.10);
  padding:18px;
  box-shadow: 0 14px 40px rgba(0,0,0,.24);
}
.av-feat h3{margin:4px 0 8px; font-size:16px}
.av-feat p{margin:0; color:var(--av-muted); font-size:13px; line-height:1.65}
.av-icon{
  width:42px; height:42px; border-radius:14px;
  background: linear-gradient(135deg, rgba(14,165,165,.35), rgba(30,144,255,.28));
  border:1px solid rgba(255,255,255,.10);
  display:grid; place-items:center;
}

/* ============ Blog ============ */
.av-content{padding:46px 0}
.av-post{
  border-radius: var(--av-radius);
  background: rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.10);
  padding:18px;
  margin-bottom:16px;
}
.av-post h2{margin:0 0 6px}
.av-post h2 a{text-decoration:none}
.av-meta{color:var(--av-muted2); font-size:12px; margin-bottom:10px}
.av-pagination{display:flex; gap:10px; flex-wrap:wrap; margin-top:18px}
.av-pagination a{
  padding:10px 12px; border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  text-decoration:none; font-weight:800;
}

/* ============ Footer ============ */
.av-footer{
  border-top:1px solid rgba(255,255,255,.10);
  padding:28px 0;
  color:var(--av-muted2);
  font-size:12px;
}
.av-footer .av-container{
  display:flex; gap:14px; justify-content:space-between; align-items:center; flex-wrap:wrap;
}
.av-footer a{color:var(--av-muted); text-decoration:none}
.av-footer a:hover{color:var(--av-text)}
