/* ===================================
   AUTOMOTIVON CENTRAL DE AJUDA
   Design System
   =================================== */

:root {
    /* Colors - Automotivon Brand */
    --color-primary: #FF6B00;
    --color-primary-dark: #E55A00;
    --color-primary-light: #FF8533;

    /* Background */
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --bg-card-hover: #1a1a1a;
    --bg-sidebar: #0f0f0f;

    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;

    /* Border */
    --border-color: #2a2a2a;
    --border-radius: 12px;
    --border-radius-sm: 8px;

    /* Spacing */
    --header-height: 70px;
    --sidebar-width: 280px;

    /* Transitions */
    --transition: all 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

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

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

ul {
    list-style: none;
}

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   HEADER
   =================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(10, 10, 10, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
}

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

.nav-links a {
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

/* ===================================
   MAIN LAYOUT
   =================================== */

.main-layout {
    display: flex;
    min-height: calc(100vh - var(--header-height));
    padding-top: var(--header-height);
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: var(--header-height);
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height));
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    padding: 24px 16px;
    overflow-y: auto;
}

.sidebar-section {
    margin-bottom: 24px;
}

.sidebar-section h3 {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-section h3 i {
    font-size: 14px;
    color: var(--color-primary);
}

.sidebar-section ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    transition: var(--transition);
}

.sidebar-section ul li a:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.sidebar-section ul li a.active {
    background: var(--color-primary);
    color: var(--text-primary);
}

.sidebar-section ul li a i {
    width: 16px;
    text-align: center;
}

/* Content */
.content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 40px;
    max-width: calc(100% - var(--sidebar-width));
}

.content-header {
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.content-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.content-header .subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.content-header .last-update {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ===================================
   CARDS GRID
   =================================== */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 28px;
    transition: var(--transition);
    text-decoration: none;
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: var(--color-primary);
    transform: translateY(-4px);
}

.card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-icon i {
    font-size: 24px;
    color: white;
}

.card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.card-link {
    font-size: 0.9rem;
    color: var(--color-primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card:hover .card-link {
    gap: 10px;
}

/* ===================================
   INFO SECTION
   =================================== */

.info-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 32px;
    margin-bottom: 40px;
}

.info-section h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.info-section p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===================================
   LEGAL CONTENT
   =================================== */

.legal-content {
    max-width: 900px;
}

.legal-content section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 32px;
    margin-bottom: 24px;
}

.legal-content h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.legal-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 20px 0 12px;
    color: var(--text-primary);
}

.legal-content p {
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.8;
}

.legal-content ul {
    margin: 16px 0;
    padding-left: 24px;
}

.legal-content ul li {
    color: var(--text-secondary);
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
    line-height: 1.6;
}

.legal-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
}

.legal-content strong {
    color: var(--text-primary);
}

/* Email highlight box */
.email-highlight-box {
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.email-highlight-box .email-label {
    margin-bottom: 0.75rem;
}

.email-highlight-box .email-address {
    font-size: 1.25rem;
    font-weight: 700;
    color: #6366f1;
    margin-bottom: 1rem;
}

.email-highlight-box .email-label i {
    color: #6366f1;
    margin-right: 6px;
}

.legal-content em {
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 1rem;
    display: inline-block;
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    background: var(--bg-sidebar);
    border-top: 1px solid var(--border-color);
    margin-left: var(--sidebar-width);
    padding: 48px 40px 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    margin-bottom: 32px;
}

.footer-brand .footer-logo {
    height: 36px;
    margin-bottom: 12px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-info h4,
.footer-links h4 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.footer-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.footer-info i {
    margin-right: 8px;
    color: var(--color-primary);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition);
}

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

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Canais de Atendimento */
.contact-channels {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 12px;
}

.contact-channels .channel-row {
    display: flex;
    align-items: center;
    gap: 0;
}

.contact-channels a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e5e5e5;
    text-decoration: none;
    font-size: 14px;
}

.contact-channels a:hover {
    color: var(--color-primary);
}

.contact-channels .icon {
    color: var(--color-primary);
    width: 18px;
    text-align: center;
}

.contact-channels .whatsapp-link {
    display: inline-flex;
    align-items: center;
    margin-left: 4px;
    color: #25D366;
    font-size: 18px;
}

.contact-channels .whatsapp-link:hover {
    color: #128C7E;
}

.contact-channels .whatsapp-link i {
    color: #25D366;
    font-size: 18px;
}

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

@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        z-index: 999;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .content {
        margin-left: 0;
        max-width: 100%;
        padding: 24px 20px;
    }

    .footer {
        margin-left: 0;
        padding: 40px 20px 20px;
    }
}

@media (max-width: 768px) {
    .content-header h1 {
        font-size: 1.6rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .legal-content section {
        padding: 24px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0 16px;
    }

    .logo-img {
        height: 32px;
    }

    .content {
        padding: 20px 16px;
    }

    .content-header h1 {
        font-size: 1.4rem;
    }
}