/* ==========================================================================
Variáveis e Configurações Básicas
========================================================================== */
:root {
    /* Cores */
    --color-primary: #93c572;     /* Verde principal */
    --color-primary-dark: #7ab555;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-white: #ffffff;
    --color-border: #eeeeee;
    --color-bg-light: #f8f8f8;
    --color-success: #28a745;
    --color-error: #dc3545;
    /* Tipografia */
    --font-primary: 'Source Sans Pro', sans-serif;
    --font-heading: 'Playfair Display', serif;
    /* Layout */
    --container-max-width: 1200px;
    --section-spacing: 2rem;
    /* Outros */
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
Reset e Estilos Base
========================================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
Layout e Container
========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 2rem;
}

/* ==========================================================================
Header
========================================================================== */
.suporte-header {
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.logo:hover {
    color: var(--color-primary-dark);
}

.logo i {
    color: #e74c3c;
    font-size: 1.2rem;
}

.voltar-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    background-color: var(--color-bg-light);
}

.voltar-btn:hover {
    color: var(--color-primary);
    transform: translateX(-5px);
    background-color: var(--color-border);
}

/* ==========================================================================
Seção Hero
========================================================================== */
.suporte-hero {
    text-align: center;
    padding: 3rem 1rem;
    margin-bottom: 2rem;
    background-color: var(--color-bg-light);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.suporte-hero h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.suporte-hero p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    color: var(--color-text);
}

/* ==========================================================================
Cartões de Opções
========================================================================== */
.suporte-opcoes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.opcao-card {
    padding: 2rem;
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.opcao-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.opcao-card i {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.opcao-card h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.opcao-card p {
    margin-bottom: 1.5rem;
    color: var(--color-text-light);
}

/* ==========================================================================
Botões
========================================================================== */
.btn {
    padding: 0.2rem 1.2rem;
    border: 2px solid var(--color-primary-dark);
  
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-white);
    min-height: 30px;
}

.btn:hover {
    background: transparent;
    color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(147, 197, 114, 0.2);
}

.form-submit-container {
    text-align: center;
    margin-top: 1.5rem;
}

/* ==========================================================================
Seções de Conteúdo
========================================================================== */
.suporte-conteudo {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: var(--box-shadow);
    display: none;
}

.suporte-conteudo h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    text-align: center;
}

/* ==========================================================================
FAQ
========================================================================== */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.faq-pergunta {
    padding: 1rem;
    background-color: var(--color-bg-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
    min-height: 3.5rem;
}

.faq-pergunta:hover {
    background-color: rgba(147, 197, 114, 0.1);
}

.faq-pergunta h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--color-text);
    padding-right: 1rem;
}

.faq-pergunta i {
    transition: transform 0.2s ease;
    flex-shrink: 0;
    font-size: 0.9rem;
    color: var(--color-primary);
}

.faq-resposta {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                padding 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: var(--color-white);
    opacity: 0;
}

.faq-resposta p {
    padding: 1rem 0;
    color: var(--color-text-light);
}

.faq-item.ativo .faq-resposta {
    padding: 0 1rem;
    max-height: 300px;
    opacity: 1;
}

.faq-item.ativo .faq-pergunta i {
    transform: rotate(180deg);
}

/* ==========================================================================
Formulário
========================================================================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    font-family: var(--font-primary);
    color: var(--color-text);
    background-color: var(--color-bg-light);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(147, 197, 114, 0.1);
}

/* Loading indicator */
#loading {
    text-align: center;
    padding: 2rem;
    display: none;
}

