/* ===================================
   Bloom Nonprofit Resilience Guide CSS
   Bento Box Design System - No Animations
   =================================== */

/* Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Montserrat:wght@600;700;800&display=swap');

/* CSS Variables - Matching Your Design System */
:root {
    /* Brand Colors */
    --primary-green: #299b8e;
    --primary-green-dark: #237a70;
    --primary-green-light: #3fb5a8;
    --primary-lighter: #e6f5f3;
    --secondary-yellow: #f7b801;
    --secondary-yellow-light: #ffd43b;
    --secondary-orange: #d8a442;
    --accent-purple: #8b5cf6;
    --accent-pink: #ec4899;
    --text-dark: #293340;
    --text-gray: #6b7280;
    --text-light: #9ca3af;
    --bg-light: #f9fafb;
    --bg-lighter: #ffffff;
    --border-light: #e5e7eb;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography with Better Spacing */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.2;
    font-weight: 700;
    color: var(--text-dark);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 2rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-top: 4rem;
    margin-bottom: 2rem;
    padding-top: 1rem;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 1.75rem);
    font-weight: 600;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

h5 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

/* Container */
.article-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

article {
    max-width: 900px;
    margin: 0 auto;
}

/* Bento Box Base */
.bento-box {
    background: var(--bg-lighter);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    margin: 3rem 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bento-box:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* Lead Paragraph */
.lead {
    font-size: 1.35rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 3rem;
    font-weight: 400;
}

.lead a {
    color: var(--primary-green);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.lead a:hover {
    border-bottom-color: var(--primary-green);
}

/* Assessment CTA Bento */
.assessment-cta {
    background: linear-gradient(135deg, var(--bg-lighter) 0%, var(--primary-lighter) 100%);
    border-radius: var(--radius-xl);
    padding: 3rem;
    margin: 3rem 0;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--primary-green-light);
    position: relative;
    overflow: hidden;
}

.assessment-cta::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 200px;
    height: 200px;
    background: var(--secondary-yellow);
    border-radius: 50%;
    opacity: 0.1;
}

.assessment-cta h3 {
    color: var(--primary-green-dark);
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.assessment-cta > p {
    font-size: 1.125rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.assessment-cta ul {
    list-style: none;
    margin-bottom: 2rem;
}

.assessment-cta li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    font-weight: 500;
    color: var(--text-dark);
}

.assessment-cta li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0.75rem;
    color: var(--primary-green);
    font-weight: bold;
    font-size: 1.25rem;
}

/* Content Dropdown */
.content-dropdown {
    margin: 3rem 0;
    background: var(--bg-lighter);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.dropdown-trigger {
    width: 100%;
    background: var(--bg-lighter);
    border: 1px solid var(--border-light);
    padding: 1.25rem 1.75rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: var(--radius-lg);
}

.dropdown-trigger:hover {
    background: var(--primary-lighter);
    border-color: var(--primary-green);
}

.dropdown-trigger::after {
    content: '▼';
    font-size: 0.875rem;
    transition: transform 0.3s ease;
    color: var(--primary-green);
}

.dropdown-trigger.active {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.dropdown-trigger.active::after {
    transform: rotate(180deg);
}

.dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-lighter);
    border: 1px solid var(--border-light);
    border-top: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.dropdown-content.open {
    max-height: 1000px;
}

.dropdown-inner {
    padding: 2rem;
}

.dropdown-inner h4 {
    color: var(--primary-green-dark);
    margin-bottom: 1rem;
}

/* Enhanced Burnout Calculator */
.calculator-section {
    background: linear-gradient(135deg, var(--bg-lighter) 0%, rgba(239, 68, 68, 0.05) 100%);
    border: 2px solid rgba(239, 68, 68, 0.3);
    margin: 3rem 0;
}

.calculator-section h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

/* Calculator Methodology Dropdown */
.calculator-methodology {
    margin: 1.5rem 0 2rem;
    background: rgba(41, 155, 142, 0.05);
    border-radius: var(--radius-lg);
}

.calculator-methodology .dropdown-trigger {
    background: rgba(41, 155, 142, 0.1);
    border-color: var(--primary-green-light);
    font-size: 1rem;
}

.calculator-methodology .dropdown-trigger:hover {
    background: var(--primary-lighter);
}

.calculator-methodology .dropdown-inner h5 {
    color: var(--primary-green-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.calculator-methodology .dropdown-inner ul {
    margin-bottom: 1rem;
}

.calculator-methodology .dropdown-inner li {
    font-size: 0.875rem;
    line-height: 1.6;
}

.calculator-methodology .dropdown-inner p:last-child {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
    font-style: italic;
}

.calculator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.calc-input {
    display: flex;
    flex-direction: column;
}

.calc-input label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.calc-input input,
.calc-input select {
    padding: 0.75rem;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-lighter);
}

.calc-input input:focus,
.calc-input select:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(41, 155, 142, 0.1);
}

.calc-input small {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.calculator-results {
    background: var(--bg-lighter);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: var(--shadow-md);
}

.result-grid {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    position: relative;
}

.result-item small {
    position: absolute;
    bottom: 0.25rem;
    left: 1rem;
    font-size: 0.7rem;
    color: var(--text-light);
}

.result-item.highlight {
    background: var(--danger);
    color: white;
    font-weight: 600;
    font-size: 1.25rem;
    padding: 1.25rem 1rem;
}

.result-label {
    font-weight: 500;
}

.result-value {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
}

.highlight .result-value {
    font-size: 1.75rem;
}

.highlight small {
    color: rgba(255, 255, 255, 0.8);
}

.cost-insights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.insight-item {
    background: var(--primary-lighter);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--primary-green-light);
}

.insight-item h5 {
    color: var(--primary-green-dark);
    margin-bottom: 0.75rem;
}

.insight-item p {
    margin: 0.5rem 0;
    color: var(--text-gray);
}

#percentBudget,
#costPerEmployee,
#fivePercentSavings {
    font-weight: 700;
    color: var(--danger);
}

