/* ==========================================================================
   City Service Pages - Hero Section with Left-Aligned Content
   ========================================================================== */

/* Hero Section Base Styles */
.city-service-hero {
    position: relative;
    width: 100%;
    min-height: 600px;
    height: 70vh; /* Use viewport height for better scaling */
    max-height: 700px;
    background-image: url('/images/sanjosepage/Zebra-dumpster-rental.webp');
    background-size: cover;
    background-position: center 40%; /* Adjust vertical position to show more of the image */
    background-repeat: no-repeat;
    background-attachment: scroll;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Hero Overlay */
.city-service-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 70%, transparent 100%);
    z-index: 0;
}

/* Hero Content - Left Aligned */
.city-service-hero .hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: var(--spacing-xxl) 0;
}

.city-service-hero .hero-container {
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* When pricing table is present (San Jose) */
.city-service-hero .hero-container.has-pricing-table {
    justify-content: space-between;
    gap: 24px;
}

.city-service-hero .hero-text-content {
    max-width: 750px;
    text-align: left;
}

.city-service-hero .hero-title {
    color: var(--bg-white);
    margin-bottom: var(--spacing-lg);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    text-align: left;
}

.city-service-hero .hero-description {
    color: var(--bg-white);
    margin-bottom: var(--spacing-xl);
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.city-service-hero .hero-subtitle {
    color: var(--bg-white);
    margin-bottom: var(--spacing-lg);
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    opacity: 0.9;
}

/* Hero Actions */
.city-service-hero .hero-actions {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    justify-content: flex-start;
}

/* Override button colors for better contrast on dark background */
.city-service-hero .btn-secondary {
    background-color: var(--bg-white);
    color: var(--primary-green);
    border-color: var(--bg-white);
}

.city-service-hero .btn-secondary:hover {
    background-color: var(--bg-gray);
    border-color: var(--bg-gray);
    color: var(--primary-green);
}

/* Hero Pricing Table (San Jose specific) */
.hero-pricing-table {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-width: 350px;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
}

.pricing-table thead {
    background: var(--bg-white);
}

.pricing-table th {
    padding: 16px 20px;
    text-align: left;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-light);
    min-width: 120px;
}

.pricing-table th:first-child {
    border-right: 1px solid var(--border-light);
}

.pricing-table td {
    border-bottom: 1px solid var(--border-light);
    color: var(--text-dark);
    background: var(--bg-white);
    text-align: left;
    padding: 16px 20px;
    min-width: 120px;
}

.pricing-table td:first-child {
    border-right: 1px solid var(--border-light);
}

.pricing-table tbody tr:last-child td {
    border-bottom: none;
}

.pricing-table td:first-child {
    font-weight: 600;
    font-size: 18px;
}

.pricing-table td:last-child {
    font-weight: 600;
    font-size: 18px;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

/* XL screens (>= 1920px) - Default styles apply */

/* LG screens (1280px - 1919px) */
@media screen and (min-width: 1280px) and (max-width: 1919px) {
    .city-service-hero {
        min-height: 700px;
    }
}

/* MD screens (960px - 1279px) */
@media screen and (min-width: 960px) and (max-width: 1279px) {
    /* Inherits viewport-based sizing from base styles */
    
    /* Stronger gradient for better readability on smaller screens */
    .city-service-hero .hero-overlay {
        background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 80%, transparent 100%);
    }
    
    .hero-pricing-table {
        margin-top: var(--spacing-lg);
        max-width: 400px;
    }
}

/* SM screens (600px - 959px) */
@media screen and (min-width: 600px) and (max-width: 959px) {
    .city-service-hero {
        min-height: 450px;
        height: 60vh;
        max-height: 600px;
    }
    
    .city-service-hero .hero-container {
        padding: 0 var(--spacing-lg);
        flex-direction: column;
        text-align: center;
    }
    
    .city-service-hero .hero-text-content {
        max-width: 100%;
        text-align: center;
    }
    
    .city-service-hero .hero-title {
        text-align: center;
    }
    
    .city-service-hero .hero-actions {
        justify-content: center;
    }
    
    /* Full overlay for better text visibility */
    .city-service-hero .hero-overlay {
        background: rgba(0, 0, 0, 0.7);
    }
    
    .city-service-hero .hero-content {
        padding: var(--spacing-xl) 0;
    }
    
    .hero-pricing-table {
        margin-top: var(--spacing-lg);
        width: 100%;
        max-width: 400px;
    }
}

/* XS screens (< 600px) */
@media screen and (max-width: 599px) {
    .city-service-hero {
        min-height: 400px;
        height: 50vh;
        max-height: 500px;
    }
    
    .city-service-hero .hero-container {
        padding: 0 var(--spacing-md);
        flex-direction: column;
        text-align: center;
    }
    
    .city-service-hero .hero-text-content {
        max-width: 100%;
        text-align: center;
    }
    
    .city-service-hero .hero-title {
        text-align: center;
    }
    
    /* Full dark overlay for mobile readability */
    .city-service-hero .hero-overlay {
        background: rgba(0, 0, 0, 0.75);
    }
    
    .city-service-hero .hero-content {
        padding: var(--spacing-xl) 0;
    }
    
    .city-service-hero .hero-title {
        margin-bottom: var(--spacing-md);
    }
    
    .city-service-hero .hero-description,
    .city-service-hero .hero-subtitle {
        margin-bottom: var(--spacing-lg);
    }
    
    /* Stack buttons vertically on mobile */
    .city-service-hero .hero-actions {
        flex-direction: row;
        align-items: stretch;
        justify-content: center;
        flex-wrap: initial;
    }
    
    .city-service-hero .hero-actions .btn-primary,
    .city-service-hero .hero-actions .btn-secondary {
        width: auto;
        justify-content: center;
    }
    
    /* Pricing table on mobile */
    .hero-pricing-table {
        margin-top: var(--spacing-lg);
        width: 100%;
        min-width: unset;
    }
    
    .pricing-table th,
    .pricing-table td {
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: 16px;
    }
    
    .pricing-table td:first-child,
    .pricing-table td:last-child {
        font-size: 16px;
    }
}