/*
 Theme Name:   Team Progress Theme
 Theme URI:    https://teamprogress.org
 Description:  Team Progress campaign landing page and bio pages
 Author:       Team Progress
 Version:      1.0.0
 Requires at least: 6.0
 Requires PHP: 7.4
 Text Domain:  team-progress-theme
*/

/* Team Progress Custom Styles */
:root {
    --tp-burgundy: #7B2D3A;
    --tp-green: #2D6B45;
    --tp-dark: #1a1a1a;
    --tp-gray: #444444;
    --tp-light-gray: #666666;
    --tp-bg: #FFFFFF;
    --tp-cream: #FAFAF8;
}

/* Site Header */
.site-header {
    background: var(--tp-bg);
    border-bottom: 3px solid var(--tp-burgundy);
    padding: 16px 24px;
}

.site-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-branding {
    display: block;
    text-decoration: none;
}

.site-logo {
    display: block;
    height: 50px;
    width: auto;
}

.site-tagline {
    font-family: 'Georgia', serif;
    font-size: 1rem;
    font-style: italic;
    color: var(--tp-gray);
}

@media (max-width: 600px) {
    .site-header-inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* Site Footer */
.site-footer {
    background: var(--tp-dark);
    color: #ccc;
    padding: 32px 24px;
    margin-top: 60px;
}

.site-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand {
    margin: 0;
    font-size: 0.9rem;
}

.footer-afm {
    margin: 0;
    font-size: 0.85rem;
}

.footer-afm a {
    color: var(--tp-green);
    text-decoration: none;
}

.footer-afm a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .site-footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* Hero Section */
.team-progress-hero {
    text-align: center;
    padding: 60px 20px 40px;
    background-color: var(--tp-bg);
}

.team-progress-title {
    font-family: 'Georgia', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    color: var(--tp-burgundy);
    letter-spacing: 0.02em;
    margin: 0 0 20px;
    line-height: 1.1;
}

.team-progress-logo {
    display: block;
    margin: 0 auto 20px;
    max-width: 400px;
    height: auto;
}

.team-progress-subtitle {
    font-family: 'Georgia', serif;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-style: italic;
    color: var(--tp-gray);
    margin: 0;
    font-weight: 400;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

.team-card {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: var(--tp-cream);
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-card:hover,
.team-card:focus {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.team-card:focus {
    outline: 3px solid var(--tp-green);
    outline-offset: 2px;
}

.team-card-image {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--tp-burgundy);
    margin-bottom: 16px;
}

.team-card-image.placeholder {
    background: var(--tp-burgundy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.team-card-name {
    font-family: 'Georgia', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--tp-burgundy);
    margin: 0;
    text-align: center;
}

.team-card-title {
    font-size: 0.875rem;
    color: var(--tp-light-gray);
    margin: 4px 0 0;
    text-align: center;
}

/* Content Sections */
.team-content-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 24px;
}

.team-content-section h2 {
    font-family: 'Georgia', serif;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    color: var(--tp-burgundy);
    margin: 0 0 24px;
    line-height: 1.2;
}

.team-content-section p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--tp-dark);
    margin: 0 0 1.5em;
}

.team-content-section ul {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--tp-dark);
}

.team-content-section li {
    margin-bottom: 0.75em;
    padding-left: 0.5em;
}

/* Bio Page Styles */
.bio-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.bio-header {
    text-align: center;
    margin-bottom: 48px;
}

.bio-header .back-link {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: var(--tp-burgundy);
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 24px;
    transition: opacity 0.2s;
}

.bio-header .back-link:hover,
.bio-header .back-link:focus {
    opacity: 0.7;
}

.bio-header .back-link:focus {
    outline: 2px solid var(--tp-green);
    outline-offset: 4px;
    border-radius: 2px;
}

.bio-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--tp-burgundy);
    margin-bottom: 24px;
}

.bio-name {
    font-family: 'Georgia', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--tp-burgundy);
    margin: 0 0 8px;
}

.bio-title {
    font-size: 1.1rem;
    color: var(--tp-light-gray);
    font-style: italic;
    margin: 0;
}

.bio-content {
    max-width: 700px;
    margin: 0 auto;
}

.bio-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--tp-dark);
    margin-bottom: 1.5em;
}

.bio-content blockquote {
    border-left: 4px solid var(--tp-green);
    padding-left: 24px;
    margin: 2em 0;
    font-style: italic;
    color: var(--tp-gray);
}

/* Bio photo placeholder for pages without photos */
.bio-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: white;
    margin: 0 auto 24px;
    border: 4px solid var(--tp-burgundy);
}

/* Image placeholder for card grid */
.team-card-image.placeholder {
    background: var(--tp-burgundy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 16px;
}

/* Focus styles for accessibility */
a:focus {
    outline: 2px solid var(--tp-green);
    outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--tp-burgundy);
    color: white;
    padding: 8px 16px;
    z-index: 1000;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
}

.skip-link:focus {
    top: 0;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .team-progress-hero {
        padding: 40px 16px 30px;
    }
    
    .team-content-section {
        padding: 40px 16px;
    }
    
    .bio-page {
        padding: 24px 16px 60px;
    }
    
    .bio-photo {
        width: 160px;
        height: 160px;
    }
}