/* 
    MS Soluções em Informática - Design System 
    Author: Antigravity (Advanced Agentic Coding)
    Date: 2026-03-23
*/

:root {
    --primary-color: #002366; /* Azul Marinho */
    --primary-light: #003aab;
    --secondary-color: #333333;
    --accent-color: #d1211b;   /* Vermelho da Logomarca */
    --accent-hover: #b01c17;
    --text-color: #444444;
    --bg-light: #f4f7fb;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 35, 102, 0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, .h1, .h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--secondary-color);
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-sm {
    max-width: 800px;
}

.text-center { text-align: center; }
.text-white { color: var(--white) !important; }
.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--secondary-color); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(209, 33, 27, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(209, 33, 27, 0.4);
}

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

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1rem;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.8rem;
}

/* Header */
.header {
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    background: var(--primary-color);
    z-index: 2001; /* Higher than menu overlay */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header.sticky {
    position: sticky;
    top: 0;
}

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

.logo img {
    height: 60px;
}

.nav-list {
    display: flex;
    gap: 25px;
}

.nav-list a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-list a:hover {
    color: var(--accent-color);
}

.header-cta .btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--white);
    border: 2px solid var(--accent-color);
    width: 45px;
    height: 45px;
    display: none; /* Controlled by media query */
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    background: var(--accent-color);
    color: var(--white);
}

/* Hero Section */
.hero {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8faff 0%, #e6eefc 100%);
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hero .h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    font-weight: 600;
    color: var(--secondary-color);
}

.hero-description {
    font-size: 1.15rem;
    margin-bottom: 35px;
    max-width: 600px;
}

.hero-trust {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--primary-color);
}

.image-wrapper {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.hero-image img {
    width: 100%;
    transform: scale(1.05);
    transition: transform 10s ease;
}

/* Features Cards */
.features {
    padding: 80px 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 40px 30px;
    background: var(--white);
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid #eee;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

/* About Section */
.about {
    padding: 100px 0;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image img {
    border-radius: 30px;
    box-shadow: 20px 20px 0 var(--primary-color);
}

.badge {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(0, 35, 102, 0.1);
    color: var(--primary-color);
    border-radius: 5px;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about p {
    margin-bottom: 20px;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin: 30px 0;
}

.stat-number {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.stat-label {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Services */
.services {
    padding: 100px 0;
}

.services-grid.services-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.service-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 35, 102, 0.1);
}

.service-top-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.service-top-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-card p {
    margin-bottom: 25px;
    color: var(--text-color);
    flex-grow: 1;
}

.service-button-wrapper {
    display: flex;
    justify-content: center;
}

/* Testimonials */
.testimonials {
    padding: 100px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    border-left: 5px solid var(--accent-color);
    backdrop-filter: blur(5px);
}

.stars {
    color: var(--accent-color);
    margin-bottom: 15px;
}

.testimonial-card .user {
    font-weight: 700;
    color: var(--accent-color);
}

/* Neighborhoods section - Image 2 Inspired */
.neighborhoods-dark {
    padding: 80px 0;
    background: var(--primary-color);
}

.text-accent {
    color: var(--white);
    text-transform: uppercase;
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.neighborhoods-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin: 40px 0;
}

.neighborhood-box {
    padding: 20px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    text-align: center;
    transition: var(--transition);
}

.neighborhood-box:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.neighborhoods-cta {
    margin-top: 40px;
}

.neighborhoods-cta .btn-primary {
    padding: 18px 50px;
    font-size: 1.1rem;
    box-shadow: 0 10px 30px rgba(209, 33, 27, 0.4);
}

/* FAQ Modern Design */
.faq {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.accordion {
    max-width: 850px;
    margin: 40px auto 0;
}

.accordion-item {
    margin-bottom: 20px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 35, 102, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transition: var(--transition);
}

.accordion-item:hover {
    box-shadow: 0 15px 35px rgba(0, 35, 102, 0.1);
    transform: translateY(-2px);
}

.accordion-header {
    width: 100%;
    padding: 25px 30px;
    background: var(--white);
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--secondary-color);
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.accordion-header i {
    font-size: 0.9rem;
    transition: transform 0.4s ease;
    color: var(--primary-color);
}

/* Active State */
.accordion-item.active {
    border-left: 5px solid var(--accent-color);
    box-shadow: 0 20px 40px rgba(0, 35, 102, 0.12);
    background: linear-gradient(to bottom, #ffffff, #fcfdff);
}

.accordion-item.active .accordion-header {
    color: var(--primary-color);
    padding-bottom: 15px;
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
    color: var(--accent-color);
}

.accordion-body {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0, 1, 0, 1);
    color: var(--text-color);
}

.accordion-item.active .accordion-body {
    padding: 0 30px 30px;
    max-height: 500px; /* High enough to allow growth */
    transition: all 0.5s cubic-bezier(1, 0, 1, 0);
}

.accordion-body p {
    line-height: 1.7;
    font-size: 1rem;
    opacity: 0.9;
}

/* Gallery */
.gallery {
    padding: 100px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    transition: var(--transition);
}

/* Footer */
.footer {
    padding: 80px 0 0;
    background: var(--primary-color);
    color: rgba(255, 255, 255, 0.8);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 60px;
    padding-bottom: 60px;
}

.footer-logo {
    height: 60px;
    margin-bottom: 15px;
}

.footer-brand p {
    margin-bottom: 20px;
}

.footer-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--white);
    background: var(--accent-color);
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 1.1rem;
    transition: var(--transition);
}

.footer-whatsapp:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    color: var(--white);
}

.footer-links h4, .footer-seo h4 {
    color: var(--white);
    margin-bottom: 25px;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

/* WhatsApp Floating */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 3000; /* Above everything */
    transition: var(--transition);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container, .about-container {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding: 60px 0;
        text-align: center;
    }
    
    .hero h1 { font-size: 2.5rem; }
    .hero-description { margin: 0 auto 30px; }
    .hero-trust { justify-content: center; }
}

@media (max-width: 768px) {
    .nav-list, .header-cta {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .services-grid.services-2col, .neighborhoods-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 2rem;
    }
}

/* Mobile Nav Styles */
.mobile-menu-overlay {
    position: fixed;
    top: 80px; /* Below the header */
    left: 0;
    width: 100%;
    height: calc(100% - 80px);
    background: var(--primary-color);
    z-index: 1500; /* Lower than header if header is z-index: 2000 or similar */
    display: none;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 50px;
    backdrop-filter: blur(10px);
    background: rgba(0, 35, 102, 0.98);
}

.mobile-nav-list {
    text-align: center;
    width: 100%;
}

.mobile-nav-list li {
    margin-bottom: 15px; /* Reduced space */
}

.mobile-nav-list a {
    font-size: 1.4rem;
    color: var(--white);
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}

.mobile-nav-list a.btn-primary {
    font-size: 0.85rem; /* Smaller font */
    padding: 10px 25px; /* Smaller padding */
    margin-top: 5px;
    display: inline-block;
}
