/* HOME PAGE STYLES - Complete version */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { 
    min-height: 100%; 
    scroll-behavior: smooth; 
    overflow-x: hidden;
}

body {
    font-family: 'Inter', 'Segoe UI', 'Roboto', sans-serif;
    color: #f7fafc;
    line-height: 1.6;
    background: linear-gradient(180deg, hsl(215, 65%, 22%) 0%, hsl(210, 50%, 18%) 50%, hsl(205, 45%, 16%) 100%);
    min-height: 100vh;
    position: relative;
    max-width: 100vw;
    overflow-x: hidden;
}

.skip-link { 
    position: absolute; 
    top: -100px; 
    left: 0; 
    background: #d4af37; 
    color: #1a1a1a; 
    padding: 12px 20px; 
    z-index: 9999; 
    transition: top 0.3s ease; 
    text-decoration: none; 
    font-weight: 600; 
    border-bottom-right-radius: 8px; 
}

.skip-link:focus { 
    top: 0; 
    outline: 3px solid #ffffff; 
}

body::after { 
    content: ''; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-image: url('janus-lodge-badge.png'); 
    background-size: 62.5vw 62.5vw, 62.5vw 62.5vw; 
    background-position: center 8vh, center 52vh; 
    background-repeat: no-repeat; 
    opacity: 0.06; 
    pointer-events: none; 
    z-index: 0; 
}

body::before { 
    content: ''; 
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    background-image: radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.02) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.01) 0%, transparent 50%); 
    pointer-events: none; 
    z-index: 1; 
}

/* Progress Navigation */
.progress-nav { 
    position: fixed; 
    top: 50%; 
    right: 2rem; 
    transform: translateY(-50%); 
    z-index: 1000; 
    background: rgba(26, 32, 44, 0.95); 
    backdrop-filter: blur(10px); 
    border: 1px solid rgba(212, 175, 55, 0.2); 
    border-radius: 15px; 
    padding: 1rem; 
    opacity: 0; 
    visibility: hidden; 
    transition: all 0.3s ease; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.3); 
}

.progress-nav.visible { 
    opacity: 1; 
    visibility: visible; 
}

.progress-nav h4 { 
    color: #d4af37; 
    font-size: 0.8rem; 
    margin-bottom: 1rem; 
    text-align: center; 
    text-transform: uppercase; 
    letter-spacing: 0.1em; 
}

.nav-item { 
    display: flex; 
    align-items: center; 
    margin-bottom: 0.8rem; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    padding: 0.5rem; 
    border-radius: 8px; 
    background: transparent; 
    border: none; 
    width: 100%; 
    text-align: left; 
    font-family: inherit; 
    color: inherit; 
}

.nav-item:last-child { 
    margin-bottom: 0; 
}

.nav-item:hover { 
    background: rgba(212, 175, 55, 0.1); 
}

.nav-item:focus { 
    outline: 3px solid #d4af37; 
    outline-offset: 2px; 
}

.nav-dot { 
    width: 8px; 
    height: 8px; 
    border-radius: 50%; 
    background: rgba(212, 175, 55, 0.5); 
    margin-right: 0.8rem; 
    transition: all 0.3s ease; 
    border: 1px solid rgba(255,255,255,0.1); 
}

.nav-item.active .nav-dot { 
    background: #d4af37; 
    transform: scale(1.3); 
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5); 
}

.nav-label { 
    font-size: 0.75rem; 
    color: #cbd5e0; 
    white-space: nowrap; 
}

.nav-item.active .nav-label { 
    color: #d4af37; 
    font-weight: 500; 
}

.header, .section, .footer, .header-container, .footer-container, section, header, footer, main, nav, article, aside, .content, .container { 
    position: relative; 
    z-index: 10; 
}

/* Header */
.header { 
    background: linear-gradient(135deg, hsl(225, 55%, 15%) 0%, hsl(220, 60%, 17%) 25%, hsl(218, 62%, 19%) 50%, hsl(216, 64%, 21%) 75%, hsl(215, 65%, 22%) 100%); 
    padding: 2rem 0; 
}

.header-container { 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 0 4rem; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    flex-wrap: wrap; 
    gap: 2rem; 
}

.logo-section { 
    display: flex; 
    align-items: center; 
    gap: 2rem; 
}

.lodge-text { 
    display: flex; 
    flex-direction: column; 
}

.lodge-badge { 
    width: 156px; 
    height: 156px; 
    object-fit: contain; 
}

.right-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.right-badge { 
    width: 130px; 
    height: 130px; 
    object-fit: contain; 
}

