/* =====================================================
   SERVICE PAGES SHARED STYLES
   =====================================================
   Add this file to your wwwroot/css/ folder and link it
   in your App.razor or _Host.cshtml after app.css:
   
   <link href="css/service-pages.css" rel="stylesheet" />
   ===================================================== */

/* ===== TEXT COLOR FIXES FOR LIGHT BACKGROUNDS ===== */

/* Section Headers - Used across all service pages */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* General Typography on Light Backgrounds */
h3 {
    color: var(--text-primary);
}

h4 {
    color: var(--text-primary);
}

/* Paragraphs in light sections */
p {
    color: var(--text-muted);
}

/* Strong/Bold text */
strong, b {
    color: inherit;
}

/* ===== SERVICE HERO SECTION ===== */
.service-hero {
    position: relative;
    padding: 100px 0 80px;
    background: var(--gradient-hero);
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    overflow: hidden;
}

.service-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.service-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 85, 48, 0.92) 0%, rgba(26, 32, 44, 0.95) 100%);
    z-index: 2;
}

.service-hero .container {
    position: relative;
    z-index: 3;
}

.service-hero .hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Hero Text - Always White */
.service-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.service-hero p,
.service-hero .hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.service-hero strong {
    color: var(--accent-color);
}

/* Service Badge */
.service-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.25rem;
    border-radius: var(--border-radius-pill);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.service-badge span {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
}

.badge-icon {
    font-size: 1.25rem;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hero CTA Buttons */
.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-cta .btn {
    min-width: 200px;
}

.hero-cta .phone-icon {
    margin-right: 0.5rem;
}

/* ===== DARK SECTION STYLES ===== */
/* For sections with dark/gradient backgrounds */

.gradient-dark,
[class*="gradient-dark"],
section[style*="gradient-dark"] {
    color: white;
}

.gradient-dark h2,
.gradient-dark h3,
.gradient-dark h4,
.gradient-dark p {
    color: white;
}

.gradient-dark .section-header h2 {
    color: white;
}

.gradient-dark .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

/* ===== CARD STYLES ===== */

/* Generic service card */
.service-card,
.reason-card,
.serve-card,
.structure-card,
.project-card,
.choose-card,
.perfect-card,
.haul-category {
    background: white;
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
}

.service-card h3,
.reason-card h3,
.serve-card h3,
.structure-card h3,
.project-card h3,
.choose-card h3,
.haul-category h3 {
    color: var(--text-primary);
}

.service-card p,
.reason-card p,
.serve-card p,
.structure-card p,
.project-card p,
.choose-card p,
.haul-category p {
    color: var(--text-muted);
}

/* Cards on dark backgrounds */
.perfect-card h3 {
    color: white;
}

.perfect-card p {
    color: rgba(255, 255, 255, 0.85);
}

/* ===== FAQ STYLES ===== */

.faq-item h3 {
    color: var(--text-primary);
}

.faq-item p {
    color: var(--text-muted);
}

.faq-item a {
    color: var(--primary-color);
    font-weight: 600;
}

/* ===== PRICING STYLES ===== */

.pricing-card h3,
.tier-card h3 {
    color: var(--text-primary);
}

.pricing-card p,
.tier-card p {
    color: var(--text-muted);
}

.price,
.tier-price .amount {
    color: var(--primary-color);
}

.pricing-includes li {
    color: var(--text-muted);
}

/* ===== CTA SECTIONS ===== */
/* These have dark/colored backgrounds, so text should be white */

section[class*="-cta"] {
    color: white;
}

section[class*="-cta"] h2 {
    color: white;
}

section[class*="-cta"] p {
    color: rgba(255, 255, 255, 0.9);
}

section[class*="-cta"] .cta-badges span,
section[class*="-cta"] .cta-features span {
    color: rgba(255, 255, 255, 0.9);
}

/* ===== SERVICE AREA STYLES ===== */

.area-box h3,
.area-block h3,
.area-region h3 {
    color: var(--text-primary);
}

.area-box p,
.area-block p {
    color: var(--text-muted);
}

.areas-note,
.areas-cta,
.area-cta {
    color: var(--text-muted);
}

.areas-note a,
.areas-cta a,
.area-cta a {
    color: var(--primary-color);
}

/* ===== PROCESS/STEPS STYLES ===== */

/* Light background process steps */
.process-card h3,
.simple-step h3 {
    color: var(--text-primary);
}

.process-card p,
.simple-step p {
    color: var(--text-muted);
}

/* Dark background process steps (like shed-process) */
.shed-process .process-card h3,
.shed-process .process-card p {
    color: white;
}

.shed-process .process-card p {
    color: rgba(255, 255, 255, 0.85);
}

/* ===== BENEFIT STYLES ===== */

.benefit-text h4,
.benefit-info h3 {
    color: var(--text-primary);
}

.benefit-text p,
.benefit-info p {
    color: var(--text-muted);
}

/* Benefits on dark backgrounds */
.why-debris .benefit-info h3 {
    color: white;
}

.why-debris .benefit-info p {
    color: rgba(255, 255, 255, 0.85);
}

/* ===== MATERIAL/CATEGORY LISTS ===== */

.material-category h3,
.material-header h3 {
    color: var(--text-primary);
}

.material-category li,
.haul-category li {
    color: var(--text-muted);
}

/* ===== NOTE/WARNING BOXES ===== */

.materials-note h4,
.haul-note h4 {
    color: #dc2626;
}

.materials-note p,
.haul-note p {
    color: #991b1b;
}

.note-content h4 {
    color: var(--text-primary);
}

.note-content p {
    color: var(--text-muted);
}

/* ===== GALLERY/SHOWCASE STYLES ===== */

.showcase-info h3 {
    color: var(--text-primary);
}

.showcase-info p {
    color: var(--text-muted);
}

/* ===== CHAMBER BADGE SECTION ===== */

.chamber-info h3 {
    color: #92400e;
}

.chamber-info p {
    color: #a16207;
}

/* ===== COMPARISON TABLES ===== */

.compare-row.header {
    background: var(--text-primary);
    color: white;
}

.compare-row:not(.header) {
    color: var(--text-muted);
}

.compare-row .savings {
    color: var(--success-color);
}

/* ===== LOCATION CARDS ===== */

.location-card h4 {
    color: var(--text-primary);
}

.location-card p {
    color: var(--text-muted);
}

/* ===== LIST STYLES ===== */

.serve-card li,
.pricing-includes li {
    color: var(--text-muted);
}

/* ===== TAGS & BADGES ===== */

.city-tag {
    color: var(--text-muted);
}

.city-tag.primary {
    color: white;
}

.structure-types span {
    color: var(--text-muted);
}

/* ===== RESPONSIVE HERO ===== */

@media (max-width: 992px) {
    .service-hero {
        padding: 80px 0 60px;
    }

    .service-hero h1 {
        font-size: 2.5rem;
    }

    .service-hero .hero-description {
        font-size: 1.1rem;
    }

    .hero-stats {
        gap: 2rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .service-hero {
        padding: 60px 0 50px;
    }

    .service-hero h1 {
        font-size: 2rem;
    }

    .service-hero .hero-description {
        font-size: 1rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

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

    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-header p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .service-hero h1 {
        font-size: 1.75rem;
    }

    .service-badge {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }
}
