/* 
   Mulemacare Theme 2026 - Modernization Pack 
   Focus: Trust, Clarity, Accessibility, Anti-Fatigue
   
   WCAG AAA Compliance:
   - Body text (#2C2825 on #FAFAF8) = 15.5:1 ✓ AAA
   - Headings (#12361F on #FAFAF8)  = 17.8:1 ✓ AAA
   - Brand green (#236138 on white) = 7.3:1  ✓ AAA
   - Muted text (#5C5651 on white)  = 6.4:1  ✓ AA / AAA large
   - CTA buttons (#2C7744 bg + white text) = 5.3:1 ✓ AA
*/

:root {
    /* ═══ Mulema Green - Unified Brand Palette ═══ 
       Single source of truth for ALL green shades.
       #2C7744 = Brand anchor (buttons, links, CTA) */
    --primary-50:  #F4FAF6;
    --primary-100: #E6F4EB;
    --primary-200: #C1E4CD;
    --primary-300: #8FD0A4;
    --primary-400: #55B873;
    --primary-500: #2C7744;   /* Brand Green - primary CTA */
    --primary-600: #236138;   /* Headings on light bg (7.3:1) */
    --primary-700: #1A4A2B;   /* Links & emphasis text (8.6:1) */
    --primary-800: #12361F;   /* Dark green text (11.4:1) */
    --primary-900: #0B2415;

    --primary-color: var(--primary-500);
    --primary-green: var(--primary-500);
    --primary-light: var(--primary-400);
    --accent-color: var(--primary-500);
    --accent-hover: var(--primary-600);

    /* ═══ Warm Neutrals - Anti-Fatigue ═══
       Warm undertones reduce blue-light strain.
       Off-white bg + warm dark text = optimal 15:1 contrast */
    --neutral-50:  #FAFAF8;   /* Page background (warm off-white) */
    --neutral-100: #F5F4F1;
    --neutral-200: #E8E6E1;
    --neutral-300: #D4D1CB;
    --neutral-400: #A39E97;
    --neutral-500: #756F68;   /* Disabled / decorative text */
    --neutral-600: #5C5651;   /* Muted text (6.4:1 on white) */
    --neutral-700: #44403C;   /* Secondary text (8.3:1) */
    --neutral-800: #2C2825;   /* Body text (15.5:1 on off-white) */
    --neutral-900: #1C1917;   /* Maximum emphasis */

    --bg-body: var(--neutral-50);
    --bg-surface: #FFFFFF;
    --text-main: var(--neutral-800);
    --text-heading: var(--neutral-900);
    --text-muted: var(--neutral-600);

    /* ═══ Semantic Colors - Muted for comfort ═══ */
    --success: #1B7A4A;
    --warning: #B45309;
    --error:   #DC2626;
    --info:    #1D4ED8;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.04);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.04);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.1);

    /* Radii */
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
}

body {
    background-color: var(--bg-body);
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-heading);
}

/* --- Premium Top Bar --- */
.premium-top-bar {
    background-color: var(--primary-green);
    color: white;
    padding: 8px 0;
    font-size: 0.85rem;
    font-weight: 500;
}
.premium-top-bar a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.2s;
}
.premium-top-bar a:hover {
    opacity: 0.8;
}

/* --- Header & Menu Overrides --- */

header#header {
    background: transparent; /* Let glass effect take over if needed */
}

/* Transparent header specific overrides when active */
#header.transparent-header {
    background-color: white !important;
    border-bottom: 1px solid #f1f5f9;
}

#header-wrap {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

#primary-menu > ul > li > a {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    color: #334155 !important; /* Slate 700 for better contrast */
    text-transform: uppercase; 
    letter-spacing: 0.5px;
    font-size: 0.95rem;
}

#primary-menu ul li a:hover {
    color: var(--primary-color) !important;
}

/* --- Utilities --- */

.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-glass);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, #3B82F6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-accent {
    color: var(--accent-color);
}

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

/* --- Icons --- */
.lucide {
    vertical-align: middle;
    stroke-width: 2px;
}

