/**
 * Estilos Customizados do Tema
 * 
 * @package MoraesEquipamentos
 */

/* Cores Customizadas Moraes */
.bg-\\[\\#1e3a8a\\] {
    background-color: #1e3a8a !important;
}

.bg-\\[\\#050810\\] {
    background-color: #050810 !important;
}

.bg-\\[\\#0a0f1a\\] {
    background-color: #0a0f1a !important;
}

.bg-\\[\\#0c121e\\] {
    background-color: #0c121e !important;
}

.text-\\[\\#1e3a8a\\] {
    color: #1e3a8a !important;
}

.text-red-500 {
    color: #ef4444 !important;
}

.text-red-600 {
    color: #dc2626 !important;
}

.bg-red-500 {
    background-color: #ef4444 !important;
}

.bg-red-600 {
    background-color: #dc2626 !important;
}

.bg-red-700 {
    background-color: #b91c1c !important;
}

.border-red-600 {
    border-color: #dc2626 !important;
}

.text-blue-200 {
    color: #bfdbfe !important;
}

.text-blue-400 {
    color: #60a5fa !important;
}

.text-slate-100 {
    color: #f1f5f9 !important;
}

.text-slate-300 {
    color: #cbd5e1 !important;
}

.text-slate-400 {
    color: #94a3b8 !important;
}

.text-slate-500 {
    color: #64748b !important;
}

.text-slate-600 {
    color: #475569 !important;
}

.text-slate-700 {
    color: #334155 !important;
}

.text-slate-900 {
    color: #0f172a !important;
}

.text-slate-950 {
    color: #020617 !important;
}

.bg-slate-50 {
    background-color: #f8fafc !important;
}

.bg-slate-100 {
    background-color: #f1f5f9 !important;
}

.bg-slate-200 {
    background-color: #e2e8f0 !important;
}

.bg-slate-950 {
    background-color: #020617 !important;
}

.border-slate-100 {
    border-color: #f1f5f9 !important;
}

.border-slate-200 {
    border-color: #e2e8f0 !important;
}

