:root {
    --primary: #002244;
    --secondary: #0055a4;
    --whatsapp: #25d366;
    --light: #f8f9fa;
    --dark: #333;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { background: #fff; color: #333; line-height: 1.6; }

.container { width: 90%; max-width: 1200px; margin: auto; }
.section { padding: 80px 0; }
.text-center { text-align: center; }
.bg-light { background-color: var(--light); }

/* Header e Menu Desktop */
header { background: #fff; padding: 15px 0; position: fixed; width: 100%; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.1); transition: 0.3s; }
nav { display: flex; justify-content: space-between; align-items: center; }
.brand-logo { height: 50px; width: auto; display: block; }

.nav-links { display: flex; list-style: none; gap: 30px; align-items: center; }
.nav-links a { 
    text-decoration: none; 
    color: var(--primary); 
    font-weight: 600; 
    transition: color 0.3s ease; 
    position: relative;
}
.nav-links a:hover { color: var(--secondary); }

/* Linha Hover */
.nav-links a::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: -5px; left: 0; background-color: var(--secondary);
    transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }

.btn-nav { background: var(--whatsapp); color: #fff !important; padding: 10px 20px; border-radius: 5px; }
.btn-nav::after { display: none !important; }

/* Menu Icon (Hambúrguer) */
.menu-icon { display: none; font-size: 24px; color: var(--primary); cursor: pointer; }

/* Hero */
.hero { height: 85vh; display: flex; align-items: center; color: #fff; text-align: center; }
.hero-content { margin: auto; width: 100%; }
.hero-content h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 20px; }
.hero-content h1 span { color: #5bc0de; }

/* Sobre */
.sobre-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.sobre-img img { width: 100%; border-radius: 15px; box-shadow: 10px 10px 30px rgba(0,0,0,0.1); }
.stats { display: flex; gap: 30px; margin-top: 30px; }
.stat-item strong { display: block; font-size: 2.5rem; color: var(--secondary); line-height: 1; }

/* Cards */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 40px; }
.service-card { background: #fff; padding: 40px 30px; border-radius: 10px; text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.service-card i { font-size: 2.5rem; color: var(--secondary); margin-bottom: 20px; }

/* Portfolio */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 15px; margin-top: 30px; }
.portfolio-item { position: relative; height: 280px; border-radius: 10px; overflow: hidden; }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; }
.overlay { position: absolute; top:0; background: rgba(0,34,68,0.8); width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #fff; opacity: 0; transition: 0.3s; }
.portfolio-item:hover .overlay { opacity: 1; }

/* Seção Contato  */
.social-contact-grid { display: flex; justify-content: center; gap: 25px; margin-top: 40px; flex-wrap: wrap; }
.social-card { 
    text-decoration: none; color: var(--dark); background: #fff; 
    padding: 30px; border-radius: 15px; width: 280px; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.07); text-align: center;
}
.social-card i { font-size: 3rem; margin-bottom: 15px; display: block; }
.social-card.whatsapp i { color: var(--whatsapp); }
.social-card.instagram i { color: #E1306C; }

/* WhatsApp Float */
.whatsapp-float { position: fixed; bottom: 30px; right: 30px; background: var(--whatsapp); color: #fff; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; z-index: 2000; box-shadow: 0 5px 15px rgba(0,0,0,0.3); }

footer { background: var(--primary); color: #fff; padding: 40px 0; text-align: center; }

/* Mobile */
@media (max-width: 768px) {
    .menu-icon { display: block; }
    .nav-links {
        display: none; flex-direction: column; position: absolute;
        top: 70px; left: 0; width: 100%; background: #fff;
        padding: 30px; box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    .nav-links.active { display: flex; }
    .sobre-grid { grid-template-columns: 1fr; }
}