/* BC Emergency Services Directory - Styles */

:root {
    --primary-color: #e74c3c;
    --secondary-color: #2c3e50;
    --accent-color: #3498db;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #c0392b;
    --light-bg: #ecf0f1;
    --dark-text: #2c3e50;
    --gray-text: #7f8c8d;
    --border-radius: 12px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: #f8fafc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1a252f 100%);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.logo {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.tagline {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.main-nav a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    font-weight: 500;
}

.main-nav a:hover, .main-nav a.active {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Emergency Banner */
.emergency-banner {
    background: linear-gradient(90deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: 600;
    margin-bottom: 30px;
}

/* Search Section */
.search-section {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.search-form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

#category-filter, #city-search {
    padding: 12px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    flex: 1;
    min-width: 200px;
}

#category-filter:focus, #city-search:focus {
    outline: none;
    border-color: var(--accent-color);
}

.btn-primary {
    padding: 13px 35px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.service-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    display: block;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.card-header {
    padding: 20px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #34495e 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.card-header h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.category-tag {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.8rem;
    margin-top: 8px;
}

.city-location {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-top: 6px;
}

.card-body {
    padding: 20px;
}

.address {
    color: var(--gray-text);
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.contact-info {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.phone-link, .contact-info a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.phone-link:hover, .contact-info a:hover {
    color: var(--primary-color);
}

.rating {
    color: var(--warning-color);
    font-size: 0.9rem;
}

.services-list {
    list-style: none;
    margin-top: 15px;
}

.services-list li {
    padding: 6px 0;
    border-bottom: 1px solid #eee;
    color: var(--gray-text);
    font-size: 0.85rem;
}

.hours-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 10px;
}

.hours-badge.urgent {
    background: var(--danger-color);
    color: white;
}

.hours-badge:not(.urgent) {
    background: var(--accent-color);
    color: white;
}

.card-footer {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    background: var(--light-bg);
}

.verifyed-badge {
    color: var(--success-color);
    font-size: 0.8rem;
    font-weight: 600;
}

.call-btn {
    padding: 8px 25px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.call-btn:hover {
    background: #c0392b;
    transform: scale(1.05);
}

/* Statistics Section */
.stats-section {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 50px;
}

.stats-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    text-align: center;
}

.stat-card {
    padding: 25px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #34495e 100%);
    color: white;
    border-radius: var(--border-radius);
}

.stat-card strong {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 8px;
}

/* Map Section */
.map-section {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.map-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

/* Footer */
.site-footer {
    background: var(--secondary-color);
    color: white;
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
}

.site-footer p {
    opacity: 0.8;
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo {
        font-size: 2rem;
    }
    
    .main-nav {
        gap: 15px;
        flex-direction: column;
    }
    
    .main-nav a {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    #category-filter, #city-search, .btn-primary {
        width: 100%;
    }
}

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

.service-card {
    animation: fadeInUp 0.6s ease forwards;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.15s; }
.service-card:nth-child(3) { animation-delay: 0.2s; }
.service-card:nth-child(4) { animation-delay: 0.25s; }
.service-card:nth-child(5) { animation-delay: 0.3s; }
