/* Custom CSS for James Pitts Band Website */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700;800&display=swap');

/* Base Styles */
body {
    font-family: 'Inter', system-ui, sans-serif;
}

.font-display {
    font-family: 'Poppins', system-ui, sans-serif;
}

/* Custom Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Hero Video Background */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.8), rgba(30, 64, 175, 0.6));
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* Button Styles - Use standard Tailwind classes in HTML instead */

/* Card Styles - Use standard Tailwind classes in HTML instead */

/* Video Thumbnail Styles */
.video-thumbnail {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease;
    min-height: 120px; /* Ensure minimum touch target */
}

.video-thumbnail:hover {
    transform: scale(1.02);
}

/* Mobile video thumbnail improvements */
@media (max-width: 768px) {
    .video-thumbnail {
        min-height: 140px; /* Larger touch target on mobile */
    }
}

.video-thumbnail::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-thumbnail::before {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #1e40af;
    font-size: 24px;
    z-index: 1;
}

/* Package Card Styles - Use standard Tailwind classes in HTML instead */

/* Testimonial Styles - Use standard Tailwind classes in HTML instead */

/* Form Styles - Use standard Tailwind classes in HTML instead */

/* Mobile Menu */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    transform: translateY(-10px);
    opacity: 0;
}

.mobile-menu.active {
    max-height: 500px;
    transform: translateY(0);
    opacity: 1;
}

/* Mobile menu improvements */
@media (max-width: 768px) {
    .mobile-menu {
        transition: max-height 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    }
}

/* Trust Bar Animation */
.trust-bar {
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Loading States */
.loading {
    @apply animate-pulse bg-gray-200 rounded;
}

/* Responsive Video */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-responsive iframe,
.video-responsive video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Star Rating */
.star-rating {
    @apply flex text-gold-400;
}

.star-rating .star {
    @apply text-lg;
}

/* Availability Calendar */
.calendar-day {
    @apply w-11 h-11 flex items-center justify-center rounded-lg cursor-pointer transition-colors;
}

/* Mobile calendar improvements */
@media (max-width: 768px) {
    .calendar-day {
        @apply w-12 h-12 text-sm;
    }
}

.calendar-day.available {
    @apply bg-green-100 text-green-800 hover:bg-green-200;
}

.calendar-day.booked {
    @apply bg-red-100 text-red-800 cursor-not-allowed;
}

.calendar-day.hold {
    @apply bg-yellow-100 text-yellow-800 hover:bg-yellow-200;
}

/* Package Comparison */
.comparison-table {
    @apply w-full border-collapse;
}

.comparison-table th,
.comparison-table td {
    @apply border border-gray-200 px-4 py-3 text-left;
}

.comparison-table th {
    @apply bg-gray-50 font-semibold;
}

/* Social Proof Logos */
.logo-grid {
    @apply grid grid-cols-2 md:grid-cols-4 gap-8 items-center opacity-60;
}

.logo-item {
    @apply bg-gray-200 h-16 rounded-lg flex items-center justify-center;
}

/* CTA Buttons - Use standard Tailwind classes in HTML instead */

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-blues {
    background: linear-gradient(135deg, #1e3a8a, #1e40af, #2563eb);
}

/* Form Styles */
.form-input {
    @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blues-500 focus:border-transparent transition-all duration-200;
}

.form-label {
    @apply block text-sm font-medium text-gray-700 mb-2;
}

.btn-primary {
    @apply bg-blues-600 hover:bg-blues-700 text-white px-6 py-3 rounded-lg font-semibold transition-all duration-200;
}

.btn-outline {
    @apply border-2 border-blues-600 text-blues-600 hover:bg-blues-600 hover:text-white px-6 py-3 rounded-lg font-semibold transition-all duration-200;
}

/* Mobile-specific improvements */
@media (max-width: 768px) {
    .form-input {
        @apply text-base; /* Prevents zoom on iOS */
    }
    
    .mobile-menu {
        @apply shadow-lg;
    }
    
    /* Ensure touch targets are at least 44px */
    .mobile-menu a {
        @apply min-h-[44px] flex items-center;
    }
}

/* 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;
}

.focus\:not-sr-only:focus {
    position: static;
    width: auto;
    height: auto;
    padding: inherit;
    margin: inherit;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* Enhanced focus indicators */
*:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Skip links */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #1e40af;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-gray-50 {
        background-color: #ffffff;
    }
    
    .text-gray-600 {
        color: #000000;
    }
    
    .border-gray-300 {
        border-color: #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
}
