﻿/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 5rem 0;
    margin-bottom: 4rem;
    border-radius: 0 0 3rem 3rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #1a1a1a, #4a4a4a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Category Cards */
.category-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 1rem;
    border: none;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    height: 100%;
}

    .category-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    }

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: #f8f9fa;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1rem;
}

/* Featured Business Cards */
.business-card {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.2s ease;
    height: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

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

    .business-card .card-img-top {
        height: 200px;
        object-fit: cover;
    }

    .business-card .card-body {
        padding: 1.5rem;
    }

.category-badge {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
}

.business-description {
    color: #6c757d;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 4.5em;
}

.location-badge {
    background-color: #f8f9fa;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.875rem;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Spacing */
.section-padding {
    padding: 5rem 0;
}

/* MOBILE RESPONSIVE STYLES */

/* Tablet and smaller laptops (992px and down) */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 4rem 0;
        margin-bottom: 3rem;
        border-radius: 0 0 2rem 2rem;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .section-padding {
        padding: 4rem 0;
    }

    .category-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
}

/* Tablet (768px and down) */
@media (max-width: 767.98px) {
    .hero-section {
        padding: 3rem 0;
        margin-bottom: 2.5rem;
        border-radius: 0 0 1.5rem 1.5rem;
    }

    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
        padding: 0 1rem;
    }

    .section-padding {
        padding: 3rem 0;
    }

    .category-card {
        margin-bottom: 1.5rem;
    }

    .category-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }

    .business-card .card-img-top {
        height: 180px;
    }

    .business-card .card-body {
        padding: 1.25rem;
    }

    .business-description {
        height: auto;
        -webkit-line-clamp: 2;
    }

    .location-badge {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }

    .category-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Mobile (576px and down) */
@media (max-width: 575.98px) {
    .hero-section {
        padding: 2.5rem 0;
        margin-bottom: 2rem;
        border-radius: 0 0 1rem 1rem;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 0.75rem;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .section-subtitle {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }

    .section-padding {
        padding: 2.5rem 0;
    }

    .category-card {
        margin-bottom: 1rem;
        border-radius: 0.75rem;
    }

        .category-card:hover {
            transform: translateY(-2px);
        }

    .category-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .business-card {
        margin-bottom: 1.5rem;
        border-radius: 0.75rem;
    }

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

        .business-card .card-img-top {
            height: 160px;
        }

        .business-card .card-body {
            padding: 1rem;
        }

    .business-description {
        font-size: 0.9rem;
        line-height: 1.4;
        -webkit-line-clamp: 2;
        height: auto;
    }

    .location-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    .category-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
}

/* Extra small mobile (480px and down) */
@media (max-width: 479.98px) {
    .hero-section {
        padding: 2rem 0;
        margin-bottom: 1.5rem;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 1.375rem;
    }

    .section-padding {
        padding: 2rem 0;
    }

    .business-card .card-img-top {
        height: 140px;
    }

    .business-card .card-body {
        padding: 0.875rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .category-card:hover,
    .business-card:hover {
        transform: none;
    }

    .category-card:active,
    .business-card:active {
        transform: translateY(-2px);
    }
}
