/* Design Spells - Liquid Glass & Depth System */
:root {
    --primary: #00357f;
    --secondary: #00677e;
    --electric-cyan: #00d2fd;
    --background: #f7f9fb;
}

html, body {
    max-width: 100vw;
    overflow-x: hidden !important;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: #191c1e;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

h1, h2, h3, h4 {
    font-family: 'Manrope', sans-serif;
    letter-spacing: -0.02em;
}

/* Signature Liquid Glass Component */
.liquid-glass {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    position: relative;
    box-shadow: 0 8px 32px 0 rgba(0, 74, 173, 0.05);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.liquid-glass:hover {
    background: rgba(255, 255, 255, 0.65);
    transform: translateY(-8px);
    box-shadow: 0 32px 64px -16px rgba(0, 74, 173, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Micro-highlight on top edge to simulate light on glass */
.liquid-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

.deep-ambient-shadow {
    box-shadow: 0 20px 50px rgba(0, 74, 173, 0.08);
}

.active-glow {
    box-shadow: 0 0 15px rgba(0, 74, 173, 0.3);
}

/* Animations */
@keyframes pulse-liquid {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.98); }
}

.animate-pulse-liquid {
    animation: pulse-liquid 3s ease-in-out infinite;
}

/* Custom Utilities */
.text-gradient-precision {
    background: linear-gradient(90deg, #00357f 0%, #004aad 50%, #00d2fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.bg-electric {
    background-color: var(--electric-cyan);
}

/* Precision Transitions */
.transition-precision {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Tabular Numbers for medical data */
.tabular-nums {
    font-variant-numeric: tabular-nums;
}

/* Global Exam View Custom Classes */
.glass-card {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(0, 53, 127, 0.04);
}

.glass-dark {
    background: rgba(0, 53, 127, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 53, 127, 0.08);
}

.tech-mesh {
    background-image: radial-gradient(#00357f15 1px, transparent 1px);
    background-size: 40px 40px;
}

.reveal-up {
    animation: revealUp 0.8s ease-out forwards;
}

@keyframes revealUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Thin Scrollbar for carousel and scroll areas */
.scrollbar-thin::-webkit-scrollbar {
    width: 3px;
}
.scrollbar-thin::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}
.scrollbar-thin::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}
.scrollbar-thin::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 10px;
}
.scrollbar-thin {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.05);
}

.hover-lift {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hover-lift:hover {
    transform: translateY(-4px);
}
.font-fill { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
.fill-1 { font-variation-settings: 'FILL' 1; }

/* Telerradiologia Page Specific Scoped Styles */
.teler-liquid-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 30px rgba(0, 74, 173, 0.03);
}
.teler-deep-glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 50px rgba(0, 74, 173, 0.08);
}
.teler-text-gradient-primary {
    background: linear-gradient(135deg, #00357f 0%, #00677e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.teler-text-gradient-tech {
    background: linear-gradient(135deg, #004aad 0%, #00d2fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.teler-hero-mesh {
    background-color: #f7f9fb;
    background-image: 
        radial-gradient(at 0% 0%, rgba(0, 74, 173, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(0, 210, 253, 0.05) 0px, transparent 50%);
}
.teler-clinical-mesh {
    background: radial-gradient(circle at 20% 50%, rgba(217, 226, 255, 0.4) 0%, transparent 40%),
                radial-gradient(circle at 80% 80%, rgba(180, 235, 255, 0.3) 0%, transparent 40%),
                #ffffff;
}
.teler-micro-border-top {
    border-top: 1px solid rgba(255, 255, 255, 0.8);
}

/* Radiologia Digital Movel Page Specific Scoped Styles */
.movel-liquid-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 30px rgba(0, 74, 173, 0.03);
}
.movel-micro-border {
    border: 1px solid rgba(0, 53, 127, 0.08);
}
.movel-deep-ambient-shadow {
    box-shadow: 0 20px 50px rgba(0, 74, 173, 0.08);
}
.movel-pulse-loader {
    animation: movel-pulse-liquid 2s infinite ease-in-out;
}
@keyframes movel-pulse-liquid {
    0%, 100% { opacity: 0.5; transform: scaleX(1); }
    50% { opacity: 1; transform: scaleX(1.1); }
}
.movel-diagnostic-chip {
    background: rgba(0, 103, 126, 0.1);
    border-left: 4px solid #00677e;
}

/* IRV Connect Page Specific Scoped Styles */
.conect-glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.conect-glass-btn-glow:hover {
    box-shadow: 0 0 20px rgba(0, 74, 173, 0.3);
    transform: scale(1.02);
}
@keyframes conect-glow-pulse { 
    0% { border-color: rgba(0, 74, 173, 0.2); } 
    50% { border-color: rgba(0, 210, 253, 0.6); } 
    100% { border-color: rgba(0, 74, 173, 0.2); } 
}
.conect-tech-card { 
    border: 1px solid rgba(0, 74, 173, 0.1); 
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); 
}
.conect-tech-card:hover { 
    border-color: #00d2fd; 
    box-shadow: 0 0 30px rgba(0, 210, 253, 0.2); 
    transform: translateY(-4px); 
}
.conect-premium-input {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #c3c6d5;
    transition: all 0.3s ease;
}
.conect-premium-input:focus {
    border-color: #004aad;
    box-shadow: 0 0 0 4px rgba(0, 74, 173, 0.1);
}

/* Fale Conosco Page Specific Scoped Styles */
.contato-btn-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.contato-btn-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 53, 127, 0.15) !important;
}
.contato-btn-lift:active {
    transform: translateY(1px);
}
.fale-conosco-form.was-validated input:invalid,
.fale-conosco-form.was-validated select:invalid,
.fale-conosco-form.was-validated textarea:invalid {
    border-color: #ef4444 !important;
    background-color: #fff5f5 !important;
}
.fale-conosco-form.was-validated input:invalid:focus,
.fale-conosco-form.was-validated select:invalid:focus,
.fale-conosco-form.was-validated textarea:invalid:focus {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1) !important;
}
.contato-error-message {
    display: none;
    color: #ef4444;
    font-size: 11px;
    margin-top: 4px;
    font-family: 'Inter', sans-serif;
}
.fale-conosco-form.was-validated :invalid ~ .contato-error-message {
    display: block;
}

