/**
 * EstatePortal.co.za - Executive Fiduciary & Forensic Platform Stylesheet
 * Brand Color Palette:
 *  - Primary Navy: #0B1B3D (Deep), #162C5B (Mid), #1E3A8A (Blue-Navy), #060F24 (Dark)
 *  - Interactive Sky: #F0F8FF (bg-sky-50), #E0F2FE (bg-sky-100), #0284C7 (sky-600)
 *  - Heritage Gold: #D97706 (Amber-600), #F59E0B (Amber-500), #C59B27 (Gold)
 *  - Emerald Verification: #059669 (Emerald-600), #10B981 (Emerald-500)
 */

:root {
  --brand-navy: #0B1B3D;
  --brand-navy-dark: #060F24;
  --brand-navy-light: #162C5B;
  --brand-blue: #1E3A8A;
  --brand-gold: #C59B27;
  --brand-gold-light: #E8BF4C;
  --brand-gold-dark: #997415;
  --brand-amber: #D97706;
  --brand-sky-light: #F0F8FF;
  --brand-sky-border: #BAE6FD;
}

/* Responsive Viewport Sizing & Box Model */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 124px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  padding: 0;
}

/* Ensure Sticky Header Actions & Dropdowns Are Always Visible */
#mainSiteHeader,
.navbar-container {
  overflow: visible !important;
}

h1, h2, h3, h4, .font-heading {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -0.02em;
}

.font-editorial {
  font-family: 'Merriweather', Georgia, serif;
}

/* Glassmorphism Accents */
.glass-panel {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.glass-sky {
  background: rgba(240, 248, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(186, 230, 253, 0.8);
}

.glass-navy {
  background: rgba(11, 27, 61, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Executive Gradients */
.gold-gradient {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 50%, #997415 100%);
}

.gold-gradient-text {
  background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 50%, #D97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.navy-hero-gradient {
  background: linear-gradient(135deg, rgba(11, 27, 61, 0.96) 0%, rgba(15, 41, 82, 0.93) 50%, rgba(11, 27, 61, 0.96) 100%);
}

.sky-gradient-card {
  background: linear-gradient(180deg, #F0F8FF 0%, #E8F4FD 100%);
}

/* Micro-Interactions & Elevate */
.card-hover {
  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.2s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 30px -10px rgba(11, 27, 61, 0.08), 0 8px 12px -6px rgba(11, 27, 61, 0.04);
}

.card-lift-sm:hover {
  transform: translateY(-2px);
}

/* Pulsing Status Badges */
.pulse-emerald {
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-emerald-anim 2s infinite;
}

@keyframes pulse-emerald-anim {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.pulse-gold {
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
  animation: pulse-gold-anim 2s infinite;
}

@keyframes pulse-gold-anim {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 7px rgba(245, 158, 11, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* Timeline & Stepper Aesthetics */
.timeline-stem {
  position: relative;
}

.timeline-stem::before {
  content: '';
  position: absolute;
  top: 40px;
  bottom: 20px;
  left: 27px;
  width: 3px;
  background: linear-gradient(180deg, #0284C7 0%, #38BDF8 50%, #E0F2FE 100%);
  border-radius: 9999px;
  z-index: 0;
}

@media (max-width: 640px) {
  .timeline-stem::before {
    left: 20px;
  }
}

/* Gravity Forms Wizard Styling */
.gf-step {
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.gf-step.hidden {
  display: none !important;
}

.gf-progress-bar {
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-condition-field] {
  transition: all 0.25s ease-in-out;
}

[data-condition-field].hidden {
  display: none !important;
}

/* Subtle Shimmer Effect for Loading and Live Badges */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.shimmer-badge {
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
}

/* Custom Refined Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #F1F5F9;
}

::-webkit-scrollbar-thumb {
  background: #94A3B8;
  border-radius: 9999px;
  border: 2px solid #F1F5F9;
}

::-webkit-scrollbar-thumb:hover {
  background: #64748B;
}

/* Button Spinner */
.spinner-spin {
  display: inline-block;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Two-Tier Executive Navigation & Mobile Drawer Aesthetics
   ========================================================================== */
.ep-nav-dropdown-wrapper {
  position: relative;
}

.ep-dropdown-panel {
  display: none !important;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 9999;
}

.ep-dropdown-panel-right {
  left: auto !important;
  right: 0 !important;
}

.ep-dropdown-panel.is-open {
  display: block !important;
  animation: epDropdownFadeIn 0.18s ease-out forwards;
}

@keyframes epDropdownFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile Drawer Smooth Slide Transitions */
#mobileNavDrawer {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#mobileDrawerBackdrop {
  transition: opacity 0.3s ease-in-out;
}

