/*
Theme Name: ASCloud Premium
Theme URI: https://ascloud.com.br
Author: Alexandre Sene
Description: Tema premium focado em serviços corporativos, infraestrutura cloud e base de conhecimento.
Version: 1.0.0
Text Domain: ascloud
*/

:root {
    --color-primary: #6A1B9A;
    --color-primary-dark: #4E0078;
    --color-surface: #F9F9F9;
    --color-surface-lowest: #FFFFFF;
    --color-text-main: #1A1C1C;
    --color-text-muted: #4D4351;
    --color-border: #E0E0E5;
    
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-body);
    background-color: var(--color-surface);
    color: var(--color-text-main);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-text-main);
    letter-spacing: -0.02em;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Glassmorphism Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    padding: 20px 0;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--color-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.custom-logo-link img {
    max-height: 48px; /* Ajusta o tamanho da imagem do logo para caber na navegação */
    width: auto;
    display: block;
}

.primary-menu {
    list-style: none;
    display: flex;
    gap: 32px;
}

.primary-menu a {
    text-decoration: none;
    color: var(--color-text-main);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
    border: 1px solid var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
}

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

.btn-secondary:hover {
    border-color: var(--color-primary);
}

/* Hero Section */
.hero-section {
    padding: 160px 0 100px;
    background: radial-gradient(circle at top right, rgba(106, 27, 154, 0.05), transparent),
                radial-gradient(circle at bottom left, rgba(106, 27, 154, 0.02), transparent);
    background-color: var(--color-surface-lowest);
    border-bottom: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    opacity: 0.2;
}

.hero-title {
    font-size: 64px;
    line-height: 1.05;
    margin-bottom: 28px;
    max-width: 900px;
    background: linear-gradient(135deg, var(--color-text-main) 0%, #444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 22px;
    color: var(--color-text-muted);
    margin-bottom: 48px;
    max-width: 650px;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

/* Services */
.services-section {
    padding: 100px 24px;
}

.section-title {
    font-size: 36px;
    margin-bottom: 48px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.service-card {
    background: var(--color-surface-lowest);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(106, 27, 154, 0.08);
    border-color: rgba(106, 27, 154, 0.2);
}

.service-card h3 {
    color: var(--color-primary);
    margin-bottom: 16px;
    font-size: 20px;
}

/* Formulários e Contact Form 7 */
.wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(106, 27, 154, 0.1);
}

.wpcf7-submit {
    background: var(--color-primary);
    color: #fff;
    padding: 16px 32px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.wpcf7-submit:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

/* Footer */
.site-footer {
    background-color: var(--color-surface-lowest);
    border-top: 1px solid var(--color-border);
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-widget h4 {
    margin-bottom: 20px;
}

.text-center { text-align: center; }
.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 20px;
    font-size: 14px;
    color: var(--color-text-muted);
}

/* Base de Conhecimento: Filtros e Busca */
.kb-search-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 8px 20px rgba(106, 27, 154, 0.15) !important;
}

.filter-tag {
    display: inline-block;
    padding: 8px 18px;
    background: #f0f0f5;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.2s ease;
}

.filter-tag:hover {
    background: #e5e5f0;
    color: var(--color-primary);
}

.filter-tag.active {
    background: var(--color-primary);
    color: #fff;
}

.kb-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kb-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-color: var(--color-primary) !important;
}

.contact-grid-wrapper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

/* ==========================================================================
   RESPONSIVIDADE (MOBILE-FIRST ADAPTATIONS)
   ========================================================================== */

@media (max-width: 1024px) {
    .container {
        padding: 0 24px;
    }
}

@media (max-width: 768px) {
    /* Ajustes Gerais */
    h1 { font-size: 32px !important; }
    h2 { font-size: 28px !important; }
    
    /* Home Hero */
    .hero-section { padding: 60px 0; text-align: center; }
    .hero-title { font-size: 36px !important; }
    .hero-actions { flex-direction: column; gap: 15px; }

    /* Grids da Home */
    .solutions-grid, .services-grid, .news-grid {
        grid-template-columns: 1fr !important;
    }

    /* PÁGINA DE CONTATO */
    .contact-main-grid > div {
        grid-template-columns: 1fr !important; 
    }
    
    .contact-main-grid {
        margin-top: -40px !important;
    }
    
    .form-container-card {
        padding: 30px !important;
    }

    .info-stack {
        grid-template-columns: 1fr !important;
    }

    /* Base de Conhecimento */
    .kb-article-layout {
        grid-template-columns: 1fr !important;
    }
    
    .kb-sidebar {
        position: static !important;
        margin-top: 40px;
    }

    /* Seção de Filtros (KB Archive) */
    .kb-filter-row {
        flex-direction: column;
        align-items: stretch !important;
    }
}