/* Opacidades customizadas */
.bg-white\\/5 {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

.bg-white\\/10 {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.bg-white\\/20 {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

.border-white\\/5 {
    border-color: rgba(255, 255, 255, 0.05) !important;
}

.border-white\\/10 {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.border-white\\/20 {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.text-white\\/70 {
    color: rgba(255, 255, 255, 0.7) !important;
}

.text-white\\/60 {
    color: rgba(255, 255, 255, 0.6) !important;
}

.bg-red-600\\/30 {
    background-color: rgba(220, 38, 38, 0.3) !important;
}

.border-red-600\\/40 {
    border-color: rgba(220, 38, 38, 0.4) !important;
}

.bg-blue-500\\/10 {
    background-color: rgba(59, 130, 246, 0.1) !important;
}

.border-blue-500\\/20 {
    border-color: rgba(59, 130, 246, 0.2) !important;
}

.text-blue-400 {
    color: #60a5fa !important;
}

/* Ajustes adicionais se necessário */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Animações customizadas */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

.animate-bounce {
    animation: bounce 1s infinite;
}

/* Ajustes de acessibilidade */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Melhorias de performance */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* Estilos para conteúdo de posts - Sobrescrever Tailwind Prose */
article .entry-content,
article .entry-content p,
article p,
.blog-content,
.blog-content p,
.blog-post-content p {
    color: #334155 !important;
    line-height: 1.8 !important;
    font-family: 'Archivo', sans-serif !important;
}

article .entry-content p,
article p,
.blog-content p,
.blog-post-content p {
    margin-bottom: 1.5rem !important;
    font-size: 1.125rem !important;
    color: #334155 !important;
    line-height: 1.8 !important;
}

/* Garantir que todos os elementos de texto dentro do artigo tenham cor escura */
article .entry-content *,
article *,
.blog-content *,
.blog-post-content * {
    color: inherit !important;
}

/* Elementos específicos - Forçar cor escura */
article .entry-content p,
article p,
.blog-content p,
.blog-post-content p,
article .entry-content li,
article li,
.blog-content li,
.blog-post-content li,
article .entry-content span,
article span,
.blog-content span,
.blog-post-content span,
article .entry-content div,
article div,
.blog-content div,
.blog-post-content div,
article .entry-content section,
article section,
.blog-content section,
.blog-post-content section,
article .entry-content section p,
article section p,
.blog-content section p,
.blog-post-content section p {
    color: #334155 !important;
}

/* Blocos do Gutenberg */
article .wp-block-group,
article .wp-block-columns,
article .wp-block-column,
article .wp-block-group p,
article .wp-block-columns p,
article .wp-block-column p {
    color: #334155 !important;
}

/* Subtítulos - H2, H3, H4, H5 */
article .entry-content h2,
article h2,
article .entry-content h3,
article h3,
article .entry-content h4,
article h4,
article .entry-content h5,
article h5 {
    font-family: 'Archivo', sans-serif !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

article .entry-content h2,
article h2 {
    font-size: 2rem !important;
    color: #1e3a8a !important;
    margin-top: 3rem !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.2 !important;
}

article .entry-content h3,
article h3 {
    font-size: 1.5rem !important;
    color: #1e3a8a !important;
    margin-top: 2.5rem !important;
    margin-bottom: 1.25rem !important;
    line-height: 1.3 !important;
}

article .entry-content h4,
article h4 {
    font-size: 1.25rem !important;
    color: #334155 !important;
    margin-top: 2rem !important;
    margin-bottom: 1rem !important;
    font-weight: 800 !important;
}

article .entry-content h5,
article h5 {
    font-size: 1.125rem !important;
    color: #334155 !important;
    margin-top: 1.5rem !important;
    margin-bottom: 0.75rem !important;
    font-weight: 800 !important;
}

/* Listas - Garantir cor escura */
article .entry-content ul,
article .entry-content ol,
article ul,
article ol,
.blog-content ul,
.blog-content ol,
.blog-post-content ul,
.blog-post-content ol {
    margin-bottom: 1.5rem !important;
    padding-left: 2rem !important;
    color: #334155 !important;
}

article .entry-content li,
article li,
.blog-content li,
.blog-post-content li {
    margin-bottom: 0.75rem !important;
    font-size: 1.125rem !important;
    color: #334155 !important;
    list-style-type: disc !important;
}

article .entry-content ol li,
article ol li,
.blog-content ol li,
.blog-post-content ol li {
    list-style-type: decimal !important;
}

.entry-content strong {
    font-weight: 800 !important;
    color: #1e3a8a !important;
}

.entry-content a {
    color: #dc2626 !important;
    text-decoration: underline !important;
    font-weight: 700 !important;
}

.entry-content a:hover {
    color: #1e3a8a !important;
}

.entry-content blockquote {
    border-left: 4px solid #dc2626 !important;
    padding-left: 1.5rem !important;
    margin: 2rem 0 !important;
    font-style: italic !important;
    color: #64748b !important;
}

.entry-content img {
    margin: 2rem 0 !important;
    border-radius: 0.5rem !important;
}

.entry-content code {
    background-color: #f1f5f9 !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: 0.25rem !important;
    font-size: 0.875rem !important;
    color: #dc2626 !important;
    font-weight: 700 !important;
}

/* Garantir fundo branco no conteúdo */
.entry-content,
.prose {
    background-color: #ffffff !important;
    color: #334155 !important;
}

/* Forçar cor escura em TODOS os elementos dentro do artigo - Estilo mais agressivo */
/* Sobrescrever text-slate-100 do body */
article.blog-post-content,
article.blog-post-content * {
    color: #334155 !important;
}

/* Manter cores específicas para elementos especiais */
article.blog-post-content h2,
article.blog-post-content h3 {
    color: #1e3a8a !important;
}

article.blog-post-content a {
    color: #dc2626 !important;
}

article.blog-post-content strong {
    color: #1e3a8a !important;
}

article.blog-post-content p,
article.blog-post-content div,
article.blog-post-content section,
article.blog-post-content span:not(.text-red-600):not(.text-blue-600),
article.blog-post-content li,
article.blog-post-content td,
article.blog-post-content th,
article.blog-post-content .entry-content *,
article.blog-post-content .blog-content * {
    color: #334155 !important;
}

/* Sobrescrever estilos do Tailwind Prose */
.prose h2,
.prose h3,
.prose h4,
.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4,
.blog-content h2,
.blog-content h3,
.blog-content h4 {
    font-family: 'Archivo', sans-serif !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

.prose h2,
.blog-post-content h2,
.blog-content h2 {
    color: #1e3a8a !important;
    font-size: 2rem !important;
    margin-top: 3rem !important;
    margin-bottom: 1.5rem !important;
}

.prose h3,
.blog-post-content h3,
.blog-content h3 {
    color: #1e3a8a !important;
    font-size: 1.5rem !important;
    margin-top: 2.5rem !important;
    margin-bottom: 1.25rem !important;
}

.prose h4,
.blog-post-content h4,
.blog-content h4 {
    color: #334155 !important;
    font-size: 1.25rem !important;
    margin-top: 2rem !important;
    margin-bottom: 1rem !important;
}

/* ============================================
   CARD AZUL DECORATIVO - CONTATO
   Sobrescrever TODAS as regras globais
   ============================================ */
.moraes-contact-card,
.moraes-contact-card *,
.moraes-contact-card div,
.moraes-contact-card .moraes-card-text,
.moraes-card-text,
div.moraes-card-text {
    color: #ffffff !important;
}

/* Sobrescrever regra color: inherit !important */
.post-content .moraes-contact-card,
.post-content .moraes-contact-card *,
.post-content .moraes-card-text,
.post-content div.moraes-card-text,
article .moraes-contact-card,
article .moraes-contact-card *,
article .moraes-contact-card div,
article .moraes-card-text,
article div.moraes-card-text,
article * .moraes-card-text,
.entry-content .moraes-contact-card,
.entry-content .moraes-contact-card *,
.entry-content .moraes-card-text,
.entry-content div.moraes-card-text,
.entry-content * .moraes-card-text,
.blog-content .moraes-contact-card,
.blog-content .moraes-contact-card *,
.blog-content .moraes-card-text,
.blog-content div.moraes-card-text,
.blog-content * .moraes-card-text,
.blog-post-content .moraes-contact-card,
.blog-post-content .moraes-contact-card *,
.blog-post-content .moraes-card-text,
.blog-post-content div.moraes-card-text,
.blog-post-content * .moraes-card-text {
    color: #ffffff !important;
}

/* Card azul decorativo - Contato - Forçar texto branco - Máxima especificidade */
.moraes-contact-card,
.moraes-contact-card *,
.moraes-contact-card div,
.moraes-contact-card .moraes-card-text,
.moraes-card-text,
div.moraes-card-text {
    color: #ffffff !important;
}

/* Sobrescrever qualquer regra global que possa afetar o card - Incluindo post-content */
.post-content .moraes-contact-card,
.post-content .moraes-contact-card *,
.post-content .moraes-card-text,
article .moraes-contact-card,
article .moraes-contact-card *,
article .moraes-contact-card div,
article .moraes-card-text,
article div.moraes-card-text,
.entry-content .moraes-contact-card,
.entry-content .moraes-contact-card *,
.entry-content .moraes-card-text,
.entry-content div.moraes-card-text,
.blog-content .moraes-contact-card,
.blog-content .moraes-contact-card *,
.blog-content .moraes-card-text,
.blog-content div.moraes-card-text,
.blog-post-content .moraes-contact-card,
.blog-post-content .moraes-contact-card *,
.blog-post-content .moraes-card-text,
.blog-post-content div.moraes-card-text {
    color: #ffffff !important;
}

/* Sobrescrever regras com * selector */
.post-content * .moraes-card-text,
article * .moraes-card-text,
.entry-content * .moraes-card-text,
.blog-content * .moraes-card-text,
.blog-post-content * .moraes-card-text {
    color: #ffffff !important;
}

/* ============================================
   AJUSTES DO NAVBAR - Garantir que hambúrguer apareça apenas em mobile
   ============================================ */

/* Estilizar o menu do WordPress */
nav[role="navigation"] .moraes-primary-menu,
nav[role="navigation"] #moraes-nav-menu .moraes-primary-menu,
nav[role="navigation"] ul.moraes-primary-menu,
nav[role="navigation"] #menu-menu-principal,
nav[role="navigation"] ul#menu-menu-principal,
nav[role="navigation"] .hidden.md\:flex ul {
    display: flex !important;
    align-items: center !important;
    gap: 1.5rem !important; /* space-x-6 */
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-wrap: nowrap !important;
}

@media (min-width: 1024px) {
    nav[role="navigation"] .moraes-primary-menu,
    nav[role="navigation"] #moraes-nav-menu .moraes-primary-menu,
    nav[role="navigation"] ul.moraes-primary-menu {
        gap: 1.5rem !important; /* space-x-6 - manter consistente */
    }
}

@media (min-width: 1280px) {
    nav[role="navigation"] .moraes-primary-menu,
    nav[role="navigation"] #moraes-nav-menu .moraes-primary-menu,
    nav[role="navigation"] ul.moraes-primary-menu {
        gap: 1.75rem !important; /* space-x-7 - leve aumento */
    }
}

nav[role="navigation"] .moraes-primary-menu li,
nav[role="navigation"] #moraes-nav-menu .moraes-primary-menu li,
nav[role="navigation"] ul.moraes-primary-menu li,
nav[role="navigation"] #menu-menu-principal li,
nav[role="navigation"] ul#menu-menu-principal li,
nav[role="navigation"] .hidden.md\:flex ul li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

nav[role="navigation"] .moraes-primary-menu a,
nav[role="navigation"] #moraes-nav-menu .moraes-primary-menu a,
nav[role="navigation"] ul.moraes-primary-menu a,
nav[role="navigation"] #menu-menu-principal a,
nav[role="navigation"] ul#menu-menu-principal a,
nav[role="navigation"] .hidden.md\:flex ul a,
nav[role="navigation"] .moraes-nav-link {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #475569 !important; /* text-slate-600 */
    font-weight: 700 !important; /* font-bold */
    font-size: 11px !important; /* text-[11px] */
    text-transform: uppercase !important;
    letter-spacing: 0.2em !important; /* tracking-[0.2em] */
    text-decoration: none !important;
    transition: color 0.2s !important;
    white-space: nowrap !important;
    position: relative !important;
    z-index: 10 !important;
}

nav[role="navigation"] .moraes-primary-menu a:hover,
nav[role="navigation"] #moraes-nav-menu .moraes-primary-menu a:hover,
nav[role="navigation"] ul.moraes-primary-menu a:hover,
nav[role="navigation"] #menu-menu-principal a:hover,
nav[role="navigation"] ul#menu-menu-principal a:hover,
nav[role="navigation"] .hidden.md\:flex ul a:hover,
nav[role="navigation"] .moraes-nav-link:hover {
    color: #dc2626 !important; /* text-red-600 */
}

/* Garantir que o botão hambúrguer apareça apenas em mobile */
nav[role="navigation"] .md\:hidden,
nav[role="navigation"] div.md\:hidden {
    display: block !important;
}

@media (min-width: 768px) {
    nav[role="navigation"] .md\:hidden,
    nav[role="navigation"] div.md\:hidden {
        display: none !important;
    }
}

/* Garantir que menu desktop não apareça em mobile */
nav[role="navigation"] #moraes-nav-menu {
    display: none !important;
}

@media (min-width: 768px) {
    nav[role="navigation"] #moraes-nav-menu {
        display: flex !important;
    }
}

/* Menu Desktop - Visibilidade */
nav[role="navigation"] .hidden.md\:flex {
    display: none !important;
}

@media (min-width: 768px) {
    nav[role="navigation"] .hidden.md\:flex,
    nav[role="navigation"] #moraes-nav-menu {
        display: flex !important;
        align-items: center !important;
        gap: 1.5rem !important; /* space-x-6 */
        flex-wrap: nowrap !important;
        flex: 1;
        justify-content: center;
    }
}

@media (min-width: 1024px) {
    nav[role="navigation"] #moraes-nav-menu {
        gap: 1.5rem !important; /* space-x-6 - manter consistente */
    }
}

@media (min-width: 1280px) {
    nav[role="navigation"] #moraes-nav-menu {
        gap: 1.75rem !important; /* space-x-7 - leve aumento */
    }
}

/* Garantir que logo não ocupe muito espaço */
nav[role="navigation"] img[alt*="Logo"],
nav[role="navigation"] .custom-logo {
    max-height: 70px !important;
    max-width: 180px !important;
    width: auto !important;
    height: auto !important;
}

@media (max-width: 767px) {
    nav[role="navigation"] img[alt*="Logo"],
    nav[role="navigation"] .custom-logo {
        max-height: 60px !important;
    }
}

/* Garantir que o container do navbar tenha layout flex adequado */
nav[role="navigation"] > div > div {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
}

/* Garantir que o dropdown "Equipamentos Agrícolas" não quebre linha */
nav[role="navigation"] #moraes-nav-menu .relative.group {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
}

/* Garantir que todos os itens do menu não quebrem linha */
nav[role="navigation"] #moraes-nav-menu > * {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
}

