/* 
 * Pescadero Community Microgrid - Financial Models
 * Consolidated CSS Stylesheet
 * Includes responsive design for desktop and mobile
 */

/* -----------------------------------------------------
 * MODERN CSS RESET & BASE STYLES
 * ---------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
  
/* Custom Properties / Color Variables */
:root {
    /* Brand colors */
    --primary: #001536;
    --primary-light: #0a53a8;
    --primary-dark: #17338d;
    --secondary: #1e40af;
    --accent: #60a5fa;
    
    /* Neutrals */
    --text: #1f2937;
    --background: #ffffff;
    --light: #f3f4f6;
    --white: #ffffff;
    
    /* Carbon palette */
    --carbon-dark: #1F232D;
    --carbon-mid: #4d5770;
    --carbon-light-grey: #F3F3F3;
    
    /* Alpha brand colors */
    --alpha-red: #e3120b;
    --alpha-black: #121212;
    --alpha-blue: #1e40af;
    --alpha-blue-lt: #60a5fa;
    
    /* Typography */
    --font-family: 'Inter', sans-serif;
}
  
body {
    font-family: var(--font-family);
    line-height: 1.5;
    color: var(--text);
    background: var(--background);
    overflow-x: hidden;
}

/* -----------------------------------------------------
 * NAVIGATION / HEADER
 * ---------------------------------------------------- */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
    position: fixed;
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
  
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem; 
    text-decoration: none;
}

.nav-logo img {
    height: 44px; 
    width: auto;  
    object-fit: contain;  
    vertical-align: middle;  
}
  
.nav-logo span {
    position: relative;
    padding-left: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white);
}
  
.nav-logo span::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 70%;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.5);
}

.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
    transition: max-height 0.4s ease-in-out;
}
  
.nav-link {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: background-color 0.3s, color 0.3s;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.1);
    outline: none;
}
  
.button-nav {
    background-color: var(--alpha-red);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
  
.button-nav:hover {
    background: var(--white);
    color: var(--alpha-red);
}

/* Call-to-action button */
.cta-btn {
    background: var(--alpha-red);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
  
.cta-btn:hover,
.cta-btn:focus {
    background-color: #c01007;
    transform: scale(1.05);
    outline: none;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: white;
}

.mobile-menu-btn svg {
    stroke: currentColor;
}

/* -----------------------------------------------------
 * HERO SECTION
 * ---------------------------------------------------- */
.hero {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    position: relative;
    background: linear-gradient(
        135deg,
        var(--alpha-black) 30%,
        #333 100%
    );
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.9), rgba(18, 18, 18, 0.1)), 
                      url('https://images.unsplash.com/photo-1506748686214-e9df14d4d9d0?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&q=80&w=1080');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    padding-top: 7rem;
    padding-bottom: 4rem;
}
  
.hero-inner {
    max-width: 1920px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0rem;
    align-items: center;
    padding: 2rem 2rem;
}
  
.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #fff;
}
  
.hero-subheadline {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #f3f3f3;
    margin-bottom: 2.5rem;
}

.hero .chart-container {
    background-color: rgba(31, 35, 45, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    width: 100%;
    height: 400px;
    margin: 2rem 0;
    position: relative;
}

.hero .chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

/* -----------------------------------------------------
 * MAIN CONTENT SECTIONS
 * ---------------------------------------------------- */
.report-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 4rem;
}

.report-section h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: var(--alpha-black);
    font-weight: 700;
}

.report-section h3 {
    font-size: 1.4rem;
    margin: 2rem 0 1rem;
    color: var(--alpha-black);
}

.report-section p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.report-divider {
    height: 1px;
    background-color: var(--carbon-light-grey);
    margin: 0;
    width: 100%;
}

