/* ============================================
   ESTILOS DESKTOP - MODERNOS E RESPONSIVOS
   Otimizado para: 1024x768 e 1366×768
   ============================================ */

/* Reset e Base Modernizado */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #0066cc;
    --secondary-blue: #004499;
    --dark-blue: #003366;
    --light-blue: #3399ff;
    --accent-blue: #0088ff;
    --black: #000000;
    --dark-gray: #1a1a1a;
    --medium-gray: #2d2d2d;
    --white: #ffffff;
    --text-dark: #000000;
    --text-light: #ffffff;
    --text-gray: #e0e0e0;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.3);
    --shadow-blue: rgba(0, 102, 204, 0.3);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(0, 102, 204, 0.2);
    --sidebar-width: 250px;
    --header-height: 180px;
    --container-padding: 20px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 50%, var(--light-blue) 100%);
    min-height: 100vh;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container Principal Responsivo */
.container {
    background: var(--white);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: var(--container-padding);
    margin: 15px auto;
    width: calc(100% - var(--sidebar-width) - 40px);
    border: 2px solid var(--primary-blue);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 20px var(--shadow-blue);
}

/* Grid de Blocos Responsivo */
.blocos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin: 30px 0;
    padding: 20px;
    max-width: 100%;
}

/* Blocos de Conteúdo - Adaptado para telas menores */
.bloco {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 6px 20px var(--shadow-light);
    border: 2px solid var(--primary-blue);
    backdrop-filter: blur(4px);
    margin: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
}

.bloco:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px var(--shadow-blue), 0 0 30px rgba(0, 102, 204, 0.2);
    border-color: var(--accent-blue);
}

/* Blocos com cores específicas - paleta azul, preto e branco */
.bloco:nth-child(1) {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    box-shadow: 0 6px 20px var(--shadow-blue);
    border-color: var(--dark-blue);
}

.bloco:nth-child(2) {
    background: linear-gradient(135deg, var(--black), var(--dark-gray));
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    border-color: var(--primary-blue);
}

.bloco:nth-child(3) {
    background: linear-gradient(135deg, var(--white), #f5f5f5);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-blue);
    color: var(--text-dark);
}

.bloco:nth-child(3) h3,
.bloco:nth-child(3) p {
    color: var(--text-dark);
}

/* Efeito de brilho ao passar o mouse */
.bloco::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    transition: left 0.7s ease;
}

.bloco:hover::before {
    left: 100%;
}

.bloco img {
    max-width: 100%;
    height: 180px;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
    margin-bottom: 20px;
}

.bloco:hover img {
    transform: scale(1.05);
}

.bloco h3 {
    margin: 15px 0;
    color: var(--text-light);
    font-size: 1.8em;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    line-height: 1.3;
}

.bloco p {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 1.1em;
    line-height: 1.6;
    flex-grow: 1;
    opacity: 0.9;
    padding: 0 10px;
}

.bloco a {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    font-weight: bold;
    padding: 15px 30px;
    margin-top: 20px;
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1em;
    width: auto;
    min-width: 200px;
    max-width: 300px;
}

/* Botão para bloco branco (terceiro) */
.bloco:nth-child(3) a {
    background: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    color: white;
}

.bloco:nth-child(3) a:before {
    background: var(--dark-blue);
}

.bloco a:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: white;
    transition: all 0.3s ease;
    z-index: -1;
}

.bloco:nth-child(3) a:hover:before {
    background: var(--secondary-blue);
}

.bloco a:hover:before {
    width: 100%;
}

.bloco a:hover {
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.bloco:nth-child(3) a:hover {
    color: white;
    box-shadow: 0 4px 12px var(--shadow-blue);
}

/* WhatsApp Flutuante */
.whatsapp-float {
    position: fixed;
    bottom: 15px;
    right: 15px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.5);
}