/* Menu Mobile - Overlay */
#mobile-menu-overlay {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Menu Mobile - Container Principal */
#mobile-menu {
    will-change: transform;
    -webkit-overflow-scrolling: touch;
}

#mobile-menu::-webkit-scrollbar {
    width: 6px;
}

#mobile-menu::-webkit-scrollbar-track {
    background: #f1f5f9;
}

#mobile-menu::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

#mobile-menu::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Menu Mobile - Estilização */
#mobile-menu .moraes-mobile-menu,
#mobile-menu ul.moraes-mobile-menu {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

#mobile-menu .moraes-mobile-menu li,
#mobile-menu ul.moraes-mobile-menu li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

#mobile-menu .moraes-mobile-menu a,
#mobile-menu ul.moraes-mobile-menu a,
#mobile-menu ul.moraes-mobile-menu li a,
#mobile-menu .mobile-menu-link {
    display: block !important;
    width: 100% !important;
    text-align: left !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    color: #334155 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    border-radius: 0 !important;
    position: relative !important;
    margin: 0 !important;
}

#mobile-menu .moraes-mobile-menu a:hover,
#mobile-menu ul.moraes-mobile-menu a:hover,
#mobile-menu .mobile-menu-link:hover {
    background-color: #fef2f2 !important;
    color: #dc2626 !important;
    transform: translateX(4px);
}

