/* ==========================================================================
   MAIN STYLESHEET
   Recess in the Neighborhood - Investor Website
   ========================================================================== */

@import url('./variables.css');
@import url('./base.css');
@import url('./components.css');
@import url('./layout.css');
@import url('./pages.css?v=2');

/* ==========================================================================
   PAGE-SPECIFIC STYLES
   ========================================================================== */

/* ===== LANDING PAGE HERO ===== */

.landing-hero {
    min-height: 90vh;
    background: linear-gradient(135deg, var(--rich-teal-dark) 0%, var(--rich-teal) 50%, var(--rich-teal-light) 100%);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.landing-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><defs><pattern id="p" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect fill="url(%23p)" width="100" height="100"/></svg>');
    background-size: 100px 100px;
}

.landing-hero .container {
    position: relative;
    z-index: 1;
}

.landing-hero-content {
    max-width: 750px;
}

.landing-hero h1 {
    font-size: 56px;
    color: var(--white);
    margin-bottom: var(--space-sm);
    line-height: 1.1;
}

.landing-hero .tagline {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 500;
    color: var(--warm-sand);
    margin-bottom: var(--space-xl);
}

.landing-hero .lead {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-lg);
}

.landing-hero .highlight-list {
    margin-bottom: 0;
}

.landing-hero .highlight-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--space-sm);
    font-size: 18px;
}

.landing-hero .highlight-list li:last-child {
    margin-bottom: 0;
}

.landing-hero .highlight-list li svg {
    color: var(--paprika-light);
    flex-shrink: 0;
    margin-top: 4px;
}

/* ===== STATS ROW ===== */

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.stat-item {
    text-align: center;
}

.stat-item .stat-value {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.stat-item .stat-label {
    font-family: var(--font-accent);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* White stats on teal background */
.section-accent .stat-item .stat-value {
    color: var(--white);
}

/* ===== PROBLEM-SOLUTION MAPPING ===== */

.solution-mapping {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-lg);
    max-width: 900px;
    margin: 0 auto;
}

.mapping-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--space-lg);
    align-items: center;
    padding: var(--space-lg) 0;
    border-bottom: 1px solid var(--warm-sand-light);
}

.mapping-row:last-child {
    border-bottom: none;
}

.mapping-problem {
    text-align: right;
}

.mapping-problem h4 {
    color: var(--paprika);
    margin-bottom: var(--space-xs);
}

.mapping-problem p {
    color: var(--warm-slate-light);
    font-size: 15px;
    margin: 0;
}

.mapping-arrow {
    width: 48px;
    height: 48px;
    background: var(--natural-linen);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rich-teal);
}

.mapping-solution {
    text-align: left;
}

.mapping-solution h4 {
    color: var(--rich-teal);
    margin-bottom: var(--space-xs);
}

.mapping-solution p {
    color: var(--warm-slate-light);
    font-size: 15px;
    margin: 0;
}

/* ===== COMPARISON TABLE ===== */

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.comparison-table th {
    padding: var(--space-md) var(--space-lg);
    text-align: center;
    font-family: var(--font-accent);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--natural-linen);
    color: var(--warm-slate);
}

.comparison-table th:first-child {
    text-align: left;
}

.comparison-table th.highlight {
    background: var(--rich-teal);
    color: var(--white);
}

.comparison-table td {
    padding: var(--space-md) var(--space-lg);
    text-align: center;
    border-bottom: 1px solid var(--warm-sand-light);
}

.comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
}

.comparison-table td.highlight {
    background: rgba(42, 124, 124, 0.05);
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table .check {
    color: var(--success);
    font-weight: 700;
}

.comparison-table .x {
    color: var(--warm-slate-light);
}

.comparison-table .partial {
    color: var(--warning);
}

/* ===== TIMELINE ===== */

.timeline {
    position: relative;
    padding: var(--space-xl) 0;
}

.timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--rich-teal);
    transform: translateY(-50%);
}

.timeline-items {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.timeline-item {
    text-align: center;
    flex: 1;
}

.timeline-node {
    width: 24px;
    height: 24px;
    background: var(--white);
    border: 4px solid var(--rich-teal);
    border-radius: 50%;
    margin: 0 auto var(--space-md);
    position: relative;
    z-index: 1;
}

.timeline-node.filled {
    background: var(--rich-teal);
}

.timeline-label {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--warm-slate);
    margin-bottom: var(--space-xs);
}

