/* ==========================================================================
   MODERN PAGE STYLES - Services & Projects Pages
   ========================================================================== */

/* Modern Hero Section */
.modern-hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--primary-green) 0%, #0a4d28 100%);
    padding: 5rem 0 4rem;
    overflow: hidden;
    width: 100%;
}

.hero-background-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content-center {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-label {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.modern-hero-section .page-title {
    color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.modern-hero-section .page-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.modern-hero-section .breadcrumb {
    justify-content: center;
    display: flex;
    margin-top: 1.5rem;
}

.modern-hero-section .breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
}

.modern-hero-section .breadcrumb .separator {
    color: rgba(255, 255, 255, 0.5);
}

.modern-hero-section .breadcrumb span {
    color: rgba(255, 255, 255, 0.6);
}

/* Services Page Specific Styles */
.services-intro-modern {
    margin: 3rem 0;
}

.intro-content-box {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.intro-lead {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--secondary-gray);
}

/* Modern Services Grid */
.services-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.service-card-modern {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.service-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), #0a4d28);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(14, 107, 56, 0.15);
}

.service-card-modern:hover::before {
    transform: scaleX(1);
}

.service-card-icon-large {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1;
}

.service-card-title {
    font-size: 1.5rem;
    color: var(--primary-black);
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-card-description {
    color: var(--secondary-gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1;
}

.service-highlights {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.service-highlights li {
    padding: 0.5rem 0;
    color: var(--secondary-gray);
    font-size: 0.95rem;
    position: relative;
    padding-left: 1.75rem;
}

.service-highlights li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: 700;
    font-size: 1.1rem;
}

.service-learn-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-green);
    font-weight: 600;
    font-size: 1rem;
    margin-top: 1rem;
    transition: gap 0.3s ease;
    text-decoration: none;
}

.service-learn-more:hover {
    gap: 0.75rem;
}

.service-learn-more svg {
    transition: transform 0.3s ease;
}

.service-learn-more:hover svg {
    transform: translateX(4px);
}

/* Section Styling */
.section-header-center {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.section-label {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(14, 107, 56, 0.1);
    border-radius: 50px;
    color: var(--primary-green);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-black);
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-description {
    font-size: 1.125rem;
    color: var(--secondary-gray);
    line-height: 1.7;
}

/* Gray Section Background */
.section-gray {
    background: #F7F9FA;
    padding: 4rem 0;
    margin: 4rem 0;
    border-radius: 24px;
}

/* Green Section Background */
.section-green {
    background: linear-gradient(135deg, var(--primary-green) 0%, #0a4d28 100%);
    color: white;
    padding: 4rem 0;
    margin: 4rem 0;
    border-radius: 24px;
}

.section-green h2,
.section-green h3,
.section-green p {
    color: white;
}

/* Features Grid */
.features-grid-4col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card-small {
    text-align: center;
    padding: 2rem 1.5rem;
    background: white;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-card-small:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.feature-icon-circle {
    width: 70px;
    height: 70px;
    background: rgba(14, 107, 56, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.feature-card-small h4 {
    font-size: 1.125rem;
    color: var(--primary-black);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.feature-card-small p {
    color: var(--secondary-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Modern Process Steps */
.process-steps-modern {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.process-step-modern {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.process-step-modern:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 20px rgba(14, 107, 56, 0.12);
}

.step-number-modern {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-green), #0a4d28);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.step-content-modern h3 {
    font-size: 1.25rem;
    color: var(--primary-black);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.step-content-modern p {
    color: var(--secondary-gray);
    line-height: 1.7;
    margin: 0;
}

/* Modern CTA Section */
.cta-section-modern {
    background: linear-gradient(135deg, var(--primary-green) 0%, #0a4d28 100%);
    border-radius: 20px;
    padding: 3.5rem;
    margin: 4rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content-modern {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.cta-text-side h2 {
    color: white;
    font-size: 2.25rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta-text-side p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    line-height: 1.7;
    margin: 0;
}

.cta-buttons-side {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.btn-white {
    background: white;
    color: var(--primary-green);
    border: 2px solid white;
}

.btn-white:hover {
    background: transparent;
    color: white;
}

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

.btn-outline-white:hover {
    background: white;
    color: var(--primary-green);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

/* Projects Page Styles */
.project-filter-section {
    margin: 3rem 0 4rem;
    padding: 2.5rem 0;
    background: #F9FAFB;
    border-radius: 16px;
}

.filter-section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.filter-section-header h3 {
    font-size: 1.5rem;
    color: var(--primary-black);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.filter-section-header p {
    color: var(--secondary-gray);
    font-size: 0.95rem;
    margin: 0;
}

.project-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0rem;
}

.project-filter-buttons .filter-btn {
    padding: 0.875rem 1.5rem;
    background: white;
    border: 2px solid #E5E7EB;
    color: var(--secondary-gray);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-heading);
    white-space: nowrap;
}

.project-filter-buttons .filter-btn:hover {
    background: rgba(14, 107, 56, 0.05);
    border-color: var(--primary-green);
    color: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 107, 56, 0.1);
}

.project-filter-buttons .filter-btn.active {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
    box-shadow: 0 4px 16px rgba(14, 107, 56, 0.25);
}

.btn-secondary-outline {
    background: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

.btn-secondary-outline:hover {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
}

.modern-project-card-content {
    padding: 1.5rem;
}

.modern-project-card-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.modern-project-card-title a {
    color: var(--primary-black);
    text-decoration: none;
    transition: color 0.3s ease;
}

.modern-project-card-title a:hover {
    color: var(--primary-green);
}

.project-card-overlay-modern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(14, 107, 56, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card-image:hover .project-card-overlay-modern {
    opacity: 1;
}

.view-project-btn {
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.view-project-btn span {
    font-size: 1rem;
}

.no-results-modern {
    text-align: center;
    padding: 5rem 2rem;
}

.no-results-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
}

.no-results-modern h2 {
    font-size: 2rem;
    color: var(--primary-black);
    margin-bottom: 1rem;
}

.no-results-modern p {
    font-size: 1.125rem;
    color: var(--secondary-gray);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.projects-cta-section {
    margin-top: 4rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .modern-hero-section .page-title {
        font-size: 2.5rem;
    }

    .services-grid-modern {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .cta-content-modern {
        flex-direction: column;
        text-align: center;
    }

    .cta-buttons-side {
        flex-direction: column;
        width: 100%;
    }

    .cta-buttons-side .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .modern-hero-section {
        padding: 3rem 0 2rem;
        overflow-x: hidden;
    }

    .hero-content-center {
        padding: 0 1rem;
    }

    .modern-hero-section .page-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .modern-hero-section .page-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .modern-hero-section .breadcrumb {
        display: none;
    }

    .services-intro-modern {
        margin: 2rem 0 1rem;
    }

    .services-grid-modern {
        padding: 0;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card-modern {
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .section-title {
        font-size: 1.875rem;
    }

    .section {
        padding: 2rem 0;
    }

    .features-grid-4col {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .process-step-modern {
        flex-direction: column;
        text-align: center;
    }

    .step-number-modern {
        margin: 0 auto;
    }

    .cta-section-modern {
        padding: 2.5rem 1.5rem;
    }

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

    .section-gray {
        padding: 3rem 1.5rem;
        margin: 3rem -1.5rem;
        border-radius: 0;
    }

    .section-green {
        padding: 3rem 1.5rem;
        margin: 3rem -1.5rem;
        border-radius: 0;
    }

    .project-filter-section {
        margin: 2rem 0 3rem;
        padding: 1.5rem 0;
    }

    .project-filter-buttons {
        gap: 0.75rem;
    }

    .project-filter-buttons .filter-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
}