.lodge-title { 
    font-size: 2.5rem; 
    font-weight: 600; 
    color: #ffffff; 
    margin: 0; 
    line-height: 1.2; 
}

.lodge-subtitle { 
    font-size: 1.1rem; 
    color: #d4af37; 
    font-weight: 500; 
    letter-spacing: 0.05em; 
}

.lodge-details-header { 
    font-size: 0.9rem; 
    color: #94a3b8; 
    text-transform: uppercase; 
    letter-spacing: 0.1em; 
    margin-bottom: 0.25rem; 
}

.nav-links { 
    display: flex; 
    gap: 2rem; 
    align-items: center; 
}

.nav-link { 
    color: #cbd5e0; 
    text-decoration: none; 
    font-weight: 500; 
    transition: color 0.3s ease; 
    padding: 0.5rem; 
    display: inline-block; 
}

.nav-link:hover, .nav-link.active { 
    color: #d4af37; 
}

.nav-link:focus { 
    outline: 3px solid #d4af37; 
    outline-offset: 2px; 
}

/* Sections */
.section { 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 6rem 4rem; 
}

.section-header { 
    margin-bottom: 4rem; 
}

.section-title { 
    font-size: 3rem; 
    font-weight: 600; 
    color: #ffffff; 
    margin-bottom: 1rem; 
    letter-spacing: -0.01em; 
    line-height: 1.2; 
}

.section-subtitle { 
    font-size: 1.2rem; 
    color: #94a3b8; 
    max-width: 600px; 
}

.highlight { 
    color: #d4af37; 
    font-weight: 500; 
}

/* Better text wrapping */
.about-content,
.charity-content,
.meeting-details,
.news-excerpt,
.testimonial-quote,
.footer-section p,
.charity-description,
.schedule-value {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* About Grid */
.about-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 4rem; 
    align-items: start; 
}

.about-content { 
    font-size: 1.1rem; 
    line-height: 1.7; 
    color: #cbd5e0; 
}

.about-content p { 
    margin-bottom: 1.5rem; 
}

.stats-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 2rem; 
}

.stat-item { 
    text-align: center; 
    padding: 2rem; 
    background: rgba(212, 175, 55, 0.1); 
    border-radius: 12px; 
    border: 1px solid rgba(212, 175, 55, 0.2); 
}

.stat-number { 
    font-size: 2.5rem; 
    font-weight: 700; 
    color: #d4af37; 
    display: block; 
    margin-bottom: 0.5rem; 
}

.stat-label { 
    font-size: 0.9rem; 
    color: #94a3b8; 
    text-transform: uppercase; 
    letter-spacing: 0.1em; 
}

/* Charity Grid */
.charity-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 4rem; 
    align-items: start; 
}

.charity-content { 
    font-size: 1.1rem; 
    color: #cbd5e0; 
    line-height: 1.7; 
}

.charity-highlights { 
    background: rgba(212, 175, 55, 0.1); 
    padding: 2.5rem; 
    border-radius: 12px; 
    border: 1px solid rgba(212, 175, 55, 0.2); 
    margin-top: -6rem; 
}

.charity-item { 
    margin-bottom: 1.5rem; 
    padding-bottom: 1.5rem; 
    border-bottom: 1px solid rgba(212, 175, 55, 0.2); 
}

.charity-item:last-child { 
    border-bottom: none; 
    margin-bottom: 0; 
}

.charity-name { 
    font-weight: 600; 
    color: #d4af37; 
    margin-bottom: 0.5rem; 
}

.charity-name a { 
    color: #d4af37; 
    text-decoration: none; 
    transition: all 0.3s ease; 
}

.charity-name a:hover { 
    color: #ffffff; 
    text-decoration: underline; 
}

.charity-name a:focus { 
    outline: 3px solid #d4af37; 
    outline-offset: 2px; 
}

.charity-description { 
    color: #cbd5e0; 
    font-size: 0.95rem; 
}

/* Meeting Content */
.meeting-content { 
    display: grid; 
    grid-template-columns: 2fr 1fr; 
    gap: 4rem; 
    align-items: start; 
}

.meeting-details { 
    font-size: 1.1rem; 
    color: #cbd5e0; 
    line-height: 1.7; 
}

.meeting-details p { 
    margin-bottom: 1.5rem; 
}

.meeting-schedule { 
    background: rgba(212, 175, 55, 0.1); 
    padding: 2.5rem; 
    border-radius: 12px; 
    border: 1px solid rgba(212, 175, 55, 0.2); 
}