.benchmark-comparison {
    background: var(--gray-100);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-top: 2rem;
}

.benchmark-bar {
    position: relative;
    height: 30px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    margin: 1rem 0;
    overflow: hidden;
}

.your-rate {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--danger);
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}

.average-rate {
    position: absolute;
    left: 19%;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--primary-green);
}

.average-rate::after {
    content: 'Industry Avg: 19%';
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    white-space: nowrap;
    color: var(--primary-green);
}

/* Button Styles */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    background: var(--primary-green);
    color: white;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--primary-green-dark);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.button:hover::before {
    width: 300px;
    height: 300px;
}

.button span {
    position: relative;
    z-index: 1;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    color: white;
}

/* Reflection Prompt Bento */
.reflection-prompt,
.assessment-checkpoint {
    background: var(--bg-lighter);
    border-left: 4px solid var(--primary-green);
    padding: 2rem 2.5rem;
    margin: 3rem 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.reflection-prompt p,
.assessment-checkpoint p {
    margin: 0;
    font-style: italic;
    color: var(--text-gray);
}

.reflection-prompt strong,
.assessment-checkpoint strong {
    color: var(--primary-green-dark);
    font-style: normal;
}

/* Lists with Better Spacing */
ul, ol {
    margin-bottom: 2rem;
    padding-left: 2rem;
}

ul li, ol li {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-gray);
}

/* Strong text */
strong {
    font-weight: 600;
    color: var(--text-dark);
}

/* Implementation Section */
.implementation-assessment {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    color: white;
    padding: 3rem;
    margin: 4rem -1.5rem;
    border-radius: var(--radius-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.implementation-assessment::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><circle cx="30" cy="30" r="3" fill="white" opacity="0.1"/></svg>');
    animation: patternMove 30s linear infinite;
}

@keyframes patternMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

.implementation-assessment h3 {
    color: white;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.implementation-assessment p {
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 1;
}

.implementation-assessment a {
    color: white;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Quarterly Roadmap Bento Grid */
.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.quarter-bento {
    background: var(--bg-lighter);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.quarter-bento:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-green-light);
}

.quarter-bento h3 {
    color: var(--primary-green);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.quarter-bento ol {
    padding-left: 1.25rem;
}

.quarter-bento li {
    color: var(--text-gray);
    margin-bottom: 0.75rem;
}

/* Final CTA Bento */
.final-cta {
    background: linear-gradient(135deg, var(--secondary-yellow-light) 0%, var(--bg-lighter) 100%);
    border: 2px solid var(--secondary-yellow);
    border-radius: var(--radius-xl);
    padding: 3rem;
    margin: 4rem 0 3rem;
    text-align: center;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--secondary-yellow) 0%, transparent 70%);
    opacity: 0.1;
}

.final-cta h3 {
    color: var(--text-dark);
    font-size: 2rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.final-cta p {
    max-width: 700px;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 1;
}

.final-cta .button {
    font-size: 1.125rem;
    padding: 1rem 2.5rem;
    background: var(--secondary-orange);
    position: relative;
    z-index: 1;
}

.final-cta .button:hover {
    background: var(--secondary-yellow);
    color: var(--text-dark);
}

/* HR */
hr {
    border: none;
    border-top: 1px solid var(--border-light);
    margin: 3rem 0;
}

/* Author Note */
.author-note {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
    font-size: 0.875rem;
    color: var(--text-light);
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .roadmap-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .calculator-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .article-container {
        padding: 2rem 1rem;
    }
    
    h1 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    h2 {
        font-size: 1.75rem;
        margin-top: 3rem;
        margin-bottom: 1.5rem;
    }
    
    h3 {
        font-size: 1.5rem;
        margin-top: 2rem;
    }
    
    .bento-box,
    .assessment-cta,
    .final-cta,
    .calculator-section {
        padding: 2rem;
        margin: 2rem 0;
    }
    
    .implementation-assessment {
        margin: 2rem -1rem;
        border-radius: 0;
    }
    
    .roadmap-grid,
    .calculator-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cost-insights {
        grid-template-columns: 1fr;
    }
    
    .button {
        width: 100%;
        text-align: center;
    }
    
    .dropdown-content.open {
        max-height: 2000px;
    }
}

@media (max-width: 480px) {
    .article-container {
        padding: 1.5rem 0.75rem;
    }
    
    .bento-box,
    .assessment-cta,
    .final-cta,
    .calculator-section {
        padding: 1.5rem;
        border-radius: var(--radius-lg);
    }
    
    p {
        font-size: 1rem;
    }
    
    .lead {
        font-size: 1.125rem;
    }
    
    .calculator-results {
        padding: 1.5rem;
    }
    
    .result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .result-value {
        font-size: 1rem;
    }
    
    .highlight .result-value {
        font-size: 1.25rem;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .bento-box,
    .assessment-cta,
    .final-cta {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .button {
        border: 2px solid var(--primary-green);
        color: var(--primary-green);
        background: transparent;
    }
    
    .content-dropdown,
    .calculator-section {
        display: none;
    }
}

/* Focus States for Accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

/* Skip to Content */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-green);
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: var(--radius-md);
    z-index: 1000;
}

.skip-to-content:focus {
    top: 1rem;
}