/* Custom CSS for MedStop Medical Group */

:root {
    --primary-color: #2563eb;
    --secondary-color: #10b981;
    --success-color: #059669;
    --info-color: #0891b2;
    --warning-color: #d97706;
    --danger-color: #dc2626;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --white: #ffffff;
    --border-radius: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Typography */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    line-height: 1.2;
}

.display-4 {
    font-weight: 700;
}

/* Navigation */
.navbar {
    padding-top: 1rem;
    padding-bottom: 1rem;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    padding-top: 80px;
    padding-bottom: 50px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
    display: flex;
    align-items: center;
}

/* Page Header */
.page-header {
    padding-top: 120px;
    padding-bottom: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* Service Cards */
.service-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e2e8f0;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-card-detailed {
    background: var(--white);
    border-radius: var(--border-radius);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card-detailed:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.service-header {
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.service-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Feature Icons */
.feature-icon {
    margin-bottom: 1.5rem;
}

.mission-icon {
    margin-bottom: 1.5rem;
}

/* Contact Cards */
.contact-info-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-3px);
}

.contact-icon {
    margin-bottom: 1.5rem;
}

/* Contact Form */
.contact-form-container {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid #e2e8f0;
}

.form-control {
    border-radius: var(--border-radius);
    border: 1px solid #d1d5db;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

/* Map Container */
.map-container {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid #e2e8f0;
}

.map-wrapper {
    border-radius: var(--border-radius);
    overflow: hidden;
}

/* Additional Services */
.additional-service {
    transition: transform 0.3s ease;
}

.additional-service:hover {
    transform: translateY(-3px);
}

.additional-contact {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease;
}

.additional-contact:hover {
    transform: translateY(-3px);
}

/* Education Cards */
.education-card {
    transition: transform 0.3s ease;
}

.education-card:hover {
    transform: translateY(-3px);
}

/* Value Items */
.value-item {
    padding: 1rem;
    background: rgba(37, 99, 235, 0.05);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-1px);
}

.btn-success {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-success:hover,
.btn-success:focus {
    background-color: #059669;
    border-color: #059669;
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.btn-outline-light:hover {
    transform: translateY(-1px);
}

/* Footer */
footer {
    background-color: var(--dark-color) !important;
}

footer a:hover {
    color: var(--primary-color) !important;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

/* Emergency Section */
.emergency-info {
    padding: 2rem;
    border: 2px solid #fecaca;
    border-radius: var(--border-radius);
    background: rgba(239, 68, 68, 0.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 80px;
        text-align: center;
    }
    
    .page-header {
        padding-top: 100px;
        padding-bottom: 40px;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .contact-form-container,
    .map-container {
        padding: 1.5rem;
    }
    
    .service-card-detailed {
        margin-bottom: 1rem;
    }
    
    .d-flex.gap-3 {
        flex-direction: column;
    }
    
    .btn-lg {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: auto;
        padding: 100px 0 50px;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .contact-form-container,
    .map-container {
        padding: 1rem;
    }
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section .container {
    animation: fadeInUp 0.8s ease-out;
}

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

/* Custom spacing utilities */
.mt-6 {
    margin-top: 3.5rem;
}

.mb-6 {
    margin-bottom: 3.5rem;
}

.py-6 {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

/* Hours list styling */
.hours-list p {
    margin-bottom: 0.25rem;
}

/* Image hover effects */
img {
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.02);
}

/* Alert styling */
.alert {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--shadow);
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

/* Address styling */
address {
    font-style: normal;
    line-height: 1.6;
}

/* Custom list styling */
.list-unstyled li {
    margin-bottom: 0.5rem;
}

/* Loading states */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Focus states for accessibility */
.btn:focus,
.form-control:focus,
a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .navbar,
    footer,
    .btn {
        display: none !important;
    }
    
    .hero-section {
        padding-top: 0;
        min-height: auto;
    }
    
    .page-header {
        padding-top: 0;
    }
}
