/* 
   GAAAP Justice & Church Bridge Portal 
   Primary Theme: Modern, Premium, Faith-Centered, Civil-Rights-Inspired
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Inter:wght@300;400;600&family=Cinzel:wght@400;700&display=swap');

:root {
    /* Brand Colors */
    --color-charcoal-dark: #050505;
    --color-charcoal-medium: #111111;
    --color-charcoal-light: #181818;
    --color-gold-metallic: #C9931A;
    --color-gold-deep: #D4AF37;
    --color-gold-light: #FFD76A;
    --color-bronze: #8A5A12;
    --color-white: #FFFFFF;
    --color-soft-white: #F7F3EA;
    --color-parchment: #F3E9D2;
    --color-accent-red: #8B1E1E;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-accent: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-charcoal-dark);
    color: var(--color-soft-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-gold-light);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.text-gold { color: var(--color-gold-deep); }
.text-parchment { color: var(--color-parchment); }
.font-accent { font-family: var(--font-accent); }

/* Layout Components */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 5rem 0;
}

/* Glassmorphism Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(201, 147, 26, 0.2);
    border-radius: 15px;
    padding: 2.5rem;
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-gold-metallic);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.btn-gold {
    background-color: var(--color-gold-metallic);
    color: var(--color-charcoal-dark);
}

.btn-gold:hover {
    background-color: var(--color-gold-light);
    transform: translateY(-2px);
}

.btn-outline-gold {
    background: transparent;
    color: var(--color-gold-light);
    border: 1px solid var(--color-gold-metallic);
}

.btn-outline-gold:hover {
    background: rgba(201, 147, 26, 0.1);
    border-color: var(--color-gold-light);
}

/* Header & Navigation */
header.sticky-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(201, 147, 26, 0.2);
}

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

.logo-text {
    font-family: var(--font-accent);
    color: var(--color-gold-light);
    font-size: 1.5rem;
    text-decoration: none;
}

.mobile-toggle {
    display: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--color-soft-white);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-gold-metallic);
}

/* Hero Sections */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-size: cover;
    background-position: center;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(5, 5, 5, 0.4) 0%, rgba(5, 5, 5, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 0 2rem;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--color-soft-white);
    margin-bottom: 2.5rem;
    font-weight: 300;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* Archive Sections */
.archive-section {
    background-color: var(--color-parchment);
    color: var(--color-charcoal-dark);
}

.archive-section h1, .archive-section h2 {
    color: var(--color-bronze);
}

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

.archive-card {
    background: white;
    padding: 1rem;
    border: 1px solid #ddd;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.archive-card:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.archive-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 1px solid #eee;
    transition: transform 0.3s ease;
}

.img-rotate-90 {
    transform: rotate(90deg);
    object-fit: contain !important;
    background: #f9f9f9;
}

/* Lightbox Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    box-shadow: 0 0 30px rgba(201, 147, 26, 0.3);
    border: 2px solid var(--color-gold-metallic);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--color-gold-light);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Footer */
footer {
    background-color: var(--color-charcoal-dark);
    padding: 4rem 0 2rem;
    border-top: 2px solid var(--color-gold-metallic);
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-scripture {
    font-style: italic;
    color: var(--color-gold-deep);
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

/* Dividers */
.divider-gold {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold-metallic), transparent);
    margin: 2rem 0;
    border: none;
}

/* Portal Layout */
.hero-compact {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-size: cover;
    background-position: center;
    padding-top: 80px;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: -100px;
    position: relative;
    z-index: 10;
}

.portal-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-gold-metallic);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
    color: var(--color-charcoal-dark);
}

.portal-card h3 {
    color: var(--color-bronze);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.portal-card p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    color: #444;
}

.portal-card:hover {
    transform: translateY(-5px);
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 80vh;
        padding: 140px 0 6rem 0;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-compact {
        min-height: 50vh;
        padding-top: 140px;
    }

    .hero-content img {
        height: 100px !important;
        margin-bottom: 1.5rem !important;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        margin-top: 2rem;
    }

    .hero-btns .btn {
        margin-left: 0 !important;
        width: 100%;
        max-width: 300px;
    }

    .glass-card {
        padding: 1.5rem !important;
    }

    section {
        padding: 4rem 1rem !important;
    }

    .portal-grid {
        margin-top: -60px;
        padding: 0 1rem;
        grid-template-columns: 1fr !important;
    }

    .archive-grid {
        grid-template-columns: 1fr !important;
    }

    .mobile-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        cursor: pointer;
        z-index: 1100;
        gap: 4px;
    }

    .mobile-toggle span {
        width: 100%;
        height: 2px;
        background-color: var(--color-gold-light);
        transition: all 0.3s ease;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(5, 5, 5, 0.98);
        padding: 2rem;
        border-bottom: 2px solid var(--color-gold-metallic);
        text-align: center;
        gap: 1.5rem;
    }

    .nav-links.active {
        display: flex;
    }
    
    /* Mobile Modal Adjustments */
    .modal {
        padding: 1rem;
    }

    .modal-content {
        max-width: 100%;
        max-height: 80vh;
    }

    .modal-close {
        top: 10px;
        right: 20px;
        font-size: 35px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .portal-card {
        padding: 1.5rem;
    }
}
