/* Umrah Packages London - Optimized CSS */
/* Mobile-First, Performance Optimized, SEO Friendly */

/* Performance Critical Styles */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    margin: 0;
    padding: 0;
}

/* Core Web Vitals Optimizations */
img {
    max-width: 100%;
    height: auto;
    content-visibility: auto;
}

.package-card {
    content-visibility: auto;
    contain-intrinsic-size: 400px;
}

/* Custom Gradient Classes for Brand Consistency */
.hero-gradient {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #06b6d4 100%);
}

.price-badge {
    background: linear-gradient(45deg, #dc2626, #ef4444);
}

.cta-gradient {
    background: linear-gradient(45deg, #059669, #10b981);
}

/* Interactive Elements */
.filter-btn.active {
    background-color: #059669 !important;
    color: white !important;
    border-color: #059669 !important;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-gradient h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-gradient p {
        font-size: 1.125rem;
    }
    
    .package-card {
        margin-bottom: 1.5rem;
    }
}

/* Enhanced Form Styling */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
    outline: none;
}

/* Loading Animation */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Bounce Animation */
@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translateY(0);
    }
    40%, 43% {
        transform: translateY(-30px);
    }
    70% {
        transform: translateY(-15px);
    }
    90% {
        transform: translateY(-4px);
    }
}

.animate-bounce {
    animation: bounce 2s infinite;
}

/* Enhanced Button Hover Effects */
.cta-gradient:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

button:focus {
    outline: 2px solid #059669;
    outline-offset: 2px;
}

/* Card Hover Effects */
.package-card:hover {
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.package-card:hover img {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Islamic Green Color Utilities */
.text-islamic-green {
    color: #059669;
}

.bg-islamic-green {
    background-color: #059669;
}

.border-islamic-green {
    border-color: #059669;
}

.text-islamic-navy {
    color: #1e3a8a;
}

.bg-islamic-navy {
    background-color: #1e3a8a;
}

.text-islamic-gold {
    color: #d97706;
}

.bg-islamic-gold {
    background-color: #d97706;
}

/* 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 Visible for Keyboard Navigation */
*:focus-visible {
    outline: 2px solid #059669;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .hero-gradient {
        background: #1e3a8a;
    }
    
    .text-blue-100 {
        color: #ffffff;
    }
}

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

/* Print Styles */
@media print {
    .fixed,
    .sticky {
        position: relative;
    }
    
    .no-print {
        display: none;
    }
    
    .package-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* Dark Mode Support (if needed) */
@media (prefers-color-scheme: dark) {
    /* Implement dark mode styles if required */
}

/* Performance: Reduce layout shifts */
.loading {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* WhatsApp Float Button Enhancements */
.fixed.bottom-6.right-6 {
    z-index: 1000;
    animation: pulse 2s infinite;
}

.fixed.bottom-6.left-6 {
    z-index: 1000;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

/* Sticky Header Enhancement */
header.fixed {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

/* Package Grid Responsive Enhancements */
@media (min-width: 640px) {
    #packages-grid {
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    #packages-grid {
        gap: 2.5rem;
    }
}

/* Enhanced Mobile Menu */
#mobile-menu {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #059669, #10b981);
    transform-origin: 0%;
    z-index: 9999;
}

/* Enhanced Package Features Display */
.package-features {
    max-height: 200px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #059669 #f3f4f6;
}

.package-features::-webkit-scrollbar {
    width: 4px;
}

.package-features::-webkit-scrollbar-track {
    background: #f3f4f6;
}

.package-features::-webkit-scrollbar-thumb {
    background: #059669;
    border-radius: 2px;
}

/* Enhanced Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: #1e3a8a;
}

p {
    line-height: 1.7;
    color: #4b5563;
}

/* Enhanced Link Styling */
a {
    color: #059669;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #047857;
    text-decoration: underline;
}

/* Modal Enhancements */
.modal-backdrop {
    backdrop-filter: blur(5px);
}

.modal-content {
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Enhanced Alert Styling */
.alert {
    animation: alertSlideIn 0.3s ease-out;
}

@keyframes alertSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Performance: GPU Acceleration for Animations */
.package-card,
.cta-gradient,
button {
    will-change: transform;
}

/* Enhanced Contact Form Styling */
.contact-form-container {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
}

/* Trust Indicators Styling */
.trust-indicator {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    padding: 1rem;
}

/* SEO-Optimized Image Loading */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Enhanced Price Display */
.price-display {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #059669;
    border-radius: 0.75rem;
    padding: 1rem;
}

/* Footer Enhancements */
footer {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
}

/* Optimized for Touch Devices */
@media (pointer: coarse) {
    button,
    .filter-btn,
    a {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Enhanced Responsive Typography */
@media (min-width: 1280px) {
    .hero-gradient h1 {
        font-size: 4rem;
    }
    
    .hero-gradient p {
        font-size: 1.5rem;
    }
}