/**
 * County Pages CSS
 * Version: 1.2
 * Styling for Alabama county landing pages
 */

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-county {
    position: relative;
    min-height: 40vh;
    background: linear-gradient(135deg, #2c5282 0%, #1e3a5f 100%);
    display: flex;
    align-items: center;
    padding: 80px 20px 60px;
    overflow: hidden;
}

.hero-county::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/assets/images/alabama-concrete.jpg') center/cover no-repeat;
    opacity: 0.15;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 82, 130, 0.95) 0%, rgba(30, 58, 95, 0.98) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #ffffff;
}

.breadcrumb .separator {
    color: rgba(255, 255, 255, 0.5);
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.hero-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 32px 0;
    max-width: 700px;
    line-height: 1.6;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
    max-width: 600px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */

.section-white {
    background: #ffffff;
    padding: 80px 20px;
}

.section-light {
    background: #F0F7FF;
    padding: 80px 20px;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-intro h2 {
    font-size: 36px;
    font-weight: 700;
    color: #1A202C;
    margin: 0 0 16px 0;
}

.section-subtitle {
    font-size: 18px;
    color: #4A5568;
    line-height: 1.7;
    margin: 0;
}

/* ==========================================================================
   CHECKMARK LISTS - UNIVERSAL FIX
   ========================================================================== */

.service-features,
.benefit-features,
.why-list,
.feature-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.service-features li,
.benefit-features li,
.why-list li,
.feature-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    color: #4A5568;
}

.service-features li::before,
.benefit-features li::before,
.why-list li::before,
.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #27ae60;
    font-weight: bold;
    font-size: 18px;
}

/* ==========================================================================
   SERVICES GRID
   ========================================================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
}

.section-light .service-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    color: #2c5282;
}

.service-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1A202C;
    margin: 0 0 12px 0;
}

.service-card p {
    font-size: 16px;
    color: #4A5568;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   CITIES GRID
   ========================================================================== */

.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.city-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #2D3748;
    transition: all 0.3s ease;
}

.city-item:hover {
    background: #EDF2F7;
    border-color: #CBD5E0;
}

.city-icon {
    color: #2c5282;
    flex-shrink: 0;
}

.zip-codes {
    text-align: center;
    margin-top: 48px;
    padding-top: 48px;
    border-top: 2px solid #E2E8F0;
}

.zip-codes h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1A202C;
    margin: 0 0 16px 0;
}

.zip-list {
    font-size: 16px;
    color: #4A5568;
    line-height: 1.8;
    margin: 0;
}

/* ==========================================================================
   BENEFITS GRID
   ========================================================================== */

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.benefit-item {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: #F7FAFC;
    border-left: 4px solid #2c5282;
    border-radius: 8px;
}

.benefit-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2c5282;
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    border-radius: 50%;
}

.benefit-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1A202C;
    margin: 0 0 8px 0;
}

.benefit-item p {
    font-size: 15px;
    color: #4A5568;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   PROBLEMS GRID
   ========================================================================== */

.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.problem-card {
    padding: 28px;
    background: #ffffff;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.problem-card:hover {
    border-color: #2c5282;
    box-shadow: 0 4px 16px rgba(44, 82, 130, 0.1);
}

.problem-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1A202C;
    margin: 0 0 12px 0;
}

.problem-card p {
    font-size: 15px;
    color: #4A5568;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   PROCESS STEPS
   ========================================================================== */

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.step-item {
    text-align: center;
    padding: 32px 24px;
    background: #F7FAFC;
    border-radius: 12px;
    position: relative;
}

.step-number {
    font-size: 48px;
    font-weight: 700;
    color: #E2E8F0;
    margin-bottom: 16px;
    line-height: 1;
}

.step-item h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1A202C;
    margin: 0 0 12px 0;
}

