/**
 * IYA Medical - Excellence 2026 Design System
 * Comprehensive UI/UX Improvements for Web & Mobile
 */

/* ========================================
   CSS VARIABLES - Design Tokens
   ======================================== */
:root {
    /* Primary Colors */
    --iya-primary: #0891b2;
    --iya-primary-dark: #0e7490;
    --iya-primary-light: #22d3ee;
    
    /* Secondary Colors */
    --iya-secondary: #1e3a5f;
    --iya-secondary-dark: #0f172a;
    --iya-accent: #f59e0b;
    
    /* Neutral Colors */
    --iya-white: #ffffff;
    --iya-gray-50: #f8fafc;
    --iya-gray-100: #f1f5f9;
    --iya-gray-200: #e2e8f0;
    --iya-gray-300: #cbd5e1;
    --iya-gray-400: #94a3b8;
    --iya-gray-500: #64748b;
    --iya-gray-600: #475569;
    --iya-gray-700: #334155;
    --iya-gray-800: #1e293b;
    --iya-gray-900: #0f172a;
    
    /* Semantic Colors */
    --iya-success: #10b981;
    --iya-warning: #f59e0b;
    --iya-error: #ef4444;
    
    /* Spacing Scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 20px rgba(8, 145, 178, 0.3);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;
}

/* ========================================
   GLOBAL IMPROVEMENTS
   ======================================== */
   
/* Smoother scrolling */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Better focus states for accessibility */
*:focus-visible {
    outline: 2px solid var(--iya-primary);
    outline-offset: 2px;
}

/* Improve body text readability */
body {
    color: var(--iya-gray-700);
    line-height: 1.7;
}

/* ========================================
   HEADER & NAVIGATION IMPROVEMENTS
   ======================================== */

/* Sticky header with glass effect */
.navbar,
header.sticky-top,
.header-area,
.header-sticky {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-normal);
}

/* Ensure nav text is visible */
.header-sticky .navbar-nav .nav-link,
.navbar .nav-link,
header .nav-link {
    color: var(--iya-gray-800) !important;
}

.header-sticky .navbar-nav .nav-link:hover,
.navbar .nav-link:hover,
header .nav-link:hover {
    color: var(--iya-primary) !important;
}

.navbar.scrolled,
header.scrolled {
    box-shadow: var(--shadow-md);
}

/* Better navigation links */
.nav-link,
.navbar-nav .nav-link {
    color: var(--iya-gray-800) !important;
    font-weight: 500 !important;
    padding: 0.75rem 1.25rem !important;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.navbar-nav .nav-link:hover {
    background: var(--iya-gray-100);
    color: var(--iya-primary) !important;
}

/* Active nav indicator */
.nav-link.active::after,
.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--iya-primary);
    border-radius: var(--radius-full);
}

/* Improved dropdown menus */
.dropdown-menu {
    border: none !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-xl) !important;
    padding: 0.5rem !important;
    animation: dropdownFade 0.2s ease;
    min-width: 220px;
}

@keyframes dropdownFade {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
    border-radius: var(--radius-md) !important;
    padding: 0.75rem 1rem !important;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--iya-gray-100) !important;
    color: var(--iya-primary) !important;
    transform: translateX(4px);
}

/* ========================================
   BUTTONS - Modern & Accessible
   ======================================== */

.btn {
    font-weight: 600;
    border-radius: var(--radius-lg);
    padding: 0.75rem 1.5rem;
    transition: all var(--transition-normal);
    border: none;
    position: relative;
    overflow: hidden;
}

/* Primary Button */
.btn-primary,
.btn-appointment,
.book-btn {
    background: linear-gradient(135deg, var(--iya-primary) 0%, var(--iya-primary-dark) 100%) !important;
    color: white !important;
    box-shadow: 0 4px 14px rgba(8, 145, 178, 0.35);
}

.btn-primary:hover,
.btn-appointment:hover,
.book-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(8, 145, 178, 0.45);
}

.btn-primary:active,
.btn-appointment:active {
    transform: translateY(0);
}

/* Secondary/Outline Button */
.btn-outline-primary {
    border: 2px solid var(--iya-primary) !important;
    color: var(--iya-primary) !important;
    background: transparent !important;
}

.btn-outline-primary:hover {
    background: var(--iya-primary) !important;
    color: white !important;
    transform: translateY(-2px);
}

/* Large CTA Buttons */
.btn-lg,
.hero-btn {
    padding: 1rem 2rem !important;
    font-size: 1.1rem !important;
    border-radius: var(--radius-xl) !important;
}

/* Button with icon */
.btn i,
.btn svg {
    margin-right: 0.5rem;
}

/* ========================================
   CARDS - Elevated & Interactive
   ======================================== */

.card,
.service-card,
.condition-card,
.doctor-card,
.feature-card {
    background: var(--iya-white);
    border: none !important;
    border-radius: var(--radius-xl) !important;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    overflow: hidden;
}

.card:hover,
.service-card:hover,
.condition-card:hover,
.doctor-card:hover,
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

/* Card with accent border */
.card-accent {
    border-left: 4px solid var(--iya-primary) !important;
}

/* Card header */
.card-header {
    background: linear-gradient(135deg, var(--iya-gray-50) 0%, var(--iya-white) 100%);
    border-bottom: 1px solid var(--iya-gray-200);
    padding: 1.25rem;
}