/* Exames Page Specific Scoped Styles */
.exames-glass-card {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(0, 53, 127, 0.04);
}
.exames-liquid-glass {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.3), 0 10px 40px -10px rgba(0, 53, 127, 0.08);
}
.exames-liquid-glass-hover:hover {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(33, 90, 189, 0.2);
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -12px rgba(0, 53, 127, 0.12);
}
.exames-liquid-gradient {
    background: radial-gradient(circle at 10% 20%, rgba(217, 226, 255, 0.4) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(84, 253, 196, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.8) 0%, transparent 100%);
}
.exames-headline-precision {
    background: linear-gradient(90deg, #00357f 0%, #2599ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.exames-transition-all-custom {
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
.exames-category-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 53, 127, 0.1), transparent);
}
.exames-tech-blob {
    position: absolute;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}

/* Header and Navigation Styles */
.text-\[\#2f54eb\] {
    --tw-text-opacity: 1 !important;
    color: rgb(255 255 255) !important;
}
.glass-nav {
    background: rgba(247, 249, 251, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
#nav-container {
    transition: padding 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
#nav-header.scrolled {
    background: rgba(247, 249, 251, 0.85);
    box-shadow: 0 10px 30px rgba(0, 74, 173, 0.05);
    border-bottom-color: rgba(0, 74, 173, 0.05);
}
#nav-header.scrolled #nav-container {
    padding-top: 1rem !important; /* pt-4 equivalent */
    padding-bottom: 1rem !important; /* pb-4 equivalent */
}
.kinetic-underline {
    position: relative;
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.kinetic-underline::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 1.5px;
    background-color: var(--primary-color);
    transform: translateX(-50%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-item-active {
    color: var(--primary-color) !important;
}
.nav-item-active::after {
    width: 100%;
}
.kinetic-underline:hover::after {
    width: 100%;
}
.kinetic-underline:hover {
    transform: scale(1.02);
}
.submenu-glass {
    background: rgb(255 255 255 / 97%);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    box-shadow: 0 10px 40px rgba(0, 74, 173, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(0, 74, 173, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 74, 173, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 74, 173, 0); }
}
.glass-btn-glow:hover {
    animation: pulse-glow 1.5s infinite;
}
#exam-modal {
    transition: opacity 0.3s ease-in-out;
}
#exam-modal.active {
    opacity: 1 !important;
    pointer-events: auto !important;
}
#exam-modal.active #exam-modal-card {
    transform: scale(1) !important;
    opacity: 1 !important;
}
@keyframes fab-pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 53, 127, 0.4); }
    70% { box-shadow: 0 0 0 12px rgba(0, 53, 127, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 53, 127, 0); }
}
.fab-glow {
    animation: fab-pulse 2s infinite;
}

/* Global Typography System for IRV Natal */
.hero-inner-title {
    font-size: 1.5rem !important;
    line-height: 1.3 !important;
}
.section-header-title {
    font-size: 1.75rem !important;
    line-height: 1.25 !important;
}
.irv-cta-title {
    font-size: 1.4rem !important;
    line-height: 1.25 !important;
}
.irv-cta-desc {
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
}

@media (min-width: 640px) {
    .hero-inner-title {
        font-size: 1.9rem !important;
        line-height: 1.3 !important;
    }
    .section-header-title {
        font-size: 2.2rem !important;
    }
    .irv-cta-title {
        font-size: 1.8rem !important;
    }
    .irv-cta-desc {
        font-size: 1rem !important;
    }
}

@media (min-width: 1024px) {
    .hero-inner-title {
        font-size: 2.5rem !important;
        line-height: 1.3 !important;
    }
    .section-header-title {
        font-size: 2.7rem !important;
    }
    .irv-cta-title {
        font-size: 2.8rem !important;
    }
    .irv-cta-desc {
        font-size: 20px !important;
    }
}
