/*
Theme Name: MyAIEmployee
Theme URI: https://myaiemployee.site
Author: MyAIEmployee
Author URI: https://myaiemployee.site
Description: A modern, professional WordPress theme for MyAIEmployee — an AI-powered SaaS platform that provides intelligent virtual employees to automate your business workflows.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: myaiemployee
Tags: one-column, full-width-template, custom-menu, custom-logo, featured-images, theme-options
*/

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
    --mae-primary: #2563EB;
    --mae-primary-dark: #1D4ED8;
    --mae-primary-light: #3B82F6;
    --mae-secondary: #7C3AED;
    --mae-secondary-dark: #6D28D9;
    --mae-accent: #06B6D4;
    --mae-accent-dark: #0891B2;
    --mae-success: #10B981;
    --mae-warning: #F59E0B;
    --mae-danger: #EF4444;
    --mae-dark: #0F172A;
    --mae-dark-alt: #1E293B;
    --mae-gray-900: #111827;
    --mae-gray-800: #1F2937;
    --mae-gray-700: #374151;
    --mae-gray-600: #4B5563;
    --mae-gray-500: #6B7280;
    --mae-gray-400: #9CA3AF;
    --mae-gray-300: #D1D5DB;
    --mae-gray-200: #E5E7EB;
    --mae-gray-100: #F3F4F6;
    --mae-gray-50: #F9FAFB;
    --mae-white: #FFFFFF;
    --mae-bg: #F8FAFC;
    --mae-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --mae-font-heading: 'Plus Jakarta Sans', var(--mae-font-sans);
    --mae-font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --mae-shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
    --mae-shadow: 0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1);
    --mae-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --mae-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --mae-shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --mae-radius-sm: 6px;
    --mae-radius: 8px;
    --mae-radius-md: 12px;
    --mae-radius-lg: 16px;
    --mae-radius-xl: 24px;
    --mae-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--mae-font-sans);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--mae-gray-700);
    background-color: var(--mae-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--mae-primary);
    text-decoration: none;
    transition: color var(--mae-transition);
}

a:hover {
    color: var(--mae-primary-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--mae-font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--mae-dark);
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

ul, ol {
    list-style: none;
}

/* ============================================
   LAYOUT
   ============================================ */
.mae-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.mae-container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.mae-section {
    padding: 5rem 0;
}

.mae-section-sm {
    padding: 3rem 0;
}

.mae-section-lg {
    padding: 7rem 0;
}

/* ============================================
   HEADER / NAV
   ============================================ */
.mae-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--mae-gray-200);
    transition: all var(--mae-transition);
}

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

.mae-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.mae-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.mae-logo img {
    height: 40px;
    width: auto;
}

.mae-logo-text {
    font-family: var(--mae-font-heading);
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--mae-dark);
    letter-spacing: -0.03em;
}

.mae-logo-text span {
    color: var(--mae-primary);
}

.mae-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.mae-nav-list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mae-nav a {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--mae-gray-600);
    border-radius: var(--mae-radius);
    transition: all var(--mae-transition);
}

.mae-nav a:hover,
.mae-nav a.current-menu-item > a,
.mae-nav .current_page_item a {
    color: var(--mae-primary);
    background: rgba(37, 99, 235, 0.06);
}

.mae-nav-cta {
    margin-left: 0.75rem;
}

.mae-nav-cta a {
    display: inline-flex !important;
    align-items: center;
    padding: 0.625rem 1.5rem !important;
    background: var(--mae-primary) !important;
    color: var(--mae-white) !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    letter-spacing: 0.01em;
    transition: all var(--mae-transition) !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.mae-nav-cta a:hover {
    background: var(--mae-primary-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

/* Mobile menu toggle */
.mae-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mae-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--mae-dark);
    border-radius: 2px;
    transition: all var(--mae-transition);
}

.mae-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mae-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mae-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   BUTTONS
   ============================================ */
.mae-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    font-family: var(--mae-font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--mae-transition);
    text-decoration: none;
    white-space: nowrap;
}

.mae-btn-primary {
    background: var(--mae-primary);
    color: var(--mae-white);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.mae-btn-primary:hover {
    background: var(--mae-primary-dark);
    color: var(--mae-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.mae-btn-secondary {
    background: transparent;
    color: var(--mae-primary);
    border-color: var(--mae-primary);
}

.mae-btn-secondary:hover {
    background: var(--mae-primary);
    color: var(--mae-white);
    transform: translateY(-2px);
}

.mae-btn-white {
    background: var(--mae-white);
    color: var(--mae-primary);
    box-shadow: var(--mae-shadow);
}

.mae-btn-white:hover {
    background: var(--mae-gray-50);
    color: var(--mae-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--mae-shadow-md);
}

.mae-btn-lg {
    padding: 1rem 2.25rem;
    font-size: 1.0625rem;
}

.mae-btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.8125rem;
}

/* ============================================
   FOOTER
   ============================================ */
.mae-footer {
    background: var(--mae-dark);
    color: var(--mae-gray-400);
    padding: 5rem 0 0;
}

.mae-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 3rem;
    padding-bottom: 3rem;
}

.mae-footer-brand p {
    margin-top: 1rem;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--mae-gray-400);
    max-width: 300px;
}

