/**
 * Livro - About Page Styles
 */

/* Page Banner Styling */
.page-banner {
    text-align: center;
}

.page-banner h1, 
.page-banner p {
    color: white;
}

.page-banner.yellow-bg h1,
.page-banner.yellow-bg p {
    color: var(--livro-dark);
}

.page-banner.cyan-bg {
    background-color: var(--livro-cyan);
}

/* About Story Section */
.about-story {
    padding: 6rem 0;
    background-color: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content h2 {
    color: var(--livro-cerulean);
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 1.5rem;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.5s ease;
}

.about-image img:hover {
    transform: scale(1.03);
}

/* Timeline Section */
.about-timeline {
    padding: 6rem 0;
    background-color: var(--livro-pearl);
    position: relative;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--livro-cyan);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    margin-bottom: 3rem;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--livro-yellow);
    border: 4px solid var(--livro-cyan);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-date {
    position: absolute;
    width: 120px;
    padding: 8px 16px;
    background-color: var(--livro-cyan);
    color: white;
    text-align: center;
    border-radius: 6px;
    font-weight: bold;
    top: 10px;
}

.timeline-item:nth-child(odd) .timeline-date {
    right: -140px;
}

.timeline-item:nth-child(even) .timeline-date {
    left: -140px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.timeline-content h3 {
    font-size: 24px;
    color: var(--livro-cerulean);
    margin-bottom: 10px;
}

/* About Mission Section */
.about-mission {
    padding: 7rem 0;
    background-color: white;
    position: relative;
    overflow: hidden;
}

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

.mission-content h2 {
    color: var(--livro-cerulean);
    margin-bottom: 1.5rem;
}

.mission-content > p {
    font-size: 20px;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

.value-card {
    padding: 2.5rem;
    border-radius: 12px;
    background-color: var(--livro-pearl);
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.value-icon {
    width: 80px;
    height: 80px;
    background-color: var(--livro-yellow);
    color: var(--livro-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.value-card:hover .value-icon {
    transform: scale(1.1) rotate(10deg);
    background-color: var(--livro-cyan);
    color: white;
}

.value-icon .material-symbols-rounded {
    font-size: 40px;
}

.value-card h3 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 24px;
    color: var(--livro-cerulean);
}

.value-card p {
    text-align: center;
    margin-bottom: 0;
}

/* Team Section */
.about-team {
    padding: 7rem 0;
    background-color: var(--livro-pearl);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.team-member {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.team-photo {
    position: relative;
    overflow: hidden;
}

.team-photo img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.team-member:hover .team-photo img {
    transform: scale(1.05);
}

.team-social {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    display: flex;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
}

.team-member:hover .team-social {
    opacity: 1;
    transform: translateY(0);
}

.team-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: white;
    color: var(--livro-cerulean);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
}

.team-social a:hover {
    background-color: var(--livro-yellow);
    color: var(--livro-dark);
    transform: scale(1.1);
}

.team-social .material-symbols-rounded {
    font-size: 20px;
}

.team-member h3 {
    margin: 1.5rem 0 0.5rem;
    font-size: 22px;
    padding: 0 1.5rem;
    color: var(--livro-cerulean);
}

.team-role {
    color: var(--livro-cyan);
    font-weight: 500;
    padding: 0 1.5rem;
    margin-bottom: 0.8rem;
}

.team-member p {
    padding: 0 1.5rem 1.5rem;
    font-size: 15px;
    color: var(--livro-dark);
}

/* Office Section */
.about-office {
    padding: 7rem 0;
    background-color: white;
}

.office-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.office-content h2 {
    color: var(--livro-cerulean);
    margin-bottom: 1.5rem;
}

.office-content p {
    margin-bottom: 1.5rem;
}

.office-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 15px;
    width: 100%;
}

.gallery-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-image:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-image:hover .gallery-overlay {
    opacity: 1;
}

.gallery-icon {
    color: white;
    font-size: 32px;
    background-color: rgba(255, 255, 255, 0.2);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    position: relative;
    margin: auto;
    padding: 0;
    width: 80%;
    max-width: 900px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.lightbox-image {
    display: block;
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.lightbox-caption {
    margin: auto;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: white;
    padding: 10px 0;
    height: 50px;
}

/* Clients Section */
.about-clients {
    padding: 7rem 0;
    background-color: var(--livro-pearl);
}

.client-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4rem;
    margin: 4rem 0;
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 100px;
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.client-logo:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.client-logo img {
    max-width: 100%;
    max-height: 80px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s, opacity 0.3s;
}

.client-logo:hover img {
    filter: grayscale(0);
    opacity: 1;
}

/* Careers Section */
.about-careers {
    padding: 7rem 0;
    background-color: white;
}

.careers-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.careers-content h2 {
    color: var(--livro-cerulean);
    margin-bottom: 1rem;
}

.careers-content > p {
    font-size: 20px;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.job-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.job-card {
    background-color: var(--livro-pearl);
    border-radius: 12px;
    padding: 2rem;
    text-align: left;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.job-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.job-department {
    color: var(--livro-cyan);
    font-weight: 600;
    margin-bottom: 0.8rem;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.job-title {
    font-size: 24px;
    color: var(--livro-cerulean);
    margin-bottom: 0.5rem;
}

.job-location {
    color: var(--livro-dark);
    margin-bottom: 1.5rem;
    font-size: 16px;
    display: flex;
    align-items: center;
}

.job-location::before {
    content: '📍';
    margin-right: 8px;
}

.job-card .btn {
    margin-top: auto;
}

.careers-cta {
    background-color: var(--livro-pearl);
    border-radius: 12px;
    padding: 2.5rem;
    margin-top: 2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.careers-cta p {
    font-size: 20px;
    margin-bottom: 1.5rem;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .about-grid,
    .office-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .values-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .timeline::before {
        left: 40px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 80px;
        padding-right: 0;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-dot {
        left: 30px;
        right: auto;
    }
    
    .timeline-item:nth-child(even) .timeline-dot {
        left: 30px;
    }
    
    .timeline-date {
        position: relative;
        width: auto;
        display: inline-block;
        margin-bottom: 10px;
        left: auto !important;
        right: auto !important;
        top: auto;
    }
}

@media (max-width: 768px) {
    .about-story,
    .about-timeline,
    .about-mission,
    .about-team,
    .about-office,
    .about-clients,
    .about-careers {
        padding: 4rem 0;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    .team-member h3 {
        font-size: 20px;
    }
    
    .team-role {
        font-size: 14px;
    }
    
    .office-gallery {
        grid-template-columns: 1fr;
    }
    
    .client-logos {
        gap: 2rem;
    }
    
    .client-logo {
        width: 140px;
        height: 80px;
    }
    
    .lightbox-content {
        width: 95%;
    }
}

@media (max-width: 480px) {
    .about-story,
    .about-timeline,
    .about-mission,
    .about-team,
    .about-office,
    .about-clients,
    .about-careers {
        padding: 3rem 0;
    }
    
    .timeline-item {
        padding-left: 60px;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-dot {
        left: 10px;
    }
    
    .timeline-item:nth-child(even) .timeline-dot {
        left: 10px;
    }
    
    .timeline-content {
        padding: 15px;
    }
    
    .timeline-content h3 {
        font-size: 18px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .job-cards {
        grid-template-columns: 1fr;
    }
    
    .careers-cta {
        padding: 1.5rem;
    }
    
    .careers-cta p {
        font-size: 16px;
    }
}