#mobile-menu .moraes-mobile-menu a:active,
#mobile-menu ul.moraes-mobile-menu a:active,
#mobile-menu .mobile-menu-link:active {
    transform: translateX(2px);
    background-color: #fee2e2 !important;
}

/* Botão Hambúrguer - Animação */
#mobile-menu-toggle {
    position: relative;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Garantir visibilidade no mobile */
@media (max-width: 767px) {
    #mobile-menu-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

#mobile-menu-toggle #menu-icon,
#mobile-menu-toggle #close-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

#mobile-menu-toggle #menu-icon.hidden,
#mobile-menu-toggle #close-icon.hidden {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

/* Header do Menu Mobile */
#mobile-menu > div > div:first-child {
    background-color: #f1f5f9 !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

/* Footer do Menu Mobile - Botão Orçamento */
#mobile-menu > div > div:last-child {
    box-shadow: 0 -1px 3px 0 rgba(0, 0, 0, 0.1);
}

/* Títulos de Seção no Menu Mobile */
#mobile-menu h3 {
    margin-bottom: 0.5rem !important;
}

/* Espaçamento entre seções */
#mobile-menu .space-y-6 > * + * {
    margin-top: 1.5rem;
}

/* Divisor */
#mobile-menu .border-t {
    border-color: #e2e8f0 !important;
}

