/* SEO and Performance Optimizations for Vehicle World */

/* Improve heading hierarchy for SEO */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
}

/* Schema.org microdata styling */
.microdata {
    display: none;
}

/* Improve link styling for better UX and SEO */
a {
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    text-decoration: underline;
}

/* Optimize images for better loading */
img {
    max-width: 100%;
    height: auto;
}

/* Improve button accessibility - Car Themed Styling */
.booking-btn {
    display: inline-block;
    padding: 18px 35px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%);
    color: white;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
    min-width: 260px;
    margin: 10px;
    font-size: 0.85rem;
    line-height: 1.3;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(52, 73, 94, 0.3);
    border: 2px solid transparent;
}

.booking-btn::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.5s;
}

.booking-btn:hover::before {
    left: 100%;
}

.booking-btn:hover {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 50%, #e74c3c 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(231, 76, 60, 0.4);
    color: white;
    text-decoration: none;
    border-color: #ffffff30;
}

.booking-btn:active {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.3);
}

/* Car-themed icons styling */
.booking-btn i {
    font-size: 1.1rem;
    margin-right: 10px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.booking-btn:hover i {
    transform: rotate(360deg) scale(1.1);
}

/* Special styling for each button type */
.booking-btn[href*="booking"] {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 50%, #27ae60 100%);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.3);
}

.booking-btn[href*="booking"]:hover {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 50%, #f39c12 100%);
    box-shadow: 0 15px 35px rgba(243, 156, 18, 0.4);
}

.booking-btn[href*="diagnosis"] {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 50%, #3498db 100%);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.booking-btn[href*="diagnosis"]:hover {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 50%, #9b59b6 100%);
    box-shadow: 0 15px 35px rgba(155, 89, 182, 0.4);
}

/* Car dashboard inspired styling */
.booking-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 15px;
    width: 6px;
    height: 6px;
    background: rgba(255,255,255,0.7);
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
    transition: all 0.3s ease;
}

.booking-btn:hover::after {
    background: rgba(255,255,255,1);
    box-shadow: 0 0 15px rgba(255,255,255,0.8);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: translateY(-50%) scale(1); opacity: 1; }
    50% { transform: translateY(-50%) scale(1.2); opacity: 0.7; }
    100% { transform: translateY(-50%) scale(1); opacity: 1; }
}

/* Car tire inspired border effect */
.booking-btn {
    position: relative;
}

.booking-btn::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.5s;
}

.booking-btn:hover::before {
    left: 100%;
}

.booking-btn:hover {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 50%, #e74c3c 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(231, 76, 60, 0.4);
    color: white;
    text-decoration: none;
    border-color: #ffffff30;
}

/* Button container improvements - Car Dashboard Theme */
.booking-btn-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.05) 0%, rgba(52, 73, 94, 0.05) 100%);
    border-radius: 15px;
    position: relative;
}

.booking-btn-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(39, 174, 96, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(52, 152, 219, 0.1) 0%, transparent 50%);
    border-radius: 15px;
    z-index: -1;
}

/* Search form styling to match car theme */
#searchForm {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.02) 0%, rgba(52, 73, 94, 0.02) 100%);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

/* Form group spacing for buttons */
#searchForm .form-group {
    margin-bottom: 1rem;
}

#searchForm .row {
    margin-left: -5px;
    margin-right: -5px;
}

#searchForm [class*="col-"] {
    padding-left: 5px;
    padding-right: 5px;
}

/* Ensure buttons have enough space */
.booking-btn i {
    font-size: 1.1rem;
    margin-right: 10px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

/* Car-themed responsive design improvements */
@media (max-width: 480px) {
    .booking-btn {
        font-size: 0.8rem;
        padding: 20px 25px;
        letter-spacing: 0.8px;
        min-width: 100%;
        margin: 12px 0;
        border-radius: 10px;
        line-height: 1.4;
    }
    
    .booking-btn i {
        margin-right: 8px;
        font-size: 1rem;
    }
}

/* Responsive car-themed button layout */
@media (max-width: 992px) {
    .booking-btn {
        min-width: 240px;
        font-size: 0.8rem;
        padding: 16px 28px;
        margin: 8px;
        border-radius: 10px;
    }
}

@media (max-width: 768px) {
    .booking-btn {
        width: 100%;
        max-width: 340px;
        margin: 12px auto;
        display: block;
        min-width: auto;
        padding: 20px 30px;
        font-size: 0.85rem;
        border-radius: 10px;
    }
    
    .booking-btn i {
        margin-right: 8px;
        font-size: 1rem;
    }
    
    .booking-btn-container {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
}

/* Improve focus states for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #17a2b8;
    outline-offset: 2px;
}

/* Service cards optimization */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Footer SEO improvements */
footer ul li {
    margin-bottom: 5px;
}

footer a {
    color: #ffffff;
    opacity: 0.9;
}

footer a:hover {
    opacity: 1;
    color: #17a2b8;
}

/* Breadcrumb styling for SEO */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    padding: 0 0.5rem;
    color: #6c757d;
}

/* Structured data containers */
.structured-data {
    display: none;
}

/* Performance optimizations */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Mobile-first responsive design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
}

/* Print styles for better SEO */
@media print {
    .no-print {
        display: none;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .text-muted {
        color: #000 !important;
    }
    
    .bg-light {
        background-color: #fff !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Skip link for accessibility */
.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;
}
