/* Custom styles to complement Tailwind CSS */

/* Missing Tailwind classes for background colors */
.bg-gray-50 {
    background-color: #e5e7eb;
}

.bg-gray-100 {
    background-color: #f3f4f6;
}

.bg-gray-700 {
    background-color: #374151;
}

/* Custom colors for specific sections */
#products .bg-gray-700 {
    background-color: #262626;
}

.bg-gray-800 {
    background-color: #1f2937;
}

/* Sustainability section colors */
section.bg-gray-800 {
    background-color: #171717;
}

section.bg-gray-800 .bg-gray-700 {
    background-color: #262626;
}

/* Smooth transitions */
* {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

/* Focus styles */
input:focus,
textarea:focus,
button:focus {
    outline: none;
    ring: 2px;
    ring-color: rgb(59 130 246); /* blue-500 */
    ring-offset: 2px;
}

/* Form message animations */
.form-message {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Loading states */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Improved mobile responsive behavior */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    h1, h2, h3 {
        page-break-after: avoid;
    }

    img {
        max-width: 100% !important;
        height: auto !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;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

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

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

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

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