/* ===================================
   Safe UI Improvements - Conservative Approach
   ONLY modifies colors and subtle shadows
   NO layout structure changes whatsoever
   =================================== */

/* 1. IMPROVED COLOR CONTRAST (WCAG AA Compliant) */
.hero__lead,
.product-card__description,
.feature-card p,
.testimonial-card__content {
    color: #E2E8F0 !important;
}

.hero__microcopy,
.footer-brand p,
.footer-links a {
    color: #94A3B8 !important;
}

/* 2. PROFESSIONAL SHADOWS (Replace excessive glow) */
.product-card:hover {
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.2) !important;
}

.feature-card:hover {
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.15) !important;
}

.testimonial-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

/* 3. BUTTON REFINEMENTS */
.button--primary:hover {
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.35) !important;
}

/* 4. NAVIGATION POLISH */
.site-header {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.primary-menu a:hover,
.menu-fallback a:hover {
    background: rgba(139, 92, 246, 0.1) !important;
}

/* 5. ACCESSIBILITY */
*:focus-visible {
    outline: 2px solid #8B5CF6;
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Homepage light theme testimonial repair */
body.home-light .testimonials-section {
    background: #f7f9f8 !important;
    padding: var(--spacing-3xl) 0 !important;
}

body.home-light .testimonials-section .section-header h2 {
    color: #16201c !important;
}

body.home-light .testimonials-section .section-header p {
    color: #4b5563 !important;
}

body.home-light .testimonials-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
    gap: var(--spacing-xl) !important;
}

body.home-light .testimonial-card {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100% !important;
    padding: var(--spacing-xl) !important;
    background: #ffffff !important;
    border: 1px solid #e6e9ed !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: 0 18px 45px rgba(16, 24, 20, 0.08) !important;
}

body.home-light .testimonial-card:hover {
    border-color: rgba(16, 185, 129, 0.35) !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 22px 56px rgba(16, 24, 20, 0.12) !important;
}

body.home-light .testimonial-card__content {
    color: #334155 !important;
    font-size: var(--font-size-base) !important;
    line-height: 1.8 !important;
    margin-bottom: var(--spacing-lg) !important;
    font-style: italic !important;
}

body.home-light .testimonial-card__author {
    display: flex !important;
    align-items: center !important;
    gap: var(--spacing-md) !important;
    margin-top: auto !important;
}

body.home-light .testimonial-card__avatar {
    width: 52px !important;
    height: 52px !important;
    border-radius: var(--radius-full) !important;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    font-size: var(--font-size-xl) !important;
    font-weight: 700 !important;
    border: 2px solid rgba(16, 185, 129, 0.25) !important;
    box-shadow: 0 10px 28px rgba(16, 185, 129, 0.2) !important;
    flex-shrink: 0 !important;
}

body.home-light .testimonial-card__name {
    color: #16201c !important;
    font-weight: 700 !important;
}

body.home-light .testimonial-card__role {
    color: #6b7280 !important;
    font-size: var(--font-size-sm) !important;
}
