/* Memorial / Funeral Landing Page — builds on legacystyle.css
   Palette drawn from images/flowers.png (oil-painted roses, tulips & lavender):
   rose pink #d9536f, blush #f4c6d1, crimson #8f2140, lavender #7c6bab, deep green #3f5f3d, gold #c9932e */

.memorial-hero {
    background:
        linear-gradient(rgba(30, 20, 15, 0.32), rgba(30, 20, 15, 0.48)),
        url('../images/flowers.png') center 40% / cover no-repeat;
    padding: 4rem 1rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.memorial-photo-frame {
    width: 220px;
    height: 220px;
    margin: 0 auto 1.75rem;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffffff, #f8e6ec);
    border: 6px solid #ffffff;
    box-shadow: 0 0 0 5px #c9932e, 0 10px 25px rgba(60, 20, 40, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.memorial-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.memorial-photo-frame .photo-placeholder-text {
    color: #8f2140;
    font-size: 0.95rem;
    padding: 1rem;
    text-align: center;
    font-style: italic;
}

.memorial-hero h1 {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 6px rgba(50, 15, 30, 0.6);
}

.memorial-hero .memorial-dates {
    font-size: 1.35rem;
    color: #f8e0c9;
    font-style: italic;
    margin-bottom: 1.25rem;
    text-shadow: 1px 1px 4px rgba(50, 15, 30, 0.5);
}

.memorial-hero .memorial-subtitle {
    max-width: 650px;
    margin: 0 auto;
    color: #ffe8b0;
    font-size: 1.4rem;
    font-style: italic;
    letter-spacing: 0.02em;
    line-height: 1.8;
    text-shadow: 1px 1px 4px rgba(50, 15, 30, 0.7);
}

.memorial-hero .memorial-subtitle strong {
    font-weight: 700;
}

/* Scripture / tribute quote */
.memorial-quote-section {
    padding: 1.75rem 1rem;
}

.memorial-quote {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
    background: #ffffff;
    border: 2px solid #d9536f;
    border-radius: 0.75rem;
    padding: 1.5rem 2rem;
    box-shadow: 0 6px 16px rgba(140, 60, 90, 0.2);
    position: relative;
}

.memorial-quote p.verse {
    font-style: italic;
    font-size: 1.2rem;
    color: #7c6bab;
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.memorial-quote p.reference {
    color: #8f2140;
    font-weight: bold;
}

/* Shared date & address banner above the service cards */
.memorial-date-banner {
    text-align: center;
    background: #ffffff;
    max-width: 560px;
    margin: -1.5rem auto 2.5rem;
    padding: 1.5rem 2rem;
    border-radius: 1.25rem;
    box-shadow: 0 4px 12px rgba(124, 107, 171, 0.2);
}

.memorial-date-banner p {
    margin: 0;
    line-height: 1;
}

.memorial-date-banner .memorial-service-date {
    font-size: 1.75rem;
    font-weight: bold;
    color: #8f2140;
}

.memorial-divider {
    width: 60px;
    height: 2px;
    margin: 0.75rem auto;
    background: #c9932e;
    border-radius: 1px;
}

.memorial-date-banner .memorial-church-name {
    font-size: 1.4rem;
    font-weight: bold;
    color: #7c6bab;
    margin-bottom: 0.35rem;
}

.memorial-date-banner .memorial-church-address a {
    font-size: 1.05rem;
    color: #c9932e;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.memorial-date-banner .memorial-church-address a:hover {
    color: #8f2140;
}

.memorial-flowers-note {
    text-align: center;
    margin: -1rem auto 2.5rem;
    font-size: 1.05rem;
    color: #6b5f8a;
    font-style: italic;
}

/* Service details cards */
.memorial-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
}

.memorial-card {
    position: relative;
    background-color: #ffffff;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 0.75rem;
    text-align: center;
    box-shadow: 0 4px 14px rgba(124, 107, 171, 0.18);
    border-top: 6px solid #d9536f;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.memorial-card-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 0.5rem;
    padding: 1.5rem 1.25rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.memorial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(124, 107, 171, 0.3);
}

.memorial-card-1,
.memorial-card-2,
.memorial-card-3,
.memorial-card-4 {
    background-image: url('../images/flowers.png');
    background-size: 320% auto;
}

.memorial-card-1 {
    background-position: 8% 20%;
    border-top-color: #d9536f;
}

.memorial-card-2 {
    background-position: 38% 85%;
    border-top-color: #7c6bab;
}

.memorial-card-3 {
    background-position: 78% 15%;
    border-top-color: #c9932e;
}

.memorial-card-4 {
    background-position: 95% 95%;
    border-top-color: #3f5f3d;
}

.memorial-card h3 {
    color: #8f2140;
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

.memorial-card .memorial-field {
    color: #222;
    font-size: 1.05rem;
}

.memorial-card .memorial-field strong {
    display: block;
    color: #7c6bab;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.15rem;
}

/* Livestream section */
.memorial-livestream {
    background: linear-gradient(135deg, #8f2140 0%, #d9536f 55%, #c9932e 100%);
    text-align: center;
    border-radius: 0.75rem;
    padding: 3rem 2rem;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 8px 24px rgba(140, 60, 90, 0.35);
}

.memorial-livestream h2 {
    color: #ffffff;
    margin-bottom: 1rem;
}

.memorial-livestream p {
    color: #fbe9ee;
    margin-bottom: 1.75rem;
}

.btn-livestream {
    display: inline-block;
    background: linear-gradient(135deg, #f4c6d1, #ffffff);
    color: #8f2140;
    padding: 0.9rem 2.5rem;
    border-radius: 2rem;
    font-weight: bold;
    text-decoration: none;
    font-size: 1.1rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-livestream:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.memorial-divider {
    height: 5px;
    width: 140px;
    margin: 0.5rem auto 2.5rem;
    border-radius: 3px;
    background: linear-gradient(90deg, #8f2140, #d9536f, #c9932e);
}

.bg-memorial-light {
    background: #faf3ec;
}

.bg-memorial-warm {
    background: #f4e9de;
}

@media (max-width: 768px) {
    .memorial-hero h1 {
        font-size: 2.1rem;
    }

    .memorial-photo-frame {
        width: 170px;
        height: 170px;
    }
}