/* Prevenir scroll do body quando menu está aberto */
body.overflow-hidden {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
}
}

/* Forçar TODOS os textos brancos nos cards de produtos - REGRA UNIVERSAL */
.moraes-produtos article .absolute.bottom-0 *,
.moraes-produtos article .absolute.bottom-0 * *,
.moraes-produtos article .absolute.bottom-0 * * * {
    color: #ffffff !important;
}

/* Forçar TODOS os textos brancos nos cards de produtos */
.moraes-produtos article h4,
.moraes-produtos article h4 *,
.moraes-produtos article h4 span,
.moraes-produtos article h4 span *,
.moraes-produtos article h4.text-white,
.moraes-produtos article h4.text-white *,
.moraes-produtos article .text-white,
.moraes-produtos article .text-white *,
.moraes-produtos article p.text-white,
.moraes-produtos article p.text-white *,
.moraes-produtos article div.text-white,
.moraes-produtos article div.text-white * {
    color: #ffffff !important;
}

/* Forçar título do produto em branco - seletores mais específicos */
.moraes-produtos article.relative h4,
.moraes-produtos article.relative h4 *,
.moraes-produtos article.relative h4 span,
.moraes-produtos article.relative h4 span *,
.moraes-produtos article.group h4,
.moraes-produtos article.group h4 *,
.moraes-produtos article.group h4 span,
.moraes-produtos article.group h4 span *,
.moraes-produtos article.relative .absolute h4,
.moraes-produtos article.relative .absolute h4 *,
.moraes-produtos article.group .absolute h4,
.moraes-produtos article.group .absolute h4 *,
article.group.relative.bg-slate-50 h4,
article.group.relative.bg-slate-50 h4 *,
article.group.relative.bg-slate-50 h4 span,
article.group.relative.bg-slate-50 h4 span *,
article.group.relative.bg-slate-50 .absolute h4,
article.group.relative.bg-slate-50 .absolute h4 * {
    color: #ffffff !important;
}

