/* Directory: changingper/css/team.css */

:root {
    --primary-blue: #2c3e50;
    --soft-gold: #f39c12;
    --calm-teal: #16a085;
    --sage-bg: #dde2d5;
    --text-gray: #3e3e3e;
    --title-bg: #fdfbf7; 
    --container-width: 1100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-gray);
    background-color: var(--sage-bg);
    line-height: 1.6;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- THE HEAD --- */
.navbar-head {
    background: white;
    padding: 15px 45px;
    border-radius: 0 0 50px 50px;
    margin-bottom: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.03);
}

.nav-flex { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.logo img { height: 110px; width: auto; }

.nav-links { 
    list-style: none; 
    display: flex; 
    gap: 30px; 
    align-items: center; 
}

.nav-links a { 
    text-decoration: none; 
    color: var(--primary-blue); 
    font-weight: 500; 
    font-size: 1rem; 
    position: relative;
    transition: color 0.3s ease;
}

.text-teal { color: var(--calm-teal) !important; font-weight: 600 !important; }
.text-gold { color: var(--soft-gold) !important; font-weight: 600 !important; }

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0; height: 2px;
    bottom: -4px; left: 0;
    background-color: var(--soft-gold);
    transition: width 0.3s ease;
}

.nav-links a.text-teal::after { background-color: var(--calm-teal); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* --- THE TITLE PILL --- */
.title-pill {
    background-color: var(--title-bg);
    padding: 20px;
    border-radius: 100px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.title-pill h1 { font-size: 2.2rem; color: var(--primary-blue); font-weight: 300; }
.title-pill h1 span { font-weight: 700; }
.title-pill p { font-size: 0.95rem; color: #7a8a7c; font-style: italic; }

/* --- STACKED CLINICIAN ROWS --- */
.team-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
    width: 100%; /* Ensures it stays bounded within the 1100px .container parent */
}

.team-row {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 35px;
    border-radius: 30px;
    background-color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    width: 100%; /* Keeps boxes perfectly square with the title-pill edge */
}

/* --- IMAGE SYSTEM --- */
.team-image-wrapper {
    /* 1. Easily resize overall box sizing here */
    width: 220px;
    height: 220px;
    flex-shrink: 0;
    
    /* 2. Control border-radius corners here */
    border-radius: 25px; 
    overflow: hidden;
}

.team-img {
    width: 100%;
    height: 100%;
    
    /* 3. Forces sizing container matching behavior */
    object-fit: cover; 
    
    /* 4. Default baseline layout centered positioning */
    object-position: center center; 
}

/* --- PER-CLINICIAN COOP CONTROLS --- 
   Adjust horizontal % or vertical % inside object-position if someone's headshot gets cropped weirdly.
   Example: object-position: 50% 20%; (pulls image upwards) 
*/
.clinician-kimberly .team-img { object-position: center center; }
.clinician-michelle .team-img { object-position: center center; }
.clinician-jean .team-img     { object-position: center center; }
.clinician-johanna .team-img  { object-position: center center; }
.clinician-bobbi .team-img    { object-position: center center; }

/* --- TEXT LAYOUT --- */
.team-text { flex: 1; }
.team-text h2 { font-size: 1.8rem; color: var(--primary-blue); font-weight: 300; margin-bottom: 2px; }
.team-text h2 span { font-weight: 700; }
.role-tag { color: var(--calm-teal); font-weight: 600; font-size: 0.95rem; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.team-text p { font-size: 1.05rem; color: #4a4a4a; line-height: 1.6; }

footer { padding: 40px 0; text-align: center; font-size: 0.8rem; color: #6a7a6c; }

/* --- ANIMATION --- */
.animate-slide {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- RESPONSIVE LAYOUT --- */
@media (max-width: 850px) {
    .nav-flex { flex-direction: column; gap: 15px; }
    .logo img { height: 80px; }
    .nav-links { gap: 15px; }
    .title-pill { border-radius: 40px; }
    .team-row { flex-direction: column; text-align: center; padding: 25px; gap: 20px; }
    .team-image-wrapper { width: 180px; height: 180px; } /* Automatically scales down on mobile */
}