/*
CHANGE LOG
File: /var/www/html/leafriver.nsgia.com/static/css/afh_main.css
Document Type: CSS Stylesheet
Purpose: Main layout - sidebar, hero, metrics, answer sections
Main App: leafriver_app.py
Context: Core layout matching cityplan/refuge pattern with river blue theme
Color Theme: River blue (#1e5f8a), dark blue (#14415f), sand (#d4a574)
Templates: leafriver.html
Version History:
2025-12-09 v1.0 - Initial creation for Leaf River (adapted from cityplan green)
*/

/* =============================================
   RESET & BASE
   ============================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
}

/* =============================================
   SIDEBAR NAVIGATION
   ============================================= */
.afh-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 220px;
    height: 100vh;
    background: linear-gradient(180deg, #1e5f8a 0%, #14415f 100%);
    color: white;
    padding: 0;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0,0,0,0.15);
}

.afh-sidebar-header {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    background: rgba(0,0,0,0.1);
}

.afh-sidebar-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-family: 'Playfair Display', Georgia, serif;
}

.afh-sidebar-header p {
    font-size: 0.8rem;
    opacity: 0.8;
    font-weight: 300;
}

.afh-sidebar ul {
    list-style: none;
    padding: 0.5rem 0;
}

.afh-sidebar li a {
    display: block;
    padding: 0.75rem 1rem;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 0.9rem;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.afh-sidebar li a:hover {
    background: rgba(255,255,255,0.1);
    border-left-color: rgba(255,255,255,0.5);
}

.afh-sidebar li a.active {
    background: rgba(255,255,255,0.15);
    border-left-color: #d4a574;
    font-weight: 600;
}

.afh-sidebar-divider {
    height: 1px;
    background: rgba(255,255,255,0.15);
    margin: 0.5rem 1rem;
}

.afh-sidebar-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    opacity: 0.6;
}

/* =============================================
   MAIN CONTAINER
   ============================================= */
.afh-main-container {
    margin-left: 220px;
    min-height: 100vh;
}

/* =============================================
   HERO SECTION
   ============================================= */
.afh-hero {
    position: relative;
    min-height: 70vh;
    background: url('/static/images/ProposedDevelopmentArea.png') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.afh-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30,95,138,0.3) 0%, rgba(45,90,61,0.3) 100%);
}

.afh-hero-content {
    position: relative;
    z-index: 1;
    color: white;
    padding: 2rem;
    max-width: 800px;
}

.afh-hero-tag {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    border-radius: 3px;
}

.afh-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.afh-hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    opacity: 0.95;
}

.afh-hero-tagline {
    font-size: 1.1rem;
    opacity: 0.9;
    color: #d4a574;
}

.afh-hero-bottom {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    opacity: 0.8;
}

/* =============================================
   METRICS ROW
   ============================================= */
.afh-metrics {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    background: white;
    border-bottom: 3px solid #1e5f8a;
    flex-wrap: wrap;
}

.afh-metric {
    text-align: center;
    padding: 1rem 2rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    min-width: 140px;
}

.afh-metric-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e5f8a;
    font-family: 'Playfair Display', Georgia, serif;
}

.afh-metric-label {
    font-size: 0.85rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =============================================
   ANSWER SECTIONS
   ============================================= */
.afh-answers {
    padding: 3rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.afh-answer-section {
    background: white;
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    scroll-margin-top: 20px;
}

.afh-answer-section h2 {
    color: #1e5f8a;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: #666;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.afh-answer-section p {
    margin-bottom: 1rem;
}

.section-image {
    max-width: 100%;
    border-radius: 6px;
    margin: 1.5rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* =============================================
   SECTION NAVIGATION
   ============================================= */
.section-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.nav-prev, .nav-next {
    color: #1e5f8a;
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    border: 2px solid #1e5f8a;
    border-radius: 4px;
    transition: all 0.2s;
}

.nav-prev:hover, .nav-next:hover {
    background: #1e5f8a;
    color: white;
}

.nav-next {
    background: #1e5f8a;
    color: white;
}

.nav-next:hover {
    background: #14415f;
}

/* =============================================
   CALL TO ACTION
   ============================================= */
.afh-cta {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #e8f4f8 0%, #d4e8ed 100%);
    margin-bottom: 60px; /* Space for footer */
}

.afh-cta h3 {
    color: #1e5f8a;
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.afh-cta p {
    color: #555;
    margin-bottom: 1.5rem;
}

.cta-button {
    display: inline-block;
    background: #1e5f8a;
    color: white;
    padding: 1rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.cta-button:hover {
    background: #14415f;
}

/* =============================================
   BACK TO TOP BUTTON
   ============================================= */
.afh-back-top-btn {
    position: fixed;
    bottom: 80px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #1e5f8a;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(30,95,138,0.3);
    transition: all 0.3s;
    z-index: 999;
}

.afh-back-top-btn:hover {
    background: #14415f;
    transform: translateY(-2px);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
    .afh-sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .afh-main-container {
        margin-left: 0;
    }
    
    .afh-hero h1 {
        font-size: 2rem;
    }
    
    .afh-metrics {
        gap: 1rem;
    }
    
    .afh-metric {
        min-width: 100px;
        padding: 0.75rem 1rem;
    }
    
    .afh-metric-number {
        font-size: 1.8rem;
    }
    
    .afh-answer-section {
        padding: 1.5rem;
    }
}