/* Footer Responsivo */
footer {
    background: linear-gradient(135deg, var(--black) 0%, var(--dark-gray) 100%);
    color: var(--white);
    padding: 30px 0;
    margin-top: 30px;
    width: calc(100% - var(--sidebar-width));
    position: relative;
    left: var(--sidebar-width);
    right: 0;
    clear: both;
    margin-right: 0;
    border-top: 3px solid var(--primary-blue);
}

/* Container dentro do footer - override das regras gerais */
footer .container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 var(--container-padding) !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 0 var(--container-padding);
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.footer-about {
    width: 100%;
    margin-bottom: 10px;
}

.footer-bottom-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    width: 100%;
}

.footer-services,
.footer-contact {
    width: 100%;
}

.footer-section h4 {
    margin-bottom: 15px;
    color: var(--text-light);
    font-size: 1.1em;
    font-weight: 600;
}

.footer-section p {
    color: var(--text-gray);
    text-align: justify;
    line-height: 1.7;
    font-size: 0.95em;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
    line-height: 1.5;
    color: var(--text-gray);
}

.footer-section ul li a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95em;
}

.footer-section ul li a:hover {
    color: var(--light-blue);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #333;
    width: 100%;
}

.footer-bottom p {
    margin: 0;
    padding: 10px 0;
    color: #999;
    font-size: 0.9em;
}

/* Menu Lateral (Sidebar) - Ajustado */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--black) 0%, var(--dark-gray) 50%, var(--medium-gray) 100%);
    padding-top: 15px;
    transition: transform 0.3s ease;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5), 0 0 20px var(--shadow-blue);
    overflow-y: auto;
    border-right: 3px solid var(--primary-blue);
}

.sidebar img {
    max-width: 180px;
    height: auto;
    margin: 0 auto 20px;
    border-radius: 8px;
    display: block;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.sidebar-menu li {
    padding: 12px 20px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-menu li:hover,
.sidebar-menu li.active {
    background: rgba(0, 102, 204, 0.2);
    border-left: 3px solid var(--light-blue);
}

.sidebar-menu a {
    color: white;
    text-decoration: none;
    font-size: 15px;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.sidebar-menu a:hover {
    color: var(--light-blue);
}

.sidebar-menu i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.sidebar-text {
    color: white;
    padding: 15px;
    text-align: justify;
    font-size: 14px;
    line-height: 1.5;
    margin-top: 20px;
}

.sidebar-text p {
    color: #e0e0e0;
    margin-bottom: 12px;
}

.sidebar-text strong {
    color: #ffffff;
    font-weight: 600;
}

/* Conteúdo Principal */
.main-content {
    margin-left: var(--sidebar-width);
    transition: margin-left 0.3s ease;
    background: transparent;
    min-height: 100vh;
    padding-bottom: 40px;
}

/* Header Otimizado */
.header {
    position: relative;
    width: 100%;
    min-height: 380px;
    height: auto;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--black) 0%, var(--dark-blue) 50%, var(--primary-blue) 100%);
    border-radius: 0 0 20px 20px;
    margin-bottom: 20px;
    border-bottom: 3px solid var(--light-blue);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(0,102,204,0.1) 0%, rgba(51,153,255,0.05) 100%),
        repeating-linear-gradient(45deg, 
            rgba(0, 136, 255, 0.1) 0px,
            rgba(0, 136, 255, 0.1) 2px,
            transparent 2px,
            transparent 10px
        );
    z-index: 1;
}

.header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(51,153,255,0.15) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: 0 0;
    animation: circuitAnimation 20s linear infinite;
    z-index: 1;
    opacity: 0.4;
}

@keyframes circuitAnimation {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 40px 40px;
    }
}