.schedule-title { 
    font-size: 1.4rem; 
    font-weight: 600; 
    color: #d4af37; 
    margin-bottom: 1.5rem; 
}

.schedule-item { 
    margin-bottom: 1rem; 
    padding-bottom: 1rem; 
    border-bottom: 1px solid rgba(212, 175, 55, 0.2); 
}

.schedule-item:last-child { 
    border-bottom: none; 
    margin-bottom: 0; 
}

.schedule-label { 
    font-weight: 600; 
    color: #ffffff; 
    display: block; 
    margin-bottom: 0.25rem; 
}

.schedule-value { 
    color: #94a3b8; 
    font-size: 0.95rem; 
}

/* News Grid */
.news-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); 
    gap: 2rem; 
}

.news-card { 
    background: rgba(255, 255, 255, 0.05); 
    border-radius: 12px; 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    overflow: hidden; 
    transition: all 0.3s ease; 
    display: flex; 
    flex-direction: column; 
}

.news-card:hover { 
    transform: translateY(-5px); 
    border-color: rgba(212, 175, 55, 0.3); 
}

.news-image { 
    width: 100%; 
    aspect-ratio: 3 / 2; 
    height: auto; 
    background: rgba(212, 175, 55, 0.1); 
    object-fit: cover; 
}

@supports not (aspect-ratio: 3 / 2) { 
    .news-image { 
        height: 200px; 
    } 
}

.news-content { 
    padding: 2rem; 
    flex-grow: 1; 
}

.news-date { 
    font-size: 0.8rem; 
    color: #94a3b8; 
    text-transform: uppercase; 
    letter-spacing: 0.1em; 
    margin-bottom: 0.5rem; 
}

.news-title { 
    font-size: 1.2rem; 
    font-weight: 600; 
    color: #ffffff; 
    margin-bottom: 1rem; 
    line-height: 1.4; 
}

.news-excerpt { 
    color: #cbd5e0; 
    font-size: 0.95rem; 
    line-height: 1.6; 
}

/* Testimonials */
.testimonials-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); 
    gap: 2rem; 
}

.testimonial-card { 
    background: rgba(255, 255, 255, 0.05); 
    padding: 2.5rem; 
    border-radius: 12px; 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    display: flex; 
    flex-direction: column; 
    min-height: 320px; 
}

.testimonial-quote { 
    font-size: 1.1rem; 
    color: #cbd5e0; 
    line-height: 1.6; 
    margin-bottom: 1.5rem; 
    font-style: italic; 
    flex-grow: 1; 
}

.testimonial-author { 
    font-weight: 600; 
    color: #d4af37; 
    margin-bottom: 0.25rem; 
}

.testimonial-role { 
    font-size: 0.9rem; 
    color: #94a3b8; 
}

/* CTA Buttons */
.cta-button { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    background: linear-gradient(135deg, #c53030 0%, #9c2a2a 100%); 
    color: #fff; 
    padding: 1.2rem 3rem; 
    font-size: 1.1rem; 
    font-weight: 600; 
    text-decoration: none; 
    border-radius: 8px; 
    transition: all 0.3s ease; 
    box-shadow: 0 8px 25px rgba(197, 48, 48, 0.3); 
    border: 2px solid transparent; 
    width: fit-content; 
    margin-top: 2rem; 
    min-height: 55px; 
}

.cta-button:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 12px 35px rgba(197, 48, 48, 0.4); 
    border-color: rgba(212, 175, 55, 0.5); 
}

.cta-button:focus { 
    outline: 3px solid #d4af37; 
    outline-offset: 2px; 
}

.cta-button.secondary { 
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%); 
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3); 
    color: #1a1a1a; 
}

.cta-button.secondary:hover { 
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.4); 
    border-color: rgba(197, 48, 48, 0.5); 
}

/* Footer */
.footer { 
    background: linear-gradient(135deg, hsl(225, 55%, 15%) 0%, hsl(220, 60%, 17%) 25%, hsl(218, 62%, 19%) 50%, hsl(216, 64%, 21%) 75%, hsl(215, 65%, 22%) 100%); 
    padding: 3rem 0 2rem; 
    margin-top: 4rem; 
}

.footer-container { 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 0 4rem; 
}

.footer-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 3rem; 
    margin-bottom: 2rem; 
}

.footer-section h3 { 
    color: #d4af37; 
    font-size: 1.2rem; 
    margin-bottom: 1rem; 
}

.footer-section p, .footer-section a { 
    color: #cbd5e0; 
    font-size: 0.9rem; 
    line-height: 1.6; 
    text-decoration: none; 
}

.footer-section a:hover { 
    color: #d4af37; 
}