/* Forçar todos os textos dentro dos cards em branco */
.moraes-produtos article.relative .absolute.bottom-0 h4,
.moraes-produtos article.relative .absolute.bottom-0 h4 *,
.moraes-produtos article.relative .absolute.bottom-0 h4 span,
.moraes-produtos article.relative .absolute.bottom-0 h4 span *,
.moraes-produtos article.relative .absolute.bottom-0 p,
.moraes-produtos article.relative .absolute.bottom-0 p *,
.moraes-produtos article.relative .absolute.bottom-0 div:not(.bg-red-600):not(.bg-white),
.moraes-produtos article.relative .absolute.bottom-0 div:not(.bg-red-600):not(.bg-white) *,
.moraes-produtos article.group .absolute.bottom-0 h4,
.moraes-produtos article.group .absolute.bottom-0 h4 *,
.moraes-produtos article.group .absolute.bottom-0 h4 span,
.moraes-produtos article.group .absolute.bottom-0 h4 span *,
.moraes-produtos article.group .absolute.bottom-0 p,
.moraes-produtos article.group .absolute.bottom-0 p *,
.moraes-produtos article.group .absolute.bottom-0 div:not(.bg-red-600):not(.bg-white),
.moraes-produtos article.group .absolute.bottom-0 div:not(.bg-red-600):not(.bg-white) *,
article.group.relative .absolute.bottom-0 h4,
article.group.relative .absolute.bottom-0 h4 *,
article.group.relative .absolute.bottom-0 h4 span,
article.group.relative .absolute.bottom-0 h4 span *,
article.group.relative .absolute.bottom-0 p,
article.group.relative .absolute.bottom-0 p *,
article.group.relative .absolute.bottom-0 div:not(.bg-red-600):not(.bg-white),
article.group.relative .absolute.bottom-0 div:not(.bg-red-600):not(.bg-white) * {
    color: #ffffff !important;
}

