/* Specific styles for the Team page */

body {
    font-family: 'Marcellus', 'DM Sans', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', 'Source Sans Pro', serif;
    text-shadow: none;
}

.team-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('../images/coffee_team_hero.jpg') no-repeat center center / cover;
    color: white;
    text-align: center;
    padding: 150px 20px 100px; /* Adjust padding for headers */
    height: auto; /* Allow content to dictate height */
    background-attachment: fixed;
}

.team-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: none;
}

.team-hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 300;
}

.team-section {
    padding: 80px 0;
    background-color: #f8f9fa; /* Light background for sections */
}

.team-section:nth-of-type(odd) {
    background-color: white; /* Alternate background for readability */
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
    justify-content: center; /* Center cards if they don't fill the row */
}

.team-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes content to top/bottom */
    align-items: center;
    min-height: 450px; /* Ensure consistent card height */
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.team-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: none; /* Remove gold border */
    box-shadow: none; /* Remove gold glow */
}

.team-card h3 {
    color: #2c5530;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.team-card p:first-of-type { /* Title/position */
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1rem;
    font-weight: 600;
}

.team-card p { /* Bio */
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1; /* Allows bio to take up available space */
}

.team-card a {
    color: #d4af37;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.team-card a:hover {
    color: #2c5530;
    text-decoration: underline;
}

/* Specific fade-in for team cards (might overlap with main.js, but good to have) */
.fade-in-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-card.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments for team page */
@media (max-width: 768px) {
    .team-hero h1 {
        font-size: 2.5rem;
    }

    .team-hero p {
        font-size: 1rem;
    }

    .team-grid {
        grid-template-columns: 1fr; /* Single column on smaller screens */
    }

    .team-card {
        min-height: unset; /* Remove fixed height on mobile */
        padding: 1.5rem;
    }

    .team-card img {
        width: 120px;
        height: 120px;
    }

    .team-card h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .team-hero h1 {
        font-size: 2rem;
    }

    .team-hero p {
        font-size: 0.9rem;
    }

    .team-card img {
        width: 100px;
        height: 100px;
    }
}