/* Home page styles, shared by home.html and home-advent.html. */


/* ── Service Times ── */
.service-section {
    background: #1a1a1a;
    color: #f0ece4;
    position: relative;
    overflow: hidden;
}

.service-section::before {
    content: '';
    position: absolute;
    inset: -50%;
    width: 200%;
    height: 200%;
    opacity: 0.25;
    filter: url(#grain);
    pointer-events: none;
    z-index: 0;
}

.service-section .section {
    position: relative;
    z-index: 1;
}

.service-section h2 {
    color: #f0ece4;
}

.service-section .service-card {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: #e8e4dc;
}

.service-section .service-card h3 {
    color: #fff;
}

.service-section .service-card .time {
    color: var(--accent-light, #c4a882);
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--card);
    border-radius: 16px;
    padding: 2.5rem 1.8rem;
    text-align: center;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    min-height: 240px;
}

.this-sunday-badge {
    display: none;
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-light, #c4a882);
    color: #1a1a1a;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 14px;
    border-radius: 999px;
    white-space: nowrap;
}

.service-card.active-sunday .this-sunday-badge {
    display: block;
}

/* Per-Sunday status banner inside the active card. Slim line
   that confirms THIS week's specifics (especially whether
   children's church is on) without erasing the "what's
   usually true" static text above it. */
.this-sunday-note {
    display: none;
    margin-top: 1rem;
    padding: 10px 14px;
    background: rgba(196, 168, 130, 0.12);
    border: 1px solid rgba(196, 168, 130, 0.45);
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #c8b89a;
    text-align: center;
}
.this-sunday-note strong { color: #e8d8c0; }
.service-card.active-sunday .this-sunday-note { display: block; }

.service-card.active-sunday {
    border-color: var(--accent-light, #c4a882);
    box-shadow: 0 0 0 1px var(--accent-light, #c4a882);
}

.service-card h3 {
    font-family: 'Heldane Display', serif;
    font-weight: 400;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.service-card .time {
    font-weight: 600;
    color: var(--text);
}

/* ── Recent Sermons ── */
.recent-sermons-section { padding: 3.5rem 2rem 1rem; }
.recent-sermons-section h2 {
    font-family: 'Heldane Display', serif;
    font-weight: 400; font-size: 2.2rem;
    text-align: center; margin-bottom: 1.5rem;
}
.recent-sermons-list { display: flex; flex-direction: column; gap: 0.9rem; max-width: 760px; margin: 0 auto; }
.recent-sermon-card {
    display: flex; align-items: center; gap: 1.25rem;
    padding: 1.1rem 1.4rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    text-decoration: none; color: inherit;
    transition: border-color 0.15s, transform 0.15s;
}
.recent-sermon-card:hover { border-color: var(--accent, #c4a882); transform: translateY(-1px); }
.recent-sermon-date {
    min-width: 92px; font-size: 0.85rem; line-height: 1.3;
    color: var(--text-muted); font-variant-numeric: tabular-nums;
}
.recent-sermon-date strong { display: block; font-size: 1.4rem; color: var(--text); font-weight: 500; }
.recent-sermon-meta { flex: 1; min-width: 0; }
.recent-sermon-title {
    font-family: 'Heldane Display', Georgia, serif;
    font-size: 1.15rem; font-weight: 500; color: var(--text);
    margin-bottom: 3px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.recent-sermon-byline { font-size: 0.85rem; color: var(--text-muted); font-style: italic; }
.recent-sermon-arrow { color: var(--accent, #c4a882); font-size: 1.3rem; flex-shrink: 0; }
.recent-sermons-cta {
    font-size: 0.95rem; color: var(--accent, #c4a882);
    text-decoration: none; font-weight: 500;
    padding: 8px 18px;
    border: 1px solid var(--accent, #c4a882); border-radius: 999px;
}
.recent-sermons-cta:hover { background: var(--accent, #c4a882); color: var(--card); }
@media (max-width: 600px) {
    .recent-sermon-card { flex-wrap: wrap; gap: 0.5rem 1rem; }
    .recent-sermon-date { min-width: 0; }
}

/* ── Newsletter Banner ── */
.newsletter-banner {
    background: var(--header-bg);
    padding: 3.5rem 2rem;
    text-align: center;
}

.newsletter-banner h2 {
    font-family: 'Heldane Display', serif;
    font-weight: 400;
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 0.6rem;
}

.newsletter-banner p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin-bottom: 1.8rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 0.6rem;
    max-width: 440px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text);
}

.newsletter-form input::placeholder {
    color: var(--text-muted);
}

.newsletter-form button {
    padding: 0.8rem 1.6rem;
    border: none;
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: #f0ece4;
    transform: translateY(-1px);
}

/* ── Welcome ── */
.welcome-text {
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Heldane Text', Georgia, serif;
    font-weight: 400;
    font-size: 1.45rem;
    line-height: 1.9;
    color: var(--text-muted);
    text-align: left;
}

.welcome-text::first-letter {
    font-family: 'Heldane Display', Georgia, serif;
    font-weight: 400;
    float: left;
    font-size: 5.8rem;
    line-height: 0.65;
    padding-right: 0.1em;
    padding-top: 0.15em;
    color: var(--text);
}

/* ── Photo Collage ── */
.photo-collage {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 6rem 2rem;
    height: 1600px;
}

.photo-collage img {
    position: absolute;
    border-radius: 4px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    object-fit: cover;
}

.photo-collage .photo-1 {
    width: 420px;
    height: 540px;
    top: 0;
    left: 45%;
    transform: translateX(-20%);
    z-index: 2;
}

.photo-collage .photo-2 {
    width: 360px;
    height: 500px;
    top: 520px;
    left: 3%;
    z-index: 1;
}

.photo-collage .photo-3 {
    width: 440px;
    height: 560px;
    top: 980px;
    left: 40%;
    z-index: 3;
}

/* ── Calendar Agenda ── */
.calendar-agenda {
    max-width: 800px;
    margin: 0 auto;
}

.calendar-event {
    display: flex;
    gap: 1.5rem;
    padding: 1.4rem 1rem;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
    border-radius: 8px;
}

.calendar-event:last-child {
    border-bottom: none;
}

.calendar-event:nth-child(even) {
    background: rgba(0, 0, 0, 0.03);
}

.event-date-badge {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--header-bg);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.event-date-badge .day {
    font-family: 'Heldane Display', Georgia, serif;
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 1;
}

.event-date-badge .month {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 2px;
}

.event-details {
    flex: 1;
    min-width: 0;
}

.event-title {
    font-family: 'Heldane Display', Georgia, serif;
    font-weight: 400;
    font-size: 1.15rem;
    color: var(--text);
    margin-bottom: 0.35rem;
}

.event-meta {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.event-meta span {
    margin-right: 0.3rem;
}

.calendar-loading {
    text-align: center;
    padding: 3rem 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ── Mobile (page-specific) ── */
@media (max-width: 768px) {
    .photo-collage {
        height: auto;
        padding: 1rem;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .photo-collage img {
        position: static !important;
        width: 85% !important;
        height: 280px !important;
        transform: none !important;
    }

    .service-cards {
        grid-template-columns: 1fr;
    }
}