/* Forçar cor branca em QUALQUER elemento de texto dentro dos cards - seletor universal */
article.group.relative.bg-slate-50.rounded-\[40px\] .absolute.bottom-0 *,
article.group.relative.bg-slate-50.rounded-\[40px\] .absolute.bottom-0 * *,
article.group.relative.bg-slate-50.rounded-\[40px\] .absolute.bottom-0 * * *,
article.group.relative.bg-slate-50.rounded-\[40px\] .absolute.bottom-0 h4,
article.group.relative.bg-slate-50.rounded-\[40px\] .absolute.bottom-0 h4 *,
article.group.relative.bg-slate-50.rounded-\[40px\] .absolute.bottom-0 h4 span,
article.group.relative.bg-slate-50.rounded-\[40px\] .absolute.bottom-0 h4 span * {
    color: #ffffff !important;
}

/* Forçar branco em spans dentro do título - TODAS as variações */
article.group.relative.bg-slate-50.rounded-\[40px\] .absolute.bottom-0 h4 span.text-red-600,
article.group.relative.bg-slate-50.rounded-\[40px\] .absolute.bottom-0 h4 span.text-red-500,
article.group.relative.bg-slate-50.rounded-\[40px\] .absolute.bottom-0 h4 span.text-red-400,
article.group.relative.bg-slate-50.rounded-\[40px\] .absolute.bottom-0 h4 span.text-red-700,
article.group.relative.bg-slate-50.rounded-\[40px\] .absolute.bottom-0 h4 span[class*="red"],
article.group.relative.bg-slate-50.rounded-\[40px\] .absolute.bottom-0 h4 span[style*="color"],
.moraes-produtos article h4 span.text-red-600,
.moraes-produtos article h4 span.text-red-500,
.moraes-produtos article h4 span.text-red-400,
.moraes-produtos article h4 span.text-red-700,
.moraes-produtos article h4 span[class*="red"],
.moraes-produtos article h4 span[style*="color"] {
    color: #ffffff !important;
}

/* ============================================
   CORREÇÕES DE RESPONSIVIDADE MOBILE
   ============================================ */

/* 1. Box-sizing e max-width para prevenir overflow */
*,
*::before,
*::after {
    box-sizing: border-box;
}

section,
article,
.container,
.max-w-7xl,
.max-w-6xl,
.max-w-4xl,
.max-w-3xl,
.max-w-2xl {
    max-width: 100%;
    overflow-x: hidden;
}

/* 2. Padronizar padding lateral em mobile */
@media (max-width: 767px) {
    .max-w-7xl,
    .max-w-6xl,
    .max-w-4xl,
    .max-w-3xl,
    .max-w-2xl,
    section > div:first-child {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    
    /* Garantir que containers não ultrapassem viewport */
    body {
        overflow-x: hidden;
        width: 100%;
    }
    
    html {
        overflow-x: hidden;
    }
}

/* 3. Ajustar altura dos cards de produtos em mobile */
@media (max-width: 767px) {
    /* Cards de produtos - altura automática com aspect-ratio */
    article.group.relative.bg-slate-50.rounded-\[40px\] {
        height: auto !important;
        min-height: 300px;
        aspect-ratio: 16/10;
    }
    
    article.group.relative.bg-slate-50.rounded-\[40px\] img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        aspect-ratio: 16/10;
    }
    
    /* Reduzir padding interno dos cards em mobile */
    article.group.relative.bg-slate-50.rounded-\[40px\] .absolute.bottom-0 {
        padding: 1.5rem !important; /* p-6 ao invés de p-10 */
    }
    
    /* Ajustar tamanho do botão em mobile */
    article.group.relative.bg-slate-50.rounded-\[40px\] .absolute.bottom-0 a {
        padding-left: 1.5rem !important; /* px-6 */
        padding-right: 1.5rem !important;
        width: 100%;
        max-width: 100%;
        text-align: center;
    }
}

