/* ===================================
   SA Consulting - Pages Stylesheet
   Additional styles for internal pages
   =================================== */

/* === Page Hero === */
.page-hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 100px 100px;
    opacity: 0.3;
}

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

.page-title {
    color: white;
    font-size: 3rem;
    margin-bottom: 20px;
}

.page-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
}

/* === Timeline === */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 50px auto 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-red), var(--secondary-blue));
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    gap: 30px;
    margin-bottom: 50px;
    align-items: center;
}

.timeline-item:nth-child(even) .timeline-content {
    grid-column: 1;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-icon {
    grid-column: 2;
}

.timeline-item:nth-child(odd) .timeline-content {
    grid-column: 3;
}

.timeline-item:nth-child(odd) .timeline-icon {
    grid-column: 2;
}

.timeline-icon {
    width: 80px;
    height: 80px;
    background: white;
    border: 4px solid var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-red);
    z-index: 2;
    position: relative;
    box-shadow: 0 5px 20px rgba(211, 47, 47, 0.2);
}

.timeline-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.timeline-year {
    display: inline-block;
    background: var(--primary-red);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.timeline-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.timeline-content p {
    color: var(--text-gray);
    line-height: 1.7;
}

/* === Mission Section === */
.mission-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.mission-text p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--text-gray);
    font-size: 1.05rem;
}

.mission-visual {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mission-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-red);
    transition: var(--transition);
}

.mission-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-hover);
}

.mission-card i {
    font-size: 2rem;
    color: var(--primary-red);
    margin-bottom: 15px;
}

.mission-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.mission-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* === Team Leader === */
.team-leader {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    max-width: 900px;
    margin: 0 auto;
}

.leader-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: white;
    box-shadow: var(--shadow-hover);
}

.leader-info h3 {
    font-size: 2rem;
    margin-bottom: 5px;
}

.leader-role {
    color: var(--primary-red);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.leader-bio {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 15px;
}

/* === Approach Grid === */
.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.approach-step {
    background: white;
    padding: 35px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.approach-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--secondary-blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.approach-step:hover::before {
    transform: scaleX(1);
}

.approach-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.step-number {
    display: inline-block;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-red-dark));
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.approach-step h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.approach-step p {
    color: var(--text-gray);
    line-height: 1.7;
}

/* === Values Grid === */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.value-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border-top: 3px solid transparent;
}

.value-card:hover {
    border-top-color: var(--primary-red);
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: rgba(211, 47, 47, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-red);
}

.value-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.value-card p {
    color: var(--text-gray);
    line-height: 1.7;
}

/* === Services Detailed === */
.services-detailed {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.service-block {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--primary-red);
}

.service-block h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.service-block p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 20px;
}

.service-block ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-block ul li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-gray);
}

.service-block ul li i {
    color: var(--primary-red);
    margin-top: 5px;
    flex-shrink: 0;
}

/* === Workflow Visual === */
.workflow-visual {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 50px 0;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.workflow-step {
    text-align: center;
    flex: 1;
    min-width: 150px;
}

.workflow-step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-red-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    position: relative;
}

.workflow-step-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: 50px;
    height: 3px;
    background: var(--border-color);
    transform: translateY(-50%);
}

.workflow-step:last-child .workflow-step-icon::after {
    display: none;
}

.workflow-step h4 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.workflow-step p {
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* === FAQ Section === */
.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-question {
    width: 100%;
    padding: 25px 30px;
    background: none;
    border: none;
    text-align: left;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary-red);
}

.faq-question i {
    font-size: 1.2rem;
    color: var(--primary-red);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 30px;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 30px 25px;
}

.faq-answer p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* === Contact Form === */
.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 30px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-red);
    margin-top: 3px;
}

