/**
 * =============================================
 * SERVICE AREAS PAGE STYLES
 * =============================================
 */

/* Page Hero */
.page-hero {
    background: linear-gradient(135deg, rgba(44, 95, 45, 0.95), rgba(31, 69, 33, 0.95)), 
                url('/assets/images/hero-bg.jpg') center/cover no-repeat;
    color: var(--white);
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect fill="rgba(255,255,255,0.03)" width="50" height="50"/></svg>');
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.page-hero h1 i {
    margin-right: 0.5rem;
    color: var(--accent-orange);
}

.page-hero p {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

/* Coverage Overview */
.coverage-overview {
    padding: 5rem 2rem;
    background: var(--white);
}

.overview-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.overview-text .section-title {
    color: var(--primary-green);
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.overview-text .section-title i {
    color: var(--accent-orange);
}

.lead {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.coverage-highlights {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary-green);
}

.highlight-item i {
    color: var(--primary-green);
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.overview-image {
    position: relative;
}

.overview-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

/* Map Section */
.map-section {
    padding: 5rem 2rem;
    background: linear-gradient(to bottom, #f8f9fa, var(--white));
}

.section-title {
    color: var(--primary-green);
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.section-title i {
    color: var(--accent-orange);
}

.section-title.text-center {
    justify-content: center;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.map-container {
    margin: 3rem 0 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.map-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 2rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.legend-color {
    width: 30px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid rgba(0,0,0,0.2);
}

.legend-color.primary {
    background: rgba(44, 95, 45, 0.3);
}

.legend-color.extended {
    background: rgba(102, 187, 106, 0.2);
}

/* Service Areas Grid */
.service-areas-section {
    padding: 5rem 2rem;
    background: var(--white);
}

.area-group {
    margin-bottom: 4rem;
}

.area-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--light-green), #e8f5e9);
    border-radius: 12px;
}

.area-title {
    color: var(--primary-green);
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.area-title i {
    color: var(--accent-orange);
}

.area-description {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.area-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-orange);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.area-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.area-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(44, 95, 45, 0.15);
    border-color: var(--primary-green);
}

.area-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--light-green), #e8f5e9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary-green);
}

.area-card h3 {
    color: var(--primary-green);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.area-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.area-link:hover {
    gap: 0.75rem;
    color: var(--primary-green);
}

/* Calgary Neighborhoods */
.neighborhoods-section {
    padding: 5rem 2rem;
    background: linear-gradient(to bottom, #f8f9fa, var(--white));
}

.neighborhoods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.quadrant-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.quadrant-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(44, 95, 45, 0.15);
}

.quadrant-header {
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    color: var(--white);
    padding: 1.5rem;
    text-align: center;
}

.quadrant-header i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--accent-orange);
}

.quadrant-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.neighborhood-list {
    list-style: none;
    padding: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.neighborhood-list li {
    padding: 0.75rem;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-dark);
}

.neighborhood-list li:last-child {
    border-bottom: none;
}

.neighborhood-list i {
    color: var(--primary-green);
    font-size: 0.85rem;
}

.quadrant-footer {
    padding: 1.5rem;
    text-align: center;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

.btn-sm {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
}

/* Location Checker */
.location-checker {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
}

.checker-card {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    text-align: center;
}

.checker-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-orange), #e55a2b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: var(--white);
}

.checker-card h2 {
    color: var(--primary-green);
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    margin-bottom: 1rem;
}

.checker-card p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.checker-form .form-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.checker-form input {
    flex: 1;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.checker-form input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(44, 95, 45, 0.1);
}

.check-result {
    display: none;
    margin-top: 2rem;
    text-align: left;
}

.result-loading,
.result-success,
.result-warning,
.result-error {
    padding: 2rem;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.result-loading {
    background: #f8f9fa;
    color: var(--text-dark);
}

.result-success {
    background: #d4edda;
    border-left: 4px solid #28a745;
}

.result-warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}

.result-error {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
}

.result-loading i,
.result-success i,
.result-warning i,
.result-error i {
    font-size: 2rem;
    flex-shrink: 0;
}

.result-loading i { color: var(--primary-green); }
.result-success i { color: #28a745; }
.result-warning i { color: #ffc107; }
.result-error i { color: #dc3545; }

.result-content {
    flex: 1;
}

.result-content strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.result-content p {
    margin-bottom: 1rem;
}

.result-content ul {
    list-style: none;
    padding: 1rem 0;
    margin: 1rem 0;
}

.result-content ul li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.result-content ul li i {
    font-size: 1rem;
}

.result-content .btn {
    margin-top: 1rem;
}

/* FAQ Section */
.faq-section {
    padding: 5rem 2rem;
    background: var(--white);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.faq-item {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--light-green);
}

.faq-question i {
    font-size: 1.5rem;
    color: var(--accent-orange);
    flex-shrink: 0;
}

.faq-question h3 {
    color: var(--primary-green);
    font-size: 1.1rem;
    font-weight: 600;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-dark);
    line-height: 1.7;
}

.faq-answer a {
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: 600;
}

.faq-answer a:hover {
    color: var(--primary-green);
}

/* CTA Section */
.cta-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--light-green), #e8f5e9);
    text-align: center;
}

.cta-content h2 {
    color: var(--primary-green);
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta-content h2 i {
    margin-right: 0.5rem;
    color: var(--accent-orange);
}

.cta-content p {
    color: var(--text-light);
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: 1.15rem;
}

/* Scroll Reveal Animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .page-hero {
        padding: 4rem 1.5rem;
        min-height: 300px;
    }

    .overview-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .overview-text .section-title {
        justify-content: center;
        text-align: center;
    }

    .overview-image img {
        height: 350px;
    }

    .map-container {
        height: 400px !important;
    }

    .map-legend {
        flex-direction: column;
        align-items: flex-start;
    }

    .areas-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .neighborhoods-grid {
        grid-template-columns: 1fr;
    }

    .checker-form .form-group {
        flex-direction: column;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .page-hero {
        padding: 3rem 1rem;
        min-height: 250px;
    }

    .coverage-overview,
    .map-section,
    .service-areas-section,
    .neighborhoods-section,
    .location-checker,
    .faq-section,
    .cta-section {
        padding: 3rem 1rem;
    }

    .checker-card {
        padding: 2rem 1.5rem;
    }

    .map-container {
        height: 300px !important;
    }

    .overview-image img {
        height: 250px;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}