/*
Theme Name: Azad Service Portal Theme
Theme URI: https://www.azadwebit.com/
Author: Azad Web IT
Description: Companion WordPress theme for Azad Service Portal v5.0.0 PRO. Provides a modern portal shell, homepage, header and footer while leaving service logic to the plugin.
Version: 1.1.0
Requires at least: 5.8
Requires PHP: 7.4
Text Domain: azad-service-portal-theme
*/
:root{--az-primary:#2563eb;--az-secondary:#4f46e5;--az-dark:#0f172a;--az-muted:#64748b;--az-bg:#f5f7fb;--az-card:#fff;--az-border:#e2e8f0}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--az-bg);color:var(--az-dark);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
a{color:var(--az-primary)}
img{max-width:100%;height:auto}
.az-site-header{position:sticky;top:0;z-index:100;background:rgba(255,255,255,.96);backdrop-filter:blur(12px);border-bottom:1px solid var(--az-border)}
.az-header-inner{max-width:1240px;margin:auto;padding:14px 24px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.az-brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:var(--az-dark)}
.az-brand-mark{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(135deg,var(--az-primary),var(--az-secondary));color:#fff;font-weight:900;font-size:20px;box-shadow:0 8px 20px rgba(37,99,235,.22)}
.az-brand-name{font-weight:800;line-height:1.1}.az-brand-sub{display:block;color:var(--az-muted);font-size:11px;margin-top:3px;font-weight:600}
.az-nav{display:flex;align-items:center;gap:6px}.az-nav a{padding:9px 11px;text-decoration:none;color:#334155;font-weight:600;border-radius:9px}.az-nav a:hover{background:#eff6ff;color:var(--az-primary)}
.az-nav .az-nav-button{background:var(--az-primary);color:#fff;padding:10px 15px}
.az-menu-toggle{display:none;border:0;background:transparent;font-size:25px;cursor:pointer}
.az-hero{background:linear-gradient(135deg,#0f172a,#1e3a8a 55%,#4f46e5);color:#fff;padding:82px 24px;position:relative;overflow:hidden}
.az-hero:after{content:"";position:absolute;width:480px;height:480px;border-radius:50%;right:-180px;top:-200px;background:rgba(255,255,255,.08)}
.az-hero-inner{max-width:1100px;margin:auto;position:relative;z-index:1}
.az-eyebrow{font-size:12px;letter-spacing:1.8px;font-weight:800;color:#bfdbfe}
.az-hero h1{font-size:clamp(36px,6vw,64px);line-height:1.03;max-width:780px;margin:14px 0 18px}
.az-hero p{max-width:700px;font-size:18px;line-height:1.7;color:#dbeafe;margin:0 0 28px}
.az-actions{display:flex;gap:12px;flex-wrap:wrap}.az-btn{display:inline-flex;align-items:center;justify-content:center;padding:12px 18px;border-radius:10px;text-decoration:none;font-weight:800}.az-btn-primary{background:#fff;color:#1d4ed8}.az-btn-ghost{border:1px solid rgba(255,255,255,.25);color:#fff;background:rgba(255,255,255,.08)}
.az-section{max-width:1180px;margin:auto;padding:64px 24px}.az-section-head{text-align:center;margin-bottom:30px}.az-section-head h2{font-size:34px;margin:0 0 8px}.az-section-head p{color:var(--az-muted);margin:0}
.az-features{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.az-feature{background:#fff;border:1px solid var(--az-border);border-radius:16px;padding:24px;box-shadow:0 8px 25px rgba(15,23,42,.05)}.az-feature-icon{font-size:28px;margin-bottom:12px}.az-feature h3{margin:0 0 8px}.az-feature p{color:var(--az-muted);line-height:1.6;margin:0}
.az-cta{max-width:1180px;margin:0 auto 64px;padding:42px 30px;border-radius:20px;background:linear-gradient(135deg,#2563eb,#7c3aed);color:#fff;display:flex;justify-content:space-between;align-items:center;gap:20px}.az-cta h2{margin:0 0 7px}.az-cta p{margin:0;color:#dbeafe}
.az-site-footer{background:#0f172a;color:#cbd5e1;padding:42px 24px}.az-footer-inner{max-width:1180px;margin:auto;display:flex;justify-content:space-between;gap:30px}.az-site-footer a{color:#fff;text-decoration:none}.az-footer-copy{color:#94a3b8;font-size:13px}
.az-page-wrap{max-width:1180px;margin:auto;padding:40px 24px;min-height:60vh}.az-content-card{background:#fff;border:1px solid var(--az-border);border-radius:16px;padding:30px}
.az-content-card h1{margin-top:0}
.az-plugin-page .asp-app{min-height:calc(100vh - 70px)}
/* Companion styling for the plugin's existing v5 UI */
.asp-app{--asp-primary:#2563eb;--asp-dark:#111827;--asp-bg:#f5f7fb}
.asp-sidebar{box-shadow:8px 0 30px rgba(15,23,42,.06)}
.asp-topbar{position:sticky;top:0;z-index:40}
.asp-service-card,.asp-card{transition:transform .18s ease,box-shadow .18s ease}
.asp-service-card:hover,.asp-card:hover{box-shadow:0 14px 32px rgba(15,23,42,.08)}
.asp-primary-btn{transition:transform .15s ease,box-shadow .15s ease}.asp-primary-btn:hover{transform:translateY(-1px)}
@media(max-width:800px){.az-menu-toggle{display:block}.az-nav{display:none;position:absolute;left:0;right:0;top:70px;background:#fff;border-bottom:1px solid var(--az-border);padding:10px 18px;flex-direction:column;align-items:stretch}.az-nav.is-open{display:flex}.az-nav a{text-align:center}.az-header-inner{position:relative}.az-features{grid-template-columns:1fr}.az-cta,.az-footer-inner{flex-direction:column;align-items:flex-start}}
@media(max-width:520px){.az-header-inner{padding:12px 16px}.az-hero{padding:62px 18px}.az-section{padding:48px 18px}.az-cta{margin:0 18px 48px;padding:30px 22px}.az-brand-name{font-size:14px}}

/* =========================================================
   Azad Service Portal Theme v1.1 — Responsive & Pro Polish
   ========================================================= */
:root{
  --az-accent:#7c3aed;
  --az-cyan:#06b6d4;
  --az-success:#10b981;
  --az-gradient:linear-gradient(135deg,#2563eb 0%,#4f46e5 48%,#7c3aed 100%);
}
body{overflow-x:hidden;-webkit-text-size-adjust:100%}
button,input,select,textarea{max-width:100%}
table{max-width:100%}
.wp-site-blocks{overflow-x:clip}

/* More colorful header/navigation */
.az-site-header{
  box-shadow:0 5px 24px rgba(37,99,235,.07);
}
.az-nav a{
  position:relative;
  transition:color .22s ease,background .22s ease,transform .22s ease;
}
.az-nav a:not(.az-nav-button)::after{
  content:"";
  position:absolute;
  left:12px;right:12px;bottom:4px;height:2px;
  border-radius:10px;background:var(--az-gradient);
  transform:scaleX(0);transform-origin:center;
  transition:transform .22s ease;
}
.az-nav a:hover{transform:translateY(-1px)}
.az-nav a:hover::after{transform:scaleX(1)}
.az-nav .az-nav-button{
  background:var(--az-gradient);
  box-shadow:0 8px 18px rgba(79,70,229,.22);
  transition:transform .22s ease,box-shadow .22s ease;
}
.az-nav .az-nav-button:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 24px rgba(79,70,229,.30);
}

/* Prevent desktop-width plugin content from clipping on smaller screens */
.az-plugin-page,
.az-plugin-page .asp-app{
  width:100%;
  max-width:100%;
  min-width:0;
  overflow-x:clip;
}
.az-plugin-page .asp-app *{max-width:100%}
.az-plugin-page .asp-content,
.az-plugin-page .asp-main,
.az-plugin-page .asp-page,
.az-plugin-page .asp-container{
  min-width:0;
  max-width:100%;
}

/* Sidebar/main layout: allow the portal to shrink instead of hiding the right side */
.az-plugin-page .asp-app{
  display:flex;
  width:100%;
}
.az-plugin-page .asp-sidebar{
  flex:0 0 260px;
  max-width:260px;
  min-width:0;
}
.az-plugin-page .asp-main,
.az-plugin-page .asp-content{
  flex:1 1 auto;
  width:auto;
  min-width:0;
  overflow-x:auto;
}

/* Colorful cards and controls */
.asp-app{
  --asp-primary:#2563eb;
  --asp-secondary:#7c3aed;
  --asp-accent:#06b6d4;
}
.az-plugin-page .asp-service-card,
.az-plugin-page .asp-card{
  border:1px solid rgba(99,102,241,.12);
  box-shadow:0 8px 24px rgba(15,23,42,.06);
  transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;
}
.az-plugin-page .asp-service-card:hover,
.az-plugin-page .asp-card:hover{
  transform:translateY(-3px);
  border-color:rgba(79,70,229,.25);
  box-shadow:0 16px 34px rgba(37,99,235,.12);
}
.az-plugin-page .asp-primary-btn{
  background:var(--az-gradient)!important;
  border:0;
  box-shadow:0 8px 18px rgba(79,70,229,.20);
}

/* Mobile/tablet: sidebar becomes a compact top/overlay area */
@media(max-width:1024px){
  .az-header-inner{padding-left:18px;padding-right:18px}
  .az-plugin-page .asp-app{display:block}
  .az-plugin-page .asp-sidebar{
    position:relative!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    height:auto!important;
    transform:none!important;
  }
  .az-plugin-page .asp-main,
  .az-plugin-page .asp-content{
    width:100%!important;
    max-width:100%!important;
    margin-left:0!important;
  }
}

/* Keep plugin tables/forms usable without cutting off the page */
@media(max-width:800px){
  .az-plugin-page .asp-main,
  .az-plugin-page .asp-content{padding-left:14px!important;padding-right:14px!important}
  .az-plugin-page .asp-topbar{
    width:100%!important;
    max-width:100%!important;
  }
  .az-plugin-page .asp-card,
  .az-plugin-page .asp-service-card{width:100%;min-width:0}
  .az-plugin-page table{display:block;overflow-x:auto;white-space:nowrap}
  .az-plugin-page input,
  .az-plugin-page select,
  .az-plugin-page textarea{width:100%;min-width:0}
  .az-plugin-page .asp-grid,
  .az-plugin-page .asp-services,
  .az-plugin-page .asp-cards{
    grid-template-columns:1fr!important;
  }
}

/* Small phones */
@media(max-width:520px){
  .az-site-header{position:sticky;top:0}
  .az-header-inner{padding:10px 14px;gap:10px}
  .az-brand-mark{width:38px;height:38px;font-size:18px}
  .az-brand-sub{font-size:10px}
  .az-nav{top:60px;padding:10px 12px}
  .az-nav a{padding:11px 12px}
  .az-hero h1{font-size:clamp(30px,10vw,44px)}
  .az-hero p{font-size:16px}
  .az-actions .az-btn{width:100%}
  .az-plugin-page .asp-main,
  .az-plugin-page .asp-content{padding-left:10px!important;padding-right:10px!important}
}

/* Accessibility + motion */
.az-menu-toggle{transition:transform .2s ease,background .2s ease}
.az-menu-toggle:hover{transform:scale(1.06);background:#eff6ff;border-radius:10px}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;transition:none!important}
}
