/* ==========================================================================
   JAGUAR SECURITY & MANAGEMENT - ENTERPRISE WORDPRESS-STYLE DESIGN SYSTEM
   UI/UX Pro Max Architecture: Obsidian Navy & Champagne Gold Theme
   ========================================================================== */

:root {
  /* Theme Palette */
  --wp-dark-base: #06090e;
  --wp-dark-surface: #0b111a;
  --wp-dark-card: #0f1726;
  --wp-dark-card-hover: #152033;
  --wp-dark-border: rgba(255, 255, 255, 0.08);
  
  --wp-gold: #d4af37;
  --wp-gold-hover: #f3cf65;
  --wp-gold-dark: #aa8620;
  --wp-gold-glow: rgba(212, 175, 55, 0.25);
  
  --wp-emerald: #10b981;
  --wp-emerald-bg: rgba(16, 185, 129, 0.1);
  --wp-crimson: #ef4444;
  --wp-crimson-bg: rgba(239, 68, 68, 0.1);
  
  --wp-text-main: #f8fafc;
  --wp-text-body: #cbd5e1;
  --wp-text-muted: #94a3b8;
  --wp-text-dim: #64748b;
  
  /* Typography */
  --wp-font-heading: 'Lexend', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --wp-font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --wp-font-mono: 'JetBrains Mono', monospace;
  
  /* Radii & Shadows */
  --wp-radius-sm: 4px;
  --wp-radius-md: 8px;
  --wp-radius-lg: 14px;
  --wp-radius-xl: 20px;
  --wp-radius-full: 9999px;
  
  --wp-shadow-sm: 0 2px 6px rgba(0,0,0,0.3);
  --wp-shadow-md: 0 10px 25px rgba(0,0,0,0.45);
  --wp-shadow-lg: 0 20px 45px rgba(0,0,0,0.6);
  --wp-shadow-gold: 0 8px 30px rgba(212, 175, 55, 0.22);
  
  /* Transitions */
  --wp-transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  --wp-container: 1240px;
}

/* Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--wp-font-body);
  background-color: var(--wp-dark-base);
  color: var(--wp-text-body);
  line-height: 1.65;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 5%, rgba(212, 175, 55, 0.04) 0%, transparent 35%),
    radial-gradient(circle at 90% 85%, rgba(16, 185, 129, 0.02) 0%, transparent 35%);
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--wp-font-heading);
  color: var(--wp-text-main);
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.8rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--wp-gold);
  text-decoration: none;
  transition: var(--wp-transition);
}
a:hover { color: var(--wp-gold-hover); }

.text-gold { color: var(--wp-gold) !important; }
.text-emerald { color: var(--wp-emerald) !important; }
.text-crimson { color: var(--wp-crimson) !important; }
.text-white { color: var(--wp-text-main) !important; }
.text-muted { color: var(--wp-text-muted) !important; }

.gradient-text {
  background: linear-gradient(135deg, #ffffff 40%, var(--wp-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.container,
.site-container {
  width: 100%;
  max-width: var(--wp-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

.container-narrow,
.site-container-narrow {
  width: 100%;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

.container-legal,
.site-container-legal {
  width: 100%;
  max-width: 840px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

.section-padding {
  padding-top: clamp(60px, 7vw, 95px);
  padding-bottom: clamp(60px, 7vw, 95px);
}

.section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 50px auto;
}

.section-header p,
.section-subtitle {
  color: var(--wp-text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-top: 14px;
}

/* Page Hero Headers */
.page-hero-header {
  padding: 85px 0 45px;
  background: radial-gradient(circle at 50% 30%, rgba(212, 175, 55, 0.08) 0%, rgba(6, 9, 14, 0.98) 75%);
  text-align: center;
}

.page-hero-title {
  font-family: var(--wp-font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: #ffffff;
  margin: 0 0 14px;
  line-height: 1.2;
}

.page-hero-desc {
  max-width: 760px;
  margin: 0 auto;
  color: var(--wp-text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Badges */
.badge,
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--wp-gold);
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--wp-radius-full);
  margin-bottom: 16px;
}

.badge-emerald {
  color: var(--wp-emerald);
  background: var(--wp-emerald-bg);
  border-color: rgba(16, 185, 129, 0.3);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  font-family: var(--wp-font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--wp-radius-md);
  cursor: pointer;
  transition: var(--wp-transition);
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--wp-gold), var(--wp-gold-dark));
  color: #06090e;
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--wp-gold-hover), var(--wp-gold));
  box-shadow: 0 6px 25px rgba(212, 175, 55, 0.5);
  transform: translateY(-2px);
  color: #020406;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--wp-text-main);
  border-color: var(--wp-dark-border);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--wp-gold);
  color: var(--wp-gold);
  transform: translateY(-2px);
}

