/*
Theme Name: Ghosted Hosting
Theme URI: https://ghosted.com
Author: Mixcat Agency
Author URI: https://mixcat.com
Description: Premium hosting theme for Ghosted.com — lightweight, fast, Elementor-compatible with built-in mega menu.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
License URI: https://ghosted.com/terms
Text Domain: ghosted
Tags: custom-menu, custom-logo, elementor, hosting, one-page, theme-options

Ghosted Hosting Theme — Built by Mixcat Agency
*/

/* ═══════════════════════════════════════════
   CSS VARIABLES — BRAND SYSTEM
   ═══════════════════════════════════════════ */
:root {
  /* Navy scale */
  --navy-deep: #0A1628;
  --navy: #0F1B2D;
  --navy-mid: #162236;
  --navy-light: #1E2D45;

  /* Brand accents */
  --cyan: #00C2FF;
  --cyan-bright: #33CFFF;
  --cyan-glow: rgba(0, 194, 255, 0.15);
  --cyan-subtle: rgba(0, 194, 255, 0.08);
  --teal: #06D6A0;
  --teal-glow: rgba(6, 214, 160, 0.15);
  --coral: #FF6B35;
  --coral-hover: #FF8255;
  --coral-glow: rgba(255, 107, 53, 0.2);
  --purple: #8B5CF6;

  /* Neutrals */
  --white: #FFFFFF;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --text-primary: #0F172A;
  --text-secondary: #475569;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.15);
  --shadow-cyan: 0 0 40px rgba(0, 194, 255, 0.15);

  /* Radii */
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
}

/* ═══════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-primary);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes float2 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(6,214,160,0.3); }
  50% { box-shadow: 0 0 20px rgba(6,214,160,0.6); }
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
@keyframes fillBar { to { width: 99.9%; } }
@keyframes breathe {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}
@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.animate-up { animation: fadeUp 0.7s ease forwards; opacity: 0; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

/* ═══════════════════════════════════════════
   TOP UTILITY BAR
   ═══════════════════════════════════════════ */
.ghosted-top-bar {
  background: var(--navy-deep);
  padding: 8px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 12px;
  position: relative;
  z-index: 101;
}
.top-bar-left {
  display: flex;
  gap: 24px;
  align-items: center;
  color: var(--gray-400);
}
.top-bar-left a {
  color: var(--gray-400);
  transition: color 0.2s;
}
.top-bar-left a:hover { color: var(--cyan); }
.top-bar-left .separator { color: var(--navy-light); }
.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal);
  font-weight: 600;
}
.status-dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse-glow 2s infinite;
}
.top-bar-right {
  display: flex;
  gap: 16px;
  align-items: center;
}
.top-bar-right a {
  color: var(--gray-500);
  font-size: 12px;
  font-weight: 500;
  transition: color 0.2s;
}
.top-bar-right a:hover { color: var(--white); }

/* ═══════════════════════════════════════════
   MAIN NAVIGATION
   ═══════════════════════════════════════════ */
.ghosted-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0 48px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s;
}
.ghosted-nav.scrolled {
  background: rgba(10, 22, 40, 0.98);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 24px;
  color: var(--white);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.ghost-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--cyan), #0090CC);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 12px rgba(0,194,255,0.3);
}

/* Nav center links */
.nav-center {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-center .menu-item > a,
.nav-link {
  color: var(--gray-300);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-center .menu-item > a:hover,
.nav-link:hover {
  color: var(--white);
  background: rgba(255,255,255,0.05);
}
/* "New" badge on menu items */
.nav-badge,
.menu-item .new-badge {
  background: var(--coral);
  color: white;
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 100px;
  font-weight: 700;
  margin-left: 4px;
}

/* Nav right */
.nav-right {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
}
.nav-login {
  color: var(--gray-300);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  transition: color 0.2s;
}
.nav-login:hover { color: var(--white); }
.nav-cta {
  background: linear-gradient(135deg, var(--cyan), #0090CC);
  color: var(--white);
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0,194,255,0.3);
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,194,255,0.4);
}

/* ═══════════════════════════════════════════
   MEGA MENU
   ═══════════════════════════════════════════ */
.nav-center .menu-item {
  position: relative;
}
.nav-center .menu-item.menu-item-has-children > a::after {
  content: '';
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid var(--gray-400);
  margin-left: 4px;
  transition: transform 0.2s;
}
.nav-center .menu-item.menu-item-has-children:hover > a::after {
  transform: rotate(180deg);
  border-top-color: var(--cyan);
}

/* Mega menu dropdown */
.ghosted-mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--navy);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  padding: 32px;
  min-width: 680px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  z-index: 200;
}
.menu-item-has-children:hover .ghosted-mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.mega-menu-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius);
  transition: all 0.2s;
}
.mega-menu-item:hover {
  background: rgba(255,255,255,0.04);
}
.mega-menu-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.mega-menu-icon.blue { background: rgba(0,194,255,0.12); }
.mega-menu-icon.teal { background: rgba(6,214,160,0.12); }
.mega-menu-icon.coral { background: rgba(255,107,53,0.12); }
.mega-menu-icon.purple { background: rgba(139,92,246,0.12); }

