/*
Theme Name: Tema Kcey
Description: Um tema WordPress personalizado para Drakon com Bootstrap
Author: Drakon
Version: 1.1
Text Domain: tema-kcey
*/

/* Reset básico e variáveis CSS */
:root {
    --primary-color: #ff6b35;
    --primary-dark: #e55a2b;
    --dark-color: #333;
    --light-color: #f8f9fa;
    --text-muted: #6c757d;
}

/* Garantir que container-fluid use largura total */
.container-fluid {
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
}

/* Ajustar padding para seções com largura total */
.section .container-fluid {
    padding-left: 30px;
    padding-right: 30px;
}

/* Ajustar padding para mobile */
@media (max-width: 768px) {
    .section .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Ajustar padding para todas as seções em mobile */
    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Ajustar padding para tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .container-fluid {
        padding-left: 25px;
        padding-right: 25px;
    }
}

/* Garantir que o conteúdo não fique muito largo em telas grandes */
@media (min-width: 1200px) {
    .container-fluid {
        max-width: 1400px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Sobrescrever cores do Bootstrap */
.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
}

.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Top Bar */
.top-bar {
    background: #000000;
    color: #fff;
    font-size: 12px;
    padding: 4px 0;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    color: #fff;
    text-decoration: none;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 4px;
}

.social-link i {
    font-size: 16px;
}

.social-link:hover {
    color: #fff;
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

/* Header */
.site-header {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 100;
    padding: 15px 0;
}

.site-title {
    font-size: 2.5rem;
    margin: 0;
    font-weight: bold;
}

.site-title a {
    text-decoration: none;
    color: #fff;
    display: flex;
    align-items: center;
}

.logo-d {
    color: var(--primary-color);
    font-size: 3rem;
    font-weight: bold;
    margin-right: 2px;
}

.logo-text {
    color: #fff;
    font-size: 2.5rem;
    font-weight: normal;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
    width: 100%;
}

/* Menu Mobile */
.navbar-toggler {
    display: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 12px;
    border-radius: 4px;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler-icon {
    display: inline-block;
    width: 20px;
    height: 2px;
    background: currentColor;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: currentColor;
    transition: all 0.3s ease;
}

.navbar-toggler-icon::before {
    top: -6px;
}

.navbar-toggler-icon::after {
    bottom: -6px;
}

/* Menu Mobile Expandido */
.navbar-collapse {
    flex-grow: 1;
}

.navbar-collapse.collapse {
    display: none;
}

.navbar-collapse.collapsing {
    height: 0;
    overflow: hidden;
    transition: height 0.35s ease;
}

.navbar-collapse.show {
    display: block;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 35px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-menu li {
    display: flex;
    align-items: center;
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: #fff !important;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu .current-menu-item a {
    color: var(--primary-color) !important;
}

.nav-menu .dropdown-toggle::after {
    display: none;
}

/* Garantir que os dropdowns funcionem corretamente */
.nav-menu .dropdown {
    position: relative;
}

.nav-menu .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 200px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 4px;
    margin-top: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.nav-menu .dropdown:hover .dropdown-menu,
.nav-menu .dropdown.show .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Estilos específicos para mobile já estão definidos acima */

.nav-menu .dropdown-item {
    color: #fff;
    padding: 10px 20px;
}

.nav-menu .dropdown-item:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)), 
                url('https://images.unsplash.com/photo-1449824913935-59a10b8d2000?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center bottom;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3));
}

.hero-content {
    position: relative;
    z-index: 10;
    color: #fff;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: bold;
    margin-bottom: 30px;
    letter-spacing: 4px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 50px;
    color: #f0f0f0;
    font-weight: 300;
    letter-spacing: 2px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-button {
    padding: 18px 45px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    border-radius: 0 !important;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4) !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
}

.hero-button:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.5) !important;
}

/* Service Icons */
.service-icon .bg-primary {
    transition: transform 0.3s ease;
}

.service-icon:hover .bg-primary {
    transform: scale(1.1);
}

/* Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Footer */
.site-footer {
    margin-top: 0;
}

.footer-links a:hover {
    color: var(--primary-color) !important;
}

/* ========================================
   FOOTER MODERNO E PROFISSIONAL
   ======================================== */

/* Cores personalizadas */
:root {
    --teal-color: #20c997;
    --teal-hover: #1ba085;
    --dark-bg: #212529;
    --light-text: #f8f9fa;
    --muted-text: #6c757d;
}

/* Footer principal */
.footer-modern {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #2c3e50 100%);
    position: relative;
    overflow: hidden;
}

.footer-modern::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%2320c997" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.footer-modern .container {
    position: relative;
    z-index: 2;
}

/* Brand section */
.footer-brand h3 {
    color: var(--teal-color) !important;
    font-size: 2rem;
    font-weight: 700;
}

.footer-brand p {
    line-height: 1.6;
    color: var(--light-text);
}

/* Social links */
.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--teal-color);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-link:hover {
    background: var(--teal-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(32, 201, 151, 0.3);
}

/* Footer links */
.footer-links h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a {
    color: var(--light-text);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.footer-links ul li a:hover {
    color: var(--teal-color);
    padding-left: 8px;
}

.footer-links ul li a::before {
    content: '→';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--teal-color);
}

.footer-links ul li a:hover::before {
    opacity: 1;
    left: -20px;
}

/* Contact section */
.footer-contact h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.contact-item i {
    color: var(--teal-color);
    font-size: 1.1rem;
    margin-top: 2px;
    min-width: 20px;
    flex-shrink: 0;
}

.contact-item span {
    color: var(--light-text);
    line-height: 1.5;
    word-break: break-word;
    hyphens: auto;
}

/* Ajuste específico para email */
.contact-item:last-child span {
    word-break: break-all;
    hyphens: none;
}

/* Melhorias no alinhamento dos itens de contato */
.footer-contact .contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-contact .contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0;
    min-height: auto;
}