/* Card body spacing */
.card-body {
    padding: 1.5rem;
}

/* ========================================
   HERO SECTION IMPROVEMENTS
   ======================================== */

.hero-section,
.slider-section,
.banner-area {
    position: relative;
    overflow: hidden;
}

/* Better hero text */
.hero-title,
.hero-section h1,
.slider-section h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-subtitle,
.hero-section p,
.slider-section p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
}

/* Hero CTA buttons container */
.hero-buttons,
.slider-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* ========================================
   SERVICES/FEATURES SECTION
   ======================================== */

.services-section,
.features-section {
    padding: var(--space-3xl) 0;
}

/* Service icon container */
.service-icon,
.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--iya-primary-light) 0%, var(--iya-primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: all var(--transition-normal);
}

.service-icon i,
.feature-icon i {
    font-size: 1.75rem;
    color: white;
}

.card:hover .service-icon,
.card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

/* ========================================
   DOCTORS SECTION
   ======================================== */

.doctor-card .doctor-image,
.team-card .team-image {
    position: relative;
    overflow: hidden;
}

.doctor-card .doctor-image img,
.team-card .team-image img {
    transition: all var(--transition-slow);
}

.doctor-card:hover .doctor-image img,
.team-card:hover .team-image img {
    transform: scale(1.05);
}

/* Doctor info */
.doctor-info,
.team-info {
    padding: 1.5rem;
    text-align: center;
}

.doctor-name,
.team-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--iya-secondary);
    margin-bottom: 0.25rem;
}

.doctor-specialty,
.team-role {
    color: var(--iya-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

/* ========================================
   TESTIMONIALS
   ======================================== */

.testimonial-card {
    background: var(--iya-white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-size: 5rem;
    color: var(--iya-primary);
    opacity: 0.15;
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: Georgia, serif;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--iya-gray-600);
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

/* Star ratings */
.rating-stars {
    color: var(--iya-accent);
    margin-bottom: 1rem;
}

/* ========================================
   FOOTER IMPROVEMENTS
   ======================================== */

footer,
.footer-section {
    background: linear-gradient(180deg, var(--iya-secondary-dark) 0%, #000 100%);
    color: var(--iya-gray-300);
    padding-top: var(--space-3xl);
}

footer h4,
footer h5,
.footer-title {
    color: var(--iya-white);
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

footer h4::after,
footer h5::after,
.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--iya-primary);
    border-radius: var(--radius-full);
}

/* Footer links */
footer a,
.footer-link {
    color: var(--iya-gray-400);
    transition: all var(--transition-fast);
    display: inline-block;
}

footer a:hover,
.footer-link:hover {
    color: var(--iya-primary-light);
    transform: translateX(4px);
}

/* Footer contact info */
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-contact-item i {
    color: var(--iya-primary);
    font-size: 1.25rem;
    margin-top: 0.25rem;
}

/* Social links in footer */
.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--iya-gray-300);
    transition: all var(--transition-normal);
}

.social-link:hover {
    background: var(--iya-primary);
    color: white;
    transform: translateY(-4px);
}

/* ========================================
   FLOATING ACTION BUTTONS
   ======================================== */

/* Phone CTA - Floating */
.floating-cta {
    position: fixed;
    bottom: 100px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.floating-btn {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
}

.floating-btn.phone-btn {
    background: linear-gradient(135deg, var(--iya-success) 0%, #059669 100%);
    color: white;
}

.floating-btn.chat-btn {
    background: linear-gradient(135deg, var(--iya-primary) 0%, var(--iya-primary-dark) 100%);
    color: white;
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

/* Pulse animation for phone */
.floating-btn.phone-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
    background: var(--iya-success);
    animation: pulse 2s infinite;
    z-index: -1;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* ========================================
   MOBILE IMPROVEMENTS
   ======================================== */

@media (max-width: 991px) {
    /* Better mobile menu */
    .navbar-collapse {
        background: var(--iya-white);
        border-radius: var(--radius-xl);
        margin-top: 1rem;
        padding: 1rem;
        box-shadow: var(--shadow-xl);
    }
    
    .navbar-nav .nav-link {
        padding: 1rem !important;
        border-radius: var(--radius-md);
    }
    
    .navbar-nav .nav-link:hover {
        background: var(--iya-gray-100);
    }
    
    /* Mobile dropdown */
    .dropdown-menu {
        border: none !important;
        box-shadow: none !important;
        padding-left: 1rem !important;
        background: var(--iya-gray-50) !important;
        border-radius: var(--radius-md) !important;
    }
}

@media (max-width: 767px) {
    /* Improve spacing on mobile */
    .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    
    /* Stack buttons on mobile */
    .hero-buttons,
    .slider-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-buttons .btn,
    .slider-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Cards full width on mobile */
    .card,
    .service-card {
        margin-bottom: 1rem;
    }
    
    /* Better touch targets */
    .btn {
        min-height: 48px;
        padding: 0.875rem 1.5rem;
    }
    
    /* Floating buttons smaller on mobile */
    .floating-cta {
        bottom: 80px;
        right: 16px;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
    }
    
    /* Footer centered on mobile */
    footer {
        text-align: center;
    }
    
    footer h4::after,
    footer h5::after,
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-contact-item {
        justify-content: center;
    }
}

/* ========================================
   SECTION SPACING & TYPOGRAPHY
   ======================================== */

section {
    padding: var(--space-3xl) 0;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--iya-secondary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--iya-gray-500);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* Center section headers */
.text-center .section-title {
    position: relative;
}

.text-center .section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--iya-primary), var(--iya-primary-light));
    margin: 1rem auto 0;
    border-radius: var(--radius-full);
}

/* ========================================
   TRUST BADGES & STATS
   ======================================== */

.trust-badge,
.stat-card {
    background: var(--iya-white);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.trust-badge:hover,
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--iya-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--iya-gray-500);
    font-weight: 500;
}

