/* ============================================
   LIBERTY FAMILY WEBSITE - Main Stylesheet
   Redesigned to match reference style
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #fff;
    background-color: #003030;
}

html {
    scroll-behavior: smooth;
}

/* ============================================
   Navigation Bar
   ============================================ */

.navbar {
    background: #00a8a8;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: none;
    border-bottom: 1px solid #e8e8e8;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: #1a1a1a;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    border-bottom: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #44ffff;
    border-bottom: none;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
    z-index: 1001;
}

.mobile-menu-toggle:hover {
    color: #44ffff;
}

/* ============================================
   Main Content Area
   ============================================ */

main {
    min-height: calc(100vh - 400px);
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    background: linear-gradient(135deg, #f5f5f5 0%, #fafafa 100%);
    color: #1a1a1a;
    padding: 100px 20px;
    text-align: center;
    border-radius: 0;
    margin-bottom: 60px;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: 0px;
    line-height: 1.3;
}

.hero p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
}

.hero .tagline {
    font-size: 1rem;
    opacity: 0.95;
    font-style: normal;
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   Service Times Banner
   ============================================ */

.service-banner {
    background: #ffffff;
    border: 2px solid #f0f0f0;
    padding: 40px 20px;
    margin-bottom: 60px;
    text-align: center;
    border-radius: 4px;
}

.service-banner h2 {
    font-size: 1.3rem;
    color: #1a1a1a;
    margin-bottom: 15px;
    font-weight: 600;
}

.service-banner .time {
    font-size: 1.4rem;
    color: #00a8a8;
    font-weight: 700;
}

.service-banner p {
    color: #666;
    font-size: 0.95rem;
    margin-top: 15px;
}

/* ============================================
   Cards Grid
   ============================================ */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.card {
    background: #ffffff;
    border-radius: 8px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    border-color: #e0e0e0;
}

.card-icon {
    font-size: 2.8rem;
    margin-bottom: 15px;
    height: 50px;
    color: #00a8a8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon i {
    font-size: 2.8rem;
    color: #00a8a8;
    transition: all 0.3s ease;
}

.card:hover .card-icon i {
    color: #008b8b;
    transform: scale(1.08);
}

.card h3 {
    color: #1a1a1a;
    margin-bottom: 12px;
    font-size: 1.25rem;
    font-weight: 600;
}

.card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.7;
    font-size: 0.95rem;
}

.card a {
    display: inline-block;
    background: #00a8a8;
    color: white;
    padding: 10px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.card a:hover {
    background: #008b8b;
    transform: scale(1.02);
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: #00a8a8;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #008b8b;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #f0f0f0;
    color: #1a1a1a;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

/* ============================================
   Forms
   ============================================ */

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
input[type="phone"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="phone"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #00a8a8;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 168, 168, 0.1);
}

textarea {
    resize: vertical;
    min-height: 130px;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.form-container h2 {
    margin-bottom: 30px;
    color: #1a1a1a;
    text-align: center;
    font-size: 1.5rem;
}

/* ============================================
   Events Section
   ============================================ */

.events-container {
    max-width: 850px;
    margin: 0 auto;
}

.event-item {
    background: #ffffff;
    padding: 30px;
    margin-bottom: 25px;
    border-radius: 4px;
    border-left: 4px solid #00a8a8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    border-left: 4px solid #00a8a8;
}

.event-item:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    transform: translateX(3px);
}

.event-item h3 {
    color: #1a1a1a;
    margin-bottom: 12px;
    font-size: 1.3rem;
    font-weight: 600;
}

.event-item .event-date {
    background: #e8f7f7;
    color: #00a8a8;
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-block;
    font-size: 0.8rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.event-item p {
    margin-bottom: 10px;
    color: #666;
    font-size: 0.95rem;
}

.event-item .event-time {
    color: #00a8a8;
    font-weight: 600;
}

/* ============================================
   Section Styles
   ============================================ */

.section {
    background: #ffffff;
    padding: 50px;
    margin-bottom: 30px;
    border-radius: 0;
    box-shadow: none;
    border: none;
    background-size: cover;
    background-position: center;
    color: #1a1a1a;
}

.section h2 {
    color: #1a1a1a;
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
}

.section h3 {
    color: #00a8a8;
    margin-top: 35px;
    margin-bottom: 15px;
    font-size: 1.25rem;
    font-weight: 600;
}

.section p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.beliefs-list {
    background: #f8faf9;
    padding: 25px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid #00a8a8;
}

.beliefs-list li {
    list-style-position: inside;
    color: #555;
    margin-bottom: 12px;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: #1a1a1a;
    color: #fff;
    margin-top: 60px;
    padding-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 0 20px 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: #00a8a8;
    text-decoration: none;
}

.footer-section p {
    margin-bottom: 12px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.social-links a:hover {
    background: #00a8a8;
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ============================================
   Success/Error Messages
   ============================================ */

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

/* ============================================
   Spacing Utilities
   ============================================ */

.mt-large {
    margin-top: 40px;
}

.mb-large {
    margin-bottom: 40px;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: #888;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background-color: #ffffff;
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1);
        gap: 0;
        padding: 1rem 0;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
        color: #1a1a1a;
    }
    
    .nav-menu li {
        padding: 0.8rem 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-menu a:hover,
    .nav-menu a.active {
        color: #00a8a8;
    }
    
    .nav-menu a {
        font-size: 1rem;
        display: block;
        width: 100%;
        color: #1a1a1a;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section {
        padding: 25px;
    }
    
    .form-container {
        padding: 25px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    main {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.1rem;
    }
    
    .mobile-menu-toggle {
        font-size: 1.3rem;
    }
    
    .hero {
        padding: 60px 15px;
    }
    
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .section h2 {
        font-size: 1.4rem;
    }
    
    main {
        padding: 15px;
    }
    
    .cards-grid {
        gap: 15px;
    }
    
    .card {
        padding: 20px 15px;
    }
}
