/* ===============================================================
   CITY-PAGES.CSS - Master styles for all city/area pages
   Load on all city-specific pages (bangalore.php, mumbai.php, etc.)
   Version: 1.3 - Updated with #003399 bg for non-hero/CTA sections, white text, black for shadows/contrasts
================================================================ */

/* Define colors for consistency */
:root {
    --primary-blue: #003399; /* Dark blue bg for most sections */
    --white: #ffffff; /* White text */
    --accent-green: #28a745; /* Green accents */
    --highlight-yellow: #ffc107; /* Yellow highlights */
    --text-color: #ffffff; /* Default text white */
    --light-bg: rgba(255, 255, 255, 0.1); /* Semi-transparent white for inner bgs */
    --transition-fast: all 0.3s ease;
}

/* ========== CITY HERO SECTION (Exception: Gradient bg) ========== */
.city-hero {
    background: linear-gradient(135deg, rgba(0, 31, 84, 0.95), rgba(0, 51, 153, 0.92));
    padding: 100px 0 80px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.city-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.2);
    z-index: 0;
}

.city-hero > * {
    position: relative;
    z-index: 1;
}

.city-hero h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--white);
    text-shadow: 3px 3px 10px rgba(0,0,0,0.8); /* Black shadow for contrast */
    line-height: 1.3;
}

.city-hero-intro {
    font-size: 18px;
    line-height: 1.7;
    max-width: 900px;
    margin: 0 auto 30px;
    color: var(--white);
    text-shadow: 2px 2px 6px rgba(0,0,0,0.7); /* Black shadow */
}

.city-hero-cta {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 25px;
}

/* ========== BREADCRUMB (Blue bg, white text) ========== */
.breadcrumb-section {
    background: var(--primary-blue);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    font-size: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.breadcrumb a {
    color: var(--white);
    transition: var(--transition-fast);
    text-decoration: none;
    opacity: 0.8;
}

.breadcrumb a:hover {
    color: var(--accent-green);
    opacity: 1;
}

.breadcrumb .active {
    color: var(--white);
    font-weight: 600;
}

.breadcrumb-separator {
    color: rgba(255,255,255,0.5);
}

/* ========== CITY CONTENT SECTION (Blue bg, white text) ========== */
.city-content {
    background: var(--primary-blue);
    padding: 60px 0;
    color: var(--white);
}

.content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.city-content h2 {
    font-size: 28px;
    color: var(--white);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.city-content h3 {
    font-size: 22px;
    color: var(--white);
    margin: 30px 0 15px;
    font-weight: 700;
    line-height: 1.4;
}

.city-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--white);
    margin-bottom: 20px;
}

.city-content ul {
    font-size: 15px;
    line-height: 2;
    color: var(--white);
    margin-bottom: 25px;
    padding-left: 25px;
    list-style-type: disc;
}

.city-content ul li {
    margin-bottom: 10px;
}

.city-content a {
    color: var(--accent-green);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-fast);
}

.city-content a:hover {
    color: var(--highlight-yellow);
}

.city-features-list {
    list-style: none;
    margin: 30px 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.city-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: var(--light-bg);
    border-radius: 10px;
    transition: all 0.3s ease;
    color: var(--white);
}

.city-features-list li:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3); /* Black shadow */
    transform: translateX(5px);
}

.city-features-list li::before {
    content: '\f058';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--accent-green);
    font-size: 22px;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.city-features-list li:hover::before {
    color: var(--highlight-yellow);
    transform: scale(1.2);
}

.city-features-list li span {
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
    line-height: 1.6;
}

/* Inner div for why choose (blue semi-transparent bg) */
.city-content .features-container {
    background: var(--light-bg);
    padding: 25px;
    border-radius: 10px;
    margin: 20px 0;
}

.city-content .features-container ul {
    list-style: none;
    padding: 0;
}

/* ========== POPULAR ROUTES SECTION (Blue bg, white text) ========== */
.popular-routes {
    background: var(--primary-blue);
    padding: 60px 0;
    color: var(--white);
}