.footer-section a:focus { 
    outline: 3px solid #d4af37; 
    outline-offset: 2px; 
}

.footer-links { 
    list-style: none; 
}

.footer-links li { 
    margin-bottom: 0.8rem; 
}

.footer-bottom { 
    border-top: 1px solid rgba(255, 255, 255, 0.1); 
    padding-top: 2rem; 
    text-align: center; 
    color: #94a3b8; 
    font-size: 0.8rem; 
}

.sr-only { 
    position: absolute; 
    width: 1px; 
    height: 1px; 
    padding: 0; 
    margin: -1px; 
    overflow: hidden; 
    clip: rect(0, 0, 0, 0); 
    white-space: nowrap; 
    border: 0; 
}

.keyboard-navigation *:focus { 
    outline: 3px solid #d4af37 !important; 
    outline-offset: 2px !important; 
}

/* Responsive */
@media (min-width: 1920px) { 
    .section, .header-container, .footer-container { 
        max-width: 1600px; 
    } 
}

@media (max-width: 1200px) { 
    .header-container, .section, .footer-container { 
        padding: 0 3rem; 
    } 
    .section { 
        padding: 5rem 3rem; 
    } 
}

@media (min-width: 769px) and (max-width: 1199px) { 
    .about-grid, .charity-grid, .meeting-content { 
        gap: 3rem; 
    } 
    .section-title { 
        font-size: 2.5rem; 
    } 
    .section-subtitle { 
        font-size: 1.1rem; 
    } 
}

@media screen and (max-width: 1600px) { 
    .progress-nav { 
        right: 1rem; 
        padding: 0.75rem 0.5rem; 
    } 
    .progress-nav h4, .nav-label { 
        display: none; 
    } 
    .nav-item { 
        justify-content: center; 
        padding: 0.5rem 0; 
    } 
    .nav-dot { 
        margin-right: 0; 
        width: 12px; 
        height: 12px; 
    } 
}

@media screen and (max-width: 768px) { 
    .progress-nav { 
        display: none; 
    } 
    
    body::after { 
        background-size: 81.25vw 81.25vw, 81.25vw 81.25vw; 
        background-position: center 6vh, center 48vh; 
    } 
    
    .header-container { 
        padding: 0 2rem; 
        flex-direction: column; 
        gap: 1.5rem; 
        text-align: center; 
    } 
    
    .logo-section { 
        flex-direction: column; 
        gap: 1rem; 
        text-align: center; 
    } 
    
    .nav-links { 
        flex-wrap: wrap; 
        justify-content: center; 
        gap: 1rem; 
        width: 100%; 
        flex-direction: column; 
    } 
    
    .nav-link { 
        padding: 0.8rem 1rem; 
        background: rgba(255, 255, 255, 0.05); 
        border-radius: 6px; 
        width: 100%; 
        text-align: center; 
        min-height: 48px; 
        display: flex; 
        align-items: center; 
        justify-content: center; 
    } 
    
    .right-section {
        display: none;
    }
    
    .section { 
        padding: 4rem 2rem; 
    } 
    
    .lodge-title { 
        font-size: 2rem; 
    } 
    
    .section-title { 
        font-size: 2.2rem; 
    } 
    
    .about-grid, .meeting-content, .charity-grid { 
        grid-template-columns: 1fr; 
        gap: 3rem; 
    } 
    
    .charity-highlights { 
        margin-top: 0; 
    } 
    
    .stats-grid { 
        grid-template-columns: 1fr; 
    } 
    
    .footer-container { 
        padding: 0 2rem; 
    } 
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .lodge-badge, .right-badge { 
        width: 120px; 
        height: 120px; 
    } 
    
    .cta-button { 
        width: 100%; 
    } 
}

@media screen and (max-width: 480px) { 
    body::after { 
        background-size: 93.75vw 93.75vw, 93.75vw 93.75vw; 
        background-position: center 5vh, center 45vh; 
        opacity: 0.03; 
    } 
    
    .lodge-title { 
        font-size: 1.75rem; 
    } 
    
    .section { 
        padding: 3rem 1.5rem; 
    } 
    
    .section-title { 
        font-size: 1.8rem; 
    } 
    
    .testimonial-card, .meeting-schedule, .charity-highlights { 
        padding: 1.5rem; 
        min-height: auto;
    } 
    
    .news-card {
        min-height: auto;
    }
    
    .stat-item {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .footer-container { 
        padding: 0 1.5rem; 
    } 
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .lodge-badge, .right-badge { 
        width: 96px; 
        height: 96px; 
    } 
}