/* ========================================
   LIGA 3:16 - STYLESHEET
   Mobile-First Responsive Design
   ======================================== */

/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
    /* Colors */
    --bg: #0B0F14;
    --panel: #101826;
    --panel-light: #1a2332;
    --gold: #D4AF37;
    --gold2: #B98B2F;
    --gold-dark: #8B6F1F;
    --text: #F5F2EA;
    --muted: #B7C0CC;
    --muted-dark: #6B7280;
    --success: #10B981;
    --error: #EF4444;
    --warning: #F59E0B;
    
    /* Typography */
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Georgia', 'Times New Roman', serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    
    /* Border */
    --radius: 8px;
    --radius-lg: 12px;
    --border-gold: 2px solid var(--gold);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-gold: 0 0 20px rgba(212, 175, 55, 0.3);
    
    /* Transitions */
    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--gold2);
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: var(--text);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

p {
    margin-bottom: var(--space-sm);
}

.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.text-gold { color: var(--gold); }

/* ========================================
   LAYOUT
   ======================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container-narrow {
    max-width: 800px;
}

main {
    min-height: 60vh;
}

section {
    padding: var(--space-2xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: var(--space-sm);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold2));
}

/* ========================================
   ANNOUNCEMENT BANNER
   ======================================== */
.announcement-banner {
    background: linear-gradient(90deg, var(--gold-dark), var(--gold));
    color: var(--bg);
    padding: var(--space-xs) 0;
    text-align: center;
    font-weight: 600;
}

.announcement-banner a {
    color: var(--bg);
    text-decoration: underline;
}

.announcement-banner a:hover {
    opacity: 0.8;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
.site-header {
    background: var(--panel);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: var(--space-sm) 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text);
}

.logo-link:hover {
    color: var(--gold);
}

.logo {
    width: 50px;
    height: 64px;
}

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

.logo-text strong {
    font-size: 1.25rem;
    font-family: var(--font-heading);
    color: var(--gold);
}

.logo-text small {
    font-size: 0.75rem;
    color: var(--muted);
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--gold);
    transition: var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Navigation Menu */
.nav-list {
    display: flex;
    list-style: none;
    gap: var(--space-md);
    align-items: center;
}

.nav-list a {
    color: var(--text);
    font-weight: 500;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius);
    transition: var(--transition);
}

.nav-list a:hover,
.nav-list a.active {
    background: var(--panel-light);
    color: var(--gold);
}

/* Dropdown */
.has-dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: '▼';
    font-size: 0.7rem;
    margin-left: 5px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--panel-light);
    min-width: 200px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    margin-top: var(--space-xs);
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    display: block;
    padding: var(--space-sm);
    color: var(--text);
}

.dropdown-menu a:hover {
    background: var(--panel);
    color: var(--gold);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background: var(--panel);
        box-shadow: var(--shadow-lg);
        transition: right var(--transition);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        padding: var(--space-lg);
        align-items: stretch;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition);
    }
    
    .has-dropdown.active .dropdown-menu {
        max-height: 500px;
    }
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold2));
    color: var(--bg);
    border-color: var(--gold);
}

.btn-primary:hover {
    background: var(--gold2);
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--gold);
    border-color: var(--gold);
}

.btn-secondary:hover {
    background: var(--gold);
    color: var(--bg);
}

.btn-block {
    display: block;
    width: 100%;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--bg) 0%, var(--panel) 100%);
    padding: var(--space-2xl) 0;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

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