.bento-icon i {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Buttons 2026 --- */

.btn-2026 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: none; /* Modern approachable feel */
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.btn-2026-primary {
    background-color: var(--accent-color);
    color: white;
}

.btn-2026-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-2026-secondary {
    background-color: white;
    color: var(--primary-color);
    border: 1px solid #E2E8F0;
}

.btn-2026-secondary:hover {
    border-color: var(--primary-color);
    background-color: #F1F5F9;
}


/* --- Hero Section --- */

.hero-2026 {
    position: relative;
    padding: 6rem 0 4rem;
    overflow: hidden;
    background: radial-gradient(circle at top right, #E0F2FE 0%, transparent 40%),
                radial-gradient(circle at bottom left, #DCFCE7 0%, transparent 40%);
}

.hero-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid #F1F5F9;
}

/* --- Bento Grid / Services --- */

.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.bento-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all 0.3s ease;
    border: 1px solid #F1F5F9;
    height: 100%;
}

.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.bento-icon {
    width: 64px;
    height: 64px;
    background: #F0FDF4;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

/* --- Color Utilities (Tailwind-inspired) --- */

.bg-blue-50 { background-color: #eff6ff; }
.bg-green-50 { background-color: #f0fdf4; }
.bg-purple-50 { background-color: #faf5ff; }
.bg-yellow-50 { background-color: #fefce8; }

.text-blue-600 { color: #2563eb; }
.text-green-600 { color: #16a34a; }
.text-purple-600 { color: #9333ea; }
.text-yellow-600 { color: #ca8a04; }

.bg-gradient-to-r { background-size: cover; }
.from-blue-50 { background: linear-gradient(to right, #eff6ff, white); }
.from-green-50 { background: linear-gradient(to right, #f0fdf4, white); }

.rounded-xl { border-radius: var(--radius-xl) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }
.shadow-glass { box-shadow: var(--shadow-glass); }

/* --- Aerated Spacing (Alan.com Style) --- */
.py-10 { padding-top: 8rem !important; padding-bottom: 8rem !important; }
.py-12 { padding-top: 10rem !important; padding-bottom: 10rem !important; }
.py-15 { padding-top: 12rem !important; padding-bottom: 12rem !important; }

@media (max-width: 767px) {
    .py-10 { padding-top: 4rem !important; padding-bottom: 4rem !important; }
    .py-12 { padding-top: 5rem !important; padding-bottom: 5rem !important; }
    .py-15 { padding-top: 6rem !important; padding-bottom: 6rem !important; }
}

/* --- Overrides for legacy classes --- */

.heading-block h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 700;
}

.button, .btn {
    border-radius: var(--radius-lg) !important;
}

/* --- Modern Scroll to Top (Back to Top) --- */
#gotoTop {
    display: flex !important;
    align-items: center;
    justify-content: center;
    right: auto !important;
    left: 20px !important;
    bottom: 30px !important;
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%) !important;
    color: #fff !important;
    border-radius: 16px !important; /* Premium rounded corner */
    width: 52px !important;
    height: 52px !important;
    box-shadow: 0 10px 25px -5px rgba(22, 163, 74, 0.4), 
                0 8px 10px -6px rgba(22, 163, 74, 0.4),
                inset 0 1px 1px rgba(255, 255, 255, 0.2) !important;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 999;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(8px);
}

#gotoTop i, #gotoTop svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

#gotoTop:hover {
    background: linear-gradient(135deg, #15803d 0%, #14532d 100%) !important;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 35px -5px rgba(22, 163, 74, 0.5) !important;
}

#gotoTop:hover i, #gotoTop:hover svg {
    transform: translateY(-2px);
}

#gotoTop:active {
    transform: translateY(0) scale(0.95);
}

/* Tooltip style */
#gotoTop::after {
    content: 'Haut';
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 12px;
    padding: 6px 12px;
    background: #111827;
    color: white;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(10px);
    pointer-events: none;
}

#gotoTop:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* --- PRO Landing Page Styles --- */
#page-title.pro-header {
    background-color: var(--primary-green);
    padding: 60px 0;
    border-bottom: 0;
    margin-top: 0; 
}
#page-title.pro-header h1 {
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 10px;
}
#page-title.pro-header span {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
}

.section-pro {
    padding: 80px 0;
    background-color: #f8fafc;
}

.feature-box-pro {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    height: 100%;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}
.feature-box-pro:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.img-pro {
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    max-width: 100%;
    height: auto;
}

/* Buttons Pro */
.btn-mulema {
    background-color: var(--primary-green) !important;
    color: #fff !important;
    padding: 12px 30px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    border: none !important;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}
.btn-mulema:hover {
    background-color: var(--primary-light) !important;
    transform: translateY(-2px);
}

.btn-mulema-blue {
    background-color: #1e40af !important;
    color: #fff !important;
    padding: 12px 30px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    border: none !important;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 767px) {
    .section-pro { padding: 50px 0; }
    .pro-reverse { display: flex; flex-direction: column-reverse; }
}

/* --- Generic Hover Effects --- */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg) !important;
}

/* --- Green Nav Pills --- */
.nav-pills .nav-link {
    color: var(--text-muted);
    background-color: white;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.nav-pills .nav-link:hover {
    color: var(--primary-green);
    border-color: var(--primary-green);
    background-color: #f0fdf4;
}

.nav-pills .nav-link.active {
    background-color: var(--primary-green) !important;
    color: white !important;
    border-color: var(--primary-green) !important;
    box-shadow: var(--shadow-md);
}

/* --- Partner Cards --- */
.card .inline-icon {
    vertical-align: text-bottom;
}
.card .btn-outline-primary {
    color: var(--primary-green);
    border-color: var(--primary-green);
    transition: all 0.3s ease;
}
.card .btn-outline-primary:hover {
    background-color: var(--primary-green);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(89, 186, 65, 0.3);
}

/* Animation Delays for Staggered Entrance */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

/* ═══ ABOUT PAGE — Dribbble Premium Components ═══ */

.about-stats-bar {
    background: var(--neutral-900);
    position: relative;
    overflow: hidden;
}

.about-stats-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top, rgba(44,119,68,0.12) 0%, transparent 60%);
    pointer-events: none;
}

.stat-glass-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-xl);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-glass-card:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(44,119,68,0.3);
    transform: translateY(-3px);
}

