:root {
    --primary-color: #003087;
    --secondary-color: #D1419C;
}

html {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
    position: relative;
}

/* Prevent horizontal overflow on main containers, but allow header dropdowns */
main {
    overflow-x: hidden;
}

section {
    overflow-x: hidden;
    position: relative;
}

/* Ensure header and dropdowns are always on top */
header,
header * {
    position: relative;
}

header nav,
header [id*="dropdown"],
header [id*="menu"] {
    z-index: inherit;
}

/* Ensure images don't cause overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Ensure Tailwind custom colors work */
.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

.bg-background-light {
    background-color: #FFFFFF !important;
}

.bg-background-dark {
    background-color: #0F172A !important;
}

/* Gradient text effect with fallback */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: var(--primary-color); /* Fallback for browsers that don't support background-clip */
    display: inline-block;
}

/* Healthcare gradient - deep blue to purple */
.gradient-text-healthcare {
    background: linear-gradient(135deg, var(--primary-color) 0%, #8E24AA 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: var(--primary-color);
    display: block !important;
    white-space: normal !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    overflow: visible !important;
    padding-bottom: 0;
    margin-bottom: 0;
    line-height: 1.2;
}

/* Payments gradient - purple to pink */
.gradient-text-payments {
    background: linear-gradient(135deg, #8E24AA 0%, var(--secondary-color) 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: var(--secondary-color);
    display: block !important;
    padding-bottom: 0;
    margin-bottom: 0;
    line-height: 1.2;
}

/* Ensure gradient text works in all browsers */
@supports (-webkit-background-clip: text) or (background-clip: text) {
    .gradient-text,
    .gradient-text-healthcare,
    .gradient-text-payments {
        -webkit-text-fill-color: transparent !important;
        color: transparent !important;
    }
}

.gradient-bg {
    background: linear-gradient(135deg, var(--primary-color) 0%, #8E24AA 50%, var(--secondary-color) 100%) !important;
}

.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.card-hover:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

/* Product cards - grey by default, colored on hover */
.product-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.product-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

/* VestaVerify - Blue on hover */
.product-card-blue:hover {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 50%, #dbeafe 100%) !important;
    border-color: #3b82f6 !important;
}

/* VestaTransparency - Pink/Magenta on hover */
.product-card-pink:hover {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 50%, #fce7f3 100%) !important;
    border-color: #ec4899 !important;
}

/* VestaPay - Purple on hover */
.product-card-purple:hover {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 50%, #f3e8ff 100%) !important;
    border-color: #a855f7 !important;
}

/* VestaResolve - Indigo on hover */
.product-card-indigo:hover {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 50%, #e0e7ff 100%) !important;
    border-color: #6366f1 !important;
}

/* VestaACH - Rose on hover */
.product-card-rose:hover {
    background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 50%, #fff1f2 100%) !important;
    border-color: #f43f5e !important;
}

/* VestaClaims - Fuchsia on hover */
.product-card-fuchsia:hover {
    background: linear-gradient(135deg, #fdf4ff 0%, #fae8ff 50%, #fdf4ff 100%) !important;
    border-color: #d946ef !important;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 48;
    font-family: 'Material Symbols Outlined' !important;
    font-weight: normal;
    font-style: normal;
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    font-size: inherit;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Enhanced button hover effects */
button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Video container enhancements */
video {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Client logos styling */
.client-logo {
    filter: grayscale(0%);
    opacity: 1;
    transition: all 0.3s ease;
}

.client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* Carousel styling */
#logo-carousel {
    display: flex;
    will-change: transform;
}

.carousel-indicator {
    cursor: pointer;
    height: 0.5rem;
    transition: all 0.3s ease;
}

.carousel-indicator:hover {
    opacity: 0.7;
}

/* Hero image - animated light sweep over Caduceus/snakes only */
.hero-image-container {
    isolation: isolate;
}

/* Clip shimmer to central Caduceus (snakes/wings) - excludes peripheral icons */
.hero-image-shimmer {
    background: linear-gradient(
        105deg,
        transparent 0%,
        transparent 28%,
        rgba(255, 255, 255, 0.08) 40%,
        rgba(255, 255, 255, 0.55) 50%,
        rgba(255, 255, 255, 0.08) 60%,
        transparent 72%,
        transparent 100%
    );
    background-size: 50% 100%;
    animation: hero-shimmer 5s ease-in-out infinite;
    mix-blend-mode: overlay;
    /* Confine effect to the central Caduceus only - ellipse excludes shield, cloud, gears, etc. */
    -webkit-clip-path: ellipse(30% 42% at 50% 46%);
    clip-path: ellipse(30% 42% at 50% 46%);
}

@keyframes hero-shimmer {
    0% {
        background-position: -50% 0;
    }
    100% {
        background-position: 150% 0;
    }
}

/* Respect user's reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .hero-image-shimmer {
        animation: none;
    }
}

/* Hero section background pattern */
.hero-pattern {
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(0, 48, 135, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(209, 65, 156, 0.03) 0%, transparent 50%);
    background-size: 100% 100%;
}

/* Transparent logo background for product hero sections - centered */
.hero-logo-bg {
    position: absolute;
    top: 0rem;
    left: 2rem;
    right: 2rem;
    bottom: 0rem;
    background-image: url('/assets/images/logo.png');
    background-repeat: no-repeat;
    background-position: center center;
    scale: 3.5;
    background-size: contain;
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}

/* Transparent background image for resources hero section */
.hero-background-image {
    position: absolute;
    top: 4rem;
    left: 2rem;
    right: 2rem;
    bottom: 0rem;
    background-image: url('/assets/images/hero_back1.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: auto 150%;
    max-width: 100%;
    max-height: 100%;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

/* Pilot Program Video Background */
.pilot-program {
    position: relative;
    padding: 8rem 0;
    background: white;
}

.pilot-content {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    gap: 0;
    flex-wrap: wrap;
    position: relative;
    min-height: 500px;
}

.pilot-video-container {
    flex: 1;
    min-width: 300px;
    max-width: 50%;
    overflow: visible;
    position: relative;
    z-index: 1;
    margin-right: -3rem;
    display: flex;
    align-items: stretch;
    height: 100%;
}

.pilot-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none;
    outline: none;
}

.pilot-text {
    flex: 1;
    min-width: 300px;
    max-width: 45%;
    position: relative;
    z-index: 3;
    margin-left: auto;
    padding-left: 3rem;
    padding-right: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #1e293b;
}

.pilot-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.pilot-video-background video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
}

.pilot-text h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #1e293b;
}

.pilot-tagline {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #475569;
}

.pilot-text p {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #64748b;
}

.pilot-text .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 48, 135, 0.3);
}

.pilot-text .btn-primary:hover {
    background-color: rgba(0, 48, 135, 0.9);
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 48, 135, 0.4);
}

@media (max-width: 768px) {
    .pilot-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .pilot-video-container {
        max-width: 100%;
        width: 100%;
        margin-right: 0;
    }
    
    .pilot-text {
        max-width: 100%;
        padding-left: 0;
    }
    
    .pilot-text h2 {
        font-size: 2.5rem;
    }
    
    .pilot-tagline {
        font-size: 1.25rem;
    }
    
    .pilot-text p {
        font-size: 1.125rem;
    }
}

/* Hero logo image styling */
.hero-logo-image {
    outline: none;
    border: none;
    max-height: 100%;
    object-fit: contain;
}

/* Cookie banner hidden state */
.cookie-banner-hidden,
#cookie-banner.hidden {
    display: none !important;
}

/* Denial Challenge section - prevent link-like styling */
.denial-challenge-opportunity {
    text-decoration: none !important;
}

#denial-challenge ul {
    list-style: none;
}

/* Denial Challenge - Dynamic section styles */
#denial-challenge .denial-flow-path > div {
    transform-origin: left center;
}

#denial-challenge .denial-cause-item {
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

#denial-challenge .denial-flow-node-glow {
    opacity: 0.4;
}

/* Denial cause cards - icon scale on hover */
#denial-challenge .denial-cause-item .denial-cause-icon {
    transition: transform 0.3s ease;
}

#denial-challenge .denial-cause-item:hover .denial-cause-icon {
    transform: scale(1.05);
}

/* Announcement banner - add top padding to main so content isn't hidden */
#header-placeholder:has(.announcement-banner):not(.banner-dismissed) + main {
    padding-top: 2.75rem; /* ~44px - banner height */
}

/* Force light mode - remove dark class if present */
html {
    color-scheme: light !important;
}

html.dark {
    color-scheme: light !important;
}