/* Section Icon Styling */
.section-icon {
    width: 48px;
    height: 48px;
    color: var(--alpha-red);
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    background-color: rgba(4, 167, 118, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

/* Highlight Box Component */
.highlight-box {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background-color: var(--light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.highlight-icon {
    flex-shrink: 0;
    color: var(--alpha-red);
    padding: 0.5rem;
}

.highlight-content {
    flex: 1;
}

.highlight-content h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: var(--alpha-black);
}

.highlight-content p {
    margin: 0;
    color: var(--text);
}

/* Model Feature Item */
.model-feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.model-feature svg {
    flex-shrink: 0;
    margin-right: 1rem;
    color: var(--alpha-red);
}

/* Project Scope Box */
.project-scope-box {
    background-color: var(--light);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    border-left: 4px solid var(--alpha-red);
}

.project-scope-box h3 {
    color: var(--alpha-red);
    margin-top: 0;
    margin-bottom: 1rem;
}

.project-scope-box ul {
    list-style-type: none;
    padding-left: 0;
}

.project-scope-box li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: baseline;
}

.project-scope-box li::before {
    content: "•";
    color: var(--alpha-red);
    font-weight: bold;
    display: inline-block; 
    width: 1em;
    margin-left: 0;
}

/* Growth List, Items and Grid */
.growth-list {
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

.growth-list li {
    margin-bottom: 1rem;
}

.growth-item {
    background-color: var(--light);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.growth-item h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0;
}

.growth-item h3 svg {
    color: var(--alpha-red);
    width: 36px;
    height: 36px;
}

.growth-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

/* Timeline Step Item */
.timeline-step {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1.5rem;
}

.timeline-step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: var(--alpha-red);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Grid Container */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

/* Case Study Card */
.case-study-card {
    background-color: var(--light);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.case-study-card h3 {
    color: var(--alpha-red);
    margin-top: 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.case-study-card p {
    margin-bottom: 0.75rem;
}

/* Action Items */
.action-item {
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border-left: 4px solid transparent;
    background-color: var(--light);
    position: relative;
}

.action-item h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-item p {
    margin-bottom: 0.5rem;
}

.action-item-urgent {
    border-left-color: #e53e3e;
}

.action-item-high {
    border-left-color: #ed8936;
}

.action-item-medium {
    border-left-color: #ecc94b;
}

.action-item-low {
    border-left-color: #48bb78;
}

.action-deadline {
    font-size: 0.85rem;
    background-color: rgba(0, 0, 0, 0.05);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-left: auto;
    white-space: nowrap;
}

.action-icon {
    color: var(--alpha-red);
}

/* -----------------------------------------------------
 * CHART AND VISUALIZATION CONTAINERS
 * ---------------------------------------------------- */
.chart-container, 
.chart-container-transparent {
    background-color: var(--light);
    border-radius: 8px;
    padding: 3rem 1.5rem 3rem 1.5rem;
    width: 100%;
    height: auto;
    min-height: 400px;
    max-height: 600px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2rem 0;
    overflow: hidden;
}

.chart-container-transparent {
    background-color: transparent;
}

.chart-container h3 {
    width: 100%;
    text-align: center;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.chart-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    flex: 1;
}

/* Capital Stack Container */
.capital-stack-container {
    background-color: var(--light);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.capital-stack {
    height: 300px;
    margin: 2rem 0;
}

/* Gantt Chart Container */
.gantt-chart-container {
    margin: 2rem 0;
    overflow-x: auto;
}

.gantt-chart {
    width: 100%;
    height: 300px;
}

.gantt-bar {
    fill-opacity: 0.8;
    stroke: #ffffff;
    stroke-width: 1;
}

.gantt-bar:hover {
    fill-opacity: 1;
}

.gantt-label {
    font-size: 12px;
    font-weight: 600;
}

/* Model Comparison Table */
.model-comparison-table {
    margin: 2rem 0;
    overflow-x: auto;
}

.model-comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.model-comparison-table th,
.model-comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #edf2f7;
}

.model-comparison-table th {
    background: var(--light);
    font-weight: 600;
    color: var(--carbon-dark);
}

.model-comparison-table tr:hover {
    background: #f8fafc;
}

/* Model-specific colors */
.residential td:first-child {
    border-left: 4px solid var(--alpha-red);
}

.commercial td:first-child {
    border-left: 4px solid var(--alpha-blue);
}

.decentralized td:first-child {
    border-left: 4px solid var(--alpha-blue-lt);
}

.community td:first-child {
    border-left: 4px solid var(--carbon-mid);
}

.hybrid td:first-child {
    border-left: 4px solid #49BD9B;
}

/* Score indicators */
.high, .medium, .low {
    color: var(--carbon-mid);
    font-weight: 500;
}


/* Summary */

.summary-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
    align-items: left;
    justify-content: space-between;
}

.summary-label {
    color: #4d5770;
    font-size: 0.9rem;
    font-weight: 500;
}

.summary-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--alpha-red);
}

.summary-header {
    font-size: 1.2rem;
    color: var(--alpha-black);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.summary-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}



.summary-value {
    font-weight: 600;
}
/* Table Filters */

.filter-container {
    margin-bottom: 1rem;
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #e3120b;
    background: white;
    color: #e3120b;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background: #e3120b;
    color: white;
}

.filter-btn.active {
    background: #e3120b;
    color: white;
}

/* -----------------------------------------------------
 * ALPHA-SPECIFIC TYPOGRAPHY STYLES
 * ---------------------------------------------------- */
.alpha-dropcap::first-letter {
    font-family: Georgia, serif;
    float: left;
    font-size: 4em;
    line-height: 0.68;
    margin: 0.05em 0.1em 0 0;
    color: var(--alpha-red);
}

.alpha-quote {
    font-family: Georgia, serif;
    font-size: 1.5rem;
    line-height: 1.4;
    font-style: italic;
    color: var(--alpha-red);
    border-left: 4px solid var(--alpha-red);
    padding-left: 1.5rem;
    margin: 2rem 0;
}

.alpha-byline {
    font-style: italic;
    color: #777;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.alpha-subtitle {
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 1.4rem;
    color: #555;
    margin-bottom: 1.5rem;
}

/* -----------------------------------------------------
 * FOOTER STYLES
 * ---------------------------------------------------- */
.footer {
    background: var(--alpha-black);
    color: var(--white);
    padding: 0;
    font-size: small;
}

/* Call to Action Section */
.cta-section {
    background: linear-gradient(135deg, var(--alpha-red) 0%, var(--alpha-blue) 100%);
    padding: 4rem 2rem;
    text-align: center;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.cta-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--white);
    color: var(--alpha-red);
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.cta-button:hover {
    transform: translateY(-1px);
}

/* Footer Content */
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
}

.footer-brand img {
    height: 40px;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--white);
    opacity: 0.7;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-column a {
    display: block;
    color: var(--white);
    opacity: 0.7;
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: opacity 0.2s ease;
}

.footer-column a:hover {
    opacity: 1;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-legal {
    display: flex;
    gap: 2rem;
    opacity: 0.7;
}

.footer-legal a {
    color: var(--white);
    text-decoration: none;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: var(--white);
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.footer-social a:hover {
    opacity: 1;
}

/* -----------------------------------------------------
 * RESPONSIVE STYLES
 * ---------------------------------------------------- */
@media (max-width: 1024px) {
    /* Adjust hero layout on medium screens */
    .hero-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Mobile navigation */
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--carbon-dark);
        padding: 1rem;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.4s ease forwards;
    }
    
    @keyframes slideDown {
        0% {
            max-height: 0;
        }
        100% {
            max-height: 300px;
        }
    }
    
    .nav-link {
        color: white;
        padding: 0.5rem;
        width: 100%;
        text-align: center;
    }

    .button-nav {
        width: 100%;
        text-align: center;
    }
    
    /* Mobile-specific content adjustments */
    .report-section {
        padding: 2rem 1.5rem;
    }
    
    .hero-inner {
        padding: 2rem 1.5rem;
    }
    
    .growth-grid {
        grid-template-columns: 1fr;
    }
    
    /* Mobile highlight box */
    .highlight-box {
        flex-direction: column;
    }
    
    .highlight-icon {
        margin-bottom: 1rem;
    }
    
    /* Mobile chart styles */
    .chart-container,
    .chart-container-transparent {
        padding: 0.5rem;
        height: auto;
        min-height: 300px;
        max-height: 500px;
        display: flex;
        flex-direction: column;
    }

    .chart-container h3,
    .chart-container-transparent h3 {
        margin-bottom: 1rem;
    }

    .chart-wrapper {
        height: 80%;
        flex-grow: 1;
    }

    .chart-wrapper canvas {
        height: 100% !important;
        width: 100% !important;
    }
    
    /* Mobile table adjustments */
    .model-comparison-table {
        margin: 1rem -1rem;
        width: calc(100% + 2rem);
    }
    
    .model-comparison-table th,
    .model-comparison-table td {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
    
    /* Mobile footer */
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 0.5rem;
    }
}
