/**
 * Locations We Serve Section Styles
 */

/* Locations Section */
.locations-we-serve-section {
    position: relative;
    padding: 100px 0;
    background: #ffffff;
    overflow: hidden;
}

.locations-section-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(235, 55, 41, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(126, 20, 22, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.locations-section-container {
    position: relative;
    z-index: 1;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Section Header */
.locations-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.locations-section-header .section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 15px;
    letter-spacing: -0.02em;
}

.locations-section-header .section-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
    line-height: 1.6;
}

/* Locations Grid */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

/* Location Card */
.location-card {
    position: relative;
    display: block;
    background: #ffffff;
    border: 2px solid #f0f0f0;
    border-radius: 16px;
    padding: 30px 25px;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.location-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(235, 55, 41, 0.05) 0%, rgba(126, 20, 22, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.location-card:hover {
    transform: translateY(-8px);
    border-color: #eb3729;
    box-shadow: 0 15px 35px rgba(235, 55, 41, 0.2);
}

.location-card:hover::before {
    opacity: 1;
}

.location-card:hover .location-card-hover-effect {
    opacity: 1;
    transform: scale(1.1);
}

.location-card:hover .location-icon {
    transform: scale(1.1);
    color: #eb3729;
}

.location-card:hover .location-name {
    color: #eb3729;
}

.location-card:hover .location-arrow {
    transform: translateX(5px);
    opacity: 1;
}

.location-card-hover-effect {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(235, 55, 41, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: all 0.6s ease;
    z-index: 0;
}

/* Location Card Content */
.location-card-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.location-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    color: #eb3729;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: rgba(235, 55, 41, 0.1);
    border-radius: 50%;
}

.location-icon svg {
    width: 32px;
    height: 32px;
}

.location-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 12px;
    transition: color 0.3s ease;
    line-height: 1.3;
}

.location-count {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    margin-bottom: 15px;
}

.count-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: #eb3729;
    line-height: 1;
}

.count-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.location-arrow {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(235, 55, 41, 0.1);
    border-radius: 50%;
    color: #eb3729;
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
}

.location-arrow svg {
    width: 18px;
    height: 18px;
}

/* Footer */
.locations-section-footer {
    text-align: center;
    margin-top: 50px;
}

.view-all-locations-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: #ffffff;
    color: #eb3729;
    border: 2px solid #eb3729;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(235, 55, 41, 0.1);
}

.view-all-locations-button:hover {
    background: #eb3729;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(235, 55, 41, 0.3);
}

.view-all-locations-button svg {
    transition: transform 0.3s ease;
}

.view-all-locations-button:hover svg {
    transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .locations-section-container {
        padding: 0 30px;
    }
    
    .locations-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .locations-we-serve-section {
        padding: 60px 0;
    }
    
    .locations-section-container {
        padding: 0 20px;
    }
    
    .locations-section-header {
        margin-bottom: 40px;
    }
    
    .locations-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }
    
    .location-card {
        padding: 25px 20px;
        min-height: 160px;
    }
    
    .location-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }
    
    .location-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .location-name {
        font-size: 1.1rem;
    }
    
    .count-number {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .locations-we-serve-section {
        padding: 40px 0;
    }
    
    .locations-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .location-card {
        padding: 20px;
        min-height: 150px;
    }
    
    .location-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 12px;
    }
    
    .location-name {
        font-size: 1rem;
    }
    
    .count-number {
        font-size: 1.2rem;
    }
    
    .view-all-locations-button {
        padding: 14px 24px;
        font-size: 0.9rem;
    }
}

/* Animation on Scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.location-card {
    animation: fadeInUp 0.6s ease-out backwards;
}

.location-card:nth-child(1) { animation-delay: 0.05s; }
.location-card:nth-child(2) { animation-delay: 0.1s; }
.location-card:nth-child(3) { animation-delay: 0.15s; }
.location-card:nth-child(4) { animation-delay: 0.2s; }
.location-card:nth-child(5) { animation-delay: 0.25s; }
.location-card:nth-child(6) { animation-delay: 0.3s; }
.location-card:nth-child(7) { animation-delay: 0.35s; }
.location-card:nth-child(8) { animation-delay: 0.4s; }
.location-card:nth-child(9) { animation-delay: 0.45s; }
.location-card:nth-child(10) { animation-delay: 0.5s; }
.location-card:nth-child(11) { animation-delay: 0.55s; }
.location-card:nth-child(12) { animation-delay: 0.6s; }

