/*
Theme Name: ClonePartner Enterprise
Author: ClonePartner Team
Description: High-performance enterprise theme for Data Migration Tools.
Version: 1.0
*/

/* --- 1. ENTERPRISE VARIABLES --- */
:root {
    /* Color Palette: Slate (Professional, Neutral) */
    --bg-body: #f8fafc;
    --bg-surface: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-light: #e2e8f0;
    
    /* Brand Colors */
    --primary: #0f172a;       /* Dark Navy */
    --primary-hover: #334155;
    --accent: #2563eb;        /* Trust Blue */
    --accent-light: #eff6ff;
    
    /* Structural */
    --radius: 12px;
    --font-ui: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --max-width: 1200px;
    --header-height: 72px;
    
    /* Elevation */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-card: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-hover: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* --- 2. GLOBAL RESET --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-body);
    /* Subtle grid pattern for technical feel */
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 32px 32px;
    font-family: var(--font-ui);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: #0066cc; transition: 0.2s; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* --- 3. LAYOUT COMPONENTS --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography Scale */
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; color: var(--text-main); }
h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }
p { color: var(--text-muted); margin-bottom: 24px; font-size: 1.1rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

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

.btn-secondary {
    background: white;
    border: 1px solid var(--border-light);
    color: var(--text-main);
}
.btn-secondary:hover { border-color: var(--text-muted); }

/* --- 4. HEADER (Glassmorphism) --- */
.site-header {
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
}

.header-inner {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
}
.brand-mark {
    width: 32px; height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono); font-size: 14px;
}

/* Navigation */
.main-nav ul { display: flex; gap: 32px; }
.main-nav a { font-size: 0.95rem; font-weight: 500; color: var(--text-muted); }
.main-nav a:hover { color: var(--primary); }
.main-nav .current-menu-item a { color: var(--primary); font-weight: 600; }

/* --- 5. CARDS (Used for Tools & Blog) --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.ent-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 32px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ent-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: #cbd5e1;
}

.card-icon {
    width: 48px; height: 48px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

/* --- 6. FOOTER --- */
.site-footer {
    background: white;
    border-top: 1px solid var(--border-light);
    padding: 60px 0 30px;
    margin-top: 80px;
}

/* --- RESPONSIVE MENU FIX (V2) --- */

/* 1. Desktop: FORCE HIDE (High Specificity) */
body .site-header .menu-toggle {
    display: none !important;
}

/* 2. Mobile: SHOW (Max-Width 768px) */
@media (max-width: 768px) {
    
    body .site-header .menu-toggle {
        display: block !important;
        background: transparent;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: var(--text-main);
        margin-left: auto; /* Pushes it to the right */
    }
    
    /* Hide the normal menu links on mobile */
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border-bottom: 1px solid var(--border-light);
        padding: 24px;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    }

    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
}