.hero-logo {
    width: 150px;
    height: 191px;
    margin: 0 auto var(--space-lg);
    filter: drop-shadow(var(--shadow-gold));
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, var(--gold), var(--text));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .tagline {
    font-size: 1.5rem;
    color: var(--muted);
    margin-bottom: var(--space-xl);
    font-style: italic;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero .tagline {
        font-size: 1.25rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* ========================================
   STATS SECTION
   ======================================== */
.stats {
    background: var(--panel);
    padding: var(--space-xl) 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
}

.stat-card {
    text-align: center;
    padding: var(--space-lg);
    background: var(--panel-light);
    border-radius: var(--radius-lg);
    border: 2px solid transparent;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: var(--shadow-gold);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.stat-label {
    color: var(--muted);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   VALUES SECTION
   ======================================== */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

@media (max-width: 1024px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .values-grid {
        grid-template-columns: 1fr;
    }
}

.value-card {
    background: var(--panel);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--gold);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.value-card h3 {
    color: var(--gold);
    margin-bottom: var(--space-sm);
}

/* ========================================
   CARDS
   ======================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.card {
    background: var(--panel);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: var(--shadow-gold);
}

.card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--panel-light), var(--bg));
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-placeholder {
    width: 80px;
    height: 80px;
    opacity: 0.3;
}

.card-body {
    padding: var(--space-lg);
    flex: 1;
}

.card-title {
    margin-bottom: var(--space-sm);
    color: var(--gold);
}

.card-text {
    color: var(--muted);
}

.card-footer {
    padding: var(--space-md) var(--space-lg);
    background: var(--panel-light);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

/* ========================================
   TEAM CARDS
   ======================================== */
.team-card {
    text-align: center;
}

.team-shield {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--space-md);
    background: var(--panel-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--gold);
}

/* ========================================
   TABLES
   ======================================== */
.table-container {
    overflow-x: auto;
    background: var(--panel);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: var(--panel-light);
}

th {
    padding: var(--space-md);
    text-align: left;
    font-weight: 600;
    color: var(--gold);
    border-bottom: 2px solid var(--gold);
}

td {
    padding: var(--space-md);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

tr:hover {
    background: var(--panel-light);
}

.table-center {
    text-align: center;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-success {
    background: var(--success);
    color: white;
}

.badge-error {
    background: var(--error);
    color: white;
}

.badge-warning {
    background: var(--warning);
    color: white;
}

/* ========================================
   FORMS
   ======================================== */
.form-group {
    margin-bottom: var(--space-md);
}

label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 600;
    color: var(--gold);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: var(--space-sm);
    background: var(--panel-light);
    border: 2px solid transparent;
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.form-error {
    color: var(--error);
    font-size: 0.875rem;
    margin-top: var(--space-xs);
}

.alert {
    padding: var(--space-md);
    border-radius: var(--radius);
    margin-bottom: var(--space-md);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid var(--success);
    color: var(--success);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid var(--error);
    color: var(--error);
}

/* ========================================
   GALLERY
   ======================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--space-md);
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    background: var(--panel);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-gold);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 15, 20, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--radius);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gold);
    color: var(--bg);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    background: var(--gold2);
    transform: rotate(90deg);
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    background: var(--panel);
    border-top: 2px solid var(--gold);
    padding: var(--space-2xl) 0 var(--space-lg);
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.footer-logo {
    width: 60px;
    height: 72px;
}

.footer-brand h3 {
    color: var(--gold);
    margin: 0;
}

.tagline {
    color: var(--muted);
    font-style: italic;
}

.bible-verse {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.8;
    padding: var(--space-md);
    background: var(--panel-light);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius);
}

.footer-column h4 {
    color: var(--gold);
    margin-bottom: var(--space-md);
}

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

.footer-links li,
.footer-contact li {
    margin-bottom: var(--space-sm);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer-contact .icon {
    color: var(--gold);
    flex-shrink: 0;
}

.social-links {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--panel-light);
    border-radius: 50%;
    color: var(--gold);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--gold);
    color: var(--bg);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    color: var(--muted);
}

.heart {
    color: var(--error);
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gold);
    color: var(--bg);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    z-index: 999;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background: var(--gold2);
    transform: translateY(-5px);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }

.hidden {
    display: none !important;
}

.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;
}

/* ========================================
   LOADING ANIMATION
   ======================================== */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    border-top-color: var(--gold);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .site-header,
    .site-footer,
    #back-to-top,
    .announcement-banner {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
