/* Warm & Modern Care Home System Custom Styles */

:root {
    --color-navy: #0F172A;
    --color-emerald: #059669; /* Added Emerald Green */
    --color-teal: #0EA5E9;
    --color-warm-bg: #FAF9F6; /* Warm alabaster/cream tint */
}

/* Base resets & smooth rendering */
body {
    background-color: var(--color-warm-bg) !important;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* Subtle site-wide background floral arrangement */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('assets/1783886312613.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: min(85%, 1200px) auto;
    opacity: 0.80; /* Increased to 0.80 */
    z-index: -1; /* Placed correctly in stacking context */
    pointer-events: none;
}

/* Make Tailwind solid background utility classes translucent so body background is visible */
.bg-white {
    background-color: rgba(255, 255, 255, 0.88) !important;
}
.bg-slate-50 {
    background-color: rgba(248, 250, 252, 0.88) !important;
}

/* Custom interactive touch target enhancement with vertical and horizontal centering */
.touch-target {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth Premium Glow & Lift for Cards */
.premium-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.04);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -2px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-card:hover {
    transform: translateY(-4px);
    border-color: rgba(14, 165, 233, 0.25);
    box-shadow: 0 20px 25px -5px rgba(14, 165, 233, 0.06), 0 8px 10px -6px rgba(14, 165, 233, 0.04);
}

/* Warm Ambient Glow Effects */
.ambient-glow {
    position: relative;
}
.ambient-glow::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 0 40px rgba(14, 165, 233, 0.08);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s ease;
}
.ambient-glow:hover::after {
    opacity: 1;
}

/* Micro-animations for buttons */
.btn-primary {
    position: relative;
    overflow: hidden;
}
.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%) scale(0);
    border-radius: 50%;
    transition: transform 0.5s ease;
}
.btn-primary:active::after {
    transform: translate(-50%, -50%) scale(1);
    transition: 0s;
}

/* Smooth Navigation Active Highlights */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 12px;
    right: 12px;
    height: 2px;
    background-color: var(--color-teal);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}
.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Glassmorphism panel styling */
.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

/* Partner Logo Marquee Styles */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    position: relative;
    padding: 1.5rem 0;
}

.marquee-content {
    display: inline-flex;
    gap: 3rem;
    animation: marquee 25s linear infinite;
}

@keyframes marquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* Ensure green color updates in custom scroll elements */
.nav-link::after {
    background-color: var(--color-emerald) !important;
}
.premium-card:hover {
    border-color: rgba(5, 150, 105, 0.25) !important;
    box-shadow: 0 20px 25px -5px rgba(5, 150, 105, 0.06), 0 8px 10px -6px rgba(5, 150, 105, 0.04) !important;
}
.ambient-glow::after {
    box-shadow: 0 0 40px rgba(5, 150, 105, 0.08) !important;
}