.contact-item-content h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-item-content p,
.contact-item-content a {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.contact-item-content a:hover {
    color: var(--primary-red);
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-submit {
    width: 100%;
}

/* === Blog Grid === */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.blog-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, var(--primary-red-light) 0%, var(--secondary-blue-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.blog-content {
    padding: 30px;
}

.blog-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.blog-excerpt {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 20px;
}

.blog-link {
    color: var(--primary-red);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.blog-link:hover {
    gap: 12px;
}

/* === CTA Buttons === */
.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* === Content Wrapper === */
.content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

/* === Responsive - Pages === */
@media (max-width: 1024px) {
    .timeline::before {
        left: 40px;
    }
    
    .timeline-item {
        grid-template-columns: 80px 1fr;
        gap: 20px;
    }
    
    .timeline-item:nth-child(even) .timeline-content,
    .timeline-item:nth-child(odd) .timeline-content {
        grid-column: 2;
        text-align: left;
    }
    
    .timeline-item:nth-child(even) .timeline-icon,
    .timeline-item:nth-child(odd) .timeline-icon {
        grid-column: 1;
    }
    
    .mission-content,
    .contact-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 120px 0 60px;
    }
    
    .page-title {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 15px;
    }
    
    .page-subtitle {
        font-size: 1.05rem;
        line-height: 1.6;
    }
    
    /* Better content wrapper */
    .content-wrapper {
        padding: 0 5px;
    }
    
    /* Timeline improvements */
    .timeline-icon {
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
    }
    
    .timeline-content {
        padding: 25px 20px;
    }
    
    .timeline-content h3 {
        font-size: 1.25rem;
        line-height: 1.4;
    }
    
    .timeline-content p {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .timeline-year {
        font-size: 0.85rem;
        padding: 6px 14px;
    }
    
    /* Mission improvements */
    .mission-text p {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 18px;
    }
    
    .mission-card {
        padding: 25px 20px;
    }
    
    .mission-card h4 {
        font-size: 1.15rem;
    }
    
    .mission-card p {
        font-size: 0.95rem;
    }
    
    /* Team leader */
    .team-leader {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
        padding: 35px 25px;
    }
    
    .leader-image {
        margin: 0 auto;
        width: 160px;
        height: 160px;
        font-size: 4rem;
    }
    
    .leader-info h3 {
        font-size: 1.6rem;
    }
    
    .leader-role {
        font-size: 1.05rem;
    }
    
    .leader-bio {
        font-size: 1rem;
        line-height: 1.7;
        text-align: left;
    }
    
    /* Workflow */
    .workflow-visual {
        flex-direction: column;
        padding: 30px 20px;
        gap: 25px;
    }
    
    .workflow-step {
        width: 100%;
    }
    
    .workflow-step-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .workflow-step-icon::after {
        display: none;
    }
    
    .workflow-step h4 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .workflow-step p {
        font-size: 0.95rem;
    }
    
    /* Approach and values grids */
    .approach-grid,
    .values-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .approach-step,
    .value-card {
        padding: 30px 22px;
    }
    
    .approach-step h3,
    .value-card h3 {
        font-size: 1.2rem;
        line-height: 1.4;
    }
    
    .approach-step p,
    .value-card p {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .step-number {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
        margin-bottom: 18px;
    }
    
    .value-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    /* Blog grid */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .blog-card {
        margin-bottom: 10px;
    }
    
    .blog-image {
        height: 200px;
        font-size: 2.5rem;
    }
    
    .blog-content {
        padding: 25px 20px;
    }
    
    .blog-title {
        font-size: 1.25rem;
        line-height: 1.4;
        margin-bottom: 12px;
    }
    
    .blog-excerpt {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .blog-meta {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }
    
    /* FAQ improvements */
    .faq-question {
        font-size: 1.05rem;
        padding: 20px 22px;
        line-height: 1.5;
    }
    
    .faq-question i {
        font-size: 1.1rem;
    }
    
    .faq-answer {
        padding: 0 22px;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 22px 22px;
    }
    
    .faq-answer p {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    /* Contact improvements */
    .contact-item {
        gap: 12px;
        padding: 8px 0;
    }
    
    .contact-item i {
        font-size: 1.4rem;
    }
    
    .contact-item-content h4 {
        font-size: 1.1rem;
        margin-bottom: 6px;
    }
    
    .contact-item-content p,
    .contact-item-content a {
        font-size: 1rem;
    }
    
    /* Services detailed */
    .services-detailed {
        gap: 30px;
    }
    
    .service-block {
        padding: 30px 22px;
    }
    
    .service-block h3 {
        font-size: 1.3rem;
        line-height: 1.4;
        margin-bottom: 18px;
    }
    
    .service-block p {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 18px;
    }
    
    .service-block ul li {
        font-size: 1rem;
        line-height: 1.7;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .page-hero {
        padding: 110px 0 50px;
    }
    
    .page-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 7px 16px;
    }
    
    .contact-form {
        padding: 25px 18px;
    }
    
    .service-block {
        padding: 25px 18px;
    }
    
    .timeline-content {
        padding: 22px 18px;
    }
    
    .approach-step,
    .value-card {
        padding: 28px 20px;
    }
    
    .mission-card {
        padding: 22px 18px;
    }
    
    .blog-content {
        padding: 22px 18px;
    }
    
    /* Better contrast for small screens */
    body {
        font-size: 16px;
    }
    
    p {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .container {
        padding: 0 18px;
    }
}