.logo {
    width: 700px !important;
    height: 350px !important;
    max-width: 700px !important;
    max-height: 350px !important;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

/* Menu Toggle (oculto no desktop) */
.menu-toggle {
    display: none;
}

/* ============================================
   MEDIA QUERIES ESPECÍFICAS
   ============================================ */

/* Para 1366x768 */
@media (max-width: 1366px) {
    :root {
        --sidebar-width: 230px;
        --header-height: 160px;
        --container-padding: 18px;
    }
    
    .container {
        width: calc(100% - var(--sidebar-width) - 30px);
    }
    
    footer .container {
        width: 100%;
        padding: 0 var(--container-padding);
    }
    
    .blocos {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 15px;
    }
    
    .bloco {
        min-height: 380px;
        padding: 25px;
    }
    
    .bloco img {
        height: 160px;
    }
    
    .bloco h3 {
        font-size: 1.6em;
    }
    
    .logo {
        width: 700px !important;
        height: 350px !important;
        max-width: 700px !important;
        max-height: 350px !important;
    }
    
    .header {
        min-height: 330px;
    }
}

/* Para 1024x768 */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 200px;
        --header-height: 140px;
        --container-padding: 15px;
    }
    
    .container {
        width: calc(100% - var(--sidebar-width) - 20px);
        margin: 10px auto;
        padding: 15px;
    }
    
    footer .container {
        width: 100%;
        padding: 0 var(--container-padding);
    }
    
    .blocos {
        grid-template-columns: 1fr;
        max-width: 700px;
        margin: 20px auto;
        padding: 15px;
        gap: 20px;
    }
    
    .bloco {
        min-height: 350px;
        margin: 0;
        padding: 25px;
    }
    
    .bloco img {
        height: 150px;
    }
    
    .bloco h3 {
        font-size: 1.5em;
    }
    
    .bloco p {
        font-size: 1em;
    }
    
    .bloco a {
        font-size: 1em;
        padding: 12px 25px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 25px;
        padding: 0 var(--container-padding);
    }
    
    .footer-bottom-section {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .sidebar {
        width: var(--sidebar-width);
    }
    
    .sidebar img {
        max-width: 150px;
    }
    
    .sidebar-menu a {
        font-size: 14px;
    }
    
    .sidebar-text {
        font-size: 13px;
        padding: 12px;
    }
    
    .logo {
        width: 700px !important;
        height: 350px !important;
        max-width: 700px !important;
        max-height: 350px !important;
    }
    
    .header {
        min-height: 280px;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
        bottom: 10px;
        right: 10px;
    }
}

/* Para telas muito estreitas */
@media (max-width: 900px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    footer {
        width: 100%;
        left: 0;
    }
    
    .container {
        width: calc(100% - 30px);
    }
    
    .blocos {
        grid-template-columns: 1fr;
        padding: 10px;
        gap: 15px;
    }
    
    .bloco {
        min-height: 320px;
        padding: 20px;
    }
    
    .bloco img {
        height: 120px;
    }
    
    .bloco h3 {
        font-size: 1.3em;
    }
    
    .bloco p {
        font-size: 0.95em;
    }
    
    .bloco a {
        font-size: 0.95em;
        padding: 10px 20px;
        min-width: 180px;
    }
    
    footer .container {
        width: 100%;
        padding: 0 15px;
    }
    
    .menu-toggle {
        display: block;
        position: fixed;
        top: 15px;
        left: 15px;
        background: var(--primary-blue);
        color: white;
        border: 2px solid var(--light-blue);
        padding: 10px 15px;
        border-radius: 5px;
        cursor: pointer;
        z-index: 1001;
        font-size: 18px;
        box-shadow: 0 4px 12px var(--shadow-blue);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
}

/* Para telas grandes */
@media (min-width: 1400px) {
    :root {
        --header-height: 200px;
    }
    
    .header {
        height: var(--header-height);
    }
    
    .logo {
        width: 700px !important;
        height: 350px !important;
        max-width: 700px !important;
        max-height: 350px !important;
    }
    
    .header {
        min-height: 380px;
    }
}

/* Ajustes de impressão */
@media print {
    .sidebar, .whatsapp-float {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .container {
        width: 100%;
        box-shadow: none;
        background: white;
    }
}