/* 4. Centralizar elementos em mobile */
@media (max-width: 767px) {
    /* Hero section - centralizar tudo */
    #home header {
        text-align: center !important;
        align-items: center !important;
    }
    
    #home .flex.flex-col {
        align-items: center !important;
    }
    
    #home .mx-auto {
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    /* Cards de produtos - centralizar */
    #equipamentos .grid {
        justify-items: center;
    }
    
    /* Seção "LÍDER ENTRE OS FABRICANTES" - centralizar */
    #equipamentos header {
        text-align: center !important;
        align-items: center !important;
    }
    
    #equipamentos header > div {
        text-align: center !important;
    }
    
    /* Botões - garantir que não ultrapassem largura */
    #home a[class*="bg-red-600"],
    #home a[class*="border-white"],
    #equipamentos a[class*="bg-\[#1e3a8a\]"] {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Grid de features no hero - centralizar */
    #home .grid.grid-cols-1 {
        justify-items: center;
        margin-left: auto;
        margin-right: auto;
    }
}

/* 5. Ajustar line-height do título hero em mobile */
@media (max-width: 767px) {
    .hero-title {
        line-height: 1.1 !important; /* Aumentar de 0.85 para 1.1 */
        margin-bottom: 0.5rem !important;
    }
    
    .hero-title-span {
        line-height: 1.1 !important;
        margin-top: 0.25rem !important;
    }
}

/* 6. Ajustar tamanhos de fonte em mobile */
@media (max-width: 767px) {
    /* Título "LÍDER ENTRE OS FABRICANTES" */
    #equipamentos h3 {
        font-size: 2rem !important; /* Reduzir de text-5xl para text-3xl */
        line-height: 1.2 !important;
    }
    
    /* Títulos dos cards de produtos */
    article.group.relative.bg-slate-50.rounded-\[40px\] h4 {
        font-size: 1.5rem !important; /* Ajustar para mobile */
        line-height: 1.3 !important;
    }
    
    /* Texto dos cards */
    article.group.relative.bg-slate-50.rounded-\[40px\] p {
        font-size: 0.875rem !important; /* text-sm */
    }
}

/* 7. Prevenir overflow em elementos específicos */
@media (max-width: 767px) {
    /* Badge no hero */
    #home .inline-flex {
        max-width: 100%;
        flex-wrap: wrap;
    }
    
    /* Botões com whitespace-nowrap - permitir quebra se necessário */
    #home a.whitespace-nowrap {
        white-space: normal !important;
        word-break: break-word;
    }
    
    /* Grid de features - garantir que não ultrapasse */
    #home .grid.max-w-3xl {
        max-width: 100% !important;
        margin-left: auto;
        margin-right: auto;
    }
}

/* 8. Ajustar espaçamentos verticais em mobile */
@media (max-width: 767px) {
    /* Reduzir espaçamento entre seções */
    section {
        padding-top: 3rem !important; /* py-12 → py-12 reduzido */
        padding-bottom: 3rem !important;
    }
    
    /* Hero - ajustar padding vertical */
    #home > div.relative.z-10 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Cards de produtos - ajustar gap */
    #equipamentos .grid {
        gap: 1.5rem !important; /* Reduzir gap em mobile */
    }
}
