/* CTO as a Service page styles */

body {
    grid-template-columns: 1fr;
    grid-template-areas: 
                         "nav"
                         "header"
                         "service_intro"
                         "transformation_path"
                         "phases_detail"
                         "cta_section"
                         "footer";
}

body > header {
    grid-area: header;
    height: 250px;
    max-height: 250px;
    padding: 60px 20px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

#service_intro {
    grid-area: service_intro;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

#service_intro .intro-content {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
}

#service_intro .intro-text {
    flex: 1;
    min-width: 300px;
}

#service_intro .intro-image {
    flex: 0 0 150px;
}

#service_intro .intro-image img {
    width: 150px;
    height: auto;
}

/* Transformation Pathway Section */
#transformation_path {
    grid-area: transformation_path;
    background: var(--intercalated-background);
    padding: 40px 20px;
}

.pathway-container {
    max-width: 1400px;
    margin: 0 auto;
}

.pathway-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.pathway-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
}

/* Status Legend */
.status-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.status-dot {
    width: 20px;
    height: 12px;
    border-radius: 3px;
}

.status-pending { background: #9e9e9e; }
.status-diagnosis { background: #ffc107; }
.status-execution { background: #ff9800; }
.status-optimization { background: #4caf50; }

/* Pillars Header */
.pillars-header {
    display: grid;
    grid-template-columns: 250px repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 20px;
}

.pillar-header {
    background: var(--primary-color);
    color: white;
    padding: 12px 8px;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
}

.pillar-header.empty {
    background: transparent;
}

/* Phase Sections */
.phase-section {
    margin-bottom: 20px;
}

.phase-header {
    background: #b71c1c;
    color: white;
    padding: 10px 15px;
    font-weight: bold;
    border-radius: 4px 4px 0 0;
    font-size: 14px;
}

.phase-header.phase-1 { background: #1565c0; }
.phase-header.phase-2 { background: #2e7d32; }
.phase-header.phase-3 { background: #f57c00; }
.phase-header.phase-4 { background: #7b1fa2; }

.phase-projects {
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
}

.project-row {
    display: grid;
    grid-template-columns: 250px repeat(7, 1fr);
    gap: 4px;
    padding: 8px;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.project-row:last-child {
    border-bottom: none;
}

.project-name {
    font-size: 13px;
    color: #333;
    padding-right: 10px;
}

.project-bar {
    height: 20px;
    border-radius: 3px;
    position: relative;
}

.bar-pending { background: linear-gradient(90deg, #9e9e9e 0%, #9e9e9e 100%); }
.bar-diagnosis { background: linear-gradient(90deg, #ffc107 0%, #ffc107 100%); }
.bar-execution { background: linear-gradient(90deg, #ff9800 0%, #ff9800 100%); }
.bar-optimization { background: linear-gradient(90deg, #4caf50 0%, #4caf50 100%); }

/* Phases Detail Section */
#phases_detail {
    grid-area: phases_detail;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.phase-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-top: 4px solid var(--primary-color);
}

.phase-card.phase-1 { border-top-color: #1565c0; }
.phase-card.phase-2 { border-top-color: #2e7d32; }
.phase-card.phase-3 { border-top-color: #f57c00; }
.phase-card.phase-4 { border-top-color: #7b1fa2; }

.phase-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 18px;
}

.phase-card .phase-number {
    font-size: 12px;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 15px;
}

.phase-1 .phase-number { background: #1565c0; }
.phase-2 .phase-number { background: #2e7d32; }
.phase-3 .phase-number { background: #f57c00; }
.phase-4 .phase-number { background: #7b1fa2; }

.phase-card ul {
    list-style: none;
    padding: 0;
}

.phase-card li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #555;
}

.phase-card li:last-child {
    border-bottom: none;
}

.phase-card li::before {
    content: "→ ";
    color: var(--secondary-color);
}

/* CTA Section */
#cta_section {
    grid-area: cta_section;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 50px 20px;
    text-align: center;
    color: white;
}

#cta_section h2 {
    color: white;
    margin-bottom: 15px;
}

#cta_section p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 25px;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 900px) {
    .pillars-header {
        display: none;
    }
    
    .project-row {
        grid-template-columns: 1fr;
    }
    
    .project-bar {
        height: 15px;
        margin-top: 5px;
    }
}

@media (max-width: 600px) {
    body > header {
        height: auto;
        padding: 40px 15px;
    }
    
    #service_intro .intro-content {
        flex-direction: column;
        text-align: center;
    }
}