.stat-glass-card .stat-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, rgba(44,119,68,0.2), rgba(52,211,153,0.1));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-400);
    transition: transform 0.3s ease;
}

.stat-glass-card:hover .stat-icon {
    transform: scale(1.1);
}

.stat-glass-card .stat-value {
    font-size: 2.25rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.stat-glass-card .stat-label {
    font-size: 0.85rem;
    color: var(--neutral-400);
    font-weight: 500;
}

/* Pillar Cards (Mission/Vision/Values) */
.pillar-card {
    background: linear-gradient(to bottom, var(--neutral-100), white);
    border: 1px solid var(--neutral-200);
    border-radius: 2rem;
    padding: 2.5rem;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.pillar-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -10px rgba(44,119,68,0.12);
}

.pillar-card-elevated {
    background: linear-gradient(135deg, var(--primary-500), #059669);
    border: none;
    box-shadow: 0 20px 40px -10px rgba(44,119,68,0.35);
    color: white;
}

.pillar-card-elevated:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -10px rgba(44,119,68,0.45);
}

.pillar-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.pillar-card:hover .pillar-icon {
    transform: scale(1.1);
}

/* Glassmorphism Float Badges */
.glass-float-badge {
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: var(--radius-lg);
    padding: 0.75rem 1rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.glass-float-badge .badge-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.gradient-icon-green {
    background: linear-gradient(135deg, var(--primary-500), #059669);
    box-shadow: 0 4px 12px rgba(44,119,68,0.3);
}

.gradient-icon-blue {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 4px 12px rgba(59,130,246,0.3);
}

.gradient-icon-purple {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    box-shadow: 0 4px 12px rgba(139,92,246,0.3);
}

.gradient-icon-amber {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 4px 12px rgba(245,158,11,0.3);
}

/* Gradient Text Utility */
.text-gradient-green {
    background: linear-gradient(135deg, var(--primary-500), #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Solution Cards (About page) */
.solution-card {
    border-radius: 2rem;
    padding: 2.5rem;
    border: 1px solid transparent;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.solution-card:hover {
    transform: translateY(-5px);
}

.solution-card-green {
    background: linear-gradient(to bottom, rgba(240,253,244,0.8), white);
    border-color: rgba(187,247,208,0.6);
}
.solution-card-green:hover { box-shadow: 0 20px 40px -10px rgba(22,163,74,0.12); }

.solution-card-purple {
    background: linear-gradient(to bottom, rgba(250,245,255,0.8), white);
    border-color: rgba(216,180,254,0.4);
}
.solution-card-purple:hover { box-shadow: 0 20px 40px -10px rgba(147,51,234,0.12); }

.solution-card-blue {
    background: linear-gradient(to bottom, rgba(239,246,255,0.8), white);
    border-color: rgba(147,197,253,0.5);
}
.solution-card-blue:hover { box-shadow: 0 20px 40px -10px rgba(59,130,246,0.12); }

.solution-card-amber {
    background: linear-gradient(to bottom, rgba(255,251,235,0.8), white);
    border-color: rgba(253,224,71,0.5);
}
.solution-card-amber:hover { box-shadow: 0 20px 40px -10px rgba(202,138,4,0.12); }

.solution-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.solution-card:hover .solution-icon {
    transform: scale(1.1);
}

/* Timeline */
.timeline-section {
    background: var(--neutral-900);
    position: relative;
    overflow: hidden;
}

.timeline-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at bottom left, rgba(44,119,68,0.08) 0%, transparent 60%);
    pointer-events: none;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, rgba(44,119,68,0.5), rgba(44,119,68,0.15), transparent);
    transform: translateX(-1px);
}

@media (max-width: 767px) {
    .timeline-line {
        left: 32px;
    }
}

.timeline-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-500), #059669);
    border: 4px solid var(--neutral-900);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 16px rgba(44,119,68,0.3);
}

@media (max-width: 767px) {
    .timeline-dot {
        left: 32px;
    }
}

.timeline-dot-inner {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

.timeline-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.timeline-card:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(44,119,68,0.3);
    transform: translateY(-3px);
}

.timeline-year {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-400), #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* CTA Gradient Section */
.cta-gradient {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-500), #059669, var(--primary-700));
}

