/* 1991 Group of Companies - Custom Global Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');

:root {
  --brand-navy: #0a2540;
  --brand-dark: #000f22;
  --brand-emerald: #10b981;
  --brand-cyan: #0284c7;
  --brand-amber: #d97706;
  --brand-surface: #f8f9ff;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden !important;
  max-width: 100% !important;
  width: 100% !important;
  position: relative;
  -webkit-text-size-adjust: 100%;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

body {
  background-color: var(--brand-surface);
  color: #1e293b;
}

img, video, iframe {
  max-width: 100%;
  height: auto;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
  line-height: 1;
}

/* Glassmorphism Classes */
.glass-header {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.glass-dark {
  background: rgba(10, 37, 64, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Micro-animations */
@keyframes softPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.85;
  }
}

.animate-soft-pulse {
  animation: softPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes floatGentle {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.animate-float {
  animation: floatGentle 4s ease-in-out infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Hide scrollbar for clean horizontal swipe on mobile */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Off-canvas mobile drawer */
.drawer-backdrop {
  overflow: hidden !important;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.drawer-backdrop.hidden {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.drawer-backdrop:not(.hidden) {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.drawer-panel {
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
.drawer-backdrop.hidden .drawer-panel {
  transform: translateX(100%);
}
.drawer-backdrop:not(.hidden) .drawer-panel {
  transform: translateX(0);
}

/* Modal styling */
.modal-overlay {
  overflow: hidden !important;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.modal-overlay.hidden {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.modal-overlay:not(.hidden) {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.modal-content {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
.modal-overlay.hidden .modal-content {
  transform: scale(0.95) translateY(12px);
  opacity: 0;
}
.modal-overlay:not(.hidden) .modal-content {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Card hover elevations */
.hover-lift {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}
.hover-lift:hover {
  transform: translateY(-4px);
}

/* Filter badge active states */
.filter-btn.active {
  background-color: #0a2540;
  color: #ffffff;
  border-color: #0a2540;
  box-shadow: 0 4px 12px rgba(10, 37, 64, 0.15);
}

/* Accordion transition */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1), opacity 0.3s ease;
  opacity: 0;
}
.faq-item.open .faq-answer {
  max-height: 500px;
  opacity: 1;
  transition: max-height 0.45s ease-in-out, opacity 0.3s ease;
}
.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

/* Floating WhatsApp badge pulse */
.floating-wa-btn {
  box-shadow: 0 10px 25px -3px rgba(16, 185, 129, 0.4), 0 4px 6px -4px rgba(16, 185, 129, 0.2);
}

/* ==========================================================================
   DARK THEME SYSTEM & HIGH-CONTRAST PALETTE
   ========================================================================== */
html.dark {
  color-scheme: dark;
  --brand-navy: #040914;
  --brand-dark: #02060e;
  --brand-surface: #070d18;
  background-color: #070d18 !important;
}

html.dark body {
  background-color: #070d18 !important;
  color: #e2e8f0 !important;
}

/* Glassmorphism in Dark Mode */
html.dark .glass-header {
  background: rgba(7, 13, 24, 0.92) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

html.dark .glass-card {
  background: rgba(13, 23, 42, 0.95) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Background overrides in dark mode */
html.dark .bg-white {
  background-color: #0d172a !important;
}

html.dark .bg-white\/95 {
  background-color: rgba(13, 23, 42, 0.95) !important;
}

html.dark .bg-white\/90 {
  background-color: rgba(13, 23, 42, 0.9) !important;
}

html.dark .bg-white\/80 {
  background-color: rgba(13, 23, 42, 0.8) !important;
}

html.dark .bg-\[\#f8f9ff\] {
  background-color: #070d18 !important;
}

html.dark .bg-slate-50,
html.dark .bg-slate-50\/80 {
  background-color: #0a1120 !important;
}

html.dark .bg-slate-100,
html.dark .bg-slate-100\/90,
html.dark .bg-slate-100\/80 {
  background-color: #101c34 !important;
}

html.dark .bg-slate-200\/60 {
  background-color: rgba(26, 42, 71, 0.6) !important;
}

/* Hero Section Gradient in Dark Mode */
html.dark #hero {
  background: linear-gradient(180deg, #091326 0%, #070d18 50%, #070d18 100%) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Text color adaptations */
html.dark .text-slate-900 {
  color: #f8fafc !important;
}

html.dark .text-slate-800 {
  color: #f1f5f9 !important;
}

html.dark .text-slate-700 {
  color: #cbd5e1 !important;
}

html.dark .text-slate-600 {
  color: #94a3b8 !important;
}

html.dark .text-slate-500 {
  color: #64748b !important;
}

/* Borders */
html.dark .border-slate-200,
html.dark .border-slate-200\/90,
html.dark .border-slate-200\/80,
html.dark .border-slate-200\/60 {
  border-color: #1a2a47 !important;
}

html.dark .border-slate-100 {
  border-color: #131f38 !important;
}

html.dark .border-slate-300 {
  border-color: #24385a !important;
}

/* Soft Badges adaptation */
html.dark .bg-emerald-50 {
  background-color: rgba(16, 185, 129, 0.12) !important;
  color: #34d399 !important;
  border-color: rgba(16, 185, 129, 0.25) !important;
}

html.dark .text-emerald-700 {
  color: #34d399 !important;
}

html.dark .text-emerald-800 {
  color: #6ee7b7 !important;
}

html.dark .bg-cyan-50,
html.dark .bg-cyan-100 {
  background-color: rgba(6, 182, 212, 0.12) !important;
  color: #38bdf8 !important;
  border-color: rgba(6, 182, 212, 0.25) !important;
}

html.dark .text-cyan-800,
html.dark .text-cyan-700 {
  color: #38bdf8 !important;
}

html.dark .bg-amber-50,
html.dark .bg-amber-100 {
  background-color: rgba(245, 158, 11, 0.12) !important;
  color: #fbbf24 !important;
  border-color: rgba(245, 158, 11, 0.25) !important;
}

html.dark .text-amber-800,
html.dark .text-amber-700 {
  color: #fbbf24 !important;
}

html.dark .bg-purple-50,
html.dark .bg-purple-100 {
  background-color: rgba(168, 85, 247, 0.12) !important;
  color: #d8b4fe !important;
  border-color: rgba(168, 85, 247, 0.25) !important;
}

html.dark .text-purple-800 {
  color: #d8b4fe !important;
}

/* Form Inputs in Dark Mode */
html.dark input,
html.dark select,
html.dark textarea {
  background-color: #070d18 !important;
  color: #f8fafc !important;
  border-color: #1f3354 !important;
}

html.dark input:focus,
html.dark select:focus,
html.dark textarea:focus {
  border-color: #10b981 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2) !important;
}

html.dark input::placeholder,
html.dark textarea::placeholder {
  color: #64748b !important;
}

/* Modals & Drawer */
html.dark .drawer-panel {
  background-color: #091224 !important;
  border-left: 1px solid #1a2a47 !important;
  color: #f8fafc !important;
}

html.dark .modal-content {
  background-color: #091224 !important;
  border: 1px solid #1a2a47 !important;
  color: #f8fafc !important;
}

/* Filter buttons in Dark Mode */
html.dark .filter-btn:not(.active) {
  background-color: #0d172a !important;
  border-color: #1a2a47 !important;
  color: #94a3b8 !important;
}

html.dark .filter-btn.active {
  background-color: #10b981 !important;
  border-color: #10b981 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3) !important;
}

/* Navigation items in dark mode */
html.dark nav a {
  color: #cbd5e1;
}

html.dark nav a:hover {
  background-color: #16243d !important;
  color: #34d399 !important;
}

/* Theme Dropdown Menu */
/* Theme Dropdown & Split Toggle */
html.dark #theme-dropdown-container {
  background-color: #101c34 !important;
  border-color: #1a2a47 !important;
}

html.dark #theme-toggle-btn {
  color: #f1f5f9 !important;
}

html.dark #theme-toggle-btn:hover {
  color: #34d399 !important;
}

html.dark #theme-chevron-btn {
  color: #94a3b8 !important;
}

html.dark #theme-chevron-btn:hover {
  color: #ffffff !important;
}

#theme-dropdown-menu {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

html.dark #theme-dropdown-menu {
  background-color: #0c1629 !important;
  border-color: #1a2a47 !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6) !important;
}

html.dark .theme-menu-item {
  color: #cbd5e1 !important;
}

html.dark .theme-menu-item:hover {
  background-color: #132039 !important;
  color: #ffffff !important;
}

html.dark .theme-menu-item.active {
  background-color: rgba(16, 185, 129, 0.15) !important;
  color: #34d399 !important;
}

/* Mobile Theme Switcher Buttons */
.theme-btn-option.active {
  background-color: #ffffff;
  color: #059669;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

html.dark .theme-btn-option {
  color: #94a3b8 !important;
}

html.dark .theme-btn-option:hover {
  color: #ffffff !important;
}

html.dark .theme-btn-option.active {
  background-color: #0d172a !important;
  color: #34d399 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4) !important;
}

/* Scrollbar Dark Mode */
html.dark ::-webkit-scrollbar-track {
  background: #070d18;
}

html.dark ::-webkit-scrollbar-thumb {
  background: #1a2a47;
}

html.dark ::-webkit-scrollbar-thumb:hover {
  background: #27406c;
}