.timeline-sublabel {
    font-size: 13px;
    color: var(--warm-slate-light);
}

/* ===== INVESTMENT CARD ===== */

.investment-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
}

.investment-header {
    margin-bottom: var(--space-lg);
}

.investment-card .investment-amount {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 700;
    color: var(--rich-teal);
    line-height: 1;
}

.investment-card .investment-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--rich-teal);
    line-height: 1;
}

.investment-card .investment-label {
    font-family: var(--font-accent);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--warm-slate-light);
    margin-top: var(--space-sm);
}

.investment-card p {
    color: var(--warm-slate-light);
    margin-bottom: var(--space-lg);
}

.investment-card .check-list {
    flex: 1; /* This pushes the button to the bottom */
    margin-bottom: var(--space-lg);
}

.investment-card .btn {
    align-self: flex-start; /* Button aligns left */
}

/* ===== USE OF FUNDS BAR CHART ===== */

.funds-chart {
    max-width: 800px;
    margin: 0 auto;
}

.funds-bar {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-md);
}

.funds-label {
    width: 200px;
    flex-shrink: 0;
    font-size: 15px;
    color: var(--warm-slate);
    text-align: right;
}

.funds-bar-track {
    flex: 1;
    height: 32px;
    background: var(--natural-linen);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.funds-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--rich-teal) 0%, var(--rich-teal-light) 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: var(--space-md);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    transition: width 1s ease-out;
}

.funds-bar-fill.paprika {
    background: linear-gradient(90deg, var(--paprika) 0%, var(--paprika-light) 100%);
}

/* ===== REVENUE DONUT CHART (placeholder) ===== */

.revenue-chart-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3xl);
    flex-wrap: wrap;
}

.revenue-chart {
    width: 300px;
    height: 300px;
    position: relative;
}

.revenue-legend {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm) var(--space-xl);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 14px;
    color: var(--warm-slate);
}

/* ===== RESPONSIVE PAGE STYLES ===== */

@media (max-width: 1024px) {
    .landing-hero h1 {
        font-size: 44px;
    }
    
    .landing-hero .tagline {
        font-size: 20px;
    }
    
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-item .stat-value {
        font-size: 40px;
    }
    
    .timeline-items {
        flex-wrap: wrap;
        gap: var(--space-xl);
    }
    
    .timeline-line {
        display: none;
    }
    
    .timeline-item {
        flex: 0 0 calc(33.333% - var(--space-lg));
    }
}

@media (max-width: 768px) {
    .landing-hero {
        min-height: auto;
        padding: var(--space-3xl) 0;
    }
    
    .landing-hero h1 {
        font-size: 36px;
    }
    
    .landing-hero .tagline {
        font-size: 18px;
    }
    
    .landing-hero .lead {
        font-size: 17px;
    }
    
    .landing-hero .highlight-list {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .landing-hero .highlight-list li {
        font-size: 16px;
        justify-content: center;
        text-align: center;
        max-width: 400px;
    }
    
    .landing-hero .highlight-list li svg {
        display: none;
    }
    
    .stats-row {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-md);
    }
    
    .stat-item .stat-value {
        font-size: 32px;
    }
    
    .stat-item .stat-label {
        font-size: 12px;
    }
    
    .solution-mapping {
        padding: var(--space-xl);
    }
    
    .mapping-row {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-md);
    }
    
    .mapping-problem,
    .mapping-solution {
        text-align: center;
    }
    
    .investment-card {
        padding: var(--space-xl);
    }
    
    .investment-card .investment-amount {
        font-size: 32px;
    }
    
    .investment-card .investment-title {
        font-size: 24px;
    }
    
    .investment-card .btn {
        align-self: stretch; /* Full width on mobile */
        text-align: center;
    }
    
    .funds-bar {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-sm);
    }
    
    .funds-label {
        width: 100%;
        text-align: left;
    }
    
    .timeline-item {
        flex: 0 0 100%;
    }
    
    .revenue-chart-wrapper {
        flex-direction: column;
    }
    
    .comparison-table {
        font-size: 14px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: var(--space-sm);
    }
}

/* ===== REVEAL ANIMATIONS ===== */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== SKELETON LOADING ===== */

.skeleton {
    background: linear-gradient(
        90deg,
        var(--natural-linen) 25%,
        var(--warm-sand-light) 50%,
        var(--natural-linen) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== COUNT UP ANIMATION ===== */

.count-up {
    font-variant-numeric: tabular-nums;
}

