/* Import base styles */
@import url('styles.css');

/* Company Page Specific Styles */

.nav-link.active {
    color: var(--english-red);
}

/* Company Hero Section */
.company-hero {
    background: var(--beige);
    padding: 100px 0 40px; /* Changed from 80px to 40px */
    /* min-height: 80vh; */ /* Commented out min-height */
    display: flex;
    align-items: flex-start;
    padding-top: 200px;
}

.company-hero-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.company-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.company-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

/* Mission Detail Section */
.mission-detail-section {
    padding: 8rem 0;
    background: white;
}

.mission-detail-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 5rem;
    align-items: center;
}

.mission-description {
    font-size: 1.3rem;
    color: var(--text-light);
    line-height: 1.8;
}

.mission-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.mission-icon {
    font-size: 8rem;
    color: var(--english-red);
    opacity: 0.8;
    animation: pulse 3s ease-in-out infinite;
}

/* Mission title wrapper for mobile */
.mission-title-wrapper {
    display: none;
}

/* Hide desktop mission icon on mobile */
@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
    
    .mission-title-wrapper {
        display: flex;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .mission-title-wrapper .mission-icon {
        font-size: 2.5rem;
        animation: none;
    }
    
    .mission-title-wrapper .section-title {
        margin: 0;
    }
}

/* Show mission visual on desktop only */
@media (min-width: 769px) {
    .mission-title-wrapper {
        display: none;
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

/* Story Section */
.story-section {
    padding: 8rem 0;
    background: var(--beige);
}

.story-content {
    max-width: 900px;
    margin: 0 auto;
}

.story-block {
    margin-bottom: 4rem;
    padding: 3rem;
    background: white;
    border-radius: 20px;
    border-left: 5px solid var(--english-red);
    transition: all 0.3s ease;
}

.story-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(160, 82, 79, 0.1);
}

.story-block h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.story-block p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* Team Section */
.team-section {
    padding: 8rem 0;
    background: white;
}

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

.team-member {
    background: var(--beige);
    padding: 3rem 2rem;
    border-radius: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

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

.member-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(160, 82, 79, 0.1);
}

.avatar-join-placeholder {
    font-size: 3rem;
    color: var(--english-red);
}
.avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    
}

.member-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.member-role {
    font-size: 1.1rem;
    color: var(--english-red);
    font-weight: 600;
    margin-bottom: 1rem;
}

.member-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.join-team {
    border: 2px dashed var(--english-red);
    background: transparent;
}

.join-team .member-avatar {
    background: var(--english-red);
}

.join-team .avatar-placeholder {
    color: white;
    font-size: 2rem;
}

.join-link {
    color: var(--english-red);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.join-link:hover {
    color: #8B4340;
    text-decoration: underline;
}

/* Values Section */
.values-section {
    padding: 8rem 0;
    background: var(--beige);
}

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

/* 3x2 layout with offset bottom row when container can fit 3 columns */
@media (min-width: 850px) {
    .values-grid {
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 2.5rem;
    }
    
    .value-card:nth-child(1) {
        grid-column: 1 / 3;
    }
    
    .value-card:nth-child(2) {
        grid-column: 3 / 5;
    }
    
    .value-card:nth-child(3) {
        grid-column: 5 / 7;
    }
    
    .value-card:nth-child(4) {
        grid-column: 2 / 4;
        grid-row: 2;
    }
    
    .value-card:nth-child(5) {
        grid-column: 4 / 6;
        grid-row: 2;
    }
}

.value-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 25px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--english-red);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

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

.value-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    animation: bounce 2s infinite;
}

.value-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

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

/* Company CTA Section */
.company-cta-section {
    padding: 8rem 0;
    background: var(--dark-navy);
    color: white;
    text-align: center;
}

.company-cta-content h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.company-cta-content p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.company-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

/* Animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .company-hero {
        padding-top: 140px;
        padding-bottom: 30px; /* Reduced mobile bottom padding */
    }
    
    .mission-detail-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: left;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .company-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .story-block {
        padding: 2rem;
    }

    /* Mission icon styling is now handled above */
}
