/*
Theme Name: AlphaDelta
Theme URI: https://alphadelta.com.br
Author: AlphaDelta
Description: Tema profissional para AlphaDelta - Soluções Digitais
Version: 1.0.0
License: GPL v2 or later
Text Domain: alphadelta
*/

/* ===== RESET BÁSICO ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    width: 100%;
    overflow-x: hidden;
}

/* ===== UTILITÁRIOS ===== */
.container {
    width: 100%;
    /* max-width: 100vw; */
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Garantir que o conteúdo principal ocupe 100% da largura */
#content {
    width: 100%;
    overflow-x: hidden;
}

/* Reset para elementos que podem estar causando overflow */
img, video, iframe {
    max-width: 100%;
    height: auto;
}

/* ===== HEADER ===== */
/* Remover estilos conflitantes com Tailwind */
.alphadelta-header {
    width: 100% !important;
    max-width: 100% !important;
}

/* Se você está usando Tailwind, esses estilos podem estar conflitando */
.header-top,
.header-main,
.header-content,
.site-logo,
.logo-text,
.main-menu,
.whatsapp-btn,
.mobile-menu-btn,
.mobile-menu {
    /* Se estiver usando Tailwind, remova ou comente estes estilos */
}

/* ===== CONTEÚDO ===== */
.main-content {
    width: 100%;
    padding: 2rem 0;
    min-height: 60vh;
}

/* Estilos para o conteúdo do WordPress */
.entry-content {
    font-size: 1rem;
    line-height: 1.8;
    width: 100%;
    max-width: 100%;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: 600;
    line-height: 1.3;
}

.entry-content h1 { 
    font-size: 2.5rem; 
    line-height: 1.2;
}
.entry-content h2 { 
    font-size: 2rem; 
    line-height: 1.3;
}
.entry-content h3 { 
    font-size: 1.75rem; 
    line-height: 1.4;
}
.entry-content h4 { 
    font-size: 1.5rem; 
    line-height: 1.4;
}
.entry-content h5 { 
    font-size: 1.25rem; 
    line-height: 1.5;
}
.entry-content h6 { 
    font-size: 1rem; 
    line-height: 1.5;
}

.entry-content p {
    margin-bottom: 1.5em;
    font-size: 1.125rem;
    line-height: 1.7;
}

.entry-content a {
    color: #3b82f6;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.entry-content a:hover {
    color: #2563eb;
}

.entry-content ul,
.entry-content ol {
    margin-left: 1.5em;
    margin-bottom: 1.5em;
    padding-left: 1em;
}

.entry-content ul li,
.entry-content ol li {
    margin-bottom: 0.5em;
}

.entry-content blockquote {
    border-left: 4px solid #3b82f6;
    padding-left: 1.5em;
    margin: 2em 0;
    font-style: italic;
    font-size: 1.25rem;
    color: #555;
    background: #f8fafc;
    padding: 1.5em;
    border-radius: 0.5rem;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5em 0;
}

.entry-content figure {
    margin: 2em 0;
}

.entry-content figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.5em;
}

/* ===== FOOTER ===== */
.site-footer {
    background: #1f2937;
    color: white;
    padding: 3rem 0;
    margin-top: 4rem;
    width: 100%;
}

.footer-content {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.footer-copyright {
    margin-bottom: 1.5rem;
    color: #9ca3af;
    font-size: 0.875rem;
}

/* ===== LAYOUT GLOBAL ===== */
.wp-site-blocks {
    width: 100%;
    overflow-x: hidden;
}

main {
    width: 100%;
    overflow-x: hidden;
}

/* Garantir que elementos com position: absolute não causem overflow */
.absolute {
    left: 0;
    right: 0;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .entry-content h1 { 
        font-size: 2rem; 
    }
    .entry-content h2 { 
        font-size: 1.75rem; 
    }
    .entry-content h3 { 
        font-size: 1.5rem; 
    }
    
    .entry-content p {
        font-size: 1rem;
    }
    
    .main-content {
        padding: 1.5rem 0;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .entry-content blockquote {
        padding: 1rem;
        margin-left: 0;
        margin-right: 0;
    }
    
    .entry-content ul,
    .entry-content ol {
        margin-left: 1rem;
        padding-left: 0.5rem;
    }
}

/* ===== UTILITÁRIOS ADICIONAIS ===== */
.text-balance {
    text-wrap: balance;
}

/* Remover estilos que podem estar conflitando com Tailwind */
.hidden {
    display: none !important;
}

/* Se você está usando Tailwind, mantenha apenas os estilos essenciais abaixo */

/* ===== CORREÇÕES PARA TAILWIND ===== */
/* Garantir que elementos com w-full realmente ocupem 100% */
.w-full {
    width: 100% !important;
}

/* Garantir que o container não cause overflow */
.max-w-\[1200px\] {
    max-width: 1200px !important;
}

/* Corrigir possíveis problemas de largura */
.min-h-screen {
    min-height: 100vh;
}

/* Garantir que imagens responsivas funcionem */
.object-cover {
    object-fit: cover;
}

/* ===== AJUSTES PARA O HEADER ===== */
/* Se o header ainda não estiver 100% largo, adicione: */
header.alphadelta-header {
    width: 100vw !important;
    max-width: 100vw !important;
    left: 0;
    right: 0;
}

/* Para garantir que o conteúdo dentro do header também ocupe 100% */
.alphadelta-header .container {
    width: 100%;
    max-width: 1200px;
}

/* ===== SOLUÇÃO PARA CONTEÚDO NÃO OCUPANDO 100% ===== */
/* Adicione estas classes se necessário */
.full-width {
    /* width: 100vw; */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Para elementos que devem ocupar toda a largura da tela */


/* ===== DEBUG (remova depois de testar) ===== */
/* Descomente para ver onde está o problema */
/*
* {
    outline: 1px solid red;
}
*/

/* ===== ACESSIBILIDADE ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== IMPORTS PARA FONTES (se necessário) ===== */
/* @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap'); */

:root {
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}
