/* ============================================
   events.css — Events Page
   Salt & Light Church
   ============================================ */

/* Page Hero */
.page-hero {
    position: relative;
    height: 420px;
    background: url('../assets/anoka-image.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(30, 8, 8, 0.62);
}

.page-hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.page-hero-eyebrow {
    font-size: 0.95rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #c5a572;
    margin-bottom: 14px;
    opacity: 0.9;
}

.page-hero-title {
    font-size: 3.4rem;
    font-weight: normal;
    line-height: 1.15;
    margin-bottom: 18px;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
}

.page-hero-sub {
    font-size: 1.15rem;
    font-style: italic;
    opacity: 0.88;
    letter-spacing: 0.03em;
}

/* ============================================
   COFFEE BANNER
   ============================================ */
.coffee-banner {
    background-color: #3d1919;
    padding: 60px 20px;
    border-bottom: 1px solid rgba(197,165,114,0.15);
}

.coffee-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 160px;
    gap: 50px;
    align-items: center;
}

.coffee-text h2 {
    font-size: 1.8rem;
    font-weight: normal;
    color: #c5a572;
    margin-bottom: 18px;
}

.coffee-text p {
    font-size: 1rem;
    line-height: 1.8;
    opacity: 0.85;
    margin-bottom: 24px;
}

.coffee-aside {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    border-left: 1px solid rgba(197,165,114,0.2);
    padding-left: 40px;
}

.coffee-cross {
    font-size: 2rem;
    color: #c5a572;
    opacity: 0.45;
}

.coffee-aside p {
    font-size: 1rem;
    font-style: italic;
    opacity: 0.7;
    line-height: 1.5;
}

/* ============================================
   EVENTS SECTION
   ============================================ */
.events-section {
    background-color: #2b1515;
    padding: 70px 20px;
}

.events-container {
    max-width: 1100px;
    margin: 0 auto;
}

.events-header {
    margin-bottom: 40px;
}

.events-header h2 {
    font-size: 2.2rem;
    font-weight: normal;
    color: #c5a572;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(197,165,114,0.2);
}

/* Empty state */
.events-empty {
    text-align: center;
    padding: 60px 20px;
    border: 1px dashed rgba(197,165,114,0.2);
    border-radius: 10px;
}

.events-empty-icon {
    display: block;
    font-size: 1.5rem;
    color: #c5a572;
    opacity: 0.4;
    margin-bottom: 16px;
}

.events-empty p {
    font-size: 1rem;
    opacity: 0.7;
    font-style: italic;
}

.events-empty a {
    color: #c5a572;
    text-decoration: none;
    border-bottom: 1px solid rgba(197,165,114,0.4);
}

/* Events list */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* Individual event card */
.event-card {
    display: grid;
    grid-template-columns: 160px 1px 1fr auto;
    gap: 0;
    background: rgba(90,34,34,0.2);
    border: 1px solid rgba(197,165,114,0.16);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.event-card:hover {
    background: rgba(90,34,34,0.35);
    border-color: rgba(197,165,114,0.3);
}

/* Date column */
.event-date-col {
    background: rgba(90,34,34,0.3);
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 5px;
    flex-shrink: 0;
}

.event-category {
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #c5a572;
    opacity: 0.75;
    margin-bottom: 4px;
}

.event-date {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.5rem;
    font-style: italic;
    font-weight: 300;
    color: #e8d5b0;
    line-height: 1.2;
}

.event-time {
    font-size: 0.8rem;
    opacity: 0.65;
    line-height: 1.4;
    margin-top: 4px;
}

.event-time-alt {
    font-size: 0.78rem;
    opacity: 0.55;
    line-height: 1.4;
}

/* Vertical divider */
.event-divider {
    width: 1px;
    background: rgba(197,165,114,0.15);
    flex-shrink: 0;
}

/* Body */
.event-body {
    padding: 28px 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
}

.event-body h3 {
    font-size: 1.25rem;
    font-weight: normal;
    color: #c5a572;
    line-height: 1.25;
}

.event-location {
    font-size: 0.85rem;
    opacity: 0.6;
    display: flex;
    align-items: center;
    gap: 6px;
}

.event-location-icon {
    font-size: 0.9rem;
}

.event-description {
    font-size: 0.95rem;
    line-height: 1.78;
    opacity: 0.82;
}

.event-recurring {
    font-size: 0.85rem;
    font-style: italic;
    color: #c5a572;
    opacity: 0.7;
    margin-top: 4px;
}

/* Action column */
.event-action-col {
    padding: 28px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-left: 1px solid rgba(197,165,114,0.1);
}

.event-btn {
    display: inline-block;
    background-color: #5a2222;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 0.88rem;
    border-radius: 3px;
    white-space: nowrap;
    border: 1px solid rgba(197,165,114,0.25);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.event-btn:hover {
    background-color: #6a2828;
    border-color: rgba(197,165,114,0.45);
}

/* ============================================
   PRE-LAUNCH SCHEDULE (reused from new-here)
   ============================================ */
.schedule-section-events {
    background-color: #331414;
    padding: 65px 20px;
    border-top: 1px solid rgba(197,165,114,0.12);
    border-bottom: 1px solid rgba(197,165,114,0.12);
}

.schedule-ev-header {
    text-align: center;
    margin-bottom: 48px;
}

.schedule-ev-header h2 {
    font-size: 2rem;
    font-weight: normal;
    color: #c5a572;
    margin-bottom: 12px;
}

.schedule-ev-header p {
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.8;
}

.schedule-ev-header strong {
    color: #d4b07a;
    font-weight: normal;
}

.schedule-ev-cols {
    display: flex;
    align-items: stretch;
    background: rgba(197,165,114,0.05);
    border: 1px solid rgba(197,165,114,0.18);
    border-radius: 10px;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}

.schedule-ev-col {
    flex: 1;
    padding: 36px 36px 38px;
}

.schedule-ev-divider {
    width: 1px;
    background: rgba(197,165,114,0.2);
    flex-shrink: 0;
}

.schedule-ev-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.schedule-ev-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #c5a572;
    opacity: 0.7;
    flex-shrink: 0;
}

.schedule-ev-col h3 {
    font-size: 1.05rem;
    font-weight: normal;
    color: #c5a572;
}

.schedule-ev-sub {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.5;
    margin-bottom: 22px;
    padding-left: 17px;
}

.ev-date-list {
    list-style: none;
}

.ev-date-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 10px 0;
    border-bottom: 1px solid rgba(197,165,114,0.1);
    gap: 12px;
}

