/*
====================================================
WRS.LLC WORDPRESS - VIBRANCY FIX & ENHANCEMENTS
====================================================
Purpose: Remove ALL graying/dulling overlays and enhance visual vibrancy
Date: May 14, 2026
Version: 1.0
====================================================
*/

/* ===========================
   CRITICAL FIX #1: Hero Overlay
   =========================== */

/* Lighten hero overlay from 75-92% to 30-50% for vibrant images */
.hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(26, 35, 50, 0.50) 0%,
        rgba(26, 35, 50, 0.30) 50%,
        rgba(26, 35, 50, 0.45) 100%
    ) !important;
}

/* Remove any additional hero overlay pseudo-elements */
.hero-slider-container::before,
.hero-slide::before,
.hero-slide::after {
    display: none !important;
}

/* ===========================
   CRITICAL FIX #2: Property Images
   =========================== */

/* Ensure property images display at full brightness */
.property-image-wrapper img,
.property-card img,
.listing-image img,
img.wp-post-image {
    filter: none !important;
    opacity: 1 !important;
    -webkit-filter: none !important;
}

/* Remove any property image overlays */
.property-image-wrapper::before,
.property-image-wrapper::after,
.property-card::before,
.property-card::after {
    background: transparent !important;
    opacity: 0 !important;
    display: none !important;
}

/* Ensure property cards are fully visible immediately */
.property-card {
    opacity: 1 !important;
    filter: none !important;
}

/* ===========================
   VIBRANCY ENHANCEMENT #1: Image Sharpness
   =========================== */

/* Slightly enhance image contrast for vibrant display */
.property-image-wrapper img,
.hero-slide img,
img.wp-post-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* ===========================
   VIBRANCY ENHANCEMENT #2: Color Pop
   =========================== */

/* Enhance gold accent vibrancy */
.property-badge,
.hero-cta,
.property-btn-primary,
.property-contact-btn {
    filter: brightness(1.05) saturate(1.1) !important;
}

/* Make hover states more vibrant */
.property-card:hover {
    box-shadow: 0 20px 60px rgba(201, 168, 76, 0.25) !important;
}

/* ===========================
   VIBRANCY ENHANCEMENT #3: Text Clarity
   =========================== */

/* Ensure text on hero is crisp and readable */
.hero-title,
.hero-subtitle,
.hero-address {
    text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.7) !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===========================
   VIBRANCY ENHANCEMENT #4: Button Energy
   =========================== */

/* Make CTA buttons more vibrant and inviting */
.hero-cta,
.property-btn-primary,
.property-btn-secondary {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.hero-cta:hover,
.property-btn-primary:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(201, 168, 76, 0.4) !important;
    filter: brightness(1.1) !important;
}

/* ===========================
   VIBRANCY ENHANCEMENT #5: Card Shadows
   =========================== */

/* Enhanced property card shadows for depth */
.property-card {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
}

.property-card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18) !important;
}

/* ===========================
   VIBRANCY ENHANCEMENT #6: Badge Pop
   =========================== */

/* Make property badges more prominent */
.property-badge {
    box-shadow: 0 6px 20px rgba(201, 168, 76, 0.5) !important;
    font-weight: 800 !important;
}

/* ===========================
   FIX: Lazy Loading Placeholders
   =========================== */

/* Remove any gray lazy-load placeholders */
img[loading="lazy"],
img.lazy,
img.lazyload {
    background: transparent !important;
}

/* Ensure featured images load immediately */
img.wp-post-image,
.property-image-wrapper img {
    loading: eager !important;
}

/* ===========================
   FIX: Remove All Potential Overlays
   =========================== */

/* Nuclear option - remove any overlay pseudo-elements site-wide */
.card-image::before,
.listing-image::before,
.grid-item::before,
.property-thumbnail::before,
[class*="image"]::before,
[class*="overlay"]::after {
    opacity: 0 !important;
    display: none !important;
}

/* ===========================
   VIBRANCY ENHANCEMENT #7: Spacing & Breathing Room
   =========================== */

/* Slightly increase spacing for modern premium feel */
.property-info {
    padding: 2rem 1.75rem !important;
}

.property-meta {
    gap: 1.25rem !important;
}

/* ===========================
   VIBRANCY ENHANCEMENT #8: Typography Contrast
   =========================== */

/* Ensure text has high contrast for clarity */
.property-title {
    color: #1a2332 !important;
    font-weight: 700 !important;
}

.property-title a:hover {
    color: #c9a84c !important;
}

/* ===========================
   PERFORMANCE: Hardware Acceleration
   =========================== */

/* Enable GPU acceleration for smooth animations */
.property-card,
.hero-slide,
.property-image-wrapper img {
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* ===========================
   FIX: Job Posting Dark Text on Dark Background
   =========================== */

/* Job breadcrumb link - ensure white text on dark hero background */
.job-breadcrumb a {
    color: #ffffff !important;
    opacity: 0.9;
}

.job-breadcrumb a:hover {
    color: #ffffff !important;
    opacity: 1;
}

/* Job detail meta items (department, location, etc.) - ensure white text */
.job-detail-meta .meta-item {
    color: #ffffff !important;
}

/* ===========================
   END OF VIBRANCY FIX
   =========================== */
