/*
Theme Name: YUX Soluções em IA
Author: YUX Team
Description: Template WordPress personalizado para YUX Soluções em IA - Inteligência Artificial, descomplicada. Eficiência, entregue.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yux-theme
Tags: business, ai, responsive, custom-post-types, conversion-optimized
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.1
*/

/* ==========================================================================
   CSS Reset & Base Styles
   ========================================================================== */

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: #111827;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Front page specific styles */
.yux-front-page .site-main {
    padding: 0;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1rem 0;
    color: #111827;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin: 0 0 1rem 0;
    color: #6B7280;
}

a {
    color: #2563EB;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1d4ed8;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-main {
    flex: 1;
    padding: 2rem 0;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 20px;
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #2563EB;
}

.site-title a {
    color: inherit;
    text-decoration: none;
}

.site-description {
    font-size: 0.875rem;
    color: #6B7280;
    margin: 0;
    margin-left: 1rem;
}

.custom-logo-link {
    display: block;
    max-width: 200px;
}

.custom-logo {
    height: auto;
    max-height: 60px;
    width: auto;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.main-navigation {
    position: relative;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.menu-toggle-icon {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.menu-toggle-icon span {
    width: 20px;
    height: 2px;
    background-color: #111827;
    transition: all 0.3s ease;
}

.menu-toggle.active .menu-toggle-icon span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .menu-toggle-icon span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .menu-toggle-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.primary-menu li {
    position: relative;
}

.primary-menu a {
    display: block;
    padding: 0.5rem 0;
    color: #374151;
    font-weight: 500;
    transition: color 0.3s ease;
}

.primary-menu a:hover {
    color: #2563EB;
}

/* ==========================================================================
   Content
   ========================================================================== */

.posts-container {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.post-item {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.post-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.post-thumbnail {
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-item:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content {
    padding: 1.5rem;
}

.entry-title {
    margin-bottom: 0.5rem;
}

.entry-title a {
    color: #111827;
    text-decoration: none;
}

.entry-title a:hover {
    color: #2563EB;
}

.entry-meta {
    font-size: 0.875rem;
    color: #6B7280;
    margin-bottom: 1rem;
}

.entry-meta span {
    margin-right: 1rem;
}

.entry-summary {
    margin-bottom: 1rem;
}

.read-more {
    color: #2563EB;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more:hover {
    color: #1d4ed8;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: #111827;
    color: #ffffff;
    padding: 3rem 0 1rem;
    margin-top: auto;
}

.footer-widgets {
    margin-bottom: 2rem;
}

.site-info {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-links {
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #D1D5DB;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: #2563EB;
    color: white;
    transform: translateY(-2px);
}

/* ==========================================================================
   Widgets
   ========================================================================== */

.company-info-widget > div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.company-info-widget svg {
    flex-shrink: 0;
    color: #2563EB;
}

.company-info-widget a {
    color: inherit;
    text-decoration: none;
}

.company-info-widget a:hover {
    color: #2563EB;
}

.widget-social-icons {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.widget-social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #F3F4F6;
    border-radius: 50%;
    color: #6B7280;
    transition: all 0.3s ease;
}

.widget-social-icons a:hover {
    background: #2563EB;
    color: white;
    transform: translateY(-2px);
}

.whatsapp-widget {
    text-align: center;
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #25D366;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.whatsapp-button:hover {
    background: #128C7E;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.footer-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.footer-menu a {
    color: #D1D5DB;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: #ffffff;
}

.copyright {
    text-align: right;
}

.copyright p {
    margin: 0;
    font-size: 0.875rem;
    color: #9CA3AF;
}

.tagline {
    font-weight: 600;
    color: #2563EB !important;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .site-header .container {
        flex-wrap: wrap;
    }
    
    .site-description {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .primary-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
    }
    
    .primary-menu.active {
        display: flex;
    }
    
    .primary-menu li {
        border-bottom: 1px solid #E5E7EB;
    }
    
    .primary-menu li:last-child {
        border-bottom: none;
    }
    
    .primary-menu a {
        padding: 1rem 0;
    }
    
    .site-info {
        flex-direction: column;
        text-align: center;
    }
    
    .copyright {
        text-align: center;
    }
    
    .footer-menu {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .site-main {
        padding: 1rem 0;
    }
    
    .post-content {
        padding: 1rem;
    }
}