.ev-date-list li:last-child {
    border-bottom: none;
}

.ev-month {
    font-size: 0.88rem;
    opacity: 0.65;
}

.ev-val {
    font-size: 0.92rem;
    color: #e8d5b0;
    font-style: italic;
    text-align: right;
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
    background-color: #5a2222;
    text-align: center;
    padding: 70px 20px;
}

.cta-content h2 {
    font-size: 2.2rem;
    font-weight: normal;
    margin-bottom: 14px;
}

.cta-content p {
    font-size: 1.1rem;
    opacity: 0.85;
    margin-bottom: 30px;
    font-style: italic;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.hero-button--outline {
    background-color: transparent;
    border: 1px solid rgba(255,255,255,0.6);
}

.hero-button--outline:hover {
    background-color: rgba(255,255,255,0.08);
    border-color: #fff;
}

/* ============================================
   GALLERY SECTION
   ============================================ */
.gallery-section {
    background-color: #2b1515;
    padding: 70px 20px;
    border-top: 1px solid rgba(197,165,114,0.12);
}

.gallery-header {
    margin-bottom: 40px;
}

.gallery-header h2 {
    font-size: 2.2rem;
    font-weight: normal;
    color: #c5a572;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(197,165,114,0.2);
    margin-bottom: 10px;
}

.gallery-header p {
    font-size: 1rem;
    font-style: italic;
    opacity: 0.65;
}

/* Empty state */
.gallery-empty {
    text-align: center;
    padding: 55px 20px;
    border: 1px dashed rgba(197,165,114,0.2);
    border-radius: 10px;
}

.gallery-empty-icon {
    display: block;
    font-size: 1.4rem;
    color: #c5a572;
    opacity: 0.35;
    margin-bottom: 14px;
}

.gallery-empty p {
    font-size: 1rem;
    opacity: 0.6;
    font-style: italic;
}

/* Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

/* Make first item span 2 cols + 2 rows for visual interest */
.gallery-item:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4/3;
    background: rgba(90,34,34,0.25);
    border: 1px solid rgba(197,165,114,0.12);
}

.gallery-item:first-child {
    aspect-ratio: unset; /* let the span handle sizing */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.04);
    opacity: 0.88;
}

/* Caption overlay */
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(20,6,6,0.85));
    padding: 28px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
}

.gallery-cat {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #c5a572;
    opacity: 0.85;
}

.gallery-cap-text {
    font-size: 0.85rem;
    color: #fff;
    opacity: 0.9;
    font-style: italic;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item:first-child {
        grid-column: span 2;
        grid-row: span 1;
    }

    .gallery-caption {
        opacity: 1; /* always show on touch */
    }

    .event-card {
        grid-template-columns: 140px 1px 1fr;
    }

    .event-action-col {
        grid-column: 1 / -1;
        border-left: none;
        border-top: 1px solid rgba(197,165,114,0.1);
        padding: 18px 24px;
        justify-content: flex-start;
    }

    .coffee-inner {
        grid-template-columns: 1fr;
    }

    .coffee-aside {
        border-left: none;
        border-top: 1px solid rgba(197,165,114,0.2);
        padding-left: 0;
        padding-top: 28px;
        flex-direction: row;
        gap: 16px;
    }

    .schedule-ev-cols {
        flex-direction: column;
    }

    .schedule-ev-divider {
        width: 100%;
        height: 1px;
    }
}

@media (max-width: 600px) {
    .page-hero-title {
        font-size: 2.6rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .gallery-item:first-child {
        grid-column: span 2;
    }

    .event-card {
        grid-template-columns: 1fr;
    }

    .event-date-col {
        flex-direction: row;
        justify-content: flex-start;
        gap: 14px;
        padding: 18px 20px;
        border-bottom: 1px solid rgba(197,165,114,0.12);
    }

    .event-divider {
        display: none;
    }

    .schedule-ev-col {
        padding: 28px 22px;
    }
}