.step-item p {
    font-size: 15px;
    color: #4A5568;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   KNOWLEDGE GRID
   ========================================================================== */

.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.knowledge-card {
    padding: 32px;
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.knowledge-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1A202C;
    margin: 0 0 12px 0;
}

.knowledge-card p {
    font-size: 15px;
    color: #4A5568;
    line-height: 1.7;
    margin: 0;
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    padding: 28px 0;
    border-bottom: 1px solid #E2E8F0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1A202C;
    margin: 0 0 12px 0;
}

.faq-item p {
    font-size: 16px;
    color: #4A5568;
    line-height: 1.7;
    margin: 0;
}

/* ==========================================================================
   CTA FINAL SECTION
   ========================================================================== */

.cta-final {
    background: linear-gradient(135deg, #5B7C99 0%, #445A72 100%);
    padding: 80px 20px;
    text-align: center;
}

.cta-final h2 {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 16px 0;
}

.cta-final p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 32px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.cta-note {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 24px;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: #ffffff;
    color: #2c5282;
    border: 2px solid #ffffff;
}

.btn-primary:hover {
    background: transparent;
    color: #ffffff;
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.btn-secondary:hover {
    background: #ffffff;
    color: #2c5282;
    border-color: #ffffff;
}

.btn-primary-solid {
    background: #ffffff;
    color: #2c5282;
    border: 2px solid #ffffff;
}

.btn-primary-solid:hover {
    background: #F7FAFC;
    border-color: #F7FAFC;
    color: #1e3a5f;
}

.btn-secondary-solid {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.btn-secondary-solid:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    color: #ffffff;
}

.btn-icon {
    flex-shrink: 0;
}

/* ==========================================================================
   COMPREHENSIVE SERVICE SECTIONS
   ========================================================================== */

.services-overview {
    padding-bottom: 40px;
}

.services-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-top: 40px;
    padding: 24px;
    background: #f8fafc;
    border-radius: 12px;
}

.service-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 16px;
    background: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    color: #1e3a5f;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
}

.service-nav-item:hover {
    border-color: #2c5282;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 82, 130, 0.15);
}

.service-nav-item svg {
    width: 32px;
    height: 32px;
    stroke: #2c5282;
}

.service-nav-item span {
    font-size: 14px;
    font-weight: 600;
}

/* Individual Service Sections */
.service-section {
    padding: 80px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.service-header {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 40px;
}

.service-icon-large {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2c5282 0%, #1e3a5f 100%);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(44, 82, 130, 0.2);
}

.service-icon-large svg {
    width: 48px;
    height: 48px;
    stroke: #ffffff;
}

.service-title-group h2 {
    margin: 0 0 8px 0;
    font-size: 36px;
    color: #1e3a5f;
}

.service-tagline {
    font-size: 20px;
    color: #2c5282;
    margin: 0;
    font-weight: 500;
}

.service-content {
    display: grid;
    gap: 40px;
}

.service-description .lead-text {
    font-size: 18px;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 32px;
}

.service-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.service-benefits h3,
.service-applications h3 {
    font-size: 20px;
    color: #1e3a5f;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}

.benefits-list,
.applications-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.benefits-list li,
.applications-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    font-size: 16px;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
}

.benefits-list li:last-child,
.applications-list li:last-child {
    border-bottom: none;
}

.check-icon {
    flex-shrink: 0;
    stroke: #059669;
    margin-top: 2px;
}

.arrow-icon {
    flex-shrink: 0;
    stroke: #2c5282;
    margin-top: 3px;
}

.service-cta-box {
    background: linear-gradient(135deg, #2c5282 0%, #1e3a5f 100%);
    border-radius: 16px;
    padding: 40px;
    color: #ffffff;
    text-align: center;
}

.service-cta-box h4 {
    font-size: 24px;
    margin: 0 0 12px 0;
    color: #ffffff;
}

.service-cta-box p {
    font-size: 16px;
    margin: 0 0 24px 0;
    opacity: 0.9;
    color: #ffffff;
}

.service-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.service-cta-buttons .btn-primary {
    background: #ffffff;
    color: #1e3a5f;
}

.service-cta-buttons .btn-primary:hover {
    background: #f8fafc;
}

.service-cta-buttons .btn-secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: #ffffff;
}

.service-cta-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
    .hero-county {
        min-height: 50vh;
        padding: 60px 20px 40px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .hero-ctas {
        flex-direction: column;
        width: 100%;
    }

    .hero-ctas .btn {
        width: 100%;
        justify-content: center;
    }

    .section-intro h2,
    .cta-final h2 {
        font-size: 28px;
    }

    .section-white,
    .section-light,
    .cta-final {
        padding: 60px 20px;
    }

    .services-grid,
    .cities-grid,
    .benefits-grid,
    .problems-grid,
    .process-steps,
    .knowledge-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .benefit-item {
        flex-direction: column;
        text-align: center;
    }

    /* Service sections responsive */
    .services-nav {
        grid-template-columns: repeat(2, 1fr);
        padding: 16px;
    }

    .service-nav-item {
        padding: 16px 12px;
    }

    .service-nav-item svg {
        width: 28px;
        height: 28px;
    }

    .service-nav-item span {
        font-size: 12px;
    }

    .service-section {
        padding: 60px 20px;
    }

    .service-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .service-title-group h2 {
        font-size: 28px;
    }

    .service-tagline {
        font-size: 17px;
    }

    .service-details-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .service-cta-box {
        padding: 32px 24px;
    }

    .service-cta-box h4 {
        font-size: 20px;
    }

    .service-cta-buttons {
        flex-direction: column;
    }

    .service-cta-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 26px;
    }

    .hero-description {
        font-size: 15px;
    }

    .stat-number {
        font-size: 24px;
    }

    .section-intro h2,
    .cta-final h2 {
        font-size: 24px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 15px;
    }
}