/* ... (rest of .routes-grid, .route-card, etc., same as original, with color: var(--white); updates) ... */
.routes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.route-card {
    background: var(--light-bg);
    padding: 20px 25px;
    border-radius: 10px;
    border-left: 4px solid var(--accent-green);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
}

.route-card:hover {
    transform: translateX(8px);
    border-left-color: var(--highlight-yellow);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3); /* Black shadow */
    background: rgba(255, 255, 255, 0.15);
}

.route-icon {
    font-size: 24px;
    color: var(--accent-green);
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.route-card:hover .route-icon {
    color: var(--highlight-yellow);
    transform: rotate(90deg);
}

.route-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
    line-height: 1.4;
}

.route-arrow {
    color: var(--accent-green);
    font-weight: 700;
    margin: 0 5px;
}

/* ========== LOCALITIES COVERED (Blue bg, white text) ========== */
.localities-covered {
    background: var(--primary-blue);
    padding: 60px 0;
    color: var(--white);
}

.localities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.locality-badge {
    background: var(--light-bg);
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2); /* Black shadow */
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.locality-badge:hover {
    background: var(--accent-green);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3); /* Black shadow */
}

.locality-icon {
    font-size: 16px;
    color: var(--accent-green);
    transition: var(--transition-fast);
}

.locality-badge:hover .locality-icon {
    color: var(--white);
}

/* ========== SERVICES GRID (Blue bg, white text) ========== */
.city-services {
    background: var(--primary-blue);
    padding: 60px 0;
    color: var(--white);
}

.city-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.city-service-card {
    background: var(--light-bg);
    padding: 30px 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 3px 12px rgba(0,0,0,0.2); /* Black shadow */
    transition: all 0.3s ease;
    border-top: 4px solid var(--accent-green);
}

.city-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3); /* Black shadow */
    border-top-color: var(--highlight-yellow);
    background: rgba(255, 255, 255, 0.15);
}

.city-service-icon {
    font-size: 48px;
    color: var(--accent-green);
    margin-bottom: 20px;
    transition: all 0.4s ease;
}

.city-service-card:hover .city-service-icon {
    color: var(--highlight-yellow);
    transform: scale(1.15) rotate(10deg);
}

.city-service-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--white);
    transition: var(--transition-fast);
}

.city-service-card:hover h3 {
    color: var(--highlight-yellow);
}

.city-service-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 15px;
}

.service-learn-more {
    color: var(--accent-green);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition-fast);
    text-decoration: none;
}

.service-learn-more:hover {
    color: var(--highlight-yellow);
    transform: translateX(3px);
}

/* ========== FAQ SECTION (Blue bg, white text) ========== */
.city-faq {
    background: var(--primary-blue);
    padding: 60px 0;
    color: var(--white);
}

.faq-container {
    max-width: 900px;
    margin: 30px auto 0;
}

.faq-item {
    background: var(--light-bg);
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2); /* Black shadow */
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.3); /* Black shadow */
}

.faq-question {
    padding: 20px 25px;
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    transition: var(--transition-fast);
    background: rgba(255, 255, 255, 0.05);
    user-select: none;
}

.faq-question:hover {
    color: var(--accent-green);
}

.faq-icon {
    font-size: 20px;
    color: var(--accent-green);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--highlight-yellow);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: rgba(255, 255, 255, 0.05);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 25px 20px;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

/* ========== MAP SECTION (Blue bg, white text) ========== */
.map-section {
    background: var(--primary-blue);
    padding: 60px 0;
    color: var(--white);
}

.map-container {
    max-width: 1000px;
    margin: 30px auto 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3); /* Black shadow */
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: 0;
    display: block;
}

.office-address {
    text-align: center;
    margin: 20px 0 30px;
    padding: 30px;
    background: var(--light-bg);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2); /* Black shadow */
    transition: all 0.3s ease;
    color: var(--white);
}

.office-address:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.3); /* Black shadow */
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
}

