/*
===========================================================================
DO NOT MODIFY THIS FILE - NSG STANDARDS
===========================================================================
File: nsg_layout.css
Purpose: Page layout - sidebar, navbar, hero, footer, content areas
Location: /var/www/html/nsg_standards/css/

HERO PATTERN: Framed like a picture (Refuge style)
- NOT full-bleed
- Has margins creating picture-frame effect
- Elegant italic text
===========================================================================
2025-12-19 v1.0 - Initial creation
2025-12-20 v2.0 - Updated hero to Refuge framed style
===========================================================================
*/

/* ===========================================
   RESET & BASE
   =========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: var(--line-height-base);
    color: var(--color-text);
    background: var(--color-bg);
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: var(--line-height-tight);
}

/* ===========================================
   NAVBAR - Fixed top
   =========================================== */

.afh-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    background: var(--color-navbar);
    border-bottom: 2px solid var(--color-navbar-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--spacing-xl);
    z-index: 1001;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    font-family: var(--font-body);
}

.afh-navbar-brand {
    display: flex;
    flex-direction: column;
}

.afh-navbar-title {
    color: var(--color-white);
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
}

.afh-navbar-subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
}

.afh-navbar-links {
    display: flex;
    gap: var(--spacing-lg);
}

.afh-navbar-links a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 500;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius-sm);
    transition: background 0.2s;
}

.afh-navbar-links a:hover {
    background: rgba(255,255,255,0.1);
}

/* ===========================================
   SIDEBAR - Fixed left
   =========================================== */

.afh-sidebar {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--navbar-height));
    background: var(--color-sidebar);
    border-right: 2px solid var(--color-sidebar-light);
    color: var(--color-white);
    padding: 0;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0,0,0,0.15);
    font-family: var(--font-body);
}

.afh-sidebar-header {
    padding: var(--spacing-lg) var(--spacing-md);
    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: var(--spacing-xs);
    font-family: var(--font-heading);
}

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

.afh-sidebar ul {
    list-style: none;
    padding: var(--spacing-sm) 0;
}

.afh-sidebar li a {
    display: block;
    padding: 0.75rem var(--spacing-md);
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    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: var(--color-white);
    font-weight: 600;
}

.afh-sidebar-divider {
    height: 1px;
    background: rgba(255,255,255,0.15);
    margin: var(--spacing-sm) var(--spacing-md);
}

.afh-sidebar-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: var(--spacing-sm) var(--spacing-md);
    opacity: 0.6;
}

/* ===========================================
   MAIN CONTAINER
   =========================================== */

.afh-main-container {
    margin-left: var(--sidebar-width);
    margin-top: var(--navbar-height);
    min-height: calc(100vh - var(--navbar-height));
}

/* ===========================================
   HERO SECTION - Framed style (Refuge pattern)
   Picture-frame effect with margins
   =========================================== */

.afh-hero {
    position: relative;
    min-height: 80vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0;
}

.afh-hero-content {
    position: relative;
    z-index: 1;
    color: var(--color-white);
    padding: var(--spacing-xl);
    max-width: 900px;
}

/* Elegant italic title - Refuge style */
.afh-hero h1 {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 3.5rem;
    font-weight: 400;
    font-style: italic;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.8);
    line-height: 1.1;
    letter-spacing: 0.5px;
}

.afh-hero-subtitle {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.afh-hero-tagline {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.2rem;
    font-weight: 300;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.9);
    max-width: 700px;
    line-height: 1.4;
}

/* Remove the boxy tag - not elegant */
.afh-hero-tag {
    display: none;
}

/* ===========================================
   ANSWER SECTIONS (main content)
   =========================================== */

.afh-answers {
    padding: var(--spacing-xxl) var(--spacing-xl);
    max-width: var(--content-max-width);
    margin: 0 auto;
}

.afh-answer-section {
    background: var(--color-white);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: var(--border-width) solid var(--color-border);
    scroll-margin-top: 20px;
}

.afh-answer-section h2 {
    color: var(--color-primary);
    font-size: 1.8rem;
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    color: var(--color-text-light);
    font-size: var(--font-size-base);
    margin-bottom: var(--spacing-lg);
    font-style: italic;
}

.section-intro {
    color: var(--color-secondary-dark);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
}

.afh-answer-section p {
    margin-bottom: var(--spacing-md);
}

/* ===========================================
   CTA SECTION
   =========================================== */

.afh-cta {
    text-align: center;
    padding: var(--spacing-xxl) var(--spacing-xl);
    background: linear-gradient(135deg, var(--color-secondary-light) 0%, var(--color-secondary) 100%);
}

.afh-cta h3 {
    color: var(--color-primary);
    font-size: 1.6rem;
    margin-bottom: var(--spacing-sm);
}

.afh-cta p {
    color: var(--color-text);
    margin-bottom: var(--spacing-lg);
}

.cta-button {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-white);
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.cta-button:hover {
    background: var(--color-primary-dark);
}

/* ===========================================
   FOOTER
   =========================================== */

.afh-footer {
    background: var(--color-footer);
    color: var(--color-white);
    padding: var(--spacing-xl);
    text-align: center;
    font-family: var(--font-body);
}

.afh-footer p {
    margin: var(--spacing-sm) 0;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
}

.afh-footer a {
    color: var(--color-accent);
    text-decoration: none;
}

.afh-footer a:hover {
    color: var(--color-white);
}

/* ===========================================
   SIMPLE FOOTER - Fixed at bottom
   =========================================== */

.simple-footer {
    position: fixed;
    bottom: 0;
    left: var(--sidebar-width);
    right: 0;
    background: var(--color-footer);
    color: rgba(255,255,255,0.9);
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    z-index: 9999;
}

.simple-footer a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
}

.simple-footer a:hover {
    color: white;
}

/* ===========================================
   BACK TO TOP BUTTON
   =========================================== */

.afh-back-top-btn {
    position: fixed;
    bottom: 80px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
    z-index: 999;
}

.afh-back-top-btn:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
}

/* ===========================================
   RESPONSIVE
   =========================================== */

@media (max-width: 900px) {
    .afh-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        top: 0;
    }
    
    .afh-main-container {
        margin-left: 0;
    }
    
    .afh-hero h1 {
        font-size: 2.5rem;
    }
    
    .afh-hero {
        background-attachment: scroll;
        min-height: 60vh;
    }
    
    .afh-answer-section {
        padding: var(--spacing-lg);
    }
    
    .afh-answers {
        padding: var(--spacing-xl) var(--spacing-md);
    }
    
    .simple-footer {
        left: 0;
    }
}

@media (max-width: 768px) {
    .afh-hero {
        min-height: 50vh;
    }
    
    .afh-hero h1 {
        font-size: 2rem;
    }
    
    .afh-navbar {
        padding: 0 var(--spacing-md);
    }
    
    .afh-navbar-links {
        display: none;
    }
}