.cta-gradient::before,
.cta-gradient::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.cta-gradient::before {
    width: 400px;
    height: 400px;
    top: -80px;
    left: 20%;
    background: rgba(255,255,255,0.08);
    filter: blur(80px);
}

.cta-gradient::after {
    width: 350px;
    height: 350px;
    bottom: -60px;
    right: 20%;
    background: rgba(52,211,153,0.15);
    filter: blur(60px);
}

.cta-gradient .cta-content {
    position: relative;
    z-index: 1;
}

/* Bento Icon Wrapper (used in About solutions) */
.bento-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* Tag badge (About page) */
.bento-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Mini badge grid (story section) */
.mini-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--neutral-200);
    transition: all 0.2s ease;
}

.mini-badge:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.mini-badge .mini-badge-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

/* Story glassmorphism overlay */
.story-overlay-stats {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-lg);
}

/* ═══ ACCESSIBILITY - Global Focus Ring ═══ 
   Visible focus indicator for keyboard navigation.
   Uses :focus-visible to avoid showing on mouse clicks. */
:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
    border-radius: 4px;
}

:focus:not(:focus-visible) {
    outline: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

/* ═══ ACCESSIBILITY - Anti-Fatigue Utilities ═══ */
.text-accessible {
    color: var(--text-main);
}

.text-heading-accessible {
    color: var(--text-heading);
}

.text-muted-accessible {
    color: var(--text-muted);
}

.text-brand {
    color: var(--primary-600);
}

/* Override dangerous opacity patterns on text */
.text-safe-muted {
    color: var(--neutral-600) !important;
    opacity: 1 !important;
}

/* ═══ ACCESSIBILITY - Minimum Font Sizes ═══ */
@media screen {
    .a11y-text, .a11y-label {
        font-size: max(0.875rem, 14px);
    }
}

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

/* ═══ ACCESSIBILITY - High Contrast Mode ═══ */
@media (prefers-contrast: high) {
    :root {
        --text-main: #1C1917;
        --text-heading: #0B2415;
        --text-muted: #44403C;
        --bg-body: #FFFFFF;
    }

    .bento-card,
    .hero-card,
    .feature-box-pro {
        border-width: 2px;
        border-color: var(--neutral-400);
    }
}

/* ═══ ACCESSIBILITY - Dark Color Scheme Hint ═══ */
@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: light;
    }
}