/* ========================================
   CONTACT SECTION
   ======================================== */

.contact-card {
    background: linear-gradient(135deg, var(--iya-primary) 0%, var(--iya-primary-dark) 100%);
    color: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
}

.contact-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.contact-card h4 {
    color: white;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-card a {
    color: white;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
}

/* ========================================
   FORMS IMPROVEMENT
   ======================================== */

.form-control,
.form-select {
    border-radius: var(--radius-md);
    border: 2px solid var(--iya-gray-200);
    padding: 0.875rem 1rem;
    transition: all var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--iya-primary);
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.15);
}

.form-label {
    font-weight: 600;
    color: var(--iya-gray-700);
    margin-bottom: 0.5rem;
}

/* ========================================
   LOADING & ANIMATIONS
   ======================================== */

/* Smooth fade in for content */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

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

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, var(--iya-gray-200) 25%, var(--iya-gray-100) 50%, var(--iya-gray-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ========================================
   SCROLL TO TOP BUTTON
   ======================================== */

.scroll-top-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--iya-secondary);
    color: white;
    border: none;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 999;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background: var(--iya-primary);
    transform: translateY(-4px);
}

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
   ======================================== */

/* Skip link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--iya-primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    z-index: 10000;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid white;
    }
    
    .card {
        border: 2px solid var(--iya-gray-400);
    }
}

/* ========================================
   FLOATING ACTION BUTTONS - DESKTOP
   ======================================== */

.iya-floating-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.iya-fab {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
}

.iya-fab i {
    font-size: 1.5rem;
    color: white;
}

.iya-fab:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

/* Phone button with pulse */
.iya-fab-phone {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.iya-fab-phone::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #10b981;
    animation: iyaPulse 2s ease-out infinite;
    z-index: -1;
}

@keyframes iyaPulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* Book button */
.iya-fab-book {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
}

/* Scroll to top */
.iya-fab-top {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.iya-fab-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Tooltip on hover */
.iya-fab-tooltip {
    position: absolute;
    right: 70px;
    background: #1e293b;
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
}

.iya-fab-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent transparent #1e293b;
}

.iya-fab:hover .iya-fab-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Hide floating buttons on mobile (they have sticky bar) */
@media (max-width: 767.98px) {
    .iya-floating-actions {
        display: none !important;
    }
}

/* ========================================
   IMPROVED MOBILE STICKY BAR
   ======================================== */

.mobile-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: none;
    z-index: 9999;
    background: #fff;
    box-shadow: 0 -4px 25px rgba(0,0,0,0.12);
    padding: 0;
    border-top: 1px solid rgba(0,0,0,0.05);
}

@media (max-width: 767.98px) {
    .mobile-sticky-cta {
        display: flex;
    }
}

.mobile-sticky-cta a {
    flex: 1;
    text-align: center;
    padding: 16px 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.mobile-sticky-cta .call-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
}

.mobile-sticky-cta .book-btn {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    color: #fff;
}

.mobile-sticky-cta a:active {
    opacity: 0.9;
    transform: scale(0.98);
}

.mobile-sticky-cta a i {
    font-size: 1.1rem;
}

/* ========================================
   QUICK APPOINTMENT BANNER
   ======================================== */

.quick-appointment-banner {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 50%, #1e3a5f 100%);
    padding: 20px 0;
    color: white;
}

.quick-appointment-banner .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.quick-appointment-banner h4 {
    color: white;
    margin: 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quick-appointment-banner .btn {
    background: white;
    color: #0891b2;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 50px;
}

.quick-appointment-banner .btn:hover {
    background: #f8fafc;
    transform: translateY(-2px);
}

@media (max-width: 767.98px) {
    .quick-appointment-banner .container {
        flex-direction: column;
        text-align: center;
    }
    
    .quick-appointment-banner .btn {
        width: 100%;
    }
}

/* ========================================
   SERVICE CARDS GRID
   ======================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.service-card-modern {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
    position: relative;
    overflow: hidden;
}

.service-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #0891b2, #22d3ee);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -15px rgba(8, 145, 178, 0.2);
}

.service-card-modern:hover::before {
    transform: scaleX(1);
}

.service-card-modern .icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-card-modern .icon-wrap i {
    font-size: 1.75rem;
    color: #0891b2;
}

.service-card-modern h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 12px;
}

.service-card-modern p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.service-card-modern .learn-more {
    color: #0891b2;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
}

.service-card-modern .learn-more:hover {
    gap: 10px;
}

/* ========================================
   ENHANCED DOCTOR CARDS
   ======================================== */

.doctor-card-modern {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.doctor-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.doctor-card-modern .doctor-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

.doctor-card-modern .doctor-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.doctor-card-modern:hover .doctor-img-wrap img {
    transform: scale(1.08);
}

.doctor-card-modern .doctor-content {
    padding: 24px;
    text-align: center;
}

.doctor-card-modern .doctor-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 4px;
}

.doctor-card-modern .doctor-specialty {
    color: #0891b2;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.doctor-card-modern .doctor-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #f59e0b;
    font-size: 0.9rem;
}

.doctor-card-modern .btn-view-profile {
    margin-top: 16px;
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    color: #0891b2;
    font-weight: 600;
    border: none;
    transition: all 0.2s ease;
}

.doctor-card-modern .btn-view-profile:hover {
    background: #0891b2;
    color: white;
}

/* ========================================
   LOCATION CARDS
   ======================================== */

.location-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #0891b2;
    transition: all 0.3s ease;
}

