/*
================================================================================
LOCATION-PAGE.CSS - Individual Location Page Styles
================================================================================

PURPOSE:
Comprehensive styling for individual location pages (dublin.html, hilliard.html, etc.)
Focused on local SEO optimization, user engagement, and conversion optimization.

COMPONENTS:
- Location hero sections with city-specific branding
- Local benefits and features
- Service neighborhoods and coverage areas
- Common projects showcase
- Service details and pricing
- Location-specific CTAs and FAQs
- Responsive design for all devices

ACCESSIBILITY:
- WCAG 2.1 compliant contrast ratios
- Keyboard navigation support
- Screen reader optimization
- Reduced motion preferences

PERFORMANCE:
- Optimized CSS selectors
- Efficient animations
- Mobile-first responsive design
================================================================================
*/

/* =============================================================================
   LOCATION PAGE BASE STYLES
   ============================================================================= */

.location-page {
    font-family: var(--font-primary, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    line-height: 1.6;
    color: var(--color-text, #374151);
}

/* =============================================================================
   LOCATION HERO SECTION
   ============================================================================= */

.location-hero {
    position: relative;
    height: 42vh;
    min-height: 300px;
    background-image: url('../assets/img/PlainCityDumpster14yd.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.location-hero-overlay {
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    background: var(--hero-overlay, rgba(15, 23, 42, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
}

.location-hero-content {
    padding: 2rem;
    max-width: 600px;
    text-align: left;
    color: white;
}

.location-hero h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    color: white;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0;
    line-height: 1.1;
    color: white;
}

.btn--large {
    padding: 1.125rem 2.25rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    min-width: 180px;
    text-align: center;
}

.btn--primary.btn--large {
    background: white;
    color: var(--color-primary, #01B0BB);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn--primary.btn--large:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.btn--secondary.btn--large {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn--secondary.btn--large:hover {
    background: white;
    color: var(--color-primary, #01B0BB);
    transform: translateY(-2px);
}

/* =============================================================================
   LOCAL BENEFITS SECTION
   ============================================================================= */

.local-benefits {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.local-benefits h2 {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 3.5rem;
    color: var(--color-primary, #01B0BB);
    position: relative;
}

.local-benefits h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, var(--color-primary-400), var(--color-accent-400));
    border-radius: 2px;
}

.benefits-with-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.benefits-image {
    position: relative;
}

.location-feature-img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    object-fit: cover;
    max-height: 500px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.benefit-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 1px solid rgba(1, 176, 187, 0.1);
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--color-primary-400), var(--color-accent-400));
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(1, 176, 187, 0.15);
}

.benefit-card h3 {
    color: var(--color-primary, #01B0BB);
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

.benefit-card p {
    color: #6b7280;
    line-height: 1.7;
    font-size: 1rem;
}

/* =============================================================================
   SERVICE NEIGHBORHOODS SECTION
   ============================================================================= */

.service-neighborhoods {
    padding: 4rem 0;
    background: white;
}

.service-neighborhoods h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-primary, #01B0BB);
}

.service-neighborhoods .container > p {
    text-align: center;
    margin-bottom: 3rem;
    color: #6b7280;
    font-size: 1.125rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.neighborhoods-list {
    margin-top: 2rem;
}

.neighborhood-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.neighborhood-grid li {
    background: #f8fafc;
    padding: 1.25rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
    color: var(--color-primary, #374151);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.neighborhood-grid li:hover {
    background: var(--color-primary, #01B0BB);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(1, 176, 187, 0.2);
}

/* =============================================================================
   COMMON PROJECTS SECTION
   ============================================================================= */

.common-projects {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.common-projects h2 {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 3.5rem;
    color: var(--color-primary, #01B0BB);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.project-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(1, 176, 187, 0.02), rgba(1, 176, 187, 0.05));
    border-radius: 12px;
    z-index: -1;
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(135deg, var(--color-primary-400), var(--color-accent-400));
    border-radius: 12px 0 0 12px;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(1, 176, 187, 0.12);
}

.project-card:hover::after {
    width: 6px;
}

.project-card h3 {
    color: var(--color-primary, #01B0BB);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
}

.project-card p {
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* =============================================================================
   LOCAL REFERENCE POINTS SECTION
   ============================================================================= */

.local-reference {
    padding: 5rem 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
}

.local-reference::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--color-primary, #01B0BB) 50%,
        transparent 100%);
}

.local-reference h2 {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-primary, #01B0BB);
    position: relative;
    display: inline-block;
    width: 100%;
}

.local-reference h2::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--color-primary, #01B0BB) 50%,
        transparent 100%);
    border-radius: 2px;
}

.local-reference .section-intro {
    text-align: center;
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 700px;
    margin: 2rem auto 3rem;
    line-height: 1.7;
    font-weight: 400;
}

.reference-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.reference-card {
    background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f1f5f9;
    border-top: 4px solid var(--color-primary, #01B0BB);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.reference-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(1, 176, 187, 0.03) 0%,
        rgba(1, 176, 187, 0) 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.reference-card:hover::before {
    opacity: 1;
}

.reference-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(1, 176, 187, 0.15);
    border-color: rgba(1, 176, 187, 0.2);
}

.reference-card h3 {
    color: var(--color-primary, #01B0BB);
    margin-bottom: 1.75rem;
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
    letter-spacing: -0.02em;
}

.reference-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--color-primary, #01B0BB) 50%,
        transparent 100%);
    border-radius: 1px;
}

.reference-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-block;
    text-align: left;
    width: 100%;
}

.reference-card li {
    padding: 0.875rem 0 0.875rem 2rem;
    color: #475569;
    line-height: 1.6;
    position: relative;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    font-weight: 500;
}

.reference-card li::before {
    content: '📍';
    position: absolute;
    left: 0;
    top: 0.875rem;
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.reference-card li:hover {
    color: var(--color-primary, #01B0BB);
    padding-left: 2.25rem;
}

.reference-card li:hover::before {
    transform: scale(1.2);
}

.reference-card li:not(:last-child) {
    border-bottom: 1px solid #e2e8f0;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .local-reference {
        padding: 3rem 0;
    }

    .local-reference h2 {
        font-size: 1.875rem;
    }

    .local-reference .section-intro {
        font-size: 1rem;
        margin: 1.5rem auto 2rem;
    }

    .reference-grid {
        gap: 1.5rem;
    }

    .reference-card {
        padding: 2rem 1.5rem;
    }

    .reference-card h3 {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .reference-card li {
        padding: 0.75rem 0 0.75rem 1.75rem;
        font-size: 0.875rem;
    }
}

/* =============================================================================
   SERVICE DETAILS SECTION
   ============================================================================= */

.service-details {
    padding: 4rem 0;
    background: white;
}

.service-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: start;
}

.service-info h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary, #01B0BB);
    margin-bottom: 1.5rem;
}

.service-info h3 {
    font-size: 1.375rem;
    font-weight: 600;
    color: #374151;
    margin: 2rem 0 1.25rem 0;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: #4b5563;
    font-size: 1.05rem;
    line-height: 1.5;
}

.service-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.75rem;
    color: var(--color-primary, #01B0BB);
    font-weight: bold;
    font-size: 1.25rem;
    background: rgba(1, 176, 187, 0.1);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.pricing-info h3 {
    font-size: 1.375rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1.5rem;
    text-align: center;
}

.price-card {
    background: linear-gradient(135deg, var(--color-primary, #01B0BB) 0%, #0891b2 100%);
    color: white;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(1, 176, 187, 0.3);
    position: relative;
    overflow: hidden;
}

.price-card-with-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 0;
    min-height: 350px;
}

.price-card-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    padding: 2.5rem 2rem;
    width: 100%;
    height: 100%;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    border-radius: 16px;
}

.price-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s ease-in-out infinite;
}

.price-card-with-image::before {
    display: none;
}

.price-card-with-image .price {
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8), 0 2px 4px rgba(0, 0, 0, 0.6);
    font-weight: 900;
    color: #ffffff;
}

.price-card-with-image .price-details p {
    text-shadow:
        0 0 20px rgba(0, 0, 0, 0.9),
        0 0 10px rgba(0, 0, 0, 0.9),
        0 4px 8px rgba(0, 0, 0, 0.8),
        0 2px 4px rgba(0, 0, 0, 0.7);
    font-weight: 700;
    font-size: 1.15rem;
    opacity: 1;
    letter-spacing: 0.3px;
    color: #ffffff;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.price {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.price-details p {
    margin: 0.75rem 0;
    opacity: 0.95;
    font-size: 1.05rem;
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

/* =============================================================================
   LOCATION CTA SECTION
   ============================================================================= */

.location-cta {
    background:
        linear-gradient(to bottom,
            rgba(255, 255, 255, 1) 0%,
            rgba(255, 255, 255, 0) 8%,
            rgba(255, 255, 255, 0) 92%,
            rgba(255, 255, 255, 1) 100%
        ),
        linear-gradient(135deg, var(--color-primary, #01B0BB) 0%, #0891b2 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.location-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 300" fill="none"><circle cx="200" cy="200" r="300" fill="rgba(255,255,255,0.03)"/><circle cx="800" cy="100" r="200" fill="rgba(255,255,255,0.02)"/></svg>');
    pointer-events: none;
}

.location-cta .container {
    position: relative;
    z-index: 1;
}

.location-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.location-cta p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* =============================================================================
   LOCATION FAQ SECTION
   ============================================================================= */

.location-faq {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.location-faq h2 {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 4rem;
    color: var(--color-primary, #01B0BB);
    position: relative;
}

.location-faq h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, var(--color-primary-400), var(--color-accent-400));
    border-radius: 2px;
}

.faq-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(1, 176, 187, 0.1);
}

.faq-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(1, 176, 187, 0.12);
}

.faq-item h3 {
    color: var(--color-primary, #01B0BB);
    margin-bottom: 1.25rem;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
}

.faq-item p {
    color: #6b7280;
    line-height: 1.7;
    margin: 0;
    font-size: 1rem;
}

/* =============================================================================
   RESPONSIVE DESIGN
   ============================================================================= */

/* Desktop styles */
@media (min-width: 769px) {
    .location-hero {
        height: 60vh;
        min-height: 360px;
        justify-content: flex-end;
    }

    .location-hero-content {
        text-align: left;
        padding: 3rem;
        max-width: 400px;
    }

    .location-hero h1 {
        font-size: 3rem;
        margin-bottom: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .location-hero h1 {
        font-size: 3.25rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .location-hero-overlay {
        width: 55%;
    }

    .location-hero-content {
        padding: 2.5rem 2rem;
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .pricing-info {
        order: -1;
    }
}

/* Small Tablet / Mobile */
@media (max-width: 768px) {
    .location-hero-overlay {
        width: 50%;
        background: rgba(15, 23, 42, 0.5);
    }

    .location-hero-content {
        text-align: left;
        padding: 2rem 1rem;
    }

    .benefits-with-image {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .benefits-image {
        order: -1;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .neighborhood-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .local-benefits,
    .common-projects,
    .location-faq {
        padding: 3rem 0;
    }

    .location-cta {
        padding: 3.5rem 0;
    }

    .location-cta h2 {
        font-size: 2rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .location-hero {
        min-height: 250px;
    }

    .location-hero-overlay {
        width: 50%;
        background: rgba(15, 23, 42, 0.5);
    }

    .location-hero-content {
        padding: 1.5rem 0.75rem;
    }

    .location-hero h1 {
        font-size: 2.25rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .btn--large {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        min-width: 160px;
    }

    .benefit-card,
    .project-card,
    .faq-item {
        padding: 1.5rem;
    }

    .local-benefits h2,
    .common-projects h2,
    .location-faq h2 {
        font-size: 1.75rem;
    }

    .location-cta h2 {
        font-size: 1.75rem;
    }

    .location-cta p {
        font-size: 1.1rem;
    }

    .price {
        font-size: 2.75rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .neighborhood-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================================================
   GOOGLE REVIEWS SECTION
   ============================================================================= */

.google-reviews {
    padding: 2rem 0;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.google-reviews-widget {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.google-g-logo {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rating-number {
    font-size: 1.5rem;
    font-weight: 600;
    color: #202124;
}

.stars {
    display: flex;
    gap: 2px;
}

.review-count {
    font-size: 0.875rem;
    color: #5f6368;
    margin: 0;
}

/* Mobile Responsiveness for Google Reviews */
@media (max-width: 640px) {
    .google-reviews {
        padding: 1.5rem 0;
    }

    .google-reviews-widget {
        gap: 1rem;
    }

    .rating-number {
        font-size: 1.25rem;
    }

    .stars svg {
        width: 16px;
        height: 16px;
    }
}

/* =============================================================================
   BUY BOXES SECTION - Dual card layout for services
   ============================================================================= */

.buy-boxes {
  background: var(--color-section-bg);
  padding: 3rem 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.buy-box-grid {
  display: flex;
  justify-content: space-between;
  gap: 4%;
  flex-wrap: wrap;
  align-items: stretch;
  flex: 1;
}

.buy-box {
  flex: 0 0 48%;
  min-width: 280px;
  background: var(--color-white);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  padding: 0;
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  min-height: 500px;
}

.buy-box:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}

/* Availability Badge */
.availability-badge {
  background: linear-gradient(135deg, var(--color-primary-500), var(--color-primary-600));
  color: white;
  font-size: 0.75rem;
  font-weight: var(--fw-bold);
  text-align: center;
  padding: 0.5rem 1rem;
  border-radius: 16px 16px 0 0;
  margin: 0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Enhanced heading styling - tighter spacing for better fit */
.buy-box h2 {
  font-size: 1.5rem;
  font-weight: var(--fw-extrabold);
  color: var(--color-text);
  margin: 1rem 1.5rem 0.75rem 1.5rem;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

/* Service subtitle - reduced spacing */
.buy-box .service-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: var(--fw-medium);
  margin: 0 1.5rem 1rem 1.5rem;
  line-height: 1.3;
}

/* Feature Highlights Section - tighter spacing */
.feature-highlights {
  margin: 0 1.5rem 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
}

.highlight-icon {
  font-size: 1.25rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-50);
  border-radius: 8px;
  flex-shrink: 0;
}

.highlight-text {
  font-size: 0.85rem;
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Divider line between highlight items */
.highlight-divider {
  background: linear-gradient(135deg, var(--color-primary-400), var(--color-accent-400));
  height: 1px;
  margin: 0.5rem 0;
  width: 100%;
  border: none;
}

/* Service Image - larger and better proportioned */
.buy-box .service-image {
  margin: 0 1.5rem;
  display: flex;
  justify-content: center;
  flex: 1;
  align-items: center;
}

.buy-box .service-img {
  max-width: 240px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Pricing Section - anchored to bottom */
.pricing-section {
  margin: auto 1.5rem 0 1.5rem;
  text-align: center;
}

.price-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: var(--fw-medium);
  margin-bottom: 0.25rem;
}

.price-amount {
  display: block;
  font-size: 2.25rem;
  font-weight: var(--fw-extrabold);
  color: var(--color-primary-600);
  line-height: 0.9;
  margin-bottom: 0.25rem;
}

.price-details {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.3;
  margin-bottom: 1rem;
}

/* Full-width button */
.btn--full-width {
  margin: 0;
  border-radius: 0 0 16px 16px;
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Buy boxes responsive styles */
@media (min-width: 768px) {
  .buy-boxes {
    padding: 4rem 0;
  }

  .buy-box {
    min-width: 320px;
    min-height: 580px;
  }

  .buy-box h2 {
    font-size: 1.75rem;
    margin: 1.25rem 2rem 1rem 2rem;
  }

  .buy-box .service-subtitle {
    margin: 0 2rem 1.25rem 2rem;
    font-size: 1rem;
  }

  .feature-highlights {
    margin: 0 2rem 1.25rem 2rem;
  }

  .buy-box .service-image {
    margin: 0 2rem;
  }

  .buy-box .service-img {
    max-width: 280px;
  }

  .pricing-section {
    margin: auto 2rem 0 2rem;
  }

  .price-amount {
    font-size: 2.5rem;
  }
}

/* Small screen adjustments - maintain side-by-side layout */
@media (max-width: 480px) {
  .buy-box {
    min-width: 150px;
    min-height: 450px;
  }

  .buy-box h2 {
    font-size: 1.25rem;
    margin: 0.75rem 1rem 0.5rem 1rem;
  }

  .buy-box .service-subtitle {
    font-size: 0.85rem;
    margin: 0 1rem 0.75rem 1rem;
  }

  .feature-highlights {
    margin: 0 1rem 0.75rem 1rem;
    gap: 0.4rem;
  }

  .highlight-item {
    gap: 0.5rem;
  }

  .highlight-icon {
    width: 28px;
    height: 28px;
    font-size: 1rem;
  }

  .highlight-text {
    font-size: 0.75rem;
  }

  .buy-box .service-image {
    margin: 0 1rem;
  }

  .buy-box .service-img {
    max-width: 180px;
  }

  .pricing-section {
    margin: auto 1rem 0 1rem;
  }

  .price-amount {
    font-size: 1.9rem;
  }

  .price-details {
    font-size: 0.75rem;
    margin-bottom: 1rem;
  }

  .btn--full-width {
    font-size: 0.9rem;
    padding: 0.875rem;
  }
}

/* =============================================================================
   REDUCED MOTION & ACCESSIBILITY
   ============================================================================= */

@media (prefers-reduced-motion: reduce) {
    .benefit-card,
    .project-card,
    .faq-item,
    .neighborhood-grid li,
    .btn--large,
    .buy-box {
        transition: none;
    }

    .benefit-card:hover,
    .project-card:hover,
    .faq-item:hover,
    .neighborhood-grid li:hover,
    .btn--primary.btn--large:hover,
    .btn--secondary.btn--large:hover,
    .buy-box:hover {
        transform: none;
    }

    .price-card::before {
        animation: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .benefit-card,
    .project-card,
    .faq-item,
    .price-card {
        border: 2px solid ButtonText;
    }

    .neighborhood-grid li {
        border: 1px solid ButtonText;
    }

    .btn--large {
        border: 2px solid ButtonText;
    }
}

/* Hide feature highlights on small screens */
@media (max-width: 449px) {
  .feature-highlights {
    display: none;
    margin: 0;
    padding: 0;
  }

  .buy-box .service-img {
    padding-bottom: 1.5rem;
  }
}