/* CFPB Design System Styles */

/* 
 * CFPB Color Palette
 * Primary:
 * - CFPB Green: #20aa3f
 * - Green 60 (Midtone Green): #addc91
 * - Green 20: #e2efd8
 * - Black: #101820
 * - Gray: #5a5d61
 * - Gray 10: #e7e8e9
 *
 * Secondary:
 * - Teal: #257675
 * - Pacific: #0072ce
 * - Navy: #254b87
 * - Purple: #b4267a
 * - Red: #d14124
 * - Gold: #ff9e1b
 * - Neutral: #8a6c57
 */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Avenir Next", Avenir, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #101820; /* CFPB Black */
    line-height: 1.6;
    background-color: #ffffff;
    font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: "Avenir Next", Avenir, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 2rem;
    letter-spacing: -0.3px;
}

h3 {
    font-size: 1.5rem;
    letter-spacing: -0.2px;
}

p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

a {
    color: #0072ce; /* CFPB Pacific */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover, a:focus {
    color: #254b87; /* CFPB Navy */
    text-decoration: underline;
}

ul, ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.lead {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4rem 0;
}

.section.alternate {
    background-color: #f7f8f9; /* CFPB Gray 5 */
}

.content-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.column {
    flex: 1;
    min-width: 300px;
}

/* Header */
.site-header {
    background-color: #ffffff;
    box-shadow: none;
    padding: 2.5rem 0 1.5rem;
    border-bottom: 4px solid #20aa3f; /* CFPB Green border */
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 1.5rem;
}

.logo-container {
    flex-shrink: 0;
}

.cfpb-logo {
    width: 300px;
    height: auto;
}

.header-tagline {
    font-size: 1rem;
    color: #5a5d61; /* CFPB Gray */
    font-weight: 500;
    margin: 0;
    max-width: 600px;
    line-height: 1.6;
}

.site-title {
    color: #20aa3f; /* CFPB Green */
    margin: 0;
    font-size: 2.5rem;
    letter-spacing: -0.5px;
}

.main-nav {
    padding: 1rem 0;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    gap: 2rem;
}

.main-nav a {
    color: #101820; /* CFPB Black */
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-size: 0.9rem;
}

.main-nav a:hover, .main-nav a:focus {
    color: #20aa3f; /* CFPB Green */
    text-decoration: none;
}

/* Hero Section */
.hero {
    background-color: #20aa3f; /* CFPB Green */
    color: #ffffff;
    padding: 5rem 0;
    text-align: center;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero .lead {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Projects */
.projects {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background-color: #ffffff;
    border-radius: 4px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project-card h3 {
    color: #20aa3f; /* CFPB Green */
}

/* Contact */
.contact-info {
    background-color: #ffffff;
    border-radius: 4px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 2rem auto 0;
}

/* Open Letter Styles */

.letter-content {
    max-width: 800px;
    margin: 0 auto 0 0;
}

.letter-content p {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.achievements-list {
    margin: 1.5rem 0 1.5rem 1.5rem;
    list-style-type: none;
}

.achievements-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 1.125rem;
}

.achievements-list li::before {
    content: "✅";
    position: absolute;
    left: 0;
    top: 0;
}

.letter-highlight {
    font-size: 1.5rem;
    font-weight: 600;
    color: #20aa3f; /* CFPB Green */
    margin: 1.5rem 0;
    line-height: 1.6;
}

.letter-closing {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1.5rem;
    line-height: 1.6;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .header-content {
        gap: 1rem;
        align-items: flex-start;
    }
    
    .cfpb-logo {
        width: 250px;
    }
    
    .header-tagline {
        font-size: 0.9rem;
    }
    
    .site-title {
        font-size: 2rem;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero h2 {
        font-size: 2.25rem;
    }
    
    .hero .lead {
        font-size: 1.25rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .letter-content p, 
    .achievements-list li {
        font-size: 1.05rem;
        line-height: 1.6;
    }
    
    .letter-highlight,
    .letter-closing {
        font-size: 1.3rem;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .cfpb-logo {
        width: 200px;
    }
    
    .site-title {
        font-size: 1.75rem;
    }
    
    .header-tagline {
        font-size: 0.85rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero h2 {
        font-size: 1.75rem;
    }
    
    .content-columns {
        flex-direction: column;
    }
    
    .letter-content p, 
    .achievements-list li {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .letter-highlight,
    .letter-closing {
        font-size: 1.2rem;
        line-height: 1.6;
    }
    
    .achievements-list li {
        padding-left: 1.75rem;
    }
} 