/*
Theme Name: ConsultMe
Theme URI: https://consultme.com.br
Author: Jesus Navarro / Moclick
Author URI: https://moclick.com.br
Description: Tema customizado para a plataforma ConsultMe - conecta consultores a clientes.
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: consultme
*/

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

:root {
    --primary: #00B894;
    --primary-dark: #00A383;
    --primary-light: #E8F8F5;
    --text-primary: #2D3436;
    --text-secondary: #636E72;
    --text-muted: #B2BEC3;
    --bg-white: #FFFFFF;
    --bg-light: #F5F6FA;
    --bg-gray: #F0F0F0;
    --border: #DFE6E9;
    --border-light: #E8E8E8;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-primary);
    background: var(--bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.cm-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.cm-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cm-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
}

.cm-logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

.cm-nav-desktop {
    display: flex;
    align-items: center;
    gap: 32px;
}

.cm-nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 0;
    position: relative;
}

.cm-nav-link:hover,
.cm-nav-link.active {
    color: var(--primary);
}

.cm-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.cm-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
    font-family: inherit;
}

.cm-btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(0, 184, 148, 0.3);
}

.cm-btn-primary:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 184, 148, 0.4);
}

.cm-btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.cm-btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.cm-btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 8px 16px;
}

.cm-btn-ghost:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.cm-btn-large {
    padding: 18px 48px;
    font-size: 1.1rem;
    border-radius: var(--radius-lg);
}

.cm-btn-block {
    width: 100%;
}

/* Mobile Menu Toggle */
.cm-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
}

.cm-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.cm-mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-white);
    z-index: 999;
    padding: 32px 24px;
    flex-direction: column;
    gap: 24px;
    overflow-y: auto;
}

.cm-mobile-menu.active {
    display: flex;
}

.cm-mobile-menu .cm-nav-link {
    font-size: 1.2rem;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.cm-mobile-menu .cm-btn {
    justify-content: center;
}

/* ============================================
   HERO SECTION (HOME)
   ============================================ */
.cm-hero {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
}

.cm-hero-inner {
    max-width: 900px;
    text-align: center;
}

.cm-hero-logo {
    margin-bottom: 48px;
}

.cm-hero-logo-img {
    max-width: 320px;
    margin: 0 auto;
}

.cm-hero-cta {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.cm-hero-card {
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px 48px;
    min-width: 280px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.cm-hero-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.cm-hero-card.primary {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 8px 32px rgba(0, 184, 148, 0.3);
}

.cm-hero-card.primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 12px 40px rgba(0, 184, 148, 0.4);
}

.cm-hero-card-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.cm-hero-card.primary .cm-hero-card-title {
    color: white;
}

.cm-hero-card-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-white);
    color: var(--text-primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 2px solid var(--border);
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
}

.cm-hero-card-badge::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--border);
}

/* ============================================
   FORMS & INPUTS
   ============================================ */
.cm-form-section {
    max-width: 560px;
    margin: 0 auto;
    padding: 48px 24px;
}

.cm-form-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 32px;
    color: var(--text-primary);
}

.cm-form-group {
    margin-bottom: 20px;
}

.cm-form-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.cm-form-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-white);
    transition: var(--transition);
    outline: none;
}

.cm-form-input::placeholder {
    color: var(--text-muted);
}

.cm-form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 184, 148, 0.1);
}

.cm-form-input.error {
    border-color: #FF7675;
    background: #FFF5F5;
}

.cm-form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23636E72' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
    cursor: pointer;
}

.cm-custom-select {
    position: relative;
    width: 100%;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-white);
}

.cm-custom-select-header {
    padding: 14px 18px;
    font-size: 1rem;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
}

.cm-custom-select-options {
    list-style: none;
}

.cm-custom-select-options li {
    padding: 14px 18px;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
}

.cm-custom-select-options li:last-child {
    border-bottom: none;
}

.cm-custom-select-options li:hover,
.cm-custom-select-options li.selected {
    background: var(--primary-light);
    color: var(--primary);
}

.cm-custom-select-options li.selected {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

/* ============================================
   STEPPER / PROGRESS
   ============================================ */
.cm-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.cm-step {
    flex: 1;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    transition: var(--transition);
}

.cm-step.active {
    background: var(--primary);
}

.cm-step.completed {
    background: var(--primary-dark);
}

/* ============================================
   SOCIAL LOGIN
   ============================================ */
.cm-social-login {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 24px 0;
    flex-wrap: wrap;
}

.cm-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-white);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.cm-social-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.cm-social-btn svg {
    width: 20px;
    height: 20px;
}

.cm-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.cm-divider::before,
.cm-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ============================================
   PRICING / PLANS
   ============================================ */
.cm-plans-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 24px;
    text-align: center;
}

.cm-plans-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.cm-plans-subtitle {
    color: var(--text-secondary);
    margin-bottom: 48px;
}

.cm-plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.cm-plan-card {
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.cm-plan-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.cm-plan-card.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.cm-plan-card.featured::before {
    content: 'Mais Popular';
    position: absolute;
    top: 16px;
    right: -40px;
    background: var(--primary);
    color: white;
    padding: 4px 40px;
    font-size: 0.75rem;
    font-weight: 700;
    transform: rotate(45deg);
}

.cm-plan-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.cm-plan-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin: 16px 0;
}

.cm-plan-price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.cm-plan-features {
    list-style: none;
    text-align: left;
    margin: 24px 0;
    padding: 0;
}

.cm-plan-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cm-plan-features li::before {
    content: '✓';
    color: var(--primary);
    font-weight: 700;
}

.cm-plan-link {
    display: inline-block;
    margin: 8px 0 24px;
    font-size: 0.85rem;
    color: var(--primary);
    text-decoration: underline;
}

.cm-plan-btn {
    width: 100%;
    margin-top: auto;
}

/* ============================================
   FOOTER
   ============================================ */
.cm-footer {
    background: var(--bg-light);
    border-top: 1px solid var(--border-light);
    padding: 40px 24px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.cm-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.cm-footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.cm-footer-links a {
    color: var(--text-secondary);
}

.cm-footer-links a:hover {
    color: var(--primary);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.cm-text-center { text-align: center; }
.cm-mt-1 { margin-top: 8px; }
.cm-mt-2 { margin-top: 16px; }
.cm-mt-3 { margin-top: 24px; }
.cm-mt-4 { margin-top: 32px; }
.cm-mb-1 { margin-bottom: 8px; }
.cm-mb-2 { margin-bottom: 16px; }
.cm-mb-3 { margin-bottom: 24px; }
.cm-mb-4 { margin-bottom: 32px; }

.cm-hidden { display: none !important; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .cm-nav-desktop {
        display: none;
    }
    
    .cm-header-actions .cm-btn {
        display: none;
    }
    
    .cm-menu-toggle {
        display: flex;
    }
    
    .cm-hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .cm-hero-card {
        min-width: 100%;
        max-width: 320px;
    }
    
    .cm-plans-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .cm-social-login {
        flex-direction: column;
    }
    
    .cm-social-btn {
        width: 100%;
    }
    
    .cm-form-section {
        padding: 32px 16px;
    }
}

@media (max-width: 480px) {
    .cm-header-inner {
        padding: 0 16px;
        height: 64px;
    }
    
    .cm-hero {
        padding: 40px 16px;
    }
    
    .cm-hero-card {
        padding: 32px 24px;
    }
    
    .cm-plan-card {
        padding: 32px 24px;
    }
}