.location-card:hover {
    transform: translateX(8px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.location-card h5 {
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.location-card h5 i {
    color: #0891b2;
}

.location-card p {
    color: #64748b;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.location-card p i {
    color: #94a3b8;
    margin-top: 4px;
}

.location-card .location-actions {
    margin-top: 16px;
    display: flex;
    gap: 10px;
}

.location-card .btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 8px;
}

/* ========================================
   CRITICAL: NAVIGATION FIX - HIGH SPECIFICITY
   Force nav links to be visible on white background
   ======================================== */
.header-sticky .navbar .navbar-nav .nav-link,
.header-sticky .navbar-nav .nav-link,
.header-sticky.sticky .navbar-nav .nav-link,
nav.navbar .navbar-nav .nav-link,
.navbar-expand-lg .navbar-nav .nav-link,
.navbar-nav > li > a.nav-link,
header .navbar .navbar-nav .nav-link,
header.sticky-top .navbar-nav .nav-link {
    color: #1e293b !important;
}

.header-sticky .navbar .navbar-nav .nav-link:hover,
.header-sticky .navbar-nav .nav-link:hover,
nav.navbar .navbar-nav .nav-link:hover,
.navbar-expand-lg .navbar-nav .nav-link:hover,
header .navbar .navbar-nav .nav-link:hover {
    color: #0891b2 !important;
    background: rgba(8, 145, 178, 0.08);
}

/* Also fix dropdown toggle */
.navbar-nav .dropdown-toggle,
.navbar .dropdown-toggle {
    color: #1e293b !important;
}

.navbar-nav .dropdown-toggle:hover,
.navbar .dropdown-toggle:hover {
    color: #0891b2 !important;
}

/* Fix social icons and search button text */
.social-icons-navbar a,
.social-icons-navbar .button-transparent-white-text,
.navbar .button-transparent-white-text {
    color: #1e293b !important;
}

.social-icons-navbar a:hover,
.social-icons-navbar .button-transparent-white-text:hover,
.navbar .button-transparent-white-text:hover {
    color: #0891b2 !important;
    background: rgba(8, 145, 178, 0.08);
}

/* Fix nav button links (Login, Appointment) */
.navbar-nav .nav-btn .nav-link,
.nav-item.nav-btn .nav-link {
    color: #1e293b !important;
}

.navbar-nav .nav-btn .nav-link:hover,
.nav-item.nav-btn .nav-link:hover {
    color: #0891b2 !important;
}

/* ========================================
   FINAL FIX: Override mainHeader color inheritance
   ======================================== */
.mainHeader {
    color: #1e293b !important;
}

.mainHeader .navbar,
.mainHeader nav.navbar,
.mainHeader .header-sticky {
    background: rgba(255, 255, 255, 0.98) !important;
}

.mainHeader .navbar-nav .nav-link,
.mainHeader .navbar-nav > li > a,
.mainHeader .navbar-nav .dropdown-toggle,
.mainHeader nav a {
    color: #1e293b !important;
}

.mainHeader .navbar-nav .nav-link:hover,
.mainHeader .navbar-nav > li > a:hover,
.mainHeader .navbar-nav .dropdown-toggle:hover {
    color: #0891b2 !important;
}

/* Social icons in navbar need dark color too */
.mainHeader .social-icons-navbar a,
.mainHeader .social-icon-link,
.mainHeader .button-transparent-white-text {
    color: #1e293b !important;
}

.mainHeader .social-icons-navbar a:hover,
.mainHeader .social-icon-link:hover,
.mainHeader .button-transparent-white-text:hover {
    color: #0891b2 !important;
}

/* ========================================
   FIX: Dropdown toggle text visibility on hover/open
   ======================================== */
/* When dropdown is open or hovered, ensure text stays visible */
.navbar-nav .nav-item.dropdown:hover > .nav-link,
.navbar-nav .nav-item.dropdown.show > .nav-link,
.navbar-nav .dropdown:hover > .dropdown-toggle,
.navbar-nav .dropdown.show > .dropdown-toggle,
.nav-item.dropdown:hover > a.nav-link,
.nav-item.dropdown.show > a.nav-link {
    color: #0891b2 !important;
    background: rgba(8, 145, 178, 0.08) !important;
}

/* Remove the white ::before overlay that hides text */
.navbar-expand-lg .navbar-nav .nav-item.dropdown .nav-link::before,
.navbar-expand-lg .navbar-nav .nav-item.dropdown:hover .nav-link::before {
    display: none !important;
}

/* Ensure dropdown arrow stays visible */
.navbar-nav .dropdown-toggle::after,
.navbar-nav .nav-item.dropdown:hover .dropdown-toggle::after,
.navbar-nav .nav-item.dropdown.show .dropdown-toggle::after {
    border-color: currentColor transparent transparent transparent !important;
}

/* ========================================
   ADDITIONAL POLISH & IMPROVEMENTS
   ======================================== */

/* Better focus states for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #0891b2;
    outline-offset: 2px;
}

/* Improve doctor card hover effects */
.doctor-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* Better testimonial cards */
.testimonial-card {
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: scale(1.02);
}

/* Improve form inputs */
.form-control:focus {
    border-color: #0891b2;
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.15);
}

/* Better button focus states */
.btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.3);
}

