/* Meridian Motors - Custom Styles */

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Global Typography */
body {
    font-family: 'IBM Plex Sans', sans-serif;
}

/* Mobile Navigation Styles */
#mobile-menu {
    transition: opacity 0.3s ease;
}

#burger-menu {
    cursor: pointer;
    transition: color 0.3s ease;
}

#burger-menu:hover {
    color: #0D47A1;
}

/* Navigation Active States */
nav a.active {
    color: #0D47A1;
    font-weight: 500;
}

/* Button Hover Effects */
button {
    transition: all 0.3s ease;
}

a {
    transition: color 0.3s ease;
}

/* Form Input Focus States */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #0D47A1;
    box-shadow: 0 0 0 2px rgba(13, 71, 161, 0.1);
}

/* Cookie Modal Styles */
#cookie-modal {
    transition: opacity 0.3s ease;
}

/* Card Hover Effects */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Team Avatar Styles */
.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #0D47A1 0%, #2E7D32 100%);
}

/* Testimonial Avatar Styles */
.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #0D47A1 0%, #2E7D32 100%);
}

/* Star Rating Styles */
.star-rating {
    color: #FFC107;
}

/* FAQ Accordion Styles */
.faq-question {
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #ECEFF1;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer.active {
    max-height: 500px;
}

/* Cookie Toggle Styles */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .cookie-slider {
    background-color: #2E7D32;
}

input:checked + .cookie-slider:before {
    transform: translateX(24px);
}

input:disabled + .cookie-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Browser Instructions Collapsible */
.browser-section {
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.browser-section:hover {
    background-color: #f5f5f5;
}

.browser-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.browser-content.active {
    max-height: 400px;
}

/* Image Styles */
img {
    max-width: 100%;
    height: auto;
}

/* Hero Image Styles */
.hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

@media (min-width: 768px) {
    .hero-image {
        height: 500px;
    }
}

/* Service Card Styles */
.service-card {
    transition: box-shadow 0.3s ease;
}

.service-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Solution Image Styles */
.solution-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* Comparison Table Styles */
.comparison-table {
    overflow-x: auto;
}

.comparison-table table {
    min-width: 600px;
}

/* Mobile Menu Overlay */
@media (max-width: 767px) {
    #mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: white;
        z-index: 1000;
        padding: 80px 20px 20px;
        overflow-y: auto;
    }
}

/* Link Underline Effect */
.link-underline {
    position: relative;
}

.link-underline::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #0D47A1;
    transition: width 0.3s ease;
}

.link-underline:hover::after {
    width: 100%;
}

/* Map Container */
.map-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #2E7D32;
    color: white;
    padding: 16px 24px;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transition: opacity 0.3s ease;
}

/* Partner Banks Grid */
.partner-banks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

/* Responsive Utilities */
@media (max-width: 640px) {
    .hero-image {
        height: 300px;
    }
    
    .team-avatar {
        width: 100px;
        height: 100px;
        font-size: 2rem;
    }
}

/* Print Styles */
@media print {
    header,
    footer,
    #cookie-modal,
    .no-print {
        display: none !important;
    }
}

/* Accessibility */
*:focus {
    outline: 2px solid #0D47A1;
    outline-offset: 2px;
}

button:focus,
a:focus {
    outline: 2px solid #0D47A1;
    outline-offset: 2px;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Error States */
.error-message {
    color: #C62828;
    font-size: 0.875rem;
    margin-top: 4px;
}

/* Success States */
.success-message {
    color: #2E7D32;
    font-size: 0.875rem;
    margin-top: 4px;
}