#loading i {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
Seção de Contatos
========================================================================== */
.contato-container {
    display: flex;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.contato-item {
    text-align: center;
    padding: 2rem;
    border-radius: var(--border-radius);
    background-color: var(--color-bg-light);
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    width: 100%;
    max-width: 400px;
}

.contato-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.contato-item i {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.contato-item h3 {
    margin-bottom: 1rem;
    color: var(--color-text);
    font-size: 1.3rem;
}

.contato-item p {
    color: var(--color-text-light);
}

.contato-item a {
    color: var(--color-primary);
    font-weight: 500;
    font-size: 1.1rem;
}

.contato-item a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* ==========================================================================
Footer
========================================================================== */
.suporte-footer {
    background-color: var(--color-bg-light);
    padding: 2rem 0;
    border-top: 1px solid var(--color-border);
    margin-top: 3rem;
}

.footer-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.logo-footer {
    margin-bottom: 1rem;
}

.logo-footer .logo {
    justify-content: center;
    margin: 0 auto;
    display: inline-flex;
}

.footer-bottom {
    text-align: center;
    margin-bottom: 1.5rem;
}

.dedicatoria {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-top: 0.5rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--color-primary);
    border-radius: 50%;
    color: white;
    transition: background-color 0.3s ease;
}

.social-link:hover {
    background-color: var(--color-primary-dark);
    color: white;
}

/* ==========================================================================
Toast Notification
========================================================================== */
.toast {
    position: fixed;
    bottom: 30px;
    right: 20px;
    background-color: var(--color-success);
    color: var(--color-white);
    padding: 12px 24px;
    border-radius: 4px;
    z-index: 1000;
    display: none;
    animation: fadeIn 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.toast.error {
    background-color: var(--color-error);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
Media Queries - Responsividade
========================================================================== */
/* Telas grandes */
@media (max-width: 1200px) {
    .container {
        padding: 2rem 1.5rem;
    }
}

/* Tablets */
@media (max-width: 992px) {
    .suporte-opcoes {
        gap: 1.5rem;
    }
}

/* Tablets pequenos e celulares grandes */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem 1rem;
    }
    
    .suporte-hero {
        padding: 2rem 1rem;
    }
    
    .suporte-hero h1 {
        font-size: 2rem;
    }
    
    .suporte-opcoes {
        grid-template-columns: 1fr;
    }
    
    .opcao-card,
    .suporte-conteudo {
        padding: 1.5rem;
    }
    
    .header-container {
        padding: 0 1rem;
    }
    
    .faq-pergunta {
        padding: 0.8rem;
    }
    
    .faq-pergunta h3 {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    /* Melhorar formulário em telas médias */
    .form-submit-container .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Celulares médios */
@media (max-width: 576px) {
    .faq-pergunta h3 {
        font-size: 0.95rem;
        padding-right: 0.5rem;
    }
    
    .faq-resposta p {
        font-size: 0.9rem;
    }
    
    .logo {
        font-size: 1.4rem;
    }
    
    .voltar-btn {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    .btn {
        padding: 0.2rem 1.2rem;
        font-size: 0.95rem;
       
    }
    
    /* Toast em telas pequenas */
    .toast {
        left: 20px;
        right: 20px;
        text-align: center;
    }
    
    /* Melhorar formulário em telas pequenas */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Evita zoom em iOS */
    }
    
    #loading {
        padding: 1.5rem 1rem;
    }
    
    #loading i {
        font-size: 2rem;
    }
}

/* Celulares pequenos */
@media (max-width: 480px) {
    /* Header em telas muito pequenas */
    .header-container {
        flex-direction: column;
        gap: 0.8rem;
        padding: 0.8rem 1rem;
    }
    
    .logo {
        font-size: 1.3rem;
        margin-bottom: 0.3rem;
    }
    
    .logo i {
        font-size: 1rem;
    }
    
    .voltar-btn {
        width: 100%;
        justify-content: center;
        font-size: 0.85rem;
        padding: 0.4rem 0.7rem;
    }
    
    .suporte-hero h1 {
        font-size: 1.8rem;
    }
    
    .suporte-hero p {
        font-size: 1rem;
    }
    
    .opcao-card {
        padding: 1.5rem 1rem;
    }
    
    .opcao-card i {
        font-size: 2rem;
    }
    
    .opcao-card h2 {
        font-size: 1.3rem;
    }
    
    .faq-pergunta h3 {
        font-size: 0.9rem;
    }
    
    .faq-pergunta i {
        font-size: 0.8rem;
    }
    
    .form-group label {
        font-size: 0.95rem;
    }
    
    /* Ajustes para contato */
    .contato-item {
        padding: 1.5rem 1rem;
    }
    
    .contato-item i {
        font-size: 2rem;
    }
}

/* Dispositivos muito pequenos */
@media (max-width: 360px) {
    .container {
        padding: 1.2rem 0.8rem;
    }
    
    .suporte-hero {
        padding: 1.5rem 0.8rem;
    }
    
    .suporte-hero h1 {
        font-size: 1.6rem;
    }
    
    .suporte-conteudo {
        padding: 1.2rem 0.8rem;
    }
    
    .opcao-card {
        padding: 1.2rem 0.8rem;
    }
}

/* Melhorias para dispositivos de toque */
@media (hover: none) {
    .btn, 
    .faq-pergunta,
    .social-link,
    .opcao-card,
    .contato-item {
        -webkit-tap-highlight-color: transparent;
    }
    
    .faq-pergunta:active {
        background-color: rgba(147, 197, 114, 0.15);
    }
    
    .btn:active {
        transform: scale(0.98);
    }
    
    .social-link:active {
        transform: scale(0.95);
    }
}