/* SLIDESHOW TEXT READABILITY FIXES */
/* Add this to your slideshow.css or create as slideshow-fixes.css */

/* ===================================
   FIX 1: HERO TEXT - WHITE WITH OUTLINE
   =================================== */

.hero .hero-title {
    color: var(--white) !important;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.8),
        -1px -1px 2px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(0, 0, 0, 0.5) !important;
}

/* Golden subtitle */
.hero .hero-subtitle {
    color: #FFD700 !important;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.9),
        0 0 15px rgba(0, 0, 0, 0.7) !important;
}

/* Hero description - white, not gray */
.hero .hero-description {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 
        1px 1px 3px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(0, 0, 0, 0.6) !important;
}

/* Trust line - white */
.hero .hero-trust {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7) !important;
}

/* Trust icon */
.hero .trust-icon {
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.8));
}

/* ===================================
   FIX 2: ENSURE OVERLAYS SHOW
   =================================== */

/* Make sure overlay is visible and on top of slideshow */
.slideshow-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1 !important;
    pointer-events: none;
}

/* Hero overlay - dark navy gradient */
.hero .slideshow-overlay {
    background: linear-gradient(
        135deg, 
        rgba(0, 45, 91, 0.5) 0%, 
        rgba(0, 45, 91, 0.7) 100%
    ) !important;
}

/* Make sure content is above overlay */
.hero .hero-container {
    position: relative;
    z-index: 2 !important;
}

/* ===================================
   FIX 3: MEMORIAL PREVIEW PORTRAIT
   =================================== */

.memorial-preview .preview-portrait {
    width: 120px !important;
    height: 120px !important;
    background-image: url('../images/Eleanor.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    border-radius: 50% !important;
    margin: 0 auto 1.5rem !important;
    border: 4px solid #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    position: relative !important;
}

/* Remove placeholder icons when real image is present */
.memorial-preview .preview-portrait::before,
.memorial-preview .preview-portrait::after {
    content: none !important;
    display: none !important;
}

/* Memorial preview card - better visibility */
.memorial-preview {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
    border-radius: 12px !important;
    padding: 2rem !important;
}

/* Ensure preview content is visible */
.memorial-preview .preview-content {
    position: relative !important;
    z-index: 1 !important;
}

/* Preview text lines - visible */
.memorial-preview .preview-text {
    height: 8px;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.05) 100%
    );
    border-radius: 4px;
    margin: 0.5rem 0;
}

.memorial-preview .preview-text.short {
    width: 60%;
}

/* ===================================
   FIX 4: OTHER SECTIONS TEXT
   =================================== */

/* Digital Granite section - white text */
.digital-granite .section-title,
.digital-granite .section-subtitle,
.digital-granite h3,
.digital-granite p {
    color: var(--white) !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7) !important;
}

/* Digital Granite overlay */
.digital-granite .slideshow-overlay {
    background: linear-gradient(
        to bottom,
        rgba(0, 45, 91, 0.75) 0%,
        rgba(74, 124, 89, 0.85) 100%
    ) !important;
}

/* Testimonials overlay - very light */
.testimonials .slideshow-overlay {
    background: linear-gradient(
        to bottom,
        rgba(249, 247, 242, 0.92) 0%,
        rgba(255, 248, 240, 0.95) 100%
    ) !important;
}

/* CTA section - white text */
.cta-section h2,
.cta-section p {
    color: var(--white) !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
}

/* CTA overlay */
.cta-section .slideshow-overlay {
    background: linear-gradient(
        135deg,
        rgba(0, 45, 91, 0.85) 0%,
        rgba(74, 124, 89, 0.9) 100%
    ) !important;
}

/* ===================================
   ALTERNATIVE: TEXT OUTLINE (If you prefer)
   =================================== */

/* Uncomment this if you want white outline instead of shadow */
/*
.hero .hero-title {
    color: #002D5B !important;
    -webkit-text-stroke: 2px white;
    text-stroke: 2px white;
    paint-order: stroke fill;
}
*/

/* ===================================
   BUTTONS - ENSURE VISIBILITY
   =================================== */

.hero .btn-hero-primary,
.hero .btn-hero-secondary {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

.hero .btn-hero-primary:hover,
.hero .btn-hero-secondary:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4) !important;
}