/* Custom CSS for purelogicium */

/* Font family override for Tailwind */
* {
    font-family: 'Open Sans', sans-serif;
}

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

/* Ensure proper font rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Ensure buttons and links have proper cursor */
button, 
a {
    cursor: pointer;
}

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

/* Form elements styling */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.1);
}

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

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

/* Prose content styling for better readability */
.prose h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.prose h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

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

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

/* Cookie banner styling */
#cookie-banner {
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Table styling for legal pages */
table {
    border-collapse: collapse;
    width: 100%;
}

table th,
table td {
    text-align: left;
    vertical-align: top;
}

/* Ensure proper spacing for icon boxes */
.icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Loading animation for form submission */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Print styles */
@media print {
    .no-print,
    header,
    footer,
    #cookie-banner,
    #cookie-modal {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    p, li {
        page-break-inside: avoid;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --color-primary: #000000;
        --color-secondary: #000000;
    }
    
    .bg-gray-50 {
        background-color: #ffffff;
        border: 1px solid #000000;
    }
    
    .bg-gray-100 {
        background-color: #ffffff;
        border: 1px solid #000000;
    }
}

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

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here if needed */
}

/* Ensure proper line height for better readability */
p, li {
    line-height: 1.6;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--color-secondary);
}
/* 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; }
