/* Iron Sharpeners Fellowship of Church Workers - Main Stylesheet */

/* CSS Variables for Color Palette */
:root {
    --charcoal: #2c3e50;
    --medium-gray: #5a6c7d;
    --light-gray: #e8e9eb;
    --steel-blue: #4a90a4;
    --white: #ffffff;
    --shadow: rgba(44, 62, 80, 0.1);
    --shadow-hover: rgba(44, 62, 80, 0.15);
}

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

body {
    font-family: 'Lora', 'Georgia', serif;
    font-size: 18px;
    line-height: 1.8;
    color: var(--charcoal);
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Crimson Text', 'Times New Roman', serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--charcoal);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

p {
    margin-bottom: 1.25rem;
}

a {
    color: var(--steel-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

/* Header */
header {
    background-color: var(--charcoal);
    color: var(--white);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px var(--shadow);
}

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

.logo h1 {
    font-size: 1.5rem;
    color: var(--white);
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.logo .tagline {
    font-size: 0.875rem;
    color: var(--light-gray);
    font-style: italic;
    font-family: 'Lora', serif;
    margin-top: 0.25rem;
}

/* Navigation */
nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--white);
    font-family: 'Crimson Text', serif;
    font-size: 1.1rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--steel-blue);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--steel-blue);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a.active {
    color: var(--steel-blue);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--charcoal) 0%, var(--medium-gray) 100%);
    color: var(--white);
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.02) 10px,
        rgba(255, 255, 255, 0.02) 20px
    );
    pointer-events: none;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
}

.hero .verse {
    font-size: 1.5rem;
    font-style: italic;
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--steel-blue);
    backdrop-filter: blur(10px);
    animation: fadeInUp 1s ease 0.2s both;
}

.hero .motto {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--steel-blue);
    margin-top: 2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: fadeInUp 1.2s ease 0.4s both;
}

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

/* Main Content Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Section Styles */
section {
    margin-bottom: 4rem;
}

section h2 {
    border-bottom: 3px solid var(--steel-blue);
    padding-bottom: 0.75rem;
    margin-bottom: 2rem;
}

/* Content Boxes */
.content-box {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px var(--shadow-hover);
}

.content-box h3 {
    color: var(--charcoal);
    margin-bottom: 1rem;
}

.content-box ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.content-box li {
    margin-bottom: 0.5rem;
}

/* Member Grid */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.member-card {
    background: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow);
}

.member-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 20px var(--shadow-hover);
    border-color: var(--steel-blue);
}

.member-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    object-fit: cover;
    border: 4px solid var(--steel-blue);
    background: var(--light-gray);
}

.member-card h3 {
    color: var(--charcoal);
    margin-bottom: 0.5rem;
}

.member-role {
    color: var(--medium-gray);
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.member-bio {
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--medium-gray);
}

.church-info {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 6px;
    text-align: left;
    margin-top: 1.5rem;
}

.church-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--charcoal);
}

.church-info p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--medium-gray);
}

.church-info a {
    color: var(--steel-blue);
    word-break: break-all;
}

/* Calendar Table */
.calendar-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    box-shadow: 0 2px 8px var(--shadow);
    border-radius: 8px;
    overflow: hidden;
}

.calendar-table thead {
    background: var(--charcoal);
    color: var(--white);
}

.calendar-table th {
    padding: 1.25rem;
    text-align: left;
    font-weight: 600;
    font-family: 'Crimson Text', serif;
}

.calendar-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--light-gray);
}

.calendar-table tbody tr:hover {
    background: var(--light-gray);
}

.calendar-table tbody tr:last-child td {
    border-bottom: none;
}

.event-date {
    font-weight: 600;
    color: var(--steel-blue);
    white-space: nowrap;
}

.event-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-type.fellowship {
    background: #e3f2fd;
    color: #1976d2;
}

.event-type.conference {
    background: #f3e5f5;
    color: #7b1fa2;
}

.event-type.workshop {
    background: #e8f5e9;
    color: #388e3c;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 2rem auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--charcoal);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--light-gray);
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'Lora', serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--steel-blue);
}

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

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--steel-blue);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Crimson Text', serif;
}

.btn:hover {
    background: var(--charcoal);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-hover);
}

/* Footer */
footer {
    background: var(--charcoal);
    color: var(--white);
    padding: 3rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-container p {
    margin-bottom: 0.5rem;
    color: var(--light-gray);
}

.footer-verse {
    font-style: italic;
    font-size: 1.1rem;
    margin: 1.5rem 0;
    color: var(--steel-blue);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }
    
    .menu-toggle {
        display: block;
    }
    
    nav {
        flex-basis: 100%;
        margin-top: 1rem;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
        display: none;
    }
    
    nav ul.active {
        display: flex;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .verse {
        font-size: 1.2rem;
    }
    
    .hero .motto {
        font-size: 1.3rem;
    }
    
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .members-grid {
        grid-template-columns: 1fr;
    }
    
    .calendar-table {
        font-size: 0.9rem;
    }
    
    .calendar-table th,
    .calendar-table td {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 2rem 1rem;
    }
    
    .hero {
        padding: 4rem 1rem;
    }
    
    .calendar-table th,
    .calendar-table td {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
}

/* Print Styles */
@media print {
    header, footer, .menu-toggle {
        display: none;
    }
    
    body {
        font-size: 12pt;
    }
    
    .hero {
        background: none;
        color: var(--charcoal);
    }
}
