/* Custom CSS - Navy & Gold Law Firm Theme */

/* Base styles */
body, h1, h2, h3, h4, h5, h6, p, a, span, div {
    font-family: 'Saira', sans-serif;
}

/* Custom animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Custom button styles */
.btn-primary {
    background-color: #0A2240;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}
.btn-primary:hover {
    background-color: #061829;
}

.btn-secondary {
    background-color: #C5A55A;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}
.btn-secondary:hover {
    background-color: #B8960B;
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}
.card-hover:hover {
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    transform: translateY(-4px);
}

/* Gradient backgrounds */
.gradient-primary {
    background: linear-gradient(135deg, #0A2240 0%, #061829 100%);
}

.gradient-secondary {
    background: linear-gradient(135deg, #C5A55A 0%, #0A2240 100%);
}

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

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

::-webkit-scrollbar-thumb {
    background: #0A2240;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #061829;
}

/* Loading animation */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #0A2240;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Form styles */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    outline: none;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: #0A2240;
    box-shadow: 0 0 0 2px rgba(10, 34, 64, 0.2);
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

/* Navigation styles */
.nav-link {
    color: white;
    font-weight: 700;
    transition: color 0.3s ease;
}
.nav-link:hover {
    color: #C5A55A;
}

.nav-link-sticky {
    color: #374151;
    transition: color 0.3s ease;
}
.nav-link-sticky:hover {
    color: #0A2240;
}

/* Hero section styles */
.hero-bg {
    background-image: url('../images/main-slider/1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Partner logo styles */
.partner-logo {
    height: 2.5rem;
    width: auto;
    object-fit: contain;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}
.partner-logo:hover {
    opacity: 1;
}

/* Footer styles */
.footer-link {
    color: #d1d5db;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}
.footer-link:hover {
    color: white;
}

/* ============================================================
   Tailwind Arbitrary Value Classes - Navy & Gold Color System
   ============================================================
   These replace the compiled Tailwind JIT classes for the new
   color palette since the build system is not available.
   ============================================================ */

/* --- Background Colors --- */
.bg-\[\#0A2240\] { background-color: #0A2240 !important; }
.bg-\[\#C5A55A\] { background-color: #C5A55A !important; }
.bg-\[\#061829\] { background-color: #061829 !important; }
.bg-\[\#050E1A\] { background-color: #050E1A !important; }
.bg-\[\#0D2E52\] { background-color: #0D2E52 !important; }

/* --- Text Colors --- */
.text-\[\#0A2240\] { color: #0A2240 !important; }
.text-\[\#C5A55A\] { color: #C5A55A !important; }
.text-\[\#061829\] { color: #061829 !important; }

/* --- Border Colors --- */
.border-\[\#0D2E52\] { border-color: #0D2E52 !important; }
.border-\[\#0A2240\] { border-color: #0A2240 !important; }
.border-\[\#C5A55A\] { border-color: #C5A55A !important; }

/* --- Hover: Background Colors --- */
.hover\:bg-\[\#0D2E52\]:hover { background-color: #0D2E52 !important; }
.hover\:bg-\[\#061829\]:hover { background-color: #061829 !important; }
.hover\:bg-\[\#0A2240\]:hover { background-color: #0A2240 !important; }

/* --- Hover: Text Colors --- */
.hover\:text-\[\#C5A55A\]:hover { color: #C5A55A !important; }
.hover\:text-\[\#0A2240\]:hover { color: #0A2240 !important; }

/* --- Focus: Text Colors --- */
.focus\:text-\[\#C5A55A\]:focus { color: #C5A55A !important; }
.focus\:text-\[\#0A2240\]:focus { color: #0A2240 !important; }

/* --- Focus: Ring Colors --- */
.focus\:ring-\[\#0A2240\]:focus {
    outline: none;
    box-shadow: 0 0 0 2px white, 0 0 0 4px #0A2240;
}

/* --- Gradients --- */
.from-\[\#0A2240\] {
    --tw-gradient-from: #0A2240;
    --tw-gradient-to: rgba(10, 34, 64, 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.to-\[\#061829\] {
    --tw-gradient-to: #061829;
}

/* --- Additional Hover Background Colors --- */
.hover\:bg-\[\#B8960B\]:hover { background-color: #B8960B !important; }

/* --- Opacity Background Variants --- */
.bg-\[\#C5A55A\]\/20 { background-color: rgba(197, 165, 90, 0.2) !important; }
.bg-\[\#C5A55A\]\/10 { background-color: rgba(197, 165, 90, 0.1) !important; }
.bg-\[\#0A2240\]\/10 { background-color: rgba(10, 34, 64, 0.1) !important; }
.bg-\[\#0A2240\]\/90 { background-color: rgba(10, 34, 64, 0.9) !important; }
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.1) !important; }
.hover\:bg-white\/10:hover { background-color: rgba(255, 255, 255, 0.1) !important; }
.border-white\/20 { border-color: rgba(255, 255, 255, 0.2) !important; }
.border-white\/30 { border-color: rgba(255, 255, 255, 0.3) !important; }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1) !important; }

/* --- Backdrop Blur --- */
.backdrop-blur-sm { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }

/* --- White with opacity variants --- */
.bg-white\/15 { background-color: rgba(255, 255, 255, 0.15) !important; }
.text-white\/90 { color: rgba(255, 255, 255, 0.9) !important; }
.bg-black\/60 { background-color: rgba(0, 0, 0, 0.6) !important; }

/* --- About Section Tabs --- */
.about-tab-panel { transition: opacity 0.3s ease; }
.about-tab-btn { cursor: pointer; background: none; }
.about-tab-btn:hover { color: #0A2240 !important; }

/* --- Transform / Translate --- */
.hover\:-translate-y-1:hover { transform: translateY(-0.25rem) !important; }
.group:hover .group-hover\:translate-x-1 { transform: translateX(0.25rem) !important; }
.group:hover .group-hover\:bg-\[\#C5A55A\] { background-color: #C5A55A !important; }

/* --- Dropdown Menu --- */
.dropdown-container .dropdown-menu {
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
}
.dropdown-container .dropdown-menu.opacity-100,
.dropdown-container .dropdown-menu.visible {
    pointer-events: auto;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Focus styles for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #0A2240;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .container {
        width: 100% !important;
        max-width: none !important;
    }
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .text-gray-600 {
        color: #111827;
    }
    
    .text-gray-300 {
        color: white;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

