/* Custom CSS for WhatsGoodATX Business Directory */

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --austin-blue: #004080;
    --austin-orange: #ff6b35;
}

/* Typography */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
}

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

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin: 0 -15px;
    padding: 4rem 15px !important;
    border-radius: 0 0 20px 20px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.hero-section > .row {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section .lead {
    color: rgba(255, 255, 255, 0.9);
}

.hero-section .badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

/* Homepage hero section styling */
.min-vh-75 {
    min-height: 75vh;
}

/* Service Cards */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none !important;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
}

.service-icon {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.service-icon i {
    color: white !important;
}

/* Business Cards */
.business-card {
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.business-card:hover {
    transform: translateY(-5px);
}

.business-card[style*="display: none"] {
    opacity: 0;
}

.card {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

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

.card-title {
    color: var(--dark-color);
    font-size: 1.1rem;
    line-height: 1.3;
}

/* Rating Stars */
.rating .stars i {
    font-size: 0.9rem;
    margin-right: 1px;
}

.stars .text-warning {
    color: #ffc107 !important;
}

.stars .text-muted {
    color: #dee2e6 !important;
}

/* Contact Buttons */
.contact-buttons .btn {
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.contact-buttons .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.contact-buttons .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    border: none;
}

.contact-buttons .btn-success {
    background: linear-gradient(135deg, var(--success-color), #1e7e34);
    border: none;
}

/* Badges */
.badge {
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Filters Section */
.filters-section {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.filters-section .form-label {
    color: var(--dark-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Form Controls */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 0.75rem;
    font-size: 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Accordion */
.accordion-button {
    font-weight: 600;
    color: var(--dark-color);
    background-color: white;
    border: none;
    border-radius: 8px !important;
    padding: 1rem 1.5rem;
}

.accordion-button:not(.collapsed) {
    background-color: var(--light-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: none;
}

.accordion-button:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23007bff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-item {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.accordion-body {
    padding: 1.5rem;
    color: #555;
    line-height: 1.6;
}

/* Business CTA */
.business-cta {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    border-radius: 12px;
}

.business-cta .btn-light {
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.business-cta .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

/* Areas Served */
.areas-served {
    background-color: var(--light-color);
    border-radius: 12px;
}

.areas-served ul li {
    padding: 0.4rem 0;
    font-weight: 500;
}

.areas-served .text-primary {
    color: var(--primary-color) !important;
}

/* Neighborhood Intro */
.neighborhood-intro {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.05), rgba(102, 126, 234, 0.05));
    border: 1px solid rgba(0, 123, 255, 0.1);
    border-radius: 12px;
}

/* Modals */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
    border-radius: 12px 12px 0 0;
}

.modal-title {
    font-weight: 600;
    color: var(--dark-color);
}

.btn-close {
    background-size: 1rem;
}

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

footer p {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 15px !important;
        min-height: 70vh;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .row {
        align-items: flex-start !important;
    }
    
    .hero-section .col-lg-4 {
        display: none; /* Hide city icon on mobile to save space */
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .min-vh-75 {
        min-height: 60vh;
    }
    
    .filters-section .row {
        row-gap: 1rem;
    }
    
    .business-card .card-body {
        padding: 1rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon i {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 2.5rem 15px !important;
        min-height: 65vh;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .hero-section .lead {
        font-size: 1rem;
        margin-bottom: 1.5rem !important;
    }
    
    .hero-section .badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-section .d-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem !important;
    }
    
    .contact-buttons .btn {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
    
    .business-cta .row {
        text-align: center !important;
    }
    
    .business-cta .col-md-4 {
        margin-top: 1rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utility Classes */
.text-austin-blue {
    color: var(--austin-blue) !important;
}

.text-austin-orange {
    color: var(--austin-orange) !important;
}

.bg-austin-blue {
    background-color: var(--austin-blue) !important;
}

.bg-austin-orange {
    background-color: var(--austin-orange) !important;
}

/* Print Styles */
@media print {
    .navbar,
    .modal,
    .business-cta,
    .contact-buttons {
        display: none !important;
    }
    
    .hero-section {
        background: white !important;
        color: black !important;
        padding: 1rem !important;
    }
    
    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }
}