/*
Theme Name: Drakon Theme
Description: Um tema WordPress moderno e responsivo desenvolvido especialmente para o cliente Drakon. Inclui design limpo, otimização para SEO e total responsividade.
Author: Desenvolvedor WordPress
Version: 1.0.0
Text Domain: drakon-theme
Domain Path: /languages
Tags: responsive, modern, clean, business, portfolio
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* ===== RESET E VARIÁVEIS ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #ff7a00;
    --text-color: #333;
    --light-gray: #f8f9fa;
    --dark-gray: #6c757d;
    --white: #ffffff;
    --black: #000000;
    --font-primary: 'Roboto', Arial, sans-serif;
    --font-secondary: 'Open Sans', Arial, sans-serif;
    --container-width: 1200px;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
    --topbar-h: 40px;
    --header-pad-y: 30px;
}

/* ===== TIPOGRAFIA BASE ===== */
body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* ===== CONTAINER E LAYOUT ===== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    padding-left: 20px;
    padding-right: 20px;
}

/* ===== UTILITÁRIOS ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* ===== BOTÕES ===== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

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

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

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

.btn-accent {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-accent:hover {
    background-color: #e6690a;
    border-color: #e6690a;
}

/* ===== TOP BAR ===== */
.top-bar {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    height: var(--topbar-h);
    background: var(--black);
    color: var(--white);
    z-index: 1004;
    display: flex !important;
    align-items: center;
}

.top-bar .container,
.top-bar .row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px;
    flex-wrap: nowrap;
}

.top-bar .top-bar-left {
    flex: 1 1 auto;
    min-width: 0;
    display: flex !important;
    align-items: center;
    gap: 12px;
    justify-content: flex-start;
}

.top-bar .top-bar-right {
    flex: 0 0 auto;
    display: flex !important;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    justify-content: flex-end;
    text-align: right;
}

