/* Custom styles for Widebridgeium website */

/* CSS Variables */
:root {
    --color-primary: #2563eb;
    --color-secondary: #64748b;
    --color-accent: #f59e0b;
}

/* Base styles */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

/* Custom component styles */
.font-inter {
    font-family: 'Inter', sans-serif;
}

/* Button hover effects */
.btn-primary {
    background-color: var(--color-primary);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    opacity: 0.9;
}

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    ring: 2px;
    ring-color: var(--color-primary);
    border-color: var(--color-primary);
}

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

/* Custom accordion styles */
.accordion-item {
    transition: all 0.2s ease;
}

.accordion-content {
    transition: all 0.3s ease;
    overflow: hidden;
}

.accordion-content.active {
    display: block;
}

.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion-icon.rotated {
    transform: rotate(180deg);
}

/* Mobile menu animation */
#mobile-menu {
    transition: all 0.3s ease;
}

/* Cookie banner styles */
#cookie-banner {
    transition: all 0.3s ease;
}

#cookie-modal {
    backdrop-filter: blur(4px);
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Form validation styles */
.form-error {
    border-color: #ef4444;
    ring-color: #ef4444;
}

.form-success {
    border-color: #10b981;
    ring-color: #10b981;
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--color-secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    header,
    footer,
    #cookie-banner,
    #cookie-modal {
        display: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --color-primary: #1d4ed8;
        --color-secondary: #374151;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus visible for better accessibility */
.focus-visible:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Custom table styles */
table {
    border-collapse: collapse;
}

table th,
table td {
    border: 1px solid #e5e7eb;
}

/* Image optimization */
img {
    height: auto;
    max-width: 100%;
}

/* Skip to content link for accessibility */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--color-primary);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.skip-to-content:focus {
    top: 6px;
}

/* Custom prose styles for legal pages */
.prose h1 {
    color: #111827;
    font-weight: 700;
}

.prose h2 {
    color: #111827;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.prose h3 {
    color: #374151;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.prose p {
    margin-bottom: 1rem;
}

.prose ul {
    margin-bottom: 1rem;
}

.prose li {
    margin-bottom: 0.25rem;
}

/* Responsive design enhancements */
@media (max-width: 640px) {
    .mobile-stack {
        flex-direction: column;
    }
    
    .mobile-full {
        width: 100%;
    }
}

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles would go here */
}
/* Cookie banner visibility — independent of Tailwind */
#cookie-banner.hidden, #cookie-consent-banner.hidden { display: none !important; }
#cookie-banner:not(.hidden), #cookie-consent-banner:not(.hidden) { display: block !important; }
#cookie-modal.hidden { display: none !important; }
