/* ==========================================================================
   SERVXHUB CYBER-SHIELD EXECUTIVE STYLESHEET
   Theme Inspired by ServxHub Gold & Emerald Cyber Shield Logo
   ========================================================================== */

/* DEFAULT THEME: OBSIDIAN CYBER SHIELD DARK */
:root, [data-theme="dark"] {
  --bg-primary: #080C14;
  --bg-secondary: #0F172A;
  --bg-card: #131D31;
  --bg-card-solid: #131D31;
  --header-bg: #080C14;
  --header-text: #FFFFFF;
  --border: rgba(245, 158, 11, 0.35);
  --border-subtle: rgba(16, 185, 129, 0.2);
  --text-primary: #F9FAFB;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --primary-gold: #F59E0B;
  --primary-gold-dark: #D97706;
  --primary-gold-glow: #FBBF24;
  --accent-green: #10B981;
  --accent-green-hover: #059669;
  --accent-green-glow: #00E599;
  --accent-red: #EF4444;
  --badge-bg: rgba(245, 158, 11, 0.12);
  --badge-border: rgba(245, 158, 11, 0.4);
  --badge-text: #FBBF24;
  --hero-text-title: #FFFFFF;
  --hero-text-sub: #E2E8F0;
  --quiz-box-bg: #0F172A;
  --quiz-box-border: rgba(16, 185, 129, 0.35);
  --quiz-text-title: #FFFFFF;
  --quiz-text-sub: #94A3B8;
  --option-card-bg: #1E293B;
  --option-card-border: rgba(255, 255, 255, 0.1);
  --option-card-text: #F8FAFC;
  --option-card-hover-bg: rgba(16, 185, 129, 0.18);
  --shadow-lg: 0 25px 60px -12px rgba(0, 0, 0, 0.85);
  --shadow-glow: 0 0 32px rgba(16, 185, 129, 0.45), 0 0 12px rgba(245, 158, 11, 0.25);
  --toggle-bg: rgba(255, 255, 255, 0.08);
  --toggle-icon: #F59E0B;
  --toggle-text: #F8FAFC;
}

/* EXECUTIVE LIGHT THEME */
[data-theme="light"] {
  --bg-primary: #F8FAFC;
  --bg-secondary: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-solid: #FFFFFF;
  --header-bg: #080C14;
  --header-text: #FFFFFF;
  --border: rgba(217, 119, 6, 0.35);
  --border-subtle: #E2E8F0;
  --text-primary: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --primary-gold: #D97706;
  --primary-gold-dark: #B45309;
  --primary-gold-glow: #F59E0B;
  --accent-green: #059669;
  --accent-green-hover: #047857;
  --accent-green-glow: #10B981;
  --accent-red: #DC2626;
  --badge-bg: rgba(217, 119, 6, 0.1);
  --badge-border: rgba(217, 119, 6, 0.3);
  --badge-text: #D97706;
  --hero-text-title: #0F172A;
  --hero-text-sub: #334155;
  --quiz-box-bg: #FFFFFF;
  --quiz-box-border: rgba(5, 150, 105, 0.35);
  --quiz-text-title: #0F172A;
  --quiz-text-sub: #475569;
  --option-card-bg: #F1F5F9;
  --option-card-border: #E2E8F0;
  --option-card-text: #0F172A;
  --option-card-hover-bg: rgba(5, 150, 105, 0.1);
  --shadow-lg: 0 20px 45px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 0 25px rgba(5, 150, 105, 0.25);
  --toggle-bg: rgba(255, 255, 255, 0.12);
  --toggle-icon: #F59E0B;
  --toggle-text: #FFFFFF;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

* {
  box-sizing: border-box;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.text-center {
  text-align: center;
}

/* Header Styling */
header.compact-header {
  padding: 14px 0 !important;
  background: #080C14 !important;
  border-bottom: 1px solid rgba(16, 185, 129, 0.25) !important;
  position: relative;
  z-index: 10;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

/* Preloader Keyframes & Styling */
#servxhub-preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #080C14;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.preloader-shield-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.preloader-logo-img {
  height: 90px;
  width: auto;
  border-radius: 18px;
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.5), 0 0 15px rgba(245, 158, 11, 0.3);
  animation: pulseShield 1.6s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.preloader-spinner-ring {
  position: absolute;
  width: 120px;
  height: 120px;
  border: 3px solid rgba(245, 158, 11, 0.2);
  border-top-color: #10B981;
  border-bottom-color: #F59E0B;
  border-radius: 50%;
  animation: spinRing 1.2s linear infinite;
  pointer-events: none;
}

@keyframes spinRing {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulseShield {
  0% { transform: scale(0.96); filter: drop-shadow(0 0 12px rgba(16, 185, 129, 0.4)); }
  100% { transform: scale(1.04); filter: drop-shadow(0 0 28px rgba(16, 185, 129, 0.8)); }
}

/* Theme Switcher Toggle Button */
.theme-toggle-btn {
  background: var(--toggle-bg);
  border: 1.5px solid var(--border);
  color: #FFFFFF;
  padding: 6px 14px;
  border-radius: 50px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
  white-space: nowrap;
}
.theme-toggle-btn:hover {
  transform: translateY(-1px);
  border-color: var(--primary-gold);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.25);
}
.theme-toggle-btn svg {
  width: 14px;
  height: 14px;
  fill: var(--toggle-icon);
}

/* Executive Center Popup Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(8, 12, 20, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--bg-card-solid);
  border: 2px solid var(--primary-gold);
  border-radius: 20px;
  padding: 24px 18px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85);
  transform: translateY(20px) scale(0.94);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-primary);
}

.modal-overlay.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 12px;
  right: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: var(--text-secondary);
  font-size: 1.1rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #EF4444;
}

/* Premium Footer Styling */
.premium-footer {
  background: #080C14;
  color: #94A3B8;
  border-top: 1px solid var(--border);
  padding: 48px 0 28px 0;
  font-size: 0.88rem;
  position: relative;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .modal-card {
    padding: 20px 14px;
    border-radius: 16px;
  }

  .modal-card h3 {
    font-size: 1.2rem !important;
  }

  .modal-card p {
    font-size: 0.82rem !important;
    margin-bottom: 14px !important;
  }
  
  .hero-plumbing-grid {
    gap: 24px !important;
    margin-top: 4px !important;
  }

  .ppc-hero {
    padding: 24px 0 36px 0 !important;
    background: var(--bg-primary) !important;
  }

  .giant-call-btn {
    width: 100% !important;
    max-width: 100% !important;
    padding: 14px 18px !important;
    margin: 16px 0 6px 0 !important;
    border-radius: 14px !important;
  }

  .giant-call-btn .btn-main-text {
    font-size: 1.05rem !important;
    gap: 6px !important;
  }

  .giant-call-btn .btn-main-text svg {
    width: 16px !important;
    height: 16px !important;
  }
}

.footer-col-title {
  font-family: 'Outfit', sans-serif;
  color: #FFFFFF;
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
  position: relative;
}

.footer-col-title::after {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--primary-gold);
  margin-top: 4px;
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #94A3B8;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: var(--primary-gold);
  transform: translateX(4px);
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: #64748B;
}
