/* Custom CSS for Top Tier Lessons Camp Operations Site */

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

/* Focus styles for accessibility */
*:focus {
    outline: 2px solid #B91C1C;
    outline-offset: 2px;
}

/* Custom container utility */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Custom gradient backgrounds */
.gradient-primary {
    background: linear-gradient(135deg, #FEF2F2 0%, #ffffff 50%, #FFF7ED 100%);
}

.gradient-secondary {
    background: linear-gradient(135deg, #EFF6FF 0%, #ffffff 50%, #F0F9FF 100%);
}

/* Button hover effects */
.btn-primary {
    background-color: #B91C1C;
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in-out;
    min-width: 44px;
    min-height: 44px;
}

.btn-primary:hover {
    background-color: #991B1B;
    transform: translateY(-1px);
    box-shadow: 0 10px 25px -5px rgba(185, 28, 28, 0.3);
}

.btn-secondary {
    border: 2px solid #D1D5DB;
    color: #374151;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in-out;
    min-width: 44px;
    min-height: 44px;
}

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

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease-in-out;
}

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

/* FAQ accordion styles */
.faq-question svg {
    transition: transform 0.2s ease-in-out;
}

.faq-question[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.faq-answer {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 200px;
    }
}

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

#mobile-menu.show {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

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

/* Ensure proper text contrast */
.text-contrast {
    color: #111827;
}

/* Loading states for images */
img[loading="lazy"] {
    transition: opacity 0.3s ease-in-out;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-gradient-to-br,
    .bg-gradient-to-r {
        background: white !important;
        border: 2px solid #000 !important;
    }
    
    .text-gray-600 {
        color: #000 !important;
    }
}

/* 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;
    }
}

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

/* Ensure minimum tap target sizes on mobile */
@media (max-width: 768px) {
    button,
    a,
    input,
    select,
    textarea {
        min-height: 44px;
        min-width: 44px;
    }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #991B1B;
}

/* Selection styles */
::selection {
    background-color: #B91C1C;
    color: white;
}

::-moz-selection {
    background-color: #B91C1C;
    color: white;
}
