/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Merriweather', serif;
    background-color: #fff;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}


/* GENERAL HERO (Restored) */
.hero {
    height: 70vh;
    background: url("/media/headers/contact_us.jpg") center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.4);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 3rem;
    text-align: center;
    color: white;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeIn 2.5s ease forwards;
}

/* TEAM HERO SECTION */
.team-hero {
    height: 400px;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../media/team-hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.team-hero h1 {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5em;
    font-size: 2.5rem;
    font-weight: 700;
    opacity: 0;
    animation: fadeIn 2.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* LEADERSHIP SECTION LAYOUT */
.leadership-section {
    padding: 80px 0;
}

.level-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.level-label {
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.3em;
    color: #bfa98a;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
    background: #fff;
    padding: 0 25px;
    position: relative;
    z-index: 1;
}

.level-header::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
    z-index: 0;
}

/* TEAM CARD - EQUAL SIZES */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.team-card {
    background: #ffffff;
    border: 1px solid #eee;
    padding: 40px 25px;
    text-align: center;
    border-radius: 2px;
    transition: all 0.4s ease;
    
    /* Forces all cards to take up equal height in the grid row */
    display: flex;
    flex-direction: column;
    height: 100%; 
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    border-color: #bfa98a;
}

.profile-container {
    width: 160px;
    height: 160px;
    margin: 0 auto 25px auto;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fdfdfd;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    flex-shrink: 0; /* Prevents image container from squishing */
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: #1a1a1a;
    margin-bottom: 0px;
}

.role-tag {
    font-family: 'Montserrat', sans-serif;
    /* text-transform: uppercase; */
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.skill-pill {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-style: italic;
    font-size: 9px;
    letter-spacing: 0.05em;
    /* text-transform: uppercase; */
    background-color: #f3f0ec;
    color: #bfa98a;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
}

.bio-background {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400; /* regular */
    font-size: 0.75rem;
    line-height: 1.6;
    color: #777;
}

.bio-text {
    font-family: 'Merriweather', serif;
    font-style: italic;
    font-size: 0.7rem;
    line-height: 1.7;
    letter-spacing: 0.05em;
    color: #4b2e12;
    /* Pushes the socials to the bottom and takes up remaining space */
    flex-grow: 1; 
}

/* SOCIALS - NO SPACE ABOVE */
.team-socials {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 0; /* Removed space after bio-text */
    padding-top: 20px;
}

.social-link {
    width: 36px;
    height: 36px;
    background: #f8f8f8;
    color: #444;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
}

.social-link:hover {
    background: #bfa98a;
    color: #fff;
    transform: scale(1.1);
}

/* Footer Reset */
footer {
    background-color: #2e1b0e;
    color: #f3e5c6;
    padding: 40px 0;
    text-align: center;
}

/* SECTION DIVIDER */
.section-divider {
    height: 2px;
    background: #bfa98a;
    border: none;
    width: 100px;
    margin: 0 auto;
}
