/* =====================================================
   ZION LUTHERAN CHURCH OF GOLDEN SPIKE - DESIGN SYSTEM
   Traditional Faith & Heritage Theme
   ===================================================== */

/* CSS Custom Properties */
:root {
    /* Primary Colors */
    --primary-deep-blue: #1e3a5f;
    --primary-deep-blue-light: #2a4a75;
    --primary-deep-blue-dark: #152840;
    
    /* Accent Colors */
    --accent-gold: #d4a84b;
    --accent-gold-light: #e6c77a;
    --accent-gold-dark: #b8923d;
    --accent-burgundy: #722f37;
    --accent-burgundy-light: #8d424a;
    
    /* Neutrals */
    --cream-white: #faf8f5;
    --warm-white: #ffffff;
    --soft-gray: #6b7280;
    --medium-gray: #9ca3af;
    --light-gray: #e5e7eb;
    --dark-gray: #374151;
    --near-black: #1f2937;
    
    /* Semantic Colors */
    --success: #059669;
    --warning: #d97706;
    --error: #dc2626;
    
    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Sans Pro', 'Segoe UI', sans-serif;
    
    /* Spacing Scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    
    /* Container Widths */
    --max-width-sm: 640px;
    --max-width-md: 768px;
    --max-width-lg: 1024px;
    --max-width-xl: 1200px;
}

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--cream-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--primary-deep-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-gold);
}

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

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

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

.lead {
    font-size: 1.25rem;
    color: var(--soft-gray);
    line-height: 1.7;
}

.scripture {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--accent-burgundy);
    font-size: 1.125rem;
}

.scripture-ref {
    font-style: normal;
    font-weight: 600;
    display: block;
    margin-top: var(--space-sm);
}

/* Container */
.container {
    width: 100%;
    max-width: var(--max-width-xl);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container-sm {
    max-width: var(--max-width-md);
}

/* Top Info Bar */
.top-bar {
    background: linear-gradient(135deg, var(--primary-deep-blue) 0%, var(--primary-deep-blue-dark) 100%);
    color: var(--warm-white);
    padding: var(--space-sm) 0;
    font-size: 0.875rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.top-bar-info {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.top-bar-item svg {
    width: 16px;
    height: 16px;
    fill: var(--accent-gold);
}

.top-bar a {
    color: var(--warm-white);
}

.top-bar a:hover {
    color: var(--accent-gold);
}

/* Header */
.header {
    background-color: var(--warm-white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.logo-icon {
    width: 60px;
    height: 60px;
}

.logo-text h1 {
    font-size: 1.25rem;
    color: var(--primary-deep-blue);
    margin-bottom: 0;
    line-height: 1.2;
}

.logo-text span {
    font-size: 0.75rem;
    color: var(--soft-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
}

.nav-menu a {
    color: var(--dark-gray);
    font-weight: 500;
    padding: var(--space-sm) 0;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-gold);
    transition: width var(--transition-base);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-deep-blue);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.mobile-menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--primary-deep-blue);
    margin: 5px 0;
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
    color: var(--warm-white);
    border-color: var(--accent-gold);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-gold-light) 0%, var(--accent-gold) 100%);
    color: var(--warm-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--primary-deep-blue);
    color: var(--warm-white);
    border-color: var(--primary-deep-blue);
}

.btn-secondary:hover {
    background-color: var(--primary-deep-blue-light);
    color: var(--warm-white);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-deep-blue);
    border-color: var(--primary-deep-blue);
}

.btn-outline:hover {
    background-color: var(--primary-deep-blue);
    color: var(--warm-white);
}

.btn-donate {
    background: linear-gradient(135deg, var(--accent-burgundy) 0%, var(--accent-burgundy-light) 100%);
    color: var(--warm-white);
    border-color: var(--accent-burgundy);
}

.btn-donate:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--warm-white);
}

.btn-lg {
    padding: var(--space-md) var(--space-xl);
    font-size: 1.125rem;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(30, 58, 95, 0.85) 0%,
        rgba(30, 58, 95, 0.7) 50%,
        rgba(114, 47, 55, 0.6) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--warm-white);
    max-width: 800px;
    padding: var(--space-2xl);
}

.hero h1 {
    font-size: 3rem;
    color: var(--warm-white);
    margin-bottom: var(--space-lg);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero .lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: var(--space-xl);
}

.hero .scripture {
    color: var(--accent-gold-light);
    font-size: 1.125rem;
    margin-bottom: var(--space-xl);
}

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

/* Sections */
.section {
    padding: var(--space-4xl) 0;
}

.section-alt {
    background-color: var(--warm-white);
}

.section-dark {
    background-color: var(--primary-deep-blue);
    color: var(--warm-white);
}

.section-dark h2,
.section-dark h3 {
    color: var(--warm-white);
}

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