.footer-contact .contact-item i {
    color: var(--teal-color);
    font-size: 1.1rem;
    margin-top: 3px;
    min-width: 20px;
    flex-shrink: 0;
    text-align: center;
}

.footer-contact .contact-item span {
    color: var(--light-text);
    line-height: 1.4;
    word-break: break-word;
    hyphens: auto;
    padding-left: 0;
    margin-left: 0;
}

/* Responsividade para contato */
@media (max-width: 768px) {
    .footer-contact .contact-item {
        margin-bottom: 0.5rem;
    }
    
    .footer-contact .contact-item i {
        margin-top: 2px;
        font-size: 1rem;
    }
    
    .footer-contact .contact-item span {
        font-size: 0.9rem;
        line-height: 1.3;
    }
}

/* Newsletter section */
.footer-newsletter h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-newsletter p {
    color: var(--light-text);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.newsletter-form .form-control {
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: white;
    border-radius: 8px 0 0 8px;
    padding: 12px 16px;
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form .form-control:focus {
    border-color: var(--teal-color);
    box-shadow: 0 0 0 0.2rem rgba(32, 201, 151, 0.25);
    background: transparent;
    color: white;
}

.newsletter-form .btn {
    background: var(--teal-color);
    border: 2px solid var(--teal-color);
    border-radius: 0 8px 8px 0;
    padding: 12px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.newsletter-form .btn:hover {
    background: var(--teal-hover);
    border-color: var(--teal-hover);
    transform: translateY(-1px);
}

/* Separator line */
.footer-modern hr {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 0;
}

/* Bottom footer */
.footer-bottom-nav a {
    color: var(--light-text);
    text-decoration: none;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.footer-bottom-nav a:hover {
    color: var(--teal-color);
}

/* Chat Widget */
.chat-widget {
    z-index: 1050;
}

.chat-button {
    width: 60px;
    height: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.chat-box {
    width: 300px;
    display: none;
    animation: slideInUp 0.3s ease;
}

.chat-header img {
    width: 40px;
    height: 40px;
}

.chat-message {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
}

.chat-input input {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 8px 12px;
}

/* Scroll to top button */
#scrollToTop {
    width: 50px;
    height: 50px;
    z-index: 1040;
    margin-bottom: 80px;
    border: none;
    transition: all 0.3s ease;
}

#scrollToTop:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(32, 201, 151, 0.4);
}

/* Animações */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .top-bar .container {
        text-align: center;
    }
    
    .top-bar-left {
        flex-direction: row;
        gap: 20px;
        margin-bottom: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .site-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .logo-d {
        font-size: 2.5rem;
    }
    
    .logo-text {
        font-size: 2rem;
    }
    
    /* Menu Mobile */
    .navbar-toggler {
        display: block;
        margin-left: auto;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 15px;
        padding: 20px 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-menu .dropdown-menu {
        position: static;
        background: rgba(255, 255, 255, 0.1);
        border: none;
        margin-top: 10px;
    }
    
    .nav-menu .dropdown-item {
        padding: 8px 20px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.8rem;
        letter-spacing: 2px;
        margin-bottom: 20px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 40px;
        letter-spacing: 1px;
    }
    
    .hero-button {
        padding: 15px 35px !important;
        font-size: 13px !important;
        letter-spacing: 1.5px !important;
    }
    
    .hero-section {
        background-attachment: scroll;
        min-height: 80vh;
    }
    
    .navbar-toggler {
        border: 1px solid rgba(255, 255, 255, 0.3);
        color: rgba(255, 255, 255, 0.8);
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }

    .footer-modern .row > div {
        margin-bottom: 2rem;
    }
    
    .footer-modern .row > div:last-child {
        margin-bottom: 0;
    }
    
    .chat-box {
        width: 280px;
        right: 0;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom-nav {
        text-align: center;
        margin-top: 1rem;
    }
    
    .footer-bottom-nav a {
        margin: 0 0.5rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.2rem;
        letter-spacing: 1px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        letter-spacing: 0.5px;
    }
    
    .display-4 {
        font-size: 2rem;
    }

    .footer-modern {
        padding: 2rem 0;
    }
    
    .chat-box {
        width: 260px;
    }
    
    .newsletter-form .input-group {
        flex-direction: column;
    }
    
    .newsletter-form .form-control,
    .newsletter-form .btn {
        border-radius: 8px;
        margin-bottom: 0.5rem;
    }
    
    .newsletter-form .btn {
        width: 100%;
    }
}

/* Hover effects globais */
.hover-teal:hover {
    color: var(--teal-color) !important;
}

/* Botão teal personalizado */
.btn-teal {
    background-color: var(--teal-color);
    border-color: var(--teal-color);
    color: white;
}

.btn-teal:hover {
    background-color: var(--teal-hover);
    border-color: var(--teal-hover);
    color: white;
}

.btn-outline-teal {
    color: var(--teal-color);
    border-color: var(--teal-color);
}

.btn-outline-teal:hover {
    background-color: var(--teal-color);
    border-color: var(--teal-color);
    color: white;
}

/* Text teal utility */
.text-teal {
    color: var(--teal-color) !important;
}
