/* ==========================================================================
   Viking Corporate Security - Custom Styling, Animations & Print Rules
   Brand Colors:
   - Primary Deep Navy: #0A1128
   - Secondary Slate:   #1E293B / #0F172A
   - Accent Gold:       #F59E0B / #D97706
   - High-Vis Amber:    #FBBF24
   - Border Slate:      #334155
   ========================================================================== */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
body {
  background-color: #F8FAFC;
}

::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-track {
  background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #F59E0B;
}

/* Glassmorphism & Executive Card Classes */
.glass-panel {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.executive-card {
  background: #FFFFFF;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 1rem;
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.03);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.executive-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.65);
  box-shadow: 0 12px 24px -5px rgba(0, 0, 0, 0.08);
}

.glass-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 16px 30px -10px rgba(0, 0, 0, 0.08);
}

/* Hero Gradient & Mesh */
.hero-gradient {
  background: radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.12) 0%, transparent 45%),
              radial-gradient(circle at 10% 80%, rgba(30, 58, 138, 0.25) 0%, transparent 50%),
              #0A1128;
}

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

/* Pulsing Live Operational Indicator */
@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.live-pulse {
  animation: pulse-ring 2s infinite cubic-bezier(0.45, 0, 0.55, 1);
}

/* Gold Button Glow Effect */
.btn-gold {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #0A1128;
  font-weight: 700;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.45);
  background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
}

.btn-gold:active {
  transform: translateY(0);
}

/* Gallery Grid & Hover Zoom */
/* Gallery Interactive Cards (Hover-Reveal Design) */
.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background-color: #0F172A;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card:hover img {
  transform: scale(1.06);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 17, 40, 0.94) 0%,
    rgba(10, 17, 40, 0.65) 45%,
    rgba(10, 17, 40, 0.15) 100%
  );
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
  pointer-events: none;
}

.gallery-card:hover .gallery-overlay,
.gallery-card:focus-within .gallery-overlay {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* On touch devices without hover, provide a gentle bottom fade */
@media (hover: none) {
  .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
    background: linear-gradient(
      to top,
      rgba(10, 17, 40, 0.90) 0%,
      rgba(10, 17, 40, 0.35) 40%,
      transparent 70%
    );
  }
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(5, 10, 25, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.lightbox-modal.active {
  display: flex;
  animation: fadeIn 0.25s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: #1E293B;
  color: #FFFFFF;
  border-left: 4px solid #F59E0B;
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 380px;
  animation: slideInRight 0.3s ease-out;
}

.toast.toast-success {
  border-left-color: #10B981;
}

.toast.toast-error {
  border-left-color: #EF4444;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Print Stylesheet for Official Quotation Export */
@media print {
  body * {
    visibility: hidden;
  }
  #printableQuoteModal, #printableQuoteModal * {
    visibility: visible;
  }
  #printableQuoteModal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 20px;
    background: #FFFFFF !important;
    color: #000000 !important;
  }
  .no-print {
    display: none !important;
  }
}

/* ==========================================================================
   Solid High-Visibility & Accessible Form Fields (WCAG 2.1 Compliant)
   High contrast (4.6:1+), solid 2px borders for <input>, <textarea>, and <select>
   across all admin panels, modals, search bars, and public forms.
   ========================================================================== */

/* Universal Solid Form Inputs */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="search"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input:not([type]),
textarea,
select,
.form-input-solid {
  border: 2px solid #64748B !important; /* Solid Slate-500: >4.5:1 WCAG AA/AAA contrast ratio against white */
  background-color: #FFFFFF !important;
  color: #0F172A !important;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
}

/* Hover State - Solid Slate-700 */
input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
input[type="tel"]:hover,
input[type="url"]:hover,
input[type="number"]:hover,
input[type="search"]:hover,
input[type="date"]:hover,
input[type="time"]:hover,
input[type="datetime-local"]:hover,
input:not([type]):hover,
textarea:hover,
select:hover,
.form-input-solid:hover {
  border-color: #334155 !important; /* Solid Slate-700 on hover */
}

/* Focus State - Viking Gold / Amber-600 with prominent accessibility focus ring */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="datetime-local"]:focus,
input:not([type]):focus,
textarea:focus,
select:focus,
.form-input-solid:focus {
  border-color: #D97706 !important; /* High-contrast Amber-600 */
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.28) !important;
  outline: none !important;
  background-color: #FFFFFF !important;
}

/* Checkbox & Radio Buttons */
input[type="checkbox"],
input[type="radio"] {
  border: 2px solid #64748B !important;
  accent-color: #D97706 !important;
}

/* Dark Login Form Exemption */
body.bg-\[\#0A1128\] input[type="email"],
body.bg-\[\#0A1128\] input[type="password"],
.bg-slate-900 input[type="email"],
.bg-slate-900 input[type="password"],
.bg-slate-950 input[type="email"],
.bg-slate-950 input[type="password"] {
  border: 2px solid #475569 !important;
  background-color: #020617 !important;
  color: #FFFFFF !important;
}

body.bg-\[\#0A1128\] input[type="email"]:focus,
body.bg-\[\#0A1128\] input[type="password"]:focus,
.bg-slate-900 input[type="email"]:focus,
.bg-slate-900 input[type="password"]:focus {
  border-color: #F59E0B !important;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.35) !important;
}

/* Multi-line clamp utility */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-4 {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Hide scrollbar for smooth touch carousels & tabs */
.no-scrollbar::-webkit-scrollbar,
.scrollbar-none::-webkit-scrollbar {
  display: none;
}
.no-scrollbar,
.scrollbar-none {
  -ms-overflow-style: none;
  scrollbar-width: none;
}




