/* ===================================
   CSS Variables & Reset
   =================================== */
:root {
    --burgundy: #8B1538;
    --burgundy-dark: #6B0E2B;
    --burgundy-light: #A62247;
    --gold: #B8860B;
    --gold-light: #DAA520;
    --cream: #FFF8E7;
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-600: #4B5563;
    --gray-800: #1F2937;
    --gray-900: #111827;
    
    --font-heading: 'Crimson Pro', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --shadow-sm: 0 1px 2px 0 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);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

/* ===================================
   Typography
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-600);
}

/* ===================================
   Layout Utilities
   =================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 5rem 0;
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.church-logo svg {
    display: block;
}

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

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--burgundy);
    line-height: 1;
}

.brand-subtitle {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 400;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--burgundy);
}

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

.nav-link-donate {
    background: var(--burgundy);
    color: var(--white);
    padding: 0.625rem 1.25rem;
    border-radius: 6px;
}

.nav-link-donate::after {
    display: none;
}

.nav-link-donate:hover {
    background: var(--burgundy-dark);
    color: var(--white);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 3px;
    background: var(--burgundy);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('/img/church_hall.png') center center / cover no-repeat;
    color: var(--white);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 3rem 1.5rem;
}

.hero-title {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    letter-spacing: -0.02em;
}

.hero-scripture {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    line-height: 1.7;
    font-style: italic;
    color: var(--cream);
    margin-bottom: 0.75rem;
    font-weight: 400;
}

.hero-reference {
    color: var(--gold-light);
    font-size: 1rem;
    margin-bottom: 2.5rem;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    font-size: 1rem;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}

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

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

.btn-secondary:hover {
    background: var(--white);
    color: var(--burgundy);
}

.btn-text {
    color: var(--burgundy);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.btn-text:hover {
    color: var(--burgundy-dark);
}

/* ===================================
   Service Times Section
   =================================== */
.service-times {
    background: var(--gray-50);
    padding: 4rem 0;
}

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

.service-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-top: 4px solid var(--gold);
}

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

.service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: var(--cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--burgundy);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--burgundy);
}

.service-card .time {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    font-family: var(--font-heading);
    margin: 0.5rem 0;
}

.service-card .format {
    color: var(--gray-600);
    font-size: 0.95rem;
}

/* ===================================
   PWA Section
   =================================== */
.pwa-section {
    background: linear-gradient(135deg, var(--cream) 0%, var(--white) 100%);
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--burgundy);
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    color: var(--gray-600);
}

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

.pwa-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--gray-100);
}

.pwa-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.pwa-card h3 {
    margin-bottom: 1.5rem;
    color: var(--burgundy);
}

.pwa-steps {
    list-style: none;
    counter-reset: step-counter;
}

.pwa-steps li {
    counter-increment: step-counter;
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1rem;
    color: var(--gray-600);
}

.pwa-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    background: var(--burgundy);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.install-button {
    margin: 0 auto;
    display: block;
}

/* ===================================
   Values Section
   =================================== */
.values-section {
    background: var(--white);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.value-card {
    position: relative;
    padding: 2rem;
    border-left: 4px solid var(--gold);
}

.value-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    color: var(--cream);
    line-height: 1;
    margin-bottom: 1rem;
}

.value-card h3 {
    color: var(--burgundy);
    margin-bottom: 1rem;
}

.value-card p {
    color: var(--gray-600);
}

/* ===================================
   Latest Sermon Section
   =================================== */
.latest-sermon {
    background: var(--gray-50);
}

.sermon-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.sermon-label {
    display: inline-block;
    background: var(--burgundy);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.sermon-text h2 {
    margin-bottom: 1.5rem;
}

.sermon-text p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.sermon-video {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.video-placeholder {
    aspect-ratio: 16 / 9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    color: var(--gray-600);
    gap: 1rem;
}

.video-placeholder svg {
    color: var(--burgundy);
}

/* ===================================
   Ministries Preview
   =================================== */
.ministries-preview {
    background: var(--white);
}

.ministry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.ministry-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

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

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

.image-placeholder {
    font-size: 4rem;
}

.ministry-card h3 {
    padding: 1.5rem 2rem 0.5rem;
    color: var(--burgundy);
}

.ministry-card p {
    padding: 0 2rem 1.5rem;
    color: var(--gray-600);
}

.link-arrow {
    display: inline-block;
    padding: 0 2rem 1.5rem;
    color: var(--gold);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.link-arrow:hover {
    color: var(--gold-light);
    padding-left: 2.25rem;
}

/* ===================================
   Events Preview
   =================================== */
.events-preview {
    background: var(--gray-50);
}

.events-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.event-item {
    display: flex;
    gap: 2rem;
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-left: 4px solid var(--gold);
}

.event-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(8px);
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    background: var(--burgundy);
    color: var(--white);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.date-day {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.date-number {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-heading);
    line-height: 1;
    margin: 0.25rem 0;
}

.date-month {
    font-size: 0.875rem;
    font-weight: 600;
}

.event-details h3 {
    color: var(--burgundy);
    margin-bottom: 0.5rem;
}

.event-details p {
    margin-bottom: 0.75rem;
}

.event-location {
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--burgundy-dark) 100%);
    color: var(--gray-300);
    padding: 4rem 0 2rem;
}

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

.footer-brand {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.footer-brand h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.footer-brand p {
    color: var(--gold);
    font-size: 0.875rem;
}

.footer-mission {
    color: var(--gray-300);
    line-height: 1.7;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    font-family: var(--font-heading);
}

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

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

.footer-links a {
    color: var(--gray-300);
    text-decoration: none;
    transition: var(--transition);
}

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

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

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

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

/* ===================================
   Animations
   =================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out forwards;
    opacity: 0;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 73px;
        left: -100%;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
        align-items: flex-start;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .sermon-content {
        grid-template-columns: 1fr;
    }
    
    .events-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .event-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .event-date {
        align-self: flex-start;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    section {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .brand-name {
        font-size: 1.25rem;
    }
    
    .brand-subtitle {
        font-size: 0.75rem;
    }
    
    .service-grid,
    .values-grid,
    .ministry-grid {
        grid-template-columns: 1fr;
    }
}
