/* ========================================
   Save St. Joseph Dyer Church — Website
   Colors: Burgundy #800020, Black, White
   ======================================== */

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

:root {
    --burgundy: #800020;
    --burgundy-dark: #5c0017;
    --burgundy-light: #a0324a;
    --gold: #c9a84c;
    --cream: #faf6f0;
    --black: #1a1a1a;
    --white: #ffffff;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    color: var(--black);
    line-height: 1.7;
    background: var(--white);
}

/* === NAVIGATION === */
nav {
    background: var(--burgundy-dark);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

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

nav .nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    text-decoration: none;
}

nav .nav-logo img {
    height: 50px;
    width: auto;
}

nav .nav-logo span {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 0.5px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 0;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    padding: 20px 18px;
    display: block;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: background 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    background: var(--burgundy);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 10px;
}

/* === HERO SECTION === */
.hero {
    position: relative;
    height: 85vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.35);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 30px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 3px 8px rgba(0,0,0,0.6);
    letter-spacing: 2px;
}

.hero .subtitle {
    font-size: 1.5rem;
    margin-bottom: 8px;
    font-style: italic;
    opacity: 0.95;
}

.hero .established {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 25px;
}

.hero .scripture {
    font-size: 1.15rem;
    font-style: italic;
    margin-bottom: 35px;
    opacity: 0.9;
}

.hero .btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--burgundy);
    color: var(--white);
    text-decoration: none;
    font-size: 1.1rem;
    letter-spacing: 1px;
    border: 2px solid var(--white);
    transition: all 0.3s;
    margin: 5px 10px;
}

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

/* === SECTIONS === */
section {
    padding: 80px 20px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.4rem;
    color: var(--burgundy);
    margin-bottom: 10px;
}

.section-title .divider {
    width: 80px;
    height: 3px;
    background: var(--burgundy);
    margin: 15px auto;
}

.section-title p {
    font-size: 1.1rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
}

/* Alternating background */
.bg-cream { background: var(--cream); }
.bg-burgundy { background: var(--burgundy); color: var(--white); }
.bg-burgundy .section-title h2 { color: var(--white); }
.bg-burgundy .section-title .divider { background: var(--white); }
.bg-burgundy .section-title p { color: rgba(255,255,255,0.85); }

/* === HISTORY SECTION === */
.history-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.history-grid img {
    width: 100%;
    border: 5px solid var(--burgundy);
    box-shadow: 5px 5px 20px rgba(0,0,0,0.15);
}

.history-text h3 {
    font-size: 1.6rem;
    color: var(--burgundy);
    margin-bottom: 15px;
}

.history-text p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: #444;
}

/* === SITUATION / INFO CARDS === */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    padding: 35px 30px;
    border-top: 4px solid var(--burgundy);
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    font-size: 1.3rem;
    color: var(--burgundy);
    margin-bottom: 15px;
}

.card p, .card li {
    color: #555;
    font-size: 1rem;
}

.card ul {
    padding-left: 20px;
}

.card ul li {
    margin-bottom: 8px;
}

/* === TIMELINE === */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: var(--burgundy);
}

.timeline-item {
    display: flex;
    margin-bottom: 40px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    justify-content: flex-start;
    padding-right: 55%;
}

.timeline-item:nth-child(even) {
    justify-content: flex-end;
    padding-left: 55%;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: var(--burgundy);
    border: 3px solid var(--white);
    border-radius: 50%;
    z-index: 1;
}

.timeline-content {
    background: var(--white);
    padding: 20px 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 3px solid var(--burgundy);
}

.timeline-content h4 {
    color: var(--burgundy);
    margin-bottom: 5px;
}

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

.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border: 3px solid var(--burgundy);
    transition: transform 0.3s;
    cursor: pointer;
}

.gallery-grid img:hover {
    transform: scale(1.03);
}