.office-address h3 {
    color: var(--white);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.office-address p {
    font-size: 17px;
    color: var(--white);
    line-height: 1.8;
    margin-bottom: 8px;
}

.office-address a {
    text-decoration: none;
    transition: var(--transition-fast);
    color: var(--accent-green);
    font-weight: 700;
    font-size: 20px;
    word-break:break-word;
}

.office-address a:hover {
    opacity: 0.85;
}

/* ========== CITY CTA SECTION (Exception: Gradient bg) ========== */
.city-cta {
    background: linear-gradient(135deg, rgba(0, 31, 84, 0.95), rgba(0, 51, 153, 0.92)),
                url('https://images.unsplash.com/photo-1600880292203-757bb62b4baf?w=1600&q=80') center/cover;
    padding: 70px 0;
    color: var(--white);
    text-align: center;
    position: relative;
}

.city-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 0;
}

.city-cta > * {
    position: relative;
    z-index: 1;
}

.city-cta h2 {
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: 800;
    text-shadow: 3px 3px 10px rgba(0,0,0,0.8); /* Black shadow */
}

.city-cta p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.7); /* Black shadow */
}

.city-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.cta-phone {
    color: var(--highlight-yellow);
    font-weight: 800;
    font-size: 20px;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.8); /* Black shadow */
}

/* ========== SECTION HEADERS (White text) ========== */
.section-header {
    margin-bottom: 40px;
    text-align: center;
}

.section-subtitle {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-green);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.3;
    margin: 0;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 992px) {
    .city-hero {
        padding: 80px 0 60px;
    }
    
    .city-hero h1 {
        font-size: 32px;
    }
    
    .city-hero-intro {
        font-size: 16px;
    }
    
    .routes-grid {
        grid-template-columns: 1fr;
    }
    
    .localities-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .city-features-list {
        grid-template-columns: 1fr;
    }
    
    .city-services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .section-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .city-hero {
        padding: 70px 0 50px;
    }
    
    .city-hero h1 {
        font-size: 28px;
    }
    
    .city-hero-intro {
        font-size: 15px;
    }
    
    .city-hero-cta {
        flex-direction: column;
    }
    
    .city-hero-cta .btn {
        width: 100%;
        justify-content: center;
    }
    
    .localities-grid {
        grid-template-columns: 1fr;
    }
    
    .city-services-grid {
        grid-template-columns: 1fr;
    }
    
    .map-container iframe {
        height: 350px;
    }
    
    .city-cta h2 {
        font-size: 26px;
    }
    
    .cta-phone {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .city-content h2 {
        font-size: 24px;
    }
    
    .city-content h3 {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .city-hero {
        padding: 60px 0 40px;
    }
    
    .city-hero h1 {
        font-size: 24px;
    }
    
    .city-hero-intro {
        font-size: 14px;
    }
    
    .route-card {
        padding: 15px 20px;
    }
    
    .route-text {
        font-size: 14px;
    }
    
    .locality-badge {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .faq-question {
        padding: 15px 20px;
        font-size: 15px;
    }
    
    .faq-answer-content {
        padding: 0 20px 15px;
        font-size: 14px;
    }
    
    .map-container iframe {
        height: 300px;
    }
    
    .city-cta h2 {
        font-size: 22px;
    }
    
    .city-cta p {
        font-size: 16px;
    }
    
    .cta-phone {
        font-size: 16px;
        display: block;
        margin: 5px 0;
    }
    
    .office-address {
        padding: 25px 20px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .city-content h2 {
        font-size: 22px;
    }
    
    .city-content h3 {
        font-size: 18px;
    }
    
    .city-content p,
    .city-content ul {
        font-size: 15px;
    }
}

/* ========== UTILITY CLASSES ========== */
.text-center {
    text-align: center;
}

.mt-5 {
    margin-top: 50px;
}

.mb-5 {
    margin-bottom: 50px;
}

/* ========== PRINT STYLES ========== */
@media print {
    .city-hero,
    .city-cta,
    .breadcrumb-section {
        display: none;
    }
    
    .city-content,
    .popular-routes,
    .localities-covered,
    .city-services,
    .city-faq {
        page-break-inside: avoid;
    }
}