/* Meridian Endodontics Enhanced Styles */
/* Supporting Phase 1 Components */

/* Import Font Awesome for icons */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #1f2937;
}

/* Responsive Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Button Styles */
.btn-primary {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(135deg, #0d9488, #0f766e);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    background: transparent;
    color: #0d9488;
    text-decoration: none;
    border: 2px solid #0d9488;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background: #0d9488;
    color: white;
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 4px 12px;
    background: #e0f2fe;
    color: #0277bd;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
}

/* Provider Cards */
.provider-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.provider-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.provider-card img {
    border: 4px solid #f3f4f6;
    transition: border-color 0.3s ease;
}

.provider-card:hover img {
    border-color: #0d9488;
}

/* Service Cards */
.service-card {
    padding: 40px 30px;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: white;
}

.service-card:hover {
    border-color: #0d9488;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(13, 148, 136, 0.2);
}

.service-card i {
    transition: transform 0.3s ease;
}

.service-card:hover i {
    transform: scale(1.1);
}

/* Testimonials */
.testimonial {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 30px;
    font-size: 80px;
    color: #e5e7eb;
    font-family: Georgia, serif;
}

/* Trust Indicators */
.trust-section {
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
}

.trust-item {
    font-size: 0.95em;
    transition: transform 0.3s ease;
}

.trust-item:hover {
    transform: scale(1.05);
}

/* Hero Section Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section h1,
.hero-section p,
.hero-section .cta-buttons {
    animation: fadeInUp 0.8s ease forwards;
}

.hero-section h1 { animation-delay: 0.2s; }
.hero-section p { animation-delay: 0.4s; }
.hero-section .cta-buttons { animation-delay: 0.6s; }

/* Emergency CTA Pulse Animation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.emergency-cta {
    animation: pulse 2s infinite;
}

/* Modal Styles */
#booking-modal {
    backdrop-filter: blur(5px);
}

#booking-modal > div {
    animation: modalSlideIn 0.3s ease;
}

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

/* Form Styles */
input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

/* Chat Widget */
#live-chat-widget button {
    animation: chatPulse 2s infinite;
}

@keyframes chatPulse {
    0% { box-shadow: 0 4px 20px rgba(13, 148, 136, 0.2); }
    50% { box-shadow: 0 4px 30px rgba(13, 148, 136, 0.4); }
    100% { box-shadow: 0 4px 20px rgba(13, 148, 136, 0.2); }
}

/* Rating Stars */
.rating {
    color: #fbbf24;
    font-size: 1.1em;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2em;
    }

    .hero-section p {
        font-size: 1em;
    }

    .provider-card {
        padding: 20px;
    }

    .service-card {
        padding: 30px 20px;
    }

    .trust-section > div {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    #booking-modal > div {
        width: 95%;
        padding: 30px 20px;
    }

    .cta-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons button,
    .cta-buttons a {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .provider-card,
    .service-card,
    .testimonial {
        margin: 0 -15px;
        border-radius: 0;
    }

    .trust-section > div {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    .emergency-cta,
    #live-chat-widget,
    #booking-modal {
        display: none !important;
    }

    .hero-section,
    .trust-section {
        background: white !important;
        color: black !important;
    }
}

/* Accessibility */
.visually-hidden {
    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 */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .service-card {
        border-width: 3px;
    }

    .btn-primary {
        border: 2px solid black;
    }
}

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