.top-bar .contact-info,
.top-bar .social-media {
    display: flex !important;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.top-bar .contact-info li,
.top-bar .social-media li {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.top-bar .contact-info li i {
    margin-right: 8px;
}

.top-bar .social-media a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.top-bar .social-media a:hover {
    color: var(--accent-color);
}

/* ===== HEADER ===== */
.site-header {
    position: fixed !important;
    top: var(--topbar-h) !important;
    left: 0;
    right: 0;
    z-index: 1001 !important;
    background: rgba(0,0,0,0.65);
    -webkit-backdrop-filter: saturate(120%) blur(8px);
    backdrop-filter: saturate(120%) blur(8px);
    padding: var(--header-pad-y) 0 !important;
}

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

.site-branding {
    display: flex;
    align-items: center;
}

.custom-logo {
    max-height: 50px;
    width: auto;
}

.site-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    margin: 0;
}

.site-title:hover {
    color: var(--accent-color);
    text-decoration: none;
}

/* ===== NAVEGAÇÃO ===== */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.main-navigation li {
    position: relative;
}

.site-header .main-navigation a {
    color: var(--white) !important;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: var(--transition);
    position: relative;
}

.site-header .main-navigation a:hover,
.site-header .main-navigation a:focus,
.site-header .main-navigation .current-menu-item > a,
.site-header .main-navigation .current_page_item > a {
    color: var(--accent-color) !important;
    text-decoration: none;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item > a::after {
    width: 100%;
}

/* Dropdown Menus */
.main-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    padding: 1rem 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    flex-direction: column;
    gap: 0;
}

.main-navigation li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation .sub-menu a {
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid var(--light-gray);
    color: var(--text-color) !important;
}

.main-navigation .sub-menu a:last-child {
    border-bottom: none;
}

.main-navigation .sub-menu a:hover {
    color: var(--accent-color) !important;
    background-color: var(--light-gray);
}

/* ===== MENU MOBILE ===== */
.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    background: transparent;
    color: var(--white);
    border: 0;
    cursor: pointer;
    font-size: 1.5rem;
    align-items: center;
    justify-content: center;
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
    z-index: 1002;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: var(--topbar-h);
    right: -100%;
    bottom: 0;
    width: 85%;
    max-width: 360px;
    background: #111;
    color: var(--white);
    z-index: 1003;
    transition: right .3s ease;
    overflow-y: auto;
    padding: 16px 20px;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu .mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu .mobile-menu-list > li > a {
    display: block;
    padding: 12px 0;
    color: var(--white);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: var(--transition);
}

.mobile-menu .mobile-menu-list > li > a:hover {
    color: var(--accent-color);
}

.mobile-menu .sub-menu {
    list-style: none;
    margin: 0;
    padding-left: 12px;
    border-left: 1px solid rgba(255,255,255,0.08);
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0 !important;
    padding-top: 140px !important;
    background-image: url('https://support.inovai.me/wp-content/uploads/2025/08/Fachada-1024x576-3.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.7) 0%, rgba(52, 152, 219, 0.5) 100%);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 140px);
}

.hero-content {
    text-align: center;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out;
    text-align: center;
}

.hero-content p {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out 0.2s both;
    text-align: center;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* ===== RESPONSIVIDADE MOBILE - SEM HERO IMAGE ===== */
@media (max-width: 768px) {
    .hero-section {
        display: none !important;
    }
    
    /* Ajustar o conteúdo principal para mobile */
    .site-main {
        padding-top: 0 !important;
        margin-top: calc(var(--topbar-h) + var(--header-h));
    }
    
    /* Garantir que o menu hamburger funcione */
    .menu-toggle {
        display: block !important;
    }
    
    .main-navigation {
        display: none !important;
    }
    
    /* Ajustar padding das páginas internas */
    .page-header {
        padding-top: calc(var(--topbar-h) + var(--header-h) + 2rem) !important;
        margin-top: 0 !important;
    }
    
    /* Garantir que o conteúdo não fique escondido atrás do header fixo */
    .entry-content,
    .page-content {
        padding-top: 2rem;
    }
}

@media (max-width: 576px) {
    /* Remover hero section completamente no mobile */
    .hero-section {
        display: none !important;
    }
    
    .site-main {
        padding-top: 0 !important;
        margin-top: calc(var(--topbar-h) + var(--header-h));
    }
    
    .page-header {
        padding-top: calc(var(--topbar-h) + var(--header-h) + 1.5rem) !important;
    }
}

@media (max-width: 480px) {
    .hero-section {
        display: none !important;
    }
    
    .site-main {
        margin-top: calc(var(--topbar-h) + var(--header-h));
    }
}

/* ===== COMPENSAÇÕES ADMIN BAR WORDPRESS - MOBILE ===== */
@media (max-width: 782px) {
    .admin-bar .site-main {
        margin-top: calc(46px + var(--topbar-h) + var(--header-h)) !important;
    }
    
    .admin-bar .page-header {
        padding-top: calc(46px + var(--topbar-h) + var(--header-h) + 1.5rem) !important;
    }
}

@media (min-width: 783px) {
    .admin-bar .hero-section {
        padding-top: 172px !important;
    }
}

.hero-btn-primary,
.hero-btn-secondary {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    text-shadow: none;
}

.hero-btn-primary {
    background: var(--accent-color);
    color: var(--white);
    border: 2px solid var(--accent-color);
}

.hero-btn-primary:hover {
    background: transparent;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 122, 0, 0.4);
    text-decoration: none;
}

.hero-btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.hero-btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
    text-decoration: none;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-down {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    animation: bounce 2s infinite;
    transition: var(--transition);
}

.scroll-down:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.scroll-down i {
    margin-top: 5px;
    font-size: 1.2rem;
}

/* ===== CONTEÚDO PRINCIPAL ===== */
.site-main {
    min-height: 60vh;
    padding-top: 0 !important;
    background: transparent !important;
}

.site-main > *:first-child {
    margin-top: 0 !important;
}

.content-area {
    flex: 1;
}

.page-header {
    padding-top: 140px !important;
    background: var(--light-gray);
    text-align: center;
    padding-bottom: 2rem;
}

.page-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.page-description {
    font-size: 1.1rem;
    color: var(--dark-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Seções de conteúdo */
.section-padding {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--dark-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== SIDEBAR ===== */
.widget-area {
    flex: 0 0 300px;
    margin-left: 2rem;
}

.widget {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.widget-title {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary-color);
    color: var(--primary-color);
    font-size: 1.2rem;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget li {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--light-gray);
}

.widget li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.widget a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.widget a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-widget h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget li {
    margin-bottom: 0.5rem;
}

.footer-widget a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-widget a:hover {
    color: var(--white);
    text-decoration: none;
}

.site-info {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

.site-info a {
    color: var(--white);
    text-decoration: none;
}

.site-info a:hover {
    color: var(--accent-color);
}

/* ===== BOTÃO VOLTAR AO TOPO ===== */
.back-to-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* ===== ANIMAÇÕES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* ===== COMPENSAÇÕES ADMIN BAR WORDPRESS ===== */
@media (min-width: 783px) {
    .admin-bar .top-bar {
        top: 32px !important;
    }
    .admin-bar .site-header {
        top: calc(32px + var(--topbar-h)) !important;
    }
    .admin-bar .mobile-menu {
        top: calc(32px + var(--topbar-h)) !important;
    }
    .admin-bar .menu-overlay {
        top: 32px !important;
    }
    .admin-bar .hero-section {
        padding-top: 172px !important;
    }
    .admin-bar .page-header {
        padding-top: 172px !important;
    }
}

@media (max-width: 782px) {
    .admin-bar .top-bar {
        top: 46px !important;
    }
    .admin-bar .site-header {
        top: calc(46px + var(--topbar-h)) !important;
    }
    .admin-bar .mobile-menu {
        top: calc(46px + var(--topbar-h)) !important;
    }
    .admin-bar .menu-overlay {
        top: 46px !important;
    }
    .admin-bar .hero-section {
        padding-top: 186px !important;
    }
    .admin-bar .page-header {
        padding-top: 186px !important;
    }
}

/* ===== RESPONSIVIDADE ===== */
@media (min-width: 576px) {
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 1024px) {
    .menu-toggle {
        display: flex !important;
    }
    .main-navigation {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .hero-section {
        background-attachment: scroll;
        padding-top: 160px !important;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-btn-primary,
    .hero-btn-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .page-header {
        padding-top: 160px !important;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .widget-area {
        flex: none;
        margin-left: 0;
        margin-top: 2rem;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 14px;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .container {
        padding: 0 10px;
    }
    
    .hero-section {
        padding-top: 180px !important;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .page-header {
        padding-top: 180px !important;
    }
    
    .section-padding {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .top-bar .contact-info {
        font-size: 12px;
        gap: 8px;
    }
    
    .top-bar .social-media {
        gap: 10px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .top-bar,
    .site-header,
    .menu-toggle,
    .mobile-menu,
    .menu-overlay,
    .back-to-top-btn,
    .scroll-indicator {
        display: none !important;
    }
    
    .hero-section {
        background: none !important;
        color: var(--black) !important;
        padding-top: 0 !important;
    }
    
    .hero-content h1,
    .hero-content p {
        color: var(--black) !important;
        text-shadow: none !important;
    }
    
    .site-main {
        padding-top: 0 !important;
    }
}