/* Smoother page transitions */
.page-header,
.hero-section,
section {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Improve mobile navigation */
@media (max-width: 991px) {
    .navbar-nav .nav-link {
        padding: 12px 16px !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .dropdown-menu {
        border: none;
        box-shadow: none;
        padding-left: 20px;
    }
}

/* Better spacing for procedure cards */
.procedure-card,
.service-card {
    margin-bottom: 24px;
}

/* Improve CTAs on mobile */
@media (max-width: 767px) {
    .hero-cta {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-cta a {
        width: 100%;
        justify-content: center;
    }
}

/* Print styles */
@media print {
    .mainHeader,
    .main-footer,
    .floating-actions,
    .mobile-sticky-cta,
    .iya-floating-actions {
        display: none !important;
    }
    
    body {
        padding: 0;
        margin: 0;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}

/* ========================================
   BREADCRUMBS STYLING
   ======================================== */
.breadcrumb {
    background: transparent;
    padding: 0.75rem 0;
    margin-bottom: 0;
    font-size: 0.9rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #94a3b8;
    font-weight: 600;
}

.breadcrumb-item a {
    color: #0891b2;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: #0e7490;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #64748b;
}

/* ========================================
   IMPROVED SIDEBAR CARDS
   ======================================== */
.contactCard {
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
}

.contactCard-content {
    padding: 1.5rem;
}

.contactCard-icon-wrapper {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.contactCard-icon-wrapper i {
    font-size: 1.25rem;
    color: white;
}

.contactCard-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.contactCard-info {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.contactCard-link {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s ease;
}

.contactCard-link:hover {
    color: white;
}

.contactCard-link::after {
    content: "→";
}

/* ========================================
   PAGE CONTENT IMPROVEMENTS
   ======================================== */
.page-content-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
}

.text_content {
    line-height: 1.8;
    color: #334155;
}

.text_content h2,
.text_content h3,
.text_content h4 {
    color: #0f172a;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.text_content p {
    margin-bottom: 1rem;
}

.text_content ul,
.text_content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.text_content li {
    margin-bottom: 0.5rem;
}

.text_content a {
    color: #0891b2;
    text-decoration: none;
}

.text_content a:hover {
    text-decoration: underline;
}

/* Featured image styling */
.page-featured-image {
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
}

.page-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   IMPROVED CALL-TO-ACTION SECTIONS
   ======================================== */
.cta-section {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 50%, #164e63 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.cta-section .btn-light {
    background: white;
    color: #0891b2;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.cta-section .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ========================================
   IMPROVED MOBILE HAMBURGER MENU
   ======================================== */

/* Hamburger button styling */
#sidebarCollapse {
    background: transparent;
    border: none;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

#sidebarCollapse:hover {
    background: rgba(8, 145, 178, 0.1);
}

#sidebarCollapse i {
    font-size: 1.5rem;
    color: #0891b2;
}

/* Mobile sidebar improvements */
@media (max-width: 991px) {
    #sidebar {
        background: white;
        box-shadow: 5px 0 30px rgba(0, 0, 0, 0.15);
        z-index: 9999;
    }
    
    #sidebar .sidebar-header {
        background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
        padding: 1.5rem;
        margin-bottom: 0;
    }
    
    #sidebar .sidebar-header img {
        max-height: 40px;
    }
    
    /* Close button for sidebar */
    #sidebar .close-sidebar {
        position: absolute;
        top: 15px;
        right: 15px;
        background: rgba(255, 255, 255, 0.2);
        border: none;
        color: white;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background 0.2s ease;
    }
    
    #sidebar .close-sidebar:hover {
        background: rgba(255, 255, 255, 0.3);
    }
    
    /* Menu items in sidebar */
    #sidebar ul.components {
        padding: 1rem 0;
    }
    
    #sidebar ul.components li {
        border-bottom: 1px solid #f1f5f9;
    }
    
    #sidebar ul.components li:last-child {
        border-bottom: none;
    }
    
    #sidebar ul.components li a {
        padding: 14px 20px;
        color: #334155;
        font-weight: 500;
        display: flex;
        align-items: center;
        justify-content: space-between;
        transition: all 0.2s ease;
    }
    
    #sidebar ul.components li a:hover {
        background: rgba(8, 145, 178, 0.05);
        color: #0891b2;
        padding-left: 25px;
    }
    
    #sidebar ul.components li a.active {
        color: #0891b2;
        background: rgba(8, 145, 178, 0.08);
        border-left: 3px solid #0891b2;
    }
    
    /* Dropdown arrow */
    #sidebar ul.components li a[data-toggle="collapse"]::after,
    #sidebar ul.components li a[data-bs-toggle="collapse"]::after {
        content: "›";
        font-size: 1.25rem;
        font-weight: 600;
        transition: transform 0.2s ease;
    }
    
    #sidebar ul.components li a[aria-expanded="true"]::after {
        transform: rotate(90deg);
    }
    
    /* Submenu styling */
    #sidebar ul ul {
        background: #f8fafc;
        padding: 0.5rem 0;
    }
    
    #sidebar ul ul li a {
        padding: 10px 20px 10px 35px;
        font-size: 0.9rem;
        color: #64748b;
    }
    
    #sidebar ul ul li a:hover {
        color: #0891b2;
        padding-left: 40px;
    }
    
    /* Mobile CTA buttons in sidebar */
    #sidebar .sidebar-cta {
        padding: 1.5rem;
        background: #f8fafc;
        margin-top: auto;
    }
    
    #sidebar .sidebar-cta a {
        display: block;
        padding: 12px 20px;
        text-align: center;
        border-radius: 8px;
        font-weight: 600;
        text-decoration: none;
        margin-bottom: 10px;
    }
    
    #sidebar .sidebar-cta a.btn-primary {
        background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
        color: white;
    }
    
    #sidebar .sidebar-cta a.btn-outline {
        background: white;
        color: #0891b2;
        border: 2px solid #0891b2;
    }
    
    /* Overlay when sidebar is open */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* ========================================
   SMOOTH ANIMATIONS FOR MENU
   ======================================== */
