/*
Theme Name: Nex Hub
Theme URI: https://www.nexhubsolutions.com
Author: Nex Hub Technologies Ltd
Author URI: https://www.nexhubsolutions.com
Description: Custom premium theme for Nex Hub Technologies Ltd — IT Solutions, NexOps, Creatives and Gadgets divisions.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: nexhub
*/

/* ==========================================================================
   Nex Hub Technologies — Design System
   Brand: Primary Navy #02005C | Accent Orange #FD5D01 | White #FFFFFF
   ========================================================================== */

:root {
  --navy: #02005C;
  --navy-dark: #010036;
  --navy-light: #14107a;
  --orange: #FD5D01;
  --orange-dark: #e04f00;
  --orange-light: #ff8a4c;
  --ink: #0b0b1a;
  --slate: #5b5f76;
  --mist: #f5f6fb;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, .font-display {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  letter-spacing: -0.02em;
}

/* ---------- Gradients ---------- */
.bg-hero-gradient {
  background: radial-gradient(120% 140% at 15% 0%, #14107a 0%, #02005C 45%, #010036 100%);
}
.bg-navy-gradient {
  background: linear-gradient(135deg, #02005C 0%, #0a0670 55%, #150f8f 100%);
}
.bg-orange-gradient {
  background: linear-gradient(135deg, #FD5D01 0%, #ff7f33 100%);
}
.bg-mist-gradient {
  background: linear-gradient(180deg, #ffffff 0%, #f5f6fb 100%);
}
.text-gradient {
  background: linear-gradient(100deg, #ffffff 0%, #ffd9c2 45%, #FD5D01 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Glassmorphism (subtle) ---------- */
.glass {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.glass-light {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(2, 0, 92, 0.06);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: 9999px;
  transition: all .25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(253, 93, 1, 0.55);
}
.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -8px rgba(253, 93, 1, 0.65);
}
.btn-secondary {
  background: #fff;
  color: var(--navy);
  border: 1px solid rgba(2,0,92,0.12);
}
.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -10px rgba(2,0,92,0.25);
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border-radius: 1.25rem;
  border: 1px solid rgba(2,0,92,0.06);
  box-shadow: 0 2px 8px -2px rgba(2,0,92,0.06);
  transition: all .3s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -16px rgba(2,0,92,0.18);
  border-color: rgba(253,93,1,0.25);
}

/* ---------- Nav ---------- */
#site-header {
  transition: all .3s ease;
}
#site-header.scrolled {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(2,0,92,0.06), 0 12px 30px -20px rgba(2,0,92,0.2);
}
.nav-link {
  position: relative;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  font-size: 0.925rem;
  transition: color .2s ease;
}
#site-header.scrolled .nav-link { color: var(--navy); }
.nav-link:hover { color: var(--orange); }

.mega-panel {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .2s ease;
}
.mega-wrap:hover .mega-panel,
.mega-panel:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Stat counters ---------- */
.stat-number { font-variant-numeric: tabular-nums; }

/* ---------- Marquee for partner logos ---------- */
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Dot grid backdrop ----------
   Implemented as a ::before overlay (not background-image on the element
   itself) so it never fights the `background:` shorthand used by
   .bg-hero-gradient / .bg-navy-gradient on the same element. */
.dot-grid { position: relative; }
.dot-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.14) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}
.dot-grid-dark { position: relative; }
.dot-grid-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(2,0,92,0.10) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}

/* ---------- FAQ Accordion ---------- */
.faq-item[open] > summary .chev { transform: rotate(180deg); }
summary { cursor: pointer; }
summary::-webkit-details-marker { display: none; }

/* ---------- Floating WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 50;
  width: 58px;
  height: 58px;
  border-radius: 9999px;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.6);
  animation: pulse-wa 2.4s ease-in-out infinite;
}
@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 12px 30px -8px rgba(37,211,102,0.6); }
  50% { box-shadow: 0 12px 30px -4px rgba(37,211,102,0.85); }
}

/* ---------- Scrollbar ---------- */
::-selection { background: var(--orange); color: #fff; }

/* ---------- Mockup shell (NexOps dashboard) ---------- */
.mockup-shell {
  border-radius: 1.5rem;
  background: linear-gradient(180deg,#100c58,#02005C);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 40px 80px -30px rgba(2,0,92,0.55);
}

/* Utility: section divider blob */
.blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
}

/* ---------- Form success/hidden state (WordPress form handling) ---------- */
.nexhub-form.is-hidden { display: none; }