/* === BUTTONS === */
.btn-primary {
    display: inline-block;
    padding: 14px 35px;
    background: var(--burgundy);
    color: var(--white);
    text-decoration: none;
    font-size: 1.05rem;
    font-family: Georgia, serif;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: var(--burgundy-dark);
}

.btn-outline {
    display: inline-block;
    padding: 14px 35px;
    background: transparent;
    color: var(--burgundy);
    text-decoration: none;
    font-size: 1.05rem;
    font-family: Georgia, serif;
    letter-spacing: 0.5px;
    border: 2px solid var(--burgundy);
    cursor: pointer;
    transition: all 0.3s;
}

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

.text-center { text-align: center; }
.mt-30 { margin-top: 30px; }

/* === FORMS === */
.form-container {
    max-width: 650px;
    margin: 0 auto;
    background: var(--white);
    padding: 45px 40px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    border-top: 5px solid var(--burgundy);
}

.form-container h2 {
    color: var(--burgundy);
    text-align: center;
    margin-bottom: 10px;
    font-size: 2rem;
}

.form-container .form-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-style: italic;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    font-size: 0.95rem;
    color: var(--black);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    font-family: Georgia, serif;
    font-size: 1rem;
    transition: border 0.3s;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 5px;
}

/* === DONATE PAGE === */
.donate-amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.donate-amount {
    padding: 18px;
    text-align: center;
    border: 2px solid #ddd;
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--white);
    color: var(--black);
    font-family: Georgia, serif;
}

.donate-amount:hover,
.donate-amount.selected {
    border-color: var(--burgundy);
    background: var(--burgundy);
    color: var(--white);
}

.donate-impact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.impact-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--cream);
    border-bottom: 3px solid var(--burgundy);
}

.impact-card .amount {
    font-size: 2rem;
    color: var(--burgundy);
    font-weight: bold;
    margin-bottom: 10px;
}

.impact-card p {
    color: #555;
    font-size: 0.95rem;
}

/* === QUOTE BANNER === */
.quote-banner {
    background: var(--burgundy);
    color: var(--white);
    text-align: center;
    padding: 60px 20px;
}

.quote-banner blockquote {
    font-size: 1.6rem;
    font-style: italic;
    max-width: 800px;
    margin: 0 auto 15px;
    line-height: 1.5;
}

.quote-banner cite {
    font-size: 1rem;
    opacity: 0.8;
}

/* === EVENTS === */
.event-card {
    display: flex;
    gap: 25px;
    background: var(--white);
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border-left: 5px solid var(--burgundy);
}

.event-date {
    text-align: center;
    min-width: 80px;
}

.event-date .month {
    background: var(--burgundy);
    color: var(--white);
    padding: 5px 15px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-date .day {
    font-size: 2rem;
    font-weight: bold;
    color: var(--burgundy);
    padding: 5px 0;
}

.event-info h3 {
    color: var(--burgundy);
    margin-bottom: 8px;
}

.event-info p {
    color: #555;
    font-size: 0.95rem;
}

/* === FOOTER === */
footer {
    background: var(--black);
    color: rgba(255,255,255,0.7);
    padding: 50px 20px 25px;
}

.footer-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

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

.footer-col p,
.footer-col a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 2;
}

.footer-col a:hover {
    color: var(--white);
}

.footer-col a {
    display: block;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 25px;
    font-size: 0.85rem;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .menu-toggle { display: block; }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--burgundy-dark);
    }

    nav ul.open { display: flex; }

    nav ul li a {
        padding: 15px 20px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .hero h1 { font-size: 2.2rem; }
    .hero .subtitle { font-size: 1.2rem; }
    .history-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .donate-amounts { grid-template-columns: repeat(2, 1fr); }
    .timeline::before { left: 20px; }
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 50px;
        padding-right: 0;
        justify-content: flex-start;
    }
    .timeline-item::before { left: 20px; }
    .event-card { flex-direction: column; }
}