#sidebar {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#sidebar.active {
    transform: translateX(0) !important;
}

/* ========================================
   ADDITIONAL MOBILE IMPROVEMENTS
   ======================================== */
@media (max-width: 767px) {
    /* Better touch targets */
    .nav-link,
    .dropdown-item,
    .btn {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    /* Larger tap areas for phone/email */
    a[href^="tel:"],
    a[href^="mailto:"] {
        padding: 8px 0;
    }
    
    /* Improve card spacing on mobile */
    .card {
        margin-bottom: 1rem;
    }
    
    /* Better section spacing */
    section {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
    
    /* Improve form elements on mobile */
    .form-control,
    .form-select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px 16px;
    }
}

/* ========================================
   IMAGE OPTIMIZATION & PERFORMANCE
   ======================================== */

/* Optimize image rendering */
img {
    content-visibility: auto;
    contain-intrinsic-size: auto 300px;
}

/* Better image handling for LCP */
img[loading='eager'],
.hero-image img,
.leading-image img {
    content-visibility: visible;
}

/* Smooth image loading with fade-in */
img[loading='lazy'] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading='lazy'].loaded,
img[loading='lazy'][src]:not([src='']) {
    opacity: 1;
}

/* Aspect ratio containers for CLS prevention */
.img-container {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.img-container-square {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Optimize background images */
.bg-lazy {
    background-image: none !important;
}

.bg-lazy.loaded {
    background-image: var(--bg-image) !important;
}

/* Insurance logos optimization */
.insurance-logo {
    transition: filter 0.2s ease, transform 0.2s ease;
}

.insurance-logo:hover {
    filter: grayscale(0%) !important;
    transform: scale(1.05);
}

/* ========================================
   CRITICAL RENDERING PATH OPTIMIZATION
   ======================================== */

/* Prioritize above-the-fold content */
.above-fold {
    content-visibility: visible;
}

/* Defer below-fold content */
.below-fold {
    content-visibility: auto;
    contain-intrinsic-size: 0 500px;
}

/* Font display optimization */
.font-loading body {
    font-family: system-ui, -apple-system, sans-serif;
}

.fonts-loaded body {
    font-family: var(--font-primary, 'DM Sans', system-ui, sans-serif);
}

/* Skeleton loading states */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--iya-gray-100) 25%,
        var(--iya-gray-200) 50%,
        var(--iya-gray-100) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Reduce layout shift for cards */
.card,
.service-card {
    contain: layout style;
}

/* GPU-accelerated transforms */
.card,
.btn,
.nav-link,
.dropdown-menu {
    will-change: transform;
    transform: translateZ(0);
}

/* Remove will-change after animations */
.card:not(:hover),
.btn:not(:hover),
.nav-link:not(:hover) {
    will-change: auto;
}

/* ========================================
   STICKY HEADER FIX - Ensure visibility on scroll
   ======================================== */

/* When sticky, ensure solid background */
.header-sticky.sticky {
    background: #ffffff !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Fix the transform hiding issue - smoother transition */
.header-sticky {
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease !important;
}

/* Ensure header stays visible when scrolling up */
.header-sticky.sticky:not(.hide) {
    transform: translateY(0) !important;
}

/* Make hide class work properly */
.header-sticky.sticky.hide {
    transform: translateY(-100%) !important;
}

/* Ensure mainHeader doesn't interfere */
.mainHeader {
    background: transparent !important;
    min-height: auto !important;
}

/* On scroll past hero, ensure header is always visible */
@media (min-width: 992px) {
    .header-sticky.sticky .navbar-nav .nav-link {
        color: #1e293b !important;
    }
    
    .header-sticky.sticky .navbar-nav .nav-link:hover {
        color: #0891b2 !important;
    }
    
    .header-sticky.sticky .headerLogo img {
        height: 45px;
    }
}

/* Fix for the cyan gap - ensure no gap between header and content */
.iya-hero {
    margin-top: 0 !important;
}

/* Social icons in sticky header */
.header-sticky.sticky .social-icons-navbar a,
.header-sticky.sticky .button-transparent-white-text {
    color: #1e293b !important;
}

.header-sticky.sticky .social-icons-navbar a:hover,
.header-sticky.sticky .button-transparent-white-text:hover {
    color: #0891b2 !important;
}

/* ========================================
   ENHANCED ACCESSIBILITY IMPROVEMENTS
   ======================================== */

/* Better focus outlines for all interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid #0891b2 !important;
    outline-offset: 3px !important;
    border-radius: 4px;
}

/* Skip link improvement */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: #0891b2;
    color: white;
    padding: 12px 24px;
    border-radius: 0 0 8px 8px;
    z-index: 10000;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 0;
    outline: 3px solid #f59e0b;
    outline-offset: 2px;
}

/* Ensure sufficient color contrast for text */
.text-muted {
    color: #525252 !important; /* Darker gray for better contrast */
}

/* Improve link visibility */
.page-content-card a:not(.btn),
.text_content a:not(.btn) {
    color: #0891b2;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.page-content-card a:not(.btn):hover,
.text_content a:not(.btn):hover {
    color: #0e7490;
    text-decoration-thickness: 2px;
}

/* Form accessibility */
.form-control:focus,
.form-select:focus {
    border-color: #0891b2;
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.25);
}

/* Error states */
.form-control.is-invalid:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.25);
}

