/*
Theme Name: KMG Telecom Official
Author: Ranzer-Dev
Version: 7
License: GNU General Public License v2 or later
Text Domain: kmg-new-theme
*/

/* --- RESET & GLOBAL --- */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }

html { scroll-behavior: smooth; }

:root {
    --primary-blue: #2A225F;
    --secondary-blue: #14113C;
    --accent-yellow: #FFD700;
    --text-white: #ffffff;
    --text-gray: #cccccc;
}

body { background-color: var(--primary-blue); color: var(--text-white); overflow-x: hidden; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
header { background-color: var(--secondary-blue); padding: 15px 0; position: sticky; top: 0; z-index: 999; box-shadow: 0 2px 10px rgba(0,0,0,0.3); }
nav { display: flex; justify-content: space-between; align-items: center; }

.logo img { height: 80px; width: auto; }

.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: 0.9rem; transition: color 0.3s; font-weight: 500; }
.nav-links a:hover { color: var(--accent-yellow); }

.hamburger { display: none; cursor: pointer; color: white; font-size: 1.5rem; }

.hero { height: 65vh; display: flex; justify-content: center; align-items: center; flex-direction: column; text-align: left; }
.hero-lockup { display: flex; align-items: center; gap: 20px; }
.vertical-text { writing-mode: vertical-rl; transform: rotate(180deg); color: var(--accent-yellow); font-weight: 900; font-size: 3.5rem; line-height: 1; letter-spacing: 2px; }
.main-hero-text h1 { font-size: 4rem; line-height: 1.1; font-weight: 800; text-transform: uppercase; }
.sub-hero-text { margin-top: 20px; font-size: 1.8rem; font-weight: bold; text-align: center; width: 100%; text-transform: uppercase;}
.sub-hero-text span { color: var(--accent-yellow); }

.sobre { padding: 40px 0; background-color: #232355; }
.sobre-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.sobre-text h2 { color: var(--accent-yellow); margin-bottom: 25px; font-size: 2.2rem; }
.sobre-text p { margin-bottom: 20px; line-height: 1.6; color: #e0e0e0; font-size: 1.05rem; }
.sobre-img img { width: 100%; border-radius: 4px; box-shadow: 0 15px 40px rgba(0,0,0,0.4); max-height: 350px; object-fit: cover; }

.btn-outline { display: inline-block; padding: 12px 35px; border: 1px solid var(--accent-yellow); border-radius: 50px; color: var(--text-white); margin-top: 20px; transition: 0.3s; font-weight: 600; cursor: pointer; }
.btn-outline:hover { background-color: var(--accent-yellow); color: var(--primary-blue); }

.servicos { padding: 80px 0; background-color: #fff; color: var(--primary-blue); text-align: center; }
.servicos h2 { margin-bottom: 50px; font-size: 2.2rem; text-transform: uppercase; letter-spacing: 1px; }

.grid-servicos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; max-width: 1000px; margin: 0 auto; }

.servico-item { display: flex; flex-direction: column; align-items: center; gap: 15px; transition: transform 0.3s; }
.servico-item:hover { transform: translateY(-5px); }
.icon-box img { height: 70px; width: auto; object-fit: contain; }
.servico-item h3 { font-size: 1.2rem; font-weight: 700; color: var(--primary-blue); line-height: 1.2; }

footer { background-color: var(--primary-blue); padding: 70px 0 20px 0; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-content { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-bottom: 50px; }
.footer-left .logo { margin-bottom: 25px; }
.address p { margin-bottom: 15px; line-height: 1.5; color: #ccc; }
.email-link { color: var(--accent-yellow) !important; font-weight: bold; }
.footer-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-start; }
.footer-right p { margin-bottom: 15px; }
.footer-right .btn-outline { margin-top: 10px; font-size: 0.9rem; padding: 8px 25px; }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; font-size: 0.8rem; color: #888; }

@media (max-width: 900px) {
    .hamburger { display: block; z-index: 1001; }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background-color: var(--secondary-blue);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    }

    .nav-links.active { right: 0; }

    .hero-lockup { flex-direction: row; gap: 10px; }
    .main-hero-text h1 { font-size: 2.2rem; }
    .vertical-text { font-size: 2.2rem; }
    .sub-hero-text { font-size: 1.4rem; }
    .sobre-content { grid-template-columns: 1fr; text-align: center; }
    .sobre-img { display: none; }
    
    .grid-servicos { 
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 15px;
        padding: 0 10px;
    }
    .servico-item h3 { font-size: 1rem; }
    .icon-box img { height: 55px; }
    
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .footer-right { align-items: center; text-align: center; margin-top: 30px; }

    .footer-left .logo {
        display: flex;
        justify-content: center;
        margin-bottom: 20px;
    }

}

.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 99999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-btn:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: white;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-btn {
    animation: pulse 2s infinite;
}

@media (max-width: 900px) {
    .whatsapp-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 28px;
    }
}