.btn-outline-gold {
  background: transparent;
  color: var(--wp-gold);
  border-color: rgba(212, 175, 55, 0.4);
}
.btn-outline-gold:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--wp-gold);
  transform: translateY(-2px);
}

/* Glass & Card Widgets (Elementor Style) */
.glass-card {
  background: var(--wp-dark-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--wp-dark-border);
  border-radius: var(--wp-radius-lg);
  padding: 28px;
  transition: var(--wp-transition);
  box-shadow: var(--wp-shadow-md);
}

.glass-card:hover {
  background: var(--wp-dark-card-hover);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: var(--wp-shadow-gold), var(--wp-shadow-lg);
  transform: translateY(-4px);
}

/* ==========================================================================
   WordPress Classic Pre-Header Topbar
   ========================================================================== */
.topbar {
  background: #030508;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px 0;
  font-size: 0.82rem;
  color: var(--wp-text-muted);
}

.topbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.topbar-left a, .topbar-left span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--wp-text-muted);
}
.topbar-left a:hover { color: var(--wp-gold); }
.topbar-left i { color: var(--wp-gold); font-size: 0.85rem; }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212, 175, 55, 0.1);
  color: var(--wp-gold);
  padding: 2px 8px;
  border-radius: var(--wp-radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
}

.topbar-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--wp-emerald);
  font-weight: 600;
  font-size: 0.75rem;
}

.topbar-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wp-emerald);
  box-shadow: 0 0 6px var(--wp-emerald);
}

/* ==========================================================================
   Main Header & Navigation with Dropdowns
   ========================================================================== */
.navbar,
.main-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 12px 0;
  background: rgba(6, 9, 14, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--wp-dark-border);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled,
.main-header.scrolled {
  padding: 12px 0; /* Preserves rock-solid height with zero vertical jumping */
  background: rgba(6, 9, 14, 0.98);
  border-bottom-color: rgba(212, 175, 55, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--wp-font-heading);
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--wp-text-main);
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--wp-gold);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--wp-text-body);
  transition: var(--wp-transition);
  position: relative;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link:hover, .nav-link.active {
  color: var(--wp-gold);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--wp-gold);
  transition: var(--wp-transition);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Dropdown Menu (WP Style) */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 240px;
  background: var(--wp-dark-surface);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--wp-radius-md);
  padding: 10px 0;
  box-shadow: var(--wp-shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--wp-transition);
  list-style: none;
  z-index: 1100;
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  font-size: 0.88rem;
  color: var(--wp-text-body);
  transition: var(--wp-transition);
}

.nav-dropdown li a:hover {
  background: rgba(212, 175, 55, 0.08);
  color: var(--wp-gold);
  padding-left: 22px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--wp-dark-border);
  color: var(--wp-text-main);
  width: 42px;
  height: 42px;
  border-radius: var(--wp-radius-md);
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
}

/* ==========================================================================
   Mobile Nav Drawer
   ========================================================================== */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(320px, 85vw);
  height: 100vh;
  background: var(--wp-dark-surface);
  border-left: 1px solid var(--wp-gold);
  z-index: 2000;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 40px rgba(0,0,0,0.8);
}

.mobile-drawer.open { right: 0; }

.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: var(--wp-transition);
}

.drawer-backdrop.active { opacity: 1; visibility: visible; }

/* ==========================================================================
   Floating Widgets (WhatsApp & Scroll to Top)
   ========================================================================== */
.floating-whatsapp {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 54px;
  height: 54px;
  background: #25d366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.45);
  z-index: 999;
  transition: var(--wp-transition);
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  color: #ffffff;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.65);
}

.scroll-top-btn {
  position: fixed;
  bottom: 26px;
  left: 26px;
  width: 44px;
  height: 44px;
  background: var(--wp-dark-surface);
  color: var(--wp-gold);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--wp-transition);
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top-btn:hover {
  background: var(--wp-gold);
  color: #06090e;
  transform: translateY(-3px);
}

/* ==========================================================================
   Site Footer
   ========================================================================== */
.site-footer {
  background: #04060a;
  border-top: 1px solid var(--wp-dark-border);
  padding: 70px 0 30px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h4 {
  font-size: 1.05rem;
  margin-bottom: 20px;
  color: var(--wp-text-main);
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--wp-gold);
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--wp-text-muted); font-size: 0.9rem; transition: var(--wp-transition); }
.footer-links a:hover { color: var(--wp-gold); padding-left: 6px; }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--wp-dark-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--wp-text-dim);
}

/* Responsive Overrides */
@media (max-width: 992px) {
  .topbar { display: none; }
  .nav-menu, .nav-actions .btn { display: none; }
  .mobile-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