/* Screen reader only text utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Improve button states for better feedback */
.btn:active {
    transform: scale(0.98);
}

.btn:disabled,
.btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Ensure icons have proper sizing for touch */
.social-icon-link,
.iya-fab {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Improve table accessibility */
table {
    border-collapse: collapse;
}

table th {
    text-align: left;
    font-weight: 600;
}

/* Ensure good contrast for placeholder text */
::placeholder {
    color: #6b7280;
    opacity: 1;
}

/* Improve card focus for keyboard navigation */
.card:focus-within {
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.25), var(--shadow-lg);
}

/* ========================================
   ENHANCED MOBILE RESPONSIVENESS
   ======================================== */

/* Improve touch targets for mobile */
@media (max-width: 767.98px) {
    /* Larger tap targets */
    .btn, 
    .nav-link,
    .dropdown-item,
    a.list-item {
        min-height: 44px;
        padding-top: 12px;
        padding-bottom: 12px;
    }
    
    /* Better spacing for mobile */
    .section-title {
        font-size: 0.85rem;
    }
    
    .text-title {
        font-size: 1.5rem !important;
        line-height: 1.3;
    }
    
    /* Improve card readability on mobile */
    .service-card,
    .testimonial-card-yt,
    .location-card {
        margin-bottom: 20px;
    }
    
    /* Better footer on mobile */
    .footer-section {
        padding: 40px 0 100px;
    }
    
    .footer-section .col-md-3,
    .footer-section .col-lg-3 {
        margin-bottom: 30px;
    }
    
    /* Fix overflow issues */
    .conditions-wrapper .list,
    .owl-carousel {
        overflow-x: hidden;
    }
    
    /* Improve form inputs on mobile */
    .form-control,
    .form-select {
        font-size: 16px !important;
        padding: 14px 16px;
    }
    
    /* Better mobile navigation */
    .sidebar {
        width: 85% !important;
        max-width: 320px;
    }
    
    /* Improve doctor cards on mobile */
    .doctor-carousel .item {
        margin: 0 5px;
    }
    
    /* Better testimonial cards */
    .testimonial-card-yt {
        min-height: auto;
    }
    
    /* Improve locations section */
    .location-card .card-body {
        padding: 20px 15px;
    }
    
    /* Fix horizontal scroll issues */
    body {
        overflow-x: hidden;
    }
    
    .container,
    .row {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Better CTA buttons on mobile */
    .hero-cta .btn-hero-primary,
    .hero-cta .btn-hero-secondary {
        font-size: 0.95rem;
        padding: 14px 24px;
    }
}

/* Tablet-specific fixes */
@media (min-width: 768px) and (max-width: 991.98px) {
    .text-title {
        font-size: 2rem !important;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

/* Fix iOS Safari specific issues */
@supports (-webkit-touch-callout: none) {
    .iya-hero {
        min-height: -webkit-fill-available;
    }
    
    .owl-carousel {
        -webkit-overflow-scrolling: touch;
    }
    
    .header-sticky.sticky {
        position: -webkit-sticky;
        position: sticky;
    }
}

/* Better landscape mode for phones */
@media (max-height: 500px) and (orientation: landscape) {
    .iya-hero {
        min-height: auto;
        padding: 60px 0;
    }
    
    .hero-content-wrapper {
        padding-top: 60px;
        padding-bottom: 40px;
    }
    
    .hero-wave-divider {
        height: 60px;
    }
}

/* Improve readability for small screens */
@media (max-width: 375px) {
    .hero-badge {
        font-size: 0.75rem;
        padding: 8px 16px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .text-title {
        font-size: 1.3rem !important;
    }
}

/* Print styles improvement */
@media print {
    .hero-bg-layers,
    #heroCanvas,
    .hero-glow,
    .noise-overlay,
    .hero-wave-divider,
    .mobile-sticky-cta,
    .iya-fab,
    .sidebar,
    .video-play-overlay {
        display: none !important;
    }
    
    .iya-hero {
        min-height: auto;
        background: #0891b2;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .hero-title {
        color: #000 !important;
        -webkit-text-fill-color: #000;
    }
    
    a {
        text-decoration: none;
    }
}

/* ========================================
   ENHANCED CTA ELEMENTS
   ======================================== */

/* Floating Action Buttons */
.iya-floating-actions {
    position: fixed;
    right: 24px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9990;
}

.iya-fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    position: relative;
    border: none;
    cursor: pointer;
}

.iya-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(0,0,0,0.25);
}

.iya-fab i {
    font-size: 1.25rem;
}

.iya-fab-phone {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.iya-fab-book {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
}

.iya-fab-top {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.iya-fab-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.iya-fab-tooltip {
    position: absolute;
    right: 70px;
    background: #1e293b;
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.iya-fab-tooltip::after {
    content: "";
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #1e293b;
}

.iya-fab:hover .iya-fab-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Urgency Banner */
.urgency-banner {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #fff;
    padding: 12px 20px;
    text-align: center;
    font-weight: 500;
    font-size: 0.9rem;
}

.urgency-banner a {
    color: #fff;
    text-decoration: underline;
    font-weight: 700;
}

/* Enhanced Sidebar CTA Card */
.cta-sidebar-card {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    border-radius: 16px;
    padding: 28px 24px;
    color: #fff;
    text-align: center;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.cta-sidebar-card::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta-sidebar-card h4 {
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.cta-sidebar-card p {
    opacity: 0.9;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.cta-sidebar-card .btn {
    background: #fff;
    color: #0891b2;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 50px;
    border: none;
    transition: all 0.3s ease;
}

.cta-sidebar-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Trust Indicators */
.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.trust-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.9);
}

.trust-indicator i {
    color: #22d3ee;
}

/* Appointment Reminder Banner */
.appointment-reminder {
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.1) 0%, rgba(6, 182, 212, 0.05) 100%);
    border: 1px solid rgba(8, 145, 178, 0.2);
    border-radius: 12px;
    padding: 16px 20px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.appointment-reminder i {
    font-size: 1.5rem;
    color: #0891b2;
}

.appointment-reminder-content h5 {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 1rem;
    color: #0891b2;
}

.appointment-reminder-content p {
    margin: 0;
    font-size: 0.85rem;
    color: #64748b;
}

/* Social Proof Counter */
.social-proof-counter {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.proof-number {
    font-size: 2rem;
    font-weight: 800;
    color: #0891b2;
    line-height: 1;
}

.proof-label {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 4px;
}
/* ========================================
   DROPDOWN FIXES - Jan 2026
   ======================================== */

/* Fix dropdown disappearing on hover - ensure proper hover area */
.navbar-nav .nav-item.dropdown {
    position: relative;
}

.navbar-nav .nav-item.dropdown > .dropdown-menu {
    margin-top: 0 !important;
    padding-top: 10px !important;
    border-top: none !important;
}

/* Create invisible bridge between nav link and dropdown */
.navbar-nav .nav-item.dropdown::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
}

/* Keep dropdown open on hover */
.navbar-nav .nav-item.dropdown:hover > .dropdown-menu,
.navbar-nav .nav-item.dropdown:focus-within > .dropdown-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Fix for long dropdowns - make them scrollable */
.navbar-nav .dropdown-menu {
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #0891b2 #f1f5f9;
}

.navbar-nav .dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.navbar-nav .dropdown-menu::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.navbar-nav .dropdown-menu::-webkit-scrollbar-thumb {
    background: #0891b2;
    border-radius: 3px;
}

.navbar-nav .dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #0e7490;
}

/* Ensure dropdown items do not get cut off */
.navbar-nav .dropdown-item {
    white-space: normal;
    word-wrap: break-word;
}

/* Fix nav-link visibility on hover - remove any overlays */
.navbar-nav .nav-item.dropdown:hover > .nav-link,
.navbar-nav .nav-item.dropdown:focus-within > .nav-link {
    color: #0891b2 !important;
    background-color: rgba(8, 145, 178, 0.08) !important;
}

/* Ensure text is always visible */
.navbar-nav .nav-link,
.navbar-nav .dropdown-toggle {
    color: #1e293b !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .dropdown-toggle:hover {
    color: #0891b2 !important;
}

/* Fix z-index stacking */
.navbar-nav .dropdown-menu {
    z-index: 1050 !important;
}

/* Remove any pseudo-element overlays that might hide text */
.navbar-nav .nav-link::before,
.navbar-nav .nav-link::after,
.navbar-nav .dropdown-toggle::before {
    display: none !important;
}

/* Keep the dropdown arrow visible */
.navbar-nav .dropdown-toggle::after {
    display: inline-block !important;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}
