/* Simple Custom Styles for Berenice Lee Counselling Website */

/* Custom animations and additional styles */
.fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

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

.hover-lift:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

.smooth-scroll {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
input:focus,
textarea:focus,
select:focus,
button:focus {
    outline: none !important;
    ring: 2px solid #6b7280 !important;
    ring-offset: 2px !important;
}

/* Custom button styles */
.btn-primary {
    background-color: #1f2937;
    color: white;
    padding: 12px 32px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-primary:hover {
    background-color: #111827;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    color: #374151;
    padding: 12px 32px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-secondary:hover {
    background-color: #f9fafb;
    transform: translateY(-1px);
}

/* Dark mode buttons */
.dark .btn-primary {
    background-color: #222222 !important;
    color: #ffffff !important;
}
.dark .btn-primary:hover {
    background-color: #2e2e2e !important;
}
.dark .btn-secondary {
    color: #d1d5db !important;
    border-color: #444444 !important;
}
.dark .btn-secondary:hover {
    background-color: #1a1a1a !important;
}

/* Form styles */
.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    border-color: #6b7280;
    box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.1);
}

/* Mobile responsiveness helpers */
@media (max-width: 768px) {
    .mobile-hidden {
        display: none;
    }
    
    .text-responsive {
        font-size: 1.5rem;
    }
    
    .padding-mobile {
        padding: 1rem;
    }
}

/* Utility classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.rounded { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }

.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }

/* Color utilities */
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-white { background-color: white; }
.bg-gray-900 { background-color: #111827; }

.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-900 { color: #111827; }
.text-white { color: white; }

/* Professional counselling specific styles */
.counselling-quote {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-left: 4px solid #6b7280;
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 0 8px 8px 0;
}

.service-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.qualification-card {
    border: 1px solid #e5e7eb;
    transition: border-color 0.3s ease;
}

.qualification-card:hover {
    border-color: #9ca3af;
}

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

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid white;
    }
    
    .btn-secondary {
        border: 2px solid #1f2937;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none;
    }
    
    body {
        color: black !important;
        background: white !important;
    }
}

/* Dark mode overrides (global) */
.dark body {
    background-color: #000000 !important;
    color: #e5e7eb !important;
}
.dark header {
    background-color: #000000 !important;
    color: #e5e7eb !important;
}
.dark footer {
    background-color: #000000 !important;
    color: #e5e7eb !important;
}
.dark .bg-gray-900 {
    background-color: #000000 !important;
}
.dark :not(body).bg-white,
.dark :not(body).bg-gray-50,
.dark :not(body).bg-gray-100 {
    background-color: #0f0f10 !important;
}
/* Ensure body stays pure black even if it has a bg-* utility */
.dark body.bg-white,
.dark body.bg-gray-50,
.dark body.bg-gray-100 {
    background-color: #000000 !important;
}
.dark .text-gray-900,
.dark .text-gray-700,
.dark .text-gray-600,
.dark .text-gray-400,
.dark .text-gray-300,
.dark .text-white {
    color: #e5e7eb !important;
}
.dark .border-gray-100,
.dark .border-gray-200,
.dark .border-gray-300,
.dark .border-gray-700,
.dark .border-gray-800,
.dark .border-gray-50 {
    border-color: #2f2f2f !important;
}
.dark .hover\:bg-gray-50:hover,
.dark .hover\:bg-gray-100:hover {
    background-color: #1a1a1a !important;
}
.dark .shadow-sm,
.dark .shadow,
.dark .shadow-lg {
    box-shadow: none !important;
}

/* Dark mode: cards and borders */
.dark .service-card,
.dark .qualification-card,
.dark .prose .bg-white,
.dark .prose .bg-gray-50,
.dark .bg-white.rounded-xl,
.dark .bg-white.rounded-lg,
.dark .bg-white.p-6,
.dark .bg-white.p-8 {
    background-color: #111111 !important; /* dark gray cards */
    border-color: #333333 !important;
}
/* Dark mode: replace white table divide lines with dark gray for specific tables */
.dark .divide-gray-100 > :not([hidden]) ~ :not([hidden]) {
    border-color: #2f2f2f !important;
}

/* Dark mode: links in footer / quick links */
.dark footer a {
    color: #9ca3af !important;
}
.dark footer a:hover {
    color: #ffffff !important;
}

/* Dark mode: SVG icon color */
.dark svg {
    color: #cbd5e1;
}