.mae-footer-brand .mae-logo-text {
    color: var(--mae-white);
}

.mae-footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.mae-footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--mae-dark-alt);
    color: var(--mae-gray-400);
    transition: all var(--mae-transition);
}

.mae-footer-social a:hover {
    background: var(--mae-primary);
    color: var(--mae-white);
}

.mae-footer h4 {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--mae-gray-200);
    margin-bottom: 1.25rem;
}

.mae-footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mae-footer-links a {
    color: var(--mae-gray-400);
    font-size: 0.9375rem;
    transition: all var(--mae-transition);
}

.mae-footer-links a:hover {
    color: var(--mae-white);
    padding-left: 4px;
}

.mae-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.mae-footer-bottom p {
    font-size: 0.875rem;
    margin: 0;
}

.mae-footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.mae-footer-bottom-links a {
    font-size: 0.875rem;
    color: var(--mae-gray-400);
}

.mae-footer-bottom-links a:hover {
    color: var(--mae-white);
}

/* ============================================
   CONTENT PAGES
   ============================================ */
.mae-page-header {
    background: linear-gradient(135deg, var(--mae-dark) 0%, var(--mae-dark-alt) 100%);
    padding: 7rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.mae-page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(37,99,235,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.mae-page-header::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -20%;
    width: 50%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(124,58,237,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.mae-page-header h1 {
    color: var(--mae-white);
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.mae-page-header p {
    color: var(--mae-gray-400);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.mae-page-content {
    padding: 4rem 0;
}

.mae-page-content .mae-container {
    max-width: 800px;
}

.mae-page-content h2 {
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem;
}

.mae-page-content h3 {
    font-size: 1.25rem;
    margin: 2rem 0 0.75rem;
}

.mae-page-content p {
    margin-bottom: 1.25rem;
}

.mae-page-content ul,
.mae-page-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.mae-page-content ul {
    list-style: disc;
}

.mae-page-content ol {
    list-style: decimal;
}

.mae-page-content li {
    margin-bottom: 0.5rem;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.mae-text-center { text-align: center; }
.mae-text-left { text-align: left; }
.mae-text-right { text-align: right; }
.mae-text-gradient {
    background: linear-gradient(135deg, var(--mae-primary) 0%, var(--mae-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mae-mb-0 { margin-bottom: 0; }
.mae-mb-1 { margin-bottom: 0.5rem; }
.mae-mb-2 { margin-bottom: 1rem; }
.mae-mb-3 { margin-bottom: 1.5rem; }
.mae-mb-4 { margin-bottom: 2rem; }

.mae-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 1rem;
    background: rgba(37, 99, 235, 0.08);
    color: var(--mae-primary);
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 50px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.mae-section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3.5rem;
}

.mae-section-header h2 {
    margin-bottom: 1rem;
}

.mae-section-header p {
    font-size: 1.0625rem;
    color: var(--mae-gray-500);
}

/* Admin bar offset */
.admin-bar .mae-header {
    top: 32px;
}

body {
    padding-top: 80px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .mae-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .mae-menu-toggle {
        display: flex;
    }

    .mae-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 380px;
        height: 100vh;
        background: var(--mae-white);
        flex-direction: column;
        align-items: flex-start;
        padding: 6rem 2rem 2rem;
        gap: 0.125rem;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        transition: right var(--mae-transition);
        z-index: 999;
        overflow-y: auto;
    }

    .mae-nav.active {
        right: 0;
    }

    .mae-nav-list {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .mae-nav a {
        width: 100%;
        padding: 0.875rem 1rem;
        font-size: 1rem;
    }

    .mae-nav-cta {
        margin-left: 0;
        margin-top: 1rem;
        width: 100%;
    }

    .mae-nav-cta a {
        width: 100% !important;
        justify-content: center !important;
    }

    .mae-footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .mae-footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .mae-section {
        padding: 3.5rem 0;
    }

    .mae-section-lg {
        padding: 4.5rem 0;
    }

    body {
        padding-top: 70px;
    }

    .mae-header-inner {
        height: 70px;
    }

    .mae-page-header {
        padding: 5.5rem 0 3rem;
    }
}

@media (max-width: 480px) {
    .mae-container {
        padding: 0 1rem;
    }

    h1 { font-size: 1.875rem; }
    h2 { font-size: 1.5rem; }
}

/* ============================================
   OVERLAY
   ============================================ */
.mae-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all var(--mae-transition);
}

.mae-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
.mae-scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background: var(--mae-primary);
    color: var(--mae-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--mae-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--mae-transition);
    z-index: 99;
}

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

.mae-scroll-top:hover {
    background: var(--mae-primary-dark);
    transform: translateY(-3px);
}
