/**
 * MedMentor Design Overrides - Modern Aiero-Inspired Design
 * Date: October 2, 2025
 * Purpose: Fix design issues and create modern, professional look
 * 
 * Google Fonts: Add to <head>:
 * <link href="https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
 */

/* ============================================
   CSS VARIABLES FIX - AIERO PALETTE
   ============================================ */
:root {
    /* Fonts - Aiero Typography */
    --mm-font-heading: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --mm-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Colors - Aiero Medical Theme */
    --mm-primary: #5B51FF;          /* Purple-Blue (Aiero) */
    --mm-primary-hover: #4940CC;    /* Darker purple */
    --mm-accent: #00D4FF;           /* Cyan accent */
    --mm-success: #10B981;          /* Green */
    --mm-warning: #F59E0B;          /* Amber */
    
    /* Text Colors - Aiero */
    --mm-text: #0A0E27;             /* Dark Navy (Aiero) */
    --mm-text-muted: #6B7280;       /* Gray 500 - muted text */
    --mm-text-light: #9CA3AF;       /* Gray 400 - very light text */
    
    /* Surface Colors - Aiero */
    --mm-surface-1: #FFFFFF;        /* Pure white */
    --mm-surface-2: #F7F9FC;        /* Light Gray-Blue (Aiero) */
    --mm-surface-3: #F3F4F6;        /* Gray 100 - card background */
    
    /* Border */
    --mm-border: #E5E7EB;           /* Gray 200 */
    --mm-border-light: #F3F4F6;     /* Gray 100 */
    
    /* Shadows */
    --mm-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --mm-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --mm-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --mm-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Gradients - Aiero */
    --mm-grad-hero: linear-gradient(135deg, #5B51FF 0%, #00D4FF 50%, #B24BFF 100%);
    --mm-grad-primary: linear-gradient(135deg, #5B51FF 0%, #00D4FF 100%);
    --mm-grad-accent: linear-gradient(135deg, #00D4FF 0%, #5B51FF 100%);
    
    /* Typography (legacy, use --mm-font-heading and --mm-font-body instead) */
    --mm-font-serif: var(--mm-font-heading);
    --mm-font-sans: var(--mm-font-body);
    
    /* Font Sizes */
    --mm-h1: 56px;
    --mm-h2: 36px;
    --mm-h3: 24px;
    --mm-h4: 20px;
    --mm-body: 16px;
    --mm-small: 14px;
    --mm-tiny: 12px;
    
    /* Spacing */
    --mm-space-1: 4px;
    --mm-space-2: 8px;
    --mm-space-3: 12px;
    --mm-space-4: 16px;
    --mm-space-5: 20px;
    --mm-space-6: 24px;
    --mm-space-8: 32px;
    --mm-space-10: 40px;
    --mm-space-12: 48px;
    --mm-space-16: 64px;
    --mm-space-20: 80px;
}

/* ============================================
   HERO SECTION - MODERN DESIGN
   ============================================ */

.mm-hero {
    margin-top: 0 !important;
    padding: 160px 0 120px 0 !important;  /* Aiero: 160px top, 120px bottom */
    background: linear-gradient(135deg, #5B51FF 0%, #00D4FF 50%, #B24BFF 100%);
    position: relative;
    overflow: hidden;
}

.mm-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: heroBlob1 8s ease-in-out infinite;
}

.mm-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: heroBlob2 10s ease-in-out infinite 1s;
}

@keyframes heroBlob1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 20px) scale(1.1); }
}

@keyframes heroBlob2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -30px) scale(1.15); }
}

.mm-hero__grid {
    position: relative;
    z-index: 2;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    max-width: 1200px;
    margin: 0 auto;
}

.mm-hero__copy h1 {
    font-family: var(--mm-font-heading) !important;
    font-size: 64px !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    color: var(--mm-text) !important;
    margin: 0 0 var(--mm-space-4) 0 !important;
}

.mm-hero__copy p {
    font-family: var(--mm-font-body) !important;
    font-size: 18px !important;
    line-height: 1.7 !important;
    color: var(--mm-text-muted) !important;
    margin: 0 0 var(--mm-space-6) 0 !important;
}

.mm-hero__copy .mm-eyebrow {
    display: inline-block;
    padding: var(--mm-space-2) var(--mm-space-4);
    background: rgba(99, 102, 241, 0.1);
    color: var(--mm-primary);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--mm-space-4);
}

.mm-hero__ctas {
    display: flex;
    gap: var(--mm-space-4);
    margin-top: var(--mm-space-6) !important;
}