.mega-menu-text h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}
.mega-menu-text p {
  font-size: 12px;
  color: var(--gray-400);
  line-height: 1.5;
}
.mega-menu-text .price-tag {
  font-size: 11px;
  color: var(--cyan);
  font-weight: 700;
  margin-top: 4px;
  display: inline-block;
}

.mega-menu-footer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mega-menu-footer a {
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.mega-menu-footer a:hover { color: var(--cyan-bright); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ═══════════════════════════════════════════
   GLOBAL BUTTONS
   ═══════════════════════════════════════════ */
.btn-primary {
  background: linear-gradient(135deg, var(--coral), #E85A28);
  color: var(--white);
  padding: 18px 40px;
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 16px;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px var(--coral-glow);
  letter-spacing: 0.01em;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  animation: shimmer 3s infinite;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--coral-glow);
}

.btn-primary-cyan {
  background: linear-gradient(135deg, var(--cyan), #0090CC);
  box-shadow: 0 4px 16px var(--cyan-glow);
}
.btn-primary-cyan:hover {
  box-shadow: 0 8px 28px var(--cyan-glow);
}

.btn-secondary {
  color: var(--gray-300);
  padding: 18px 32px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.btn-secondary:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.06);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--gray-200);
  padding: 16px 32px;
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 15px;
  transition: all 0.25s;
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-subtle);
}

/* ═══════════════════════════════════════════
   SECTION UTILITIES
   ═══════════════════════════════════════════ */
.ghosted-section { padding: 110px 48px; }
.section-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-label .line {
  width: 24px;
  height: 2px;
  background: var(--cyan);
  border-radius: 1px;
}
.section-title {
  font-size: 46px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.section-title .highlight { color: var(--cyan); }
.section-sub {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 560px;
}
.section-header {
  text-align: center;
  margin-bottom: 72px;
}
.section-header .section-label { justify-content: center; }
.section-header .section-sub { margin: 0 auto; }

/* Gradient text helper */
.gradient-text {
  background: linear-gradient(135deg, var(--cyan), var(--teal), var(--cyan));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s ease infinite;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.ghosted-footer {
  background: var(--navy-deep);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-main {
  padding: 72px 48px 48px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.7;
  max-width: 260px;
  margin-bottom: 24px;
}
.footer-socials {
  display: flex;
  gap: 10px;
}
.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--gray-400);
  transition: all 0.2s;
}
.social-icon:hover {
  background: var(--cyan-subtle);
  border-color: rgba(0,194,255,0.2);
  color: var(--cyan);
}
.social-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 800;
  color: var(--gray-300);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 24px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0; }
.footer-col a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--gray-500);
  padding: 7px 0;
  transition: all 0.2s;
}
.footer-col a:hover {
  color: var(--white);
  transform: translateX(3px);
}
.footer-col .new-tag {
  background: var(--coral);
  color: var(--white);
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.footer-middle {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 48px;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-trust-badges {
  display: flex;
  gap: 24px;
  align-items: center;
}
.footer-trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-400);
  font-weight: 600;
}
.footer-trust-badge .ftb-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.payment-icons {
  display: flex;
  gap: 10px;
}
.payment-icon {
  height: 32px;
  padding: 0 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--gray-300);
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.05em;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom-left {
  font-size: 13px;
  color: var(--gray-500);
}
.footer-bottom-left a { color: var(--gray-400); }
.footer-bottom-left a:hover { color: var(--cyan); }
.footer-bottom-right {
  display: flex;
  gap: 24px;
}
.footer-bottom-right a {
  font-size: 13px;
  color: var(--gray-500);
  transition: color 0.2s;
}
.footer-bottom-right a:hover { color: var(--white); }

/* ═══════════════════════════════════════════
   ELEMENTOR OVERRIDES
   Ensure Elementor sections match our design
   ═══════════════════════════════════════════ */
.elementor-section.elementor-section-boxed > .elementor-container {
  max-width: 1200px;
}
.elementor-widget-heading .elementor-heading-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ═══════════════════════════════════════════
   WHMCS BRIDGE — smooth transition
   ═══════════════════════════════════════════ */
body.whmcs-page .ghosted-nav,
body.whmcs-page .ghosted-footer {
  /* These classes let you include the same nav/footer on WHMCS pages */
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .ghosted-nav { padding: 0 24px; }
  .nav-center { display: none; }
  .nav-toggle { display: flex; }
  .ghosted-top-bar { display: none; }
  .ghosted-section { padding: 80px 24px; }
  .section-title { font-size: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-middle { flex-direction: column; gap: 24px; text-align: center; }
  .footer-trust-badges { flex-wrap: wrap; justify-content: center; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .footer-bottom-right { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 600px) {
  .ghosted-section { padding: 60px 16px; }
  .section-title { font-size: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-main { padding: 48px 24px 32px; }
}