.section-header h2 {
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-burgundy));
    border-radius: var(--radius-full);
}

.section-header .lead {
    max-width: 600px;
    margin: var(--space-lg) auto 0;
}

/* Cards */
.card {
    background-color: var(--warm-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

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

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

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

.card-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.card-text {
    color: var(--soft-gray);
    margin-bottom: var(--space-md);
}

/* Feature Cards */
.feature-card {
    text-align: center;
    padding: var(--space-xl);
    background-color: var(--warm-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-deep-blue) 0%, var(--primary-deep-blue-light) 100%);
    border-radius: var(--radius-full);
}

.feature-icon svg {
    width: 36px;
    height: 36px;
    fill: var(--accent-gold);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.feature-card p {
    color: var(--soft-gray);
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: var(--space-xl);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Service Times Box */
.service-box {
    background: linear-gradient(135deg, var(--primary-deep-blue) 0%, var(--primary-deep-blue-dark) 100%);
    color: var(--warm-white);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-box::before {
    content: '✟';
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 150px;
    opacity: 0.1;
    color: var(--accent-gold);
}

.service-box h3 {
    color: var(--accent-gold);
    margin-bottom: var(--space-lg);
}

.service-time {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.service-time:last-child {
    border-bottom: none;
}

.service-day {
    font-weight: 600;
    color: var(--accent-gold-light);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: var(--space-3xl);
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--accent-gold), var(--accent-burgundy));
}

.timeline-item {
    position: relative;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-xl);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: calc(-1 * var(--space-3xl) + 8px);
    top: 5px;
    width: 16px;
    height: 16px;
    background-color: var(--accent-gold);
    border: 3px solid var(--warm-white);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
}

.timeline-year {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--accent-burgundy);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        rgba(30, 58, 95, 0.9) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity var(--transition-base);
    display: flex;
    align-items: flex-end;
    padding: var(--space-lg);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-caption {
    color: var(--warm-white);
    font-weight: 500;
}

/* Contact Form */
.contact-form {
    background-color: var(--warm-white);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--dark-gray);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: var(--space-md);
    font-family: var(--font-body);
    font-size: 1rem;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-deep-blue);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

/* Contact Info Cards */
.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background-color: var(--cream-white);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
}

.contact-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-deep-blue) 0%, var(--primary-deep-blue-light) 100%);
    border-radius: var(--radius-full);
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--accent-gold);
}

.contact-details h4 {
    margin-bottom: var(--space-xs);
    font-size: 1rem;
}

.contact-details p {
    color: var(--soft-gray);
    margin-bottom: 0;
}

/* Map Container */
.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-deep-blue-dark) 0%, var(--primary-deep-blue) 100%);
    color: var(--warm-white);
    padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: var(--space-2xl);
    margin-bottom: var(--space-3xl);
}

.footer-about p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-lg);
}

.footer h4 {
    color: var(--accent-gold);
    font-size: 1.125rem;
    margin-bottom: var(--space-lg);
    position: relative;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-gold);
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-sm);
}

.footer-contact svg {
    width: 18px;
    height: 18px;
    fill: var(--accent-gold);
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-xl);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    margin-bottom: var(--space-sm);
}

.charity-id {
    color: var(--accent-gold);
    font-weight: 600;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-deep-blue) 0%, var(--primary-deep-blue-dark) 100%);
    padding: var(--space-4xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '✟';
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    font-size: 200px;
    opacity: 0.05;
    color: var(--accent-gold);
}

.page-header h1 {
    color: var(--warm-white);
    margin-bottom: var(--space-md);
}

.page-header .lead {
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    font-size: 0.875rem;
}

.breadcrumb a {
    color: var(--accent-gold);
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.6);
}

/* Announcement Bar */
.announcement-bar {
    background: linear-gradient(90deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
    color: var(--primary-deep-blue-dark);
    text-align: center;
    padding: var(--space-sm) var(--space-md);
    font-weight: 600;
}

.announcement-bar a {
    color: var(--primary-deep-blue-dark);
    text-decoration: underline;
}

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

.lightbox.active {
    display: flex;
}

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

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: var(--warm-white);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.lightbox-close:hover {
    color: var(--accent-gold);
}

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
.mb-4 { margin-bottom: var(--space-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mt-4 { margin-top: var(--space-xl); }

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.375rem; }
    
    .hero {
        min-height: 60vh;
    }
    
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .top-bar-content {
        flex-direction: column;
        text-align: center;
    }
    
    .top-bar-info {
        justify-content: center;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--warm-white);
        flex-direction: column;
        padding: var(--space-lg);
        box-shadow: var(--shadow-lg);
        text-align: center;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-contact p {
        justify-content: center;
    }
    
    .timeline {
        padding-left: var(--space-2xl);
    }
    
    .section {
        padding: var(--space-3xl) 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    .hero-content {
        padding: var(--space-lg);
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
}