.mm-hero__ctas .btn {
    padding: var(--mm-space-4) var(--mm-space-8);
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mm-hero__ctas .btn-primary {
    background: var(--mm-grad-primary);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.mm-hero__ctas .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.mm-hero__ctas .btn-outline-primary {
    background: white;
    color: var(--mm-primary);
    border: 2px solid var(--mm-primary);
}

.mm-hero__ctas .btn-outline-primary:hover {
    background: var(--mm-primary);
    color: white;
}

.mm-hero__badges {
    display: flex;
    flex-direction: column;
    gap: var(--mm-space-3);
    margin-top: var(--mm-space-6) !important;
    list-style: none;
    padding: 0;
}

.mm-hero__badges li {
    display: flex;
    align-items: center;
    gap: var(--mm-space-2);
    color: var(--mm-text-muted);
    font-size: 14px;
}

.mm-hero__badges li::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--mm-success);
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.mm-hero__viz {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 400px;
}

/* ============================================
   SECTIONS - MODERN SPACING
   ============================================ */

.mm-highlights,
.mm-services,
.mm-assess,
.mm-outcomes,
.mm-testimonials,
.mm-faq,
.mm-pricing {
    margin-top: var(--mm-space-16);
    padding: 0 var(--mm-space-6);
}

.mm-highlights__header,
.mm-services__header {
    text-align: center;
    margin-bottom: var(--mm-space-10);
}

.mm-eyebrow {
    display: inline-block;
    padding: var(--mm-space-2) var(--mm-space-4);
    background: rgba(99, 102, 241, 0.1);
    color: var(--mm-primary) !important;
    border-radius: 20px;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--mm-space-3);
}

h2.mm-services__title,
h2 {
    font-family: var(--mm-font-heading) !important;
    font-size: 36px !important;
    font-weight: 700 !important;
    color: var(--mm-text) !important;
    margin: 0 0 var(--mm-space-4) 0 !important;
    line-height: 1.2 !important;
}

h3, h4, h5, h6 {
    font-family: var(--mm-font-heading) !important;
}

p, body, .mm-card p, .mm-service p {
    font-family: var(--mm-font-body) !important;
}

/* ============================================
   CARDS - GLASSMORPHIC DESIGN
   ============================================ */

.mm-card,
.mm-service,
.mm-assess__tile {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 16px !important;
    padding: var(--mm-space-6) !important;
    box-shadow: var(--mm-shadow-md) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: block;
}

.mm-card:hover,
.mm-service:hover,
.mm-assess__tile:hover {
    transform: translateY(-4px) !important;
    box-shadow: var(--mm-shadow-xl) !important;
    outline: none !important;
    border-color: rgba(99, 102, 241, 0.3) !important;
}

.mm-card h3,
.mm-service h3,
.mm-assess__tile h3 {
    font-size: 20px !important;
    font-weight: 600 !important;
    color: var(--mm-text) !important;
    margin: 0 0 var(--mm-space-2) 0 !important;
}

.mm-card p,
.mm-service p,
.mm-assess__tile p {
    font-size: 15px !important;
    color: var(--mm-text-muted) !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

/* ============================================
   GRID IMPROVEMENTS
   ============================================ */

.mm-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--mm-space-6);
    margin-top: var(--mm-space-8);
}

.mm-services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--mm-space-6);
    margin-top: var(--mm-space-8);
}

.mm-assess__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--mm-space-6);
    margin-top: var(--mm-space-8);
}

/* ============================================
   FAQ - MODERN DESIGN
   ============================================ */

.mm-faq details {
    background: white;
    border: 1px solid var(--mm-border);
    border-radius: 12px;
    padding: var(--mm-space-4) var(--mm-space-5);
    margin-bottom: var(--mm-space-3);
    box-shadow: var(--mm-shadow-sm);
    transition: all 0.2s ease;
}

.mm-faq details:hover {
    border-color: var(--mm-primary);
    box-shadow: var(--mm-shadow-md);
}

.mm-faq details[open] {
    border-color: var(--mm-primary);
}

.mm-faq summary {
    font-size: 16px;
    font-weight: 600;
    color: var(--mm-text);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mm-faq summary::after {
    content: '+';
    font-size: 24px;
    color: var(--mm-primary);
    transition: transform 0.2s ease;
}

.mm-faq details[open] summary::after {
    transform: rotate(45deg);
}

.mm-faq summary::-webkit-details-marker {
    display: none;
}

.mm-faq p {
    margin-top: var(--mm-space-3) !important;
    color: var(--mm-text-muted) !important;
    line-height: 1.6 !important;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 960px) {
    .mm-hero__grid {
        grid-template-columns: 1fr;
        padding: var(--mm-space-8) !important;
    }
    
    .mm-hero__copy h1 {
        font-size: 36px !important;
    }
    
    .mm-hero__viz {
        min-height: 300px;
    }
    
    .mm-cards,
    .mm-services__grid,
    .mm-assess__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    :root {
        --mm-h1: 32px;
        --mm-h2: 28px;
        --mm-h3: 20px;
    }
    
    .mm-hero {
        padding: var(--mm-space-8) 0 !important;
    }
    
    .mm-hero__grid {
        padding: var(--mm-space-6) !important;
        border-radius: 16px !important;
    }
    
    .mm-hero__copy h1 {
        font-size: 28px !important;
    }
    
    .mm-hero__ctas {
        flex-direction: column;
    }
    
    .mm-hero__ctas .btn {
        width: 100%;
        text-align: center;
    }
    
    .mm-cards,
    .mm-services__grid,
    .mm-assess__grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   CONTAINER FIX
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--mm-space-6);
}

