/*
Theme Name: Dar al Ahsan Travel and Tourism - Child
Theme URI: https://daralahsan.com
Author: Dar al Ahsan Development Team
Author URI: https://daralahsan.com
Description: Child theme for Dar al Ahsan Travel and Tourism. Customize this child theme to safely modify the parent theme without losing changes during updates.
Version: 1.0.0
Template: daral-ahsan
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: daral-ahsan-child
Domain Path: /languages
Tags: car-rental, dubai, luxury, tourism, responsive, seo-friendly, high-performance, child-theme
*/

/* Child Theme Custom Styles */

/* Override or add custom styles here */

/* Custom color scheme variations */
:root {
    --primary-color: #3aa64c;
    --primary-dark: #2e8f3e;
    --secondary-color: #667eea;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
}

/* Enhanced header styles */
.header-child {
    background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(248,250,252,0.98));
    border-bottom: 1px solid var(--border-color);
}

.header-child .logo-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    box-shadow: 0 4px 15px rgba(58, 166, 76, 0.3);
}

/* Enhanced hero section */
.hero-child {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 50%, var(--secondary-color) 100%);
}

.hero-child .hero-title {
    background: linear-gradient(135deg, #ffffff, #f0fdf4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Enhanced car cards */
.car-card-child {
    background: linear-gradient(135deg, var(--bg-white), var(--bg-light));
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.car-card-child:hover {
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.12);
    transform: translateY(-15px) scale(1.02);
}

/* Enhanced pricing table */
.pricing-table-child {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 2px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.pricing-table-child::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(58, 166, 76, 0.1), transparent);
    transition: left 0.8s ease;
}

.pricing-table-child:hover::before {
    left: 100%;
}

/* Enhanced contact section */
.contact-section-child {
    background: linear-gradient(135deg, #1f2937, #111827);
    position: relative;
}

.contact-section-child::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(58,166,76,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

/* Enhanced WhatsApp button */
.whatsapp-float-child {
    background: linear-gradient(135deg, #25d366, #128c7e);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
    }
    100% {
        box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    }
}

.whatsapp-float-child:hover {
    animation: none;
    transform: scale(1.15);
    box-shadow: 0 20px 50px rgba(37, 211, 102, 0.6);
}

/* Enhanced CTA buttons */
.cta-button-child {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cta-button-child::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.cta-button-child:hover::before {
    left: 100%;
}

.cta-button-child:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(58, 166, 76, 0.5);
}

/* Enhanced form styles */
.booking-form-child input,
.booking-form-child select,
.booking-form-child textarea {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.booking-form-child input:focus,
.booking-form-child select:focus,
.booking-form-child textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(58, 166, 76, 0.1);
    outline: none;
    transform: translateY(-1px);
}

/* Enhanced navigation */
.nav-menu-child a {
    position: relative;
    transition: all 0.3s ease;
}

.nav-menu-child a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu-child a:hover::after {
    width: 100%;
}

.nav-menu-child a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Enhanced mobile menu */
.mobile-menu-toggle-child {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-toggle-child:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(58, 166, 76, 0.3);
}

/* Enhanced loading animations */
.loading-child {
    position: relative;
    overflow: hidden;
}

.loading-child::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Enhanced accessibility */
.sr-only-child {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for keyboard navigation */
.cta-button-child:focus,
.nav-menu-child a:focus,
.booking-form-child input:focus,
.booking-form-child select:focus,
.booking-form-child textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Enhanced print styles */
@media print {
    .header-child,
    .footer-child,
    .whatsapp-float-child {
        display: none !important;
    }
    
    .hero-child {
        background: none !important;
        color: #000 !important;
    }
    
    .car-card-child {
        box-shadow: none !important;
        border: 1px solid #000 !important;
        break-inside: avoid;
    }
}

/* Enhanced dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-dark: #f9fafb;
        --text-light: #d1d5db;
        --bg-light: #1f2937;
        --bg-white: #111827;
        --border-color: #374151;
    }
    
    .header-child {
        background: linear-gradient(135deg, rgba(17, 24, 39, 0.98), rgba(31, 41, 55, 0.98));
    }
    
    .car-card-child {
        background: linear-gradient(135deg, var(--bg-white), var(--bg-light));
        color: var(--text-dark);
    }
}

/* Enhanced reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .cta-button-child,
    .nav-menu-child a,
    .car-card-child,
    .whatsapp-float-child {
        transition: none !important;
        animation: none !important;
    }
    
    .cta-button-child::before,
    .pricing-table-child::before {
        animation: none !important;
        transition: none !important;
    }
}

/* Enhanced high contrast mode support */
@media (prefers-contrast: high) {
    .cta-button-child {
        border: 2px solid currentColor;
    }
    
    .pricing-table-child {
        border-width: 3px;
    }
    
    .nav-menu-child a::after {
        height: 3px;
    }
}

/* Custom utility classes for child theme */
.gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.gradient-secondary {
    background: linear-gradient(135deg, var(--secondary-color), #5a67d8);
}

.shadow-luxury {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.border-luxury {
    border: 2px solid;
    border-image: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) 1;
}